/* ============================================================
   完美体育网址 · /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(--header-h, 96px) + 12px);
}

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #0E2A20;
  --deep-2: #0A2018;
  --moss: #2E5B43;
  --signal: #B6FF3C;
  --rock: #3A4145;
  --paper: #F2F0E6;
  --card: #FBFBF7;
  --clay: #B4552F;
  --steel: #2E6FB7;
  --silver: #C9CFD2;
  --teal: #4FD1C5;
  --amber: #E8A33D;
  --ink: #10161A;

  --line-dark: rgba(201, 207, 210, 0.22);
  --line-light: rgba(58, 65, 69, 0.16);
  --grid-line: rgba(58, 65, 69, 0.075);
  --grid-line-dark: rgba(201, 207, 210, 0.06);

  --rail: 64px;
  --header-h: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --r: 2px;
  --shadow-1: 0 2px 0 rgba(16, 22, 26, 0.04);
  --shadow-2: 0 4px 0 rgba(16, 22, 26, 0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.section--deep :focus-visible,
.section--moss :focus-visible,
.card--deep :focus-visible {
  outline-color: var(--signal);
}

.nav-open { overflow: hidden; }

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--rock);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--signal);
}

.display {
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--rock);
}

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

.link-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--deep);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.link-more:hover {
  background: var(--signal);
  color: var(--ink);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1em; }

.prose h2 { margin-top: 1.6em; font-size: clamp(20px, 2.4vw, 26px); }
.prose h3 { margin-top: 1.4em; font-size: 18px; }
.prose ul { display: grid; gap: 0.5em; padding-left: 1.1em; list-style: square; }
.prose li::marker { color: var(--signal); }

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: clamp(40px, 7vw, 80px); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--deep); color: var(--paper); }
.section--deep .lede { color: rgba(242, 240, 230, 0.76); }
.section--deep .eyebrow { color: rgba(201, 207, 210, 0.8); }
.section--moss { background: var(--moss); color: var(--paper); }
.section--moss .lede { color: rgba(242, 240, 230, 0.8); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.grid { display: grid; gap: var(--gutter); }
.grid--2,
.grid--3,
.grid--4 { grid-template-columns: minmax(0, 1fr); }

.split { display: grid; gap: var(--gutter); }

.sidebar { align-self: start; }

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

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

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar {
    position: sticky;
    top: calc(var(--header-h, 96px) + 16px);
  }
}

/* 桌面：为左侧框架轨让出位置 */
@media (min-width: 1080px) {
  body { padding-left: var(--rail); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn--primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.btn--primary:hover {
  background: #a4ef2a;
  border-color: #a4ef2a;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(201, 207, 210, 0.42);
  color: var(--paper);
}

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

.btn--dark {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--moss);
  border-color: var(--moss);
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 90;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--signal);
  color: var(--ink);
  border-radius: var(--r);
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 12px; }

/* 7.1 左侧框架轨 */
.site-rail { display: none; }

@media (min-width: 1080px) {
  .site-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: var(--rail);
    padding: 18px 0;
    overflow: hidden;
    background: var(--deep-2);
    border-right: 1px solid var(--line-dark);
    color: var(--silver);
  }
}

.rail-axis {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(201, 207, 210, 0.5);
}

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

.rail-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 5px;
  border: 1px solid transparent;
  border-radius: var(--r);
}

.rail-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.rail-name {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 207, 210, 0.6);
}

.rail-league.is-current {
  border-color: rgba(182, 255, 60, 0.55);
  background: rgba(182, 255, 60, 0.07);
}

.rail-league.is-current .rail-code { color: var(--signal); }
.rail-league.is-current .rail-name { color: rgba(182, 255, 60, 0.82); }

.rail-brand {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(201, 207, 210, 0.68);
}

/* 7.2 比分条 */
.scorebar {
  position: relative;
  background: var(--deep-2);
  border-bottom: 1px solid var(--line-dark);
}

.scorebar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding-inline: var(--gutter);
}

.scorebar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal);
  border-right: 1px solid var(--line-dark);
  white-space: nowrap;
}

.scorebar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: sb-pulse 1.6s var(--ease) infinite;
}

.scorebar__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.scorebar__track {
  display: flex;
  width: max-content;
  animation: sb-ticker 60s linear infinite;
}

.scorebar:hover .scorebar__track,
.scorebar:focus-within .scorebar__track { animation-play-state: paused; }

.scorebar__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(242, 240, 230, 0.78);
  white-space: nowrap;
}

.score b {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
}

.score i {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.scorebar__meta {
  flex: 0 0 auto;
  padding-left: 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(201, 207, 210, 0.55);
  border-left: 1px solid var(--line-dark);
  white-space: nowrap;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@keyframes sb-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

/* 7.3 品牌桁架 */
.masthead { border-bottom: 1px solid var(--line-dark); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  display: block;
  width: 24px;
  height: 26px;
  border: 1px solid rgba(182, 255, 60, 0.65);
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(182, 255, 60, 0.45);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--signal);
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(201, 207, 210, 0.6);
}

/* 7.4 导航 */
.site-nav__list { counter-reset: navidx; }

.site-nav__link::before {
  counter-increment: navidx;
  content: "0" counter(navidx);
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  vertical-align: super;
  color: rgba(201, 207, 210, 0.45);
}

.site-nav__foot { display: none; }

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__link {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(242, 240, 230, 0.78);
    border: 1px solid transparent;
    border-radius: var(--r);
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
  }

  .site-nav__link:hover {
    color: var(--paper);
    background: rgba(182, 255, 60, 0.08);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--signal);
    background: rgba(182, 255, 60, 0.07);
    border-color: rgba(182, 255, 60, 0.45);
  }

  .site-nav__foot { display: none; }
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h, 96px);
    bottom: 0;
    z-index: 55;
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    background-color: var(--deep);
    background-image:
      linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
    background-size: 32px 32px;
    border-top: 1px solid var(--line-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s linear;
  }

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

  .site-nav__list {
    display: flex;
    flex-direction: column;
  }

  .site-nav__item { border-bottom: 1px solid var(--line-dark); }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--paper);
  }

  .site-nav__link::before {
    margin-right: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    vertical-align: baseline;
    color: rgba(182, 255, 60, 0.7);
  }

  .site-nav__link[aria-current="page"] { color: var(--signal); }

  .site-nav__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
  }
}

/* 7.5 桁架动作区 */
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.link-index {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(201, 207, 210, 0.78);
  border-bottom: 1px solid rgba(201, 207, 210, 0.32);
  padding-bottom: 2px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.link-index:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.masthead__actions .link-index { display: none; }

@media (min-width: 1080px) {
  .masthead__actions { margin-left: 12px; }
  .masthead__actions .link-index { display: inline-block; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper);
  border: 1px solid rgba(201, 207, 210, 0.4);
  border-radius: var(--r);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--deep);
  background-image:
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  color: rgba(242, 240, 230, 0.8);
  border-top: 1px solid var(--line-dark);
}

.footer__grid {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 48px var(--gutter) 36px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
  }
}

.footer__brand { max-width: 540px; }

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

.footer__statement {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 240, 230, 0.72);
}

.footer__index {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--signal);
}

.footer__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(201, 207, 210, 0.6);
}

.footer__index-path {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--signal);
}

.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 207, 210, 0.14);
}

.footer__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

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

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

.footer__col-title {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--signal);
}

.footer__list { display: grid; gap: 8px; }

.footer__link {
  font-size: 14px;
  color: rgba(242, 240, 230, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer__link:hover {
  color: var(--paper);
  border-color: var(--signal);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(201, 207, 210, 0.62);
}

.footer__legal {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer__copy { letter-spacing: 0.04em; }

.footer__note { flex: 1 1 260px; }

/* 8.1 返回顶部 */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--signal);
  background: var(--deep);
  border: 1px solid rgba(182, 255, 60, 0.45);
  border-radius: var(--r);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear, background-color 0.16s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--moss); }

.to-top__arrow {
  width: 10px;
  height: 10px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.to-top__text { font-weight: 700; }

/* ---------- 9. Content components ---------- */
.card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 65, 69, 0.3);
  box-shadow: var(--shadow-2);
}

.card--deep {
  background: var(--deep);
  color: var(--paper);
  border-color: var(--line-dark);
}

.card--deep .card__title { color: var(--paper); }
.card--deep .card__head { border-color: var(--line-dark); }

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

.card__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.card__body { font-size: 14px; line-height: 1.75; color: var(--rock); }
.card--deep .card__body { color: rgba(242, 240, 230, 0.75); }

.card__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.card--deep .card__foot { border-color: var(--line-dark); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--silver);
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rock);
}

.stat--up { border-left-color: var(--steel); }
.stat--up .stat__value { color: var(--steel); }
.stat--down { border-left-color: var(--clay); }
.stat--down .stat__value { color: var(--clay); }
.stat--signal { border-left-color: var(--signal); }
.stat--signal .stat__value { color: var(--deep); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rock);
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  white-space: nowrap;
}

.tag--signal { color: #2f6b12; border-color: rgba(182, 255, 60, 0.6); background: rgba(182, 255, 60, 0.16); }
.tag--amber { color: #8a5a10; border-color: rgba(232, 163, 61, 0.55); background: rgba(232, 163, 61, 0.14); }
.tag--clay { color: var(--clay); border-color: rgba(180, 85, 47, 0.5); background: rgba(180, 85, 47, 0.1); }
.tag--steel { color: var(--steel); border-color: rgba(46, 111, 183, 0.45); background: rgba(46, 111, 183, 0.1); }

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line-light);
}

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

.data-table caption {
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rock);
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-light);
}

.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rock);
  background: rgba(58, 65, 69, 0.04);
}

.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.data-table .pos { color: var(--steel); }
.data-table .neg { color: var(--clay); }

.panel {
  background: var(--card);
  border: 1px solid var(--line-light);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: var(--paper);
  background: var(--moss);
}

.panel__head::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--signal);
}

.panel[data-open] .panel__head::after { content: "–"; }

.panel__body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rock);
  border-top: 1px solid var(--line-light);
}

.panel:not([data-open]) .panel__body { display: none; }

.toc {
  padding-left: 14px;
  border-left: 1px solid var(--line-light);
}

.toc__title {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rock);
}

.toc__list { display: grid; gap: 6px; }

.toc__link {
  display: block;
  margin-left: -16px;
  padding: 3px 0 3px 14px;
  font-size: 13px;
  color: var(--rock);
  border-left: 2px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.toc__link[aria-current="true"] {
  font-weight: 700;
  color: var(--ink);
  border-left-color: var(--signal);
}

.note {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--rock);
  background: rgba(58, 65, 69, 0.045);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--silver);
}

.note__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--rock);
}

.section--deep .note,
.card--deep .note {
  color: rgba(242, 240, 230, 0.82);
  background: rgba(242, 240, 230, 0.06);
  border-color: var(--line-dark);
}

.section--deep .note__label,
.card--deep .note__label { color: rgba(201, 207, 210, 0.7); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rock);
}

.crumbs__link {
  color: var(--rock);
  border-bottom: 1px solid var(--line-light);
}

.crumbs__link:hover {
  color: var(--ink);
  border-color: var(--rock);
}

.crumbs__sep { color: var(--silver); }

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

/* 9.1 图片容器（页面阶段放 alt 文本与素材） */
.media { display: block; }

.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--deep);
  background-image:
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line-light);
}

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

.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--pitch .media__frame { aspect-ratio: 16 / 10; }
.media--portrait .media__frame { aspect-ratio: 3 / 4; }

.media__caption {
  padding-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rock);
}

.section--deep .media__caption { color: rgba(201, 207, 210, 0.7); }

/* ---------- 10. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

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

@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;
  }

  .scorebar__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .scorebar__track {
    width: auto;
    animation: none;
  }

  .scorebar__group {
    flex-wrap: wrap;
    gap: 14px;
    padding-right: 0;
  }

  .scorebar__group[aria-hidden="true"] { display: none; }

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

  .card:hover { transform: none; }
}
