/* =========================================================
   新利体育入口 · 全站共享样式 /assets/site.css
   语言：高原蓝图 · 侧轨索引 · 冷暖对撞
   ========================================================= */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
:where(h1, h2, h3, h4) { line-height: 1.12; letter-spacing: -0.015em; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-950: #0A0F14;
  --snow-50: #F7FAFC;
  --white: #FFFFFF;
  --sky-700: #0B5E7D;
  --sky-500: #1B8DBF;
  --sky-100: #DCEFF7;
  --red-600: #B23A2B;
  --gold-500: #C99A3D;
  --gold-ink: #8A6620;
  --slate-600: #475569;
  --line-300: #CBD5E1;
  --blueprint-800: #143B4A;

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

  --rail-w: 232px;
  --topbar-h: 64px;
  --dock-h: 68px;
  --content-max: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-950);
  background-color: var(--snow-50);
  background-image:
    linear-gradient(to right, rgba(203, 213, 225, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.28) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 900; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; }
::selection { background: var(--sky-500); color: var(--white); }
#main-content { scroll-margin-top: calc(var(--topbar-h) + 12px); }

:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.rail :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-500); }

/* ---------- 4. 工具类与容器 ---------- */
.sr-only {
  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;
}
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 7vw, 116px); }
.section--tight { padding-block: clamp(36px, 4.5vw, 64px); }

/* ---------- 5. 头部 · 侧轨 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 80;
}
.progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  height: 3px;
  background: rgba(203, 213, 225, 0.16);
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sky-500) 0%, var(--sky-100) 58%, var(--gold-500) 100%);
  transition: width 0.14s linear;
}
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100%;
  padding: 30px 20px 24px;
  color: var(--snow-50);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(to right, rgba(203, 213, 225, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  border-right: 1px solid rgba(203, 213, 225, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px 12px 12px 3px;
  background: linear-gradient(150deg, var(--sky-500) 0%, var(--sky-700) 58%, var(--blueprint-800) 100%);
  box-shadow: inset 0 0 0 1px rgba(247, 250, 252, 0.18);
}
.brand__mark::before {
  content: "";
  position: absolute;
  top: 9px; left: 9px;
  width: 13px; height: 2px;
  background: rgba(247, 250, 252, 0.88);
  box-shadow: 0 5px 0 rgba(247, 250, 252, 0.52), 0 10px 0 rgba(247, 250, 252, 0.3);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 6px; bottom: 6px;
  width: 9px; height: 9px;
  border-radius: 2px 2px 9px 2px;
  background: var(--gold-500);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
}
.brand__tagline {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(247, 250, 252, 0.55);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(203, 213, 225, 0.32);
  border-radius: 999px;
  color: var(--snow-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s linear;
}
.site-header[data-open] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.rail__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 auto;
  min-height: 0;
}
.rail__nav { display: flex; flex-direction: column; min-height: 0; }
.rail__caption {
  margin-bottom: 10px;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(247, 250, 252, 0.42);
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list__item { display: block; }
.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: rgba(247, 250, 252, 0.72);
  transition: color 0.18s linear, background-color 0.18s linear;
}
.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(203, 213, 225, 0.45);
  transition: color 0.18s linear;
}
.nav-link__label { letter-spacing: 0.01em; }
.nav-link:hover { color: var(--white); background: rgba(27, 141, 191, 0.16); }
.nav-link:hover .nav-link__index { color: var(--sky-500); }
.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg, rgba(27, 141, 191, 0.32), rgba(27, 141, 191, 0.06));
}
.nav-link[aria-current="page"] .nav-link__index { color: var(--gold-500); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 3px; height: 20px;
  margin-top: -10px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-500);
}
.rail__status {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
}
.status__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sky-500);
}
.status__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-600);
  box-shadow: 0 0 0 3px rgba(178, 58, 43, 0.24);
}
.status__text {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(247, 250, 252, 0.56);
}
.rail__cta { width: 100%; }
.nav-scrim { display: none; }
.mobile-dock { display: none; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s linear, color 0.2s linear, border-color 0.2s linear, transform 0.2s var(--ease);
}
.btn--primary {
  background: var(--sky-700);
  color: var(--white);
  box-shadow: 0 10px 24px -16px rgba(11, 94, 125, 0.95);
}
.btn--primary:hover { background: var(--blueprint-800); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--light {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--line-300);
}
.btn--light:hover { border-color: var(--sky-700); color: var(--sky-700); }
.btn--ghost {
  background: transparent;
  color: var(--sky-100);
  border-color: rgba(220, 239, 247, 0.38);
}
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn--sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate-600);
}
.breadcrumb__link { color: var(--sky-700); transition: color 0.18s linear; }
.breadcrumb__link:hover { color: var(--sky-500); }
.breadcrumb__sep { color: var(--line-300); }
.breadcrumb__current { color: var(--ink-950); }

/* ---------- 8. 章节编号 ---------- */
.chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.chapter__label {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.chapter__index {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--sky-500);
}
.chapter__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}

/* ---------- 9. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap, 24px);
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}
@media (min-width: 760px) {
  .grid--2 { --cols: 2; }
  .grid--3 { --cols: 2; }
}
@media (min-width: 560px) {
  .grid--4 { --cols: 2; }
}
@media (min-width: 1080px) {
  .grid--3 { --cols: 3; }
  .grid--4 { --cols: 4; }
}

/* ---------- 10. 卡片与数据 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.card--notch { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; }
.card--sky {
  background: var(--sky-100);
  border-color: rgba(11, 94, 125, 0.18);
}
.card--data {
  background: var(--ink-950);
  border-color: rgba(203, 213, 225, 0.18);
  color: var(--snow-50);
}
.card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}
.card--data .card__title { color: var(--white); }
.card__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate-600);
}
.card--data .card__meta { color: rgba(247, 250, 252, 0.6); }
.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--sky-700);
}
.card--data .data-figure { color: var(--gold-500); }
.data-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.card--data .data-label { color: rgba(247, 250, 252, 0.56); }

/* ---------- 11. 标签与筛选 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(11, 94, 125, 0.22);
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.tag--red {
  background: rgba(178, 58, 43, 0.1);
  border-color: rgba(178, 58, 43, 0.28);
  color: var(--red-600);
}
.tag--gold {
  background: rgba(201, 154, 61, 0.14);
  border-color: rgba(201, 154, 61, 0.4);
  color: var(--gold-ink);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s linear, color 0.18s linear, border-color 0.18s linear;
}
.chip:hover { border-color: var(--sky-500); color: var(--sky-700); }
.chip[aria-pressed="true"] {
  background: var(--sky-700);
  border-color: var(--sky-700);
  color: var(--white);
}
.chip[aria-pressed="true"]::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------- 12. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-950);
}
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--sky-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--sky-500); }
.prose strong { font-weight: 700; }
.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--gold-500);
  color: var(--slate-600);
}

/* ---------- 13. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(220, 239, 247, 0.9), rgba(247, 250, 252, 0.9)),
    var(--sky-100);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 94, 125, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 94, 125, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
}
.media__caption {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 15, 20, 0.74);
  color: var(--snow-50);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 14. 可展开内容组 ---------- */
.disclosure { border-top: 1px solid var(--line-300); }
.disclosure__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-950);
  transition: color 0.18s linear;
}
.disclosure__toggle:hover { color: var(--sky-700); }
.disclosure__icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--sky-700);
  transform: translateY(-50%);
  transition: transform 0.26s var(--ease);
}
.disclosure__icon::after { transform: translateY(-50%) rotate(90deg); }
.disclosure__toggle[aria-expanded="true"] .disclosure__icon::after {
  transform: translateY(-50%) rotate(0deg);
}
.disclosure__panel {
  padding: 0 4px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate-600);
}
.disclosure__panel[hidden] { display: none; }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) var(--gutter) 0;
  background-color: var(--blueprint-800);
  color: var(--snow-50);
  border-top: 3px solid var(--gold-500);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(220, 239, 247, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 239, 247, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 76%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 76%);
}
.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 3.4vw, 48px);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer__eyebrow::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 2px 2px 10px 2px;
  background: var(--gold-500);
}
.footer__lede {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 250, 252, 0.68);
}
.footer__col { min-width: 0; }
.footer__title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sky-100);
}
.footer__title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 2px;
  margin-top: -1px;
  background: var(--gold-500);
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(247, 250, 252, 0.72);
  transition: color 0.18s linear;
}
.footer__list a::before {
  content: "";
  width: 6px; height: 1px;
  background: rgba(220, 239, 247, 0.42);
  transition: width 0.2s var(--ease), background-color 0.18s linear;
}
.footer__list a:hover { color: var(--white); }
.footer__list a:hover::before { width: 14px; background: var(--gold-500); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(247, 250, 252, 0.76);
}
.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(220, 239, 247, 0.5);
  padding-top: 2px;
}
.footer__contact-val { word-break: break-word; }
.footer__note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(247, 250, 252, 0.62);
}
.footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(220, 239, 247, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 250, 252, 0.56);
}
.footer__legal-line { line-height: 1.6; }

/* ---------- 16. 响应式 · 平板与手机 ---------- */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
    padding-bottom: calc(var(--dock-h) + 14px);
    background-size: 80px 80px;
  }
  .site-header { right: 0; bottom: auto; width: 100%; }
  .rail {
    height: auto;
    min-height: var(--topbar-h);
    gap: 0;
    padding: 12px 16px 10px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.22);
  }
  .rail__top { min-height: 38px; }
  .brand__tagline { display: none; }
  .nav-toggle { display: inline-flex; }
  .rail__panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: min(86vw, 340px);
    padding: 82px 22px 30px;
    background-color: var(--ink-950);
    background-image:
      linear-gradient(to right, rgba(203, 213, 225, 0.09) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(203, 213, 225, 0.09) 1px, transparent 1px);
    background-size: 38px 38px;
    border-right: 1px solid rgba(203, 213, 225, 0.22);
    box-shadow: 24px 0 60px -30px rgba(10, 15, 20, 0.9);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0.34s linear;
  }
  .site-header[data-open] .rail__panel { transform: translateX(0); visibility: visible; }
  .rail__nav { margin-top: 0; }
  .rail__status { margin-top: 8px; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(10, 15, 20, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s linear;
  }
  .site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-950);
    border-top: 1px solid rgba(203, 213, 225, 0.22);
  }
  .mobile-dock__link {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    background: var(--sky-700);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
  }
  .mobile-dock__link--alt {
    background: rgba(220, 239, 247, 0.1);
    border: 1px solid rgba(220, 239, 247, 0.22);
    color: var(--sky-100);
  }
  #main-content { scroll-margin-top: calc(var(--topbar-h) + 16px); }
}

@media (max-width: 620px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__lede, .footer__note { max-width: none; }
  .footer__legal { font-size: 11px; letter-spacing: 0.04em; }
}

/* ---------- 17. 动效偏好 ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .progress__bar { transition: none !important; }
  .site-header[data-open] .nav-toggle__bars span:first-child,
  .site-header[data-open] .nav-toggle__bars span:last-child { transform: none; }
}
