/* =============================================================
   半岛看台 /assets/site.css
   夜航看台体系：墨蓝基底 · 晨雾灰文字 · 信号橙锚点 · 冷光青状态
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 150px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
main { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #061826;
  --ink-800: #0B2638;
  --ink-700: #123A52;
  --ink-600: #1E5168;
  --mist-300: #C8D3D8;
  --mist-100: #EEF1F0;
  --paper: #F7F4EC;
  --graphite-900: #151A1D;
  --graphite-500: #5D6A70;
  --orange-600: #FF6B2C;
  --orange-300: #FFA06E;
  --cyan-400: #63D8D4;

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

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --rail-h: 40px;
  --bar-h: 68px;

  --on-surface: #F7F4EC;
  --on-muted: #C8D3D8;
  --on-rule: rgba(200, 211, 216, 0.24);
  --panel-bg: #0B2638;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.01em;
  color: var(--on-surface);
}

h1 {
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(26px, 3.4vw, 40px); }

h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: 0.02em;
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}

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

::selection { background: var(--orange-600); color: var(--ink-900); }

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

/* ---------- 4. 容器与布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 7vw, 92px);
  color: var(--on-surface);
}

.section--ink {
  background: var(--ink-900);
  --on-surface: #F7F4EC;
  --on-muted: #C8D3D8;
  --on-rule: rgba(200, 211, 216, 0.24);
  --panel-bg: #0B2638;
}

.section--deep {
  background: var(--ink-800);
  --on-surface: #F7F4EC;
  --on-muted: #C8D3D8;
  --on-rule: rgba(200, 211, 216, 0.2);
  --panel-bg: #123A52;
}

.section--mist {
  background: var(--mist-100);
  color: var(--graphite-900);
  --on-surface: #151A1D;
  --on-muted: #5D6A70;
  --on-rule: rgba(21, 26, 29, 0.16);
  --panel-bg: #FFFFFF;
}

.section--paper {
  background: var(--paper);
  color: var(--graphite-900);
  --on-surface: #151A1D;
  --on-muted: #5D6A70;
  --on-rule: rgba(21, 26, 29, 0.14);
  --panel-bg: #F7F4EC;
}

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.rule {
  border: 0;
  border-top: 1px solid var(--on-rule);
  margin-block: clamp(28px, 4vw, 48px);
}

.tickline {
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--on-rule) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-position: 0 0;
  opacity: 0.9;
}

/* ---------- 5. 章节头与文本块 ---------- */
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3.4vw, 42px);
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--orange-600);
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  color: var(--on-surface);
}

.section-lead {
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--on-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

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

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--on-muted);
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--on-surface);
}

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

.prose ul { margin: 1em 0 1em 0; display: grid; gap: 0.5em; }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 9px;
  height: 1px;
  background: var(--orange-600);
}

.note {
  border-left: 2px solid var(--orange-600);
  padding: 12px 0 12px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-muted);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn--accent {
  background: var(--orange-600);
  color: var(--ink-900);
  font-weight: 500;
}

.btn--accent:hover { background: var(--orange-300); }

.btn--ghost {
  background: transparent;
  border-color: var(--on-rule);
  color: var(--on-surface);
}

.btn--ghost:hover {
  border-color: var(--orange-600);
  color: var(--orange-600);
}

.btn--line {
  background: transparent;
  border-color: currentColor;
  color: var(--on-surface);
}

.btn--line:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

/* ---------- 7. 面包屑 / 标签 / 卡片 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-muted);
}

.crumbs a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.crumbs a:hover {
  color: var(--orange-300);
  border-bottom-color: currentColor;
}

.crumbs [aria-current] { color: var(--on-surface); }

.crumb-sep { color: var(--ink-600); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--on-rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-muted);
}

.tag--accent { border-color: var(--orange-600); color: var(--orange-300); }
.tag--cyan { border-color: rgba(99, 216, 212, 0.5); color: var(--cyan-400); }

.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--on-rule);
  background: var(--panel-bg);
}

.card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--on-rule);
  background: var(--panel-bg);
  transition: border-color 0.25s ease;
}

.card:hover { border-color: var(--cyan-400); }

/* ---------- 8. 仪表数字 / 时间线 / 目录 ---------- */
.stat { display: block; }

.stat__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.stat__num--accent { color: var(--orange-600); }

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--on-muted);
}

.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--on-rule);
}

.timeline__item {
  position: relative;
  padding-bottom: 26px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(99, 216, 212, 0.12);
}

.timeline__year {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange-300);
}

.toc {
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--on-rule);
  color: var(--on-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  color: var(--on-surface);
  border-left-color: var(--cyan-400);
}

.toc a[aria-current] {
  color: var(--orange-300);
  border-left-color: var(--orange-600);
}

/* ---------- 9. 图片容器基础 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--on-rule);
  background: var(--ink-700);
}

.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--panorama { aspect-ratio: 21 / 9; }

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(rgba(99, 216, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 212, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-300);
}

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

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange-600);
  color: var(--ink-900);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.24s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 11. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-600);
}

.header-rail {
  height: var(--rail-h);
  overflow: hidden;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(30, 81, 104, 0.85);
  transition: height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.site-header.is-condensed .header-rail {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--rail-h);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink-600);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 216, 212, 0.18) 0 2px, transparent 2px);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(99, 216, 212, 0.22);
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5px;
  height: 12px;
  border-radius: 1px;
  background: var(--orange-600);
  transform: translate(-50%, -50%) rotate(42deg);
}

.brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand:hover { color: var(--orange-300); }

.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan-400);
  white-space: nowrap;
}

.brand-tag::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--ink-600);
}

.rail-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-300);
}

.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(99, 216, 212, 0.14);
}

.rail-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist-300);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rail-link:hover {
  color: var(--paper);
  border-bottom-color: var(--orange-600);
}

.rail-link--accent { color: var(--orange-300); }

.header-bar {
  position: relative;
  background: var(--ink-800);
  border-top: 1px solid rgba(99, 216, 212, 0.06);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--bar-h);
  transition: height 0.3s ease;
}

.site-header.is-condensed .header-bar__inner { height: 56px; }

.primary-nav { width: 100%; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  counter-reset: navindex;
}

.nav-list > li {
  display: flex;
  counter-increment: navindex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 2px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--mist-300);
  transition: color 0.2s ease;
}

.nav-link::before {
  content: counter(navindex, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-600);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::before { color: var(--cyan-400); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 500;
}

.nav-link[aria-current="page"]::before { color: var(--orange-600); }

.nav-link[aria-current="page"]::after {
  height: 2px;
  background: var(--orange-600);
  transform: scaleX(1);
}

.nav-quick { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 9px 14px;
  border: 1px solid var(--ink-600);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--cyan-400); }
.nav-toggle:focus-visible { outline: 2px solid var(--orange-600); outline-offset: 3px; }

.nav-toggle__text { white-space: nowrap; }
.nav-toggle__close { display: none; }

.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle__bars span:nth-child(1) { top: 1px; }
.nav-toggle__bars span:nth-child(2) { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  top: 5px;
  transform: rotate(-45deg);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-300));
  transition: width 0.12s linear;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--mist-300);
  border-top: 1px solid var(--ink-600);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 42vw);
  height: 2px;
  background: var(--orange-600);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 0.95fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(46px, 6vw, 78px) clamp(32px, 4.4vw, 52px);
}

.footer-logo {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-logo:hover { color: var(--orange-300); }

.footer-line {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist-300);
}

.footer-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-400);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(99, 216, 212, 0.14);
}

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(30, 81, 104, 0.8);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-300);
}

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

.footer-list a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  color: var(--mist-300);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--orange-600);
}

.footer-list--plain span {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--mist-300);
}

.footer-list--plain li:last-child span {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(30, 81, 104, 0.75);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9AADB6;
}

.footer-copy,
.footer-icp,
.footer-note { margin: 0; }

/* ---------- 13. 返回顶部 / 显现 ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink-600);
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--orange-600);
  color: var(--orange-300);
}

.to-top:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-list--plain {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
  }
}

@media (max-width: 900px) {
  :root { --rail-h: 36px; --bar-h: 60px; }

  html { scroll-padding-top: 110px; }

  .header-rail__inner { gap: 12px; }
  .brand-cluster { gap: 9px; }
  .brand { font-size: 15px; letter-spacing: 0.1em; }
  .brand-tag { display: none; }
  .rail-status { display: none; }
  .rail-link { font-size: 10.5px; letter-spacing: 0.12em; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--ink-900);
    border-top: 1px solid var(--ink-600);
    border-bottom: 1px solid var(--ink-600);
    transition: max-height 0.4s cubic-bezier(0.3, 0.8, 0.3, 1);
  }

  .primary-nav[data-open="true"] {
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
  }

  .nav-list > li {
    display: block;
    border-bottom: 1px solid rgba(30, 81, 104, 0.55);
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 15px 2px;
    font-size: 16px;
  }

  .nav-link::before { font-size: 10px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--orange-300); }

  .nav-quick {
    display: block;
    padding: 20px var(--gutter) 26px;
  }

  .nav-quick__title {
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--cyan-400);
  }

  .nav-quick__list { display: grid; gap: 8px; }

  .nav-quick__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--ink-600);
    background: var(--ink-800);
    color: var(--paper);
    font-size: 14.5px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

  .nav-quick__list a::after {
    content: "→";
    font-family: var(--mono);
    color: var(--orange-600);
  }

  .nav-quick__list a:hover { border-color: var(--cyan-400); }

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

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: auto; }
  .footer-list--plain { display: grid; gap: 9px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2,
  .grid--3,
  .grid--12 { grid-template-columns: 1fr; }
  .media--panorama { aspect-ratio: 16 / 9; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .to-top { height: 42px; padding: 0 13px; }
}

/* ---------- 15. 减弱动态 ---------- */
@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;
  }

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

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