/* =========================================================
   半岛赛场 · 共享样式表 /assets/site.css
   数据档案馆 × 赛场边线：发丝网格、对角切割、三层信息节奏
   ========================================================= */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 20px);
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 900; }
#main-content { display: block; }
[id] { scroll-margin-top: calc(var(--bar-h) + 20px); }

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-ink: #0B1B2B;
  --c-blue: #14456E;
  --c-night: #1E3550;
  --c-gold: #D8A541;
  --c-coral: #F26A4B;
  --c-cyan: #3FD0C9;
  --c-paper: #F3EDE1;
  --c-line: #D9D2C4;
  --c-graphite: #5B6B7A;
  --c-black: #11161C;
  --c-ondark: #C8D6E2;

  --c-head: #F3EDE1;
  --c-muted: rgba(200, 214, 226, .60);
  --line-soft: rgba(200, 214, 226, .16);

  --font-head: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-data: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --bar-h: 56px;
  --rail-w: 88px;
  --rail-open: 240px;
  --maxw: 1200px;
  --gap: clamp(18px, 2.6vw, 36px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  background: var(--c-ink);
  color: var(--c-ondark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--c-head);
}
h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
strong { font-weight: 700; color: var(--c-head); }
code, kbd, samp { font-family: var(--font-data); font-size: .92em; }

.eyebrow {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.rule { height: 1px; border: 0; background: var(--line-soft); margin: clamp(20px, 3vw, 34px) 0; }

/* ---------- 4. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.container--narrow { max-width: 840px; }

.section { padding-block: clamp(48px, 6vw, 96px); }
.section--night { background: var(--c-night); }
.section--rule { border-top: 1px solid var(--line-soft); }
.section--paper {
  background: var(--c-paper);
  color: var(--c-black);
  --c-head: var(--c-black);
  --c-muted: var(--c-graphite);
  --line-soft: var(--c-line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line-soft);
}
.section__title { font-size: clamp(26px, 3vw, 40px); }
.section__note {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }

.prose { max-width: 38em; font-size: 17px; line-height: 1.75; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { list-style: none; margin: 0 0 1.1em; }
.prose li { position: relative; padding-left: 20px; margin-bottom: .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 1px;
  background: var(--c-gold);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--c-paper);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }
.btn--primary { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.btn--primary::after { background: var(--c-ink); }
.btn--primary:hover { background: var(--c-coral); border-color: var(--c-coral); color: var(--c-ink); }
.btn--ghost { border-color: rgba(200, 214, 226, .32); color: var(--c-ondark); }
.btn--ghost:hover { border-color: var(--c-gold); color: var(--c-gold); }
.btn--sm { padding: 8px 13px; font-size: 13px; }

/* ---------- 6. 标签 / 卡片 / 数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--c-cyan);
}
.tag--gold { color: var(--c-gold); }
.tag--coral { color: var(--c-coral); }
.tag--cyan { color: var(--c-cyan); }
.tag--ink { color: var(--c-graphite); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--c-night);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: rgba(216, 165, 65, .55); transform: translateY(-3px); }
.card__title { font-size: 20px; margin-bottom: 10px; }
.card__meta {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--c-muted);
}
.section--paper .card { background: #fff; }

.stat { display: grid; gap: 6px; }
.stat__value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
}
.stat__unit { font-size: .45em; margin-left: 6px; letter-spacing: .08em; color: var(--c-muted); }
.stat__label {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--c-muted);
}
.section--paper .stat__value { color: var(--c-blue); }

.ledger { border-top: 1px solid var(--line-soft); }
.ledger__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ledger__key {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}
.ledger__main { font-size: 15px; line-height: 1.5; }
.ledger__val {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-head);
}

/* ---------- 7. 图形容器（供页面阶段放图） ---------- */
.figure { margin: 0; }
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-night);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }
.media--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(11, 27, 43, .22) 0 1px, transparent 1px 4px);
}
.media--grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(20, 69, 110, .38), transparent 58%),
    repeating-linear-gradient(90deg, rgba(216, 165, 65, .07) 0 1px, transparent 1px 7px);
}
.media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-muted);
}
.media__cap {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--c-muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; color: rgba(216, 165, 65, .65); }
.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.breadcrumbs a:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); }
.breadcrumbs [aria-current="page"] { color: var(--c-head); }

/* ---------- 9. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 10. 头部：署名条 + 侧轨 ---------- */
.site-header { position: relative; z-index: 70; }

.brand-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: var(--bar-h);
  background: var(--c-ink);
  border-bottom: 1px solid var(--line-soft);
}
.brand-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0 clamp(14px, 2.2vw, 28px);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--c-head);
  flex: none;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  transform: translateY(3px);
}
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 16px; line-height: 1; letter-spacing: .02em; }
.brand__line {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--c-muted);
}

.utility { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.utility__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  color: rgba(200, 214, 226, .72);
  white-space: nowrap;
}
.utility__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(242, 106, 75, .18);
}
.utility__link {
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(200, 214, 226, .78);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.utility__link:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid rgba(200, 214, 226, .28);
  border-radius: 2px;
  color: var(--c-ondark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.nav-toggle:hover { color: var(--c-gold); border-color: var(--c-gold); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 9px; flex: none; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 3.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 3.5px; transform: rotate(-45deg); }
.nav-toggle__text { display: inline-block; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 27, 43, .68);
}

.rail {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 22px 0 16px;
  background: var(--c-blue);
  border-right: 1px solid rgba(11, 27, 43, .55);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width .22s var(--ease), transform .24s var(--ease);
}
.rail:hover, .rail:focus-within { width: var(--rail-open); }

.rail__eyebrow {
  margin-bottom: 16px;
  padding-left: 18px;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .24em;
  white-space: nowrap;
  color: rgba(200, 214, 226, .55);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.rail:hover .rail__eyebrow, .rail:focus-within .rail__eyebrow { opacity: 1; }

.rail__list { flex: 0 0 auto; }
.rail__item { position: relative; }
.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-left: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(200, 214, 226, .78);
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.rail__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.rail__index {
  min-width: 22px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
  opacity: .75;
  transition: opacity .16s var(--ease);
}
.rail__label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.rail:hover .rail__label,
.rail:focus-within .rail__label { opacity: 1; transform: translateX(0); }
.rail__link:hover { color: #fff; background: rgba(11, 27, 43, .35); }
.rail__link:hover::after { transform: scaleX(1); }
.rail__link[aria-current="page"] { color: #fff; background: rgba(11, 27, 43, .5); border-left-color: var(--c-gold); }
.rail__link[aria-current="page"] .rail__index { opacity: 1; }
.rail__link[aria-current="page"]::after { transform: scaleX(1); }

.rail__foot {
  margin-top: auto;
  padding: 18px 18px 0;
  border-top: 1px solid var(--line-soft);
  white-space: nowrap;
}
.rail__arch, .rail__season {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.rail:hover .rail__arch, .rail:hover .rail__season,
.rail:focus-within .rail__arch, .rail:focus-within .rail__season { opacity: 1; }
.rail__arch-k, .rail__season-k {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  color: rgba(200, 214, 226, .5);
}
.rail__arch-v {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
}
.rail__season-v { font-size: 12px; line-height: 1; color: var(--c-cyan); }
.rail__progress {
  height: 2px;
  margin: 14px 0 12px;
  background: rgba(200, 214, 226, .16);
}
.rail__progress-bar {
  display: block;
  width: 100%; height: 100%;
  background: var(--c-coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}
.rail__top {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--c-ondark);
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.rail__top:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  padding-top: clamp(40px, 5vw, 72px);
  background: var(--c-ink);
  border-top: 1px solid rgba(216, 165, 65, .35);
  color: rgba(200, 214, 226, .76);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(220px, 1.2fr);
  gap: clamp(24px, 3vw, 48px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.footer__logo {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--c-head);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__logo:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); }
.footer__tag {
  margin-top: 8px;
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--c-gold);
}
.footer__arch {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  color: rgba(200, 214, 226, .55);
}
.footer__arch-v { font-weight: 700; color: var(--c-gold); font-variant-numeric: tabular-nums; }

.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(200, 214, 226, .5);
}
.footer__links { display: grid; gap: 10px; }
.footer__links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(200, 214, 226, .82);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .2s var(--ease);
}
.footer__links a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--c-gold);
  transform: translateY(-50%);
  transition: width .2s var(--ease);
}
.footer__links a:hover { color: var(--c-gold); padding-left: 16px; }
.footer__links a:hover::before { width: 10px; }

.footer__contact {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line-soft);
}
.footer__contact-row { display: grid; gap: 4px; margin-bottom: 14px; }
.footer__contact-k {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  color: rgba(200, 214, 226, .45);
}
.footer__contact-v { font-size: 14px; line-height: 1.6; color: #E6EDF4; word-break: break-word; }
.footer__contact-v--mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.footer__contact-note { font-size: 12px; line-height: 1.6; color: rgba(200, 214, 226, .5); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 18px clamp(18px, 4vw, 40px) 26px;
  border-top: 1px solid var(--line-soft);
}
.footer__closing {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(200, 214, 226, .55);
}
.footer__copy { font-size: 12px; line-height: 1.6; color: rgba(200, 214, 226, .45); }
.footer__icp { font-family: var(--font-data); color: rgba(200, 214, 226, .6); }

/* ---------- 12. 焦点与显现 ---------- */
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.rail__link:focus-visible { outline-offset: -2px; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- 13. 响应式 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .rail {
    width: min(86vw, 340px);
    padding-top: 20px;
    transform: translateX(-102%);
  }
  .rail:hover, .rail:focus-within { width: min(86vw, 340px); }
  .rail[data-open="true"] {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .45);
  }
  .rail__eyebrow, .rail__label, .rail__arch, .rail__season { opacity: 1; transform: translateX(0); }
  .rail__link { padding-block: 16px; }
  .rail__list { margin-bottom: 24px; }
  .rail__foot { border-top-color: rgba(200, 214, 226, .14); }
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .utility__link { display: none; }
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .utility__tag { display: none; }
  .brand__line { display: none; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger__row { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .nav-toggle__text { display: none; }
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rail__progress-bar { transition: none; }
}
