/* ==========================================================================
   逸贝娱乐汇 · 共享样式表 /assets/site.css
   深海蓝基底 + 珊瑚橙节奏 + 薄荷绿状态 + 暖沙色资料库分区
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--mist-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- tokens ---------- */
:root {
  --deep-950: #051826;
  --deep-800: #0B2C44;
  --sea-600: #14506E;
  --mist-100: #EAF3F6;
  --coral-500: #FF6A45;
  --coral-200: #FFD8CE;
  --mint-400: #42D6B0;
  --sand-200: #F3E3CC;
  --ink-900: #16232E;
  --slate-500: #647783;
  --paper: #FFFFFF;

  --text: var(--ink-900);
  --text-soft: var(--slate-500);

  --glass-light: rgba(255, 255, 255, 0.66);
  --glass-dark: rgba(5, 24, 38, 0.78);
  --line: rgba(20, 80, 110, 0.16);
  --line-strong: rgba(20, 80, 110, 0.3);
  --line-on-dark: rgba(234, 243, 246, 0.16);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-head);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.8rem, 7vw, 6.4rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 3.2rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 2rem);
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-note: 0.875rem;
  --fs-micro: 0.75rem;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(56px, 8vw, 128px);

  --shadow-soft: 0 24px 60px -40px rgba(5, 24, 38, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--coral-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--mint-400); }

/* ---------- layout ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

#main-content {
  display: block;
  padding-top: clamp(104px, 14vw, 132px);
}
#main-content:focus-visible { outline: 2px dashed var(--coral-500); outline-offset: -2px; }

.section { padding-block: var(--section-space); }

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------- typography ---------- */
.display {
  font-family: var(--font-head);
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--sea-600);
  max-width: 34em;
}

.copy { max-width: 36em; line-height: 1.75; }

.note { font-size: var(--fs-note); color: var(--text-soft); line-height: 1.7; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.v-note {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.28em;
  color: var(--slate-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  color: var(--sea-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--coral-500);
  flex: 0 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate-500);
  transition: color 0.3s var(--ease);
}
.section-head__title {
  font-size: var(--fs-h2);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.section-head__note {
  margin-top: 10px;
  font-size: var(--fs-note);
  color: var(--text-soft);
  max-width: 30em;
}
[data-section][data-active="true"] .section-head__num { color: var(--coral-500); }

.num {
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  transition: color 0.3s var(--ease);
}
[data-active="true"] .num { color: var(--coral-500); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease),
    color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--coral-500); color: var(--deep-950); }
.btn--primary:hover { background: #ff7d5c; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--deep-800);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--sea-600);
  transform: translateY(-2px);
}

.btn--dark { background: var(--deep-800); color: var(--mist-100); }
.btn--dark:hover { background: var(--deep-950); transform: translateY(-2px); }

.btn--quiet {
  padding-inline: 0;
  color: var(--sea-600);
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
}
.btn--quiet:hover { color: var(--coral-500); border-color: var(--coral-500); }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
}
.card--glass {
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}
.card--sand {
  background: var(--sand-200);
  border-color: rgba(20, 80, 110, 0.1);
}
.card--deep {
  background: var(--deep-800);
  color: var(--mist-100);
  border-color: var(--line-on-dark);
}
.card--deep .note { color: rgba(234, 243, 246, 0.66); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--mist-100);
  color: var(--sea-600);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.tag--coral { background: var(--coral-200); color: #8a2d12; border-color: transparent; }
.tag--mint { background: rgba(66, 214, 176, 0.18); color: #0a5e4d; border-color: rgba(66, 214, 176, 0.42); }
.tag--sand { background: var(--sand-200); color: #7a5a2a; border-color: transparent; }
.tag--deep { background: var(--deep-800); color: var(--mist-100); border-color: transparent; }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-top: clamp(8px, 2vw, 20px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}
.breadcrumb-list a { text-decoration: none; color: var(--text-soft); transition: color 0.2s var(--ease); }
.breadcrumb-list a:hover { color: var(--coral-500); }
.breadcrumb-list [aria-current="page"] { color: var(--ink-900); }

/* ---------- media (页面阶段放置图片的基础容器) ---------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep-950);
}
.media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(104deg, transparent 42%, rgba(234, 243, 246, 0.16) 50%, transparent 58%),
    radial-gradient(120% 90% at 18% 8%, rgba(66, 214, 176, 0.32), transparent 58%),
    radial-gradient(100% 80% at 88% 92%, rgba(255, 106, 69, 0.32), transparent 62%),
    linear-gradient(150deg, var(--deep-800), var(--deep-950));
}
.media__frame > img,
.media__frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__body { padding: clamp(16px, 2.4vw, 26px); background: var(--paper); }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 4 / 5; }
.media--square .media__frame { aspect-ratio: 1 / 1; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--deep-950);
  color: var(--mist-100);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.24s var(--ease);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-color: var(--mint-400);
}

/* ==========================================================================
   头部：悬浮胶囊导航
   ========================================================================== */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 90;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  transition: top 0.3s var(--ease), width 0.3s var(--ease);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  min-height: 58px;
  padding: 9px 9px 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-on-dark);
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 50px -34px rgba(5, 24, 38, 0.9);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header[data-scrolled="true"] {
  top: 10px;
  width: min(1120px, calc(100% - 2 * var(--gutter)));
}
.site-header[data-scrolled="true"] .header-shell {
  padding-block: 5px;
  background: rgba(5, 24, 38, 0.93);
}

/* 品牌 */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 6px;
  text-decoration: none;
  color: var(--mist-100);
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--coral-500), #ff9a7c);
  color: var(--deep-950);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  color: rgba(234, 243, 246, 0.5);
}

/* 当前章节名 */
.header-context {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: rgba(234, 243, 246, 0.66);
  transition: max-width 0.34s var(--ease), opacity 0.24s var(--ease), padding 0.34s var(--ease);
}
.site-header[data-scrolled="true"] .header-context[data-has-label="true"] {
  max-width: 200px;
  padding-right: 8px;
  opacity: 1;
}

/* 导航 */
.nav-cluster { margin-inline: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(234, 243, 246, 0.76);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(234, 243, 246, 0.1); }
.nav-link[aria-current="page"] {
  color: var(--deep-950);
  background: var(--coral-500);
  font-weight: 700;
}
.nav-link[aria-current="page"]:hover { background: #ff7d5c; color: var(--deep-950); }

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

.update-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(66, 214, 176, 0.34);
  background: rgba(66, 214, 176, 0.1);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  color: rgba(234, 243, 246, 0.86);
}
.update-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(66, 214, 176, 0.18);
  flex: 0 0 auto;
}
.update-tag { font-size: 0.6875rem; color: rgba(234, 243, 246, 0.5); }

.fav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--coral-500);
  color: var(--deep-950);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.fav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--deep-950);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.fav-link:hover { background: #ff7d5c; transform: translateY(-1px); }
.fav-link:active { transform: translateY(0); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  background: rgba(234, 243, 246, 0.08);
  flex: 0 0 auto;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(234, 243, 246, 0.16); }
.nav-toggle-box { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--mist-100);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { bottom: 0; }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* 移动快捷条 */
.quick-bar { display: none; }

/* ---------- 头部响应式 ---------- */
@media (max-width: 1180px) {
  .header-context { display: none; }
  .nav-link { padding: 8px 9px; font-size: 0.875rem; }
  .update-tag { display: none; }
}

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

@media (max-width: 900px) {
  .site-header { top: 14px; width: calc(100% - 24px); }
  .site-header[data-scrolled="true"] { top: 8px; width: calc(100% - 24px); }
  .header-shell { padding: 7px 7px 7px 12px; }
  .nav-toggle { display: flex; }
  .brand-glyph { width: 30px; height: 30px; border-radius: 10px; font-size: 0.875rem; }

  .nav-cluster {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    padding: 10px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-on-dark);
    background: rgba(5, 24, 38, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -30px rgba(5, 24, 38, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.24s var(--ease), transform 0.26s var(--ease), visibility 0.24s;
  }
  .site-header[data-open="true"] .nav-cluster {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 1rem;
    color: rgba(234, 243, 246, 0.86);
  }
  .nav-link[aria-current="page"] { padding-left: 16px; }

  .quick-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 85;
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-on-dark);
    background: rgba(5, 24, 38, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -24px rgba(5, 24, 38, 0.9);
    transform: translateX(-50%);
  }
  .quick-bar a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(234, 243, 246, 0.88);
    transition: background-color 0.2s var(--ease);
  }
  .quick-bar a:first-child { background: rgba(234, 243, 246, 0.14); color: var(--paper); }
  .quick-bar a:last-child { background: var(--coral-500); color: var(--deep-950); }
  .quick-bar a:hover { background: rgba(234, 243, 246, 0.24); }
  .quick-bar a:last-child:hover { background: #ff7d5c; }
}

@media (max-width: 420px) {
  .fav-link { padding: 9px 12px; font-size: 0.8125rem; }
  .brand-name { font-size: 0.875rem; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: var(--section-space);
  overflow: hidden;
  background: var(--deep-950);
  color: var(--mist-100);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral-500), var(--mint-400) 55%, transparent);
  opacity: 0.75;
}

.footer-stage {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.9fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 96px);
}

.footer-identity { min-width: 0; }
.footer-brand {
  display: inline-block;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-brand:hover { color: var(--coral-500); }
.footer-tagline {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--mint-400);
}
.footer-fine {
  margin-top: 18px;
  max-width: 22em;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(234, 243, 246, 0.52);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.footer-col { min-width: 0; }
.footer-kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(234, 243, 246, 0.55);
}
.footer-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--coral-500);
}

.footer-list { display: grid; gap: 10px; font-size: 0.875rem; }
.footer-list a {
  color: rgba(234, 243, 246, 0.8);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-list a:hover { color: var(--coral-500); }
.footer-list--plain { color: rgba(234, 243, 246, 0.72); line-height: 1.6; gap: 14px; }
.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: rgba(234, 243, 246, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 34px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(234, 243, 246, 0.5);
}
.footer-copy { font-family: var(--font-mono); letter-spacing: 0.06em; }
.footer-note { max-width: 46em; }

@media (max-width: 900px) {
  .site-footer { padding-bottom: 76px; }
  .footer-stage { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { flex-direction: column; }
}

/* ==========================================================================
   网格与响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .section-head__num { font-size: 1.5rem; }
}

/* ==========================================================================
   交互增强：章节高亮、阅读进度、入场
   ========================================================================== */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  background: var(--mint-400);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-reveal [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .nav-cluster { transition: none; }
}
