/* ==========================================================================
   components.css — 复用组件（首页 / 分类页 / 详情页共用）
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: #10151f; border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- M0 site-header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 14, 25, 0.92);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--gold-dim);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-6);
  height: calc(var(--h-header) - 3px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); color: var(--gold);
  background: linear-gradient(160deg, rgba(216, 178, 106, 0.16), rgba(216, 178, 106, 0.02));
}
.brand-name {
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ink); white-space: nowrap;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.main-nav a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 14.5px; color: var(--ink-soft); white-space: nowrap;
  transition: color .18s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--gold-strong); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; }
.main-nav .nav-drop {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; z-index: 80;
  min-width: 200px; max-height: 360px; overflow-y: auto;
  padding: 6px 0; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(4, 8, 16, 0.45);
}
.main-nav .nav-item:hover .nav-drop { display: flex; }
.main-nav .nav-drop a { display: block; padding: 7px 14px; font-size: 13px; color: var(--muted); }
.main-nav .nav-drop a:hover, .main-nav .nav-drop a:focus-visible { color: var(--gold-strong); background: var(--card-hi); }
.main-nav .nav-drop a::after { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.nav-note {
  font-size: 13.5px; color: var(--gold); padding-left: var(--space-4);
  border-left: 1px solid var(--line); white-space: nowrap;
}
.nav-note:hover { color: var(--gold-strong); }

/* ---------- 通用区块头 ---------- */
.section-head { display: flex; flex-direction: column; gap: 6px; }
.section-head h2 { font-family: var(--font-serif); font-size: var(--fs-h2); color: var(--ink); }
.section-head p { color: var(--muted); font-size: var(--fs-small); }
.section-head-center { align-items: center; text-align: center; }
.section-head-center h2 { display: flex; align-items: center; gap: 16px; color: var(--gold-strong); }
.section-head-center .rule { display: block; width: clamp(40px, 8vw, 110px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.section-head-center .rule:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--pill); line-height: 1.4;
  font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--gold); color: #12161d; font-weight: 600; border: 1px solid var(--gold); }
.btn-primary::after { content: "→"; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.btn-primary:hover { background: var(--gold-strong); border-color: var(--gold-strong); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(238, 231, 216, 0.32); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-strong); }

/* ---------- M1 hero ---------- */
.hero { position: relative; overflow: hidden; min-height: var(--h-hero); display: flex; align-items: center; background: var(--bg); }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 66%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(0.92) brightness(0.85); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
.hero-inner { position: relative; z-index: 1; padding-block: 38px 0; }
.hero-eyebrow {
  font-family: var(--font-serif); font-size: var(--fs-hero-eyebrow);
  line-height: 1.15; color: var(--gold-strong); letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--font-serif); font-size: var(--fs-hero);
  line-height: 1.16; color: var(--ink); margin-top: 22px;
  max-width: 15em; text-shadow: 0 2px 24px rgba(7, 12, 21, 0.6);
}
.hero-lede { margin-top: 14px; max-width: 26em; color: var(--ink-soft); font-size: var(--fs-lede); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags a {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--line-soft-2);
  border-radius: var(--pill); font-size: 11.5px; color: var(--muted); transition: color .2s, border-color .2s;
}
.hero-tags a:hover { color: var(--gold-strong); border-color: var(--line-strong); }

/* ---------- M2 category-index ---------- */
.category-index { min-height: var(--h-categories); padding-block: 46px 4px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.category-index .section-head { margin-bottom: 0; }
.category-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: stretch; }
.cat-card {
  display: flex; flex-direction: column; height: 100%; min-height: 220px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-2px); border-color: var(--line-strong); background: var(--card-hi); }
.cat-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92); transition: transform .35s ease; }
.cat-card:hover .cat-thumb img { transform: scale(1.04); }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.cat-name { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.cat-desc { display: block; margin-top: auto; padding-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- M3 buying-path ---------- */
.buying-path { min-height: var(--h-buying); display: flex; align-items: stretch; background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.buying-grid { display: grid; grid-template-columns: 0.9fr 3fr; gap: var(--space-6); align-items: center; padding-block: 16px; }
.buying-intro { position: relative; min-height: 200px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; }
.buying-intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.85); }
.buying-intro-text { position: relative; padding: 18px 20px; }
.buying-intro h2 { font-family: var(--font-serif); font-size: var(--fs-h2); color: var(--gold-strong); }
.buying-intro p { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.steps li { position: relative; padding-right: var(--space-4); }
.steps li + li::before {
  content: "→"; position: absolute; left: -22px; top: 10px;
  color: var(--gold-dim); font-size: 14px; opacity: .7;
}
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 14px; color: var(--gold); letter-spacing: 0.02em; }
.steps h3 { margin-top: 12px; font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.steps p { margin-top: 8px; font-size: var(--fs-small); line-height: 1.65; color: var(--muted); }

/* ---------- M4 featured-cards ---------- */
.featured { min-height: var(--h-featured); padding-block: 2px 24px; background: var(--bg); }
.featured .section-head { margin-bottom: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.feature-card { min-height: 176px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, background-color .2s ease; }
.feature-card:hover, .feature-card:focus-within { border-color: var(--line-strong); background: var(--card-hi); }
.feature-link { display: grid; grid-template-columns: 40% 1fr; gap: 0; height: 100%; }
.feature-thumb { display: block; overflow: hidden; background: var(--bg-soft); }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }
.feature-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.feature-body h3 { font-family: var(--font-serif); font-size: 17px; line-height: 1.4; color: var(--ink); }
.feature-body p { font-size: var(--fs-tiny); line-height: 1.6; color: var(--muted); }
.meta { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: var(--fs-tiny); color: var(--dim); }
.tag { padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--gold); font-size: 11.5px; }
.dot { color: var(--line-strong); }

/* ---------- M5 switch-table / M6 layout-compare 共用 split ---------- */
.switch-table, .layout-compare { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.switch-table { min-height: var(--h-switch); padding-block: 11px; }
.layout-compare { min-height: var(--h-layout); padding-block: 8px 7px; background: var(--bg); border-block: 1px solid var(--line-soft); }
.split { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: center; }
.split-intro { position: relative; padding: 22px 18px; min-width: 0; }
.split-intro img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); opacity: 0.32; filter: saturate(0.7); z-index: 0; mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.15)); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.15)); }
.split-intro-text { position: relative; z-index: 1; }
.split-intro h2 { font-family: var(--font-serif); font-size: var(--fs-h2); color: var(--gold-strong); }
.split-intro p { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); max-width: 9em; }

.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); padding: 6px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { padding: 6px 14px; text-align: left; font-weight: 500; color: var(--gold); font-size: var(--fs-tiny); letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
tbody th, tbody td { padding: 5px 14px; text-align: left; font-weight: 400; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(216, 178, 106, 0.04); }
.table-note { padding: 6px 14px 8px; font-size: 11.5px; color: var(--dim); }

.layout-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.layout-grid li { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 7px 7px 8px; text-align: center; }
.layout-grid img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; border-radius: 4px; filter: brightness(0.82); }
.layout-name { display: block; margin-top: 6px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 14px; color: var(--gold-strong); }
.layout-keys { display: block; font-size: 11.5px; color: var(--ink-soft); }
.layout-note { display: block; font-size: 11px; color: var(--dim); line-height: 1.4; }

/* ---------- M7 editorial-notes ---------- */
.editorial { min-height: var(--h-notes); padding-block: var(--space-5); background: var(--bg-deep); border-top: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) 1.1fr; gap: var(--space-4); align-items: start; }
.notes-intro h2 { font-family: var(--font-serif); font-size: 26px; color: var(--gold-strong); }
.notes-intro p { margin-top: 4px; font-size: var(--fs-tiny); color: var(--muted); }
.notes-list { display: contents; }
.notes-list > div { border-left: 1px solid var(--line); padding-left: 12px; }
.notes-list dt { font-size: var(--fs-small); color: var(--ink); font-weight: 600; }
.notes-list dd { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--dim); }
.revisions { border-left: 1px solid var(--line); padding-left: 12px; font-size: 11px; color: var(--dim); }
.revisions h3 { font-size: var(--fs-small); color: var(--ink); margin-bottom: 4px; }
.revisions li { line-height: 1.6; }
.revisions time { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; color: var(--gold-dim); }

/* ---------- M8 site-footer ---------- */
.site-footer { position: relative; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 26px var(--space-6); padding-block: 24px 22px; }
.footer-brand { flex: 1.4 1 240px; min-width: 200px; }
.footer-links, .footer-about { flex: 1 1 170px; min-width: 150px; }
.footer-brand p { margin-top: 10px; max-width: 22em; font-size: var(--fs-tiny); line-height: 1.7; color: var(--muted); }
.footer-links h3, .footer-about h3 { font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a, .footer-about a { font-size: var(--fs-tiny); color: var(--muted); }
.footer-links a:hover, .footer-about a:hover { color: var(--gold-strong); }
.footer-about li + li { margin-top: 4px; }
.footer-icp { font-size: var(--fs-tiny); color: var(--dim); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 10px 12px; border-top: 1px solid var(--line-soft);
}
.footer-bottom p { font-size: 11.5px; color: var(--dim); }
.copyright { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; color: var(--muted); white-space: nowrap; }
.copyright::before { content: "© "; }
.table-wrap table { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }

/* ---------- 分区标题字号（按视觉稿逐个落位） ---------- */
.category-index .section-head h2 { font-size: clamp(24px, 2.3vw, 32px); }
.featured .section-head h2 { font-size: clamp(24px, 2.2vw, 30px); }
.split-intro h2 { font-size: clamp(24px, 2.5vw, 34px); }

/* ==========================================================================
   内页组件（分类页 / 详情页）— 复用首页 token，不新造颜色与字号
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.crumb { padding-top: 22px; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-tiny); color: var(--dim); }
.crumb li { display: inline-flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: var(--line-strong); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold-strong); }
.crumb [aria-current="page"] { color: var(--ink-soft); }

/* ---------- 分类页 hero ---------- */
.page-hero { padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { margin-top: 14px; font-family: var(--font-serif); font-size: clamp(32px, 3.4vw, 46px); color: var(--ink); }
.page-hero-sub { margin-top: 4px; font-family: var(--font-serif); font-size: clamp(17px, 1.6vw, 21px); color: var(--gold-strong); }
.page-hero-lede { margin-top: 14px; max-width: 62ch; color: var(--ink-soft); font-size: var(--fs-lede); line-height: 1.8; }
.stat-row { display: flex; gap: 30px; margin-top: 20px; }
.stat-row li { display: flex; align-items: baseline; gap: 7px; }
.stat-row strong { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 24px; color: var(--gold); font-weight: 500; }
.stat-row span { font-size: var(--fs-tiny); color: var(--muted); }

/* ---------- 筛选排序条 ---------- */
.list-toolbar { position: sticky; top: calc(var(--h-header) - 1px); z-index: 30; background: rgba(9, 14, 25, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border: 1px solid var(--line-soft-2); border-radius: var(--pill);
  font-size: var(--fs-small); color: var(--muted); transition: color .18s, border-color .18s, background-color .18s;
}
.chip::after { content: " " attr(data-count); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; color: var(--dim); }
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #12161d; font-weight: 600; }
.chip[aria-pressed="true"]::after { color: rgba(18, 22, 29, 0.65); }
.sort-group { display: flex; align-items: center; gap: 8px; flex: none; position: relative; }
.sort-group::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 1.4px solid var(--muted); border-bottom: 1.4px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.sort-select {
  appearance: none; padding: 7px 32px 7px 12px; border: 1px solid var(--line-soft-2); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink-soft); font-size: var(--fs-small); cursor: pointer;
}
.sort-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 列表卡 ---------- */
.list-grid-wrap { padding-block: 24px 8px; }
.list-status { font-size: var(--fs-small); color: var(--muted); margin-bottom: 16px; }
.list-status::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gold-dim); margin-right: 10px; vertical-align: middle; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, background-color .2s, transform .2s; }
.post-card:hover, .post-card:focus-within { border-color: var(--line-strong); background: var(--card-hi); transform: translateY(-2px); }
.post-card[hidden] { display: none; }
.post-link { display: flex; flex-direction: column; height: 100%; }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.post-body .tag { align-self: flex-start; }
.post-title { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 700; }
.post-summary { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.post-body .meta { margin-top: auto; padding-top: 6px; }
.list-count { display: flex; align-items: center; flex: none; }
.list-count .list-status { margin-bottom: 0; }
.empty-state { padding: 40px 0 48px; text-align: center; color: var(--muted); }
.empty-state p { margin-bottom: 14px; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 14px;
  font-size: 13.5px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--pill);
}
.pager a:hover, .pager a:focus-visible { color: var(--gold-strong); border-color: var(--line-strong); }
.pager a.is-active { background: var(--gold); border-color: var(--gold); color: #12161d; font-weight: 600; }
.pager .pager-gap { border-color: transparent; background: transparent; }

/* ---------- 分类说明 ---------- */
.list-description-section { padding-block: 30px 10px; background: var(--bg-soft); border-top: 1px solid var(--line-soft); margin-top: 24px; }
.list-description { max-width: 860px; }
.list-description h2 { font-family: var(--font-serif); font-size: var(--fs-5); color: var(--gold-strong); margin-bottom: 12px; }
.list-description p { font-size: var(--fs-body); line-height: 1.95; color: var(--ink-soft); }

/* ---------- 相关分类 ---------- */
.cross-links { padding-block: 34px 44px; }
.cross-title { font-family: var(--font-serif); font-size: 24px; color: var(--ink); margin-bottom: 16px; }
.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cross-grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color .2s, background-color .2s; }
.cross-grid a:hover { border-color: var(--line-strong); background: var(--card-hi); }
.cross-name { font-family: var(--font-serif); font-size: 17px; color: var(--ink); }
.cross-desc { font-size: var(--fs-tiny); color: var(--muted); }

/* ---------- 详情页 ---------- */
.article-head { max-width: 900px; padding-block: 18px 26px; border-bottom: 1px solid var(--line-soft); }
.article-head h1 { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.35; color: var(--ink); }
.article-lede { margin-top: 14px; max-width: 58ch; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-tiny); color: var(--dim); }
.article-meta a { color: var(--muted); }
.article-meta a:hover { color: var(--gold-strong); }
.article-note { margin-top: 10px; font-size: var(--fs-tiny); color: var(--dim); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 56px; padding-block: 30px 20px; }
.article { grid-column: 1; grid-row: 1; min-width: 0; max-width: 720px; }
.article-toc { grid-column: 2; grid-row: 1; }
.article-intro { font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--gold-dim); }
.article section { margin-top: 34px; }
.article h2 {
  position: relative; font-family: var(--font-serif); font-size: 25px; color: var(--ink);
  padding-left: 14px; margin-bottom: 12px;
}
.article h2::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--gold); }
.article p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); }
.article p + p { margin-top: 12px; }
.article a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article figure { margin: 22px 0 4px; }
.article figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.article figcaption { margin-top: 8px; font-size: 12.5px; color: var(--dim); text-align: center; }
.article-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.article-layout.no-toc .article { max-width: 820px; margin-inline: auto; grid-column: 1; }

.article-toc { position: sticky; top: calc(var(--h-header) + 20px); align-self: start; padding: 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.article-toc h2 { font-family: var(--font-serif); font-size: 15px; color: var(--gold); letter-spacing: .08em; }
.article-toc ol { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.article-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: var(--fs-tiny); line-height: 1.5; color: var(--muted); transition: background-color .18s, color .18s; }
.article-toc a:hover { color: var(--ink); background: rgba(216, 178, 106, .08); }
.article-toc a.is-active { color: var(--gold-strong); background: rgba(216, 178, 106, .12); }
.toc-num { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; color: var(--gold-dim); flex: none; }
.toc-toggle { display: none; }

.related { margin-top: 24px; padding-block: 30px 50px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-list a { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color .2s, background-color .2s; }
.related-list a:hover { border-color: var(--line-strong); background: var(--card-hi); }
.related-title { font-family: var(--font-serif); font-size: 16px; color: var(--ink); }
.related-desc { font-size: var(--fs-tiny); color: var(--muted); }
