/* =========================================================
   BY赛场 · 共享样式表  /assets/site.css
   墨绿指挥舱底 · 纸张档案卡 · 熔金 / 电光蓝 / 暖橙数据标记
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg, video, canvas { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061F1A;
  --forest: #0B2B24;
  --forest-deep: #08251F;
  --moss: #2E5D4B;
  --stone: #A8A69A;
  --paper: #F4EEDC;
  --gold: #D6A83E;
  --blue: #3DA8FF;
  --ember: #F26A3D;
  --paper-shadow: #D8D0BE;
  --muted: #7E9388;

  --line: rgba(46, 93, 75, 0.85);
  --line-soft: rgba(46, 93, 75, 0.42);
  --line-paper: rgba(216, 208, 190, 0.26);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --spine-w: 86px;
  --gutter: clamp(16px, 3.2vw, 46px);
  --maxw: 1360px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(46, 93, 75, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 93, 75, 0.14) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

.site-main { display: block; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 10px 22px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0 0 3px 3px;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. Header / 书脊 + 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header[data-railed="true"] {
  box-shadow: 0 22px 44px -32px rgba(0, 0, 0, 0.95);
}

.masthead {
  display: grid;
  grid-template-columns: var(--spine-w) minmax(0, 1fr);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* 书脊 */
.masthead__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 12px;
  background-color: var(--forest);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 23px,
    var(--line-soft) 23px 24px
  );
  border-right: 1px solid var(--line);
}

.spine__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.spine__mark {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(214, 168, 62, 0.45);
}

.spine__word {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--paper);
}

.spine__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 命令栏 */
.masthead__console {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.console__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(11, 43, 36, 0.92), rgba(6, 31, 26, 0.55));
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.console__line {
  font-family: var(--font-mono);
  color: var(--stone);
  letter-spacing: 0.12em;
}

.console__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid rgba(214, 168, 62, 0.55);
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.console__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.console__utility {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.console__util-link {
  color: var(--muted);
  letter-spacing: 0.14em;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.console__util-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.console__bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 56px;
  padding-inline: var(--gutter);
  background: var(--ink);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.nav-toggle__bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 6px 0 var(--gold), 0 -6px 0 var(--gold);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--ember);
  box-shadow: 0 6px 0 var(--ember), 0 -6px 0 var(--ember);
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 16px 14px;
  color: var(--stone);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--moss);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(214, 168, 62, 0.06);
  border-bottom-color: var(--gold);
}

.nav-link:hover .nav-link__idx { color: var(--gold); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(214, 168, 62, 0.09);
  border-bottom-color: var(--paper);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border: 1px solid rgba(214, 168, 62, 0.65);
  pointer-events: none;
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--gold); }

/* 主导航 CTA */
.console__cta {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.console__cta::after {
  content: "→";
  font-family: var(--font-mono);
}

.console__cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 168, 255, 0.18);
}

/* ---------- 6. Footer / 倒置档案夹 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 7vw, 112px);
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 58%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 42%, transparent 78%);
  opacity: 0.85;
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.footer__brand { min-width: 0; }

.footer__wordmark {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--paper);
}

.footer__note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--stone);
}

.footer__seal {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(214, 168, 62, 0.5);
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.footer__col { min-width: 0; }

.footer__heading {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  display: inline-block;
  padding: 6px 0;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

.footer__hint {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* 联系方式 */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--stone);
}

.contact-line__key {
  flex: 0 0 auto;
  padding-top: 3px;
  width: 40px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-line__body {
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1px 0;
  color: var(--paper);
  font-size: 13.5px;
  text-align: left;
  border-bottom: 1px dashed rgba(168, 166, 154, 0.5);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.copy-chip:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.copy-chip.is-copied {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.copy-chip__hint {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 下载轨道 */
.footer__rail {
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 46px) auto 0;
  padding-inline: var(--gutter);
}

.rail__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 26px);
  background: rgba(214, 168, 62, 0.07);
  border: 1px solid rgba(214, 168, 62, 0.38);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rail__link:hover {
  background: rgba(61, 168, 255, 0.1);
  border-color: var(--blue);
}

.rail__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.rail__desc {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.rail__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--paper);
  transition: transform var(--dur) var(--ease);
}

.rail__link:hover .rail__arrow { transform: translateX(4px); }

/* 底部基线 */
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 30px;
  max-width: var(--maxw);
  margin: clamp(22px, 3vw, 34px) auto 0;
  padding: 18px var(--gutter) clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__copy { color: var(--stone); }

.footer__icp { color: var(--stone); }

.footer__legal-note {
  flex: 1 1 320px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- 7. 版式容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { border-bottom: 1px solid var(--line-soft); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--moss);
}

.breadcrumb a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ---------- 9. 区块标题 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-index {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(214, 168, 62, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.section-title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  color: var(--paper);
}

.section-sub {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--moss);
  background: transparent;
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(61, 168, 255, 0.22);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(61, 168, 255, 0.2);
}

.btn--ghost {
  border-color: rgba(168, 166, 154, 0.4);
  color: var(--stone);
}

.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: none;
}

/* ---------- 11. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: rgba(11, 43, 36, 0.6);
  color: var(--stone);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tag:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tag--gold { color: var(--gold); border-color: rgba(214, 168, 62, 0.5); }
.tag--blue { color: var(--blue); border-color: rgba(61, 168, 255, 0.5); }
.tag--ember { color: var(--ember); border-color: rgba(242, 106, 61, 0.5); }

.tag[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 12. 档案卡 ---------- */
.ledger {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(11, 43, 36, 0.96), rgba(8, 37, 31, 0.96));
  border: 1px solid var(--line);
  color: var(--paper);
}

.ledger::before {
  content: "";
  position: absolute;
  inset: 4px 4px auto auto;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(214, 168, 62, 0.55);
  border-right: 1px solid rgba(214, 168, 62, 0.55);
  pointer-events: none;
}

.ledger--paper {
  background: var(--paper);
  border-color: var(--paper-shadow);
  color: var(--forest-deep);
  box-shadow: 5px 5px 0 rgba(216, 208, 190, 0.22);
}

.ledger--paper::before { border-color: rgba(46, 93, 75, 0.45); }

/* ---------- 13. 数字 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 14. 表格 ---------- */
.data-table {
  width: 100%;
  font-size: 13.5px;
}

.data-table caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: baseline;
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom-color: var(--line);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color var(--dur) var(--ease);
}

.data-table tbody tr:hover { background: rgba(61, 168, 255, 0.06); }

.data-table td.num { color: var(--paper); }

/* ---------- 15. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 16. 图片容器（页面阶段使用） ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background-color: var(--forest);
  background-image:
    repeating-linear-gradient(to right, rgba(46, 93, 75, 0.32) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, rgba(46, 93, 75, 0.32) 0 1px, transparent 1px 44px);
}

.img-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(6, 31, 26, 0.5);
  background: linear-gradient(180deg, rgba(6, 31, 26, 0) 55%, rgba(6, 31, 26, 0.6) 100%);
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--chart { aspect-ratio: 4 / 3; }

/* ---------- 17. 滚动进度线 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
  pointer-events: none;
  will-change: transform;
}

/* ---------- 18. 响应式：平板 ---------- */
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__hint { max-width: none; }
}

@media (max-width: 1020px) {
  html { scroll-padding-top: 120px; }
  .nav-link { padding-inline: 11px; font-size: 13px; }
  .console__cta { padding: 8px 13px; font-size: 12px; }
}

/* ---------- 19. 响应式：移动导航 ---------- */
@media (max-width: 940px) {
  html { scroll-padding-top: 96px; }

  .masthead { grid-template-columns: 1fr; }

  .masthead__spine {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--gutter);
    height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background-image: none;
  }

  .spine__brand {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .spine__word {
    writing-mode: horizontal-tb;
    letter-spacing: 0.24em;
    font-size: 12.5px;
  }

  .spine__mark { font-size: 14px; }
  .spine__meta { display: none; }

  .console__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: 6px;
    min-height: 0;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }

  .console__cta {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .primary-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    height: auto;
    gap: 0;
    padding-bottom: 10px;
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    font-size: 14px;
  }

  .nav-link:hover {
    border-left-color: var(--gold);
    border-bottom-color: var(--line-soft);
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--paper);
    border-bottom-color: var(--line-soft);
    background: rgba(214, 168, 62, 0.07);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 20. 响应式：手机 ---------- */
@media (max-width: 680px) {
  .console__top {
    gap: 10px;
    padding-block: 8px;
    font-size: 10px;
  }

  .console__line { letter-spacing: 0.08em; }

  .console__badge {
    padding: 2px 7px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .console__utility {
    margin-left: 0;
    width: 100%;
    gap: 16px;
    font-size: 10px;
  }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__col:last-child { grid-column: auto; }

  .rail__link {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 6px;
  }

  .rail__desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rail__arrow {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .section-head { gap: 6px 12px; }

  .footer__base {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- 21. 无障碍动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tag:hover,
  .rail__link:hover .rail__arrow { transform: none; }
}
