
/* ===== Article Page Variables Override & Additions ===== */
:root {
  --art-max-w: 1240px;
  --art-main-w: calc(100% - 320px);
  --art-sidebar-w: 300px;

  /* ===== 文章页兜底变量 (线上 index.css 未提供，取自本地 styles.css，确保字体/阴影/边框不丢失) ===== */
  --font-serif: 'Noto Serif SC', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Noto Sans SC', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --border-light: #ece7df;
  --text-faint: #9ca3af;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.14);
}

/* ===== Global Link Reset (全页超链：无下划线 + 悬停变红) ===== */
a {
  text-decoration: none;
  color: inherit;
  transition: color .25s ease;
}
a:hover {
  color: var(--red-primary);
}

/* ===== Reading Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--blue-mid));
  z-index: 9999;
  transition: width .05s linear;
  box-shadow: 0 0 10px rgba(185,28,28,.5);
}

/* ===== Breadcrumb (Article) ===== */
.article-breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.article-breadcrumb {
  max-width: var(--art-max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}
.article-breadcrumb a:hover { color: var(--red-primary); }
.article-breadcrumb .sep { color: var(--border); }
.article-breadcrumb .current { color: var(--text-dark); font-weight: 500; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Article Wrapper ===== */
.article-wrapper {
  max-width: var(--art-max-w);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1fr var(--art-sidebar-w);
  gap: 48px;
  position: relative;
}

/* ===== Article Main Column ===== */
.article-main {}

/* ===== Article Header ===== */
.article-header {
  margin-bottom: 32px;
}
.article-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(29,78,216,.1), rgba(30,58,138,.05));
  color: var(--blue-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(29,78,216,.15);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 16px;
  letter-spacing: -.02em;
}
.article-deck {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 14px;
  font-weight: 400;
  border-left: 3px solid var(--red-primary);
  padding-left: 18px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-light);
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta-item svg { width: 16px; height: 16px; opacity: .6; flex-shrink: 0; }
.article-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.article-author-name {
  color: var(--text-dark);
  font-weight: 600;
}
.article-author-role {
  font-size: 12px;
  color: var(--text-faint);
}

/* Tech accent divider below meta */
.article-accent-line {
  position: relative;
  height: 1px;
  margin: 28px 0 0;
  background: linear-gradient(90deg,
    transparent 0%, var(--border) 10%,
    var(--red-primary) 30%, var(--blue-primary) 70%,
    var(--border) 90%, transparent 100%
  );
}
.article-accent-line::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  background: var(--blue-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(29,78,216,.5);
}

/* ===== Cover Image ===== */
.article-cover {
  margin-bottom: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.article-cover img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; }
.article-caption {
  font-size: 13px; color: var(--text-faint);
  text-align: center;
  padding: 10px 16px 0;
  font-style: italic;
  line-height: 1.5;
}

/* ===== Article Body Content ===== */
.article-body {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--text-dark);
}
.article-body p {
  margin-bottom: 1.5em;
  text-align: justify;
}
.article-body h2 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--blue-dark);
  margin: 2em 0 1em;
  padding-left: 16px;
  border-left: 4px solid var(--red-primary);
  line-height: 1.4;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.8em 0 .8em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-body h3::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Article body is CMS rich-text (newstext) — keep base typography clean & robust */
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* Blockquote */
.article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-left: 4px solid var(--red-primary);
  border-radius: 0 10px 10px 0;
  position: relative;
  font-style: italic;
  color: var(--text-mid);
  font-size: .95em;
}
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: 8px; left: 14px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--red-primary);
  opacity: .15;
  line-height: 1;
}
.article-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-primary);
  font-family: var(--font-sans);
}

/* Data Insight Box — tech feel */
.data-insight-box {
  margin: 2.5em 0;
  padding: 28px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: 12px;
  color: #E2E8F0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,.2);
  box-shadow: 0 4px 30px rgba(15,23,42,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.data-insight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-primary), var(--blue-mid), var(--gold), var(--red-primary));
  background-size: 200% 100%;
  animation: dataGlow 4s ease infinite;
}
@keyframes dataGlow { 0%,100%{background-position:0% 0%} 50%{background-position:100% 0%} }
.data-insight-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0),
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.03) 1px, transparent 0);
  background-size: 30px 30px, 50px 50px;
  pointer-events: none;
}
.data-insight-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.data-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.data-stat-num {
  font-family: monospace;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.data-stat-label {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
  font-family: var(--font-sans);
}

/* Figure in article */
.article-figure {
  margin: 2.5em 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.article-figure img { width: 100%; display: block; }
.article-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-cream);
  text-align: center;
  border-top: 1px solid var(--border-light);
  line-height: 1.55;
}

/* Tag chips */
.article-tags {
  margin: 36px 0 0;
  padding: 20px 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag-label { font-size: 13px; color: var(--text-faint); font-weight: 600; margin-right: 4px; }
.tag-chip {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  border-radius: 50px;
  background: var(--bg-warm);
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: all .2s;
}
.tag-chip:hover {
  background: var(--blue-light);
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

/* ===== Author Card (End of article) ===== */
.author-card-full {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, #fff, var(--bg-cream));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.author-card-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  flex-shrink: 0;
}
.author-card-info { flex: 1; }
.author-card-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.author-card-bio {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 6px;
  line-height: 1.6;
}
.author-card-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.author-card-link {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 600;
}

/* ===== Share Bar ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 17px;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-btn.wechat { color: #07C160; }
.share-btn.weibo { color: #E6162D; }
.share-btn.zhihu { color: #0084FF; }
.share-btn.copy { color: var(--text-light); }

/* ===== Sidebar ===== */
.article-sidebar { height: fit-content; }

/* Mini author card in sidebar */
.sidebar-mini-author {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-mini-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sidebar-mini-author-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.sidebar-mini-author-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.sidebar-mini-author-role { font-size: 12px; color: var(--text-faint); }
.sidebar-mini-author-bio { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ===== Sidebar: About Widget (Positioning / SEO) ===== */
.sidebar-about {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 12px;
  padding: 22px 20px;
  color: #E2E8F0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sidebar-about::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
.sidebar-about-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .5px;
}
.sidebar-about-title .en { font-size: 11px; color: #64748B; font-weight: 500; letter-spacing: 1px; }
.sidebar-about-tag {
  display: inline-block;
  font-size: 11px;
  color: #60A5FA;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.25);
  padding: 2px 10px;
  border-radius: 50px;
  margin: 8px 0 12px;
  font-family: var(--font-sans);
  letter-spacing: .5px;
}
.sidebar-about-text {
  font-size: 13px;
  line-height: 1.78;
  color: #CBD5E1;
  font-family: var(--font-serif);
}
.sidebar-about-text strong { color: #F1F5F9; font-weight: 700; }
.sidebar-about-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-about-links a {
  font-size: 12.5px;
  color: #93C5FD;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.sidebar-about-links a::before {
  content: '';
  width: 4px; height: 4px;
  background: #60A5FA;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-about-links a:hover { color: #fff; }

/* ===== Sidebar: Generic Widget ===== */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .5px;
}
.widget-title::before {
  content: '';
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--red-primary), var(--blue-primary));
  border-radius: 2px;
  flex-shrink: 0;
}
.widget-title .en { font-size: 11px; color: var(--text-faint); font-weight: 500; letter-spacing: 1px; }

/* ===== Sidebar: Hot Articles ===== */
.hot-list { list-style: none; }
.hot-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}
.hot-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hot-rank {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.hot-item:nth-child(1) .hot-rank,
.hot-item:nth-child(2) .hot-rank,
.hot-item:nth-child(3) .hot-rank {
  background: linear-gradient(135deg, var(--red-primary), var(--blue-primary));
  color: #fff;
}
.hot-body { flex: 1; min-width: 0; }
.hot-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.hot-title:hover { color: var(--red-primary); }
.hot-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
  display: flex;
  gap: 10px;
}

/* ===== Sidebar: Tag Cloud ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tag {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 50px;
  background: var(--bg-warm);
  color: var(--text-mid);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  transition: all .2s;
  line-height: 1.4;
}
.cloud-tag:hover {
  background: linear-gradient(135deg, var(--red-primary), var(--blue-primary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}
.cloud-tag.strong { font-size: 14px; font-weight: 600; color: var(--blue-primary); background: var(--blue-light); }

/* ===== Sidebar: Subscribe CTA ===== */
.sidebar-subscribe {
  background: linear-gradient(135deg, var(--red-primary), #7F1D1D);
  border-radius: 12px;
  padding: 22px 20px;
  margin-top: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(185,28,28,.25);
}
.sidebar-subscribe h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sidebar-subscribe p { font-size: 12.5px; color: rgba(255,255,255,.88); line-height: 1.6; margin-bottom: 14px; }
.sidebar-subscribe .sub-btn {
  display: inline-block;
  background: #fff;
  color: var(--red-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  transition: transform .2s;
}
.sidebar-subscribe .sub-btn:hover { transform: translateY(-2px); }

/* ===== Article Toolbar (字号/打印/关闭 — 帝国CMS原生) ===== */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.tool-group { display: flex; align-items: center; gap: 6px; }
.tool-label { font-size: 13px; color: var(--text-light); margin-right: 2px; font-family: var(--font-sans); }
.tool-btn {
  min-width: 36px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-mid);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  transition: all .2s;
  cursor: pointer;
}
.tool-btn:hover { background: var(--blue-light); color: #fff; border-color: var(--blue-primary); }

/* ===== Pre / Next Navigation ===== */
/* ===== 上一篇 / 下一篇（3D 立体悬停卡片） ===== */
.prenext-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  perspective: 1000px; /* 3D 视角容器 */
}
.pn-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: linear-gradient(145deg, #ffffff, #f8f6f3);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .35s cubic-bezier(.25, .46, .45, .94);
  min-width: 0;
  position: relative;
  overflow: hidden;
  /* 初始微立体 */
  box-shadow:
    4px 4px 10px rgba(0,0,0,0.06),
    -2px -2px 8px rgba(255,255,255,0.9),
    inset 1px 1px 2px rgba(255,255,255,0.8);
}
/* 底部渐变装饰线 */
.pn-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16%;
  right: 16%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--red-primary), var(--blue-primary));
  opacity: 0;
  transition: opacity .35s, left .35s, right .35s;
}
.pn-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: transparent;
  box-shadow:
    12px 18px 36px rgba(30,58,138,0.15),
    -4px -6px 16px rgba(255,255,255,0.95),
    inset 1px 1px 2px rgba(255,255,255,0.85);
  /* 悬停时边框渐变光效 */
  border-image: linear-gradient(135deg, var(--red-primary), var(--blue-primary)) 1;
}
.pn-item:hover::after {
  opacity: 1;
  left: 5%;
  right: 5%;
}
.pn-next { text-align: right; align-items: flex-end; }
.pn-dir {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: color .35s;
}
.pn-item:hover .pn-dir { color: var(--red-primary); }
.pn-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all .35s;
  position: relative;
}
.pn-item:hover .pn-title {
  color: var(--red-dark); /* --red-dark: #7F1D1D */
  text-shadow: 0 1px 2px rgba(185,28,28,0.08);
}

/* ===== Related Articles Section (Below article) ===== */
.related-section {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}
.related-section h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-section h2::before {
  content: ''; width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--red-primary), var(--blue-primary));
  border-radius: 2px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-primary);
}
.related-card-img img { width: 100%; height: 160px; object-fit: cover; }
.related-card-body { padding: 16px; }
.related-card-cat {
  font-size: 12px;
  color: var(--red-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.related-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .article-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { order: 2; } /* 单栏时侧栏SEO内容置于正文之后，保持可见与可抓取 */
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .article-meta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-wrapper { padding: 24px 16px 40px; }
  .article-deck { border-left-width: 3px; padding-left: 14px; }
  .data-insight-box { padding: 20px; }
  .data-stat-num { font-size: 22px; }
  .author-card-full { flex-direction: column; text-align: center; align-items: center; }
  .author-card-links { justify-content: center; }
  .share-bar { justify-content: center; flex-wrap: wrap; }
  .article-toolbar { justify-content: center; }
  .prenext-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
