/* ==========================================================================
   3499玩家 · 共享 Site Kit
   夜间战术控制台 × 印刷专题板
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #061725;
  --ink-800: #0A2032;
  --ink-700: #103247;
  --paper-100: #F2E7D4;
  --paper-200: #E2D2B8;
  --teal-400: #45F0D0;
  --teal-700: #0F8E80;
  --amber-400: #FFB13B;
  --amber-600: #D97B12;
  --text-100: #F4FAFA;
  --muted-300: #9FB6C3;
  --line-500: #2B5266;
  --danger-400: #FF6B5A;

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

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 78px;
  --rail-h: 32px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --border: 2px solid var(--line-500);
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
}

/* ---------- 中文排版基线 ---------- */
html, body { height: 100%; }

body {
  background-color: var(--ink-900);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 800; letter-spacing: 0.03em; }
h4 { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.06em; }

p { text-wrap: pretty; }

strong { font-weight: 800; }

a { transition: color .18s var(--ease), border-color .18s var(--ease); }

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

::selection {
  background: var(--teal-400);
  color: var(--ink-900);
}

/* ---------- 扫描线纹理 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(244, 250, 250, 0.035) 0 1px,
    transparent 1px 4px
  );
  animation: scanShift 14s linear infinite;
}

@keyframes scanShift {
  from { background-position: 0 0; }
  to { background-position: 0 160px; }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(-130%);
  padding: 12px 20px;
  background: var(--amber-400);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink-900);
  transition: transform .2s var(--ease);
}

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

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

#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .28s var(--ease), box-shadow .28s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 23, 37, 0.92) 0%, rgba(6, 23, 37, 0.55) 62%, rgba(6, 23, 37, 0) 100%);
  opacity: 1;
  transition: opacity .28s var(--ease);
  pointer-events: none;
}

.site-header[data-stuck] {
  background-color: var(--ink-800);
  box-shadow: 0 2px 0 0 var(--line-500), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

.site-header[data-stuck]::after { opacity: 0; }

/* 状态轨道 */
.header-rail {
  height: var(--rail-h);
  overflow: hidden;
  background: rgba(6, 23, 37, 0.72);
  border-bottom: 1px solid rgba(43, 82, 102, 0.6);
  transition: height .28s var(--ease), opacity .28s var(--ease), border-color .28s var(--ease);
}

.site-header[data-stuck] .header-rail {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-rail__inner {
  width: 100%;
  max-width: var(--wrap);
  height: var(--rail-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-300);
  white-space: nowrap;
}

.header-rail__tagline {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-rail__num {
  color: var(--amber-400);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(69, 240, 208, 0.16);
  animation: pulseDot 2.6s var(--ease) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* 主导航行 */
.header-body__inner {
  width: 100%;
  max-width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

/* 品牌锁形 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  display: inline-block;
  padding: 5px 9px 4px;
  background: var(--teal-400);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 0 rgba(255, 177, 59, 0.92);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.brand:hover .brand__mark {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 rgba(255, 177, 59, 0.92);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--text-100);
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-300);
}

/* 导航 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 18px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-300);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: var(--teal-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.nav__link:hover {
  color: var(--text-100);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--teal-400);
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 页头 CTA */
.header-cta {
  flex: 0 0 auto;
  margin-left: clamp(6px, 1.2vw, 18px);
  padding: 0.6em 1.05em;
  font-size: 0.82rem;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 11px;
  border: 2px solid var(--line-500);
  color: var(--text-100);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.site-header[data-open] .nav-toggle {
  border-color: var(--amber-400);
  color: var(--amber-400);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal-400) 0%, var(--amber-400) 100%);
  transition: width .12s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 76px) 0 28px;
  background-color: var(--ink-800);
  border-top: 3px solid var(--amber-400);
  color: var(--text-100);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(244, 250, 250, 0.028) 0 1px,
    transparent 1px 5px
  );
}

.site-footer > .wrap { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-500);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--text-100);
}

.footer-brand__name::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  background: var(--teal-400);
}

.footer-brand__statement {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted-300);
}

.footer-mail {
  display: block;
  justify-self: start;
}

.footer-mail__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.footer-mail__value {
  display: block;
  margin-top: 8px;
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-100);
  border-bottom: 2px solid var(--teal-400);
  word-break: break-all;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-mail:hover .footer-mail__value {
  color: var(--teal-400);
  border-bottom-color: var(--amber-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 44px);
  padding: clamp(26px, 3.6vw, 40px) 0;
}

.footer-col__title {
  padding-bottom: 9px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-500);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-400);
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-col__link {
  font-size: 14px;
  color: var(--muted-300);
  word-break: break-word;
}

.footer-col__link:hover { color: var(--text-100); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-300);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-link {
  border-bottom: 1px dashed var(--line-500);
  color: var(--muted-300);
}

.legal-link:hover {
  color: var(--teal-400);
  border-bottom-color: var(--teal-400);
}

.footer-bottom__legal,
.footer-bottom__addr,
.footer-bottom__copy { line-height: 1.7; }

.footer-bottom__addr { max-width: 42ch; }

.footer-bottom__copy { color: var(--amber-400); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.78em 1.35em;
  border: 2px solid var(--line-500);
  border-radius: 1px;
  background: transparent;
  color: var(--text-100);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

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

.btn:active { transform: translate(1px, 1px); }

.btn--amber {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 0 rgba(6, 23, 37, 0.9);
}

.btn--amber:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--paper-100);
}

.btn--teal {
  background: var(--teal-400);
  border-color: var(--teal-400);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 0 rgba(6, 23, 37, 0.9);
}

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

.btn--ghost {
  border-color: var(--line-500);
  color: var(--text-100);
}

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

/* 面板 */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  border: 2px solid var(--line-500);
  border-radius: 1px;
}

.panel--ink {
  background: var(--ink-800);
  color: var(--text-100);
}

.panel--paper {
  background: var(--paper-100);
  border-color: var(--paper-200);
  color: var(--ink-900);
}

.panel--paper a {
  color: var(--amber-600);
  border-bottom: 1px solid rgba(217, 123, 18, 0.45);
}

.panel--paper a:hover { color: var(--ink-800); border-bottom-color: var(--ink-800); }

.panel--paper :focus-visible { outline-color: var(--amber-600); }

.panel--teal {
  background: var(--ink-700);
  border-color: var(--teal-400);
  box-shadow: 7px 7px 0 0 rgba(69, 240, 208, 0.16);
}

/* 斜切分区 */
.is-slant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4deg;
  background: var(--line-500);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3-6-3 { grid-template-columns: 3fr 6fr 3fr; }

@media (max-width: 960px) {
  .grid--4-8,
  .grid--5-7,
  .grid--3-6-3 { grid-template-columns: 1fr; }
}

/* 文本工具 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-400);
}

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

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

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-400);
}

.panel--paper .num { color: var(--amber-600); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-500);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-300);
  white-space: nowrap;
}

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

.tag--amber {
  border-color: var(--amber-400);
  color: var(--amber-400);
}

.tag--danger {
  border-color: var(--danger-400);
  color: var(--danger-400);
}

/* 刻度分隔线 */
.rule {
  height: 7px;
  border-top: 1px solid var(--line-500);
  border-bottom: 1px solid var(--line-500);
  background-image: repeating-linear-gradient(90deg, var(--line-500) 0 1px, transparent 1px 12px);
}

.panel--paper .rule {
  border-color: var(--paper-200);
  background-image: repeating-linear-gradient(90deg, var(--paper-200) 0 1px, transparent 1px 12px);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-300);
}

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

.breadcrumb__item::after {
  content: "/";
  color: var(--line-500);
}

.breadcrumb__item:last-child::after { content: none; }

.breadcrumb__link {
  color: var(--teal-400);
  border-bottom: 1px solid transparent;
}

.breadcrumb__link:hover { border-bottom-color: var(--teal-400); }

/* 正文容器 */
.prose {
  max-width: 68ch;
  font-size: clamp(15px, 0.4vw + 14px, 17px);
  line-height: 1.85;
}

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

.prose h2 { margin-top: 1.9em; }

.prose h3 { margin-top: 1.6em; }

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
}

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

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5em;
  height: 0.5em;
  background: var(--teal-400);
}

.panel--paper .prose ul > li::before { background: var(--amber-600); }

.prose ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.prose figure { margin-top: 1.6em; }

.prose figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-300);
}

.panel--paper .prose figcaption { color: var(--ink-700); }

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line-500);
  background: var(--ink-700);
}

.media-frame__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media-frame--paper { border-color: var(--paper-200); background: var(--paper-200); }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(6, 23, 37, 0.09) 0 1px,
    transparent 1px 3px
  );
}

.media-frame__cap {
  padding: 10px 14px;
  border-top: 1px solid var(--line-500);
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-300);
}

/* 四角刻度 */
.corner-mark::before,
.corner-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.corner-mark::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--teal-400);
  border-left: 2px solid var(--teal-400);
}

.corner-mark::after {
  right: 6px;
  bottom: 6px;
  border-right: 2px solid var(--amber-400);
  border-bottom: 2px solid var(--amber-400);
}

/* 滚动显现 */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--teal-400);
  background: var(--ink-800);
  color: var(--teal-400);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 0 rgba(6, 23, 37, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .24s var(--ease), transform .24s var(--ease),
              visibility .24s, background-color .18s var(--ease), color .18s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--teal-400);
  color: var(--ink-900);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1023px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: var(--ink-800);
    border-top: 2px solid var(--line-500);
    border-bottom: 3px solid var(--teal-400);
    box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }

  .site-header[data-open] .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(43, 82, 102, 0.6);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    padding-left: 12px;
    border-left: 3px solid var(--teal-400);
  }

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

  .header-rail__tagline { display: none; }

  .brand__sub { display: none; }

  .header-cta { margin-left: auto; }

  .nav-toggle { margin-left: 8px; }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; align-items: start; }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .header-rail__inner { font-size: 10px; letter-spacing: 0.08em; }

  .brand__name { font-size: 17px; }

  .header-cta { padding: 0.55em 0.8em; font-size: 0.75rem; }

  .nav-toggle__label { display: none; }

  .to-top { width: 42px; height: 42px; }

  .panel { padding: 18px; }
}

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

  body::before { animation: none; opacity: .35; }

  .status-dot { animation: none; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
