/* ============================================================
   九州娱乐看台 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dd, figure, blockquote, pre, table, fieldset {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
  --night: #051421;
  --bay: #0A2033;
  --teal: #147D82;
  --mist: #63C7C2;
  --paper: #F5ECDD;
  --ink: #182025;
  --orange: #F26B3A;
  --yellow: #FFC94A;
  --slate: #6E7F8C;
  --glass: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-ink: rgba(24, 32, 37, 0.16);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 中文排版基础 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper);
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(20, 125, 130, 0.30), transparent 68%),
    radial-gradient(900px 520px at 6% 6%, rgba(255, 201, 74, 0.08), transparent 62%),
    var(--night);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }

.num,
[data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--yellow);
  color: var(--night);
}

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

.paper-panel :focus-visible,
.paper-panel:focus-visible {
  outline-color: var(--orange);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--night);
  outline-offset: 2px;
}

/* ---------- 布局外壳 ---------- */
main { display: block; }

#main-content {
  padding-top: calc(var(--header-h) + clamp(8px, 2vw, 28px));
  padding-bottom: clamp(24px, 5vw, 56px);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.95);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header[data-scrolled] .site-header__inner {
  padding: 6px 10px 6px 12px;
  background: rgba(10, 32, 51, 0.9);
  border-color: rgba(99, 199, 194, 0.26);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #20100a;
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }

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

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand__tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

.brand--footer .brand__mark { width: 44px; height: 44px; font-size: 23px; border-radius: 15px; }
.brand--footer .brand__name { font-size: 17.5px; }
.brand--footer .brand__tag { font-size: 10px; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover { border-color: var(--mist); background: rgba(99, 199, 194, 0.14); }

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.18s linear;
}

.nav-toggle__bar + .nav-toggle__bar { margin-top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 胶囊导航 */
.nav-capsule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list__item { display: block; }

.nav-link {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 236, 221, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(99, 199, 194, 0.16);
  border-color: rgba(99, 199, 194, 0.34);
}

.nav-link[aria-current="page"] {
  color: var(--night);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 8px 20px -12px rgba(255, 201, 74, 0.95);
}

.nav-capsule__tail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-cta { white-space: nowrap; }

.nav-utils { display: none; gap: 8px; flex-wrap: wrap; }

.nav-util {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(245, 236, 221, 0.78);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.nav-util:hover { color: var(--mist); border-color: var(--mist); }

.header-utils {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 4px;
}

.util-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 236, 221, 0.68);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.util-link:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--yellow), var(--orange) 55%, var(--mist));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--orange);
  color: #1c0d06;
  box-shadow: 0 16px 30px -20px rgba(242, 107, 58, 0.95);
}

.btn--primary:hover {
  background: #ff7d4c;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -18px rgba(242, 107, 58, 0.85);
}

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

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

.btn--sm { padding: 8px 15px; font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 125, 130, 0.12), transparent 34%),
    var(--bay);
  color: rgba(245, 236, 221, 0.86);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.footer__brand { min-width: 0; }

.footer__summary {
  margin: 16px 0 22px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(245, 236, 221, 0.66);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.footer__col-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: rgba(245, 236, 221, 0.78);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--yellow);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.contact-item__value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.contact-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid rgba(99, 199, 194, 0.35);
  border-radius: 999px;
  background: rgba(99, 199, 194, 0.10);
  font-size: 12px;
  font-weight: 600;
  color: var(--mist);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover { background: rgba(99, 199, 194, 0.22); color: #ffffff; }

.copy-btn[data-copied] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--night);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: rgba(245, 236, 221, 0.58);
}

.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(245, 236, 221, 0.52);
}

.to-top {
  margin-left: auto;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(242, 107, 58, 0.10);
}

/* ---------- 通用面板 ---------- */
.paper-panel {
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -70px rgba(0, 0, 0, 0.95);
}

.paper-panel a { color: var(--teal); }
.paper-panel .eyebrow { color: var(--teal); }
.paper-panel h2,
.paper-panel h3 { color: var(--ink); }

.glass-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- 章节标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 26px);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-head__title {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--paper);
}

.section-head__note {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 236, 221, 0.62);
}

.section-num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(99, 199, 194, 0.30);
  -webkit-text-stroke: 1.5px rgba(99, 199, 194, 0.55);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 26px);
}

.grid--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

/* ---------- 数据块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(245, 236, 221, 0.6);
}

.paper-panel .stat__num { color: var(--teal); }
.paper-panel .stat__label { color: rgba(24, 32, 37, 0.6); }

/* ---------- chips / tag ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 236, 221, 0.8);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.chip:hover { border-color: var(--mist); color: var(--mist); }

.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #eafbfa;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(255, 201, 74, 0.32);
  border-radius: 6px;
  background: rgba(255, 201, 74, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.paper-panel .tag {
  background: rgba(20, 125, 130, 0.12);
  border-color: rgba(20, 125, 130, 0.32);
  color: var(--teal);
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mist), rgba(99, 199, 194, 0.08));
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bay);
  border: 2px solid var(--mist);
  transition: background 0.2s, border-color 0.2s;
}

.timeline__item[data-current]::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 58, 0.18);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(20, 125, 130, 0.55), transparent 62%),
    radial-gradient(90% 70% at 86% 100%, rgba(242, 107, 58, 0.32), transparent 64%),
    linear-gradient(160deg, #08202f, #051421);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 199, 194, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 199, 194, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.5;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(245, 236, 221, 0.82);
  background: linear-gradient(0deg, rgba(5, 20, 33, 0.94), transparent);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(245, 236, 221, 0.55);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover { color: var(--yellow); }

.breadcrumb__sep { color: rgba(245, 236, 221, 0.3); }

.breadcrumb--paper { color: rgba(24, 32, 37, 0.55); }
.breadcrumb--paper .breadcrumb__link { color: var(--teal); }
.breadcrumb--paper .breadcrumb__sep { color: rgba(24, 32, 37, 0.3); }

/* ---------- 长文 ---------- */
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.32;
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

.prose strong { font-weight: 700; }

.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--teal);
  color: rgba(24, 32, 37, 0.78);
}

/* ---------- 锚点目录 ---------- */
.toc {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.toc__link {
  display: block;
  padding: 7px 11px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 236, 221, 0.75);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.toc__link:hover {
  color: var(--yellow);
  background: rgba(255, 201, 74, 0.08);
}

.toc__link[aria-current="true"] {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: rgba(255, 201, 74, 0.1);
}

.toc--paper {
  background: rgba(24, 32, 37, 0.035);
  border-color: var(--line-ink);
}

.toc--paper .toc__link { color: rgba(24, 32, 37, 0.72); }
.toc--paper .toc__link:hover { color: var(--teal); background: rgba(20, 125, 130, 0.08); }
.toc--paper .toc__link[aria-current="true"] {
  color: var(--teal);
  border-left-color: var(--teal);
  background: rgba(20, 125, 130, 0.1);
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .brand__tag { display: none; }
  .header-utils { display: none; }
}

@media (max-width: 960px) {
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 90px; }

  .site-header__inner {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 10px 12px;
  }

  .site-header[data-scrolled] .site-header__inner {
    padding: 8px 12px;
    border-radius: 20px;
  }

  .nav-toggle { display: flex; }

  .nav-capsule {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-capsule[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-capsule__tail {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 8px 0 0;
  }

  .nav-cta { width: 100%; }

  .nav-utils { display: flex; }

  .grid--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .span-3,
  .span-4 { grid-column: span 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 84px; }

  body { font-size: 15.5px; }

  .brand__mark { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
  .brand__name { font-size: 14.5px; letter-spacing: 0.02em; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }

  .footer__bottom { font-size: 12px; gap: 8px 16px; }

  .to-top { margin-left: 0; }

  .grid--bento { grid-template-columns: minmax(0, 1fr); }
  .span-2,
  .span-3,
  .span-4 { grid-column: span 1; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand:hover .brand__mark { transform: none; }
  .footer__link:hover { transform: none; }
}
