/* =============================================================
   九五至尊3站 · /assets/site.css
   共享外壳：reset → 变量 → 中文排版 → 工具类 → 头部 → 导航 →
   按钮 → 正文容器与组件 → 媒体框 → 页脚 → 动效 → 响应式
   ============================================================= */

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

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

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

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --indigo: #0E1730;
  --indigo-2: #1B2C55;
  --indigo-3: #14203C;
  --gold: #C9A24A;
  --gold-lit: #F1D98A;
  --paper: #F3EEE3;
  --paper-2: #E7DFCE;
  --ink: #0A0D14;
  --cinnabar: #B23A2E;
  --celadon: #5B8C7B;
  --gray: #8B92A3;
  --electric: #3FD0C9;

  /* 字体 */
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 字号阶 128 / 72 / 44 / 28 / 20 / 17 / 15 / 13 */
  --step-128: clamp(56px, 8.5vw, 128px);
  --step-72: clamp(40px, 6vw, 72px);
  --step-44: clamp(30px, 4vw, 44px);
  --step-28: clamp(22px, 2.6vw, 28px);
  --step-20: 20px;
  --step-17: 17px;
  --step-15: 15px;
  --step-13: 13px;

  /* 尺度 */
  --wrap: 1440px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --rail: 96px;
  --header-h: 68px;

  /* 线条与阴影 */
  --line-gold: 1px solid rgba(201, 162, 74, 0.42);
  --line-ink: 3px solid var(--ink);
  --shadow-card: 8px 8px 0 var(--indigo-2);
  --shadow-shot: 8px 8px 0 var(--indigo);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. 基准中文排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-17);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  text-wrap: balance;
}

h1 { font-size: var(--step-44); }
h2 { font-size: var(--step-28); }
h3 { font-size: var(--step-20); }
h4 { font-size: var(--step-17); }

::selection { background: var(--gold); color: var(--indigo); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.section--indigo :focus-visible,
.section--dark :focus-visible {
  outline-color: var(--gold-lit);
}

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

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: 760px; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.prose { max-width: 36em; }
.prose p + p { margin-top: 1.05em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }

.stack { display: grid; gap: clamp(16px, 2.2vw, 28px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rule { height: 1px; background: rgba(201, 162, 74, 0.45); border: 0; }
.rule-heavy { height: 3px; background: var(--ink); border: 0; }
.rule-gold { height: 3px; background: var(--gold); border: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnabar);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section--indigo .eyebrow,
.section--dark .eyebrow { color: var(--gold); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--indigo-2);
}

.link-inline {
  color: var(--indigo-2);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.link-inline:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.section--indigo .link-inline,
.section--dark .link-inline { color: var(--gold-lit); border-bottom-color: rgba(241, 217, 138, 0.5); }

.section--indigo .link-inline:hover,
.section--dark .link-inline:hover { color: var(--paper); border-bottom-color: var(--paper); }

.state-ok { color: var(--celadon); }
.state-warn { color: var(--cinnabar); }

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--indigo);
  color: var(--paper);
  box-shadow: 0 6px 0 rgba(10, 13, 20, 0.28);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.2vw, 36px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--gold);
  color: var(--indigo);
  border: 2px solid var(--gold-lit);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--indigo-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand:hover .brand-seal {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--indigo-2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gray);
  white-space: nowrap;
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(201, 162, 74, 0.22);
  overflow: hidden;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* ---------- 7. 导航 ---------- */
.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 7px;
  color: rgba(243, 238, 227, 0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: var(--indigo-2);
}

.nav-link:hover::before { opacity: 0.4; transform: scale(1); }

.nav-link[aria-current="page"] {
  color: var(--gold-lit);
  background: rgba(27, 44, 85, 0.75);
  border-bottom-color: var(--gold);
}

.nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.18);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.18s ease, color 0.18s ease;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-lit);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover { background: rgba(201, 162, 74, 0.16); }

.nav-toggle-box {
  display: grid;
  gap: 3px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}

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

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: var(--step-15);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.16s ease, transform 0.16s ease;
}

.btn-sm { padding: 8px 14px; font-size: 14px; }

.btn-gold {
  background: var(--gold);
  color: var(--indigo);
  border-color: var(--gold-lit);
  box-shadow: 4px 4px 0 rgba(10, 13, 20, 0.5);
}

.btn-gold:hover {
  background: var(--gold-lit);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(10, 13, 20, 0.5);
}

.btn-gold:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(10, 13, 20, 0.5); }

.btn-ink {
  background: var(--ink);
  color: var(--gold-lit);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--indigo-2);
}

.btn-ink:hover { background: var(--indigo); transform: translate(-1px, -1px); box-shadow: 8px 8px 0 var(--indigo-2); }
.btn-ink:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--indigo-2); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-line:hover { background: var(--ink); color: var(--gold-lit); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 238, 227, 0.5);
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(243, 238, 227, 0.1); border-color: var(--gold); color: var(--gold-lit); }

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

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

.crumbs li + li::before { content: "›"; color: var(--gold); }

.crumbs a {
  color: var(--indigo-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 44, 85, 0.32);
}

.crumbs a:hover { color: var(--cinnabar); border-bottom-color: currentColor; }

.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 10. 区块与标题层级 ---------- */
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--indigo { background: var(--indigo); color: var(--paper); }
.section--dark { background: var(--indigo-3); color: var(--paper); }

.section--indigo + .section--indigo,
.section--dark + .section--dark { border-top: 1px solid rgba(201, 162, 74, 0.28); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.display-xl { font-size: var(--step-128); }
.display-l { font-size: var(--step-72); }
.display-m { font-size: var(--step-44); }

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.8;
  max-width: 34em;
  color: var(--indigo-2);
}

.section--indigo .lede,
.section--dark .lede { color: rgba(243, 238, 227, 0.78); }

/* ---------- 11. 编号轨 ---------- */
.rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
}

.rail-num {
  position: sticky;
  top: calc(var(--header-h) + 34px);
  display: inline-block;
  padding-top: 10px;
  border-top: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.section--paper .rail-num { color: var(--cinnabar); border-top-color: var(--cinnabar); }

/* ---------- 12. 卡片 / 步骤 / 图例 / 筛选 ---------- */
.card {
  background: var(--paper);
  color: var(--ink);
  border: var(--line-ink);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vw, 32px);
}

.card--dark {
  background: var(--indigo-2);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.card--flat { box-shadow: none; }

.card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section--paper .card-num { color: var(--cinnabar); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(201, 162, 74, 0.5);
  border: 1px solid rgba(201, 162, 74, 0.5);
}

.step { background: var(--paper); color: var(--ink); padding: 22px; }

.section--indigo .step,
.section--dark .step { background: var(--indigo-2); color: var(--paper); }

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--indigo-2);
  margin-bottom: 6px;
}

.section--indigo .step-num,
.section--dark .step-num { color: var(--gold); }

.step[data-state="current"] { background: var(--indigo); color: var(--paper); }
.step[data-state="current"] .step-num { color: var(--gold-lit); }
.step[data-state="done"] .step-num { color: var(--celadon); }

.legend { display: flex; flex-wrap: wrap; gap: 10px; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(201, 162, 74, 0.55);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: inherit;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.legend-item:hover { background: rgba(201, 162, 74, 0.12); border-color: var(--gold); }

.legend-item[aria-expanded="true"] {
  background: rgba(241, 217, 138, 0.14);
  border-color: var(--gold-lit);
}

.legend-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid rgba(10, 13, 20, 0.35);
  border-radius: 2px;
}

.legend-dot--active { background: var(--celadon); }
.legend-dot--due { background: var(--cinnabar); }
.legend-dot--pending { background: var(--gold); }
.legend-dot--unknown { background: var(--gray); }

.legend-hint {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-btn {
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.filter-btn:hover { background: var(--ink); color: var(--gold-lit); }

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--gold-lit);
  box-shadow: 3px 3px 0 var(--gold);
}

.section--indigo .filter-btn,
.section--dark .filter-btn {
  border-color: rgba(243, 238, 227, 0.6);
  color: var(--paper);
}

.section--indigo .filter-btn[aria-pressed="true"],
.section--dark .filter-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--indigo);
  border-color: var(--gold-lit);
  box-shadow: 3px 3px 0 rgba(10, 13, 20, 0.5);
}

/* ---------- 13. 媒体框（页面阶段放图用） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--indigo-2);
  box-shadow: var(--shadow-shot);
}

.media[data-ratio="16-10"] { aspect-ratio: 16 / 10; }
.media[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.media[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.media[data-ratio="9-16"] { aspect-ratio: 9 / 16; }
.media[data-ratio="3-4"] { aspect-ratio: 3 / 4; }

.media > img,
.media > picture,
.media > svg,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--plot {
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 74, 0.14) 0 2px, transparent 2px 9px),
    var(--indigo-2);
}

.media--plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(201, 162, 74, 0.4) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(0deg, transparent 0 49.7%, rgba(201, 162, 74, 0.4) 49.7% 50.3%, transparent 50.3%);
  opacity: 0.7;
  pointer-events: none;
}

.media--phone { box-shadow: 10px 10px 0 var(--indigo); }
.media--window { box-shadow: 10px 10px 0 var(--indigo-2); }

.media-block { margin: 0; }

.media-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--indigo);
  color: var(--paper);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.footer-logo:hover { color: var(--gold-lit); }

.footer-tagline {
  margin-top: 14px;
  max-width: 24em;
  font-size: var(--step-15);
  line-height: 1.8;
  color: rgba(243, 238, 227, 0.66);
}

.footer-title {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-list { display: grid; gap: 10px; }

.footer-list a {
  display: inline-block;
  font-size: var(--step-15);
  line-height: 1.6;
  color: rgba(243, 238, 227, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-list a:hover { color: var(--gold-lit); border-bottom-color: var(--gold); }

.footer-contact-list { display: grid; gap: 12px; }

.footer-contact-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.footer-contact-row dd {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243, 238, 227, 0.86);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--celadon);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--gray);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(201, 162, 74, 0.3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---------- 15. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

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

@keyframes filter-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-filter-item].is-filtered-in { animation: filter-in 0.12s ease-out both; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-meta { display: none; }
}

@media (max-width: 1099px) {
  :root { --header-h: 62px; }

  html { scroll-padding-top: 88px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    min-height: 0;
    padding-block: 11px;
  }

  .brand { grid-area: brand; min-width: 0; }

  .header-actions { grid-area: actions; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: block;
    max-height: 74vh;
    overflow-y: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
    background: var(--indigo);
    border-top: 3px solid var(--gold);
    box-shadow: 0 -8px 0 rgba(10, 13, 20, 0.25);
    transform: translateY(108%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s linear;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 74, 0.28);
    border-bottom-width: 2px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(201, 162, 74, 0.14);
    border-color: var(--gold);
    border-bottom-width: 2px;
  }

  .rail { grid-template-columns: 1fr; gap: 14px; }

  .rail-num { position: static; display: inline-block; font-size: 30px; padding-top: 8px; border-top-width: 2px; }
}

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 520px) {
  .brand-seal { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .btn-sm { padding: 8px 11px; font-size: 13px; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 8px 10px; }
  .nav-list { grid-template-columns: 1fr; }
  .media { box-shadow: 6px 6px 0 var(--indigo); }
  .card { box-shadow: 6px 6px 0 var(--indigo-2); }
}

/* ---------- 17. 减少动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
