/* 诗语个人博客 - 现代化纯净极简响应式样式表 (ShiYu Personal Blog Style) */

:root {
  --theme-bg: #ffffff;
  --body-bg: #f3f4f6;
  --card-bg: #ffffff;
  --card-hover: #fafafa;
  --border-color: #e5e7eb;
  --border-subtle: #f0f2f5;
  --accent-red: #e50914;
  --accent-red-hover: #ff2b36;
  --accent-red-light: #fef2f2;
  --text-main: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --app-max-width: 600px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  background-color: var(--body-bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= 1:1 App Container ================= */
#xqbj-container {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background-color: var(--theme-bg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.06);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 600px) {
  #xqbj-container {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* ================= Header ================= */
.xqbj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.xqbj-header.search-header-static,
.search-header-static {
  position: static !important;
  box-shadow: none;
}

.nav-mobile-header {
  height: 52px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.nav-mobile-header__content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu-btn, .nav-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--text-main);
  border-radius: 0;
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.nav-menu-btn:hover, .nav-back-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

.nav-title-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.nav-title-logo .logo-tag {
  background: var(--accent-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.nav-mobile-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-right-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-main);
  border-radius: 0;
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-right-icon:hover, .nav-right-icon.active {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

/* SVG Icon Helper */
.icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ================= Category Subnav Slider with Visible Drag Track ================= */
.slider-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f3f4f6;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.slider-content:active,
.slider-content.is-dragging {
  cursor: grabbing;
}

.slider-content::-webkit-scrollbar {
  height: 3px;
  display: block;
}

.slider-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 0 !important;
}

.slider-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 0 !important;
}

.slider-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.slider-item {
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  padding: 5px 13px;
  border-radius: 0 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f9fafb;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-item:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
  background: #f3f4f6;
}

.slider-item.active {
  color: #ffffff;
  border-color: var(--accent-red);
  background: var(--accent-red);
  font-weight: 600;
}

/* ================= Main Content ================= */
.xqbj-main {
  flex: 1;
  width: 100%;
}

/* ================= 1:1 Video List & Item ================= */
.video-list {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-item {
  width: 100%;
  aspect-ratio: 710 / 240;
  display: block;
}

.video-item-img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 710 / 240;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-item-img .ishot {
  background-color: var(--accent-red) !important;
  border-radius: 0;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-item-img .title {
  align-items: center;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  font-size: clamp(13px, 4vw, 17px) !important;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  padding: 0 1rem;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  width: 100%;
  z-index: 2;
  line-height: 1.4;
  text-shadow: 0 1px 3px #000000, 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.85);
}

.video-item-img .mask {
  display: none !important;
}

/* ================= 🖼️ 纯图片专属微光骨架屏 (Image Skeletons Only) ================= */
@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 卡片封面图骨架底色 */
.placeholder-img {
  align-items: center;
  background: linear-gradient(90deg, #eef1f6 25%, #e1e5eb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease infinite;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.placeholder-img img.fill-img {
  border-radius: 0;
  object-fit: cover;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.video-item:hover .placeholder-img img.fill-img {
  transform: scale(1.03);
}

/* ================= 🎴 列表卡片与文章骨架屏 (Skeleton Screens) ================= */
.skeleton-card {
  position: relative;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.skeleton-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #eef1f6 25%, #e1e5eb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease infinite;
}

.skeleton-detail-wrap {
  padding: 16px 14px;
}

.skeleton-line {
  height: 18px;
  background: linear-gradient(90deg, #eef1f6 25%, #e1e5eb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease infinite;
  margin-bottom: 12px;
  border-radius: 2px;
}

/* 正文图文专属微光骨架屏 */
.article-img-wrap {
  margin: 18px 0;
  text-align: center;
  border-radius: 0;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  display: block;
  position: relative;
}

.article-img-wrap.loaded {
  background: #f9fafb;
  animation: none;
  display: block;
}

.article-img-wrap img.zoomable-img {
  width: 100%;
  height: auto;
  border-radius: 0;
  cursor: zoom-in;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.article-img-wrap img.zoomable-img.is-visible {
  opacity: 1;
}

/* ================= Pagination ================= */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 28px;
  gap: 14px;
}

.page-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-nav-btn {
  padding: 7px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 13px;
  color: var(--text-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.page-nav-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

.page-nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
  background: #f9fafb;
}

.page-nav-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.page-jump-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.page-jump-input {
  width: 48px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: 0;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
  outline: none;
  padding: 0 2px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.page-jump-input:focus {
  border-color: var(--accent-red);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.page-jump-submit {
  height: 30px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.page-jump-submit:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

/* ================= Detail Page ================= */
.detail-page {
  padding: 18px 16px;
  background: #ffffff;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 12px;
}

.detail-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.detail-author {
  color: var(--text-main);
  font-weight: 600;
  margin-right: 6px;
}

.plates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.plates a {
  display: inline-block;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  border-radius: 0;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-body);
  font-weight: 500;
}

.plates a:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

/* Detail Content Typography */
.editormd-preview {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
}

.editormd-preview h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3.5px solid var(--accent-red);
}

.editormd-preview p {
  margin-bottom: 14px;
}

.editormd-preview video,
#articleBody video {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  margin: 16px 0;
  background: #000;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.article-tags a {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-body);
}

.article-tags a:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
}

.detail-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0;
}

.btn-detail-act {
  padding: 10px 22px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s;
}

.btn-like-red {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.btn-like-red:hover {
  background: var(--accent-red-hover);
}

.btn-share-gray {
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  color: var(--text-body);
}

.btn-share-gray:hover {
  border-color: #cbd5e1;
  background: #e5e7eb;
}

/* ================= Related Recommendations (Pure Black-White-Gray-Red Minimalist) ================= */
.detail-related-section {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 20px 0 10px;
  margin-top: 24px;
}

.detail-related-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-related-bar {
  width: 3px;
  height: 14px;
  background: var(--accent-red);
  display: inline-block;
}

.detail-related-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.detail-related-list {
  display: flex;
  flex-direction: column;
}

.detail-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: all 0.15s ease;
}

.detail-related-item:last-child {
  border-bottom: none;
}

.detail-related-dot {
  width: 4px;
  height: 4px;
  background: #9ca3af;
  display: inline-block;
  flex-shrink: 0;
}

.detail-related-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.detail-related-item:hover .detail-related-text {
  color: var(--accent-red);
}

.detail-related-item:hover .detail-related-dot {
  background: var(--accent-red);
}

/* ================= Footer ================= */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 14px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin-top: auto;
  line-height: 1.8;
}

.site-footer .copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.site-footer .footer-contact {
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0 0;
}

.site-footer .footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer .footer-contact a:hover {
  color: var(--accent-red);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-red);
}

/* ================= Slide-out Drawer Menu ================= */
.popup-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.popup-menu.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.popup-menu .mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.popup-menu-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
}

.sidemenu__wrapper {
  position: relative;
  width: 270px;
  max-width: 80%;
  height: 100%;
  background: #ffffff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: auto;
}

.popup-menu.show .sidemenu__wrapper {
  transform: translateX(0);
}

.menu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  background: #fafafa;
}

.menu-header-bar .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.menu-header-bar .close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.menu-header-bar .close-btn:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.sidemenu__list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.nav-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-tree .nav-item {
  border-bottom: 1px solid #f3f4f6;
}

.nav-tree .nav-item a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 0 !important;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 500;
  transition: all 0.15s;
}

.nav-tree .nav-item a:hover {
  background: #f8fafc;
  color: var(--accent-red);
  padding-left: 22px;
}

.nav-tree .nav-item.active a {
  background: var(--accent-red-light);
  color: var(--accent-red);
  font-weight: 700;
  border-left: 3px solid var(--accent-red);
}

/* ================= Dedicated Search Page ================= */
.search-page-box {
  padding: 14px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1.5px solid var(--border-color);
  border-radius: 0;
  padding: 0 6px 0 14px;
  height: 46px;
  transition: all 0.2s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--accent-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
  padding: 0 6px;
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: #d1d5db;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
  border: none;
}

.search-clear-btn.show {
  display: flex;
}

.search-submit-btn {
  background: var(--accent-red);
  border: none;
  color: #ffffff;
  border-radius: 0;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: var(--accent-red-hover);
}

.search-section {
  padding: 14px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

/* ================= Hot Tags & Tag Cloud (Black-White-Gray-Red Minimalist Aesthetic) ================= */
.search-section {
  padding: 14px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.search-section.hot-tags-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.search-section.hot-tags-section .search-section-title {
  color: var(--text-main);
}

.search-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.more-tags-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: none;
  transition: opacity 0.2s;
}

.more-tags-link:hover {
  opacity: 0.8;
}

/* Hot Searches 2-Column Text List (1:1 with Origin Reference) */
.hot-searches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  padding: 4px 0 6px;
}

.hot-search-link {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.hot-search-link:hover {
  color: var(--accent-red);
}

/* Hot Tag & Tag Cloud & Search History Chips (Pure Black-White-Gray-Red Straight-Angle Minimalist) */
.hot-tag-item,
.tag-cloud-chip,
.search-tag-chip {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 0 !important;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
}

.hot-tag-item:hover,
.tag-cloud-chip:hover,
.search-tag-chip:hover {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.search-tags-grid,
.tag-cloud-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tag Cloud Dedicated Page */
.tag-cloud-header-box {
  padding: 16px 14px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.tag-cloud-main-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.tag-cloud-panel {
  background: #ffffff;
  padding: 16px 14px 24px;
  min-height: 380px;
  border-bottom: 1px solid var(--border-color);
}

.highlight-keyword {
  color: var(--accent-red);
  font-weight: 700;
  background: rgba(229, 9, 20, 0.08);
  padding: 0 3px;
  border-radius: 0 !important;
}

/* ================= Image Zoom Modal ================= */
.img-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.img-modal-overlay.show {
  display: flex !important;
}

.img-modal-content {
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  animation: zoomModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.2s;
}

.img-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes zoomModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#articleBody img {
  cursor: zoom-in;
}

/* ================= Header Minimalist 4-Column Friendship Links ================= */
.friend-links-bar {
  background: #fff5f5;
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
  padding: 9px 12px;
  position: static !important;
  z-index: 1;
}

.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  text-align: center;
}

.friend-link-item {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 2px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.friend-link-item:hover {
  color: var(--accent-red);
}

.friend-link-item.is-bold,
.friend-link-item.bold {
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

.friend-link-item.highlight {
  color: var(--accent-red) !important;
}

.friend-link-item.is-bold.highlight,
.friend-link-item.bold.highlight {
  color: var(--accent-red) !important;
  font-weight: 700 !important;
}

@media (min-width: 768px) {
  .friend-links-bar {
    padding: 10px 16px;
  }
  .friend-links-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 8px;
  }
  .friend-link-item {
    font-size: 13px;
  }
}



