/* ============================================================
   超级小坤 · 地球超能协会（ESA）编年史
   在线阅读站 · 深空星海主题（美化增强版）
   ============================================================ */
:root {
  --bg-0: #05070c;
  --bg-1: #090c13;
  --bg-2: #101521;
  --panel: rgba(18, 23, 34, 0.78);
  --panel-solid: #111826;
  --card: rgba(18, 23, 34, 0.64);
  --line: rgba(160, 190, 230, 0.14);
  --line-strong: rgba(160, 190, 230, 0.3);
  --ink: #e7edf6;
  --ink-2: #a6b1c3;
  --ink-3: #748096;
  --accent: #69c6f2;
  --accent-2: #a5e8ff;
  --gold: #e9cb85;
  --mars: #ff8a6b;
  --grad-energy: linear-gradient(100deg, #69c6f2, #a5e8ff 50%, #69c6f2);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  --panel-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  --nav-height: 58px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
           "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
          "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --toolbar-bg: rgba(10, 14, 23, 0.86);
  color-scheme: dark;
}
html[data-theme="dawn"] {
  --bg-0: #eef0e6;
  --bg-1: #f4f2e9;
  --bg-2: #ececdd;
  --panel: rgba(255, 253, 246, 0.82);
  --panel-solid: #faf7ee;
  --card: rgba(255, 253, 246, 0.85);
  --line: rgba(96, 110, 140, 0.22);
  --line-strong: rgba(96, 110, 140, 0.4);
  --ink: #2f3a4d;
  --ink-2: #5a6a83;
  --ink-3: #8a97ab;
  --accent: #2f7fd6;
  --accent-2: #1f9bb8;
  --gold: #a97c2e;
  --mars: #c25e3d;
  --shadow: 0 16px 44px rgba(60, 70, 95, 0.14);
  --panel-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  --toolbar-bg: rgba(246, 244, 235, 0.92);
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 0.8rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(64, 108, 196, 0.1), transparent 60%),
    radial-gradient(1000px 600px at -10% 35%, rgba(126, 66, 190, 0.08), transparent 55%),
    radial-gradient(900px 640px at 60% 110%, rgba(30, 120, 150, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 30%, var(--bg-2));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
@media (min-width: 761px) {
  body { background-attachment: fixed; }
}
::selection { background: rgba(87, 183, 255, 0.28); color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}
:focus:not(:focus-visible) { outline: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; transition: none; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 星空背景 ---------- */
.stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.stars i {
  position: absolute; inset: -40px; background-repeat: repeat;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars i:nth-child(1) {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27300%27%20height%3D%27300%27%3E%3Ccircle%20cx%3D%27166%27%20cy%3D%2778%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2725%27%20cy%3D%2738%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2749%27%20cy%3D%27188%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27260%27%20cy%3D%27110%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27223%27%20cy%3D%27215%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2747%27%20cy%3D%27283%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27290%27%20cy%3D%2764%27%20r%3D%270.9%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27299%27%20cy%3D%2732%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27204%27%20cy%3D%2726%27%20r%3D%270.9%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27286%27%20r%3D%270.9%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27149%27%20cy%3D%27215%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2761%27%20cy%3D%27293%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2793%27%20cy%3D%2753%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2797%27%20cy%3D%27191%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2733%27%20cy%3D%27289%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27106%27%20cy%3D%27255%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27219%27%20cy%3D%27161%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27233%27%20cy%3D%27186%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2793%27%20cy%3D%27125%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27154%27%20cy%3D%27269%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27176%27%20cy%3D%27230%27%20r%3D%270.7%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2738%27%20cy%3D%2761%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2785%27%20cy%3D%27176%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27251%27%20cy%3D%27216%27%20r%3D%270.6%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%2740%27%20cy%3D%27286%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3Ccircle%20cx%3D%27161%27%20cy%3D%27175%27%20r%3D%270.8%27%20opacity%3D%270.5%27/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.5;
}
.stars i:nth-child(2) {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27460%27%20height%3D%27460%27%3E%3Ccircle%20cx%3D%27305%27%20cy%3D%27255%27%20r%3D%271.0%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27234%27%20cy%3D%2736%27%20r%3D%271.2%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27139%27%20cy%3D%27243%27%20r%3D%271.1%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%2734%27%20cy%3D%2732%27%20r%3D%271.1%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27159%27%20cy%3D%27332%27%20r%3D%271.0%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27349%27%20cy%3D%27421%27%20r%3D%270.9%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27367%27%20cy%3D%27198%27%20r%3D%271.2%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27178%27%20cy%3D%2712%27%20r%3D%271.3%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27182%27%20cy%3D%2787%27%20r%3D%271.0%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27253%27%20cy%3D%2731%27%20r%3D%270.8%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27148%27%20cy%3D%2767%27%20r%3D%271.1%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27204%27%20cy%3D%27201%27%20r%3D%271.2%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27255%27%20cy%3D%2742%27%20r%3D%270.7%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27206%27%20cy%3D%27282%27%20r%3D%270.8%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%2771%27%20cy%3D%27420%27%20r%3D%270.9%27%20opacity%3D%270.7%27/%3E%3Ccircle%20cx%3D%27282%27%20cy%3D%27143%27%20r%3D%271.1%27%20opacity%3D%270.7%27/%3E%3C/svg%3E");
  background-size: 460px 460px;
  opacity: 0.65;
  animation-duration: 9s;
  animation-delay: 1.2s;
}
.stars i:nth-child(3) {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27640%27%20height%3D%27640%27%3E%3Ccircle%20cx%3D%27368%27%20cy%3D%27390%27%20r%3D%271.7%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%27155%27%20cy%3D%2785%27%20r%3D%270.8%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%27238%27%20cy%3D%27239%27%20r%3D%270.6%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%27604%27%20cy%3D%27187%27%20r%3D%270.9%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%275%27%20cy%3D%27150%27%20r%3D%271.1%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%27379%27%20cy%3D%27625%27%20r%3D%271.3%27%20opacity%3D%270.85%27/%3E%3Ccircle%20cx%3D%27129%27%20cy%3D%27528%27%20r%3D%271.7%27%20opacity%3D%270.85%27/%3E%3C/svg%3E");
  background-size: 640px 640px;
  opacity: 0.8;
  animation-duration: 11s;
  animation-delay: 2.4s;
}
html[data-theme="dawn"] .stars i { opacity: 0.55; filter: invert(0.92) hue-rotate(180deg); }
@keyframes twinkle {
  0%   { opacity: 0.28; }
  100% { opacity: 0.9; }
}
.nebula {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 72% 12%, rgba(72, 110, 200, 0.11), transparent 65%),
    radial-gradient(52rem 36rem at 8% 32%, rgba(140, 80, 220, 0.08), transparent 62%),
    radial-gradient(46rem 30rem at 86% 72%, rgba(28, 128, 160, 0.09), transparent 62%),
    radial-gradient(70rem 48rem at 34% 96%, rgba(56, 92, 172, 0.07), transparent 66%);
  transition: background 0.4s ease;
}
/* 银河光带 */
.galaxy {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(150, 180, 240, 0.05) 44%,
    rgba(205, 222, 255, 0.09) 50%,
    rgba(150, 180, 240, 0.05) 56%,
    transparent 68%);
  filter: blur(14px);
}
/* 行星 */
.planet {
  position: fixed; z-index: -1; left: -10rem; bottom: -12rem;
  width: 32rem; height: 32rem; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 33% 30%, rgba(198, 224, 255, 0.5) 0%, rgba(120, 160, 215, 0.3) 11%, transparent 12%),
    radial-gradient(circle at 64% 62%, rgba(6, 12, 26, 0.92) 0%, transparent 55%),
    radial-gradient(circle at 30% 24%, #9db8dd, #4a6c9e 40%, #16233f 70%, #0a1226 100%);
  box-shadow:
    inset -3.5rem -3rem 6rem rgba(3, 6, 14, 0.85),
    inset 1.5rem 1.5rem 4rem rgba(190, 215, 255, 0.12),
    0 0 9rem rgba(110, 160, 235, 0.3),
    0 0 2.4rem rgba(110, 160, 235, 0.42);
}
.planet::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44rem; height: 44rem; margin: -22rem; border-radius: 50%;
  border: 1px solid rgba(150, 190, 255, 0.22);
  box-shadow: 0 0 2.4rem rgba(150, 190, 255, 0.16);
  transform: rotateX(72deg) rotateZ(-18deg);
  animation: ring-spin 70s linear infinite;
}
@keyframes ring-spin { to { transform: rotateX(72deg) rotateZ(342deg); } }
/* 环绕卫星 */
.moon {
  position: fixed; z-index: -1; pointer-events: none;
  left: 5.2rem; bottom: 3rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(220, 232, 250, 0.85), rgba(150, 165, 195, 0.5) 45%, transparent 70%),
    radial-gradient(circle at 30% 24%, #aebbd2, #4c5878 55%, #232c44 100%);
  box-shadow: 0 0 1.6rem rgba(180, 205, 245, 0.4);
  animation: orbit 60s linear infinite;
  transform-origin: 14rem 14rem;
}
@keyframes orbit { to { transform: rotate(360deg); } }
/* 流星 */
.shooting { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.shooting i {
  position: absolute; width: 150px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(143, 232, 255, 0.35) 60%, transparent);
  filter: drop-shadow(0 0 6px rgba(143, 232, 255, 0.7));
  opacity: 0; transform: rotate(-32deg);
  animation: shoot 11s linear infinite;
}
.shooting i:nth-child(1) { top: 10%; left: 72%; animation-delay: 1.5s; }
.shooting i:nth-child(2) { top: 26%; left: 26%; width: 110px; animation-delay: 5.5s; }
.shooting i:nth-child(3) { top: 6%; left: 48%; width: 130px; animation-delay: 9s; }
@keyframes shoot {
  0%   { transform: translateX(0) rotate(-32deg); opacity: 0; }
  3%   { opacity: 0.95; }
  12%  { transform: translateX(-58vw) rotate(-32deg); opacity: 0; }
  100% { transform: translateX(-58vw) rotate(-32deg); opacity: 0; }
}
/* 尘埃光点 */
.dust { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dust i {
  position: absolute; bottom: -2rem; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(170, 205, 255, 0.55); filter: blur(1px);
  opacity: 0; animation: rise 22s linear infinite;
}
.dust i:nth-child(1) { left: 12%; animation-delay: 0s; }
.dust i:nth-child(2) { left: 30%; width: 2px; height: 2px; animation-delay: 4s; background: rgba(120, 255, 220, 0.45); }
.dust i:nth-child(3) { left: 52%; animation-delay: 8s; background: rgba(210, 170, 255, 0.5); }
.dust i:nth-child(4) { left: 68%; width: 2px; height: 2px; animation-delay: 2.5s; background: rgba(255, 190, 150, 0.45); }
.dust i:nth-child(5) { left: 86%; animation-delay: 11s; background: rgba(255, 215, 160, 0.5); }
.dust i:nth-child(6) { left: 42%; width: 4px; height: 4px; animation-delay: 15s; background: rgba(140, 235, 255, 0.45); }
@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-92vh); opacity: 0; }
}
html[data-theme="dawn"] .planet,
html[data-theme="dawn"] .moon {
  opacity: 0.3; filter: saturate(0.5) brightness(1.35);
}
html[data-theme="dawn"] .galaxy { opacity: 0.4; }
html[data-theme="dawn"] .shooting i,
html[data-theme="dawn"] .dust i { background: rgba(90, 110, 150, 0.5); }

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 17, 0.76);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}
html[data-theme="dawn"] .site-head { background: rgba(248, 246, 237, 0.84); }
.head-inner {
  width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand-mark {
  font-family: var(--sans); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em;
  color: #04101f; padding: 0.28rem 0.48rem; border-radius: 0.35rem;
  background: var(--grad-energy); box-shadow: 0 0 12px rgba(105, 198, 242, 0.42);
}
html[data-theme="dawn"] .brand-mark { color: #fff; }
.brand-name { font-size: 0.98rem; letter-spacing: 0.18em; font-weight: 700; white-space: nowrap; }
.head-nav { display: flex; gap: 1.3rem; align-items: center; }
.head-link {
  font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-2);
  position: relative; padding: 0.3rem 0.1rem;
}
.head-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad-energy); border-radius: 2px;
  transition: width 0.28s ease;
}
.head-link:hover { color: var(--ink); }
.head-link:hover::after { width: 100%; }
.head-link.dim { opacity: 0.35; pointer-events: none; }
.head-cta {
  color: #04101f; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.34rem 0.9rem; border-radius: 999px;
  background: var(--grad-energy); box-shadow: 0 0 14px rgba(105, 198, 242, 0.35);
  transition: all 0.25s ease;
}
.head-cta::after { display: none; }
html[data-theme="dawn"] .head-cta { color: #fff; }
.head-cta:hover { color: #04101f; transform: translateY(-1px); box-shadow: 0 0 24px rgba(105, 198, 242, 0.58); }
.head-cta:active { transform: translateY(0); box-shadow: 0 0 14px rgba(105, 198, 242, 0.3); }
html[data-theme="dawn"] .head-cta:hover { color: #fff; }
/* 阅读进度条 */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: transparent;
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: var(--grad-energy);
  box-shadow: 0 0 10px rgba(105, 198, 242, 0.75);
  transition: width 0.15s ease-out;
}

/* ---------- 首页 Hero ---------- */
.hero {
  min-height: calc(100svh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center;
  padding: clamp(2.8rem, 6vh, 4.8rem) 1.4rem clamp(3.4rem, 8vh, 4.8rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(143, 232, 255, 0.05) 50%, transparent 60%);
  background-size: 260% 100%;
  animation: aurora-sweep 11s ease-in-out infinite;
}
@keyframes aurora-sweep {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.hero-inner { width: 100%; max-width: 46rem; position: relative; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin) { animation: fade-up 1s ease both; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin):nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin):nth-child(4) { animation-delay: 0.45s; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin):nth-child(6) { animation-delay: 0.6s; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin):nth-child(7) { animation-delay: 0.75s; }
.hero-inner > *:not(.emblem):not(.hero-title):not(.hero-origin):nth-child(8) { animation-delay: 0.9s; }
.emblem {
  width: 5.8rem; height: 5.8rem; margin: 0 auto 1.15rem; color: var(--accent);
  filter: drop-shadow(0 0 16px rgba(105, 198, 242, 0.38));
  animation: emblem-pulse 5s ease-in-out infinite;
}
@keyframes emblem-pulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(105, 198, 242, 0.3)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 26px rgba(105, 198, 242, 0.48)); transform: scale(1.02); }
}
.hero-kicker {
  font-size: 0.68rem; letter-spacing: 0.28em; text-indent: 0.28em; color: var(--accent-2);
  text-transform: uppercase; margin-bottom: 0.7rem; opacity: 0.88;
}
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.16; letter-spacing: 0.1em; margin-left: 0.1em;
  background: linear-gradient(100deg, #8ba9c9 0%, #f2f7ff 32%, #a9c5e5 50%, #f2f7ff 68%, #8ba9c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fade-up 1s ease 0.3s both;
  filter: drop-shadow(0 0 22px rgba(120, 180, 255, 0.2));
}
html[data-theme="dawn"] .hero-title {
  background: linear-gradient(100deg, #27405f, #8fb3de 30%, #3d5a85 55%, #8fb3de 75%, #27405f);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.hero-sub {
  margin-top: 0.55rem; font-size: 0.95rem; letter-spacing: 0.18em; color: var(--ink-2);
}
.hero-origin {
  display: inline-block; margin-top: 0.9rem; padding: 0.3rem 1rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-indent: 0.18em;
  color: var(--gold);
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(8px);
  animation: fade-up 1s ease 0.55s both;
}
.hero-origin::before, .hero-origin::after { content: "✦"; font-size: 0.6rem; opacity: 0.8; vertical-align: 0.15em; }
.hero-origin::before { margin-right: 0.8em; }
.hero-origin::after { margin-left: 0.8em; }
.hero-desc {
  max-width: 43rem; margin: 1.2rem auto 0; font-size: 0.94rem; line-height: 1.9;
  color: var(--ink-2); text-align: center;
}
/* 数据面板 */
.hero-stats { margin-top: 1.35rem; display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
.hero-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-3);
}
.hero-status i {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2);
  animation: blink 1.6s ease-in-out infinite;
}
.hero-status::after {
  content: "▍"; margin-left: 0.1rem; color: var(--accent-2);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.stats-panel {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 0.5rem; overflow: hidden;
  background: var(--panel); backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), var(--panel-edge);
}
.stat {
  padding: 0.75rem 1.55rem; display: flex; flex-direction: column;
  align-items: center; gap: 0.25rem;
}
.stat-label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-indent: 0.22em; color: var(--ink-3);
}
.stat-num {
  font-family: var(--serif); font-weight: 900; line-height: 1.15;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #69c6f2, #edf8ff 30%, #a5e8ff 50%, #edf8ff 70%, #69c6f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(105, 198, 242, 0.35));
}
.stats-panel .stat:nth-child(3) .stat-num {
  background-image: linear-gradient(100deg, #a78bfa, #f4eeff 30%, #d9c9ff 50%, #f4eeff 70%, #a78bfa);
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.42));
}
.stats-panel .stat:nth-child(5) .stat-num {
  background-image: linear-gradient(100deg, #ff8a6b, #fff1ea 30%, #ffc3a9 50%, #fff1ea 70%, #ff8a6b);
  filter: drop-shadow(0 0 14px rgba(255, 138, 107, 0.42));
}
.stat-en {
  font-size: 0.58rem; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--ink-3); text-transform: uppercase;
}
.stat-divider {
  width: 1px; margin: 0.8rem 0; flex: none;
  background: linear-gradient(180deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}
.hero-actions { display: flex; justify-content: center; gap: 0.8rem; margin-top: 1.55rem; }
.btn {
  display: inline-block; padding: 0.72rem 1.6rem; border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.12em; text-indent: 0.12em;
  border: 1px solid transparent; transition: all 0.25s ease;
}
.btn.primary {
  color: #04101f; font-weight: 700; background: var(--grad-energy);
  box-shadow: 0 0 20px rgba(105, 198, 242, 0.34);
}
html[data-theme="dawn"] .btn.primary { color: #fff; }
.btn.primary:hover { box-shadow: 0 0 32px rgba(105, 198, 242, 0.58); transform: translateY(-2px); }
.btn.primary:active { transform: translateY(0); box-shadow: 0 0 14px rgba(105, 198, 242, 0.28); }
.btn.ghost {
  color: var(--ink-2); border-color: var(--line-strong); background: var(--panel);
}
.btn.ghost:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); }
.btn.ghost:active { transform: translateY(0); }
.hero-scroll {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 0.42rem; align-items: center;
}
.hero-scroll span {
  width: 2px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scroll-drop 2.2s ease-in-out infinite;
}
.hero-scroll span:nth-child(2) { animation-delay: 0.35s; opacity: 0.7; }
.hero-scroll span:nth-child(3) { animation-delay: 0.7s; opacity: 0.4; }
@keyframes scroll-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  45% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- 导语 ---------- */
.intro { padding: 1.8rem 1.4rem 3rem; }
.intro-card {
  max-width: 66rem; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow), var(--panel-edge); backdrop-filter: blur(10px);
  position: relative; overflow: hidden; text-align: center;
}
.intro-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-energy); opacity: 0.85;
}
.intro-kicker {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-size: 0.68rem; letter-spacing: 0.28em; text-indent: 0.28em;
  color: var(--accent-2); text-transform: uppercase;
}
.intro-kicker i { width: 2.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.intro-kicker i:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.intro-quote {
  position: relative; margin: 2rem auto 0; max-width: 44rem;
  font-family: var(--serif);
}
.intro-quote::before, .intro-quote::after {
  position: absolute; font-size: 6.5rem; line-height: 1; font-family: var(--serif);
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); opacity: 0.45;
  pointer-events: none;
}
.intro-quote::before { content: "“"; left: -2.8rem; top: -2.4rem; }
.intro-quote::after { content: "”"; right: -2.8rem; bottom: -3.4rem; }
.intro-quote p {
  font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800;
  letter-spacing: 0.1em; line-height: 1.8;
  background: linear-gradient(120deg, #f5f8ff, #a9c6ea 45%, #6d8fb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(120, 180, 255, 0.16));
}
html[data-theme="dawn"] .intro-quote p {
  background: linear-gradient(120deg, #1b2a44, #3d5a85 60%, #27405f);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.intro-quote p:last-child {
  margin-top: 0.4rem; color: var(--gold); background: none; -webkit-text-fill-color: currentColor;
}
.intro-rule {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  margin: 1.8rem auto; width: min(14rem, 80%);
}
.intro-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.intro-rule span:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.intro-rule i {
  width: 0.45rem; height: 0.45rem; transform: rotate(45deg);
  border: 1px solid var(--gold); box-shadow: 0 0 8px rgba(233, 203, 133, 0.5);
}
.intro-text {
  max-width: 44rem; margin: 0 auto;
  text-align: justify; text-justify: inter-ideograph;
  font-size: 0.94rem; line-height: 2; color: var(--ink-2);
  letter-spacing: 0.03em;
}
.intro-text b { color: var(--gold); font-weight: 700; }

/* ---------- 目录 ---------- */
.toc { padding: 1rem 1.4rem 4rem; max-width: 68rem; margin: 0 auto; }
.toc-head { margin-bottom: 1.8rem; }
.sec-title {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.18em; text-indent: 0.18em;
  position: relative; display: inline-block;
}
.sec-title::after {
  content: ""; position: absolute; left: 0.18em; bottom: -0.35rem;
  height: 2px; width: 2.7rem; border-radius: 2px;
  background: var(--grad-energy); box-shadow: 0 0 8px rgba(105, 198, 242, 0.5);
}
.toc-head .sec-note { margin-top: 0.25rem; color: var(--ink-3); font-size: 0.84rem; letter-spacing: 0.08em; }
.toc-filter input {
  margin-top: 1.25rem; width: 100%; max-width: 25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.68rem 1.25rem; color: var(--ink); font-size: 0.9rem; letter-spacing: 0.04em;
  outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.toc-filter input::placeholder { color: var(--ink-3); }
.toc-filter input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(105, 198, 242, 0.14); }

/* ---------- 目录色彩体系（五色点缀） ---------- */
.toc-group[data-c="0"], .jump-btn[data-c="0"] { --c: #69c6f2; }
.toc-group[data-c="1"], .jump-btn[data-c="1"] { --c: #3fd9c0; }
.toc-group[data-c="2"], .jump-btn[data-c="2"] { --c: #a78bfa; }
.toc-group[data-c="3"], .jump-btn[data-c="3"] { --c: #ff8a6b; }
.toc-group[data-c="4"], .jump-btn[data-c="4"] { --c: #e9cb85; }

/* 范围切换 */
.toc-jump {
  margin-top: 1rem; display: flex; flex-wrap: nowrap; gap: 0.5rem;
  overflow-x: auto; padding: 0.1rem 0 0.3rem;
  scrollbar-width: none;
}
.toc-jump::-webkit-scrollbar { display: none; }
.jump-btn {
  flex: 0 0 auto; font-family: inherit; font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--ink-2); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.38rem 0.9rem; transition: all 0.2s ease;
}
.jump-btn:hover { color: var(--c, var(--accent-2)); border-color: var(--c, var(--accent)); }
.jump-btn.active {
  color: #04101f; font-weight: 700;
  background: var(--c, var(--accent)); border-color: transparent;
  box-shadow: 0 0 14px var(--c, rgba(105, 198, 242, 0.35));
}
html[data-theme="dawn"] .jump-btn.active { color: #fff; }

/* 分组 */
.toc-groups { display: flex; flex-direction: column; gap: 0; }
.toc-group { display: none; margin-bottom: 1.5rem; }
.toc-group.active { display: block; }
html.no-js .toc-group.active { display: block; }
.toc-group-title {
  display: flex; align-items: center; gap: 1.1rem;
  margin-bottom: 0.6rem;
}
.toc-group-title span {
  font-family: var(--serif); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--c, var(--ink-2));
  white-space: nowrap;
  text-shadow: 0 0 12px var(--c, transparent);
}
.toc-group-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.toc-group-title::before {
  content: ""; flex: 0 0 2.4rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

/* 列表行（桌面双栏紧凑排版） */
.toc-list {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem;
  overflow: hidden; box-shadow: var(--shadow), var(--panel-edge); backdrop-filter: blur(8px);
}
.toc-row {
  position: relative; display: grid; grid-template-columns: 2.4rem 1fr 1rem;
  align-items: center; gap: 0.65rem; padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--line); color: var(--ink);
  opacity: 0; transform: translateY(10px);
  transition:
    opacity 0.55s ease calc(var(--i, 0) * 45ms + var(--g, 0) * 130ms),
    transform 0.55s ease calc(var(--i, 0) * 45ms + var(--g, 0) * 130ms),
    background 0.2s ease;
}
.toc-row:nth-child(odd) { border-right: 1px solid var(--line); }
.toc-group.in .toc-row, html.no-js .toc-row { opacity: 1; transform: none; }
.toc-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c, var(--accent));
  box-shadow: 0 0 8px var(--c, transparent);
  transform: scaleY(0.3); transition: transform 0.25s ease;
}
.toc-row:hover { background: var(--panel-solid); }
.toc-row:hover::before { transform: scaleY(1); }
.toc-row.hidden { display: none; }
.row-num {
  font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums; font-weight: 600;
  transition: color 0.2s ease;
}
.toc-row:hover .row-num { color: var(--c, var(--accent-2)); }
.row-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.row-title {
  font-family: var(--serif); font-size: 0.94rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.row-tag {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 2rem;
  padding: 0.02rem 0.4rem;
}
.row-tag.tag-last { color: var(--mars); border-color: var(--mars); }
.row-tag.tag-end { color: var(--gold); border-color: var(--gold); }
.row-sub {
  font-size: 0.76rem; color: var(--ink-3); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-arrow { color: var(--ink-3); font-size: 1rem; text-align: right; transition: transform 0.2s ease, color 0.2s ease; }
.toc-row:hover .row-arrow { transform: translateX(3px); color: var(--c, var(--accent)); }
.toc-empty {
  margin-top: 1.2rem; text-align: center; font-size: 0.86rem;
  color: var(--ink-3); letter-spacing: 0.08em;
}

/* ---------- 章节页 ---------- */
.chapter { max-width: 52rem; margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; }
.chapter-head > * { animation: fade-up 0.8s ease both; }
.chapter-head > *:nth-child(2) { animation-delay: 0.12s; }
.chapter-head > *:nth-child(3) { animation-delay: 0.24s; }
.chapter-head > *:nth-child(4) { animation-delay: 0.36s; }
.chapter-card > .chapter-body { animation: fade-up 0.9s ease 0.3s both; }
.chapter-nav .nav-slot { animation: fade-up 0.8s ease both; }
.chapter-nav .nav-slot:nth-child(2) { animation-delay: 0.16s; }
.chapter-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.5rem) clamp(1.8rem, 5vw, 2.6rem);
  box-shadow: var(--shadow), var(--panel-edge); backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.chapter-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-energy); opacity: 0.85;
}
.chapter-head { text-align: center; margin-bottom: 2.2rem; }
.chapter-kicker {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase;
}
.chapter-kicker i {
  width: 3rem; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.chapter-title {
  margin-top: 0.9rem;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2; letter-spacing: 0.14em; margin-left: 0.14em;
  background: linear-gradient(180deg, #e8f1ff 10%, #9dbede 55%, #6d8fb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(120, 180, 255, 0.18));
}
html[data-theme="dawn"] .chapter-title {
  background: linear-gradient(180deg, #1b2a44, #3d5a85 60%, #27405f);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.chapter-meta {
  margin-top: 1rem; display: flex; justify-content: center; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; letter-spacing: 0.16em; color: var(--ink-3);
}
.act-tag {
  font-size: 0.66rem; letter-spacing: 0.18em; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 2rem; padding: 0.14rem 0.7rem;
}
.act-tag.tag-last { color: var(--mars); border-color: var(--mars); }
.act-tag.tag-end { color: var(--gold); border-color: var(--gold); }
.act-sign { font-style: italic; }
.chapter-rule {
  margin: 1.6rem auto 0; width: min(30rem, 100%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  position: relative;
}
.chapter-rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg);
  width: 0.5rem; height: 0.5rem; border: 1px solid var(--accent); opacity: 0.8;
  background: var(--bg-2);
}

/* 正文排版 —— 逐字保留原文 */
.chapter-body {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: justify;
  text-justify: inter-ideograph;
}
html[data-font="sans"] .chapter-body { font-family: var(--sans); }
.chapter-body p {
  text-indent: 2em;
  margin: 0 0 0.9em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.chapter-body p:first-of-type {
  text-indent: 0;
}
.chapter-body p:first-of-type::first-letter {
  font-size: 2em; font-weight: 800; float: left;
  line-height: 0.85; margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  text-indent: 0;
}
.chapter-body p.highlight {
  color: var(--gold);
}
.scene-break {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin: 2.6em 0; height: 1.2rem;
}
.scene-break::before, .scene-break::after {
  content: ""; width: 3.4rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.scene-break::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.scene-break i {
  width: 0.42rem; height: 0.42rem; transform: rotate(45deg);
  border: 1px solid var(--accent); opacity: 0.75;
  box-shadow: 0 0 8px rgba(87, 183, 255, 0.45);
}

/* ---------- 章节翻页 ---------- */
.chapter-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem;
}
.nav-slot { display: flex; }
.nav-card {
  flex: 1; display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1rem 1.25rem; border-radius: 0.5rem;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); transition: all 0.25s ease;
}
.nav-card.next { text-align: right; align-items: flex-end; }
.nav-card:hover { border-color: var(--accent); background: var(--panel); transform: translateY(-2px); }
.nav-card:active { transform: translateY(0); }
.nav-card.disabled { opacity: 0.35; pointer-events: none; }
.nav-dir { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent-2); }
.nav-title { font-family: var(--serif); font-size: 0.98rem; letter-spacing: 0.08em; color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative; text-align: center;
  padding: 2.8rem 1.4rem 3rem; margin-top: 1.5rem;
}
.site-foot::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(42rem, 82%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.foot-ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.foot-ornament span { width: 4.2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.foot-ornament span:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.foot-ornament i {
  width: 0.45rem; height: 0.45rem; transform: rotate(45deg);
  border: 1px solid var(--accent); opacity: 0.8;
  box-shadow: 0 0 8px rgba(87, 183, 255, 0.45);
}
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.foot-mark {
  font-family: var(--sans); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.12em;
  color: #04101f; padding: 0.26rem 0.5rem; border-radius: 0.35rem;
  background: var(--grad-energy); box-shadow: 0 0 12px rgba(105, 198, 242, 0.42);
}
html[data-theme="dawn"] .foot-mark { color: #fff; }
.foot-title {
  font-family: var(--serif); font-weight: 900; font-size: 1.18rem;
  letter-spacing: 0.18em; text-indent: 0.18em;
  background: linear-gradient(180deg, #e8f1ff 10%, #9dbede 55%, #6d8fb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dawn"] .foot-title {
  background: linear-gradient(180deg, #1b2a44, #3d5a85 60%, #27405f);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.foot-sub {
  margin-top: 0.7rem; font-size: 0.76rem; letter-spacing: 0.12em; color: var(--ink-3);
}
.foot-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.7rem; }
.foot-links a { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-2); position: relative; padding: 0.15rem 0; }
.foot-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--grad-energy); transition: width 0.28s ease;
}
.foot-links a:hover { color: var(--accent-2); }
.foot-links a:hover::after { width: 100%; }
.foot-credit {
  margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-3);
}
.foot-credit b {
  font-family: var(--serif); font-weight: 800; font-size: 0.96rem; letter-spacing: 0.06em;
  color: var(--gold); font-style: italic;
}
.foot-sep { display: inline-block; width: 1px; height: 0.95rem; background: var(--line-strong); }
.foot-origin {
  margin-top: 1.1rem; display: inline-block; padding: 0.3rem 1.1rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-indent: 0.14em;
  color: var(--gold);
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--panel);
}
.foot-origin::before, .foot-origin::after { content: "✦"; font-size: 0.56rem; opacity: 0.8; vertical-align: 0.15em; }
.foot-origin::before { margin-right: 0.8em; }
.foot-origin::after { margin-left: 0.8em; }

/* ---------- 悬浮工具栏 ---------- */
.toolbar {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; flex-direction: column; gap: 0.32rem;
  background: var(--toolbar-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.38rem;
  box-shadow: var(--shadow), var(--panel-edge);
}
.tool {
  width: 2.35rem; height: 2.35rem; border-radius: 0.42rem;
  border: 1px solid transparent; background: transparent;
  color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.2s ease;
}
.tool:hover { color: var(--accent-2); border-color: var(--line-strong); background: rgba(105, 198, 242, 0.08); }
.tool:active { transform: scale(0.95); }
.tool.active { color: var(--accent-2); border-color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  :root { --nav-height: 50px; }
  body { font-size: 15px; }
  .head-inner { padding: 0 0.8rem; }
  .brand-name { font-size: 0.9rem; letter-spacing: 0.12em; }
  .head-nav { gap: 0.45rem; }
  .head-link { font-size: 0.72rem; letter-spacing: 0.04em; }
  .hero { min-height: 0; padding: 2.2rem 1rem 2.6rem; }
  .hero-scroll { display: none; }
  .emblem { width: 4.6rem; height: 4.6rem; margin-bottom: 1rem; }
  .hero-kicker { letter-spacing: 0.16em; text-indent: 0.16em; font-size: 0.64rem; margin-bottom: 0.65rem; }
  .hero-desc { font-size: 0.9rem; line-height: 1.85; text-align: left; }
  .hero-origin { letter-spacing: 0.1em; text-indent: 0.1em; padding: 0.28rem 0.8rem; font-size: 0.68rem; }
  .hero-stats { margin-top: 1.2rem; gap: 0.55rem; }
  .hero-status { letter-spacing: 0.14em; }
  .hero-actions { margin-top: 1.35rem; gap: 0.6rem; }
  .hero-actions .btn { padding: 0.68rem 1.15rem; font-size: 0.84rem; letter-spacing: 0.08em; text-indent: 0.08em; }
  .stats-panel { width: 100%; max-width: 32rem; border-radius: 0.45rem; }
  .stat { padding: 0.7rem 0.45rem; flex: 1; }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.14em; text-indent: 0.14em; }
  .stat-en { letter-spacing: 0.1em; text-indent: 0.1em; font-size: 0.52rem; }
  .stat-divider { margin: 0.65rem 0; }
  .intro { padding: 1.2rem 0.8rem 2.3rem; }
  .intro-card { padding: 1.8rem 1.05rem; border-radius: 0.5rem; overflow: hidden; }
  .intro-kicker { letter-spacing: 0.18em; text-indent: 0.18em; font-size: 0.62rem; }
  .intro-quote { max-width: 100%; }
  .intro-quote::before { left: -0.2rem; top: -1.5rem; font-size: 3.4rem; }
  .intro-quote::after { right: -0.2rem; bottom: -1.9rem; font-size: 3.4rem; }
  .intro-quote p { letter-spacing: 0.06em; line-height: 1.8; }
  .intro-text { font-size: 0.9rem; line-height: 1.95; text-align: left; }
  .toc { padding: 1rem 0.8rem 3rem; }
  .toc-jump { gap: 0.35rem; -webkit-overflow-scrolling: touch; }
  .jump-btn { padding: 0.46rem 0.82rem; font-size: 0.72rem; letter-spacing: 0.04em; }
  .toc-filter {
    position: sticky; top: calc(var(--nav-height) + 0.1rem); z-index: 30;
    padding: 0.4rem 0; margin-top: 0.75rem;
    background: linear-gradient(180deg, var(--bg-1) 72%, transparent);
  }
  .toc-filter input { padding: 0.62rem 1.05rem; font-size: 0.88rem; }
  .toc-list { grid-template-columns: 1fr; border-radius: 0.5rem; }
  .toc-row {
    grid-template-columns: 2.4rem 1fr 1rem; gap: 0.55rem;
    padding: 0.68rem 0.7rem; min-height: 3.4rem;
  }
  .toc-row:nth-child(odd) { border-right: none; }
  .row-num { font-size: 0.74rem; }
  .row-title { font-size: 0.9rem; letter-spacing: 0.04em; }
  .row-sub { font-size: 0.72rem; }
  .chapter { padding: 1.2rem 0.75rem 1.4rem; }
  .chapter-card { padding: 1.7rem 1rem 1.6rem; border-radius: 0.5rem; }
  .chapter-head { margin-bottom: 1.8rem; }
  .chapter-title { letter-spacing: 0.08em; margin-left: 0.08em; }
  .chapter-body p { margin-bottom: 1em; }
  .chapter-body p:first-of-type::first-letter { font-size: 1.8em; }
  .chapter-nav { grid-template-columns: 1fr; gap: 0.7rem; }
  .nav-card { padding: 0.85rem 1rem; }
  .toolbar {
    left: 50%; right: auto; bottom: calc(0.55rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row; gap: 0.2rem; padding: 0.32rem 0.42rem;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .toolbar.hidden {
    transform: translateX(-50%) translateY(calc(100% + 1.5rem));
    opacity: 0; pointer-events: none;
  }
  .tool { width: 2.4rem; height: 2.4rem; font-size: 0.72rem; border-radius: 0.42rem; }
  .site-foot { padding: 2.4rem 0.8rem calc(4.8rem + env(safe-area-inset-bottom)); }
  .foot-links { gap: 1.2rem; flex-wrap: wrap; }
  .foot-sub { letter-spacing: 0.1em; }
  .foot-origin { letter-spacing: 0.1em; text-indent: 0.1em; font-size: 0.64rem; }
  .planet, .moon { display: none; }
  .dust i, .shooting i { display: none; }
}
@media (max-width: 480px) {
  .head-inner { padding: 0 0.7rem; }
  .brand-name { display: none; }
  .head-nav { gap: 0.2rem; }
  .head-link { font-size: 0.68rem; letter-spacing: 0.02em; padding: 0.28rem 0.06rem; }
  .head-cta { padding: 0.3rem 0.7rem; font-size: 0.68rem; letter-spacing: 0.05em; text-indent: 0; }
  .hero-title { letter-spacing: 0.06em; margin-left: 0.06em; }
  .hero-sub { letter-spacing: 0.1em; }
  .hero-origin { letter-spacing: 0.06em; text-indent: 0.06em; padding: 0.26rem 0.7rem; }
  .hero-stats { margin-top: 1.1rem; }
  .stats-panel .stat-en { display: none; }
  .stats-panel .stat { padding: 0.64rem 0.28rem; }
  .intro-quote p { font-size: 1.15rem; }
  .intro-rule { margin: 1.5rem auto; }
  .sec-title { font-size: 1.2rem; letter-spacing: 0.12em; text-indent: 0.12em; }
  .chapter-body { text-align: left; font-size: 1rem; }
  .chapter-kicker { letter-spacing: 0.14em; }
  .chapter-meta { letter-spacing: 0.1em; gap: 0.45rem; }
  .foot-title { letter-spacing: 0.1em; text-indent: 0.1em; font-size: 1.05rem; }
  .foot-credit { flex-wrap: wrap; }
  .foot-sub { letter-spacing: 0.06em; font-size: 0.7rem; }
  .foot-origin { letter-spacing: 0.06em; text-indent: 0.06em; font-size: 0.62rem; }
  .foot-brand { flex-wrap: wrap; gap: 0.5rem; }
}
@media (max-width: 360px) {
  .head-nav { gap: 0.12rem; }
  .head-link { font-size: 0.64rem; }
  .head-cta { padding: 0.28rem 0.62rem; font-size: 0.64rem; }
  .emblem { width: 4rem; height: 4rem; margin-bottom: 0.8rem; }
  .hero-title { font-size: 2.45rem; }
  .hero-origin { display: none; }
  .hero-desc { font-size: 0.82rem; line-height: 1.75; }
  .hero-stats { margin-top: 0.95rem; }
  .stats-panel { display: none; }
  .hero-actions .btn { padding: 0.62rem 0.9rem; font-size: 0.8rem; }
  .intro-quote p { font-size: 1.05rem; }
  .toolbar { gap: 0.1rem; padding: 0.28rem 0.3rem; }
  .tool { width: 2.25rem; height: 2.25rem; font-size: 0.68rem; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .hero { min-height: 0; padding: 2rem 1.25rem 2.6rem; }
  .emblem { width: 4.2rem; height: 4.2rem; margin-bottom: 0.8rem; }
  .hero-title { font-size: 3.15rem; }
  .hero-origin { margin-top: 0.55rem; padding: 0.24rem 0.85rem; }
  .hero-desc { max-width: 42rem; margin-top: 0.9rem; font-size: 0.86rem; line-height: 1.75; }
  .hero-stats { margin-top: 0.9rem; gap: 0.45rem; }
  .stats-panel .stat { padding: 0.55rem 1.2rem; }
  .hero-actions { margin-top: 1rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero { padding: 1.35rem 1rem 1.8rem; }
  .emblem { width: 4rem; height: 4rem; margin-bottom: 0.7rem; }
  .hero-origin, .hero-stats { display: none; }
  .hero-desc { font-size: 0.82rem; line-height: 1.7; }
  .hero-actions { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .stars, .nebula, .galaxy {
    opacity: 0.3 !important;
  }
  .shooting, .dust {
    display: none !important;
  }
}
