/* ==========================================================================
   12博中心 · /assets/site.css
   数字档案室 / 终端仪表盘 · 近单色近单色体系 + 粗野主义框架
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-ink);
  background-image:
    linear-gradient(rgba(43, 69, 96, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 69, 96, .16) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

::selection {
  background: var(--c-cyan);
  color: #04131F;
}

/* ---------- tokens ---------- */
:root {
  /* 色彩：近单色体系，强调色 < 10% */
  --c-ink: #07101C;
  --c-panel: #0E1D30;
  --c-panel-2: #14263C;
  --c-line: #2B4560;
  --c-text: #C9D4E0;
  --c-text-2: #8EA0B4;
  --c-white: #F5FAFF;
  --c-cyan: #49F2D0;
  --c-amber: #F3B44C;
  --c-red: #E07A7A;
  --c-grey: #7B8DA1;

  /* 字体 */
  --font-display: 'Barlow Condensed', 'Archivo Narrow', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* 尺度 */
  --shell-w: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --bw: 2px;
  --shadow-hard: 6px 6px 0 rgba(43, 69, 96, .48);
  --shadow-soft: 0 20px 44px rgba(2, 8, 16, .62);

  /* 动效 */
  --dur: 200ms;
  --dur-slow: 240ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 排版基础 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { line-height: 1.78; }

strong { color: var(--c-white); font-weight: 700; }

small { font-size: 12.5px; color: var(--c-text-2); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--c-cyan);
}

hr { border: 0; }

/* ---------- 焦点与可达性 ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 300;
  display: inline-block;
  padding: 11px 20px;
  background: var(--c-cyan);
  color: #04131F;
  border: var(--bw) solid #04131F;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline-color: #04131F;
}

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

/* ---------- 布局原语 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 7vw, 88px);
}

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

.prose p { max-width: 72ch; }
.prose p + p { margin-top: 1em; }
.prose ul { max-width: 72ch; }
.prose li { position: relative; padding-left: 20px; margin-top: .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 2px;
  background: var(--c-cyan);
}

.divider {
  height: var(--bw);
  background: var(--c-line);
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--c-panel);
  border: var(--bw) solid var(--c-line);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow-hard);
}

.panel--flush { padding: 0; }

.panel--raised {
  background: var(--c-panel-2);
  box-shadow: var(--shadow-soft);
}

/* ---------- 标签与状态 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.annotation {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--c-text-2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--c-text-2);
  background: rgba(20, 38, 60, .72);
  border: 1px solid var(--c-line);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--c-cyan);
  border-color: rgba(73, 242, 208, .45);
  background: rgba(73, 242, 208, .08);
}

.tag--amber {
  color: var(--c-amber);
  border-color: rgba(243, 180, 76, .45);
  background: rgba(243, 180, 76, .08);
}

.tag--grey {
  color: var(--c-grey);
  border-color: rgba(123, 141, 161, .45);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-panel);
  border: var(--bw) solid var(--c-line);
  box-shadow: 4px 4px 0 rgba(43, 69, 96, .8);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  border-color: #3C5C7D;
  box-shadow: 6px 6px 0 rgba(43, 69, 96, .9);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(43, 69, 96, .8);
}

.btn--primary {
  color: #04131F;
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 4px 4px 0 rgba(73, 242, 208, .22);
}

.btn--primary:hover {
  background: #6FF7DC;
  border-color: #6FF7DC;
  box-shadow: 6px 6px 0 rgba(73, 242, 208, .3);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 4px 4px 0 rgba(73, 242, 208, .16);
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--c-text-2);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 9px;
  color: var(--c-line);
}

.breadcrumb a {
  color: var(--c-text-2);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--c-cyan);
  border-bottom-color: currentColor;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-text);
}

/* ---------- 图片 / 图形容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: var(--bw) solid var(--c-line);
  background:
    linear-gradient(135deg, rgba(43, 69, 96, .38), transparent 58%),
    var(--c-panel);
  box-shadow: var(--shadow-hard);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(73, 242, 208, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 242, 208, .085) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media-frame > img,
.media-frame > picture,
.media-frame > svg,
.media-frame > video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame-caption {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-text-2);
  background: rgba(7, 16, 28, .82);
  border-top: var(--bw) solid var(--c-line);
}

/* ---------- 滚动显现协议 ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ==========================================================================
   页头 · 框架式索引轨
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0A1828 0%, #08121F 100%);
  border-bottom: var(--bw) solid var(--c-line);
  box-shadow: inset 0 2px 0 rgba(73, 242, 208, .42), 0 14px 30px rgba(2, 8, 16, .55);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.6vw, 24px);
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 10px;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover { opacity: .86; }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--c-panel);
  border: var(--bw) solid var(--c-line);
  box-shadow: 3px 3px 0 rgba(43, 69, 96, .78);
}

.brand-mark::before {
  content: "";
  width: 15px;
  height: 15px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--c-cyan) 0 2px,
    transparent 2px 5px
  );
}

.brand-text {
  display: block;
  line-height: 1;
}

.brand-cn {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-white);
  line-height: 1.15;
}

.brand-en {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--c-text-2);
  line-height: 1;
}

/* 批次状态灯 */
.batch-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  order: 3;
  flex: 0 0 auto;
  padding: 5px 11px;
  background: rgba(20, 38, 60, .72);
  border: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--c-text-2);
  white-space: nowrap;
}

.batch-state-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(73, 242, 208, .14);
  animation: batchPulse 2.8s steps(1, end) infinite;
}

.batch-state-key { color: var(--c-grey); }

.batch-state-id { color: var(--c-white); }

.batch-state-flag {
  padding-left: 8px;
  border-left: 1px solid var(--c-line);
  color: var(--c-cyan);
}

@keyframes batchPulse {
  0%, 62% { opacity: 1; }
  63%, 100% { opacity: .34; }
}

/* 导航 */
.site-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

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

.nav-list li { display: flex; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 clamp(10px, 1.4vw, 17px);
  min-height: 44px;
  font-size: 14.5px;
  color: var(--c-text);
  border-left: 1px solid rgba(43, 69, 96, .55);
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}

.nav-list a:hover {
  color: var(--c-white);
  background: var(--c-panel-2);
}

.nav-list a:hover::after { background: rgba(73, 242, 208, .6); }

.nav-list a[aria-current="page"] {
  color: var(--c-cyan);
  background: rgba(73, 242, 208, .075);
}

.nav-list a[aria-current="page"]::after { background: var(--c-cyan); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  align-self: center;
  order: 4;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--c-text);
  background: var(--c-panel);
  border: var(--bw) solid var(--c-line);
  box-shadow: 3px 3px 0 rgba(43, 69, 96, .78);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  color: var(--c-cyan);
  border-color: rgba(73, 242, 208, .55);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(73, 242, 208, .3);
}

.nav-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(43, 69, 96, .78);
}

.nav-toggle-bars {
  display: block;
  width: 16px;
  flex: 0 0 auto;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease);
}

.nav-toggle-bars span + span { margin-top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* 阅读进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  pointer-events: none;
}

.scroll-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-amber) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  will-change: transform;
}

/* ==========================================================================
   页脚 · 深底粗线分区
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: #050D17;
  background-image: radial-gradient(900px 320px at 12% 0%, rgba(73, 242, 208, .07), transparent 62%);
  border-top: var(--bw) solid var(--c-line);
  color: var(--c-text-2);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(22px, 3vw, 32px);
}

.footer-sign {
  max-width: 18em;
  padding-left: 18px;
  border-left: 4px solid var(--c-amber);
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .015em;
  color: var(--c-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(240px, 1.35fr) minmax(180px, .9fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid rgba(43, 69, 96, .8);
}

.footer-heading {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(43, 69, 96, .8);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

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

.footer-nav-list a {
  display: block;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--c-text);
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}

.footer-nav-list a:hover {
  color: var(--c-cyan);
  border-bottom-color: rgba(73, 242, 208, .42);
  padding-left: 6px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item dt {
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-grey);
}

.contact-item dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-text);
  word-break: break-word;
}

.contact-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(43, 69, 96, .85);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-text-2);
  max-width: 40ch;
}

.legend {
  display: grid;
  gap: 11px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-text);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
}

.legend-dot--cyan {
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(73, 242, 208, .13);
}

.legend-dot--amber {
  background: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(243, 180, 76, .13);
}

.legend-dot--grey {
  background: var(--c-grey);
  box-shadow: 0 0 0 3px rgba(123, 141, 161, .13);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: 18px;
  border-top: var(--bw) solid var(--c-line);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--c-text-2);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--c-grey);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.to-top:hover {
  color: var(--c-cyan);
  border-color: rgba(73, 242, 208, .55);
  transform: translateY(-2px);
}

.to-top:active { transform: translateY(0); }

.to-top-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* 批次状态灯先收（避免中宽屏拥挤） */
@media (max-width: 1100px) {
  .batch-state { display: none; }
}

/* 平板 / 移动：导航降为批次抽屉 */
@media (max-width: 1000px) {
  html { scroll-behavior: auto; }

  .header-inner {
    align-items: center;
    gap: 12px;
  }

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

  .site-nav {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #09182A;
    border-bottom: var(--bw) solid var(--c-line);
    box-shadow: var(--shadow-soft);
    z-index: 90;
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrop var(--dur-slow) var(--ease);
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .nav-list {
    display: block;
    width: 100%;
  }

  .nav-list li { display: block; }

  .nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 16px var(--gutter);
    font-size: 16px;
    border-left: 0;
    border-top: 1px solid rgba(43, 69, 96, .55);
  }

  .nav-list li:first-child a { border-top: 0; }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    background: rgba(73, 242, 208, .07);
    box-shadow: inset 4px 0 0 var(--c-cyan);
  }

  .brand { padding-block: 8px; }
}

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

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

  .footer-status { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .brand-cn { font-size: 17px; }
  .brand-en { font-size: 8.5px; letter-spacing: .2em; }
  .brand-mark { width: 32px; height: 32px; }

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

  .footer-nav-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-status { grid-column: auto; }

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

  .to-top { align-self: stretch; justify-content: center; }
}

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

  *,
  *::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;
    transition: none;
  }

  .batch-state-dot { animation: none; }
}
