/* =====================================================================
   爱游戏官方版 · 共享样式表 /assets/site.css
   母题：夜场球场灯光 + 转播记分牌 + 数据仪表盘
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; margin: 0; }

/* ---------- 2. 变量：自然矿物色 + 夜场灯光 ---------- */
:root {
  --ink-deep: #0B1F18;   /* 深夜墨绿 · 主背景 */
  --ink-carbon: #101312; /* 炭黑 · 次背景 */
  --ink-moss: #1E3A2F;   /* 苔绿 · 分区背景 */
  --lime: #C6FF3D;       /* 荧光青柠绿 · 主强调 */
  --orange: #FF7A1A;     /* 电光橙 · 数据高亮 */
  --white: #F4F7F5;      /* 冷白 · 正文 */
  --gray: #A7B0AA;       /* 浅灰 · 次要文字 */
  --stone: #3A4640;      /* 岩灰 · 边框分隔 */
  --cream: #E8E3D6;      /* 米白 · 暖调点缀 */
  --cool: #CFE6E0;       /* 冷光蓝白 · 链接与悬停 */

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-data: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shell-max: 1180px;
  --line: 1px solid rgba(58, 70, 64, .85);
  --lift: 0 24px 50px -34px rgba(0, 0, 0, .95);
}

/* ---------- 3. 基础排版（中文优先） ---------- */
body {
  min-height: 100vh;
  background: var(--ink-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: .01em;
}

h1 { font-size: clamp(1.95rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { max-width: 38em; }

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

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

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

main { display: block; }

/* 工具类 */
.mono {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.text-lime { color: var(--lime); }
.text-orange { color: var(--orange); font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--gray); }
.link {
  color: var(--cool);
  border-bottom: 1px solid rgba(207, 230, 224, .38);
  transition: color .18s ease, border-color .18s ease;
}
.link:hover { color: var(--lime); border-color: var(--lime); }
.prose a { color: var(--cool); border-bottom: 1px solid rgba(207, 230, 224, .38); }
.prose a:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- 4. 骨架：容器 / 区块 / 网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section--stone { background: var(--ink-moss); }
.section--carbon { background: var(--ink-carbon); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  line-height: 1.05;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.8;
  color: var(--gray);
  max-width: 38em;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(198, 255, 61, .38);
  border-radius: var(--radius-pill);
  color: var(--lime);
  font-size: 12.5px;
  letter-spacing: .14em;
  line-height: 1.4;
}

.chapter-num {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--gray);
}

.chapter-rule {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(198, 255, 61, 0));
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (min-width: 900px) {
  .grid--offset > *:nth-child(even) { margin-top: clamp(24px, 4vw, 60px); }
}

.divider-slash {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(167, 176, 170, .5) 18%, rgba(198, 255, 61, .45) 50%, rgba(167, 176, 170, .5) 82%, transparent);
}

.dot-grid {
  background-image: radial-gradient(rgba(58, 70, 64, .95) 1px, transparent 1.2px);
  background-size: 12px 12px;
}

/* ---------- 5. 按钮 / 胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease, color .18s ease, background-color .18s ease;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink-deep);
}
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(198, 255, 61, .95); }

.btn--ghost {
  border-color: var(--stone);
  color: var(--white);
  background: rgba(16, 19, 18, .55);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.btn--orange {
  border-color: rgba(255, 122, 26, .6);
  color: var(--orange);
  background: rgba(255, 122, 26, .08);
}
.btn--orange:hover { background: rgba(255, 122, 26, .16); transform: translateY(-2px); }

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease;
}

.cta-button--lime {
  background: var(--lime);
  color: var(--ink-deep);
}
.cta-button--lime::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(198, 255, 61, .55);
  transition: box-shadow .34s ease;
  pointer-events: none;
}
.cta-button--lime:hover { transform: translateY(-1px); }
.cta-button--lime:hover::after { box-shadow: 0 0 0 9px rgba(198, 255, 61, .12); }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: rgba(16, 19, 18, .5);
  color: var(--gray);
  font-size: 13.5px;
  letter-spacing: .05em;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.pill:hover { border-color: var(--lime); color: var(--white); transform: translateY(-1px); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 24, .6);
  color: var(--cool);
  font-size: 12px;
  letter-spacing: .08em;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.copy-btn:hover { border-color: var(--lime); color: var(--lime); }
.copy-btn.is-copied {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 26, .1);
}

/* ---------- 6. 共享头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -70px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateX(-50%);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    radial-gradient(120% 170% at 10% -50%, rgba(198, 255, 61, .13), transparent 62%),
    linear-gradient(180deg, #0B1F18 0%, #0d2419 72%, #0B1F18 100%);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow .24s ease;
}
.site-header.is-scrolled { box-shadow: 0 22px 46px -32px rgba(0, 0, 0, .95); }

.scroll-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(58, 70, 64, .5);
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), #9fe02a 52%, var(--orange));
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-block: clamp(12px, 1.9vw, 20px);
  transition: padding-block .24s ease;
}
.site-header.is-scrolled .masthead__inner { padding-block: 7px; }

.brand-block {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--white);
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: rgba(198, 255, 61, .07);
  color: var(--lime);
  transition: opacity .2s ease;
}
.brand-mark svg { width: 17px; height: 17px; }
.site-header.is-scrolled .brand-mark { display: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  letter-spacing: .2em;
  text-indent: .2em;
  line-height: 1.05;
  transition: font-size .22s ease, letter-spacing .22s ease;
}
.site-header.is-scrolled .brand-name { font-size: 1.18rem; letter-spacing: .14em; }

.brand-tagline {
  font-size: 11.5px;
  letter-spacing: .38em;
  text-indent: .38em;
  color: var(--gray);
}
.site-header.is-scrolled .brand-tagline { display: none; }

.masthead__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: rgba(16, 19, 18, .65);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .12em;
  transition: border-color .18s ease, color .18s ease;
}
.nav-toggle:hover { border-color: var(--lime); }
.nav-toggle[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 -5px 0 var(--lime), 0 5px 0 var(--lime);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--orange);
  box-shadow: 0 -5px 0 var(--orange), 0 5px 0 var(--orange);
}

.nav-bar {
  border-top: 1px solid rgba(58, 70, 64, .7);
  background: linear-gradient(180deg, rgba(30, 58, 47, .55), rgba(11, 31, 24, 0));
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 28px);
  padding-block: 9px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  font-size: 14.5px;
  letter-spacing: .09em;
  color: var(--gray);
  transition: color .18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: left .24s ease, right .24s ease;
}
.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after { left: 4px; right: 4px; }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after { left: 0; right: 0; }

/* ---------- 7. 共享页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 118px);
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(255, 122, 26, .1), transparent 62%),
    var(--ink-carbon);
  border-top: 1px solid var(--stone);
  color: var(--gray);
  font-size: 14.5px;
}
.site-footer--flush { margin-top: 0; }

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(118px, 1fr)) 1.7fr;
  gap: clamp(24px, 3.4vw, 46px);
  padding-block: clamp(40px, 6vw, 74px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .18em;
  color: var(--white);
  max-width: none;
}
.footer-brand__tag {
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: .34em;
  color: var(--lime);
}
.footer-brand__desc {
  margin-top: 14px;
  max-width: 26em;
  line-height: 1.8;
}
.footer-brand .btn { margin-top: 20px; }

.footer-col__title {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col__title::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 10px;
  border-radius: 2px;
  background: var(--lime);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-block;
  color: var(--gray);
  transition: color .18s ease, transform .18s ease;
}
.footer-links a:hover { color: var(--lime); transform: translateX(3px); }

.footer-contact__list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.footer-contact__key {
  min-width: 62px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gray);
}
.footer-contact__val {
  font-family: var(--font-data);
  font-size: 13.5px;
  color: var(--white);
  word-break: break-all;
  max-width: 100%;
}
.footer-contact__val--wide {
  font-family: var(--font-body);
  color: var(--cool);
  line-height: 1.7;
}
.footer-note {
  margin-top: 18px;
  max-width: 30em;
  font-size: 12.5px;
  color: var(--gray);
  border-left: 2px solid rgba(198, 255, 61, .5);
  padding-left: 12px;
}

.footer-dotband {
  height: 12px;
  border-top: 1px solid rgba(58, 70, 64, .7);
  border-bottom: 1px solid rgba(58, 70, 64, .7);
  background-image: radial-gradient(rgba(167, 176, 170, .5) 1px, transparent 1.2px);
  background-size: 9px 9px;
  background-position: center;
}

.footer-legal { padding-block: 18px; }
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-size: 12.5px;
}
.footer-legal__icp {
  font-family: var(--font-data);
  letter-spacing: .06em;
  color: var(--gray);
  max-width: none;
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal__links a { color: var(--gray); transition: color .18s ease; }
.footer-legal__links a:hover { color: var(--cool); }
.footer-legal__copy { color: var(--gray); max-width: none; }

/* ---------- 8. 数据面板 / 表格 ---------- */
.data-panel {
  padding: 18px 20px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(30, 58, 47, .72), rgba(16, 19, 18, .92));
}
.data-panel__label {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--gray);
}
.data-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.data-panel__num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
}
.data-panel__unit { font-size: 13px; letter-spacing: .1em; color: var(--gray); }
.data-panel__delta {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--orange);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 18, .55);
}
.data-table { min-width: 520px; font-size: 14.5px; }
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(58, 70, 64, .6);
}
.data-table th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gray);
  background: rgba(11, 31, 24, .7);
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color .16s ease; }
.data-table tbody tr:hover { background: rgba(198, 255, 61, .07); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--orange);
  white-space: nowrap;
}

/* ---------- 9. 图文容器（页面阶段投放图片） ---------- */
.figure { margin: 0; }

.figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 120% at 18% 0%, rgba(198, 255, 61, .16), transparent 58%),
    radial-gradient(70% 110% at 92% 100%, rgba(255, 122, 26, .16), transparent 62%),
    linear-gradient(152deg, #132a22, #0d1b16 58%, #101312);
}
.figure__media img,
.figure__media video,
.figure__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(244, 247, 245, .14) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 56px, rgba(244, 247, 245, .12) 57px, transparent 58px);
}
.figure__media--plain::after { content: none; }
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--square { aspect-ratio: 1 / 1; }
.figure__media--tall { aspect-ratio: 3 / 4; }

.figure__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 24, .82);
  border: 1px solid rgba(198, 255, 61, .4);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: .12em;
}

.figure__caption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gray);
}

.figure--offset { margin-top: clamp(0px, 3vw, 44px); }

/* ---------- 10. 文本块 / 引用 / 面包屑 ---------- */
.prose { max-width: 38em; }
.prose h2 { margin-top: 1.6em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .4em; }
.prose p + p { margin-top: 1em; }
.prose ul { margin-top: 1em; padding-left: 1.1em; list-style: none; }
.prose ul li { position: relative; padding-left: 14px; margin-top: .5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.callout {
  padding: 16px 20px;
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(30, 58, 47, .55);
}
.callout p { max-width: 36em; }

.quote-block {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: #14201b;
}
.quote-block p { max-width: 34em; font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.8; }
.quote-block cite { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .1em; color: #4a5b52; }

.breadcrumb { font-size: 13px; letter-spacing: .04em; color: var(--gray); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--stone); }
.breadcrumb a { color: var(--cool); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 11. 侧栏章节索引 / 标签页 / 回到顶部 ---------- */
.chapter-index { display: none; }
.chapter-index__title {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gray);
  margin-bottom: 12px;
}
.chapter-index__list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--stone);
}
.chapter-index__list a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: var(--gray);
  transition: color .2s ease, border-color .2s ease, transform .24s ease;
}
.chapter-index__list a:hover { color: var(--white); }
.chapter-index__list a.is-active {
  color: var(--lime);
  border-color: var(--lime);
  transform: translateY(-4px);
}
@media (min-width: 1080px) {
  .chapter-index { display: block; position: sticky; top: 130px; }
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: rgba(16, 19, 18, .6);
}
.segmented__tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--gray);
  font-size: 13.5px;
  letter-spacing: .06em;
  transition: background-color .18s ease, color .18s ease;
}
.segmented__tab:hover { color: var(--white); }
.segmented__tab[aria-selected="true"] { background: var(--lime); color: var(--ink-deep); }
.segmented__panel[hidden] { display: none; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: rgba(16, 19, 18, .88);
  color: var(--lime);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .24s ease, visibility .24s ease, transform .24s ease, border-color .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--lime); }

/* ---------- 12. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .7, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 10px;
  }
  .site-header.is-scrolled .masthead__inner { padding-block: 8px; }

  .brand-block {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    text-align: left;
  }
  .brand-mark { display: none; }
  .brand-name { font-size: 1.28rem; letter-spacing: .12em; text-indent: .12em; }
  .site-header.is-scrolled .brand-name { font-size: 1.15rem; }
  .brand-tagline { display: none; }

  .masthead__actions { grid-column: 2; }
  .masthead__cta { padding: 9px 14px; font-size: 12.5px; letter-spacing: .04em; }

  .nav-toggle { display: inline-flex; padding: 10px 13px; }
  .nav-toggle__text { display: none; }

  .nav-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    background: linear-gradient(180deg, #0d2420, var(--ink-deep));
    border-top: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 30px 52px -32px rgba(0, 0, 0, .98);
  }
  .nav-bar[data-open="true"] { display: block; animation: navDrop .18s ease both; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px;
  }
  .nav-list li + li { border-top: 1px solid rgba(58, 70, 64, .5); }
  .nav-list a { display: block; padding: 14px 4px; font-size: 16px; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--lime); }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-legal__inner { flex-direction: column; align-items: flex-start; }
  .segmented { width: 100%; justify-content: space-between; }
  .segmented__tab { flex: 1 1 auto; text-align: center; padding: 8px 10px; }
}

/* ---------- 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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .chapter-index__list a.is-active { transform: none; }
}
