/* =========================================================
   英亚平台 · 共享样式 /assets/site.css
   港口调度室视觉：深海蓝基底 + 信号橙行动色 + 雾青信息色
   ========================================================= */

:root {
  /* 色彩 */
  --ink-deep: #0A2A3E;
  --ink-raise: #123F58;
  --ink-night: #061822;
  --ink-abyss: #04121A;

  --signal: #F26A2E;
  --signal-soft: #FF8A52;

  --mist: #74A8A6;
  --mist-soft: #B4CFCB;

  --warm: #F7F2E9;
  --stone: #2C3338;
  --clay: #E3D8C4;
  --moss: #7C8C6A;

  /* 字体 */
  --font-display: "Archivo Narrow", "Arial Narrow", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 形状 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* 度量 */
  --wrap: 1240px;
  --pad-x: clamp(16px, 4vw, 48px);
  --gap: clamp(14px, 1.6vw, 22px);

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  background: var(--ink-abyss);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--warm);
  background: var(--ink-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; }
hr { border: 0; border-top: 1px solid rgba(180, 207, 203, .24); }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  text-wrap: balance;
  color: inherit;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.75rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.75rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
strong { font-weight: 700; }
small { font-size: 12.5px; }

p { line-height: 1.85; }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.brand:focus-visible,
.command-pill:focus-visible,
.btn:focus-visible { border-radius: var(--radius-pill); }

/* ---------- 容器与节奏 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: clamp(36px, 6vw, 80px); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.bento > * { min-width: 0; }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--ink-raise);
  border: 1px solid rgba(116, 168, 166, .22);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  color: var(--warm);
}
.panel--warm {
  background: var(--warm);
  color: var(--stone);
  border-color: rgba(44, 51, 56, .14);
}
.panel--clay {
  background: var(--clay);
  color: var(--stone);
  border-color: rgba(44, 51, 56, .16);
}
.panel--outline { background: transparent; }
.panel--night { background: var(--ink-night); }

/* ---------- 小标签与铭牌 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(116, 168, 166, .38);
  background: rgba(116, 168, 166, .08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--mist-soft);
  transition: transform 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease), background-color 120ms var(--ease);
}
a.tag:hover,
a.tag:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mist);
  color: var(--warm);
  background: rgba(116, 168, 166, .18);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #071B26;
}
.btn-signal:hover,
.btn-signal:focus-visible {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(116, 168, 166, .5);
  color: var(--warm);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--mist);
  background: rgba(116, 168, 166, .14);
  transform: translateY(-2px);
}
.btn-mist {
  background: var(--mist);
  border-color: var(--mist);
  color: #071B26;
}
.btn-mist:hover,
.btn-mist:focus-visible {
  background: var(--mist-soft);
  border-color: var(--mist-soft);
  transform: translateY(-2px);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist-soft);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(116, 168, 166, .6);
}
.breadcrumb a { color: var(--warm); transition: color 140ms var(--ease); }
.breadcrumb a:hover { color: var(--signal); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.2em; }
.prose p { max-width: none; }
.prose a {
  color: var(--signal);
  border-bottom: 1px solid rgba(242, 106, 46, .45);
}
.prose a:hover { border-bottom-color: var(--signal); }

/* ---------- 图片容器基础规则（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(116, 168, 166, .24);
  background:
    linear-gradient(150deg, rgba(116, 168, 166, .24), rgba(10, 42, 62, 0) 58%),
    linear-gradient(0deg, rgba(6, 24, 34, .55), rgba(6, 24, 34, 0) 60%),
    var(--ink-raise);
  aspect-ratio: var(--frame-ratio, 3 / 2);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 207, 203, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 207, 203, .13) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .65;
  pointer-events: none;
  z-index: 2;
}
.media-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.media-frame--wide { --frame-ratio: 21 / 9; }
.media-frame--tall { --frame-ratio: 3 / 4; }
.media-frame--square { --frame-ratio: 1 / 1; }
.media-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist-soft);
  background: rgba(6, 24, 34, .72);
  border: 1px solid rgba(116, 168, 166, .3);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}

/* ---------- 滚动进度条（由 JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: var(--mist);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- 显现动效 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 14px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--signal);
  color: #071B26;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: top 160ms var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(116, 168, 166, .24);
  box-shadow: 0 12px 30px rgba(4, 18, 26, .45);
}

/* 顶部细轨 */
.header-rail {
  background: var(--ink-night);
  border-bottom: 1px solid rgba(116, 168, 166, .18);
}
.rail-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mist-soft);
  line-height: 1.6;
}
.rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  white-space: nowrap;
}
.rail-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(242, 106, 46, .22);
}
.rail-contact {
  color: var(--mist-soft);
  text-align: right;
}

/* 主栏 */
.header-main { position: relative; }
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 13px var(--pad-x);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--ink-raise);
  border: 1px solid rgba(180, 207, 203, .35);
  align-content: center;
}
.brand-mark i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--mist-soft);
}
.brand-mark i:nth-child(1) { width: 62%; background: var(--signal); }
.brand-mark i:nth-child(2) { width: 100%; background: var(--mist); }
.brand-mark i:nth-child(3) { width: 78%; background: var(--mist-soft); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.brand-latin {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}
.brand-cn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--warm);
}
.brand-tagline {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(247, 242, 233, .6);
  padding-left: 16px;
  border-left: 1px solid rgba(116, 168, 166, .3);
  max-width: 210px;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 15px 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(116, 168, 166, .42);
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-toggle:hover { border-color: var(--mist); background: rgba(116, 168, 166, .12); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(242, 106, 46, .1);
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle-label { line-height: 1; }

/* 导航外壳 */
.nav-shell {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.command-bar { min-width: 0; }
.command-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}
.command-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px clamp(8px, .9vw, 13px);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(247, 242, 233, .76);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 120ms var(--ease), border-color 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease);
}
.pill-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--mist);
  transition: color 120ms var(--ease);
}
.command-pill:hover,
.command-pill:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mist);
  background: rgba(116, 168, 166, .13);
  color: var(--warm);
}
.command-pill[aria-current="page"] {
  background: var(--signal);
  border-color: var(--signal);
  color: #071B26;
}
.command-pill[aria-current="page"] .pill-index { color: rgba(7, 27, 38, .6); }
.command-pill[aria-current="page"]:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: #071B26;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 13px;
  border-left: 1px solid rgba(116, 168, 166, .26);
  flex-shrink: 0;
}
.path-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(116, 168, 166, .34);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mist-soft);
  white-space: nowrap;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background-color 140ms var(--ease);
}
.path-trigger::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist);
}
.path-trigger:hover { border-color: var(--mist); color: var(--warm); }
.path-trigger[aria-expanded="true"] {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(242, 106, 46, .1);
}
.path-trigger[aria-expanded="true"]::before { background: var(--signal); }

/* 路径提示条 */
.path-strip {
  background: var(--ink-night);
  border-top: 1px solid rgba(116, 168, 166, .26);
}
.path-strip[hidden] { display: none; }
.path-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mist-soft);
}
.path-label { color: var(--moss); }
.path-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.path-list li { display: inline-flex; align-items: center; gap: 8px; }
.path-list li + li::before {
  content: "›";
  color: var(--mist);
}
.path-list a {
  color: var(--warm);
  border-bottom: 1px solid transparent;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.path-list a:hover { color: var(--signal); border-bottom-color: var(--signal); }
.path-copy {
  margin-left: auto;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(116, 168, 166, .4);
  color: var(--mist-soft);
  font: inherit;
  letter-spacing: .07em;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.path-copy:hover { border-color: var(--signal); color: var(--signal); }
.path-feedback {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  min-width: 0;
}
.path-feedback:empty { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-night);
  color: rgba(247, 242, 233, .74);
  border-top: 1px solid rgba(116, 168, 166, .26);
}
.footer-band { padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 4vw, 54px); }
.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.9fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-lead { min-width: 0; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--warm);
}
.footer-wordmark span {
  color: var(--signal);
  margin-inline: 6px;
  font-weight: 400;
}
.footer-motto {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist-soft);
  max-width: 24ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 32px);
  min-width: 0;
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--moss);
  line-height: 1.6;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 140, 106, .34);
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 242, 233, .76);
  transition: color 140ms var(--ease), padding-left 140ms var(--ease);
}
.footer-links a:hover {
  color: var(--signal);
  padding-left: 4px;
}

.footer-meta { min-width: 0; }
.footer-contact {
  display: grid;
  gap: 11px;
}
.footer-contact div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.footer-contact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--moss);
  padding-top: 4px;
}
.footer-contact dd {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(247, 242, 233, .84);
  word-break: break-word;
}
.footer-update {
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(116, 168, 166, .26);
  background: rgba(116, 168, 166, .08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--mist-soft);
}

.footer-base {
  background: var(--ink-abyss);
  border-top: 1px solid rgba(116, 168, 166, .2);
  padding: 16px 0;
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist-soft);
}
.footer-copy { line-height: 1.7; }
.footer-icp {
  line-height: 1.7;
  color: rgba(180, 207, 203, .78);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}
.footer-legal a {
  color: var(--mist-soft);
  transition: color 140ms var(--ease);
}
.footer-legal a:hover { color: var(--signal); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
  .command-pill { font-size: 13px; }
  .header-actions { padding-left: 10px; }
  .btn { padding: 10px 16px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  html { scroll-padding-top: 96px; }

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

  .nav-shell {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--pad-x) 22px;
    background: var(--ink-night);
    border-top: 1px solid rgba(116, 168, 166, .26);
    border-bottom: 1px solid rgba(116, 168, 166, .3);
    box-shadow: 0 24px 40px rgba(4, 18, 26, .55);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 95;
  }
  .nav-shell[data-open="true"] { display: flex; }

  .command-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .command-pill {
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    border-color: rgba(116, 168, 166, .16);
  }
  .command-pill:hover,
  .command-pill:focus-visible { transform: none; }
  .command-pill[aria-current="page"] { border-radius: var(--radius-sm); }
  .pill-index { font-size: 11px; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(116, 168, 166, .24);
  }
  .header-actions .btn,
  .path-trigger {
    width: 100%;
    justify-content: center;
  }
  .path-trigger { padding: 12px 14px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }
  .footer-lead { grid-column: 1 / -1; }
  .footer-meta { grid-column: 1 / -1; }
  .footer-motto { max-width: 40ch; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .rail-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10.5px;
  }
  .rail-contact { text-align: left; }
  .header-inner { padding: 11px var(--pad-x); gap: 10px; }
  .brand-mark { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
  .brand-cn { font-size: 17px; }
  .brand-latin { font-size: 9.5px; }

  .path-inner { gap: 8px 10px; }
  .path-copy { margin-left: 0; }

  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { gap: 26px; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { margin-left: 0; }

  .media-frame--wide { --frame-ratio: 16 / 10; }
}

@media (max-width: 420px) {
  .command-pill { font-size: 15px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* =========================================================
   可访问性降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress { transition: none !important; }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .skip-link { display: none !important; }
  body { background: #fff; color: #111; }
}
