/* ===================================================
   /assets/site.css — 共享外壳与通用组件
   深夜航海控制台 × 纸质档案库
   =================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #061826;
  --ink-800: #0C2A3E;
  --ink-700: #123A52;
  --paper: #F3E9D2;
  --paper-shadow: #D8C7A6;
  --cyan: #37E2D0;
  --amber: #F2B544;
  --violet: #9C8FD9;
  --coral: #F37A5C;
  --mist: #8FA9B8;
  --text-dark: #0B1E2B;
  --text-light: #E9F1F5;

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

  --rail-w: 96px;
  --slab-h: 64px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --content-max: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --hair: rgba(55, 226, 208, 0.18);
}

/* ---------- 基础页面 ---------- */
body {
  background-color: var(--ink-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(55, 226, 208, 0.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(55, 226, 208, 0.035) 0 1px, transparent 1px 44px);
  background-attachment: fixed;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  padding-top: var(--slab-h);
  padding-left: var(--rail-w);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}

p { max-width: 72ch; }

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

a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(55, 226, 208, 0.45);
}

a:hover { text-decoration-color: var(--cyan); }

::selection { background: var(--cyan); color: #04202B; }

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

#main-content { scroll-margin-top: calc(var(--slab-h) + 16px); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 0.72em 1.3em;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04202B;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 4px;
}

/* ===================================================
   头部：书脊竖轨 + 顶部细框
   =================================================== */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.header-slab,
.site-nav { pointer-events: auto; }

/* 顶部细框 */
.header-slab {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--slab-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(6, 24, 38, 0.92);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

.slab-utility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-link {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 233, 210, 0.18);
  color: var(--mist);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.utility-link:hover {
  color: var(--paper);
  border-color: rgba(55, 226, 208, 0.5);
  background: rgba(55, 226, 208, 0.08);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(55, 226, 208, 0.38);
  background: rgba(55, 226, 208, 0.06);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}

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

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

/* 书脊竖轨 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px 18px;
  background: linear-gradient(180deg, #0A2434 0%, #061826 55%, #04121C 100%);
  border-right: 1px solid var(--hair);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 226, 208, 0.35) transparent;
}

.site-nav::-webkit-scrollbar { width: 4px; }
.site-nav::-webkit-scrollbar-thumb {
  background: rgba(55, 226, 208, 0.32);
  border-radius: 4px;
}

.rail-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 233, 210, 0.12);
}

.rail-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.rail-mark-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.rail-mark-label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--mist);
}

.rail-eyebrow {
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: rgba(143, 169, 184, 0.72);
  white-space: nowrap;
}

.nav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item { width: 100%; }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(242, 181, 68, 0.7);
}

.nav-text {
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(55, 226, 208, 0.08);
  border-color: rgba(55, 226, 208, 0.28);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(55, 226, 208, 0.14);
  border-color: rgba(55, 226, 208, 0.55);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.nav-link[aria-current="page"] .nav-num { color: var(--cyan); }

.nav-cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 226, 208, 0.42);
  background: linear-gradient(150deg, rgba(55, 226, 208, 0.18), rgba(242, 181, 68, 0.12));
  color: var(--paper);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
}

.nav-cta:hover {
  background: linear-gradient(150deg, rgba(55, 226, 208, 0.32), rgba(242, 181, 68, 0.2));
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.nav-cta-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--cyan);
}

/* 阅读进度 */
.read-progress {
  position: fixed;
  top: calc(var(--slab-h) - 3px);
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 95;
  background: rgba(55, 226, 208, 0.12);
  pointer-events: none;
}

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

/* ===================================================
   通用容器与排版组件
   =================================================== */
.wrap {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--paper);
}

.lead {
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.8;
  color: rgba(233, 241, 245, 0.82);
  max-width: 60ch;
}

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

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  height: 2.1em;
  padding-inline: 0.35em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 181, 68, 0.5);
  background: rgba(242, 181, 68, 0.14);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: var(--cyan);
  color: #04202B;
  box-shadow: 0 8px 24px rgba(55, 226, 208, 0.22);
}

.btn--primary:hover { background: #5CEEDF; }

.btn--ghost {
  border-color: rgba(243, 233, 210, 0.32);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(55, 226, 208, 0.08);
}

.btn--paper {
  background: var(--paper);
  color: var(--text-dark);
}

.btn--paper:hover { background: #FFF8E9; }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: rgba(143, 169, 184, 0.5);
}

.crumb-link {
  color: var(--mist);
  text-decoration: none;
}

.crumb-link:hover { color: var(--cyan); }

.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

.grid--split {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

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

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 226, 208, 0.16);
  background: linear-gradient(160deg, rgba(18, 58, 82, 0.86), rgba(12, 42, 62, 0.7));
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 226, 208, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--paper);
}

.card-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(233, 241, 245, 0.76);
}

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.chip--cyan {
  color: var(--cyan);
  border-color: rgba(55, 226, 208, 0.5);
  background: rgba(55, 226, 208, 0.1);
}

.chip--amber {
  color: var(--amber);
  border-color: rgba(242, 181, 68, 0.5);
  background: rgba(242, 181, 68, 0.1);
}

.chip--violet {
  color: var(--violet);
  border-color: rgba(156, 143, 217, 0.55);
  background: rgba(156, 143, 217, 0.12);
}

.chip--coral {
  color: var(--coral);
  border-color: rgba(243, 122, 92, 0.55);
  background: rgba(243, 122, 92, 0.12);
}

/* ---------- 纸面板 ---------- */
.paper-panel {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-shadow);
  background: var(--paper);
  color: var(--text-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.paper-panel p {
  max-width: 68ch;
  line-height: 1.85;
  color: #12293A;
}

.paper-panel p + p { margin-top: 1em; }

.paper-panel a {
  color: #0B4F5C;
  text-decoration-color: rgba(11, 79, 92, 0.45);
}

.paper-panel a:hover { text-decoration-color: #0B4F5C; }

.paper-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: #08202F;
  margin-bottom: 0.6em;
}

/* ---------- 图片容器 ---------- */
.figure-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 226, 208, 0.18);
  background: linear-gradient(150deg, #123A52 0%, #061826 60%, #0C2A3E 100%);
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(55, 226, 208, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 226, 208, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.figure-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--paper {
  background: linear-gradient(150deg, #F7EEDD 0%, #E6D6B8 100%);
  border-color: var(--paper-shadow);
}

.figure-frame--paper::before {
  background-image:
    linear-gradient(rgba(11, 30, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 30, 43, 0.08) 1px, transparent 1px);
}

.figure-frame--tall { aspect-ratio: 3 / 4; }

.figure-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 折叠面板 ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 226, 208, 0.16);
  background: rgba(12, 42, 62, 0.62);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper);
}

.accordion-trigger::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.22s ease;
}

.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion-panel {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(233, 241, 245, 0.78);
}

.accordion-panel[hidden] { display: none; }

/* ---------- 滚动显现与章节高亮 ---------- */
[data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(12px);
}

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

[data-spy-link] {
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

[data-spy-link].is-active {
  color: var(--cyan);
  border-color: rgba(55, 226, 208, 0.55);
  background: rgba(55, 226, 208, 0.1);
}

/* ===================================================
   页脚
   =================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, #08202F 0%, #04121C 100%);
  border-top: 1px solid rgba(55, 226, 208, 0.22);
  color: var(--text-light);
}

.footer-top {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44ch;
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--paper);
  max-width: none;
}

.footer-summary {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist);
}

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

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(233, 241, 245, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 28px;
  margin-top: clamp(26px, 4vw, 40px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 199, 166, 0.22);
  background: rgba(243, 233, 210, 0.05);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.contact-label {
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--violet);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 14px;
  max-width: 78ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(143, 169, 184, 0.92);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: clamp(22px, 4vw, 38px);
  padding-block: 18px 22px;
  border-top: 1px solid rgba(143, 169, 184, 0.18);
}

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(143, 169, 184, 0.9);
  max-width: none;
}

.footer-base .footer-link { font-size: 12.5px; }
.footer-base .footer-copy { margin-right: auto; }

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 980px) {
  :root { --rail-w: 0px; --slab-h: 60px; }

  .header-slab { left: 0; }

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

  .slab-utility { display: none; }

  .site-nav {
    top: var(--slab-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-height: calc(100dvh - var(--slab-h));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px var(--gutter) 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(55, 226, 208, 0.22);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(8, 30, 44, 0.98);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s ease;
    overflow-y: auto;
  }

  .site-nav[data-open] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .rail-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 12px;
  }

  .rail-mark {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .rail-mark-num { font-size: 18px; }
  .rail-eyebrow { font-size: 10px; }

  .nav-list { gap: 4px; }

  .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
  }

  .nav-num { font-size: 11px; }
  .nav-text { font-size: 14.5px; }

  .nav-cta {
    margin-top: 6px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
  }

  .read-progress { left: 0; }

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

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

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

  .brand-tagline { display: none; }
  .header-slab { gap: 10px; padding: 0 14px; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-base { gap: 8px 16px; }
  .footer-base .footer-copy { width: 100%; order: 3; }
}

/* ===================================================
   动效与打印
   =================================================== */
@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;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn:hover,
  .nav-cta:hover { transform: none; }
}

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .site-header,
  .site-footer,
  .read-progress { display: none !important; }

  .paper-panel {
    box-shadow: none;
    border-color: #999;
  }

  a { text-decoration: none; color: #000; }
}
