/* ==========================================================================
   奇异果体育链接 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, picture { 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 { width: 100%; border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --emerald: #1FBF7A;
  --flesh: #7CE3AE;
  --lime: #C6FF3D;
  --seed: #10130F;
  --night: #171A1C;
  --slate: #242A2E;
  --amber: #FF8A3D;
  --violet: #8B7BFF;
  --bone: #F2F5F1;
  --grid: #4A5359;

  --rail-w: 88px;
  --chain-h: 52px;
  --masthead-h: 58px;
  --m-head: 110px;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1320px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ink-soft: rgba(242, 245, 241, .62);
  --ink-faint: rgba(242, 245, 241, .45);
  --hair: rgba(74, 83, 89, .5);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(920px 520px at 10% -8%, rgba(31, 191, 122, .18), transparent 62%),
    radial-gradient(760px 480px at 106% 6%, rgba(139, 123, 255, .12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(74, 83, 89, .14) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(74, 83, 89, .14) 0 1px, transparent 1px 24px);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--seed); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}

#main-content {
  display: block;
  min-height: 60vh;
  margin-left: var(--rail-w);
  padding-top: var(--chain-h);
}

/* ---------- 4. 排版工具 ---------- */
.display {
  font-weight: 900;
  font-size: clamp(44px, 8.5vw, 128px);
  line-height: .98;
  letter-spacing: -.02em;
}
.section-title {
  position: relative;
  padding-top: 18px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--emerald);
}
.lead {
  max-width: 68ch;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
  color: rgba(242, 245, 241, .82);
}
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flesh);
}
.note {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(242, 245, 241, .58);
}

/* ---------- 5. 布局系统 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.panel {
  position: relative;
  padding-block: clamp(64px, 10vh, 132px);
}
.panel--slate { background: var(--slate); }
.panel--deep { background: var(--seed); }
.panel--emerald {
  background:
    linear-gradient(155deg, rgba(31, 191, 122, .16), rgba(23, 26, 28, 0) 68%),
    var(--night);
}
.panel--injury {
  background:
    linear-gradient(155deg, rgba(255, 138, 61, .12), rgba(23, 26, 28, 0) 66%),
    var(--night);
}
.panel--review {
  background:
    linear-gradient(155deg, rgba(139, 123, 255, .14), rgba(23, 26, 28, 0) 66%),
    var(--night);
}
.breathe { height: clamp(72px, 14vh, 180px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.anchor {
  position: sticky;
  top: calc(var(--chain-h) + 28px);
  align-self: start;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-faint);
}
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { color: var(--grid); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--emerald); color: var(--seed); }
.btn--primary:hover { background: var(--flesh); }
.btn--lime { background: var(--lime); color: var(--seed); }
.btn--lime:hover { background: var(--flesh); }
.btn--ghost {
  border-color: rgba(74, 83, 89, .9);
  background: transparent;
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--flesh); }

/* ---------- 7. 数据组件 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--bone);
}
.stat__unit {
  margin-left: .08em;
  font-size: .36em;
  letter-spacing: .06em;
  color: var(--flesh);
}
.stat__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.frag {
  background: var(--slate);
  border-left: 2px solid var(--emerald);
  padding: 20px 22px;
}
.frag--lime { border-left-color: var(--lime); background: rgba(198, 255, 61, .07); }
.frag--injury { border-left-color: var(--amber); background: rgba(255, 138, 61, .08); }
.frag--review { border-left-color: var(--violet); background: rgba(139, 123, 255, .09); }

.dossier {
  border: 2px solid rgba(74, 83, 89, .75);
  background: rgba(16, 19, 15, .55);
  padding: 22px 24px;
}
.dossier--injury { border-color: rgba(255, 138, 61, .6); }
.dossier--review { border-color: rgba(139, 123, 255, .6); }

.tag {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flesh);
}
.tag--ok { color: var(--emerald); }
.tag--injury { color: var(--amber); }
.tag--review { color: var(--violet); }
.tag--lime { color: var(--lime); }

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, .45); }
  50% { box-shadow: 0 0 0 9px rgba(255, 138, 61, 0); }
}
.is-pulsing { animation: pulseAmber 2.4s ease-in-out infinite; }

/* ---------- 8. 分段控件 / 轨道 / 指南线 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(74, 83, 89, .55);
}
.tab {
  position: relative;
  margin-bottom: -1px;
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
  transition: color .24s var(--ease), border-color .24s var(--ease);
}
.tab:hover { color: var(--bone); }
.tab[aria-selected="true"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.tab:focus-visible { outline-offset: -4px; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tabpanel { animation: tabIn .24s var(--ease) both; }

.track {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  padding-bottom: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.track > * {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-track { background: rgba(74, 83, 89, .3); }
.track::-webkit-scrollbar-thumb { background: rgba(31, 191, 122, .5); border-radius: 99px; }

.linkline { position: relative; padding-left: 26px; }
.linkline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), rgba(31, 191, 122, .2));
}
.linkline::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, .16);
}

/* ---------- 9. 图片容器（页面阶段放置图片） ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid rgba(74, 83, 89, .5);
}
.media img,
.media picture,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(198, 255, 61, .07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(198, 255, 61, .07) 0 1px, transparent 1px 24px);
  mix-blend-mode: screen;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--diag { clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%); }
.media--diag-alt { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.media__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- 10. 页头 ---------- */
.site-header { position: relative; z-index: 100; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--seed);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--bone); }

/* 数据链状态条 */
.chain {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 26px);
  height: var(--chain-h);
  padding-inline: clamp(14px, 2.6vw, 28px);
  background: rgba(16, 19, 15, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 83, 89, .55);
}
.chain__now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chain__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--emerald);
  white-space: nowrap;
}
.chain__section {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--bone);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chain__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(74, 83, 89, .7);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--flesh);
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.chain__toggle:hover { border-color: var(--emerald); color: var(--lime); }
.chain__toggle[aria-expanded="true"] {
  border-color: var(--emerald);
  background: rgba(31, 191, 122, .14);
  color: var(--lime);
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 191, 122, .55); }
  50% { box-shadow: 0 0 0 7px rgba(31, 191, 122, 0); }
}
.chain__pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseGreen 2.4s var(--ease) infinite;
}
.chain__time time { color: var(--lime); }
.chain__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .24s var(--ease);
}
.chain__toggle[aria-expanded="true"] .chain__caret { transform: rotate(180deg); }
.chain__health {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.chain__health b { color: var(--lime); font-weight: 700; }
.chain__lamp {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 61, .8);
}
.chain__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--emerald), var(--lime));
}
.chain__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  padding: 18px clamp(14px, 2.6vw, 28px) 22px;
  background: var(--slate);
  border-bottom: 1px solid rgba(31, 191, 122, .45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.chain__cell { display: flex; flex-direction: column; gap: 6px; }
.chain__cell-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chain__cell-val { font-size: 14px; color: var(--bone); }
.chain__cell-val--ok { color: var(--lime); }

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 62% 38% 54% 46% / 48% 58% 42% 52%;
  background: linear-gradient(140deg, var(--flesh), var(--emerald));
  box-shadow: 0 0 22px rgba(31, 191, 122, .35);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 34% 40%, var(--seed) 1.3px, transparent 1.5px),
    radial-gradient(circle at 60% 58%, var(--seed) 1.3px, transparent 1.5px),
    radial-gradient(circle at 44% 72%, var(--seed) 1.1px, transparent 1.3px),
    radial-gradient(circle at 68% 34%, var(--seed) 1.1px, transparent 1.3px);
}
.brand__name { font-size: 14px; font-weight: 900; letter-spacing: .08em; color: var(--bone); }
.brand__sub { font-size: 11px; letter-spacing: .14em; color: var(--flesh); }
.brand__text { display: flex; flex-direction: column; gap: 2px; }

/* 移动端品牌条 */
.masthead { display: none; }
.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(74, 83, 89, .7);
  border-radius: 4px;
  transition: border-color .22s var(--ease);
}
.burger:hover { border-color: var(--emerald); }
.burger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.site-header[data-open] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .burger__line:nth-child(2) { opacity: 0; }
.site-header[data-open] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 侧边轨道导航 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 24px);
  width: var(--rail-w);
  padding: 18px 8px 20px;
  background: linear-gradient(180deg, #10130F 0%, #14181A 55%, #10130F 100%);
  border-right: 1px solid rgba(74, 83, 89, .5);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.brand--rail {
  width: 100%;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(74, 83, 89, .45);
}
.rail__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 9px 4px;
  border-radius: 4px;
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.rail__link:hover { background: rgba(31, 191, 122, .12); }
.rail__link:hover .rail__idx { color: var(--flesh); }
.rail__link[aria-current="page"] {
  background: rgba(31, 191, 122, .14);
  box-shadow: inset 3px 0 0 0 var(--lime);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--lime); }
.rail__link[aria-current="page"] .rail__label { font-weight: 700; }
.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--grid);
  transition: color .22s var(--ease);
}
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--bone);
}
.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 83, 89, .45);
}
.rail__cta {
  width: 100%;
  padding: 11px 6px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
}
.rail__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-left: var(--rail-w);
  padding-block: clamp(48px, 8vh, 92px) 30px;
  background: var(--seed);
  border-top: 1px solid rgba(31, 191, 122, .35);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(360px, 46%);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--emerald) 58%, transparent);
}
.site-footer__inner { display: flex; flex-direction: column; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.45fr;
  gap: clamp(32px, 6vw, 80px);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.brand__mark--lg { width: 38px; height: 38px; margin-bottom: 4px; }
.site-footer__logo { font-size: 19px; font-weight: 900; letter-spacing: .06em; color: var(--bone); }
.site-footer__intro { max-width: 34ch; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.site-footer__motto {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--emerald);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.foot-col__title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--emerald);
}
.foot-col__list { display: flex; flex-direction: column; gap: 2px; }
.foot-col__link {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--bone);
  opacity: .82;
  transition: color .22s var(--ease), opacity .22s var(--ease), transform .22s var(--ease);
}
.foot-col__link:hover {
  color: var(--lime);
  opacity: 1;
  transform: translateX(4px);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(74, 83, 89, .4);
}
.site-footer__contact-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--bone);
  word-break: break-word;
}
.site-footer__note { max-width: 62ch; font-size: 13px; line-height: 1.75; color: var(--ink-faint); }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(74, 83, 89, .4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

/* ---------- 12. 显现动效 ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}
.js-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-5, .span-7 { grid-column: span 12; }
}

@media (max-width: 899px) {
  :root { --pad: clamp(18px, 6vw, 32px); }

  #main-content { margin-left: 0; padding-top: var(--m-head); }

  .chain { left: 0; }
  .chain__eyebrow { display: none; }
  .chain__health-text { display: none; }
  .chain__panel { grid-template-columns: 1fr; gap: 12px; }

  .masthead {
    position: fixed;
    top: var(--chain-h);
    left: 0;
    right: 0;
    z-index: 118;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--masthead-h);
    padding-inline: 16px;
    background: rgba(16, 19, 15, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 83, 89, .55);
  }
  .brand--masthead { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .brand--masthead .brand__mark { width: 26px; height: 26px; }
  .brand--masthead .brand__name { font-size: 15px; }
  .brand--masthead .brand__sub { font-size: 10px; letter-spacing: .2em; color: var(--emerald); }

  .rail {
    position: fixed;
    top: var(--m-head);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    align-items: stretch;
    gap: 18px;
    padding: 20px 16px 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 191, 122, .45);
    transform: translateY(-102%);
    transition: transform .4s var(--ease);
    will-change: transform;
  }
  .site-header[data-open] .rail { transform: none; }

  .brand--rail { display: none; }
  .rail__list { flex: none; gap: 0; }
  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 15px 10px;
    border-radius: 0;
    border-bottom: 1px solid rgba(74, 83, 89, .35);
  }
  .rail__link:hover { background: rgba(31, 191, 122, .1); }
  .rail__link[aria-current="page"] {
    background: rgba(31, 191, 122, .14);
    box-shadow: inset 3px 0 0 0 var(--lime);
  }
  .rail__idx { font-size: 12px; color: var(--emerald); }
  .rail__label {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 16px;
    letter-spacing: .1em;
  }
  .rail__foot { margin-top: 18px; align-items: stretch; }
  .rail__cta { padding: 15px 18px; font-size: 15px; }
  .rail__tag { text-align: left; }

  .grid-12 > [class*="span-"] { grid-column: span 12; }
  .anchor { position: static; }

  .site-footer { margin-left: 0; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .site-footer__nav { grid-template-columns: 1fr; gap: 22px; }
  .chain__toggle { font-size: 10px; padding: 5px 9px; }
  .chain__time { display: none; }
}

/* ---------- 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;
  }
  .js-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}
