/* ==========================================================================
   微玩赛场 /assets/site.css
   夜场转播室 × 技术蓝图：深墨绿底、荧光青焦点、琥珀节点、等宽数字
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #07130F;
  --ink-800: #0D211A;
  --ink-700: #123027;
  --cyan: #48F2C8;
  --cyan-soft: rgba(72, 242, 200, 0.10);
  --teal: #1C7A63;
  --amber: #FFB547;
  --paper: #F2F7F2;
  --paper-86: rgba(242, 247, 242, 0.86);
  --mist: #9DB5A9;
  --line: #2A4A3E;
  --line-soft: rgba(42, 74, 62, 0.60);
  --coral: #FF6B5E;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --fs-display: clamp(2.375rem, 5.4vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --lh-body: 1.85;
  --lh-tight: 1.12;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  --shell-max: 1600px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 112px;
  --radius: 2px;
}

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--cyan); }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 3. 中文排版与页面底纹 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(42, 74, 62, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 62, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--cyan);
  color: #04120E;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120E;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
}

/* ---------- 5. 容器 / 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
}

.section-note {
  max-width: 34em;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--mist);
}

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

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

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.rail {
  align-self: start;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. 页面开篇（无 Hero，直接主题声明） ---------- */
.page-head {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-block: var(--space-3) var(--space-3);
}

.page-lede {
  max-width: 34em;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--paper-86);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--mist);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--teal);
  letter-spacing: 0;
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s ease;
}

.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover { border-color: var(--teal); background: var(--ink-700); }

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120E;
  font-weight: 700;
}

.btn-primary:hover {
  background: #6ff7d9;
  border-color: #6ff7d9;
  color: #04120E;
}

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

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

.btn-line {
  border-color: var(--line);
  color: var(--paper-86);
  background: rgba(18, 48, 39, 0.55);
}

.btn-line:hover {
  color: var(--cyan);
  border-color: var(--teal);
  background: var(--ink-700);
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
}

/* ---------- 9. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.header-rail {
  border-bottom: 1px solid var(--line-soft);
}

.header-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) clamp(16px, 2.4vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  flex: none;
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--cyan);
}

.brand-mark i:nth-child(1) { height: 13px; opacity: 0.45; }
.brand-mark i:nth-child(2) { height: 20px; opacity: 0.75; }
.brand-mark i:nth-child(3) { height: 9px; background: var(--amber); }

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.brand-descriptor {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--mist);
  line-height: 1.4;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: status-pulse 2.6s ease-out infinite;
  flex: none;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(72, 242, 200, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(72, 242, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(72, 242, 200, 0); }
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.nav-toggle:hover { border-color: var(--teal); color: var(--cyan); }

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.header-band {
  border-top: 1px solid var(--line-soft);
}

.site-nav {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 20px;
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-list a:hover {
  color: var(--paper);
  background: rgba(18, 48, 39, 0.75);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: var(--cyan-soft);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--teal);
  transition: color 0.16s ease;
}

.nav-list a:hover .nav-index { color: var(--mist); }
.nav-list a[aria-current="page"] .nav-index { color: var(--cyan); }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(42, 74, 62, 0.45);
  pointer-events: none;
}

.read-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--paper);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 42%, transparent 88%);
  opacity: 0.85;
}

.footer-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
}

.footer-brand {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.footer-statement {
  max-width: 30em;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--paper-86);
}

.footer-brand .btn { justify-self: start; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.footer-col {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.footer-col-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--paper);
}

.footer-col-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--amber);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--mist);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.contact-list {
  display: grid;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.contact-row dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
  line-height: 1.9;
}

.contact-row dd {
  font-size: var(--fs-small);
  color: var(--paper);
  line-height: 1.7;
  word-break: break-word;
}

.contact-note {
  font-size: 0.75rem;
  line-height: 1.85;
  color: var(--mist);
}

.footer-more {
  justify-self: start;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 3px;
}

.footer-more:hover { border-bottom-color: var(--cyan); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

.legal-copy { color: var(--mist); }

.legal-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-links a {
  color: var(--mist);
  text-decoration: none;
}

.legal-links a:hover { color: var(--cyan); }

/* ---------- 11. 内容组件 ---------- */
.paper-card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    5px 5px 0 -1px rgba(18, 48, 39, 0.95),
    10px 10px 0 -2px rgba(18, 48, 39, 0.45);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.paper-card:hover {
  border-color: var(--teal);
  transform: translate(-1px, -1px);
}

.panel {
  display: grid;
  gap: var(--space-3);
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 48, 39, 0.6);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  line-height: 1.8;
}

.tag:hover { border-color: var(--teal); color: var(--paper); }

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

.score-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 18px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.score-bar:hover {
  border-left-color: var(--cyan);
  background: var(--ink-700);
}

.score-team {
  display: grid;
  gap: 2px;
  font-size: var(--fs-small);
  color: var(--paper);
  letter-spacing: 0.04em;
}

.score-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.score-num .is-node { color: var(--amber); }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-700);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(72, 242, 200, 0.07) 0 2px,
    transparent 2px 12px
  );
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 19, 15, 0) 42%, rgba(7, 19, 15, 0.72) 100%),
    linear-gradient(90deg, rgba(72, 242, 200, 0.06), transparent 55%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.media-frame { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  background: rgba(7, 19, 15, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.media-caption {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 13. 长文 ---------- */
.prose {
  max-width: 38em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--paper-86);
}

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

.prose h2 {
  font-size: var(--fs-h3);
  color: var(--paper);
  letter-spacing: 0.01em;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.0625rem;
  color: var(--paper);
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 1px;
  background: var(--teal);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  position: relative;
  padding-left: 2em;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
}

.prose a { color: var(--cyan); text-underline-offset: 3px; }

.prose strong { color: var(--paper); font-weight: 700; }

/* ---------- 14. 索引高亮与显现 ---------- */
.spy-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--mist);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.spy-link:hover {
  color: var(--paper);
  background: rgba(18, 48, 39, 0.75);
}

.spy-link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 96px; }

  .header-status { display: none; }

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

  .header-band { border-top: 0; }

  .site-nav {
    display: none;
    padding-inline: var(--gutter);
    border-top: 1px solid var(--line);
    background: var(--ink-800);
  }

  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .nav-list li + li { border-top: 1px solid var(--line-soft); }

  .nav-list a {
    padding: 15px 4px;
    font-size: 0.9375rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-list a[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--cyan);
    padding-left: 12px;
  }

  .page-title { letter-spacing: -0.02em; }
}

@media (max-width: 760px) {
  .header-shell { gap: 10px; }

  .brand-descriptor { display: none; }

  .header-actions .btn-line { display: none; }

  .btn { min-height: 38px; padding: 0 14px; }

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

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

  .legal-links { margin-left: 0; }
}

@media (max-width: 460px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }

  .nav-toggle-label { display: none; }

  .header-actions { gap: 8px; }
}

/* ---------- 16. 无障碍与动效偏好 ---------- */
@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;
  }

  .paper-card:hover { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .read-progress,
  .skip-link,
  .nav-toggle { display: none !important; }

  body {
    background: #fff;
    color: #000;
    background-image: none;
  }
}
