/* =========================================================
   base.css —— 全站基础层
   变量 / 重置 / 背景 / 导航 / 页头 / 按钮 / 页脚 / 通用组件
   ========================================================= */

/* ---------------- 变量 ---------------- */
:root {
  /* 底色：偏冷的深空，不是纯黑 */
  --bg: #05070e;
  --bg-1: #080b16;
  --bg-2: #0b0f1d;

  /* 文字 */
  --ink: #f2f5ff;
  --ink-2: #c3cbe4;
  --ink-3: #8c96b4;
  --ink-4: #5f6884;

  /* 主色：月光金 + 星蓝 + 星云紫 */
  --gold: #ffd79a;
  --gold-2: #ffbf70;
  --gold-3: #f0a44e;
  --blue: #8fb3ff;
  --violet: #b49bff;
  --cyan: #93e9ff;

  /* 线 / 面 */
  --line: rgba(160, 180, 255, 0.12);
  --line-2: rgba(170, 190, 255, 0.22);
  --line-3: rgba(190, 205, 255, 0.34);
  --glass: rgba(17, 23, 42, 0.55);
  --glass-2: rgba(22, 29, 52, 0.72);

  /* 版式 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 尺寸 */
  --nav-h: 68px;
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --radius: 20px;
  --radius-sm: 12px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* 阴影 */
  --shadow-sm: 0 4px 16px -6px rgba(0, 0, 0, 0.6);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 60px -12px rgba(255, 200, 130, 0.35);
}

/* ---------------- 重置 ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lenis 平滑滚动需要的样式 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: rgba(255, 215, 154, 0.26);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 215, 154, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 细滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #05070e; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 215, 154, 0.4), rgba(143, 179, 255, 0.4));
  border-radius: 99px;
  border: 2px solid #05070e;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 154, 0.65); }

/* ---------------- 背景层 ---------------- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 76% -6%, #16224a 0%, transparent 60%),
    radial-gradient(820px 560px at 6% 10%, #1a1236 0%, transparent 58%),
    radial-gradient(900px 900px at 50% 120%, #0d1730 0%, transparent 65%),
    linear-gradient(180deg, #05070e 0%, #070a14 42%, #04060c 100%);
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 星云色块 */
.nebula {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  filter: blur(46px) saturate(120%);
  opacity: 0.9;
  background:
    radial-gradient(closest-side, rgba(126, 96, 255, 0.17), transparent 72%) 22% 28% / 58vmax 58vmax no-repeat,
    radial-gradient(closest-side, rgba(56, 150, 255, 0.13), transparent 72%) 84% 60% / 50vmax 50vmax no-repeat,
    radial-gradient(closest-side, rgba(255, 176, 120, 0.07), transparent 70%) 62% 8% / 40vmax 40vmax no-repeat;
  animation: nebulaDrift 48s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes nebulaDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.07); }
}

/* 胶片噪点，让纯色渐变不那么"数码" */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* 顶部渐隐，让固定导航融入背景 */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.72) 0%, transparent 22%, transparent 82%, rgba(4, 6, 12, 0.6) 100%);
}

main { position: relative; z-index: 2; }

/* ---------------- 预加载 ---------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #04060c;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
#preloader.is-done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-moon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fffef7, #ffeecb 45%, #dcc59a 78%, #b9a179 100%);
  box-shadow:
    0 0 40px rgba(255, 226, 168, 0.5),
    0 0 100px rgba(255, 200, 130, 0.22);
  animation: preMoon 2.4s var(--ease-soft) infinite;
}
@keyframes preMoon {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.pre-text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.pre-bar {
  width: 132px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.pre-bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: preBar 1.5s var(--ease-soft) infinite;
}
@keyframes preBar {
  from { transform: translateX(-120%); }
  to { transform: translateX(360%); }
}

/* ---------------- 滚动进度 ---------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255, 215, 154, 0.1), var(--gold) 40%, var(--violet) 100%);
  box-shadow: 0 0 12px rgba(255, 200, 130, 0.6);
  pointer-events: none;
}

/* ---------------- 导航：浮动岛 ---------------- */
.nav-shell {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 clamp(12px, 2.4vw, 22px);
  pointer-events: none;
  transition: transform 0.62s var(--ease-out), opacity 0.4s var(--ease);
}
.nav-shell.is-hidden {
  transform: translateY(calc(-100% - 26px));
  opacity: 0;
}

.nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 9px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(160, 180, 255, 0.08);
  background: rgba(8, 11, 20, 0.34);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  pointer-events: auto;
  transition:
    background 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s;
}
.nav.is-scrolled {
  padding: 0 8px 0 16px;
  background: rgba(8, 11, 20, 0.74);
  border-color: var(--line-2);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 22px 44px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-moon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-image: url("../assets/img/moon.jpg");
  background-size: 128%;
  background-position: center;
  box-shadow:
    0 0 0 1px rgba(255, 235, 200, 0.22),
    0 0 18px rgba(255, 220, 160, 0.55);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}
/* 月亮上的字母 */
.brand-moon i {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: rgba(48, 33, 12, 0.85);
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.6);
  translate: 0 -0.5px;
}
.brand-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(circle at 72% 74%, rgba(40, 30, 15, 0.45), transparent 60%);
}
.brand-text {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-3);
  white-space: nowrap;
}
.brand-text b { color: var(--gold); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: 0.4s var(--ease);
}
.nav.is-scrolled .nav-links {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-links a.is-active {
  color: #0c1120;
  background: linear-gradient(135deg, #ffe7bd, #ffc97f);
  box-shadow: 0 4px 18px -6px rgba(255, 195, 110, 0.7);
  font-weight: 600;
}
.nav-links a .ni {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}
.nav-links a.is-active .ni { opacity: 0.9; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(255, 215, 154, 0.3);
  background: rgba(255, 215, 154, 0.05);
  transition: 0.35s var(--ease);
  white-space: nowrap;
  flex: none;
}
.nav-cta:hover {
  background: rgba(255, 215, 154, 0.13);
  border-color: rgba(255, 215, 154, 0.55);
  box-shadow: 0 0 26px -4px rgba(255, 200, 130, 0.4);
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle i {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: var(--ink-2);
  transform: translateX(-50%);
  transition: 0.35s var(--ease);
}
.nav-toggle i:nth-child(1) { top: 16px; }
.nav-toggle i:nth-child(2) { top: 22px; }
.nav-toggle.is-open i:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open i:nth-child(2) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* ---------------- 版心 ---------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 56px);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 40px);
}

/* ---------------- 页面头（子页面） ---------------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + clamp(52px, 8vw, 92px)) 0 clamp(30px, 4vw, 46px);
}
.page-head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 18px;
}
.page-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.24;
  letter-spacing: 0.01em;
}
.page-title em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.page-lead {
  margin-top: 16px;
  max-width: 34em;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.9;
}
.page-head-aside {
  display: flex;
  gap: 26px;
  padding-bottom: 6px;
}
.head-stat { text-align: left; }
.head-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 500;
}
.head-stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.head-rule {
  margin-top: clamp(26px, 3.5vw, 40px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), rgba(160, 180, 255, 0.04) 42%, transparent);
}

/* ---------------- 按钮：浮动式 ----------------
   两层"浮力"：
   1) translate 属性做常态轻浮（.is-float，微小位移，不干扰 transform）
   2) transform 做 hover/按下反馈（互不打架） */
.btn {
  --btn-y: 0;
  --btn-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.9);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(var(--btn-y));
  box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.4s var(--ease-out), box-shadow 0.45s var(--ease),
    background 0.4s, border-color 0.4s, translate 0.5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after { opacity: 1; }
.btn:hover {
  --btn-y: -3px;
  --btn-shadow: 0 26px 44px -22px rgba(0, 0, 0, 0.95);
}
.btn:active { --btn-y: 0; }
.btn > * { position: relative; z-index: 2; }
.btn > svg { position: relative; z-index: 2; }

/* 常态轻浮：只在关键 CTA 上用，幅度很小 */
@keyframes btnBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3.5px; }
}
.btn.is-float { animation: btnBob 7s var(--ease-soft) infinite; }
.btn.is-float:nth-child(2) { animation-duration: 8.4s; animation-delay: -2.2s; }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #fff0cf 0%, #ffd08a 46%, #f2ab58 100%);
  color: #241a08;
  font-weight: 600;
  box-shadow:
    0 14px 30px -12px rgba(255, 190, 110, 0.7),
    0 30px 60px -34px rgba(255, 170, 90, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover {
  box-shadow:
    0 20px 42px -14px rgba(255, 190, 110, 0.95),
    0 40px 70px -36px rgba(255, 170, 90, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}
.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ---------------- 点击水波纹（按钮 / 相片 / 标签共用） ---------------- */
.ripple {
  position: absolute;
  z-index: 9;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 246, 228, 0.55) 0%, rgba(255, 220, 170, 0.22) 45%, transparent 70%);
  transform: translateZ(0) scale(0);
  animation: rippleOut 0.72s var(--ease-out) forwards;
}
@keyframes rippleOut {
  0% { transform: scale(0); opacity: 0.85; }
  60% { opacity: 0.4; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------------- 3D 环绕导航（太阳系式） ---------------- */
.odus {
  position: fixed;
  right: clamp(12px, 2.2vw, 30px);
  bottom: clamp(16px, 2.6vw, 34px);
  width: 270px;
  height: 270px;
  z-index: 46;
  pointer-events: none;
  perspective: 620px;
  perspective-origin: 50% 52%;
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
}
.odus.show { opacity: 1; translate: 0 0; }

/* 一圈极淡的星云，让深色按钮在深色背景上也能读出来 */
.odus::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(120, 150, 255, 0.13), rgba(120, 150, 255, 0.04) 55%, transparent 76%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
/* 中心月亮在 z=25：转到后面的卫星被它挡住、前面的压在它上面 —— 真正的绕行遮挡 */
.odus-core { z-index: 25; }

.odus-plane {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* 轨道线：三条虚线椭圆，纯装饰 */
.odus-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(160, 180, 255, 0.13);
  translate: -50% -50%;
  rotate: -12deg;
  pointer-events: none;
}
.odus-ring.r1 { width: 148px; height: 66px; border-color: rgba(255, 215, 154, 0.26); }
.odus-ring.r2 { width: 200px; height: 90px; }
.odus-ring.r3 { width: 252px; height: 114px; border-color: rgba(147, 233, 255, 0.14); }

/* 中心的月亮 */
.odus-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 235, 200, 0.3),
    0 0 22px rgba(255, 210, 150, 0.55),
    0 0 52px rgba(255, 190, 120, 0.24);
  pointer-events: none;
}
.odus-core img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(1.4);
}
.odus-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.22), transparent 58%);
}
.odus-core-mark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: rgba(46, 32, 10, 0.88);
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.55);
}

/* 卫星按钮 */
.odus-sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(198, 214, 255, 0.42);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 58%),
    rgba(20, 27, 48, 0.94);
  color: #dbe4ff;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0);
  box-shadow:
    0 10px 24px -12px rgba(0, 0, 0, 0.95),
    0 0 16px -4px rgba(150, 180, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.35s var(--ease), border-color 0.35s, color 0.3s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.odus-sat:hover,
.odus-sat:focus-visible {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.24), transparent 58%),
    rgba(255, 215, 154, 0.22);
  border-color: rgba(255, 215, 154, 0.8);
  color: #fff8e8;
  box-shadow:
    0 12px 30px -10px rgba(255, 190, 110, 0.7),
    0 0 26px -4px rgba(255, 210, 150, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.odus-sat.is-active {
  background: linear-gradient(135deg, #ffe9bd, #f6b45f);
  border-color: transparent;
  color: #241a08;
  box-shadow:
    0 12px 30px -10px rgba(255, 190, 110, 0.9),
    0 0 30px -6px rgba(255, 205, 130, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.odus-sat-in {
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* 卫星上的文字提示 */
.odus-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  translate: -50% 0;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(180, 200, 255, 0.2);
  background: rgba(9, 12, 22, 0.96);
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s var(--ease);
}
.odus-sat:hover .odus-tip,
.odus-sat:focus-visible .odus-tip {
  opacity: 1;
  translate: -50% 3px;
}

/* 平面坞被 3D 环绕接管时隐藏 */
.dock.is-hidden-by-orbit { display: none; }

/* ---------------- 浮动快捷坞（移动端 / 兜底） ---------------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 47;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(9, 12, 22, 0.76);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 26px 56px -30px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  translate: -50% 22px;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.6s var(--ease-out), opacity 0.45s var(--ease);
}
.dock.show { translate: -50% 0; opacity: 1; pointer-events: auto; }

.dock-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: 0.35s var(--ease);
}
.dock-btn:hover,
.dock-btn.is-active {
  color: #ffefd6;
  background: rgba(255, 215, 154, 0.1);
  border-color: rgba(255, 215, 154, 0.28);
  translate: 0 -2px;
}
.dock-btn.is-active { color: #241a08; background: linear-gradient(135deg, #ffe9bd, #ffc97f); border-color: transparent; }

/* 悬浮标签 */
.dock-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: rgba(9, 12, 22, 0.96);
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
}
.dock-btn:hover::after { opacity: 1; translate: -50% -2px; }
.dock-sep {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: var(--line);
}

/* ---------------- 玻璃卡 ---------------- */
.glass {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 31, 55, 0.66), rgba(10, 13, 24, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
/* 顶部一道高光 */
.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 215, 255, 0.4), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* 鼠标跟随光斑（配合 JS 更新 --mx/--my） */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 226, 180, 0.1), transparent 65%);
}
.spotlight:hover::after { opacity: 1; }

/* ---------------- 标签 / 徽章 ---------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
.chip-gold {
  color: var(--gold);
  border-color: rgba(255, 215, 154, 0.28);
  background: rgba(255, 215, 154, 0.07);
}

/* ---------------- 表单元素 ---------------- */
.input,
.textarea {
  width: 100%;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-4); }
.input:focus,
.textarea:focus {
  border-color: rgba(255, 215, 154, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 215, 154, 0.08);
}
.textarea { resize: vertical; min-height: 92px; }

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 9vw, 110px);
  padding: clamp(40px, 6vw, 64px) 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.2), rgba(4, 6, 12, 0.75));
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.footer-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 22em;
}
.footer-quote span { color: var(--gold); }

/* 她的名字：VV 花押 */
.vv-sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 7px 16px 7px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 215, 154, 0.2);
  background: rgba(255, 215, 154, 0.05);
  text-decoration: none;
  width: fit-content;
  transition: 0.4s var(--ease);
}
.vv-sign:hover {
  border-color: rgba(255, 215, 154, 0.45);
  background: rgba(255, 215, 154, 0.1);
}
.vv-sign-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0cf, #f2ab58);
  color: #241a08;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-indent: -0.06em;
  box-shadow: 0 0 18px -4px rgba(255, 190, 110, 0.8);
}
.vv-sign-txt {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.vv-sign-txt b { color: var(--gold); font-weight: 500; }

/* 页面里任何用名字的位置 */
[data-name] { color: var(--gold); }

/* VV 印章：子页面页头 / 卡片角落的小标记 */
.vv-stamp {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px dashed rgba(255, 215, 154, 0.34);
  background: rgba(255, 215, 154, 0.045);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: -0.07em;
  text-indent: -0.07em;
  rotate: -9deg;
  opacity: 0.9;
  transition: 0.5s var(--ease);
}
.vv-stamp:hover {
  rotate: 0deg;
  border-color: rgba(255, 215, 154, 0.6);
  background: rgba(255, 215, 154, 0.1);
}
.vv-seal {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 154, 0.3);
  background: rgba(255, 215, 154, 0.07);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: -0.05em;
  text-indent: -0.05em;
  flex: none;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(160, 180, 255, 0.07);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 9px #6ee7a8;
  animation: dotPulse 2.6s var(--ease-soft) infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.footer-actions { display: inline-flex; align-items: center; gap: 14px; }
.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-4);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
}
.linklike:hover { color: var(--gold); }

.credit {
  font-size: 10.5px;
  color: var(--ink-4);
  opacity: 0.6;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: 0.3s;
}
.credit:hover { opacity: 1; color: var(--ink-3); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 99px;
  border: 1px solid rgba(255, 215, 154, 0.3);
  background: rgba(12, 16, 27, 0.95);
  backdrop-filter: blur(14px);
  color: #ffeac8;
  font-size: 13px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  pointer-events: none;
  transition: 0.45s var(--ease-out);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.9);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------------- 自定义光标（桌面） ----------------
   层级必须压过所有浮层：口令弹窗 9000、预加载 300、灯箱 270……
   之前是 250，结果口令弹窗（9000）盖住光标，而 body.has-cursor 又把
   系统光标设成 none，两边都没了 —— 鼠标彻底看不见。
   光标是 pointer-events: none，放再高也不会挡住任何点击。 */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: #ffeac8;
  box-shadow: 0 0 10px rgba(255, 215, 154, 0.9);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 215, 154, 0.42);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s, opacity 0.3s;
}
.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 215, 154, 0.75);
  background: rgba(255, 215, 154, 0.07);
}
.cursor-ring.is-down { width: 22px; height: 22px; }
body.has-cursor { cursor: none; }
body.has-cursor a,
body.has-cursor button,
body.has-cursor label,
body.has-cursor [role="button"] { cursor: none; }

/* 输入框里换回系统光标。
   自制光标是个小圆点，看不出文本插入点在哪，打字很难受；
   系统 I-beam 才能准确指示"字会插在这里"。 */
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select { cursor: text; }

body.has-cursor input[type="checkbox"],
body.has-cursor input[type="radio"],
body.has-cursor input[type="range"] { cursor: pointer; }

/* 悬停在输入框上时，把自制光标收起来，避免和 I-beam 同时出现 */
body.has-cursor.is-typing .cursor-dot,
body.has-cursor.is-typing .cursor-ring { display: none; }

/* ---------------- 回到顶部 ---------------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 16, 28, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: 0.45s var(--ease-out);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--line-3); color: var(--gold); }

/* 3D 环绕坞占住右下角时，回到顶部挪到左下 */
html.orbit-on .to-top {
  right: auto;
  left: clamp(14px, 2.5vw, 28px);
}

/* 调试/截图模式（?instant=1）：过渡与动画瞬间到位，便于稳定取景 */
html.instant *,
html.instant *::before,
html.instant *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* ---------------- 通用入场 ----------------
   注意：默认可见。动画由 JS 在「进入视口时」施加，
   这样即使动画库没加载 / 动画中途中断，内容也不会消失。 */
.reveal { opacity: 1; }
.reveal:not(.in) { will-change: opacity, transform; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 30px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: rgba(9, 13, 24, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
    animation: menuIn 0.35s var(--ease-out);
  }
  .nav-links.is-open a { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
  }
  .page-head-aside { gap: 20px; width: 100%; }
  .head-stat b { font-size: 24px; }
  /* 移动端：快捷坞放到底部中间，回到顶部上移让位 */
  .to-top { bottom: calc(clamp(14px, 2.4vw, 26px) + 62px); }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav-cta { display: none; }
  .brand-text { font-size: 10px; letter-spacing: 0.18em; }
  .nav { padding: 0 7px 0 14px; gap: 10px; }
  .nav-shell { top: 10px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-bottom { justify-content: flex-start; }
  .page-head { padding-top: calc(var(--nav-h) + 52px); }
  .to-top {
    width: 40px;
    height: 40px;
    right: 14px;
  }
  /* 小屏快捷坞更紧凑 */
  .dock { gap: 2px; padding: 6px; bottom: 14px; }
  .dock-btn { width: 40px; height: 40px; }
  .dock-sep { margin: 0 1px; }
  .btn.is-float { animation: none; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* 安静模式：关掉装饰性循环动画（星轨旋转、光晕呼吸、按钮轻浮等） */
html.calm .nebula,
html.calm .moon-halo,
html.calm .moon-aura,
html.calm .satellite,
html.calm .orbit,
html.calm .core-ring,
html.calm .since-orb::after,
html.calm .status-dot,
html.calm .outro-stars span,
html.calm .scroll-cue i,
html.calm .pre-moon,
html.calm .pre-bar i,
html.calm .btn.is-float,
html.calm .gcard {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}

/* =========================================================
   彩蛋（eggs.js）
   全部挂在一个独立的 .egg-layer 上，默认不存在，
   触发后才创建，动画结束即移除，不占用任何常规布局。
   ========================================================= */
.egg-layer {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
}
.egg-canvas {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

/* 星空亮一下（Konami 触发时的极短脉冲） */
#sky.is-egg-pulse {
  animation: eggSkyPulse 3s var(--ease-soft) both;
}
@keyframes eggSkyPulse {
  0% { filter: none; }
  12% { filter: brightness(1.75) saturate(1.2); }
  100% { filter: none; }
}

/* ---------- 月亮回你一句话 ---------- */
.egg-bubble {
  position: fixed;
  z-index: 2;
  max-width: min(300px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 154, 0.32);
  background: rgba(9, 13, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.95),
    0 0 30px -12px rgba(255, 200, 130, 0.35);
  opacity: 0;
  translate: 0 8px;
  scale: 0.96;
  transition: opacity 0.42s var(--ease-out), translate 0.42s var(--ease-out), scale 0.42s var(--ease-out);
}
.egg-bubble.is-in { opacity: 1; translate: 0 0; scale: 1; }
/* 小箭头：气泡在月亮上方时朝下，翻到下方时朝上 */
.egg-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  translate: -50% 0;
  rotate: 45deg;
  background: rgba(9, 13, 24, 0.94);
  border-right: 1px solid rgba(255, 215, 154, 0.32);
  border-bottom: 1px solid rgba(255, 215, 154, 0.32);
}
.egg-bubble.is-below::after {
  bottom: auto;
  top: -5px;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 215, 154, 0.32);
  border-top: 1px solid rgba(255, 215, 154, 0.32);
}

/* 月亮被点到时的轻颤：很轻，像被戳了一下 */
.is-egg-shake { animation: eggShake 0.34s var(--ease-out); }
@keyframes eggShake {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -1.4deg; }
  60% { rotate: 1.1deg; }
  85% { rotate: -0.4deg; }
}

/* 月亮可以戳（只在有彩蛋时给 cursor 暗示，不影响布局） */
.moon,
.sky-moon,
.odus-core { cursor: pointer; }
.sky-moon,
.odus-core { pointer-events: auto; }

/* ---------- 星屑 ---------- */
.egg-flake {
  position: absolute;
  top: -6vh;
  font-family: var(--serif);
  line-height: 1;
  text-shadow: 0 0 10px currentColor;
  animation: eggFall linear forwards;
  will-change: transform, opacity;
}
@keyframes eggFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(var(--drift, 0px), 108vh, 0) rotate(var(--spin, 90deg)); opacity: 0; }
}

/* ---------- 深夜的一句话 ---------- */
.egg-night {
  margin: 18px 0 0;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(200, 210, 235, 0.52);
  border-left: 1px solid rgba(255, 215, 154, 0.28);
  padding-left: 12px;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 1.2s var(--ease-out) 0.5s, translate 1.2s var(--ease-out) 0.5s;
}
.egg-night.is-in { opacity: 1; translate: 0 0; }

/* ---------- 页脚的小点（几乎看不见，悬停才显形） ---------- */
.egg-dot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 1px;
  color: var(--ink-4);
  opacity: 0.18;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: 0.6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.egg-dot:hover,
.egg-dot:focus-visible {
  opacity: 0.85;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 205, 140, 0.8);
  outline: none;
}
/* 触屏没有 hover：给小点一点基础可见度，免得完全点不到 */
@media (hover: none) {
  .egg-dot { opacity: 0.34; }
}

/* ---------- 那封信 ---------- */
.egg-letter {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}
.egg-letter.is-in { opacity: 1; }
.egg-letter[hidden] { display: none; }

.egg-letter-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 42px) clamp(22px, 4vw, 40px) clamp(24px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 154, 0.22);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 219, 165, 0.1), transparent 62%),
    linear-gradient(165deg, rgba(22, 28, 50, 0.97), rgba(7, 10, 20, 0.99));
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.5s var(--ease-out);
}
.egg-letter.is-in .egg-letter-card { transform: none; }

.egg-letter-seal {
  position: absolute;
  right: clamp(20px, 4vw, 34px);
  top: clamp(20px, 4vw, 30px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed rgba(255, 215, 154, 0.4);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  rotate: -8deg;
  opacity: 0.8;
}

.egg-letter-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: rgba(255, 215, 154, 0.6);
  margin-bottom: 12px;
}
.egg-letter-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: #f3f5ff;
}
.egg-letter-body p {
  font-size: 14px;
  line-height: 2.05;
  color: rgba(214, 222, 245, 0.86);
  letter-spacing: 0.015em;
}
.egg-letter-body p + p { margin-top: 8px; }
.egg-letter-body p:last-child {
  color: var(--gold);
  margin-top: 14px;
}
.egg-letter-sign {
  margin-top: 24px;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.egg-letter-close {
  margin-top: 24px;
}

html.egg-noscroll,
html.egg-noscroll body { overflow: hidden; }

@media (max-width: 640px) {
  .egg-bubble { font-size: 13px; padding: 10px 13px; }
  .egg-letter-card { border-radius: 16px; }
  .egg-letter-body p { font-size: 13.5px; line-height: 1.95; }
}

/* 减少动效：不飘、不抖、不脉冲，只留静态的一句 */
@media (prefers-reduced-motion: reduce) {
  #sky.is-egg-pulse { animation: none; }
  .is-egg-shake { animation: none; }
  .egg-flake { animation: none; display: none; }
  .egg-bubble { transition: opacity 0.2s linear; translate: none; scale: 1; }
  .egg-letter-card { transform: none; }
}
