/* ==========================================================================
   9博体育看台 · 共享样式表 /assets/site.css
   夜场黑基底 · 荧光青脉冲 · 锐利直角 · 精密网格
   ========================================================================== */

/* ---------- 0. 变量 ---------- */
:root {
  --ink: #07090B;
  --panel: #101418;
  --card: #1B2126;
  --line: #2A3238;
  --cyan: #35F0E0;
  --violet: #7C4DFF;
  --orange: #FF6A2B;
  --mist: #9AA7AE;
  --paper: #EDEFE6;
  --paper-dim: #D7DCD6;

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

  --fs-hero: clamp(40px, 7vw, 96px);
  --fs-h1: clamp(32px, 4.6vw, 56px);
  --fs-h2: clamp(24px, 3.2vw, 32px);
  --fs-h3: 20px;
  --fs-body: 16px;

  --maxw: 1440px;
  --gutter: clamp(16px, 3vw, 24px);
  --gap-s: 8px;
  --gap-m: 20px;
  --gap-l: 40px;
  --section-gap: clamp(56px, 8vw, 112px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(53, 240, 224, .045) 0%, rgba(7, 9, 11, 0) 320px);
  background-repeat: no-repeat;
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; }

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

::selection {
  background: var(--cyan);
  color: var(--ink);
}

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

/* ---------- 2. 中文排版基线 ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--paper);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }

p { max-width: 46ch; }

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

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

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

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-m);
}

.stack > * + * { margin-top: 1.4em; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid var(--cyan);
  transition: top .18s var(--ease);
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.btn--accent {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 0 0 rgba(53, 240, 224, .16);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: inset 0 0 0 22px rgba(53, 240, 224, .16);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper-dim);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--line {
  border-color: transparent;
  border-bottom: 1px solid var(--cyan);
  border-radius: 0;
  padding: 4px 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.btn--line:hover,
.btn--line:focus-visible {
  border-bottom-color: var(--paper);
  color: var(--paper);
}

/* ---------- 6. 标签与微件 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--violet { border-color: rgba(124, 77, 255, .55); color: #B9A0FF; }
.tag--orange { border-color: rgba(255, 106, 43, .55); color: #FF9B70; }

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--mist);
  white-space: nowrap;
}

/* ---------- 7. 头部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}

.masthead[data-scrolled] {
  border-bottom-color: var(--cyan);
}

.masthead__inner {
  display: flex;
  align-items: stretch;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 92px;
  transition: min-height .28s var(--ease);
}

.masthead[data-scrolled] .masthead__inner { min-height: 62px; }

.masthead__rail {
  flex: none;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.rail__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--mist);
  white-space: nowrap;
  transition: color .28s var(--ease);
}

.masthead[data-scrolled] .rail__text { color: var(--cyan); }

.masthead__brand {
  flex: none;
  display: flex;
  align-items: center;
  padding-inline: 20px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(53, 240, 224, .16), rgba(53, 240, 224, 0));
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  white-space: nowrap;
  max-height: 20px;
  overflow: hidden;
  transition: opacity .24s var(--ease), max-height .28s var(--ease);
}

.masthead[data-scrolled] .brand__tagline {
  opacity: 0;
  max-height: 0;
}

.masthead__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  padding-block: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .22s var(--ease), color .22s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .26s var(--ease), top .26s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

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

.nav {
  min-width: 0;
}

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

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: block;
  padding: 12px 12px;
  color: var(--paper-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

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

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.masthead__cta {
  flex: none;
  display: flex;
  align-items: center;
}

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

.masthead__meta-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.meta__item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.meta__sep {
  width: 1px;
  height: 11px;
  background: var(--line);
  display: inline-block;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 78%, var(--orange) 100%);
}

/* ---------- 8. 页脚 ---------- */
.footer {
  position: relative;
  margin-top: var(--section-gap);
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 132px;
  height: 1px;
  background: var(--cyan);
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.footer__brandcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--paper);
  max-width: none;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
  max-width: none;
}

.footer__annotation {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  max-width: 24ch;
  line-height: 1.9;
  margin-top: 6px;
}

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

.footer__col { display: flex; flex-direction: column; gap: 12px; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--mist);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer__contact { display: flex; flex-direction: column; gap: 12px; }

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.contact__item:first-child { border-top: 0; padding-top: 0; }

.contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.contact__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-dim);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.copy-btn:hover,
.copy-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-btn.is-copied {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.footer__legal {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer__legal-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal-line,
.footer__copyright {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  max-width: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. 面板与卡片 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(20px, 3vw, 44px);
}

.panel--flush { padding: 0; }

.panel--grid {
  background-image:
    linear-gradient(rgba(42, 50, 56, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 50, 56, .55) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(18px, 2vw, 26px);
  transition: border-color .26s var(--ease), transform .26s var(--ease);
}

.card:hover {
  border-color: rgba(53, 240, 224, .45);
  transform: translateY(-3px);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--paper);
}

.card__text {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--paper-dim);
  max-width: 40ch;
}

/* ---------- 10. 章节头 ---------- */
.section-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
}

.section-head__body { min-width: 0; }

.section-head__title {
  font-size: var(--fs-h2);
  max-width: 24ch;
}

.section-head__note {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 42ch;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs span[aria-current="page"] { color: var(--cyan); }

.breadcrumbs__sep { color: var(--line); }

/* ---------- 12. 正文排版区 ---------- */
.prose {
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--paper-dim);
}

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

.prose h2,
.prose h3 {
  max-width: 30ch;
  margin-top: 2em;
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 224, .4);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 0;
  margin-top: .6em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.3em;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.prose ol { counter-reset: prose-ol; }

.prose ol > li { counter-increment: prose-ol; }

.prose ol > li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: -2.2em;
  top: .18em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: .06em;
}

.prose blockquote {
  border-left: 1px solid var(--cyan);
  padding-left: 18px;
  color: var(--mist);
  font-size: 15.5px;
}

/* ---------- 13. 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.data-table caption {
  text-align: left;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--mist);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.data-table thead th {
  color: var(--mist);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .14em;
  border-bottom-color: var(--cyan);
  white-space: nowrap;
}

.data-table tbody tr { transition: background-color .2s var(--ease); }

.data-table tbody tr:hover { background: rgba(53, 240, 224, .05); }

.data-table td:first-child { color: var(--paper); }

.data-table .is-up { color: var(--orange); }
.data-table .is-down { color: var(--violet); }

/* ---------- 14. 图片容器（页面阶段放置图片） ---------- */
.figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06) brightness(.92);
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0) 45%, rgba(7, 9, 11, .78) 100%),
    repeating-linear-gradient(90deg, rgba(42, 50, 56, .28) 0 1px, transparent 1px 48px);
  mix-blend-mode: normal;
}

.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 3 / 4; }
.figure__media--square { aspect-ratio: 1 / 1; }

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--mist);
  max-width: 46ch;
}

/* ---------- 15. 显现动画 ---------- */
html[data-js] .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brandcol {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 22px;
  }
}

@media (max-width: 1023px) {
  html { scroll-padding-top: 96px; }

  .masthead__inner { min-height: 70px; }
  .masthead[data-scrolled] .masthead__inner { min-height: 58px; }

  .masthead__nav {
    position: static;
    justify-content: flex-end;
    gap: 12px;
  }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 55;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--cyan);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
  }

  .nav[data-open] {
    max-height: 76vh;
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

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

  .nav__link {
    padding: 15px var(--gutter);
    font-size: 15px;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    background: rgba(53, 240, 224, .07);
    box-shadow: inset 2px 0 0 var(--cyan);
  }

  .masthead__cta .btn { padding: 9px 14px; font-size: 13px; }

  .section-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .section-head__index { padding-top: 4px; }
}

@media (max-width: 860px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --section-gap: 64px; }

  .masthead__rail { display: none; }

  .masthead__brand { padding-inline: 16px 10px; }

  .brand__mark { width: 34px; height: 34px; font-size: 16px; }

  .brand__name { font-size: 15px; }

  .brand__tagline { display: none; }

  .masthead__cta .btn {
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .masthead__meta-inner { gap: 10px; padding-block: 6px; }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .footer__annotation { max-width: none; }

  .footer__legal-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .contact__item { grid-template-columns: 44px minmax(0, 1fr) auto; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .section-head__index { padding-top: 0; }

  .section-head__title { max-width: none; }

  .prose { max-width: none; }

  .data-table th,
  .data-table td { padding: 10px 8px; font-size: 12px; }
}

@media (max-width: 420px) {
  .masthead__cta .btn { padding: 7px 8px; font-size: 11px; }
  .copy-btn { padding: 2px 6px; }
}

/* ---------- 17. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover { transform: none; }
  .footer__link:hover,
  .footer__link:focus-visible { transform: none; }
}
