/* ==========================================================================
   沙巴体育·CN 中国站 — 共享样式表 /assets/site.css
   深海蓝底 · 蓝图网格 · 沙砾金锚点 · 荧光青绿数据高亮 · 暖橙赛前提醒
   ========================================================================== */

/* 1. 设计变量 ------------------------------------------------------------- */
:root {
  --bg: #071A28;
  --bg-deep: #030B12;
  --panel: #0E2637;
  --panel-2: #0A1E2D;
  --line: #1C3A50;
  --line-soft: rgba(28, 58, 80, .55);

  --gold: #D8A657;
  --gold-soft: #F0D9A8;
  --gold-deep: #8A6428;
  --mint: #3FE0B8;
  --amber: #FF7A45;
  --alert: #E0523F;
  --sand: #E8E2D4;
  --white: #F4F8FB;
  --text: #A9C0D0;
  --text-dim: #6F8EA6;

  --rail-w: 238px;
  --gutter: 24px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-panel: 0 24px 60px -34px rgba(0, 0, 0, .95);
}

/* 2. 重置与基础排版 ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(to right, rgba(28, 58, 80, .42) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(28, 58, 80, .26) 0 1px, transparent 1px 96px),
    radial-gradient(120% 80% at 80% -12%, rgba(63, 224, 184, .07), transparent 62%),
    radial-gradient(90% 70% at 8% 108%, rgba(216, 166, 87, .06), transparent 66%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(15px, .9rem + .2vw, 17px);
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--white);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
h4 { font-size: 1.02rem; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

strong, b { color: var(--white); font-weight: 700; }
small { font-size: .8rem; color: var(--text-dim); }

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

code, kbd, samp, time, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.num { font-weight: 700; color: var(--white); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(24px, 4vw, 44px) 0;
}

::selection { background: var(--gold); color: #06131D; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. 跳到主要内容 -------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #06131D;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #06131D;
}

/* 4. 阅读进度条 ---------------------------------------------------------- */
.progressbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 160;
  pointer-events: none;
  background: rgba(28, 58, 80, .42);
}

.progressbar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--mint));
  box-shadow: 0 0 12px rgba(63, 224, 184, .45);
}

@media (min-width: 981px) {
  .progressbar { left: var(--rail-w); }
}

/* 5. 头部：桌面竖向导轨 -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  background: linear-gradient(180deg, #04121D 0%, #071A28 55%, #030B12 100%);
  border-right: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -1px;
  bottom: 12%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: .35;
}

/* 5.1 品牌块 ------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
  color: var(--white);
}

.masthead__brand:hover { color: var(--white); }

.masthead__mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold) 46%, var(--gold-deep));
  color: #06131D;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px -14px rgba(216, 166, 87, .9), inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.masthead__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.masthead__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}

.masthead__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--gold);
}

/* 5.2 移动导航按钮 ------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 38, 55, .9);
  color: var(--white);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .24s var(--ease), color .24s var(--ease), background-color .24s var(--ease);
}

.nav-toggle:hover { border-color: rgba(216, 166, 87, .65); color: var(--gold-soft); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .24s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}

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

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

/* 5.3 导航列表 ----------------------------------------------------------- */
.sitenav { position: relative; }

.sitenav__caption {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold);
}

.sitenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sitenav__item { margin: 0; }

.sitenav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color .24s var(--ease), background-color .24s var(--ease), border-color .24s var(--ease);
}

.sitenav__idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  transition: color .24s var(--ease);
}

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

.sitenav__link:hover {
  color: var(--white);
  background-color: rgba(28, 58, 80, .42);
}

.sitenav__link:hover .sitenav__idx { color: var(--mint); }

.sitenav__link[aria-current="page"] {
  color: var(--gold);
  background-color: rgba(216, 166, 87, .09);
  border-left-color: var(--gold);
}

.sitenav__link[aria-current="page"] .sitenav__idx { color: var(--gold); }
.sitenav__link[aria-current="page"] .sitenav__label { font-weight: 800; }

.sitenav__foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitenav__note {
  margin: 0;
  font-family: var(--font-serif);
  font-size: .72rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* 5.4 桌面端导轨推挤与底部对齐 ------------------------------------------ */
@media (min-width: 981px) {
  body { padding-left: var(--rail-w); }

  .sitenav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    min-height: 0;
  }

  .sitenav__list { flex: 0 0 auto; }
  .sitenav__foot { margin-top: auto; }
}

/* 6. 头部：窄屏底部悬浮条 ------------------------------------------------ */
@media (max-width: 980px) {
  .site-header {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(3, 11, 18, .95), #030B12);
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .site-header::after { display: none; }

  .masthead { flex: 1 1 auto; }
  .masthead__mark { width: 34px; height: 34px; border-radius: 11px; font-size: .92rem; }
  .masthead__name { font-size: .94rem; }
  .masthead__sub { font-size: .58rem; letter-spacing: .14em; }

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

  .sitenav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 10;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 14px;
    background: rgba(9, 26, 39, .985);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: 0 -28px 60px -30px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s linear;
  }

  .sitenav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sitenav__caption { letter-spacing: .2em; margin-bottom: 10px; }
  .sitenav__link { padding: 11px 12px; font-size: .92rem; }
  .sitenav__foot { margin-top: 14px; }

  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* 7. 通用按钮 ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--white);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .24s var(--ease), background-color .24s var(--ease),
              border-color .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 166, 87, .6);
  color: var(--white);
}

.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #06131D;
}

.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #06131D;
  box-shadow: 0 14px 30px -18px rgba(216, 166, 87, .9);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

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

.btn--block { display: flex; width: 100%; }

/* 8. 返回顶部 ------------------------------------------------------------ */
.backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 38, 55, .96);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-panel);
  -webkit-tap-highlight-color: transparent;
  transition: transform .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}

.backtop[hidden] { display: none; }

.backtop:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--white);
}

.backtop__icon {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

@media (max-width: 980px) {
  .backtop {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}

/* 9. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 140px);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(28, 58, 80, .5) 0 1px, transparent 1px 96px),
    radial-gradient(80% 60% at 88% 0%, rgba(216, 166, 87, .08), transparent 62%);
  opacity: .75;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__logo {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--white);
}

.footer__logo-sub {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
}

.footer__tag {
  margin: 0;
  max-width: 26ch;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-dim);
}

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

.footer__col { min-width: 0; }

.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
}

.footer__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 9px;
  background: var(--line);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__list li { margin: 0; }

.footer__link {
  display: inline-block;
  padding: 1px 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: .85rem;
  text-decoration: none;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.footer__link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.footer__contact {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer__item {
  display: flex;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-size: .8rem;
  line-height: 1.7;
}

.footer__k {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--mint);
}

.footer__v {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.footer__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.footer__meta p { margin: 0; }
.footer__icp { color: var(--text); }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* 10. 容器 --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1480px; }

/* 11. 面包屑 ------------------------------------------------------------- */
.crumb { padding-block: clamp(18px, 3vw, 32px) 0; }

.crumb__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: .7rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.crumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.crumb__item + .crumb__item::before {
  content: "/";
  color: var(--line);
}

.crumb a { color: var(--text); text-decoration: none; }
.crumb a:hover { color: var(--gold); }

/* 12. 章节题头 ----------------------------------------------------------- */
.section { padding-block: clamp(36px, 6vw, 80px); }

.section__head {
  position: relative;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section__label {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold);
}

.section__label::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
}

.section__desc {
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: .94rem;
  color: var(--text);
}

/* 13. 面板与标签 --------------------------------------------------------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.panel--flush { padding: 0; overflow: hidden; }

.panel__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 58, 80, .35);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text);
}

.tag--gold { border-color: rgba(216, 166, 87, .5); color: var(--gold); }
.tag--live { border-color: rgba(63, 224, 184, .5); color: var(--mint); }
.tag--alert { border-color: rgba(255, 122, 69, .5); color: var(--amber); }

/* 14. 网格 --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 15. 图片容器 ----------------------------------------------------------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #0E2637, #06141F 58%, #0A2533);
}

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

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 11, 18, 0) 42%, rgba(3, 11, 18, .72));
}

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

.figure__cap {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(3, 11, 18, .6);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.figure--slice .figure__media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}

/* 16. 正文与目录 --------------------------------------------------------- */
.prose { max-width: 68ch; }

.toc { margin: 0; padding: 0; list-style: none; }

.toc__link {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .82rem;
  text-decoration: none;
  transition: color .24s var(--ease), border-color .24s var(--ease), padding-left .24s var(--ease);
}

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

.toc__link.is-current,
.toc__link[aria-current] {
  padding-left: 18px;
  border-left-color: var(--gold);
  color: var(--gold);
}

/* 17. 浅色分区 ----------------------------------------------------------- */
.band {
  position: relative;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.band--sand {
  background: var(--sand);
  color: #071A28;
  border-color: rgba(7, 26, 40, .18);
}

.band--sand h1,
.band--sand h2,
.band--sand h3,
.band--sand h4,
.band--sand strong { color: #071A28; }

.band--sand .section__label { color: #0E4A6B; }
.band--sand .section__label::after { background: linear-gradient(90deg, #0E4A6B, transparent); }
.band--sand a { color: #0E4A6B; }
.band--sand .num { color: #071A28; }

/* 18. 进入视口 ----------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

[data-reveal].is-visible {
  animation: rise .42s var(--ease) both;
}

/* 19. 减少动效 ----------------------------------------------------------- */
@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;
  }

  [data-reveal].is-visible { animation: none; }
}
