/* ============================================================
   365升级站 — 全站共享样式 /assets/site.css
   暗色控制舱 · 侧边轨道导航 · 切角面板 · 双强调色
   ============================================================ */

:root {
  --ink-900: #0A0D10;
  --ink-850: #0C1116;
  --ink-800: #11171C;
  --ink-750: #161F26;

  --cyan-400: #2DE2E6;
  --cyan-600: #0FA3A8;
  --orange-500: #FF7A1A;
  --orange-300: #FFB067;
  --mint-300: #7CF7D4;

  --silver-300: #B8C2CC;
  --silver-500: #6F7B86;
  --mist-50: #F5F8FA;
  --line: #24303A;
  --line-soft: rgba(184, 194, 204, 0.14);

  --rail-w: 92px;
  --bar-h: 64px;
  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 56px);
  --cut: 14px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 90% 4%, rgba(45, 226, 230, 0.10), transparent 44%),
    radial-gradient(circle at 4% 96%, rgba(255, 122, 26, 0.08), transparent 42%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--silver-300);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.42vw + 14px, 17px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 中文排版基础 ---------- */
h1, h2, h3, h4 {
  color: var(--mist-50);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw + 0.4rem, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 2.6vw + 0.7rem, 2.9rem); }
h3 { font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }
p { max-width: 66ch; }
strong, b { color: var(--mist-50); font-weight: 700; }
small { font-size: 0.8125rem; color: var(--silver-500); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.section { padding-block: clamp(48px, 6.5vw, 96px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.section-head > * { max-width: 42ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-400);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-600);
}
.prose a:hover { border-bottom-color: var(--cyan-400); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.15em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 0.9em; margin-bottom: 0.4em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--cyan-600);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.4em; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--orange-500);
  color: var(--mist-50);
}

/* ---------- 面板 / 标签 / 媒体容器 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 32px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.panel--flat { background: var(--ink-850); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--cyan-400);
  background: rgba(45, 226, 230, 0.08);
  border: 1px solid rgba(45, 226, 230, 0.3);
  border-radius: 2px;
}
.tag--warm {
  color: var(--orange-300);
  background: rgba(255, 122, 26, 0.10);
  border-color: rgba(255, 122, 26, 0.36);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #16202A 0%, #0C1116 62%, #101820 100%);
  border: 1px solid var(--line);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.10);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--skew {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background: rgba(10, 13, 16, 0.86);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan-400);
  z-index: 2;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--accent {
  background: var(--orange-500);
  color: #170A02;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn--accent:hover { background: var(--orange-300); }
.btn--accent:focus-visible { outline-offset: -6px; outline-color: var(--mist-50); }
.btn--ghost {
  background: transparent;
  color: var(--mist-50);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn--quiet {
  background: rgba(45, 226, 230, 0.08);
  color: var(--cyan-400);
  border-color: rgba(45, 226, 230, 0.34);
}
.btn--quiet:hover { background: rgba(45, 226, 230, 0.16); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--silver-500);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--silver-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb [aria-current="page"] { color: var(--orange-300); }

/* ============================================================
   头部：侧边轨道导航
   ============================================================ */
.site-header {
  position: relative;
  z-index: 80;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--cyan-400);
  color: #04181A;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: none; }

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
  background:
    linear-gradient(180deg, rgba(45, 226, 230, 0.08) 0%, rgba(45, 226, 230, 0) 24%),
    linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 100%);
  border-right: 1px solid var(--line);
}

/* 品牌 */
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(45, 226, 230, 0.09);
  border: 1px solid rgba(45, 226, 230, 0.45);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.rail__brand:hover .rail__mark {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: #04181A;
}
.rail__name {
  max-width: 72px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--mist-50);
}

/* 移动端菜单按钮（桌面隐藏） */
.rail__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 13px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--mist-50);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.rail__toggle:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.rail__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.rail__bars::before,
.rail__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: top 0.2s var(--ease), transform 0.2s var(--ease);
}
.rail__bars::before { top: 0; }
.rail__bars::after { top: 8px; }
.rail[data-open] .rail__bars::before { top: 4px; transform: rotate(45deg); }
.rail[data-open] .rail__bars::after { top: 4px; transform: rotate(-45deg); }

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail__nav::-webkit-scrollbar { display: none; }

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

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  text-decoration: none;
  color: var(--silver-500);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.rail__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--cyan-400);
  border-radius: 1px;
  transform: translateY(-50%);
  transition: height 0.2s var(--ease);
}
.rail__link:hover { color: var(--mist-50); }
.rail__link:hover::before { height: 26%; }
.rail__link[aria-current="page"] { color: var(--cyan-400); background: rgba(45, 226, 230, 0.06); }
.rail__link[aria-current="page"] .rail__num { color: var(--orange-500); opacity: 1; }
.rail__link[aria-current="page"]::before { height: 58%; }

/* 轨底行动点 */
.rail__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 12px 9px;
  min-height: 44px;
  background: var(--orange-500);
  color: #180A02;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color 0.18s var(--ease);
}
.rail__cta:hover { background: var(--orange-300); }
.rail__cta:focus-visible { outline-offset: -6px; outline-color: var(--ink-900); }

/* 轨底状态 */
.rail__meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 52px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rail__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-300);
  animation: rail-pulse 2.8s ease-out infinite;
}
@keyframes rail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 247, 212, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(124, 247, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 247, 212, 0); }
}
.rail__meta-text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--silver-500);
}

/* 滚动进度 */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(36, 48, 58, 0.85);
  overflow: hidden;
  pointer-events: none;
}
.rail__progress-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan-400) 0%, var(--orange-500) 100%);
  transition: height 0.12s linear;
}

/* 桌面端内容让位 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* 矮视口压缩轨道 */
@media (min-width: 1024px) and (max-height: 780px) {
  .rail { padding: 14px 0 12px; gap: 9px; }
  .rail__link { padding: 5px 0; }
  .rail__label { font-size: 11px; letter-spacing: 0.1em; }
  .rail__meta { display: none; }
}

/* ============================================================
   移动端：抽屉导航
   ============================================================ */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .rail {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    background: rgba(10, 13, 16, 0.95);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .rail__mark { width: 32px; height: 32px; font-size: 11px; }
  .rail__name { max-width: none; font-size: 13px; letter-spacing: 0.04em; }

  .rail__toggle { display: inline-flex; }

  .rail__cta {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 0 12px;
    min-height: 38px;
    font-size: 12px;
    letter-spacing: 0.06em;
    clip-path: none;
    border-radius: 2px;
    margin-left: auto;
  }

  .rail__meta,
  .rail__progress { display: none; }

  .rail__nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    flex: none;
    display: block;
    width: 100%;
    max-height: calc(100vh - var(--bar-h));
    padding: 0;
    overflow-y: auto;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s linear;
  }
  .rail[data-open] .rail__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rail__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 16px 20px;
  }
  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 6px;
    border-bottom: 1px solid var(--line);
  }
  .rail__link::before { display: none; }
  .rail__link[aria-current="page"] { background: rgba(45, 226, 230, 0.08); padding-left: 14px; }
  .rail__num { font-size: 11px; min-width: 22px; }
  .rail__label { writing-mode: horizontal-tb; text-orientation: mixed; font-size: 15px; letter-spacing: 0.08em; }
}

@media (max-width: 400px) {
  .rail__cta { display: none; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 128px);
  padding: clamp(40px, 5vw, 72px) 0 26px;
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 122, 26, 0.10), transparent 48%),
    linear-gradient(180deg, var(--ink-850) 0%, #080B0E 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400) 0%, rgba(45, 226, 230, 0) 44%, var(--orange-500) 100%);
  opacity: 0.85;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.4vw, 46px);
}
@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.25fr 0.75fr 1.15fr 1.2fr; }
}

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

.footer-brand {
  display: inline-block;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--mist-50);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-brand:hover { color: var(--cyan-400); }

.footer-tagline {
  margin-top: 12px;
  max-width: 24em;
  font-size: 14px;
  color: var(--silver-300);
}

.footer-icp {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver-500);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.footer-title::before {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  background: var(--orange-500);
  flex: none;
}

.footer-list { display: flex; flex-direction: column; gap: 1px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border: 1px solid var(--silver-500);
  transform: rotate(45deg);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-link:hover { color: var(--cyan-400); border-bottom-color: rgba(45, 226, 230, 0.36); }
.footer-link:hover::before { background: var(--cyan-400); border-color: var(--cyan-400); }

.footer-contact { display: flex; flex-direction: column; gap: 13px; }
.footer-contact li { display: flex; flex-direction: column; gap: 2px; }
.footer-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver-500);
}
.footer-value {
  font-size: 14px;
  line-height: 1.65;
  color: var(--silver-300);
  overflow-wrap: anywhere;
}
.footer-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--mist-50);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  margin-top: clamp(30px, 3.6vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver-500);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a {
  font-size: 13px;
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-legal a:hover { color: var(--cyan-400); border-bottom-color: var(--cyan-600); }

/* ============================================================
   显现动效
   ============================================================ */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   减少动效
   ============================================================ */
@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;
  }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .rail__progress-fill { transition: none; }
}
