/* =========================================================
   GALAXY / city-galaxy.com.cn  —  /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, h6,
p, figure, blockquote, dl, dd, fieldset {
  margin: 0;
}

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

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

a { color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色板 */
  --void: #0A1626;
  --night: #132A4A;
  --nebula: #3B2C63;
  --silver: #E9EEF6;
  --cyan: #5FE3D6;
  --ember: #E08A3C;
  --rock: #2B3441;
  --moss: #7FA88C;
  --paper: #F4EFE4;
  --ink: #1B2433;

  /* 派生 */
  --cyan-line: rgba(95, 227, 214, 0.32);
  --cyan-hair: rgba(95, 227, 214, 0.14);
  --cyan-wash: rgba(95, 227, 214, 0.09);
  --silver-text: rgba(233, 238, 246, 0.84);
  --silver-dim: rgba(233, 238, 246, 0.68);
  --silver-mute: rgba(233, 238, 246, 0.48);
  --hair: rgba(233, 238, 246, 0.12);

  /* 字体 */
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas,
          "Courier New", monospace;

  /* 8 级字号阶梯 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-17: 17px;
  --fs-21: 21px;
  --fs-28: clamp(23px, 2.4vw, 28px);
  --fs-38: clamp(29px, 3.4vw, 38px);
  --fs-54: clamp(34px, 4.6vw, 54px);
  --fs-76: clamp(36px, 5.2vw, 76px);

  /* 尺度 */
  --gutter: clamp(20px, 4vw, 96px);
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-soft: 14px;
  --shell: 1360px;
  --content: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版与夜景底 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: var(--fs-17);
  line-height: 1.85;
  font-weight: 400;
  color: var(--silver-text);
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 640px at 86% -12%, rgba(59, 44, 99, 0.55), transparent 66%),
    radial-gradient(900px 520px at 4% 8%, rgba(19, 42, 74, 0.92), transparent 72%),
    radial-gradient(1100px 700px at 50% 118%, rgba(19, 42, 74, 0.65), transparent 70%);
  background-attachment: fixed;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 星点颗粒：极低对比，仅防止大块纯色显平 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(233, 238, 246, 0.55), transparent 100%),
    radial-gradient(1px 1px at 62% 12%, rgba(95, 227, 214, 0.45), transparent 100%),
    radial-gradient(1px 1px at 84% 58%, rgba(233, 238, 246, 0.4), transparent 100%),
    radial-gradient(1px 1px at 34% 76%, rgba(233, 238, 246, 0.32), transparent 100%),
    radial-gradient(1px 1px at 76% 88%, rgba(95, 227, 214, 0.32), transparent 100%);
  background-size: 260px 220px, 320px 280px, 380px 300px, 300px 260px, 420px 340px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--silver);
}

h1 { font-size: var(--fs-76); }
h2 { font-size: var(--fs-54); }
h3 { font-size: var(--fs-38); }
h4 { font-size: var(--fs-21); letter-spacing: 0.04em; }

p { max-width: 68ch; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

::selection {
  background: rgba(95, 227, 214, 0.28);
  color: var(--silver);
}

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

/* ---------- 4. 通用工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  color: var(--silver-dim);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: var(--fs-21);
  line-height: 1.7;
  color: var(--silver-dim);
}

.section { padding-block: clamp(56px, 7vw, 128px); }
.section--tight { padding-block: clamp(32px, 4vw, 72px); }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 48px);
}

.section-index {
  flex: none;
  padding-top: 6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0.85;
}

/* ---------- 5. 栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

/* ---------- 7. 悬浮胶囊头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 24px var(--gutter) 0;
  transition: padding 0.32s var(--ease);
}

.site-header[data-scrolled] { padding-top: 8px; }

.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.header-capsule {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  min-height: 64px;
  padding: 9px clamp(12px, 1.4vw, 22px);
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(24, 45, 78, 0.86), rgba(10, 22, 38, 0.8));
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 22px 48px -30px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(233, 238, 246, 0.08);
  transition: min-height 0.32s var(--ease), background 0.32s var(--ease),
              border-color 0.32s var(--ease);
}

.site-header[data-scrolled] .header-capsule {
  min-height: 56px;
  padding-block: 5px;
  border-color: rgba(95, 227, 214, 0.42);
  background: linear-gradient(180deg, rgba(19, 42, 74, 0.96), rgba(10, 22, 38, 0.94));
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  border-radius: var(--radius-soft);
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid rgba(95, 227, 214, 0.55);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(95, 227, 214, 0.06);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.brand-mark::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  transform: translateX(-50%);
}

.brand-mark::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  transform: translateY(-50%);
}

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

.brand-name {
  font-size: var(--fs-17);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.brand-latin {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--cyan);
}

.brand-tagline {
  flex: none;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--silver-mute);
  max-width: 9em;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: clamp(10px, 1.4vw, 20px);
  border-left: 1px solid var(--hair);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--silver-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--silver);
  background: rgba(95, 227, 214, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(95, 227, 214, 0.1);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 1px;
  background: var(--cyan);
  transform: translateX(-50%);
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.search-toggle {
  padding: 7px 13px;
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: var(--cyan-wash);
  border-color: var(--cyan);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--silver-dim);
  white-space: nowrap;
}

.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(224, 138, 60, 0.2);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn--sm { padding: 9px 16px; font-size: var(--fs-12); }

.btn--ember {
  background: var(--ember);
  border-color: rgba(224, 138, 60, 0.9);
  color: var(--ink);
}

.btn--ember:hover {
  background: #eda055;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--cyan-line);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: var(--cyan-wash);
  border-color: var(--cyan);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--cyan-line);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 检索面板 */
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  z-index: 2;
  padding: 18px clamp(16px, 2vw, 24px) 16px;
  border: 1px solid var(--cyan-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(19, 42, 74, 0.98), rgba(10, 22, 38, 0.99));
  box-shadow: 0 34px 70px -34px #000;
}

.search-panel[hidden] { display: none; }

.search-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.3em;
  color: var(--cyan);
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius-soft);
  background: rgba(10, 22, 38, 0.9);
  color: var(--silver);
  font-family: var(--mono);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
}

.search-input::placeholder { color: rgba(233, 238, 246, 0.38); }

.search-results {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-height: 46vh;
  overflow-y: auto;
}

.search-hit {
  display: block;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(95, 227, 214, 0.18);
  border-radius: 12px;
  background: rgba(43, 52, 65, 0.6);
  color: var(--silver-text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.search-hit:hover,
.search-hit:focus-visible {
  border-color: var(--cyan);
  background: var(--cyan-wash);
  color: var(--silver);
}

.search-empty {
  padding: 8px 2px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--silver-mute);
}

.search-hint {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--silver-mute);
  max-width: none;
}

/* 刻度导轨 */
.scroll-rail {
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(95, 227, 214, 0.14);
  overflow: hidden;
}

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

/* ---------- 8. 轨道页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 128px);
  padding: clamp(48px, 6vw, 76px) var(--gutter) 32px;
  border-top: 1px solid rgba(95, 227, 214, 0.18);
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(59, 44, 99, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(19, 42, 74, 0.6), rgba(10, 22, 38, 0.98) 58%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -90px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(95, 227, 214, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(112px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  max-width: var(--shell);
  margin-inline: auto;
}

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

.footer-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-21);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-decoration: none;
}

.footer-lockup-latin {
  font-family: var(--mono);
  font-size: var(--fs-12);
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--cyan);
}

.footer-tagline {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--silver-mute);
}

.footer-rail {
  height: 11px;
  margin: 20px 0;
  border-bottom: 1px solid rgba(95, 227, 214, 0.35);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(95, 227, 214, 0.5) 0 1px,
    transparent 1px 14px
  );
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 14px 100%;
}

.footer-contact { display: grid; gap: 9px; }

.footer-contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-14);
  line-height: 1.7;
}

.footer-contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-contact-value {
  color: var(--silver-text);
  word-break: break-word;
}

.footer-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.8;
  color: var(--silver-mute);
}

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.3em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--silver-dim);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--silver); }

.footer-link:hover::after,
.footer-link:focus-visible::after { transform: scaleX(1); }

.footer-link--ember { color: var(--ember); }
.footer-link--ember:hover,
.footer-link--ember:focus-visible { color: #eda055; }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--shell);
  margin: clamp(36px, 4vw, 56px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--silver-mute);
}

.footer-bottom p { max-width: none; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal .footer-link {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--silver-mute);
}

.footer-legal .footer-link:hover { color: var(--cyan); }

/* ---------- 9. 基础内容组件 ---------- */
.card {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(95, 227, 214, 0.16);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(43, 52, 65, 0.72), rgba(19, 42, 74, 0.5));
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.card:hover {
  border-color: rgba(95, 227, 214, 0.42);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(95, 227, 214, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(95, 227, 214, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.tag--moss {
  border-color: rgba(127, 168, 140, 0.42);
  background: rgba(127, 168, 140, 0.14);
  color: #A6CBB1;
}

.tag--ember {
  border-color: rgba(224, 138, 60, 0.45);
  background: rgba(224, 138, 60, 0.14);
  color: #F0A968;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 8px 16px;
  border: 1px solid rgba(95, 227, 214, 0.26);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--silver-dim);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}

.filter-pill:hover {
  color: var(--silver);
  border-color: var(--cyan);
}

.filter-pill[aria-pressed="true"],
.filter-pill.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(95, 227, 214, 0.2);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(59, 44, 99, 0.92), rgba(10, 22, 38, 0.96) 72%),
    var(--night);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(95, 227, 214, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 227, 214, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
}

.figure-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide .figure-frame { aspect-ratio: 21 / 9; }
.figure--tall .figure-frame { aspect-ratio: 3 / 4; }

.figure-caption {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--silver-mute);
}

.breadcrumb { padding-block: 18px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--silver-mute);
}

.breadcrumb-list a {
  color: inherit;
  text-decoration: none;
}

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

.breadcrumb-list li:not(:last-child)::after {
  content: "／";
  margin-left: 8px;
  color: rgba(95, 227, 214, 0.5);
}

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

.rail-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-item {
  position: relative;
  padding-left: 30px;
}

.rail-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: -28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(95, 227, 214, 0.45), rgba(95, 227, 214, 0.06));
}

.rail-item:last-child::before { display: none; }

.rail-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--void);
}

/* ---------- 10. 动效协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

.is-flash {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1240px) {
  .brand-tagline { display: none; }
}

@media (max-width: 1080px) {
  .site-header { padding-inline: clamp(16px, 4vw, 40px); }

  .header-capsule {
    gap: 10px;
    border-radius: 26px;
    min-height: 60px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    z-index: 3;
    display: block;
    padding: 14px;
    border: 1px solid var(--cyan-line);
    border-left: 1px solid var(--cyan-line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(19, 42, 74, 0.98), rgba(10, 22, 38, 0.99));
    box-shadow: 0 34px 70px -34px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s linear;
  }

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

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

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-soft);
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after {
    left: 6px;
    top: 50%;
    bottom: auto;
    width: 2px;
    height: 18px;
    transform: translateY(-50%);
  }

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

  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 860px) {
  .version-badge { display: none; }
  .scroll-rail { margin-top: 6px; }
}

@media (max-width: 720px) {
  body { font-size: var(--fs-17); line-height: 1.8; }

  .search-panel { padding: 16px 14px; border-radius: 22px; }
  .search-input { font-size: 13px; }

  .section-head { gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .btn--sm { padding: 8px 12px; letter-spacing: 0.02em; }
  .search-toggle { padding: 6px 10px; letter-spacing: 0.1em; }
  .nav-toggle { width: 40px; height: 38px; }
  .brand-name { font-size: 15px; }
  .brand-latin { letter-spacing: 0.24em; }
}

/* ---------- 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-rail-fill { transition: none; }
}
