/* ============================================================
   华体汇主页 · 共享样式 /assets/site.css
   深空竞技场：深空蓝基底 + 电光青 + 暖金 / 珊瑚橙点缀
   ============================================================ */

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

[hidden] { display: none; }

/* ---------- 2. 设计变量 ---------- */
:root {
  color-scheme: dark;

  --void: #071A3A;
  --void-deep: #04122A;
  --midnight: #0E2A5A;
  --cyan: #00E5FF;
  --cyan-soft: #66F2FF;
  --gold: #FFB703;
  --coral: #FF5A5F;
  --indigo: #4B2E83;
  --wine: #8C1D40;
  --mist: #F4F7FB;
  --graphite: #0B0F17;

  --ink: #F4F7FB;
  --ink-dim: rgba(244, 247, 251, 0.74);
  --ink-faint: rgba(244, 247, 251, 0.52);
  --edge: rgba(102, 242, 255, 0.30);
  --edge-strong: rgba(0, 229, 255, 0.62);
  --panel: linear-gradient(160deg, rgba(14, 42, 90, 0.86), rgba(7, 26, 58, 0.92));

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --hard-shadow: 6px 6px 0 rgba(4, 18, 42, 0.9);
  --hard-shadow-light: 6px 6px 0 var(--graphite);
  --glow: 0 0 34px -12px rgba(0, 229, 255, 0.85);
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--void);
  background-image:
    radial-gradient(900px 520px at 84% -10%, rgba(0, 229, 255, 0.18), transparent 66%),
    radial-gradient(720px 480px at 4% 10%, rgba(75, 46, 131, 0.42), transparent 70%),
    linear-gradient(180deg, #04122A 0%, #071A3A 48%, #04122A 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { color: var(--ink-dim); }
strong { color: var(--ink); font-weight: 700; }

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

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

/* ---------- 4. 容器与骨架 ---------- */
.shell,
.main-shell {
  width: min(100% - var(--gutter), var(--shell));
  margin-inline: auto;
}

#main-content { display: block; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.surface-light {
  background: var(--mist);
  color: var(--graphite);
  border-top: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
}
.surface-light p,
.surface-light .ink-dim { color: rgba(11, 15, 23, 0.76); }
.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light h4 { color: var(--graphite); }

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -5rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  color: var(--graphite);
  background: var(--gold);
  border: 2px solid var(--graphite);
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(4, 18, 42, 0.97), rgba(7, 26, 58, 0.90));
  border-bottom: 2px solid var(--edge-strong);
  box-shadow: 0 18px 40px -32px rgba(0, 229, 255, 0.9);
  backdrop-filter: blur(10px);
}

.read-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(4, 18, 42, 0.9);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft) 45%, var(--gold));
  transition: transform 0.12s linear;
}

.header-bar {
  position: relative;
  width: min(100% - var(--gutter), var(--shell));
  margin-inline: auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- 品牌区 --- */
.header-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}
.brand-mark:hover { transform: translateY(-2px); }

.brand-mark__glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--void-deep);
  background: linear-gradient(135deg, var(--cyan), #0091ff 55%, var(--indigo));
  border: 2px solid rgba(4, 18, 42, 0.9);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(4, 18, 42, 0.85);
  transform: skewX(-7deg);
}

.brand-mark__text { display: grid; line-height: 1.1; }
.brand-mark__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.brand-mark__sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--cyan-soft);
}

/* --- 版本胶囊 --- */
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255, 183, 3, 0.10);
  border: 1px solid rgba(255, 183, 3, 0.55);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.version-pill:hover,
.version-pill[aria-expanded="true"] {
  background: rgba(255, 183, 3, 0.22);
  border-color: var(--gold);
}
.version-pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: ht-pulse 2.4s ease-in-out infinite;
}
.version-pill__state { color: rgba(255, 183, 3, 0.75); }

@keyframes ht-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.version-note {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 5;
  width: min(24rem, 82vw);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-dim);
  background: linear-gradient(160deg, rgba(14, 42, 90, 0.98), rgba(7, 26, 58, 0.98));
  border: 2px solid var(--edge-strong);
  border-radius: 2px;
  box-shadow: var(--hard-shadow), var(--glow);
}
.version-note[hidden] { display: none; }

/* --- 移动端栏目按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 2px solid var(--edge-strong);
  border-radius: 2px;
}
.nav-toggle:hover { background: rgba(0, 229, 255, 0.2); }

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- 导航 --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  counter-reset: nav;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-link::before {
  counter-increment: nav;
  content: "0" counter(nav);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(102, 242, 255, 0.6);
}
.nav-link:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--edge);
  transform: translateY(-2px);
}
.nav-link[aria-current="page"] {
  color: var(--void-deep);
  background: linear-gradient(100deg, var(--cyan), var(--cyan-soft));
  border-color: var(--cyan);
  box-shadow: 0 0 20px -4px rgba(0, 229, 255, 0.85);
}
.nav-link[aria-current="page"]::before { color: rgba(4, 18, 42, 0.7); }

.nav-quick { display: flex; gap: 0.5rem; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  border: 2px solid var(--graphite);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(4, 18, 42, 0.9);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(4, 18, 42, 0.95); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(4, 18, 42, 0.9); }

.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

.btn--cyan {
  color: var(--void-deep);
  background: linear-gradient(100deg, var(--cyan), #12b6ff);
  border-color: rgba(4, 18, 42, 0.9);
}
.btn--gold {
  color: #2a1a00;
  background: linear-gradient(100deg, var(--gold), #ffd15c);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--edge-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: none;
}

.surface-light .btn { border-color: var(--graphite); box-shadow: 4px 4px 0 var(--graphite); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  width: min(100% - var(--gutter), var(--shell));
  margin: 1.25rem auto 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(0, 229, 255, 0.6); }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ---------- 9. 编号章节 ---------- */
.chapter {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 2px solid rgba(102, 242, 255, 0.18);
}
.chapter:first-of-type { border-top: 0; }

.chapter__index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(102, 242, 255, 0.24);
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}
.chapter.is-current .chapter__index {
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(0, 229, 255, 0.6);
}
.chapter__title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
}
.chapter__note {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.surface-light .chapter__index { color: rgba(11, 15, 23, 0.2); }
.surface-light .chapter.is-current .chapter__index { color: var(--indigo); text-shadow: none; }
.surface-light .chapter__title { color: var(--graphite); }

/* ---------- 10. 纵向注释 ---------- */
.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(102, 242, 255, 0.72);
}

/* ---------- 11. 分类标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); background: rgba(0, 229, 255, 0.12); }
.tag--gold { color: var(--gold); background: rgba(255, 183, 3, 0.14); }
.tag--coral { color: var(--coral); background: rgba(255, 90, 95, 0.14); }
.tag--indigo { color: #b9a2ff; background: rgba(75, 46, 131, 0.45); }
.tag--wine { color: #ff9db4; background: rgba(140, 29, 64, 0.42); }

/* ---------- 12. 档案卡 ---------- */
.dossier {
  position: relative;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 2px;
  box-shadow: var(--hard-shadow);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.dossier::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.7;
}
.dossier:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 rgba(4, 18, 42, 0.92), var(--glow);
}
.dossier__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dossier__title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
}
.dossier__body {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.dossier--indigo { background: linear-gradient(160deg, rgba(75, 46, 131, 0.7), rgba(7, 26, 58, 0.92)); }
.dossier--indigo .dossier__label { color: #b9a2ff; }
.dossier--wine { background: linear-gradient(160deg, rgba(140, 29, 64, 0.62), rgba(7, 26, 58, 0.92)); }
.dossier--wine .dossier__label { color: #ff9db4; }
.dossier--gold { background: linear-gradient(160deg, rgba(255, 183, 3, 0.16), rgba(7, 26, 58, 0.94)); }
.dossier--gold .dossier__label { color: var(--gold); }

.surface-light .dossier {
  background: #ffffff;
  border-color: var(--graphite);
  box-shadow: var(--hard-shadow-light);
}
.surface-light .dossier__title { color: var(--graphite); }
.surface-light .dossier__body { color: rgba(11, 15, 23, 0.76); }
.surface-light .dossier__label { color: var(--indigo); }
.surface-light .dossier:hover { border-color: var(--indigo); box-shadow: 8px 8px 0 var(--graphite); }

/* ---------- 13. 网格 ---------- */
.grid { display: grid; gap: 1rem; }
.grid--index { display: grid; gap: 0.6rem; }
.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)); }

/* ---------- 14. 媒体容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--edge);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(75, 46, 131, 0.5) 55%, rgba(255, 90, 95, 0.18));
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(4, 18, 42, 0.28) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(4, 18, 42, 0.28) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.media img,
.media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media__caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- 15. 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  color: var(--ink);
  background: linear-gradient(180deg, #04122A 0%, #0A1B3C 55%, #150B2E 100%);
  border-top: 2px solid var(--edge-strong);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 38%, var(--coral) 68%, var(--indigo));
}

.footer-inner {
  width: min(100% - var(--gutter), var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: linear-gradient(100deg, var(--mist) 22%, var(--cyan) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tagline {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: 26rem;
}
.footer-region {
  margin-top: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(255, 183, 3, 0.5);
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.1);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(102, 242, 255, 0.22);
}

.footer-list { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.footer-list a {
  font-size: 0.95rem;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-list a:hover { color: var(--cyan); border-color: var(--cyan); }

.contact-list { margin-top: 0.9rem; display: grid; gap: 0.9rem; }
.contact-item dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(102, 242, 255, 0.72);
}
.contact-item dd {
  margin-top: 0.15rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
  word-break: break-word;
}
.contact-item .mono { color: var(--ink); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 999px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(0, 229, 255, 0.22); }
.copy-btn[data-state="done"] {
  color: var(--void-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.footer-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-colophon {
  width: min(100% - var(--gutter), var(--shell));
  margin-inline: auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(102, 242, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.footer-icp { color: var(--gold); }
.footer-domain { color: rgba(102, 242, 255, 0.72); }

/* ---------- 17. 平板 ---------- */
@media (max-width: 1120px) and (min-width: 981px) {
  .nav-quick { display: none; }
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 18. 移动端：底部悬浮导航坞 ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .header-bar { padding: 0.75rem 0; }
  .brand-mark__sub { display: none; }

  .site-nav {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    gap: 0.6rem;
    max-height: 72vh;
    overflow-y: auto;
    padding: 0.9rem;
    background: linear-gradient(160deg, rgba(14, 42, 90, 0.985), rgba(7, 26, 58, 0.985));
    border: 2px solid var(--edge-strong);
    border-radius: 14px;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(0, 229, 255, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.34s var(--ease), opacity 0.22s var(--ease),
                visibility 0.34s var(--ease);
  }
  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.22);
  }
  .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .nav-quick .btn { width: 100%; }

  .version-note { left: 0; width: min(22rem, 86vw); }
}

/* ---------- 19. 手机 ---------- */
@media (max-width: 600px) {
  .header-brand { gap: 0.6rem; }
  .brand-mark__glyph { width: 2.15rem; height: 2.15rem; font-size: 1rem; }
  .brand-mark__name { font-size: 1.05rem; }
  .version-pill { font-size: 0.62rem; padding: 0.22rem 0.55rem; }
  .version-pill__state { display: none; }

  .nav-list { grid-template-columns: 1fr; }
  .nav-quick { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer-colophon { justify-content: flex-start; }
}

/* ---------- 20. 降低动效 ---------- */
@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; }
  .nav-link:hover,
  .btn:hover,
  .dossier:hover,
  .brand-mark:hover { transform: none; }
}
