/* =========================================================
   97游戏平台 · 共享样式表 /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, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1220;
  --night: #0E2A33;
  --cyan: #24E0FF;
  --orange: #FF6B1A;
  --lemon: #FFE14D;
  --violet: #7A2BFF;
  --magenta: #FF2E86;
  --wine: #6B1230;
  --indigo: #2B1B5A;
  --mist: #E8F1F8;
  --slate: #8FA3B8;
  --mint: #5BE7A9;

  --line: rgba(36, 224, 255, 0.30);
  --line-soft: rgba(143, 163, 184, 0.22);
  --line-ghost: rgba(232, 241, 248, 0.10);

  --panel: rgba(14, 42, 51, 0.55);
  --panel-deep: rgba(11, 18, 32, 0.88);

  --top-h: 64px;
  --rail-w: 208px;
  --radius: 4px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--top-h);
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 10% -6%, rgba(36, 224, 255, 0.13), transparent 65%),
    radial-gradient(740px 520px at 102% 104%, rgba(122, 43, 255, 0.16), transparent 62%),
    radial-gradient(520px 340px at 76% 4%, rgba(255, 107, 26, 0.07), transparent 60%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

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

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

/* ---------- 4. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 32px);
}

.section-note {
  color: var(--slate);
  font-size: 14.5px;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.lead {
  font-size: 17.5px;
  line-height: 1.8;
  color: rgba(232, 241, 248, 0.88);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(232, 241, 248, 0.86);
}

.prose p + p,
.prose h2 + p,
.prose h3 + p { margin-top: 16px; }
.prose h2 { font-size: 26px; margin-top: 34px; }
.prose h3 { font-size: 20px; margin-top: 26px; }
.prose ul { margin-top: 14px; }
.prose li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}
.prose li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

.divider {
  height: 1px;
  border: 0;
  margin: 34px 0;
  background: linear-gradient(90deg, var(--line), rgba(36, 224, 255, 0));
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3-9 { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A02;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.35), 0 12px 28px -16px rgba(255, 107, 26, 0.95);
}

.btn-primary:hover {
  background: #FF7D38;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.6), 0 16px 32px -14px rgba(255, 107, 26, 1);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cyan);
  background: rgba(36, 224, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(36, 224, 255, 0.14);
  border-color: var(--cyan);
}

.btn-quiet {
  border-color: var(--line-ghost);
  color: var(--slate);
}

.btn-quiet:hover {
  color: var(--mist);
  border-color: var(--line-soft);
}

/* ---------- 6. 卡片 / 面板 / 数据 ---------- */
.card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(36, 224, 255, 0.16), 0 18px 40px -26px rgba(36, 224, 255, 0.85);
}

.card-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(122, 43, 255, 0.55), rgba(255, 46, 134, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lemon);
}

.card-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-ghost);
  background: linear-gradient(90deg, rgba(14, 42, 51, 0.9), rgba(11, 18, 32, 0.4));
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.panel-body { padding: 18px; }

.stat { display: grid; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lemon);
}

.stat-label {
  font-size: 13px;
  color: var(--slate);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 225, 77, 0.42);
  border-radius: 999px;
  color: var(--lemon);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.tag-cyan { border-color: rgba(36, 224, 255, 0.45); color: var(--cyan); }
.tag-mint { border-color: rgba(91, 231, 169, 0.45); color: var(--mint); }
.tag-orange { border-color: rgba(255, 107, 26, 0.5); color: #FF9558; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
  box-shadow: 0 0 8px currentColor;
  flex: 0 0 auto;
}

.status-dot.is-on { background: var(--mint); color: var(--mint); }
.status-dot.is-warn { background: var(--lemon); color: var(--lemon); }

/* ---------- 7. 横向轨道 ---------- */
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 320px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
}

.track > * { scroll-snap-align: start; }

.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-track { background: rgba(232, 241, 248, 0.06); }
.track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* ---------- 8. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(14, 42, 51, 0.95), rgba(43, 27, 90, 0.8) 62%, rgba(107, 18, 48, 0.7));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 46px rgba(36, 224, 255, 0.14);
}

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

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

/* ---------- 9. 面包屑与注释刻度 ---------- */
.breadcrumb { margin: 22px 0 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(143, 163, 184, 0.5);
}

.breadcrumb-link { color: var(--slate); transition: color 0.2s ease; }
.breadcrumb-link:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--mist); }

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(143, 163, 184, 0.7);
}

.annotation-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

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

.anchor-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--slate);
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.anchor-link:hover { color: var(--mist); background: rgba(36, 224, 255, 0.06); }

.anchor-link[aria-current] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(36, 224, 255, 0.16), rgba(36, 224, 255, 0));
}

/* ---------- 10. 头部：框架式导航 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 60;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--top-h) 1fr;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.header-top {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  align-items: stretch;
  background: var(--panel-deep);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(36, 224, 255, 0.12), rgba(122, 43, 255, 0.12));
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 1px rgba(36, 224, 255, 0.5), 0 0 18px rgba(36, 224, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-note {
  font-size: 11px;
  line-height: 1.3;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0 18px;
}

.util-link {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--slate);
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.util-link:hover {
  color: var(--cyan);
  border-color: var(--line-soft);
  background: rgba(36, 224, 255, 0.06);
}

.util-bookmark {
  padding: 9px 12px;
  border: 1px solid var(--line-ghost);
  border-radius: var(--radius);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.util-bookmark:hover,
.util-bookmark[aria-expanded="true"] {
  color: var(--lemon);
  border-color: rgba(255, 225, 77, 0.5);
  background: rgba(255, 225, 77, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 8px; }

.site-header[data-open] .nav-toggle-bars::before { top: 4.5px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { top: 4.5px; transform: rotate(-45deg); }

.bookmark-hint {
  position: absolute;
  top: calc(var(--top-h) + 10px);
  left: calc(var(--rail-w) + 18px);
  z-index: 3;
  width: min(340px, 60vw);
  padding: 12px 14px;
  border: 1px solid rgba(122, 43, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(43, 27, 90, 0.94);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 20px 44px -24px rgba(122, 43, 255, 0.95);
}

.site-nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0 22px;
  overflow-y: auto;
  background: var(--panel-deep);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-caption {
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--slate);
  text-transform: uppercase;
}

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

.nav-item { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-left: 2px solid transparent;
  color: var(--slate);
  font-size: 15px;
  transition: color 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover {
  color: var(--mist);
  background: rgba(36, 224, 255, 0.07);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 184, 0.75);
}

.nav-label { flex: 1 1 auto; }

.nav-link[aria-current="page"] {
  color: var(--mist);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(36, 224, 255, 0.2), rgba(36, 224, 255, 0) 88%);
  box-shadow: inset 0 0 0 1px rgba(36, 224, 255, 0.16);
}

.nav-link[aria-current="page"] .nav-index { color: var(--lemon); }

.nav-link[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.nav-vertical {
  margin-top: auto;
  align-self: flex-start;
  padding: 16px 18px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(143, 163, 184, 0.55);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  margin-top: 96px;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 42, 51, 0.72), rgba(11, 18, 32, 1) 62%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.75;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 42%, var(--magenta) 70%, var(--orange));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.6fr;
  gap: 32px 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-ghost);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-brand-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--slate);
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-ghost);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.footer-link {
  position: relative;
  font-size: 14.5px;
  color: var(--slate);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan);
  padding-left: 14px;
}

.footer-link:hover::before { width: 9px; }

.footer-contact { display: flex; flex-direction: column; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.contact-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
}

.contact-label {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.contact-value {
  color: var(--mist);
  word-break: break-word;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 62px;
}

.copy-btn {
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(36, 224, 255, 0.12);
  border-color: var(--cyan);
}

.copy-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--slate);
}

.legal-line {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-note { color: var(--slate); }

/* ---------- 12. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: rgba(232, 241, 248, 0.06);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 45%, var(--magenta) 70%, var(--orange));
}

/* ---------- 13. 响应式 ---------- */
@media (min-width: 960px) and (max-width: 1199px) {
  :root { --rail-w: 176px; }
  .nav-link { font-size: 14px; padding: 10px 14px; }
  .brand { padding: 0 12px; }
  .brand-note { font-size: 10px; }
}

@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  body {
    padding-left: 0;
    font-size: 16px;
  }

  .site-header {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .header-top {
    grid-template-columns: 1fr;
    padding-bottom: 2px;
  }

  .brand {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line-ghost);
  }

  .brand-note { font-size: 10.5px; }

  .header-utility {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
  }

  .util-link { padding: 8px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .bookmark-hint {
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    transition: max-height 0.32s ease, padding 0.32s ease;
  }

  .site-header[data-open] .site-nav {
    max-height: min(72vh, 540px);
    padding: 12px 14px 16px;
    overflow-y: auto;
  }

  .nav-caption,
  .nav-vertical { display: none; }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-link {
    padding: 8px 14px;
    border: 1px solid var(--line-ghost);
    border-radius: 999px;
    font-size: 14px;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--cyan);
    background: rgba(36, 224, 255, 0.14);
    box-shadow: none;
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .grid-3-9,
  .grid-5-7,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .section { padding: 52px 0; }

  .site-footer {
    margin-top: 64px;
    padding: 48px 0 24px;
  }
}

@media (max-width: 599px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .contact-actions { padding-left: 0; }
  .container { padding: 0 18px; }
  .display-xl { font-size: clamp(36px, 12vw, 52px); }
  .card { padding: 17px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover { transform: none; }
}
