/* =========================================================
   WG 威哥 · 共享站点样式 /assets/site.css
   墨蓝仪表盘 + 堆叠面板 + 侧轨导航
   ========================================================= */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0B1424;
  --panel-blue: #111E33;
  --lift-blue: #16263D;
  --cream: #F4EFE4;
  --cream-2: #E3D9C4;
  --orange: #FF6B1A;
  --orange-soft: #FFA36B;
  --cyan: #4FD8D0;
  --cyan-deep: #1E8E8A;
  --red: #D2452B;
  --mist: #9FB0C9;
  --warm: #F7F3EA;
  --brown: #1A1410;

  /* 线条与玻璃 */
  --line-cyan: rgba(79, 216, 208, 0.22);
  --line-soft: rgba(244, 239, 228, 0.12);
  --glass-bg: rgba(17, 30, 51, 0.86);
  --glass-line: rgba(244, 239, 228, 0.14);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 度量 */
  --rail-w: 72px;
  --bar-h: 56px;
  --radius: 4px;
  --shell: min(1180px, 100% - 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 220ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(159, 176, 201, 0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(159, 176, 201, 0.045) 0 1px, transparent 1px 96px);
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--warm);
}

h1 { font-size: clamp(40px, 7.4vw, 132px); line-height: 0.92; }
h2 { font-size: clamp(28px, 4.2vw, 56px); line-height: 0.96; }
h3 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.18; }
h4 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; }

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

::selection { background: var(--orange); color: #180B02; }

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

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

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.container {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding: clamp(48px, 7vw, 104px) 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 216, 208, 0.35);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

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

.breadcrumb__sep { color: var(--cyan-deep); }

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

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

.eyebrow__num {
  padding: 2px 6px;
  background: rgba(79, 216, 208, 0.12);
  border: 1px solid rgba(79, 216, 208, 0.32);
  border-radius: 2px;
  color: var(--cyan);
}

.note-rot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: linear-gradient(90deg, var(--cyan-deep), rgba(30, 142, 138, 0.1) 58%, transparent);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

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

.btn--solid {
  background: var(--orange);
  color: #160A02;
  border-color: var(--orange);
}
.btn--solid:hover { background: var(--orange-soft); border-color: var(--orange-soft); color: #160A02; }

.btn--ghost {
  background: transparent;
  color: var(--warm);
  border-color: rgba(244, 239, 228, 0.28);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--cyan {
  background: var(--cyan);
  color: #04211F;
  border-color: var(--cyan);
}
.btn--cyan:hover { background: #7DE7E0; border-color: #7DE7E0; }

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

/* ---------- 6. 品牌字标 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: #170A02;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.04em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.35), 0 8px 20px rgba(255, 107, 26, 0.22);
  transition: background var(--t) var(--ease);
}

.brand:hover .brand__mark { background: var(--orange-soft); }

.brand__cn {
  display: flex;
  align-items: center;
  height: 34px;
  writing-mode: vertical-rl;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--mist);
}

/* ---------- 7. 头部 / 状态条 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04211F;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transform: translateY(-180%);
  transition: transform var(--t) var(--ease);
}

.skip-link:focus-visible { transform: none; }

.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(12px, 2vw, 24px);
  background: rgba(11, 20, 36, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-cyan);
}

.status-bar__mono {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.status-bar__tag { color: var(--cyan); }
.status-bar__sep { color: var(--cyan-deep); }
.status-bar__ver { color: var(--warm); font-weight: 700; }

.status-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
  animation: wg-pulse 2.4s var(--ease) infinite;
}

@keyframes wg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.status-bar__note { color: var(--mist); }

.status-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- 8. 侧轨导航 ---------- */
.rail {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  background: rgba(17, 30, 51, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line-cyan);
}

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.rail__item { list-style: none; }

.rail__link {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  color: var(--mist);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease),
    border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 16px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateY(-50%) scaleY(0);
  transform-origin: 50% 50%;
  transition: transform var(--t) var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--warm);
  background: var(--lift-blue);
  border-color: rgba(79, 216, 208, 0.3);
  transform: translateX(2px);
}

.rail__link[aria-current="page"] {
  color: var(--warm);
  background: rgba(255, 107, 26, 0.1);
  border-color: rgba(255, 107, 26, 0.4);
  transform: translateX(4px);
}

.rail__link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }

.rail__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.rail__link[aria-current="page"] .rail__num { color: var(--orange); }

.rail__label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--warm);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(79, 216, 208, 0.28);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
}

.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.rail__util {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  border: 1px solid rgba(159, 176, 201, 0.24);
  border-radius: 3px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.rail__util:hover,
.rail__util:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(79, 216, 208, 0.08);
}

/* ---------- 9. 移动导航按钮 ---------- */
.nav-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--warm);
  background: rgba(17, 30, 51, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-cyan);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__text { line-height: 1; }

/* ---------- 10. 阅读进度 ---------- */
.progress {
  position: fixed;
  top: calc(var(--bar-h) - 3px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 118;
  background: rgba(79, 216, 208, 0.14);
  pointer-events: none;
}

.progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft) 70%, rgba(255, 163, 107, 0.3));
  transition: transform 90ms linear;
}

/* ---------- 11. 面板 / 玻璃 / 纸面 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3.4vw, 48px);
  background: var(--panel-blue);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.55;
  pointer-events: none;
}

.panel::before {
  top: 0; left: 0;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.panel::after {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

.panel--paper {
  background: var(--cream);
  color: var(--brown);
  border-color: var(--cream-2);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper strong { color: var(--brown); }

.panel--paper .prose { color: #3F342A; }
.panel--paper .eyebrow { color: var(--red); }
.panel--paper a { color: #8C2A17; border-bottom-color: rgba(140, 42, 23, 0.4); }

.glass {
  background: rgba(17, 30, 51, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
}

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

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

/* ---------- 13. 标签与条带 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(79, 216, 208, 0.1);
  border: 1px solid rgba(79, 216, 208, 0.32);
  border-radius: 2px;
}

.tag--orange {
  color: var(--orange-soft);
  background: rgba(255, 107, 26, 0.1);
  border-color: rgba(255, 107, 26, 0.34);
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-deep) transparent;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar { height: 6px; }
.chip-row::-webkit-scrollbar-track { background: rgba(159, 176, 201, 0.12); }
.chip-row::-webkit-scrollbar-thumb { background: var(--cyan-deep); border-radius: 3px; }

/* ---------- 14. 正文块 ---------- */
.prose {
  color: var(--mist);
  font-size: 17px;
  line-height: 1.8;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--warm);
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 216, 208, 0.5);
  transition: color var(--t) var(--ease);
}

.prose a:hover { color: var(--warm); }

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  margin: 1em 0;
}

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

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

.prose ol { counter-reset: wg-ol; }
.prose ol > li { position: relative; padding-left: 28px; }
.prose ol > li::before {
  counter-increment: wg-ol;
  content: counter(wg-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

/* ---------- 15. 数据块 ---------- */
.stat { display: grid; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.02em;
  color: var(--warm);
  line-height: 1.1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- 16. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(142deg, var(--lift-blue), var(--panel-blue) 58%, #0D182A 100%);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
}

.img-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(79, 216, 208, 0.07) 0 1px, transparent 1px 72px);
  opacity: 0.7;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tilt { transform: rotate(-1.4deg); }

.img-frame__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--warm);
  background: linear-gradient(0deg, rgba(11, 20, 36, 0.94), rgba(11, 20, 36, 0));
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 8vw, 96px);
  padding: clamp(36px, 5vw, 64px) 0 0;
  background: linear-gradient(180deg, rgba(17, 30, 51, 0.42), var(--ink) 46%);
  border-top: 1px solid var(--line-cyan);
}

.footer__grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  align-items: start;
}

.footer__col {
  padding: 0 clamp(14px, 2vw, 28px);
  border-left: 1px solid rgba(79, 216, 208, 0.16);
}

.footer__col:first-child { border-left: 0; padding-left: 0; }
.footer__col:last-child { padding-right: 0; }

.footer__tagline {
  margin-top: 16px;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

.footer__stamp {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-deep);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan-deep);
}

.footer__list { display: grid; gap: 6px; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.footer__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--cyan-deep);
  transform: rotate(45deg);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--warm);
  transform: translateX(3px);
}

.footer__link:hover::before,
.footer__link:focus-visible::before {
  background: var(--orange);
  border-color: var(--orange);
}

.footer__contact { display: grid; gap: 4px; }

.footer__contact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-deep);
}

.footer__contact dd {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--warm);
  word-break: break-word;
}

.footer__contact dt:first-child + dd { margin-top: 0; }

.footer__legal {
  width: var(--shell);
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.footer__legal-line { max-width: 46em; }

/* ---------- 18. 显现 / 复制 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

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

[data-copy] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(79, 216, 208, 0.08);
  border: 1px dashed rgba(79, 216, 208, 0.42);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

[data-copy]:hover,
[data-copy]:focus-visible {
  background: rgba(79, 216, 208, 0.18);
  border-color: var(--cyan);
}

[data-copy]::after {
  content: attr(data-copied);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 4px 8px;
  white-space: nowrap;
  font-size: 11px;
  color: #04211F;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

[data-copy][data-copied]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 19. 锚点偏移 ---------- */
#main-content { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* ---------- 20. 响应式 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023px) {
  :root { --shell: min(1180px, 100% - 48px); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .footer__col:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__col:nth-child(1),
  .footer__col:nth-child(2) { border-bottom: 1px solid var(--line-soft); padding-bottom: 28px; }
}

@media (max-width: 899px) {
  :root { --shell: min(1180px, 100% - 32px); }

  .status-bar__note { display: none; }

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

  .rail {
    top: auto;
    bottom: 78px;
    left: auto;
    right: 12px;
    width: min(304px, calc(100vw - 24px));
    max-height: calc(100vh - 150px);
    padding: 12px;
    align-items: stretch;
    background: rgba(11, 20, 36, 0.97);
    border: 1px solid var(--line-cyan);
    border-radius: 6px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t) var(--ease);
  }

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

  .rail__list { align-items: stretch; gap: 2px; }

  .rail__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 0 12px 0 18px;
    font-size: 13px;
  }

  .rail__link::before {
    left: 4px;
    height: 16px;
  }

  .rail__link:hover,
  .rail__link:focus-visible,
  .rail__link[aria-current="page"] { transform: none; }

  .rail__label {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: inherit;
  }

  .rail__foot {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

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

  .footer__legal { justify-content: flex-start; }
}

@media (max-width: 719px) {
  body { font-size: 16px; }

  .status-bar { gap: 10px; }

  .status-bar__tag,
  .status-bar__sep { display: none; }

  .status-bar__mono { font-size: 11px; letter-spacing: 0.02em; }

  .btn--sm { padding: 0 12px; font-size: 12px; }

  .footer__grid { grid-template-columns: 1fr; gap: 0; }

  .footer__col {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .footer__col:first-child { border-top: 0; padding-top: 0; }

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

  .breadcrumb { font-size: 11px; }
}

@media (max-width: 419px) {
  .status-bar__actions .btn--ghost { display: none; }
  .brand__cn { display: none; }
}

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

  .status-bar__dot { animation: none; }

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

  .progress__fill { transition: none; }
}
