/* =========================================================
   K1 体育主站 · 共享样式表  /assets/site.css
   夜场跑道配色 · 计时台气质 · 切角与刻度
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0B1F1A;
  --panel: #102A22;
  --panel-2: #16382D;
  --cyan: #3DF2C0;
  --orange: #FF5A1F;
  --cream: #F4F1E8;
  --mist: #9FB8AE;
  --line: #2C5A49;
  --halo: #B8FFE8;
  --shadow: #06120E;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-numeric: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;

  --maxw: 1240px;
  --rail: 72px;
  --gap: 24px;
  --cut: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -8%, rgba(61, 242, 192, .10), transparent 68%),
    radial-gradient(700px 420px at -10% 30%, rgba(255, 90, 31, .06), transparent 70%),
    linear-gradient(180deg, #0B1F1A 0%, #0B1F1A 58%, #06120E 100%);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .015em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--halo); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .35em 0; }

button { font: inherit; }

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

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

/* ---------- 3. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: .7em 1.2em;
  background: var(--cyan);
  color: var(--shadow);
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: var(--shadow);
  outline: 2px solid var(--halo);
  outline-offset: 2px;
}

.label {
  display: inline-block;
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
}

.num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.8;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(61, 242, 192, .07);
  color: var(--cyan);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--line) 28%, rgba(44, 90, 73, 0) 100%);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.25em;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #100703;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #100703;
}

.btn--ghost {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(61, 242, 192, .12);
  color: var(--halo);
  border-color: var(--halo);
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-top {
  background: var(--shadow);
  border-bottom: 1px solid rgba(44, 90, 73, .55);
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 24px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background:
    linear-gradient(115deg,
      var(--cyan) 0 33%,
      transparent 33% 64%,
      var(--orange) 64% 100%);
}

.brand__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.15;
}
.brand__link:hover { color: var(--cream); }

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand__tag {
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.header-top__note {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.header-top__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(22, 56, 45, .6);
  color: var(--cream);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background-color .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航轨道 */
.header-nav {
  background: var(--panel);
}

.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__item { margin: 0; }

.primary-nav__link {
  position: relative;
  display: block;
  padding: 13px 14px 15px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.primary-nav__link:hover { color: var(--cyan); }
.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-nav__stamp {
  flex: 0 0 auto;
  margin: 0;
  color: var(--line);
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* 滚动进度 */
.header-progress {
  height: 2px;
  background: rgba(44, 90, 73, .35);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  background: var(--shadow);
  border-top: 1px solid var(--line);
  color: var(--cream);
}

.footer-band {
  position: relative;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,
    rgba(61, 242, 192, 0) 0 16px,
    rgba(61, 242, 192, .11) 16px 18px);
  pointer-events: none;
}

.footer-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px;
}

.footer-band__kicker {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-band__slogan {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.65fr);
  gap: 48px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 24px 36px;
}

.footer-brand__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--cream);
}

.footer-brand__summary {
  margin: 0 0 24px;
  max-width: 44ch;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.75;
}

.footer-contact { margin: 0 0 22px; }

.footer-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact__label {
  flex: 0 0 44px;
  color: var(--line);
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: 2px;
}

.footer-contact__value {
  flex: 1 1 auto;
  color: var(--cream);
  word-break: break-word;
}

.footer-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 90, 73, .7);
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  align-content: start;
}

.footer-col__title {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col__list li { margin: 0; }

.footer-col__link {
  display: inline-block;
  color: var(--cream);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--line);
}

.footer-legal__line {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: .06em;
}

/* ---------- 7. 版式骨架 ---------- */
.section {
  position: relative;
  padding: 64px 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .02em;
}

.section__note {
  margin: 0;
  max-width: 46ch;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-head__eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-head__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: .02em;
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: .02em;
}
.prose h3 {
  margin: 1.4em 0 .5em;
  font-size: 20px;
  color: var(--cyan);
  letter-spacing: .02em;
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
}
.prose a:hover { border-bottom-color: var(--cyan); }
.prose li { color: var(--cream); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 8. 面板与数据 ---------- */
.panel {
  padding: 26px;
  background: var(--panel);
}

.panel--cut {
  background: var(--panel-2);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.panel--edge {
  background: var(--panel);
  border-left: 3px solid var(--cyan);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stat__value {
  font-family: var(--font-numeric);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--cyan);
}

.stat__label {
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: var(--panel-2);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(158deg, rgba(11, 31, 26, .08) 0%, rgba(6, 18, 14, .55) 55%, rgba(6, 18, 14, .92) 100%);
  pointer-events: none;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(108deg,
    rgba(61, 242, 192, 0) 0 22px,
    rgba(61, 242, 192, .06) 22px 24px);
  pointer-events: none;
}

.media__img,
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.1) brightness(.86);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 10. 目录跟随与轮次刻度 ---------- */
.toc {
  position: sticky;
  top: 150px;
  align-self: start;
  padding-left: 4px;
}

.toc__title {
  margin: 0 0 14px;
  color: var(--mist);
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc__list li { margin: 0; }

.toc__link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease);
}
.toc__link:hover {
  color: var(--cream);
  background: rgba(61, 242, 192, .05);
}
.toc__link[aria-current] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(61, 242, 192, .08);
}

.rail {
  display: none;
}

.rail__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail__list li { margin: 0; }

.rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid var(--line);
  color: var(--mist);
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease);
}
.rail__link:hover { color: var(--cream); }
.rail__link[aria-current] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(61, 242, 192, .08);
}

/* ---------- 11. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-2);
  color: var(--cyan);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s var(--ease), border-color .2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { border-color: var(--cyan); }

/* ---------- 12. 滚动显现 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
html.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (min-width: 1200px) {
  .rail {
    display: block;
    position: sticky;
    top: 150px;
    align-self: start;
    width: var(--rail);
    flex: 0 0 var(--rail);
  }
}

@media (max-width: 1024px) {
  .header-top__note { display: none; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

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

  .header-top__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    min-height: 60px;
  }

  .header-top__actions {
    gap: 8px;
    margin-left: auto;
  }

  .header-top__actions .btn {
    padding: .58em .9em;
    font-size: 12px;
    letter-spacing: .05em;
  }

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

  .header-nav { display: none; }
  .site-header[data-open="true"] .header-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .header-nav__inner {
    display: block;
    padding: 0 16px;
  }

  .header-nav__stamp { display: none; }

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

  .primary-nav__link {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(44, 90, 73, .55);
  }
  .primary-nav__link::after { display: none; }
  .primary-nav__link[aria-current="page"] {
    padding-left: 14px;
    border-left: 3px solid var(--cyan);
    background: rgba(61, 242, 192, .08);
  }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .section { padding: 48px 0; }

  .toc {
    position: static;
    margin-bottom: 28px;
  }
  .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .toc__link {
    border-left: 0;
    border: 1px solid var(--line);
    padding: 6px 12px;
    font-size: 12px;
  }
  .toc__link[aria-current] {
    border-color: var(--cyan);
  }

  .panel { padding: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }

  .header-top__actions .btn--ghost { display: none; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 10px; letter-spacing: .12em; }

  .footer-band__inner { padding: 22px 16px; }
  .footer-grid { padding: 40px 16px 28px; gap: 32px; }
  .footer-legal { padding: 16px 16px 26px; }

  .grid--12 { grid-template-columns: minmax(0, 1fr); }

  .section { padding: 40px 0; }
  .section__head { margin-bottom: 24px; }

  .page-head { padding: 40px 0 30px; }

  .lede { font-size: 17px; }

  .divider { margin: 32px 0; }

  .back-to-top { right: 14px; bottom: 14px; padding: 9px 12px; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover { transform: none; }
}
