/* ============================================================
   天行赛事 · /assets/site.css
   共享外壳：品牌轨道 + 命令栏 + 页脚 + 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, hr, pre {
  margin: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

table { border-collapse: collapse; }

main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --danxia: #A9341C;
  --danxia-deep: #6B1F10;
  --gold: #D9A441;
  --gold-light: #F0CB79;
  --pitch: #123F33;
  --pitch-light: #1E5B49;
  --night: #0D1A2B;
  --indigo: #33305E;
  --wine: #5E1F2A;
  --sand: #F4EEE2;
  --sand-line: #C7BCA8;
  --ink: #17130F;
  --ink-soft: #4A4238;
  --ink-mute: #6E6355;

  --font-display: "HarmonyOS Sans SC", "Alibaba PuHuiTi 3.0", "Noto Sans SC", sans-serif;
  --font-body: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail-w: 0px;
  --cmd-h: 60px;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --radius: 3px;
  --hair: 1px solid var(--sand-line);
  --shadow-soft: 0 1px 0 rgba(23, 19, 15, .04), 0 10px 28px -22px rgba(23, 19, 15, .45);

  --stat-color: var(--danxia-deep);
  --eyebrow-color: var(--danxia);
}

@media (min-width: 1024px) {
  :root { --rail-w: 104px; --cmd-h: 68px; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 112px; --cmd-h: 72px; }
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  padding-left: var(--rail-w);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: 18px; letter-spacing: -.01em; }

strong, b { font-weight: 700; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.005em;
}

/* ---------- 4. 焦点与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.brand-rail :focus-visible,
.site-footer :focus-visible,
.site-nav[data-open] :focus-visible,
.zone-danxia :focus-visible,
.zone-pitch :focus-visible,
.zone-night :focus-visible,
.zone-indigo :focus-visible,
.zone-wine :focus-visible,
.on-dark :focus-visible {
  outline-color: var(--gold-light);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 18px;
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: transform .16s ease;
}

.skip-link:focus { transform: none; }

#main-content { scroll-margin-top: calc(var(--cmd-h) + 16px); }

/* ---------- 5. 容器 / 栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(56px, 7.5vw, 118px); }
.section--tight { padding-block: clamp(36px, 4.5vw, 68px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.grid-12 > * { grid-column: span 12; }

@media (min-width: 768px) {
  .c-1 { grid-column: span 1; }
  .c-2 { grid-column: span 2; }
  .c-3 { grid-column: span 3; }
  .c-4 { grid-column: span 4; }
  .c-5 { grid-column: span 5; }
  .c-6 { grid-column: span 6; }
  .c-7 { grid-column: span 7; }
  .c-8 { grid-column: span 8; }
  .c-9 { grid-column: span 9; }
  .c-10 { grid-column: span 10; }
  .c-11 { grid-column: span 11; }
  .c-12 { grid-column: span 12; }
}

.stack { display: flex; flex-direction: column; gap: var(--stack, 16px); }

.divider {
  height: 1px;
  border: 0;
  background: var(--sand-line);
  margin-block: clamp(28px, 4vw, 56px);
}

/* ---------- 6. 分区色彩系统 ---------- */
.zone-danxia,
.zone-pitch,
.zone-night,
.zone-indigo,
.zone-wine,
.on-dark {
  --ink: var(--sand);
  --ink-soft: rgba(244, 238, 226, .80);
  --ink-mute: rgba(244, 238, 226, .60);
  --sand-line: rgba(199, 188, 168, .30);
  --stat-color: var(--gold);
  --eyebrow-color: var(--gold);
  color: var(--ink);
}

.zone-danxia { background: var(--danxia-deep); }
.zone-pitch  { background: var(--pitch); }
.zone-night  { background: var(--night); }
.zone-indigo { background: var(--indigo); }
.zone-wine   { background: var(--wine); }
.zone-sand   { background: var(--sand); }

.zone-danxia,
.zone-pitch,
.zone-night,
.zone-indigo,
.zone-wine {
  position: relative;
  border-top: 1px solid rgba(199, 188, 168, .28);
  border-bottom: 1px solid rgba(199, 188, 168, .28);
}

.tex-grid { position: relative; }

.tex-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(244, 238, 226, .05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(244, 238, 226, .05) 0 1px, transparent 1px 28px);
}

.tex-grid > * { position: relative; }

.zone-sand .tex-grid::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(23, 19, 15, .05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(23, 19, 15, .05) 0 1px, transparent 1px 28px);
}

/* ---------- 7. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 36em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose { max-width: 38em; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 1.7em; margin-bottom: .55em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: rgba(169, 52, 28, .10);
  padding: .12em .4em;
  border-radius: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: var(--hair);
  border-radius: 999px;
  background: rgba(244, 238, 226, .45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.zone-danxia .tag,
.zone-pitch .tag,
.zone-night .tag,
.zone-indigo .tag,
.zone-wine .tag,
.on-dark .tag { background: transparent; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .62em 1.15em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--danxia);
  border-color: var(--danxia-deep);
  color: var(--sand);
}

.btn-primary:hover { background: var(--danxia-deep); }

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

.btn-gold:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  border-color: var(--sand-line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--danxia);
  color: var(--danxia-deep);
}

.zone-danxia .btn-ghost,
.zone-pitch .btn-ghost,
.zone-night .btn-ghost,
.zone-indigo .btn-ghost,
.zone-wine .btn-ghost,
.on-dark .btn-ghost {
  border-color: rgba(199, 188, 168, .55);
  color: var(--sand);
}

.zone-danxia .btn-ghost:hover,
.zone-pitch .btn-ghost:hover,
.zone-night .btn-ghost:hover,
.zone-indigo .btn-ghost:hover,
.zone-wine .btn-ghost:hover,
.on-dark .btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-sm { padding: .44em .82em; font-size: 13px; }

/* ---------- 9. 数据组件 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .86;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--stat-color);
}

.stat-unit {
  font-size: .32em;
  font-weight: 700;
  letter-spacing: .06em;
  margin-left: .18em;
  color: var(--ink-mute);
}

.stat-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

.data-table {
  width: 100%;
  font-size: 14.5px;
}

.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: var(--hair);
  text-align: left;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.data-table tbody tr:hover { background: rgba(217, 164, 65, .12); }

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--stat-color);
}

/* ---------- 10. 面包屑 / 提示块 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

.crumb { color: var(--ink-soft); }
.crumb:hover { color: var(--danxia); }
.crumb-sep { color: var(--sand-line); }
.crumb[aria-current="page"] { color: var(--stat-color); font-weight: 700; }

.callout {
  padding: 20px 22px;
  border: var(--hair);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(244, 238, 226, .55);
}

.zone-danxia .callout,
.zone-pitch .callout,
.zone-night .callout,
.zone-indigo .callout,
.zone-wine .callout,
.on-dark .callout { background: rgba(13, 26, 43, .28); }

.callout-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- 11. 图文容器 ---------- */
.figure { margin: 0; }

.figure-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(169, 52, 28, .16), rgba(18, 63, 51, .18)),
    repeating-linear-gradient(45deg, rgba(23, 19, 15, .06) 0 1px, transparent 1px 12px);
}

.figure-media img,
.figure-media video,
.figure-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--tall { aspect-ratio: 4 / 5; }
.figure-media--square { aspect-ratio: 1 / 1; }

.figure-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(13, 26, 43, .88), rgba(13, 26, 43, 0));
  color: var(--sand);
  font-size: 14px;
}

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
}

/* ---------- 12. 标签页 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 26px;
  border-bottom: var(--hair);
}

.tab {
  position: relative;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-mute);
  transition: color .16s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  transition: background-color .16s ease;
}

.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: transparent;
  transition: background-color .16s ease;
}

.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] { color: var(--stat-color); }
.tab[aria-selected="true"]::after { background: var(--gold); }
.tab[aria-selected="true"]::before { background: var(--danxia); }

.zone-danxia .tab[aria-selected="true"]::before,
.zone-pitch .tab[aria-selected="true"]::before,
.zone-night .tab[aria-selected="true"]::before,
.zone-indigo .tab[aria-selected="true"]::before,
.zone-wine .tab[aria-selected="true"]::before,
.on-dark .tab[aria-selected="true"]::before { background: var(--gold-light); }

.tabpanel { padding-top: 4px; }
.tabpanel[hidden] { display: none; }

/* ---------- 13. 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .2s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 品牌轨道 ---------- */
.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  width: var(--rail-w);
  padding: 22px 12px 20px;
  border-right: 1px solid rgba(23, 19, 15, .38);
  background:
    repeating-linear-gradient(115deg, rgba(244, 238, 226, .055) 0 1px, transparent 1px 15px),
    linear-gradient(180deg, var(--danxia) 0%, var(--danxia-deep) 100%);
  color: var(--sand);
}

@media (min-width: 1024px) {
  .brand-rail { display: flex; }
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  width: 100%;
}

.rail-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 203, 121, .6);
  border-radius: 2px;
  background: rgba(23, 19, 15, .3);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.rail-name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--sand);
}

.rail-tagline {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: .3em;
  color: rgba(240, 203, 121, .82);
}

@media (max-height: 800px) {
  .rail-tagline { display: none; }
}

.rail-index {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.rail-index-title {
  padding-bottom: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(244, 238, 226, .5);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 2px;
  color: rgba(244, 238, 226, .7);
  transition: color .16s ease, background-color .16s ease;
}

.rail-link:hover {
  color: var(--sand);
  background: rgba(244, 238, 226, .1);
}

.rail-link[aria-current="page"] {
  color: #fff;
  background: rgba(23, 19, 15, .26);
}

.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--gold-light);
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(240, 203, 121, .75);
}

.rail-link[aria-current="page"] .rail-num { color: var(--gold-light); }

.rail-label {
  font-size: 13px;
  letter-spacing: .06em;
}

.rail-coord {
  padding-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: rgba(244, 238, 226, .52);
}

/* ---------- 15. 命令栏 ---------- */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 238, 226, .95);
  border-bottom: var(--hair);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cmd-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  height: var(--cmd-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  transition: height .18s ease;
}

.cmd-bar[data-scrolled] .cmd-inner { height: 52px; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--danxia), var(--gold) 60%, var(--gold-light));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 40px;
  border: var(--hair);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .16s ease, color .16s ease;
}

.nav-toggle:hover {
  border-color: var(--danxia);
  color: var(--danxia-deep);
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cmd-brand {
  display: none;
  flex: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--danxia-deep);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .cmd-brand { display: inline-block; }
}

.cmd-now {
  display: none;
  align-items: baseline;
  gap: 9px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .cmd-now { display: flex; }
}

.cmd-now-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-mute);
}

.cmd-now-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--danxia-deep);
}

/* 桌面导航 */
.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .9vw, 18px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .16s ease;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: transparent;
  transition: background-color .16s ease;
}

.nav-link:hover { color: var(--danxia-deep); }
.nav-link:hover::after { background: var(--sand-line); }

.nav-link[aria-current="page"] {
  color: var(--danxia-deep);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after { background: var(--gold-light); }
.nav-link[aria-current="page"] .nav-idx { color: var(--danxia); }

/* 移动端抽屉导航 */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    flex: none;
    max-height: calc(100vh - var(--cmd-h));
    overflow-y: auto;
    padding: 14px var(--pad) 24px;
    background: var(--night);
    border-top: 2px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 12px 14px 16px;
    border-bottom: 1px solid rgba(199, 188, 168, .18);
    font-size: 18px;
    color: var(--sand);
  }

  .nav-link::after { display: none; }

  .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: transparent;
    transition: background-color .16s ease;
  }

  .nav-link:hover {
    color: var(--gold-light);
    background: rgba(244, 238, 226, .06);
  }

  .nav-link[aria-current="page"] {
    color: var(--gold-light);
    background: rgba(169, 52, 28, .3);
  }

  .nav-link[aria-current="page"]::before { background: var(--gold-light); }

  .nav-idx { color: var(--gold); font-size: 11px; }
}

.cmd-tail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.cmd-status {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--pitch);
}

@media (min-width: 1200px) {
  .cmd-status { display: inline-flex; }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 164, 65, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}

.cmd-cta { flex: none; }

@media (max-width: 480px) {
  .cmd-cta { padding: .5em .8em; font-size: 13px; }
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  overflow: hidden;
  background: var(--night);
  color: rgba(244, 238, 226, .78);
}

.footer-ridge {
  height: 5px;
  background: linear-gradient(90deg, var(--danxia), var(--gold) 32%, var(--pitch) 64%, var(--indigo));
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 6vw, 84px) 28px;
}

.footer-watermark {
  position: absolute;
  right: 0;
  bottom: -.16em;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 210px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 226, .09);
  pointer-events: none;
  user-select: none;
}

.footer-top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); }
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--sand);
}

.footer-desc {
  margin-top: 14px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 238, 226, .72);
}

.footer-coord {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer-group-title {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(199, 188, 168, .22);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 15px;
  color: rgba(244, 238, 226, .8);
  transition: color .16s ease;
}

.footer-link:hover { color: var(--gold-light); }

.footer-link[aria-current="page"] {
  color: var(--gold-light);
  font-weight: 700;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 24px;
  border-top: 1px solid rgba(199, 188, 168, .22);
  border-bottom: 1px solid rgba(199, 188, 168, .22);
}

@media (min-width: 760px) {
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 15px;
  color: var(--sand);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
}

.footer-note {
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 238, 226, .55);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(244, 238, 226, .62);
}

/* ---------- 17. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .pulse-dot { animation: none; }
}
