/* ============================================================
   BALLBET 贝博 · 共享外壳样式 /assets/site.css
   轨道蓝 + 纸面米白 + 行动橙 + 资质青绿
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
[hidden] { display: none !important; }
[id] { scroll-margin-block-start: 128px; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --blue-deep: #0B1F3B;
  --night: #071426;
  --orange: #FF6B1A;
  --orange-soft: #FFB37A;
  --teal: #0FBF9B;
  --mint: #A8EBDD;
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --slate: #5A6B85;
  --ink: #111820;
  --amber: #FFD166;

  --on-dark: rgba(255, 255, 255, .80);
  --on-dark-soft: rgba(255, 255, 255, .52);
  --hairline: rgba(11, 31, 59, .14);
  --hairline-strong: rgba(11, 31, 59, .30);
  --hairline-dark: rgba(255, 255, 255, .16);

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow-card: 0 22px 48px -30px rgba(11, 31, 59, .55);
  --container: 1240px;
  --pad: clamp(18px, 4vw, 24px);
  --space: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(.22, 1, .36, 1);

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

/* ---------- 3. 基础与中文排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: var(--amber);
  outline-offset: 3px;
}

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

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

/* ---------- 4. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  position: relative;
  padding-block: var(--space);
}
.section--tight { padding-block: calc(var(--space) * .6); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--night { background: var(--blue-deep); color: #fff; }
.section--mint { background: var(--mint); color: var(--ink); }
.section--night a { color: inherit; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--split { grid-template-columns: 1fr; }

@media (min-width: 920px) {
  .grid--split { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); align-items: start; }
  .grid--split.grid--flip { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
}

/* ---------- 5. 字体体系 ---------- */
.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
}
.h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
}
.h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.section--night .eyebrow { color: var(--orange-soft); }
.lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: var(--slate);
}
.section--night .lede { color: var(--on-dark); }

.slash-rule {
  height: 2px;
  width: clamp(80px, 18vw, 180px);
  margin-block: 24px;
  background: var(--orange);
  transform: rotate(-3deg);
  transform-origin: left center;
}

/* ---------- 6. 通用组件 ---------- */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
}
.dot--teal { background: var(--teal); box-shadow: 0 0 0 3px rgba(15, 191, 155, .18); }
.dot--amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 209, 102, .18); }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn--primary { background: var(--orange); color: var(--night); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after { transform: scaleX(1); }
.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: inherit;
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--small { padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.6;
}
.pill--dark {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--hairline-dark);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(11, 31, 59, .07);
  color: var(--ink);
}
.tag--orange { background: var(--orange); color: var(--night); }
.tag--teal { background: rgba(15, 191, 155, .18); color: #056A57; }
.tag--amber { background: rgba(255, 209, 102, .40); color: #6B4B00; }

.card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.card__text { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--slate); }
.card--tilt { transform: rotate(-1.2deg); }
.card--tilt:hover { transform: rotate(0deg) translateY(-4px); }
.section--night .card { background: rgba(255, 255, 255, .05); border-color: var(--hairline-dark); color: #fff; }
.section--night .card__text { color: var(--on-dark); }

.note {
  padding: 20px 22px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--teal);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  line-height: 1.75;
}
.note__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #056A57;
}
.section--night .note { background: rgba(255, 255, 255, .05); color: #fff; }
.section--night .note__label { color: var(--teal); }

.breadcrumbs { padding: 0; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--orange); font-weight: 700; }
.breadcrumbs__link { color: var(--slate); text-decoration: none; }
.breadcrumbs__link:hover { color: var(--orange); }
.breadcrumbs__item[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* 图片 / 视觉容器基础规则（页面阶段填入 SVG 或图片） */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(115deg, rgba(11, 31, 59, .06) 0 1px, transparent 1px 28px),
    linear-gradient(140deg, var(--mint), rgba(168, 235, 221, .22));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .82);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .10em;
}
@media (max-width: 640px) {
  .media-frame { border-radius: var(--r-md); }
  .media-frame--wide { aspect-ratio: 16 / 10; }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--white);
}
.data-table { min-width: 520px; font-size: 15px; }
.data-table th,
.data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate);
  font-weight: 500;
  background: rgba(168, 235, 221, .22);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(246, 243, 236, .8); }

/* 主题筛选（仅筛选本页已有内容） */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.filter-btn:hover { border-color: var(--orange); }
.filter-btn[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.filter-btn__count {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(11, 31, 59, .08);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}
.filter-btn[aria-pressed="true"] .filter-btn__count { background: var(--orange); color: var(--night); }
.filter-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}

/* 粘性目录 */
.toc { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 2px; }
.toc__link {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--hairline);
  color: var(--slate);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active { border-left-color: var(--orange); color: var(--ink); font-weight: 700; }

/* 入场 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 7. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 20px 44px -34px rgba(7, 20, 38, .95);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--orange);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: 0; }

.header-strip {
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--on-dark-soft);
}
.header-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 34px;
  padding-block: 6px;
}
.header-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--on-dark);
}
.header-strip__meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: .10em;
  color: var(--on-dark-soft);
}

.cmdbar { position: relative; background: var(--blue-deep); }
.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  min-height: 78px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: #fff;
  text-decoration: none;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 14px 14px 14px 6px;
  background: var(--orange);
  color: var(--night);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--blue-deep);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.brand__tag { font-size: 10.5px; letter-spacing: .12em; color: var(--on-dark-soft); }

.cmdbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 8px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__index {
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .38);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; font-weight: 700; }
.nav__link[aria-current="page"]::after { height: 3px; transform: scaleX(1); }
.nav__link[aria-current="page"] .nav__index { color: var(--orange-soft); }
.nav__link[aria-current="page"] .nav__index::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}
.nav__cta { flex: none; padding: 10px 20px; }

.cmdbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background .15s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.read-progress { height: 3px; overflow: hidden; background: rgba(255, 255, 255, .10); }
.read-progress__bar {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 30px;
  background: var(--night);
  color: var(--on-dark);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0 22%,
    var(--teal) 22% 38%,
    rgba(255, 255, 255, .10) 38% 100%);
}
.footer__slash {
  position: absolute;
  top: 0; right: -12%;
  width: 68%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 56px);
}
@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr);
    gap: clamp(40px, 6vw, 80px);
  }
}

.footer__brand { min-width: 0; }
.footer__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
}
.footer__wordmark-cn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--orange-soft);
}
.footer__motto {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark);
}
.footer__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.footer__col { min-width: 0; }
.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--orange-soft);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--on-dark);
  font-size: 15px;
  text-decoration: none;
  transition: color .15s var(--ease);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.footer__link:hover { color: #fff; }
.footer__link:hover::after { transform: scaleX(1); }

.footer__contact {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--hairline-dark);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #fff;
  overflow-wrap: anywhere;
}
.contact-list__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--teal);
}

.footer__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline-dark);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--on-dark-soft);
}
.footer__legal-icp { color: var(--on-dark); }
.footer__legal-copy { color: var(--on-dark-soft); }
.footer__footnote {
  margin: 0;
  max-width: 56ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-soft);
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav__index { display: none; }
  .nav__link { font-size: 14px; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 96px; }
  [id] { scroll-margin-block-start: 96px; }

  .header-strip__meta { display: none; }
  .cmdbar__inner { min-height: 66px; }
  .nav-toggle { display: inline-flex; }

  .cmdbar__nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: block;
    margin: 0;
    max-height: 82vh;
    overflow-y: auto;
    padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--night);
    box-shadow: 0 -28px 60px -28px rgba(0, 0, 0, .85);
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s linear .32s;
  }
  .cmdbar__nav[data-open] {
    transform: translateY(0);
    visibility: visible;
    transition: transform .32s var(--ease);
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item + .nav__item { border-top: 1px solid var(--hairline-dark); }
  .nav__link {
    width: 100%;
    padding: 15px 6px;
    font-size: 17px;
    border-radius: var(--r-sm);
  }
  .nav__link::after { display: none; }
  .nav__index { display: inline; font-size: 11px; }
  .nav__link[aria-current="page"] {
    padding-left: 14px;
    background: rgba(255, 107, 26, .12);
  }
  .nav__link[aria-current="page"] .nav__index::before { margin-right: 7px; }
  .nav__cta { width: 100%; margin-top: 18px; padding: 14px 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-strip__inner { justify-content: flex-start; }
  .header-strip__status { font-size: 11.5px; }
  .brand__mark { width: 36px; height: 36px; font-size: 17px; border-radius: 12px 12px 12px 5px; }
  .brand__name { font-size: 15.5px; }
  .brand__tag { font-size: 9.5px; letter-spacing: .10em; }
  .footer__legal { font-size: 11px; }
  .toc { position: static; }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card, .card:hover, .card--tilt, .card--tilt:hover { transform: none; }
  .read-progress__bar { transition: none; }
}
