/* ============================================================
   半岛赛场 · 共享样式 /assets/site.css
   深海墨蓝 · 冰层青 · 半岛沙金 · 信号橙
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --abyss: #06121f;
  --deep: #0b2239;
  --steel: #153a56;
  --ice: #8fe3e8;
  --frost: #e6f7f8;
  --sand: #c9a96a;
  --signal: #f26b3a;
  --paper: #f3fafb;
  --slate: #6b8494;
  --mist: #b9d8dc;

  --line: rgba(185, 216, 220, 0.16);
  --line-soft: rgba(185, 216, 220, 0.08);

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular",
    Menlo, Consolas, monospace;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pill: 999px;

  --bar-h: 58px;
  --rail-w: 0px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

@media (max-width: 560px) {
  :root {
    --bar-h: 52px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--abyss);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: var(--ice);
  text-underline-offset: 3px;
}

:where(a, button, [tabindex], input, summary):focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. 基础排版与页面底纹 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: var(--frost);
  background-color: transparent;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--abyss);
  background-image:
    radial-gradient(80% 55% at 92% -8%, rgba(143, 227, 232, 0.13), transparent 62%),
    radial-gradient(70% 48% at 4% 104%, rgba(21, 58, 86, 0.68), transparent 70%),
    linear-gradient(178deg, rgba(11, 34, 57, 0.55) 0%, rgba(6, 18, 31, 0) 46%);
  background-repeat: no-repeat;
}

body.is-nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.012em;
  color: var(--frost);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.2vw, 84px);
}

h2 {
  font-size: clamp(27px, 3.4vw, 46px);
}

h3 {
  font-size: clamp(20px, 2.1vw, 27px);
}

h4 {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ice);
}

p {
  line-height: 1.78;
}

p + p {
  margin-top: 0.85em;
}

strong {
  color: var(--ice);
  font-weight: 600;
}

::selection {
  background: rgba(143, 227, 232, 0.28);
  color: var(--frost);
}

/* ---------- 4. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 600;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--ice);
  color: #04121f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
}

/* 5.1 低矮半岛通道入口条 */
.passage-bar {
  position: relative;
  z-index: 320;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--bar-h);
  padding: 8px var(--gutter);
  background:
    linear-gradient(90deg, rgba(6, 18, 31, 0.97) 0%, rgba(11, 34, 57, 0.95) 58%, rgba(21, 58, 86, 0.94) 100%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}

body[data-scrolled="true"] .passage-bar {
  box-shadow: 0 16px 38px -30px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--frost);
  flex: 0 0 auto;
}

.brand-cn {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.brand-mono {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.passage-note {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.passage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 5.2 胶囊按钮 */
.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: linear-gradient(118deg, #8fe3e8 0%, #cdf4f7 62%, #e9fbfc 100%);
  color: #04121f;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(143, 227, 232, 0.5);
  box-shadow: 0 10px 26px -18px rgba(143, 227, 232, 0.95);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pill-cta::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(143, 227, 232, 0.9);
}

.pill-cta--block {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

/* 5.3 抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(185, 216, 220, 0.28);
  background: rgba(143, 227, 232, 0.07);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(143, 227, 232, 0.14);
  border-color: rgba(143, 227, 232, 0.5);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ice);
  transition: transform var(--dur) var(--ease), opacity 150ms linear;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

/* 5.4 轨道导航（移动端即抽屉） */
.rail-nav {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  z-index: 280;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px var(--gutter) 44px;
  overflow-y: auto;
  background:
    radial-gradient(120% 62% at 100% 0%, rgba(21, 58, 86, 0.92), transparent 64%),
    linear-gradient(180deg, #06121f 0%, #0a1e33 100%);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.rail-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rail-label {
  margin: 0 0 6px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.5;
}

.rail-cta {
  display: block;
  margin: 0 0 16px;
  padding: 0 2px;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-link {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  color: var(--frost);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.32;
  text-decoration: none;
  background: transparent;
  box-shadow: inset 3px 0 0 transparent;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.rail-link:hover {
  background: rgba(143, 227, 232, 0.08);
  color: var(--ice);
}

.rail-link[aria-current="page"] {
  background: rgba(143, 227, 232, 0.12);
  color: var(--ice);
  box-shadow: inset 3px 0 0 var(--sand);
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand);
  line-height: 1;
}

.rail-text {
  display: block;
}

.rail-foot {
  margin: auto 0 0;
  padding: 18px 14px 0;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 5.5 滚动进度微条（由 JS 注入） */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 460;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ice) 0%, #cdf4f7 55%, var(--sand) 100%);
  box-shadow: 0 0 14px rgba(143, 227, 232, 0.55);
  transition: width 90ms linear;
}

/* ---------- 6. 页面内容基础容器 ---------- */
main {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(38px, 5.6vw, 84px);
}

.section:first-child {
  padding-top: clamp(26px, 4vw, 56px);
}

.stack > * + * {
  margin-top: clamp(14px, 1.8vw, 24px);
}

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
}

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

@media (min-width: 900px) {
  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.text-body {
  max-width: 68ch;
}

/* ---------- 7. 面板 / 标签 / 数据带 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(168deg, rgba(11, 34, 57, 0.94) 0%, rgba(6, 18, 31, 0.96) 100%);
  box-shadow: 0 34px 70px -60px rgba(0, 0, 0, 0.95);
}

.panel--ice {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(143, 227, 232, 0.25), transparent 62%),
    linear-gradient(168deg, #f3fafb 0%, #e3f3f5 100%);
  border-color: rgba(21, 58, 86, 0.12);
  color: #0b2239;
}

.panel--ice h1,
.panel--ice h2,
.panel--ice h3,
.panel--ice h4 {
  color: #06121f;
}

.panel--ice strong {
  color: #153a56;
}

.panel--ice .note {
  color: #4b6474;
  border-left-color: rgba(201, 169, 106, 0.8);
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.5;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--sand);
}

.data-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 34px);
  padding: clamp(15px, 2vw, 22px) clamp(16px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(92deg, rgba(21, 58, 86, 0.92) 0%, rgba(11, 34, 57, 0.62) 100%);
}

.data-band > * {
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(143, 227, 232, 0.34);
  background: rgba(143, 227, 232, 0.08);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}

.chip--sand {
  border-color: rgba(201, 169, 106, 0.5);
  background: rgba(201, 169, 106, 0.1);
  color: var(--sand);
}

.chip--signal {
  border-color: rgba(242, 107, 58, 0.55);
  background: rgba(242, 107, 58, 0.1);
  color: #ff8a5f;
}

.note {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 169, 106, 0.55);
  font-size: 13px;
  line-height: 1.72;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.divider {
  height: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

.btn--primary {
  background: linear-gradient(118deg, #8fe3e8 0%, #d3f6f8 100%);
  color: #04121f;
  box-shadow: 0 14px 30px -20px rgba(143, 227, 232, 0.95);
}

.btn--ghost {
  background: transparent;
  color: var(--ice);
  border-color: rgba(143, 227, 232, 0.42);
}

.btn--ghost:hover {
  background: rgba(143, 227, 232, 0.1);
  border-color: rgba(143, 227, 232, 0.75);
}

.btn--sand {
  background: linear-gradient(118deg, #c9a96a 0%, #e3cb99 100%);
  color: #1a1608;
  box-shadow: 0 14px 30px -22px rgba(201, 169, 106, 0.95);
}

.panel--ice .btn--ghost {
  color: #153a56;
  border-color: rgba(21, 58, 86, 0.35);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.4vw, 28px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(185, 216, 220, 0.45);
}

.breadcrumb a {
  color: rgba(230, 247, 248, 0.72);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--ice);
}

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

/* ---------- 10. 图片容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(143, 227, 232, 0.2), transparent 58%),
    linear-gradient(150deg, #153a56 0%, #0b2239 58%, #06121f 100%);
  aspect-ratio: 16 / 9;
  margin: 0;
}

.figure-frame.is-wide {
  aspect-ratio: 21 / 9;
}

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

.figure-frame img,
.figure-frame picture,
.figure-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(185, 216, 220, 0.07) 0 1px,
      transparent 1px 88px
    ),
    linear-gradient(180deg, transparent 55%, rgba(6, 18, 31, 0.55) 100%);
  mix-blend-mode: screen;
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(38px, 5.6vw, 72px) var(--gutter) 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 6% 0%, rgba(21, 58, 86, 0.78), transparent 62%),
    linear-gradient(180deg, #08182a 0%, #06121f 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--ice), rgba(201, 169, 106, 0.85), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 46px);
  max-width: 1240px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.45fr 0.85fr 0.8fr 1.35fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand-cn {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  color: var(--ice);
}

.footer-brand-mono {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-tag {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(230, 247, 248, 0.7);
}

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.5;
}

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

.footer-list a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(230, 247, 248, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--ice);
  border-bottom-color: rgba(143, 227, 232, 0.5);
}

.footer-list a[aria-current="page"] {
  color: var(--ice);
  border-bottom-color: rgba(201, 169, 106, 0.7);
}

.footer-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(230, 247, 248, 0.82);
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--slate);
  padding-top: 3px;
  text-transform: uppercase;
}

.footer-val {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 40ch;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1240px;
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

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

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(185, 216, 220, 0.28);
  background: rgba(143, 227, 232, 0.06);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.to-top::after {
  content: "\2191";
  font-size: 12px;
  line-height: 1;
}

.to-top:hover {
  color: var(--ice);
  border-color: rgba(143, 227, 232, 0.6);
  background: rgba(143, 227, 232, 0.14);
}

/* ---------- 12. 桌面端侧边轨道 ---------- */
@media (min-width: 1024px) {
  :root {
    --rail-w: 188px;
  }

  .rail-nav {
    top: var(--bar-h);
    right: auto;
    bottom: auto;
    width: var(--rail-w);
    height: calc(100vh - var(--bar-h));
    padding: 22px 14px 26px;
    gap: 4px;
    border-top: 0;
    border-right: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(11, 34, 57, 0.96) 0%, rgba(6, 18, 31, 0.98) 100%);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .rail-nav[data-open="true"] {
    transform: none;
  }

  .rail-label {
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .rail-cta {
    display: none;
  }

  .rail-link {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
  }

  .rail-link:hover {
    transform: translateX(2px);
  }

  .rail-foot {
    padding: 14px 10px 0;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .passage-bar {
    padding-left: calc(var(--rail-w) + var(--gutter));
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  :root {
    --rail-w: 216px;
  }

  .rail-link {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 12px;
    font-size: 14.5px;
  }
}

/* ---------- 13. 窄屏收束 ---------- */
@media (max-width: 1023px) {
  .passage-note {
    display: none;
  }

  .brand-mono {
    display: none;
  }

  .brand-cn {
    font-size: 17px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 520px) {
  .pill-cta {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .passage-bar {
    gap: 8px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

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

  .footer-base {
    justify-content: flex-start;
  }
}

/* ---------- 14. 打印 ---------- */
@media print {
  body::before,
  .site-header,
  .site-footer .to-top,
  .scroll-meter {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #0b2239;
  }

  .panel,
  .panel--ice {
    border: 1px solid #b9d8dc;
    box-shadow: none;
  }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .rail-nav {
    transform: none;
  }

  .scroll-meter {
    transition: none;
  }
}
