/* =========================================================
   银河指南 · 共享样式表  /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, p, ul, ol, figure, blockquote { margin: 0; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #0B1026;
  --ink-800: #131A38;
  --line-700: #3A4470;
  --silver: #C9CFDD;
  --star: #F2F4FA;
  --nebula: #7B5CFF;
  --cyan: #35D6C8;
  --gold: #E8B14C;
  --coral: #FF8A8A;
  --glass: rgba(255, 255, 255, 0.12);

  --line-soft: rgba(58, 68, 112, 0.55);
  --text-dim: rgba(201, 207, 221, 0.68);
  --text-faint: rgba(201, 207, 221, 0.46);

  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1.6px 1.6px at 11% 9%, rgba(242, 244, 250, 0.55), transparent 62%),
    radial-gradient(1.4px 1.4px at 79% 15%, rgba(53, 214, 200, 0.50), transparent 62%),
    radial-gradient(1px 1px at 44% 31%, rgba(242, 244, 250, 0.34), transparent 62%),
    radial-gradient(1px 1px at 68% 62%, rgba(242, 244, 250, 0.26), transparent 62%),
    radial-gradient(1100px 560px at 52% -12%, rgba(123, 92, 255, 0.16), transparent 72%);
  background-repeat: no-repeat;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

a {
  color: var(--silver);
  text-underline-offset: 4px;
  text-decoration-color: rgba(123, 92, 255, 0.75);
}

a:hover { color: var(--star); }

::selection { background: rgba(123, 92, 255, 0.45); color: var(--star); }

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

/* ---------- 4. 通用文本工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.muted { color: var(--text-dim); }

.keyword {
  background: rgba(123, 92, 255, 0.16);
  color: var(--star);
  padding: 0 0.28em;
  border-radius: 2px;
}

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

.trail {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(58, 68, 112, 0.9) 12%,
    rgba(53, 214, 200, 0.5) 50%,
    rgba(58, 68, 112, 0.9) 88%,
    transparent);
}

/* ---------- 5. 布局容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.section--band {
  background: var(--ink-800);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 55fr 45fr; }

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

/* 非对称三栏：编号轨道 / 内容主体 / 固定通道 */
.layout-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.rail { position: relative; }

.rail-track { position: relative; }

.rail-track::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.4em; bottom: 0.4em;
  width: 1px;
  background: var(--line-soft);
}

.rail-node {
  position: relative;
  display: block;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.rail-node::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-700);
  background: var(--ink-900);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.rail-node:hover { color: var(--star); }

.rail-node[aria-current="true"] { color: var(--cyan); }

.rail-node[aria-current="true"]::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 214, 200, 0.18);
}

@media (min-width: 1100px) {
  .layout-rail {
    grid-template-columns: 78px minmax(0, 1fr) 288px;
    align-items: start;
  }
  .rail { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* ---------- 6. 按钮 · 徽标 · 筛选 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: #1A1405;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #F2C466;
  border-color: #F2C466;
  color: #1A1405;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-700);
  color: var(--silver);
}

.btn-ghost:hover {
  background: rgba(123, 92, 255, 0.14);
  border-color: var(--nebula);
  color: var(--star);
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-700);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.badge--gold { border-color: rgba(232, 177, 76, 0.6); color: var(--gold); }
.badge--cyan { border-color: rgba(53, 214, 200, 0.5); color: var(--cyan); }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(232, 177, 76, 0.5);
  border-radius: 999px;
  background: rgba(232, 177, 76, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 177, 76, 0); }
  50% { box-shadow: 0 0 0 6px rgba(232, 177, 76, 0.08); }
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-700);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip:hover { border-color: var(--nebula); color: var(--star); }

.chip[aria-pressed="true"] {
  border-color: var(--cyan);
  background: rgba(53, 214, 200, 0.1);
  color: var(--cyan);
}

/* ---------- 7. 卡片 · 图片容器 · 正文 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--line-700);
  border-radius: var(--radius-m);
  background: rgba(19, 26, 56, 0.82);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(19, 26, 56, 0.95);
}

.card--solid {
  background: var(--ink-800);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  border-radius: var(--radius-m);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(58, 68, 112, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 68, 112, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
}

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

.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 38, 0.92));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.media-frame--ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame--ratio-4-3 { aspect-ratio: 4 / 3; }
.media-frame--ratio-1-1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.9;
}

.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose p + p { margin-top: 1.2em; }

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 0.9em;
}

.prose li {
  position: relative;
  padding-left: 1.6em;
}

.prose ul > li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.prose ol { counter-reset: item; }

.prose ol > li { counter-increment: item; }

.prose ol > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--cyan);
}

.prose a {
  color: var(--star);
  text-decoration: underline;
  text-decoration-color: rgba(53, 214, 200, 0.6);
}

.prose strong { color: var(--star); }

/* ---------- 8. 页头标题区与面包屑 ---------- */
.breadcrumb { margin-bottom: 1.5rem; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.breadcrumb-list li { display: inline-flex; align-items: center; }

.breadcrumb-list li + li::before {
  content: "/";
  margin-inline: 0.55rem;
  color: rgba(58, 68, 112, 0.95);
}

.breadcrumb-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.page-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }

.page-lede {
  margin-top: 1rem;
  max-width: 62ch;
  color: rgba(201, 207, 221, 0.84);
}

/* ---------- 9. 共享头部 ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 120;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #04211F;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; color: #04211F; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 16, 38, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  min-height: 54px;
  padding-block: 0.4rem;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--star);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(58, 68, 112, 0.95);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(53, 214, 200, 0.7);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px; right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 177, 76, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--star);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* 命令栏导航 */
.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  color: var(--silver);
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover {
  background: rgba(123, 92, 255, 0.14);
  color: var(--star);
}

.nav-link[aria-current="page"] {
  border-color: rgba(53, 214, 200, 0.65);
  background: rgba(53, 214, 200, 0.08);
  color: var(--star);
}

.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.nav-label { font-weight: 600; letter-spacing: 0.01em; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.header-cta { white-space: nowrap; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-700);
  border-radius: 999px;
  color: var(--silver);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--nebula); color: var(--star); }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(53, 214, 200, 0.1);
  color: var(--cyan);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10.5px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 4.5px; }
.nav-toggle-bars span:nth-child(3) { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(4.5px) 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(-4.5px) rotate(-45deg);
}

/* 滚动进度光轨 */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--nebula), var(--cyan));
  transition: width 0.15s linear;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* 移动端命令栏展开 */
@media (max-width: 1080px) {
  .brand { margin-right: auto; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.75rem clamp(1rem, 4vw, 3rem) 1.35rem;
    background: rgba(19, 26, 56, 0.98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 48px rgba(3, 6, 20, 0.55);
  }

  .primary-nav[data-open="true"] {
    display: block;
    animation: navIn 0.28s var(--ease) both;
  }

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

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0.4rem;
    font-size: 1rem;
    border: 0;
    border-bottom: 1px solid rgba(58, 68, 112, 0.45);
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(53, 214, 200, 0.55);
    background: rgba(53, 214, 200, 0.06);
  }

  .nav-index { font-size: 0.7rem; }
}

@media (max-width: 1240px) and (min-width: 1081px) {
  .nav-link { font-size: 0.8rem; padding: 0.45rem 0.5rem; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
}

@media (max-width: 520px) {
  .nav-toggle { padding: 0.45rem 0.6rem; }
  .nav-toggle-label { display: none; }
}

/* ---------- 10. 共享页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  background: var(--ink-800);
  border-top: 1px solid var(--line-700);
}

.footer-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(620px 300px at 88% -20%, rgba(123, 92, 255, 0.18), transparent 70%),
    radial-gradient(420px 220px at 4% 112%, rgba(53, 214, 200, 0.1), transparent 70%);
  background-repeat: no-repeat;
}

.footer-orbit::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: -170px;
  height: 330px;
  border-radius: 50%;
  border: 1px solid rgba(58, 68, 112, 0.5);
}

.footer-inner {
  position: relative;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 1.75rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1.7fr 1.2fr;
  gap: clamp(1.75rem, 3vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--star);
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.footer-brand-note {
  max-width: 34ch;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.footer-col { display: flex; flex-direction: column; }

.footer-col-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.2s var(--ease);
}

.footer-link:hover { color: var(--star); }
.footer-link:hover::before { width: 10px; }

.footer-link[aria-current="page"] { color: var(--cyan); }
.footer-link[aria-current="page"]::before { width: 10px; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.footer-contact-value {
  color: var(--star);
  line-height: 1.6;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-legal-list .footer-link { font-size: 0.82rem; }

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 11. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 无障碍与减动效 ---------- */
@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;
  }

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

  .scroll-progress-bar { transition: none; }
}
