/* ==========================================================================
   ET9 登录官方版 · 共享样式表 /assets/site.css
   堆叠面板 + 精密网格 + 珠宝色分区 + 双轨导航
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. TOKENS ---------- */
:root {
  --c-void: #050B1F;
  --c-panel: #0C1638;
  --c-indigo: #221B4A;
  --c-teal: #0B3B3C;
  --c-wine: #4A1230;
  --c-violet: #6C3BFF;
  --c-violet-soft: #8B63FF;
  --c-cyan: #2BE0D0;
  --c-orange: #FF8A3D;
  --c-paper: #F4F1EA;
  --c-ink: #101528;
  --c-white: #E8ECFA;
  --c-mist: #8C93AE;

  --line: rgba(140, 147, 174, .24);
  --line-strong: rgba(140, 147, 174, .46);
  --grid-line: rgba(140, 147, 174, .07);

  --font-display: "Archivo Expanded", "Space Grotesk", "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, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --bar-h: 72px;
  --rail-w: 0px;
  --gutter: 20px;
  --maxw: 1280px;
  --ease: cubic-bezier(.22, .7, .24, 1);
  --z-header: 80;
}

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

@media (max-width: 719px) {
  :root { --bar-h: 60px; --gutter: 18px; }
}

/* ---------- 3. BASE ---------- */
body {
  background: var(--c-void);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 720px) {
  body { font-size: 17px; }
}

main { display: block; }

::selection { background: var(--c-violet); color: #fff; }

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

/* ---------- 4. 排版基元 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.015em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  max-width: 62ch;
  color: var(--c-white);
}

.muted { color: var(--c-mist); }
.mono { font-family: var(--font-mono); }

.numeral {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.prose {
  max-width: 72ch;
  color: var(--c-ink);
  font-size: 16.5px;
  line-height: 1.85;
}
.prose p + p { margin-top: 1em; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 1.6em 0 .6em;
}
.prose ul, .prose ol { margin: 1em 0 1em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--c-violet); border-bottom: 1px solid currentColor; }
.prose--dark { color: var(--c-white); }

/* ---------- 5. 布局与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.col-3, .col-6, .col-9, .col-12 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .col-3 { grid-column: span 3; }
  .col-6 { grid-column: span 6; }
  .col-9 { grid-column: span 9; }
  .col-12 { grid-column: 1 / -1; }
}

.page-head { padding-top: clamp(28px, 5vw, 64px); }

.bleed-top { margin-top: calc(-1 * var(--bar-h)); }

.grid-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px calc(100% / 12));
  opacity: .85;
}

.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------- 6. 画板式章节 ---------- */
.section {
  position: relative;
  padding: clamp(52px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }
.section--panel { background: var(--c-panel); }
.section--indigo { background: var(--c-indigo); }
.section--teal { background: var(--c-teal); }
.section--wine { background: var(--c-wine); }

.section--paper {
  background: var(--c-paper);
  color: var(--c-ink);
  --line: rgba(16, 21, 40, .16);
  --line-strong: rgba(16, 21, 40, .34);
}
.section--paper .kicker,
.section--paper .section-index,
.section--paper .muted { color: #5A6280; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(20px, 3vw, 40px);
  }
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .18em;
  color: var(--c-mist);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

/* ---------- 7. 面板 / 数据带 / 提示 ---------- */
.panel {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.panel--paper { background: var(--c-paper); color: var(--c-ink); }
.panel--indigo { background: var(--c-indigo); }
.panel--teal { background: var(--c-teal); }
.panel--wine { background: var(--c-wine); }

.panel:hover { border-color: var(--c-cyan); background-color: rgba(43, 224, 208, .04); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--c-mist);
}

.panel-body { padding: clamp(18px, 3vw, 30px) 20px; }

.data-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.data-cell { background: var(--c-panel); padding: clamp(18px, 3vw, 30px); }

.data-num {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}

.data-key {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-mist);
}

.note {
  border-left: 2px solid var(--c-orange);
  background: rgba(255, 138, 61, .08);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--c-white);
}

.aside-note {
  border: 1px solid var(--line);
  background: rgba(12, 22, 56, .6);
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-mist);
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--c-mist);
}
.tag--violet { border-color: rgba(108, 59, 255, .72); color: #C9B7FF; }
.tag--cyan { border-color: rgba(43, 224, 208, .72); color: var(--c-cyan); }
.tag--orange { border-color: rgba(255, 138, 61, .72); color: var(--c-orange); }

/* ---------- 8. 表格 / 图片容器 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--c-panel);
}

.data-table { width: 100%; font-size: 14px; }
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--c-mist);
}
.data-table tbody tr:hover { background: rgba(43, 224, 208, .05); }

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame img,
.media-frame svg { width: 100%; height: 100%; object-fit: cover; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--c-mist);
}

/* ---------- 9. 面包屑 / 按钮 ---------- */
.breadcrumbs {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--c-mist);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { display: flex; align-items: center; gap: 8px; }
.crumb + .crumb::before { content: "/"; color: var(--line-strong); }
.crumb a:hover { color: var(--c-cyan); }
.crumb[aria-current="page"] { color: var(--c-white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.35em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn--primary {
  background: var(--c-violet);
  border-color: var(--c-violet);
  color: #fff;
}
.btn--primary:hover { background: var(--c-violet-soft); border-color: var(--c-violet-soft); }
.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(43, 224, 208, .06);
}

/* ---------- 10. 顶栏（透明叠加 → 实色） ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: var(--z-header);
}

.header-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: none;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(12, 22, 56, .95), rgba(5, 11, 31, .95));
  border-right: 1px solid var(--line);
  z-index: calc(var(--z-header) + 1);
}

@media (min-width: 1280px) {
  .header-rail { display: flex; }
}

.rail-nav { width: 100%; }

.rail-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0;
  overflow-y: auto;
}

.rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border: 1px solid transparent;
  color: var(--c-mist);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.rail-link:hover { color: var(--c-cyan); border-color: var(--line); background: rgba(43, 224, 208, .05); }
.rail-link[aria-current="page"] {
  color: var(--c-white);
  border-color: rgba(108, 59, 255, .65);
  background: rgba(108, 59, 255, .14);
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .1em;
  opacity: .8;
}

.rail-text {
  writing-mode: vertical-rl;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2em;
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: var(--bar-h);
  background: linear-gradient(180deg, rgba(5, 11, 31, .74), rgba(5, 11, 31, 0));
  border-bottom: 1px solid transparent;
  transition: background .28s var(--ease), border-color .28s var(--ease), backdrop-filter .28s var(--ease);
}

.site-header.is-solid .header-bar {
  background: rgba(12, 22, 56, .94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--c-white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(43, 224, 208, .06);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  transition: border-color .2s var(--ease);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand:hover .brand-mark { border-color: var(--c-cyan); }
.brand--footer .brand-name { font-size: 17px; }

.site-nav { flex: 1 1 auto; display: none; }

.nav-list { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nav-item { flex: 0 0 auto; }
.nav-item--cta { display: none; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--c-mist);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--c-white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--c-violet); }

.header-utility {
  display: none;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

@media (min-width: 1180px) {
  .header-utility { display: flex; }
}

.utility-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.utility-key {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--c-mist);
}

.utility-val {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}

.utility-item:nth-child(2) .utility-val { color: var(--c-white); }

.header-cta { padding: .6em 1.1em; font-size: 13px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  color: var(--c-white);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease), bottom .24s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
}

.site-header[data-open] .nav-toggle-icon { background: none; }
.site-header[data-open] .nav-toggle-icon::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.site-header[data-open] .nav-toggle-icon::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
}

@media (max-width: 959px) {
  .site-nav {
    display: block;
    position: fixed;
    top: var(--bar-h);
    left: var(--rail-w);
    right: 0;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 8px 0 22px;
    background: var(--c-panel);
    border-bottom: 1px solid var(--line-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }

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

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; counter-reset: nav; }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px var(--gutter);
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-link::before {
    counter-increment: nav;
    content: counter(nav, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--c-violet);
  }
  .nav-link::after { display: none; }

  .nav-item--cta { display: block; padding: 18px var(--gutter) 0; }
  .nav-item--cta .btn { width: 100%; }
}

/* ---------- 11. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  top: var(--bar-h);
  height: 2px;
  z-index: calc(var(--z-header) + 2);
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
  transition: width .12s linear;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  background: var(--c-panel);
  border-top: 1px solid var(--line-strong);
  color: var(--c-white);
  overflow: hidden;
}

.footer-band {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(34, 27, 74, .92), rgba(12, 22, 56, .94) 52%, rgba(11, 59, 60, .92));
}

.footer-band-inner { padding-block: clamp(34px, 5vw, 64px); }

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2em;
  color: var(--c-cyan);
}

.footer-headline {
  margin-top: 14px;
  max-width: 26ch;
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 4vw, 40px);
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .footer-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-cell { background: rgba(5, 11, 31, .72); padding: 18px 20px; }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}

.stat-key {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
  color: var(--c-mist);
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-block: clamp(34px, 5vw, 58px);
}

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

@media (min-width: 1080px) {
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 28px; }
}

.footer-brand { max-width: 36ch; }

.footer-note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--c-mist);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--c-white);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  color: var(--c-mist);
  transition: color .2s var(--ease);
}
.footer-link:hover { color: var(--c-cyan); }

.footer-links--plain { gap: 12px; }

.footer-line { display: flex; gap: 10px; align-items: flex-start; }

.footer-line-key {
  flex: 0 0 3.6em;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-mist);
}

.footer-line-val {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-white);
}

.footer-legal {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--c-void);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 20px;
}

.legal-line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--c-mist);
}

.legal-line--muted { color: rgba(140, 147, 174, .72); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 22, 56, .92);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s, border-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

/* ---------- 13. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. 可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .scroll-progress > span { transition: none; }
}
