/* ===== 1. Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
i { font-style: normal; }

/* ===== 2. Tokens ===== */
:root {
  --curtain: #2B0B1E;
  --stage: #120A16;
  --indigo: #1B1030;
  --gold: #D8A94B;
  --gold-hi: #F2D18B;
  --curtain-red: #A3132F;
  --paper-white: #F6EFE6;
  --neon: #35E0D0;
  --cool: #8E93A8;
  --paper: #EFE3D2;

  --line: rgba(216, 169, 75, 0.28);
  --line-strong: rgba(216, 169, 75, 0.55);
  --blueprint: rgba(142, 147, 168, 0.08);

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

  --maxw: 1240px;
  --pad-x: 72px;
  --r-panel: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-hover: 160ms;
  --dur-open: 220ms;
  --shadow-stage: 0 24px 60px -30px rgba(0, 0, 0, 0.92);
}

/* ===== 3. Base & 中文排版 ===== */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper-white);
  background-color: var(--curtain);
  background-image:
    repeating-linear-gradient(90deg, var(--blueprint) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, var(--blueprint) 0 1px, transparent 1px 24px),
    radial-gradient(ellipse 880px 520px at 16% -8%, rgba(216, 169, 75, 0.16), transparent 66%),
    linear-gradient(158deg, #2B0B1E 0%, #240A1B 46%, #170B22 100%);
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}
p { max-width: 68ch; }
p + p { margin-top: 1.2em; }
::selection { background: rgba(216, 169, 75, 0.35); color: #FFF7E8; }

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--paper-white);
  text-shadow: 0 0 34px rgba(216, 169, 75, 0.28), 0 2px 0 rgba(18, 10, 22, 0.65);
}
.display-1 { font-size: clamp(40px, 7vw, 88px); }
.display-2 { font-size: clamp(30px, 4.6vw, 64px); }
.display-3 { font-size: clamp(22px, 3vw, 44px); }
.accent { color: var(--gold-hi); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: rgba(246, 239, 230, 0.82);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--neon); }
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-hi);
}

/* ===== 4. 布局与通用组件 ===== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: 880px; }
.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--stage { background: linear-gradient(180deg, #120A16 0%, #1B1030 100%); }
.section--indigo { background: linear-gradient(180deg, rgba(27, 16, 48, 0.9) 0%, rgba(27, 16, 48, 0.35) 100%); }
.section--paper { background: var(--paper); color: #1A0B14; }
.section--paper .lede { color: #40222F; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease), background-position var(--dur-hover) var(--ease),
    box-shadow var(--dur-hover) var(--ease);
}
.btn--gold {
  color: #1B0B16;
  background-image: linear-gradient(120deg, var(--gold-hi) 0%, var(--gold) 48%, #B0803A 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  border-color: rgba(242, 209, 139, 0.7);
  box-shadow: inset 0 0 0 1px rgba(43, 11, 30, 0.45), 0 14px 30px -18px rgba(216, 169, 75, 0.95);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: inset 0 0 0 1px rgba(43, 11, 30, 0.5), 0 0 26px -6px rgba(242, 209, 139, 0.85); }
.btn--ghost {
  color: var(--gold-hi);
  background-color: rgba(27, 16, 48, 0.55);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold-hi); background-color: rgba(216, 169, 75, 0.12); }
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  background-color: rgba(216, 169, 75, 0.08);
}
.tag--red { color: #FBE3E6; border-color: rgba(163, 19, 47, 0.75); background-color: rgba(163, 19, 47, 0.28); }
.tag--cyan { color: #CFFBF6; border-color: rgba(53, 224, 208, 0.55); background-color: rgba(53, 224, 208, 0.12); }

.panel {
  padding: 24px;
  border: 1px solid rgba(216, 169, 75, 0.2);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(27, 16, 48, 0.72) 0%, rgba(18, 10, 22, 0.72) 100%);
}

.stack-paper {
  position: relative;
  isolation: isolate;
  padding: 22px 24px;
  border: 1px solid rgba(18, 10, 22, 0.32);
  background: var(--paper);
  color: #1A0B14;
}
.stack-paper::before,
.stack-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border: 1px solid rgba(18, 10, 22, 0.22);
}
.stack-paper::before { transform: translate(6px, 6px); }
.stack-paper::after { transform: translate(12px, 12px); opacity: 0.6; }

.stage-divider {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(216, 169, 75, 0.5) 32%, rgba(53, 224, 208, 0.42) 68%, transparent 100%);
}
.spotlight {
  position: absolute;
  pointer-events: none;
  width: min(680px, 78vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at 32% 42%, rgba(242, 209, 139, 0.3) 0%, rgba(216, 169, 75, 0.12) 44%, transparent 72%);
  filter: blur(2px);
}
.light-band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(216, 169, 75, 0) 0%, rgba(216, 169, 75, 0.22) 45%, rgba(242, 209, 139, 0.06) 100%);
  transform: skewX(-12deg);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cool);
}
.breadcrumb a { color: rgba(246, 239, 230, 0.76); text-decoration: none; transition: color var(--dur-hover) var(--ease); }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb__sep { color: rgba(53, 224, 208, 0.7); }

.figure { margin: 0; display: grid; gap: 10px; }
.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(216, 169, 75, 0.26);
  border-radius: 14px;
  background-color: var(--indigo);
  background-image:
    repeating-linear-gradient(0deg, rgba(246, 239, 230, 0.05) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 28% 22%, rgba(242, 209, 139, 0.32) 0%, transparent 56%),
    linear-gradient(152deg, #2B0B1E 0%, #1B1030 58%, #120A16 100%);
}
.figure__media img { width: 100%; height: 100%; object-fit: cover; }
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(172deg, rgba(18, 10, 22, 0) 42%, rgba(18, 10, 22, 0.72) 100%);
}
.figure__caption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cool); }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }

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

/* ===== 5. Skip link ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--stage);
  color: var(--gold-hi);
  font-size: 14px;
  text-decoration: none;
  transition: top var(--dur-open) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; outline: 2px solid var(--neon); outline-offset: 2px; }

/* ===== 6. Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: rgba(18, 10, 22, 0.94);
  background-image:
    repeating-linear-gradient(90deg, rgba(142, 147, 168, 0.06) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(18, 10, 22, 0.96) 0%, rgba(27, 16, 48, 0.9) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(242, 209, 139, 0.22), 0 18px 40px -34px #000;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: background-color var(--dur-open) var(--ease);
}
.site-header.is-nav-open { z-index: 150; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--pad-x);
  transition: padding var(--dur-open) var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper-white);
}
.brand__mark { display: inline-flex; align-items: flex-end; gap: 4px; height: 22px; transform: skewX(-6deg); }
.brand__mark-bar {
  display: block;
  width: 6px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--curtain-red) 100%);
  box-shadow: 0 0 12px rgba(216, 169, 75, 0.5);
}
.brand__mark-bar:nth-child(2) { height: 16px; }
.brand__mark-bar:nth-child(3) { height: 10px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(216, 169, 75, 0.35);
}
.brand__short {
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.brand__version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(216, 169, 75, 0.09);
  white-space: nowrap;
}
.brand:hover .brand__name,
.brand:hover .brand__short { color: var(--gold-hi); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 10, 22, 0.78) 0%, rgba(27, 16, 48, 0.62) 100%);
  box-shadow: inset 0 1px 0 rgba(246, 239, 230, 0.07), 0 12px 34px -22px #000;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(246, 239, 230, 0.78);
  transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease),
    box-shadow var(--dur-hover) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-hover) var(--ease);
}
.nav__link:hover { color: var(--paper-white); background-color: rgba(216, 169, 75, 0.12); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] {
  color: #150A12;
  background-image: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  box-shadow: 0 0 0 1px rgba(242, 209, 139, 0.55), 0 10px 24px -14px rgba(242, 209, 139, 0.9);
  font-weight: 600;
}
.nav__link[aria-current="page"]::after { display: none; }
.nav__link:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header__cta { padding: 10px 18px; font-size: 14px; }

.index-dock { position: relative; }
.dock__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--paper-white);
  background-color: rgba(18, 10, 22, 0.62);
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease);
}
.dock__toggle:hover { border-color: var(--gold-hi); background-color: rgba(216, 169, 75, 0.14); }
.dock__toggle[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }
.dock__glyph { display: inline-flex; flex-direction: column; gap: 3px; width: 14px; }
.dock__glyph i { display: block; height: 2px; border-radius: 2px; background: var(--gold-hi); }
.dock__glyph i:nth-child(2) { width: 72%; }
.dock__glyph i:nth-child(3) { width: 44%; }
.dock__text { font-family: var(--font-mono); letter-spacing: 0.08em; }

.index-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 160;
  width: 272px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 16, 48, 0.98) 0%, rgba(18, 10, 22, 0.99) 100%);
  box-shadow: var(--shadow-stage);
}
.index-panel[hidden] { display: none; }
.index-panel__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cool);
  text-transform: uppercase;
}
.index-panel__list { display: grid; gap: 2px; margin-top: 10px; }
.index-panel__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(246, 239, 230, 0.86);
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.index-panel__link:hover { background-color: rgba(216, 169, 75, 0.14); color: #FFF9EE; }
.index-panel__code { font-family: var(--font-mono); font-size: 12px; color: var(--neon); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: rgba(18, 10, 22, 0.7);
  color: var(--gold-hi);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease);
}
.nav-toggle:hover { background-color: rgba(216, 169, 75, 0.14); }
.nav-toggle[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars i { display: block; height: 1px; background: currentColor; }
.nav-toggle__label { font-family: var(--font-mono); letter-spacing: 0.08em; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background-color: rgba(18, 10, 22, 0.55);
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--curtain-red) 0%, var(--gold) 55%, var(--neon) 100%);
  box-shadow: 0 0 10px rgba(216, 169, 75, 0.8);
  transition: width 80ms linear;
}

.site-header.is-compact .header__inner { padding-block: 8px; }
.site-header.is-compact .brand__name { display: none; }
.site-header.is-compact .brand__short { display: inline; }
.site-header.is-compact .brand__mark { height: 18px; }
.site-header.is-compact .brand__mark-bar { height: 18px; }
.site-header.is-compact .brand__mark-bar:nth-child(2) { height: 13px; }
.site-header.is-compact .brand__mark-bar:nth-child(3) { height: 8px; }
.site-header.is-compact .nav__link { padding: 7px 11px; font-size: 14px; }
.site-header.is-compact .header__cta { padding: 8px 14px; font-size: 13px; }

/* ===== 7. Footer ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  background-color: var(--stage);
  background-image:
    repeating-linear-gradient(90deg, rgba(142, 147, 168, 0.07) 0 1px, transparent 1px 24px),
    linear-gradient(178deg, #120A16 0%, #1B1030 72%, #24091B 100%);
  color: rgba(246, 239, 230, 0.82);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 46%;
  height: 130%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(216, 169, 75, 0) 0%, rgba(216, 169, 75, 0.09) 50%, rgba(163, 19, 47, 0.05) 100%);
  transform: skewX(-12deg);
}

.feedback {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(216, 169, 75, 0.2);
  background: linear-gradient(100deg, rgba(163, 19, 47, 0.34) 0%, rgba(27, 16, 48, 0.24) 62%, rgba(18, 10, 22, 0.1) 100%);
}
.feedback__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--pad-x);
}
.feedback__label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: rgba(246, 239, 230, 0.9); }
.feedback__toggle { padding: 10px 18px; font-size: 14px; }
.feedback__panel {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad-x) 22px;
  display: grid;
  gap: 10px;
  border-left: 0;
}
.feedback__panel[hidden] { display: none; }
.feedback__text { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(246, 239, 230, 0.82); max-width: 72ch; }
.feedback__actions { margin: 4px 0 0; }

.footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 52px var(--pad-x) 34px;
}
.footer__brand { display: grid; align-content: start; gap: 6px; }
.footer__mark {
  display: block;
  width: 52px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-hi) 0%, var(--gold) 55%, var(--curtain-red) 100%);
  transform: skewX(-12deg);
  box-shadow: 0 0 16px rgba(216, 169, 75, 0.45);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--paper-white);
  margin: 0;
  text-shadow: 0 0 22px rgba(216, 169, 75, 0.3);
}
.footer__version { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gold-hi); margin: 0; }
.footer__note { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--cool); max-width: 26ch; }

.footer__col { display: block; }
.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__list { display: grid; gap: 9px; }
.footer__link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  color: rgba(246, 239, 230, 0.8);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.footer__link:hover { color: var(--gold-hi); border-bottom-color: rgba(53, 224, 208, 0.6); }

.footer__contact {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--pad-x) 12px;
  border-top: 1px solid rgba(216, 169, 75, 0.16);
}
.footer__contact-line { margin: 0; font-size: 14px; line-height: 1.9; color: var(--cool); max-width: none; }

.footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 6px var(--pad-x) 40px;
  font-size: 13px;
  color: rgba(142, 147, 168, 0.92);
}
.footer__copy { color: rgba(246, 239, 230, 0.7); }
.footer__legal-link {
  text-decoration: none;
  color: rgba(246, 239, 230, 0.78);
  border-bottom: 1px solid rgba(53, 224, 208, 0.4);
  padding-bottom: 1px;
  transition: color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.footer__legal-link:hover { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }

/* ===== 8. 响应式 ===== */
@media (max-width: 1120px) {
  .footer__main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav__link { padding: 9px 11px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

@media (max-width: 960px) {
  :root { --pad-x: 20px; }

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

  .nav {
    position: absolute;
    left: var(--pad-x);
    right: var(--pad-x);
    top: calc(100% + 10px);
    z-index: 155;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(27, 16, 48, 0.99) 0%, rgba(18, 10, 22, 0.99) 100%);
    box-shadow: var(--shadow-stage);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { border-radius: 10px; }

  .dock__text { display: none; }
  .index-panel { width: min(84vw, 300px); }
  .header__cta { padding: 9px 14px; font-size: 13px; }

  .footer__main { grid-template-columns: 1fr 1fr; padding-top: 42px; }
  .footer__brand { grid-column: span 2; }
  .feedback__inner { padding-block: 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .display-1 { font-size: clamp(34px, 10vw, 52px); }
  .display-2 { font-size: clamp(26px, 8vw, 40px); }
  .grid-12 { gap: 16px; }
  .footer__main { grid-template-columns: 1fr; gap: 26px; }
  .footer__brand { grid-column: auto; }
  .footer__legal { padding-bottom: 32px; gap: 10px 18px; }
  .brand__version { display: none; }
  .site-header.is-compact .brand__version { display: none; }
  .panel { padding: 18px; }
  .stack-paper { padding: 18px; }
}

@media (max-width: 420px) {
  .header__inner { gap: 12px; }
  .nav-toggle__label { display: none; }
  .header__cta { padding: 9px 12px; }
}

/* ===== 9. Reduced motion ===== */
@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;
    transition-delay: 0ms !important;
  }
  .nav__link:hover::after { transform: none; }
}
