/* ==========================================================================
   YOBO 体育 · /assets/site.css
   夜间球场指挥台 · 战术档案系统 · 共享外壳与基础组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --pitch-black: #04130F;
  --deep-forest: #0A241C;
  --tactical-green: #103C2F;
  --grid-line: #245447;
  --fluoro-cyan: #4DFFD2;
  --ice-mint: #D9FFF5;
  --muted-sage: #8FB3A8;
  --status-orange: #FF6433;
  --alert-red: #FF3D5A;
  --archive-violet: #8C7BFF;
  --neutral-white: #F4FAF7;

  --surface-0: var(--pitch-black);
  --surface-1: var(--deep-forest);
  --surface-2: var(--tactical-green);
  --line: var(--grid-line);
  --line-soft: rgba(36, 84, 71, 0.55);
  --text-strong: var(--ice-mint);
  --text: var(--neutral-white);
  --text-muted: var(--muted-sage);
  --accent: var(--fluoro-cyan);
  --accent-alt: var(--archive-violet);
  --status: var(--status-orange);
  --danger: var(--alert-red);

  --font-display: "Archivo Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --rail-h: 64px;
  --r: 3px;

  --sh-card: 6px 6px 0 rgba(4, 19, 15, 0.85);
  --sh-accent: 6px 6px 0 rgba(77, 255, 210, 0.16);

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--grid-line) var(--pitch-black);
}

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--fluoro-cyan); color: var(--pitch-black); }

:focus-visible {
  outline: 2px solid var(--fluoro-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--surface-0);
  background-image:
    radial-gradient(1100px 520px at 82% -12%, rgba(16, 60, 47, 0.72), transparent 68%),
    radial-gradient(760px 460px at -8% 22%, rgba(36, 84, 71, 0.34), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(56px, 11vw, 128px); }
h2 { font-size: clamp(32px, 5.4vw, 56px); }
h3 { font-size: clamp(22px, 2.8vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p { max-width: 62ch; }

strong, b { color: var(--text-strong); font-weight: 700; }

code, kbd, samp, time, .mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--rail-h) + 48px);
  outline: none;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 840px; }
.container--wide { max-width: 1480px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1em; }
.prose p { max-width: none; }

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 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)); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
  background: rgba(16, 60, 47, 0.5);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:hover {
  color: var(--ice-mint);
  border-color: var(--fluoro-cyan);
  background: rgba(77, 255, 210, 0.1);
}

.btn--primary {
  background: var(--fluoro-cyan);
  color: var(--pitch-black);
  border-color: var(--fluoro-cyan);
  box-shadow: 4px 4px 0 rgba(77, 255, 210, 0.24);
}

.btn--primary:hover {
  background: var(--fluorine, var(--fluoro-cyan));
  color: var(--pitch-black);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(77, 255, 210, 0.34);
}

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

.btn--accent {
  background: var(--status-orange);
  color: #0C120F;
  border-color: var(--status-orange);
  box-shadow: 4px 4px 0 rgba(255, 100, 51, 0.24);
}

.btn--accent:hover {
  background: var(--status-orange);
  color: #0C120F;
  border-color: var(--status-orange);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(255, 100, 51, 0.32);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(36, 84, 71, 0.28);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.tag--accent {
  border-color: var(--fluoro-cyan);
  background: rgba(77, 255, 210, 0.09);
  color: var(--fluoro-cyan);
}

.tag--status {
  border-color: var(--status-orange);
  background: rgba(255, 100, 51, 0.12);
  color: var(--status-orange);
}

.tag--violet {
  border-color: var(--archive-violet);
  background: rgba(140, 123, 255, 0.12);
  color: var(--archive-violet);
}

.tag--danger {
  border-color: var(--alert-red);
  background: rgba(255, 61, 90, 0.12);
  color: var(--alert-red);
}

/* ---------- 7. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(160deg, rgba(16, 60, 47, 0.6), rgba(10, 36, 28, 0.94));
  box-shadow: var(--sh-card);
}

.card--accent {
  border-color: rgba(77, 255, 210, 0.45);
  box-shadow: var(--sh-accent);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ice-mint);
}

.card__body {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover { color: var(--fluoro-cyan); }

.breadcrumb__sep {
  color: var(--grid-line);
  user-select: none;
}

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

/* ---------- 9. 媒体容器（供页面阶段放置图片） ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--tactical-green);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(77, 255, 210, 0.12), transparent 46%, rgba(4, 19, 15, 0.58));
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.media__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(217, 255, 245, 0.5);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(36, 84, 71, 0.5) 0 10px,
    transparent 10px 20px
  );
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(4, 19, 15, 0.94), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ice-mint);
}

/* ---------- 10. 标签页组件 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  position: relative;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.tabs__btn:hover {
  color: var(--ice-mint);
  background: rgba(77, 255, 210, 0.06);
}

.tabs__btn[aria-selected="true"] {
  color: var(--ice-mint);
  background: rgba(77, 255, 210, 0.12);
  border-color: rgba(77, 255, 210, 0.4);
  border-bottom-color: transparent;
}

.tabs__btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--fluoro-cyan);
}

[data-tab-panel] { display: block; }
[data-tab-panel][hidden] { display: none; }

/* ---------- 11. 站点页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 19, 15, 0.99), rgba(4, 19, 15, 0.92));
  box-shadow: 0 1px 0 rgba(77, 255, 210, 0.06);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(4, 19, 15, 0.86);
    backdrop-filter: blur(12px);
  }
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--r) var(--r);
  background: var(--fluoro-cyan);
  color: var(--pitch-black);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus { top: 0; }

.header-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--rail-h);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  justify-self: start;
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fluoro-cyan);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ice-mint);
  transition: color 0.18s var(--ease);
}

.brand:hover .brand__name { color: var(--fluoro-cyan); }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-status__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-status__tag {
  flex: none;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--archive-violet);
}

.status-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-orange);
  box-shadow: 0 0 0 3px rgba(255, 100, 51, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: status-pulse 2.6s var(--ease) infinite; }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 100, 51, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(255, 100, 51, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-cta {
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 11px;
}

.header-cta__short { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ice-mint);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--fluoro-cyan);
  color: var(--fluoro-cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fluoro-cyan);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--fluoro-cyan);
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle__label { line-height: 1; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- 12. 赛程轨道导航 ---------- */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(
    90deg,
    rgba(16, 60, 47, 0.58),
    rgba(10, 36, 28, 0.78) 48%,
    rgba(4, 19, 15, 0.92)
  );
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-track {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
}

.nav-track__item {
  display: flex;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px clamp(8px, 1.4vw, 16px);
  border-left: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-track__item:last-child .nav-link { border-right: 1px solid var(--line-soft); }

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--grid-line);
  transition: color 0.18s var(--ease);
}

.nav-link__label { position: relative; }

.nav-link:hover {
  color: var(--ice-mint);
  background: rgba(77, 255, 210, 0.07);
}

.nav-link:hover .nav-link__index { color: var(--muted-sage); }

.nav-link[aria-current="page"] {
  color: var(--ice-mint);
  background: rgba(77, 255, 210, 0.1);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--fluoro-cyan);
  box-shadow: 0 0 12px rgba(77, 255, 210, 0.55);
}

.nav-link[aria-current="page"] .nav-link__index { color: var(--fluoro-cyan); }
.nav-link[aria-current="page"] .nav-link__label { color: var(--ice-mint); }

.nav-hint {
  display: none;
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 179, 168, 0.6);
  white-space: nowrap;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(36, 84, 71, 0.4);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    var(--fluoro-cyan),
    var(--archive-violet) 68%,
    var(--status-orange)
  );
}

/* ---------- 13. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 2px solid var(--line);
  color: var(--text-muted);
  background-color: var(--deep-forest);
  background-image:
    linear-gradient(
      180deg,
      rgba(16, 60, 47, 0.62),
      rgba(10, 36, 28, 0.94) 55%,
      rgba(4, 19, 15, 1)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(36, 84, 71, 0.22) 0 1px,
      transparent 1px 80px
    );
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 3px;
  opacity: 0.75;
  background: linear-gradient(
    90deg,
    var(--fluoro-cyan),
    transparent 38%,
    var(--archive-violet) 68%,
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-intro {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-muted);
}

.footer-meta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}

.footer-meta__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}

.footer-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fluoro-cyan);
}

.footer-meta dd {
  color: var(--text);
  word-break: break-word;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-content: start;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-mint);
}

.footer-col__list { display: grid; gap: 9px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--fluoro-cyan);
  transition: width 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--ice-mint);
  padding-left: 14px;
}

.footer-link:hover::before { width: 9px; }

.footer-base {
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 19, 15, 0.75);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-legal { color: var(--text-muted); }

.footer-note {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(143, 179, 168, 0.75);
}

/* ---------- 14. 入场显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
}

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

/* ---------- 15. 响应式 ---------- */
@media (min-width: 1120px) {
  .nav-hint { display: block; }
}

@media (max-width: 960px) {
  .site-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top-color: transparent;
    transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    opacity: 1;
    border-top-color: var(--line-soft);
    box-shadow: inset 0 1px 0 rgba(77, 255, 210, 0.08);
  }

  .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }

  .nav-track { flex-direction: column; }

  .nav-track__item { border-bottom: 1px solid var(--line-soft); }
  .nav-track__item:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    gap: 10px;
    padding: 13px 4px;
    border-left: 0;
    border-right: 0;
    font-size: 15px;
  }

  .nav-track__item:last-child .nav-link { border-right: 0; }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 9px;
    bottom: 9px;
    width: 3px;
    height: auto;
  }

  .nav-link__index {
    font-size: 10px;
    color: var(--muted-sage);
  }

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

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

@media (max-width: 640px) {
  .header-rail {
    min-height: 56px;
    padding: 8px var(--gutter);
    gap: 10px;
  }

  .brand__mark {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .brand__name { font-size: 16px; }

  .header-status { display: none; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .header-cta__full { display: none; }
  .header-cta__short { display: inline; }
  .header-cta { padding: 8px 10px; font-size: 10px; }
}

@media (max-width: 380px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16. 动效偏好与打印 ---------- */
@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;
  }

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

@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
}
