/* ============================================================
   OG 视讯娱乐 · 共享站点样式 /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, figure, blockquote, dl, dd { margin: 0; }

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection {
  background: rgba(47, 243, 214, 0.28);
  color: #F2F7FF;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #05070D;
  --ink-800: #0A1424;
  --ink-700: #12203A;
  --jade: #0E3B3A;
  --indigo: #2A1B4D;
  --wine: #3E1526;
  --cyan: #2FF3D6;
  --orange: #FF7A2F;
  --white: #F2F7FF;
  --text: #C6D3E8;
  --muted: #8FA1BF;
  --line: #1E3050;
  --line-soft: rgba(30, 48, 80, 0.62);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: 'Sora', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Sarasa Mono SC', 'Consolas', monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-raise: 0 26px 54px -32px rgba(47, 243, 214, 0.55);
  --header-z: 90;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100%;
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(47, 243, 214, 0.075), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(255, 122, 47, 0.055), transparent 66%),
    var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }

p { max-width: 42em; }

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

code, kbd, samp, time, .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

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

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

.stack > * + * { margin-top: clamp(20px, 3vw, 34px); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-block: clamp(28px, 5vw, 56px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

/* ---------- 5. 章节标签 / 编号 / 标签 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}
.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.index-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(18, 32, 58, 0.7);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--cyan { border-color: rgba(47, 243, 214, 0.45); color: var(--cyan); background: rgba(47, 243, 214, 0.08); }
.tag--orange { border-color: rgba(255, 122, 47, 0.5); color: var(--orange); background: rgba(255, 122, 47, 0.1); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, #FF9250, var(--orange));
  color: #0A0F18;
  box-shadow: 0 12px 30px -14px rgba(255, 122, 47, 0.9);
}
.btn--primary:hover { box-shadow: 0 18px 38px -14px rgba(255, 122, 47, 0.95); }

.btn--ghost {
  border-color: rgba(47, 243, 214, 0.45);
  background: rgba(47, 243, 214, 0.05);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(47, 243, 214, 0.13); border-color: var(--cyan); }

.btn--quiet {
  border-color: var(--line);
  background: rgba(18, 32, 58, 0.68);
  color: var(--text);
}
.btn--quiet:hover { border-color: rgba(47, 243, 214, 0.45); color: var(--white); }

/* ---------- 7. 卡片 / 色带 / 正文 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 58, 0.86), rgba(10, 20, 36, 0.92));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 243, 214, 0.55);
  box-shadow: var(--shadow-raise);
}

.band {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px);
  border-block: 1px solid var(--line-soft);
  isolation: isolate;
}
.band--jade { background: linear-gradient(180deg, rgba(14, 59, 58, 0.72), rgba(5, 7, 13, 0.25)); }
.band--indigo { background: linear-gradient(180deg, rgba(42, 27, 77, 0.72), rgba(5, 7, 13, 0.25)); }
.band--wine { background: linear-gradient(180deg, rgba(62, 21, 38, 0.72), rgba(5, 7, 13, 0.25)); }

.prose { max-width: 42em; }
.prose p { max-width: none; margin-top: 1.1em; color: var(--text); }
.prose > p:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.3em; line-height: 1.9; }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(47, 243, 214, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--cyan);
  background: rgba(47, 243, 214, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #31507F;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 9. 图片容器（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(42, 27, 77, 0.9), rgba(5, 7, 13, 0.96) 62%);
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 7, 13, 0.78));
  pointer-events: none;
  z-index: 1;
}
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.media-frame--wide .media-frame__img { aspect-ratio: 21 / 9; }
.media-frame--tall .media-frame__img { aspect-ratio: 4 / 5; }
.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.66);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.media-frame--placeholder {
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 243, 214, 0.12) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(47, 243, 214, 0.08) 0 1px, transparent 1px 32px),
    radial-gradient(120% 120% at 18% 0%, rgba(42, 27, 77, 0.9), rgba(5, 7, 13, 0.96) 62%);
}

/* ---------- 10. 显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--cyan);
  background: var(--ink-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- 12. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.84));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.site-header[data-stuck] {
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.99), rgba(5, 7, 13, 0.94));
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.95);
}

/* 上层品牌窄条 */
.topbar {
  max-height: 96px;
  overflow: hidden;
  opacity: 1;
  border-bottom: 1px solid rgba(30, 48, 80, 0.72);
  background:
    linear-gradient(90deg, rgba(14, 59, 58, 0.34), rgba(5, 7, 13, 0) 48%, rgba(42, 27, 77, 0.34)),
    rgba(5, 7, 13, 0.4);
  transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header[data-stuck] .topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  min-height: 44px;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 205deg,
    rgba(47, 243, 214, 0.95),
    rgba(47, 243, 214, 0) 42%,
    rgba(255, 122, 47, 0.95) 68%,
    rgba(255, 122, 47, 0) 96%);
  box-shadow: 0 0 20px rgba(47, 243, 214, 0.28);
  flex: 0 0 auto;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid rgba(47, 243, 214, 0.32);
}
.brand__mark-core {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.brand__text { display: grid; gap: 1px; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.brand__tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--cyan);
  line-height: 1.4;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(18, 32, 58, 0.7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.8;
}
.version-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.topbar__support {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(47, 243, 214, 0.42);
  background: rgba(47, 243, 214, 0.06);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.topbar__support:hover {
  background: rgba(47, 243, 214, 0.15);
  border-color: var(--cyan);
  color: var(--white);
}

/* 下层栏目轨 */
.navrail { position: relative; }

.navrail__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  transition: padding 0.35s var(--ease);
}
.site-header[data-stuck] .navrail__inner { padding-block: 6px; }

.navrail__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.navrail__label,
.navrail__group { display: none; }

.navrail__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.navrail__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.navrail__link:hover {
  color: var(--white);
  border-color: rgba(47, 243, 214, 0.45);
  background: rgba(47, 243, 214, 0.08);
  transform: translateY(-1px);
}
.navrail__link[aria-current="page"] {
  color: var(--white);
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(47, 243, 214, 0.2), rgba(47, 243, 214, 0.05));
  box-shadow: 0 8px 24px -14px rgba(47, 243, 214, 0.8);
}
.navrail__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.navrail__link[aria-current="page"] .navrail__index { color: var(--orange); }

.site-header[data-stuck] .navrail__link {
  padding-block: 6px;
  font-size: 13.5px;
}

.navrail__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.navrail__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 20px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, #FF9250, var(--orange));
  color: #0A0F18;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(255, 122, 47, 0.95);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.navrail__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(255, 122, 47, 1);
}

.navrail__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(18, 32, 58, 0.75);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.navrail__toggle:hover { border-color: rgba(47, 243, 214, 0.5); }

.navrail__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 17px;
  height: 12px;
  flex: 0 0 auto;
}
.navrail__toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header[data-open] .navrail__toggle-bars span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.site-header[data-open] .navrail__toggle-bars span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}
.navrail__toggle-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

/* 滚动进度光带 */
.scroll-meter {
  position: relative;
  height: 2px;
  background: rgba(30, 48, 80, 0.6);
  overflow: hidden;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), #7CE9FF 45%, var(--orange));
  transition: transform 0.12s linear;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.92), rgba(5, 7, 13, 1) 62%);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg,
    rgba(47, 243, 214, 0.4) 0 1px,
    transparent 1px 26px);
  opacity: 0.55;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.35fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 48px);
}

.footer__zone { min-width: 0; }

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.footer__brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: conic-gradient(from 205deg,
    var(--cyan),
    rgba(47, 243, 214, 0) 45%,
    var(--orange) 70%,
    rgba(255, 122, 47, 0) 96%);
  box-shadow: 0 0 16px rgba(47, 243, 214, 0.3);
}
.footer__slogan {
  margin: 14px 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  max-width: none;
}
.footer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(18, 32, 58, 0.62);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.footer__quick-link:hover {
  border-color: rgba(47, 243, 214, 0.5);
  background: rgba(47, 243, 214, 0.1);
  color: var(--cyan);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  line-height: 1.6;
}
.footer__title::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.footer__list {
  display: grid;
  gap: 9px;
}
.footer__list a {
  display: inline-block;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}
.footer__list a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer__contact-list {
  display: grid;
  gap: 12px;
}
.footer__contact-item { display: grid; gap: 2px; }
.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  line-height: 1.7;
}
.footer__contact-value {
  color: var(--white);
  font-size: 14.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.footer__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(47, 243, 214, 0.42);
  background: rgba(47, 243, 214, 0.07);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer__copy:hover { background: rgba(47, 243, 214, 0.16); border-color: var(--cyan); }
.footer__copy[data-copied="true"] {
  border-color: rgba(255, 122, 47, 0.6);
  background: rgba(255, 122, 47, 0.12);
  color: var(--orange);
}

.footer__note {
  margin-top: 14px;
  max-width: 32em;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer__legal-links {
  display: grid;
  gap: 9px;
}
.footer__legal-link {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.22s var(--ease);
}
.footer__legal-link:hover { color: var(--cyan); }

.footer__icp {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: none;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(30, 48, 80, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__copy-line,
.footer__version { max-width: none; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .navrail__link { padding-inline: 12px; font-size: 14px; }
  .navrail__list { gap: 6px; }
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .navrail__cta { display: none; }
  .navrail__toggle { display: inline-flex; }

  .navrail__inner { justify-content: space-between; }

  .navrail__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 16px var(--gutter) 22px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.99), rgba(5, 7, 13, 0.995));
    border-top: 1px solid rgba(30, 48, 80, 0.8);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 70px -40px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .site-header[data-open] .navrail__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navrail__label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--muted);
    max-width: none;
  }

  .navrail__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .navrail__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-color: rgba(30, 48, 80, 0.55);
    background: rgba(18, 32, 58, 0.4);
    font-size: 16px;
  }
  .navrail__link[aria-current="page"] { background: rgba(47, 243, 214, 0.14); }
  .site-header[data-stuck] .navrail__link { font-size: 16px; padding-block: 12px; }

  .navrail__group {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(30, 48, 80, 0.9);
  }
  .navrail__group-label {
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--muted);
    max-width: none;
  }
  .navrail__group-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
    margin-top: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 122, 47, 0.32);
    background: rgba(255, 122, 47, 0.08);
    color: var(--orange);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .navrail__group-link:hover {
    background: rgba(255, 122, 47, 0.18);
    border-color: var(--orange);
  }
}

@media (max-width: 700px) {
  .topbar__inner { min-height: 60px; padding-block: 8px; }
  .brand__tagline { font-size: 10px; letter-spacing: 0.24em; }
  .version-chip { display: none; }
  .topbar__support { font-size: 12.5px; padding-inline: 13px; }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .footer__copy { width: 100%; }
  .btn { width: 100%; }
}

/* ---------- 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;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .navrail__cta:hover,
  .navrail__link:hover,
  .footer__list a:hover { transform: none; }
}
