/* =========================================================
   我们的时光 · 两个人的宇宙
   深空蓝紫 · 星云柔光 · 星轨旅程
   ========================================================= */

:root {
  --space: #060817;
  --space-deep: #03040d;
  --panel: rgba(13, 18, 43, 0.82);
  --panel-solid: #10162f;
  --panel-soft: rgba(21, 27, 58, 0.68);

  --ink: #f4f3ff;
  --ink-soft: #bdc5e2;
  --ink-faint: #858faf;

  --rose: #f59bc4;
  --rose-deep: #ffc0dc;
  --rose-soft: rgba(229, 132, 190, 0.14);
  --violet: #a892ff;
  --cyan: #79dcf5;
  --gold: #f6cf9a;

  --line: rgba(176, 184, 235, 0.13);
  --line-strong: rgba(185, 177, 255, 0.28);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 12px 36px -22px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --shadow-md: 0 24px 60px -28px rgba(0, 0, 0, 0.88), 0 0 34px -24px rgba(145, 119, 255, 0.45);
  --shadow-lg: 0 40px 100px -35px rgba(0, 0, 0, 0.9), 0 0 60px -35px rgba(148, 116, 255, 0.4);

  --radius-sm: 12px;
  --radius: 19px;
  --radius-lg: 25px;
  --radius-xl: 30px;

  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC",
    "STSong", "Times New Roman", serif;

  --topbar-h: 68px;
  --tabbar-h: 68px;
}

/* =========================================================
   视觉方案 v1 令牌层（立体 3D 宇宙）
   与上方既有变量并存；新代码优先消费这里
   ========================================================= */
:root {
  /* —— 光源假设 —— */
  --light-key: #ffe9c9;              /* 主光 4300K，左上 42° */
  --light-fill: #5c7bc0;             /* 补光 7000K，右下 -12° */
  --light-rim: #79dcf5;              /* 轮廓光，背向 160° */

  /* —— 纵深 L0–L4 —— */
  --depth-0: 0;
  --depth-1: 1;
  --depth-2: 4;
  --depth-3: 10;
  --depth-4: 50;
  --depth-top: 90;
  --parallax-0: 0.02;
  --parallax-1: 0.06;
  --parallax-2: 0.16;
  --parallax-3: 1;
  --parallax-4: 1.25;
  --blur-far: 18px;
  --blur-mid: 9px;
  --blur-near: 0;

  /* —— 玻璃与材质 —— */
  --glass-bg: linear-gradient(155deg, rgba(38, 46, 88, 0.62), rgba(12, 16, 38, 0.86));
  --glass-blur: 18px;
  --glass-blur-lg: 24px;
  --glass-saturate: 135%;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(120, 110, 200, 0.18);
  --rim: linear-gradient(120deg, rgba(121, 220, 245, 0.55), rgba(168, 146, 255, 0.35) 55%, transparent 88%);
  --glow-rose: 0 0 42px rgba(245, 155, 196, 0.28);
  --glow-gold: 0 0 24px rgba(246, 207, 154, 0.35);
  --ao: inset -18px -14px 34px rgba(3, 5, 16, 0.82);
  --ao-soft: inset -10px -8px 22px rgba(3, 5, 16, 0.62);

  /* —— 亮面主按钮：浅底深字，全段 ≥7:1 —— */
  --btn-primary-bg: linear-gradient(135deg, #f7a6ce 0%, #e58dbe 48%, #b98be8 100%);
  --btn-primary-ink: #1c0c26;
  --btn-primary-disabled-bg: #2a3050;
  --btn-primary-disabled-ink: #939cbd;
  --on-primary: var(--btn-primary-ink);
  --focus-ring: 0 0 0 2px #060817, 0 0 0 4px #a892ff;

  /* —— 无模糊保底（实色阶梯，ΔL* ≥10） —— */
  --surface-panel: #1b2242;
  --surface-panel-2: #131a38;
  --surface-thin: #1e2547;
  --surface-float: #262f5c;
  --surface-float-2: #202850;

  /* —— 字阶与缓动 —— */
  --fs-kicker: 10.5px;
  --fs-caption: 12px;
  --fs-label: 13px;
  --fs-body: 15px;
  --fs-lead: 17px;
  --fs-title: 21px;
  --fs-display-s: 34px;
  --ease-out: cubic-bezier(0.22, 0.68, 0.24, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-enter: 520ms;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--space-deep); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--space);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 星空背景 ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 51% 39%, rgba(239, 150, 69, 0.09), transparent 24%),
    radial-gradient(ellipse at 46% 43%, rgba(61, 107, 175, 0.16), transparent 54%),
    radial-gradient(ellipse at 50% -18%, rgba(78, 62, 148, 0.28), transparent 58%),
    radial-gradient(ellipse at 18% 22%, rgba(44, 82, 140, 0.14), transparent 46%),
    linear-gradient(160deg, #080b1e 0%, #050717 44%, #03040e 100%);
}
/* 远景深空天体：模糊的大星球与大尺度光带，撑开背景纵深 */
.void-planet {
  position: absolute; z-index: 1; border-radius: 50%; opacity: 0.5;
  filter: blur(1.4px); will-change: transform;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 34% 30%, #6b5bb5, #3c3476 42%, #181a36 72%, rgba(10, 12, 29, 0) 100%);
  box-shadow: inset -32px -26px 60px rgba(2, 4, 14, 0.8), 0 0 90px rgba(120, 96, 210, 0.16);
}
.void-planet-a {
  width: 42vw; height: 42vw; min-width: 360px; min-height: 360px; max-width: 720px; max-height: 720px;
  right: -16vw; top: -14vw; opacity: 0.32; filter: blur(9px);
  animation: voidDrift 96s ease-in-out infinite;
}
.void-planet-b {
  width: min(26vw, 320px); height: min(26vw, 320px);
  left: -9vw; top: 56%; opacity: 0.34;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 34% 30%, #6fb2c9, #2f6d8e 40%, #152c46 70%, rgba(7, 11, 24, 0) 100%);
  box-shadow: inset -24px -20px 46px rgba(2, 4, 14, 0.82), 0 0 80px rgba(90, 190, 225, 0.14);
  animation: voidDrift 120s ease-in-out infinite reverse;
}
.void-planet-b i {
  position: absolute; left: 50%; top: 50%; width: 176%; height: 44%; border-radius: 50%;
  border: 1px solid rgba(180, 225, 255, 0.2); border-top-color: rgba(210, 240, 255, 0.38);
  border-bottom-color: transparent; transform: translate(-50%, -50%) rotate(-19deg);
}
.void-planet-c {
  width: min(8vw, 96px); height: min(8vw, 96px);
  right: 16%; top: 24%; opacity: 0.3;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle at 32% 30%, #e6b7d8, #9a6d9f 44%, #3d3049 76%, rgba(17, 16, 31, 0) 100%);
  box-shadow: inset -8px -8px 18px rgba(2, 4, 14, 0.7), 0 0 46px rgba(235, 168, 215, 0.18);
  animation: voidDrift 72s ease-in-out infinite;
}
.horizon-glow {
  position: absolute; z-index: 1; left: -12vw; right: -12vw; bottom: -20vh; height: 56vh;
  background: radial-gradient(ellipse at 50% 100%, rgba(238, 157, 83, 0.13), rgba(96, 74, 170, 0.16) 38%, rgba(40, 52, 110, 0.06) 58%, transparent 74%);
  filter: blur(10px); animation: horizonPulse 10s ease-in-out infinite;
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
/* 漂浮微尘：位于星空之上、噪点层 veil 之下 —— 这样它会吃到与背景同一层的
   颗粒质感与暗角，读起来是「空气里的尘」，而不是浮在画面上的一层贴纸。 */
.motes { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; }
.backdrop::before {
  content: ""; position: absolute; inset: -12%; z-index: 2; opacity: 0.86;
  background:
    radial-gradient(ellipse at 20% 18%, rgba(94, 66, 166, 0.1), transparent 42%),
    radial-gradient(ellipse at 78% 68%, rgba(42, 99, 153, 0.08), transparent 48%),
    radial-gradient(ellipse at 48% 46%, transparent 40%, rgba(2, 3, 10, 0.55) 100%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 4, 13, 0.1), transparent 20%, transparent 72%, rgba(3, 4, 13, 0.24));
}
.nebula { position: absolute; z-index: 2; border-radius: 50%; opacity: 0.48; will-change: transform; }
.nebula-a {
  width: 72vw; height: 62vw; top: -32vw; right: -20vw;
  background: radial-gradient(ellipse, rgba(121, 82, 199, 0.24), rgba(74, 70, 167, 0.08) 42%, transparent 70%);
  animation: nebulaDrift 34s ease-in-out infinite;
}
.nebula-b {
  width: 70vw; height: 64vw; bottom: -38vw; left: -24vw;
  background: radial-gradient(ellipse, rgba(32, 112, 160, 0.18), rgba(65, 59, 145, 0.07) 45%, transparent 72%);
  animation: nebulaDrift 42s ease-in-out infinite reverse;
}
.nebula-c {
  width: 58vw; height: 46vw; top: 24%; left: 27%;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(242, 154, 72, 0.11), transparent 34%),
    radial-gradient(ellipse at 50% 50%, rgba(67, 119, 190, 0.13), transparent 66%);
  animation: nebulaDrift 48s ease-in-out infinite, environmentPulse 9s ease-in-out infinite;
}
.galaxy-band {
  position: absolute; z-index: 2; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(160, 150, 220, 0.075), rgba(110, 120, 190, 0.026) 38%, transparent 68%);
  filter: blur(18px);
}
.galaxy-band-a {
  --band-rotation: -18deg;
  width: 160vw; height: 46vw; left: -30vw; top: 16%;
  transform: rotate(var(--band-rotation)); opacity: 0.9;
  animation: galaxyBreathe 12s ease-in-out infinite;
}
.galaxy-band-b {
  --band-rotation: 13deg;
  width: 126vw; height: 30vw; left: -8vw; top: 62%;
  transform: rotate(var(--band-rotation)); opacity: 0.55;
  animation: galaxyBreathe 15s ease-in-out infinite reverse;
}
.veil {
  position: absolute; inset: 0; z-index: 5; opacity: 0.045; mix-blend-mode: screen;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
@keyframes nebulaDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.5%, 3%, 0) scale(1.06); }
}
@keyframes environmentPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}
@keyframes galaxyBreathe {
  0%, 100% { opacity: 0.72; transform: rotate(var(--band-rotation, -18deg)) scale(1); }
  50% { opacity: 1; transform: rotate(var(--band-rotation, -18deg)) scale(1.025); }
}
@keyframes horizonPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes voidDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.6vw, 2.4vh, 0) scale(1.04); }
}

/* ---------- 启动 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: #060817;
  transition: opacity 0.45s ease;
}
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot-orbit {
  position: relative; width: 70px; height: 70px; border: 1px solid rgba(178, 160, 255, 0.35);
  border-radius: 50%; transform: rotate(-22deg); animation: bootSpin 2.4s linear infinite;
}
.boot-orbit i {
  position: absolute; width: 32px; height: 32px; left: 18px; top: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f5c6ee, #9b7ce5 48%, #3d356e 80%);
  box-shadow: 0 0 28px rgba(167, 129, 255, 0.55);
}
.boot-orbit span {
  position: absolute; width: 8px; height: 8px; left: 5px; top: 9px; border-radius: 50%;
  background: #d9f6ff; box-shadow: 0 0 14px #8ee8ff;
}
.boot-text { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.18em; }
@keyframes bootSpin { to { transform: rotate(338deg); } }

/* ---------- 通用控件 ---------- */
.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.screen {
  position: relative; z-index: 1; min-height: 100dvh; display: flex; align-items: center;
  justify-content: center; padding: 36px 20px;
}
.seal {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 22px;
  background: linear-gradient(145deg, rgba(44, 40, 91, 0.9), rgba(21, 26, 57, 0.9));
  border: 1px solid rgba(194, 174, 255, 0.2);
  box-shadow: 0 18px 40px -22px rgba(149, 112, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 22px;
}
.seal-sm { width: 50px; height: 50px; border-radius: 17px; margin-bottom: 15px; }
.mini-planet {
  position: relative; display: block; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffd4ed, #ad8cf4 48%, #554382 82%);
  box-shadow: 0 0 20px rgba(205, 157, 255, 0.5);
}
.mini-planet::after {
  content: ""; position: absolute; width: 42px; height: 13px; left: -7px; top: 8px;
  border: 1.5px solid rgba(210, 224, 255, 0.75); border-radius: 50%; transform: rotate(-20deg);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px;
  padding: 0 19px; border-radius: 13px; border: 1px solid transparent; font-size: 14px;
  font-weight: 600; letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  color: var(--btn-primary-ink); background: var(--btn-primary-bg);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 28px -20px rgba(0, 0, 0, 0.9);
}
.btn-primary:active:not(:disabled) { filter: brightness(0.97); }
.btn-primary:disabled {
  opacity: 1; color: var(--btn-primary-disabled-ink);
  background: var(--btn-primary-disabled-bg); box-shadow: none;
}
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-ghost, .btn-outline {
  color: var(--ink-soft); background: rgba(19, 25, 53, 0.72); border-color: var(--line);
}
.btn-ghost:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
  color: var(--ink); border-color: var(--line-strong); background: rgba(34, 39, 75, 0.82);
}
.btn-outline { color: var(--rose-deep); border-color: rgba(224, 137, 192, 0.28); }
.btn-danger-ghost { color: #f3a4b4; background: transparent; border-color: rgba(238, 124, 151, 0.22); }
.btn-danger-ghost:hover:not(:disabled) { background: rgba(238, 124, 151, 0.08); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn-code { height: 37px; padding: 0 14px; font-size: 12px; border-radius: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--ink-faint); cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { color: var(--ink); background: rgba(173, 166, 236, 0.1); }
.link-btn {
  display: block; margin: 18px auto 0; padding: 0; border: 0; background: none; color: var(--ink-faint);
  font-size: 12px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(170, 175, 212, 0.3);
  text-underline-offset: 4px;
}
.link-btn:hover { color: var(--ink-soft); }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; color: var(--ink-faint); }
.field-label em { font-style: normal; font-weight: 400; opacity: 0.75; }
.field-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.55; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line);
  outline: none; color: var(--ink); background: rgba(8, 12, 30, 0.64); font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  color-scheme: dark;
}
.input::placeholder { color: #656f90; }
.input:focus {
  border-color: rgba(173, 144, 255, 0.58); background: rgba(13, 17, 39, 0.9);
  box-shadow: 0 0 0 4px rgba(159, 128, 241, 0.1), 0 0 24px -12px rgba(159, 128, 241, 0.45);
}
.textarea { height: auto; min-height: 100px; padding: 11px 14px; line-height: 1.75; resize: vertical; }
.input-row { display: flex; gap: 9px; align-items: stretch; }
.input-row .input { flex: 1; }
.input-row .btn { align-self: center; }
.input-code { letter-spacing: 0.4em; text-align: center; font-size: 18px; text-transform: uppercase; font-weight: 600; }
.form-error { min-height: 0; margin: 0; font-size: 12px; color: #ffabbc; line-height: 1.5; }
.form-error:not(:empty) {
  padding: 9px 12px; border-radius: 10px; background: rgba(220, 94, 124, 0.08);
  border: 1px solid rgba(235, 120, 147, 0.16);
}
.seg {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(12, 16, 39, 0.7); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.seg-btn {
  padding: 8px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-faint);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  color: var(--ink); font-weight: 600; background: linear-gradient(135deg, rgba(113, 93, 185, 0.6), rgba(104, 74, 139, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px -8px rgba(152, 116, 233, 0.7);
}
.seg-sm { width: 100%; }
.seg-sm .seg-btn { flex: 1; }
.seg-nav { margin: 0 8px; }

/* ---------- 登录与空间引导 ---------- */
.auth-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1040px; display: grid;
  grid-template-columns: 1fr; gap: 42px; align-items: center;
}
.auth-aside { display: none; }
.auth-kicker, .section-kicker {
  margin-bottom: 10px; color: #a89cd4; font-size: 10px; font-weight: 600; letter-spacing: 0.28em;
}
.auth-title {
  margin-bottom: 16px; color: var(--ink); font-size: clamp(38px, 5vw, 58px); font-weight: 500;
  letter-spacing: 0.14em; line-height: 1.2; text-shadow: 0 0 34px rgba(181, 152, 255, 0.18);
}
.auth-sub { max-width: 28em; margin-bottom: 30px; color: var(--ink-soft); font-size: 15px; letter-spacing: 0.03em; }
.auth-points { display: flex; flex-direction: column; gap: 13px; }
.auth-points li { display: flex; align-items: center; gap: 11px; color: var(--ink-faint); font-size: 13px; }
.auth-points span { color: var(--rose); font-size: 11px; text-shadow: 0 0 10px var(--rose); }
.auth-card, .onboard-card {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 30px 27px 25px;
  border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(20, 25, 55, 0.88), rgba(10, 14, 34, 0.88));
  border: 1px solid rgba(182, 178, 237, 0.16); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.2);
}
.auth-card-head { margin-bottom: 20px; }
.auth-card-head h2, .onboard-head h1 { font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.auth-card-head p, .onboard-head p { margin-top: 7px; color: var(--ink-faint); font-size: 12px; line-height: 1.65; }
.auth-card .seg { margin-bottom: 18px; }
.auth-foot { margin-top: 15px; color: var(--ink-faint); font-size: 12px; text-align: center; }
.onboard-card { max-width: 450px; padding: 32px 27px 23px; }
.onboard-head { margin-bottom: 22px; text-align: center; }
.onboard-card .seg { width: 100%; margin-bottom: 20px; }
.onboard-card .seg-btn { flex: 1; }
.panel { display: flex; flex-direction: column; gap: 15px; }
.panel .btn { margin-top: 4px; }

/* ---------- 顶部导航 ---------- */
.app { position: relative; z-index: 1; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(5, 7, 20, 0.72);
  border-bottom: 1px solid rgba(166, 170, 222, 0.09); backdrop-filter: blur(20px) saturate(1.3);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  color: #fff; background: linear-gradient(145deg, #8c78e8, #b86cae);
  box-shadow: 0 8px 24px -12px rgba(174, 115, 232, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.brand-mark::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(185, 158, 255, 0.15); border-radius: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; }
.brand-text span {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #fff; background: linear-gradient(145deg, #ae89e8, #7958b4); font-size: 12px; font-weight: 600;
  box-shadow: 0 0 0 2px #090c20, 0 0 0 3px rgba(182, 147, 240, 0.28), 0 0 18px -6px rgba(192, 139, 255, 0.5);
  letter-spacing: 0;
}
.avatar.alt { background: linear-gradient(145deg, #e5a8c5, #aa648e); }

/* ---------- 宇宙概览 ---------- */
.main { position: relative; padding-top: 26px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 20px;
  min-height: 252px; padding: 30px 38px; border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 42%, rgba(149, 105, 211, 0.18), transparent 35%),
    radial-gradient(circle at 12% 0%, rgba(93, 128, 198, 0.12), transparent 42%),
    linear-gradient(130deg, rgba(20, 27, 61, 0.78), rgba(17, 15, 44, 0.72) 55%, rgba(35, 19, 52, 0.76));
  border: 1px solid rgba(177, 176, 232, 0.16); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(1.12);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 25%, #dbe5ff 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 74%, #d9cfff 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 18%, #fff 0 0.7px, transparent 1.2px),
    radial-gradient(circle at 90% 80%, #ffd5ee 0 1px, transparent 1.5px);
  background-size: 190px 170px, 250px 210px, 150px 140px, 220px 190px;
}
/* 跟随星系主光的微弱环境光，让玻璃面板也参与整个场景 */
.hero::after {
  content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 28%, rgba(255, 180, 96, 0.1), transparent 42%),
    radial-gradient(ellipse at 18% 82%, rgba(111, 166, 235, 0.08), transparent 46%);
  opacity: 0.72; mix-blend-mode: screen; animation: heroEnvironment 8s ease-in-out infinite;
}
.hero-glow {
  position: absolute; width: 330px; height: 330px; right: -80px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 125, 242, 0.12), transparent 68%); pointer-events: none;
}
.hero-main { position: relative; z-index: 2; min-width: 0; }
.hero-eyebrow { margin-bottom: 2px; color: #c3b9e6; font-size: 12px; letter-spacing: 0.25em; }
.hero-days { display: flex; align-items: baseline; gap: 9px; }
.hero-days-num {
  font-family: var(--font-serif); font-size: clamp(52px, 8vw, 76px); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
  color: #f4d6ee; background: linear-gradient(135deg, #ecf4ff 5%, #d7c3ff 46%, #ffb9dc 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(207, 155, 255, 0.18));
}
.hero-days-unit { color: #b7a6ce; font-size: 13px; letter-spacing: 0.12em; }
.hero-note { margin-top: 4px; color: #c9d1ec; font-size: 13px; letter-spacing: 0.04em; }
.hero-anniv { margin-top: 8px; color: #e6bcdd; font-size: 12px; letter-spacing: 0.05em; }
.hero-anniv:empty { display: none; }
.hero-stats-line {
  display: inline-block; margin-top: 17px; padding-top: 12px; border-top: 1px dashed rgba(173, 164, 221, 0.18);
  color: #9aa4c4; font-size: 12px; letter-spacing: 0.12em;
}
.hero-side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; }
.hero-cosmos { position: relative; width: 245px; height: 160px; perspective: 420px; transform-style: preserve-3d; }
.hero-planet {
  position: absolute; width: 96px; height: 96px; left: 76px; top: 26px; border-radius: 50%; overflow: visible;
  background:
    radial-gradient(circle at 26% 19%, rgba(255, 239, 211, 0.94) 0 2.6%, rgba(255, 183, 119, 0.24) 5%, transparent 14%),
    repeating-linear-gradient(-18deg, transparent 0 13px, rgba(233, 177, 223, 0.08) 14px 15px, transparent 16px 26px),
    radial-gradient(ellipse at 31% 67%, transparent 0 22%, rgba(255, 195, 226, 0.24) 24% 27%, transparent 31%),
    radial-gradient(ellipse at 67% 38%, rgba(45, 33, 75, 0.26) 0 8%, transparent 12%),
    linear-gradient(146deg, rgba(255, 181, 103, 0.15), transparent 35%),
    radial-gradient(circle at 30% 24%, #ffe1f3 0%, #d5a6ee 22%, #8b70bf 50%, #342d61 77%, #0d1029 100%);
  border: 1px solid rgba(231, 199, 245, 0.14);
  box-shadow:
    inset 10px 9px 16px rgba(255, 207, 151, 0.13), inset -22px -18px 34px rgba(4, 7, 25, 0.68),
    0 0 22px rgba(190, 132, 235, 0.44), 0 0 62px rgba(190, 132, 235, 0.2), 0 18px 28px rgba(0, 0, 0, 0.4);
  animation: planetBreathe 6s ease-in-out infinite;
}
.hero-planet::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(227, 210, 255, 0.12); box-shadow: 0 0 22px rgba(205, 168, 245, 0.18);
}
.hero-planet i { position: absolute; width: 15px; height: 8px; left: 20px; top: 23px; border-radius: 50%; background: rgba(70, 48, 113, 0.25); transform: rotate(-20deg); }
.hero-orbit { position: absolute; left: 42px; top: 47px; width: 165px; height: 63px; border: 1px solid rgba(215, 195, 255, 0.32); border-radius: 50%; transform: rotate(-18deg); }
.hero-orbit-b { left: 66px; top: 16px; width: 113px; height: 137px; border-color: rgba(135, 202, 238, 0.16); transform: rotate(42deg); }
.hero-moon {
  position: absolute; width: 15px; height: 15px; right: 30px; top: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #e9f8ff, #8ab5d4 70%); box-shadow: 0 0 18px rgba(134, 216, 255, 0.5);
  animation: moonFloat 5s ease-in-out infinite;
}
.hero-travelers { position: absolute; width: 142px; height: 90px; right: -3px; bottom: -3px; overflow: visible; animation: travelerFloat 4.6s ease-in-out infinite; }
.hero-people { display: flex; margin-top: 1px; padding-right: 6px; }
.hero-people .avatar { width: 30px; height: 30px; font-size: 10px; box-shadow: 0 0 0 3px #17142f; }
.hero-people .avatar + .avatar { margin-left: -10px; }
@keyframes heroEnvironment {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 0.92; }
}
@keyframes planetBreathe {
  0%, 100% { transform: translate3d(0, 0, 8px) rotateX(9deg) rotateY(-7deg) rotateZ(-1deg); }
  50% { transform: translate3d(0, -5px, 22px) rotateX(12deg) rotateY(-4deg) rotateZ(1deg); }
}
@keyframes moonFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-5px, 7px, 18px); } }
@keyframes travelerFloat {
  0%, 100% { transform: translate3d(0, 0, 32px) rotate(-2deg); }
  50% { transform: translate3d(-4px, -7px, 48px) rotate(1deg); }
}

/* ---------- 随手记 ---------- */
.view { margin-top: 28px; }
.quick {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 11px; margin-bottom: 28px;
  padding: 9px 10px 9px 13px; border-radius: 18px; background: rgba(13, 18, 42, 0.78);
  border: 1px solid rgba(169, 169, 226, 0.14); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick:focus-within { border-color: rgba(169, 141, 240, 0.38); box-shadow: 0 0 30px -18px rgba(174, 132, 255, 0.7); }
.quick .avatar { width: 31px; height: 31px; font-size: 11px; box-shadow: none; flex-shrink: 0; }
.quick-input { flex: 1; min-width: 0; height: 35px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 14px; }
.quick-input::placeholder { color: #747e9e; }
.quick-send {
  display: grid; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, #8b79e9, #ce7fb9); cursor: pointer; flex-shrink: 0;
  box-shadow: 0 8px 20px -12px rgba(194, 124, 218, 0.85); transition: transform 0.16s ease, opacity 0.2s ease;
}
.quick-send:active { transform: scale(0.94); }
.quick-send:disabled { opacity: 0.5; }

/* ---------- 记忆星图 ---------- */
.timeline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 2px 26px; }
.timeline-heading .section-kicker { margin-bottom: 4px; }
.timeline-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: 0.09em; }
.timeline-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 3px; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; }
.timeline-hint span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.timeline-hint em {
  font-style: normal; padding: 2px 8px; border: 1px solid rgba(178, 180, 236, 0.16); border-radius: 999px;
  background: rgba(18, 23, 50, 0.5); color: #8f98ba; font-size: 12px; letter-spacing: 0.08em;
}
.timeline { position: relative; isolation: isolate; min-height: 120px; padding: 8px 0 56px; }
.timeline::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 5%; bottom: 2%;
  width: min(720px, 92%); transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 24%, rgba(231, 157, 88, 0.1), transparent 46%),
    radial-gradient(ellipse at 46% 52%, rgba(126, 94, 205, 0.1), transparent 58%),
    radial-gradient(ellipse at 54% 80%, rgba(61, 133, 192, 0.09), transparent 62%);
  filter: blur(18px); pointer-events: none;
}
.star-trail { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* 从内到外：亮芯 → 光泽 → 光晕 → 外溢柔光，形成横截面渐变 */
.trail-bloom { fill: none; stroke: rgba(150, 128, 235, 0.22); stroke-width: 38; filter: blur(20px); }
.trail-aura { fill: none; stroke: url(#trailGradient); stroke-width: 24; opacity: 0.4; filter: blur(12px); }
.trail-halo { fill: none; stroke: url(#trailGradient); stroke-width: 13; opacity: 0.54; filter: blur(3.8px); }
.trail-core {
  fill: none; stroke: url(#trailGradient); stroke-width: 5.8; opacity: 0.95;
  filter: drop-shadow(0 0 7px rgba(186, 158, 255, 0.7)) drop-shadow(0 0 20px rgba(180, 148, 255, 0.32));
  stroke-linecap: round;
}
.trail-gloss { fill: none; stroke: url(#trailGloss); stroke-width: 3; opacity: 0.52; filter: blur(0.7px); stroke-linecap: round; }
.trail-shine { fill: none; stroke: rgba(250, 250, 255, 0.82); stroke-width: 1.1; opacity: 0.62; stroke-linecap: round; }
.trail-spark {
  fill: none; stroke: rgba(233, 242, 255, 0.92); stroke-width: 2.1; stroke-linecap: round;
  stroke-dasharray: 1.4 24; animation: trailFlow 14s linear infinite;
  filter: drop-shadow(0 0 4px rgba(180, 220, 255, 0.8));
}
.trail-dashes {
  fill: none; stroke: rgba(229, 237, 255, 0.45); stroke-width: 0.9; stroke-linecap: round;
  stroke-dasharray: 0.7 12; animation: trailFlow 26s linear infinite reverse;
}
@keyframes trailFlow { to { stroke-dashoffset: -320; } }
.orbit-travelers {
  position: absolute; left: 0; top: 0; z-index: 1; width: 106px; height: 67px;
  margin-left: -53px; margin-top: -62px; pointer-events: none; opacity: 0;
  transform-origin: 50% 85%; will-change: transform; filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.35));
}
.orbit-travelers svg { width: 100%; height: 100%; overflow: visible; }
.orbit-travelers::after {
  content: ""; position: absolute; width: 82px; height: 13px; left: 24px; bottom: -2px; z-index: -1;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(153, 133, 255, 0.25), transparent 70%);
}
.person .leg, .person .arm-linked, .dog-leg { transform-box: fill-box; transform-origin: top center; }
.person .leg-a, .dog-leg-a { animation: runLegA 0.72s ease-in-out infinite; }
.person .leg-b, .dog-leg-b { animation: runLegB 0.72s ease-in-out infinite; }
@keyframes runLegA { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-9deg); } }
@keyframes runLegB { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.planet-stop {
  --node-shift: 0px;
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  column-gap: 24px; align-items: start; min-height: 190px; margin-bottom: 38px;
  animation: stopReveal 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--stop-index, 0) * 70ms);
}
@keyframes stopReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.planet-stop:last-child { margin-bottom: 0; }
.planet-node {
  position: relative; grid-column: 2; grid-row: 1; width: 150px; min-height: 170px; padding: 20px 4px 14px;
  display: flex; flex-direction: column; align-items: center; border: 0; color: inherit; background: transparent;
  cursor: pointer; transform: translateX(var(--node-shift)); isolation: isolate;
}
/* 星球外的大气柔光，让星球与星轨、背景自然衔接 */
.planet-node::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -12px; width: 156px; height: 156px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, hsla(var(--planet-hue), 82%, 72%, 0.17), hsla(var(--planet-hue), 75%, 66%, 0.05) 46%, transparent 70%);
  filter: blur(5px);
}
/* 星球底部漫反射影，让它落在星轨所在的空间层上 */
.planet-node::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 84px; width: 94px; height: 24px;
  transform: translateX(-50%) rotate(-9deg); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, hsla(var(--planet-hue), 70%, 72%, 0.18), rgba(0, 0, 0, 0.34) 44%, transparent 72%);
  filter: blur(6px);
}
.planet-node:focus-visible { outline: 2px solid hsla(var(--planet-hue), 88%, 78%, 0.75); outline-offset: 6px; }
.planet-node .planet-sphere { transition: transform 0.24s cubic-bezier(0.22, 0.9, 0.3, 1), filter 0.24s ease; }
@media (hover: hover) and (pointer: fine) {
  .planet-node:hover .planet-sphere { transform: translateY(-3px) scale(1.045); filter: brightness(1.08); }
  .planet-node:hover .planet-open-hint { color: hsl(var(--planet-hue), 88%, 79%); opacity: 1; }
}
.planet-node:active .planet-sphere { transform: scale(0.975); }
.planet-node[aria-expanded="true"] .planet-open-hint { display: none; }
.planet-node[aria-expanded="true"] .planet-sphere { filter: brightness(1.08) saturate(1.08); }
.planet-node[aria-expanded="true"] .planet-count {
  color: #fff; border-color: hsla(var(--planet-hue), 78%, 82%, 0.45);
  background: hsla(var(--planet-hue), 68%, 58%, 0.2);
}
.planet-sphere {
  position: relative; z-index: 2; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
  overflow: visible; border: 1px solid hsla(var(--planet-hue), 72%, 82%, 0.12);
  background:
    /* 来自星系中心方向的暖色边缘光 */
    radial-gradient(circle at 27% 20%, rgba(255, 236, 196, 0.92) 0 2.5%, rgba(255, 185, 117, 0.22) 4%, transparent 13%),
    /* 细腻表面条纹与局部暗斑 */
    repeating-linear-gradient(-16deg, transparent 0 11px, hsla(var(--planet-hue), 64%, 80%, 0.075) 12px 13px, transparent 14px 24px),
    radial-gradient(ellipse at 28% 67%, transparent 0 20%, hsla(var(--planet-hue), 90%, 85%, 0.26) 22% 25%, transparent 29%),
    radial-gradient(ellipse at 68% 38%, hsla(var(--planet-hue), 54%, 18%, 0.24) 0 8%, transparent 12%),
    radial-gradient(ellipse at 57% 70%, hsla(var(--planet-hue), 58%, 16%, 0.2) 0 10%, transparent 15%),
    linear-gradient(145deg, rgba(255, 181, 103, 0.17), transparent 34%),
    radial-gradient(circle at 31% 23%, hsl(var(--planet-hue), 96%, 91%) 0%, hsl(var(--planet-hue), 74%, 68%) 24%, hsl(var(--planet-hue), 61%, 43%) 50%, hsl(var(--planet-hue), 58%, 19%) 76%, #080b1c 100%);
  box-shadow:
    inset 9px 8px 14px rgba(255, 205, 146, 0.12),
    inset -20px -18px 32px rgba(2, 6, 23, 0.68),
    inset -5px -4px 10px rgba(3, 6, 18, 0.52),
    0 0 18px hsla(var(--planet-hue), 88%, 74%, 0.42),
    0 0 48px hsla(var(--planet-hue), 86%, 64%, 0.2),
    0 16px 26px rgba(0, 0, 0, 0.38);
  animation: planetHover 6s ease-in-out infinite;
  transform-style: preserve-3d; filter: saturate(1.08) contrast(1.05);
}
.planet-stop:nth-of-type(even) .planet-sphere { animation-delay: -3s; }
/* 缓慢漂移的表面纹理层：让球体具有可感知的材质运动 */
.planet-surface {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 42%, hsla(var(--planet-hue), 80%, 86%, 0.18) 0 8%, transparent 18%),
    repeating-linear-gradient(-14deg, transparent 0 15px, hsla(var(--planet-hue), 72%, 82%, 0.13) 16px 18px, transparent 19px 31px),
    repeating-radial-gradient(circle at 62% 58%, transparent 0 13px, hsla(var(--planet-hue), 55%, 22%, 0.13) 14px 17px, transparent 18px 34px);
  background-size: 180% 160%, 210px 100%, 190px 190px;
  opacity: 0.72; mix-blend-mode: screen; animation: surfaceDrift 22s linear infinite;
}
/* 受光面与背光面的柔和分界，以及随球面弯曲的暖色边缘 */
.planet-terminator {
  position: absolute; inset: -1px; z-index: 2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 27% 20%, rgba(255, 226, 177, 0.18), transparent 24%),
    radial-gradient(circle at 68% 68%, rgba(2, 6, 22, 0.58), transparent 58%),
    linear-gradient(142deg, rgba(255, 183, 105, 0.13), transparent 42%, rgba(5, 9, 28, 0.18));
  opacity: 0.84;
}
/* 体积边缘光：随主光缓慢流动，增强“存在于空间”的感觉 */
.planet-rim {
  position: absolute; inset: -3px; z-index: 3; border-radius: inherit; pointer-events: none;
  padding: 1.5px; opacity: 0.78;
  background: conic-gradient(from 210deg, transparent 0deg, hsla(var(--planet-hue), 92%, 88%, 0.72) 32deg, transparent 70deg, hsla(var(--planet-hue), 82%, 76%, 0.22) 145deg, transparent 210deg, rgba(255, 190, 119, 0.5) 312deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 5px hsla(var(--planet-hue), 88%, 72%, 0.35));
  animation: rimLight 8s ease-in-out infinite;
}
@keyframes surfaceDrift { to { background-position: -210px 0, -210px 0, 0 -190px; } }
@keyframes rimLight { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
/* 后半圈轨道被星球遮住，形成真实的前后遮挡 */
.planet-sphere::before {
  content: ""; position: absolute; z-index: -1; width: 116px; height: 35px; left: -15px; top: 27px;
  border: 1.4px solid hsla(var(--planet-hue), 82%, 86%, 0.46); border-left-color: transparent;
  border-right-color: transparent; border-radius: 50%; transform: rotate(-17deg); opacity: 0.72;
  box-shadow: 0 0 8px hsla(var(--planet-hue), 88%, 72%, 0.2);
}
/* 前半圈轨道压到星球前方，并用暖光加强立体感 */
.planet-sphere::after {
  content: ""; position: absolute; z-index: 4; width: 116px; height: 35px; left: -15px; top: 27px;
  border-bottom: 1.4px solid hsla(var(--planet-hue), 88%, 88%, 0.72); border-left: 0; border-right: 0;
  border-radius: 50%; transform: rotate(-17deg); opacity: 0.86;
  clip-path: inset(48% 0 0 0);
  filter: drop-shadow(0 0 4px rgba(255, 207, 149, 0.35));
}
.planet-day {
  position: relative; z-index: 6; color: #fff; font-family: var(--font-serif); font-size: 29px; line-height: 1;
  text-shadow: 0 2px 8px rgba(18, 9, 40, 0.65); font-variant-numeric: tabular-nums;
}
.planet-meta {
  position: relative; z-index: 1; width: max-content; display: flex; flex-direction: column; align-items: center;
  margin-top: 11px; padding: 4px 10px 5px; border-radius: 13px;
  border: 1px solid hsla(var(--planet-hue), 58%, 82%, 0.08);
  background: radial-gradient(ellipse at 50% 55%, rgba(6, 9, 22, 0.6), rgba(6, 9, 22, 0.24) 62%, rgba(6, 9, 22, 0) 100%);
}
.planet-month { margin-top: 0; color: #e3e6f7; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-shadow: 0 1px 8px rgba(3, 5, 14, 0.85); }
.planet-year { margin-top: 1px; color: #9aa4c6; font-size: 12px; letter-spacing: 0.14em; text-shadow: 0 1px 8px rgba(3, 5, 14, 0.85); }
.planet-count { margin-top: 5px; padding: 3px 9px; border: 1px solid hsla(var(--planet-hue), 65%, 78%, 0.22); border-radius: 999px; color: hsla(var(--planet-hue), 72%, 86%, 0.92); font-size: 12px; letter-spacing: 0.06em; background: hsla(var(--planet-hue), 55%, 55%, 0.12); backdrop-filter: blur(3px); }
.planet-open-hint { margin-top: 6px; color: #9aa4c6; font-size: 12px; letter-spacing: 0.12em; opacity: 0.9; transition: opacity 0.2s ease, transform 0.2s ease; }
.planet-events {
  width: 100%; max-width: 425px; justify-self: center; grid-row: 1;
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1), visibility 0s 0.34s;
}
.planet-stop:nth-of-type(odd) .planet-events { grid-column: 1; }
.planet-stop:nth-of-type(even) .planet-events { grid-column: 3; }
.planet-stop.is-expanded .planet-events { grid-template-rows: 1fr; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.planet-events-inner { min-height: 0; overflow: hidden; }
.planet-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 2px 12px; padding-right: 86px; }
.planet-close {
  position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; height: 33px; padding: 0 12px;
  border: 1px solid hsla(var(--planet-hue), 62%, 76%, 0.28); border-radius: 999px; color: #bcc3dd;
  background: rgba(12, 16, 37, 0.78); font-size: 12px; cursor: pointer; transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.planet-close:hover { color: #fff; border-color: hsla(var(--planet-hue), 75%, 78%, 0.5); background: rgba(26, 30, 60, 0.9); }
.planet-close i { font-style: normal; font-size: 15px; line-height: 0; transform: translateY(-1px); }
.planet-kicker { margin-bottom: 2px; color: hsla(var(--planet-hue), 75%, 80%, 0.72); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; }
.planet-header h3 { color: #e9e9f8; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; }
.planet-header h3 span { margin-left: 5px; color: var(--ink-faint); font-size: 12px; font-weight: 400; }
.planet-relative { padding-top: 12px; color: var(--ink-faint); font-size: 12px; white-space: nowrap; }
.planet-entry + .planet-entry { margin-top: 13px; }
@keyframes planetHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-6deg) rotateZ(-1deg); }
  50% { transform: translate3d(0, -5px, 16px) rotateX(11deg) rotateY(-3deg) rotateZ(1deg); }
}

/* ---------- 记录卡片 ---------- */
.card {
  position: relative; padding: 20px 21px; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 23, 51, 0.92), rgba(11, 15, 36, 0.9));
  border: 1px solid rgba(166, 170, 224, 0.13); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px); animation: cardIn 0.42s cubic-bezier(0.22, 0.8, 0.3, 1) both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before {
  content: ""; position: absolute; width: 34px; height: 1px; left: 20px; top: 0;
  background: linear-gradient(90deg, rgba(197, 169, 255, 0.65), transparent); opacity: 0.65;
}
.card:hover { transform: translateY(-2px); border-color: rgba(181, 164, 236, 0.25); box-shadow: var(--shadow-md); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.card-date { display: flex; align-items: center; gap: 2px 0; flex-wrap: wrap; min-width: 0; padding-top: 2px; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.03em; }
.card-date .d { white-space: nowrap; }
.card-date .d:not(:last-child)::after { content: "·"; margin: 0 7px; opacity: 0.5; }
.card-date .mood-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-right: 8px;
  border: 1px solid rgba(221, 150, 205, 0.12); border-radius: 8px; background: var(--rose-soft); font-size: 13px; line-height: 1;
}
.card-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0.42; transition: opacity 0.2s ease; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; }
.card-actions .icon-btn { width: 30px; height: 30px; border-radius: 9px; }
.card-title { margin-bottom: 7px; color: #f1effc; font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: 0.02em; word-break: break-word; }
.card-body { color: var(--ink-soft); font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.card-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { display: inline-block; margin-top: 7px; padding: 0; border: 0; background: none; color: var(--rose-deep); font-size: 12px; cursor: pointer; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-faint); font-size: 12px; }
.card-foot .avatar { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }

/* ---------- 回应 ---------- */
.replies { margin-top: 11px; }
.reply-bar { display: flex; align-items: center; gap: 14px; }
.heart-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px 0 9px; border-radius: 999px;
  border: 1px solid rgba(224, 137, 188, 0.2); background: rgba(217, 126, 181, 0.045); color: rgba(233, 158, 201, 0.72);
  font-size: 12px; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.heart-btn:hover { border-color: rgba(232, 145, 199, 0.42); background: rgba(217, 126, 181, 0.09); }
.heart-btn.is-on { color: #ffc0df; background: rgba(224, 126, 183, 0.13); border-color: rgba(237, 149, 204, 0.38); }
.heart-btn.is-on svg { animation: heartPop 0.32s ease; }
.heart-btn span { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes heartPop { 0% { transform: scale(0.65); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
.reply-open { padding: 0; border: 0; background: none; color: var(--ink-faint); font-size: 12px; cursor: pointer; transition: color 0.18s ease; }
.reply-open:hover { color: var(--rose-deep); }
.reply-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.reply-line { display: flex; align-items: baseline; gap: 6px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.reply-line b { color: #d8abd0; font-weight: 600; flex-shrink: 0; }
.reply-line span { word-break: break-word; }
.reply-x { margin-left: auto; padding: 0 2px; border: 0; background: none; color: var(--ink-faint); font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.5; }
.reply-x:hover { color: #ffabbc; opacity: 1; }
.reply-form { display: flex; gap: 8px; margin-top: 10px; }
.reply-input { flex: 1; min-width: 0; height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: rgba(7, 11, 28, 0.65); font-size: 12px; }
.reply-input:focus { border-color: rgba(171, 141, 239, 0.5); box-shadow: 0 0 0 3px rgba(171, 141, 239, 0.08); }
.reply-send { height: 35px; padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #8974df, #c576ae); font-size: 12px; font-weight: 600; cursor: pointer; }
.reply-send:disabled { opacity: 0.5; }

/* ---------- 媒体 ---------- */
.media-grid { display: grid; gap: 5px; margin-top: 14px; border-radius: 14px; overflow: hidden; }
.media-grid[data-count="1"] { grid-template-columns: 1fr; max-width: 460px; }
.media-grid[data-count="2"] { grid-template-columns: 1fr 1fr; max-width: 520px; }
.media-grid[data-count="4"] { grid-template-columns: 1fr 1fr; max-width: 520px; }
.media-grid[data-count="3"], .media-grid[data-count="5"], .media-grid[data-count="6"],
.media-grid[data-count="7"], .media-grid[data-count="8"], .media-grid[data-count="9"] { grid-template-columns: repeat(3, 1fr); }
.media-grid[data-count="5"] .media-item:nth-child(4) { grid-column: span 2; aspect-ratio: 2 / 1; }
.media-item { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: #171c35; cursor: zoom-in; line-height: 0; }
.media-grid[data-count="1"] .media-item { aspect-ratio: 4 / 3; }
.media-grid[data-count="1"] .media-item.is-video { aspect-ratio: 16 / 9; }
.media-item img, .media-item video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1); }
.media-item:hover img { transform: scale(1.04); }
.media-item .play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(4, 6, 20, 0.04), rgba(4, 6, 20, 0.35)); }
.media-item .play-badge svg { width: 38px; height: 38px; color: #fff; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)); }
.media-more { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(8, 10, 27, 0.65); font-family: var(--font-serif); font-size: 19px; font-weight: 600; }

/* ---------- 空状态 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; padding: 42px 24px 60px; color: var(--ink-faint); text-align: center; }
.empty-art {
  display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 19px; border-radius: 50%;
  color: rgba(200, 166, 242, 0.8); background: radial-gradient(circle at 35% 28%, rgba(110, 91, 178, 0.36), rgba(36, 33, 77, 0.42));
  border: 1px solid rgba(179, 150, 234, 0.16); box-shadow: 0 0 38px -16px rgba(157, 113, 228, 0.55);
}
.empty h3 { margin-bottom: 6px; color: var(--ink-soft); font-size: 16px; font-weight: 500; letter-spacing: 0.03em; }
.empty p { max-width: 24em; font-size: 13px; line-height: 1.75; }
.empty .btn { margin-top: 18px; }

/* ---------- 日历 ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cal-card { padding: 17px 17px 13px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 15px; }
.cal-head h2 { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.12em; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 8px; color: var(--ink-faint); font-size: 12px; text-align: center; letter-spacing: 0.05em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 46px; gap: 4px; }
.cal-cell {
  position: relative; display: grid; place-items: center; aspect-ratio: auto; border: 0; border-radius: 12px;
  color: var(--ink-soft); background: transparent; font-family: var(--font-serif); font-size: 15px; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.cal-cell:hover { color: var(--ink); background: rgba(163, 137, 231, 0.1); }
.cal-cell.is-out { color: var(--ink-faint); }
.cal-cell.is-today { box-shadow: inset 0 0 0 1px rgba(130, 211, 239, 0.45); color: #bceeff; }
.cal-cell.has-entry::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 7px var(--rose); }
.cal-cell.is-selected { color: #fff; font-weight: 600; background: linear-gradient(135deg, #6b5dbb, #98598f); box-shadow: 0 8px 20px -12px rgba(187, 120, 206, 0.85); }
.cal-cell.is-selected::after { background: #fff; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 4px 2px; border-top: 1px dashed var(--line); color: var(--ink-faint); font-size: 12px; }
.cal-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 7px var(--rose); }
.cal-day-title { margin-bottom: 12px; padding-left: 2px; color: var(--ink-soft); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; }
.cal-day-list { display: flex; flex-direction: column; gap: 12px; }
.cal-day-list .entry, .planet-entry .entry { display: block; }
.cal-day-list .entry-rail, .planet-entry .entry-rail { display: none; }

/* ---------- 相册 ---------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 17px; padding-left: 2px; }
.section-head h2 { font-size: 17px; font-weight: 500; letter-spacing: 0.1em; }
.section-head p { color: var(--ink-faint); font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery.is-empty { display: block; }
.gallery-item { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid rgba(171, 176, 225, 0.1); border-radius: 15px; overflow: hidden; background: #151a32; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item .g-date { position: absolute; left: 7px; bottom: 7px; padding: 3px 8px; border-radius: 999px; color: #fff; background: rgba(6, 8, 24, 0.58); backdrop-filter: blur(7px); font-size: 12px; letter-spacing: 0.03em; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(6, 8, 23, 0.88); border-top: 1px solid rgba(166, 170, 222, 0.11); backdrop-filter: blur(20px) saturate(1.3);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; border: 0; background: none; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; cursor: pointer; transition: color 0.18s ease; }
.tab.is-active { color: #d1b9ff; }
.tab-fab { position: relative; }
.fab { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -22px; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #8d78e7, #cb79b1); box-shadow: 0 12px 28px -12px rgba(183, 114, 214, 0.9), 0 0 0 5px rgba(7, 9, 25, 0.95); transition: transform 0.18s ease; transform: rotate(45deg); }
.fab svg { transform: rotate(-45deg); }
.tab-fab:active .fab { transform: rotate(45deg) scale(0.94); }

/* ---------- 抽屉 ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(1, 2, 10, 0.7); backdrop-filter: blur(6px); animation: fadeIn 0.24s ease both; }
.sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 580px; max-height: 92dvh;
  overflow: hidden; border: 1px solid rgba(174, 173, 228, 0.15); border-bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(155deg, #141a36, #0b1027); box-shadow: 0 -30px 80px -25px rgba(0, 0, 0, 0.75);
  animation: sheetUp 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.sheet-narrow { max-width: 460px; }
@keyframes sheetUp { from { transform: translateY(7%); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet-head h2 { flex: 1; font-size: 16px; font-weight: 500; letter-spacing: 0.07em; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(10, 14, 33, 0.96); flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#composer .grid-2 { grid-template-columns: 1fr; gap: 16px; }
#composer .moods { gap: 8px; }
.moods { display: flex; flex-wrap: wrap; gap: 7px; }
.mood { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; background: rgba(10, 14, 33, 0.65); font-size: 19px; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.mood:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mood.is-active { background: var(--rose-soft); border-color: rgba(221, 143, 198, 0.38); box-shadow: 0 0 0 3px rgba(204, 130, 190, 0.07); }
.more-toggle { align-self: flex-start; display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border: 1px dashed rgba(172, 150, 219, 0.3); border-radius: 999px; background: transparent; color: var(--ink-faint); font-size: 12px; cursor: pointer; transition: color 0.18s ease, border-color 0.18s ease; }
.more-toggle:hover { color: var(--rose-deep); border-color: rgba(221, 143, 198, 0.45); }
.more-fields { display: flex; flex-direction: column; gap: 14px; }
.invite-done { padding: 13px 16px; border: 1px dashed rgba(206, 143, 194, 0.22); border-radius: 14px; color: #d8aecf; background: rgba(204, 127, 181, 0.07); font-size: 12px; text-align: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px; border: 1.5px dashed rgba(166, 151, 214, 0.3); border-radius: 15px; color: var(--ink-faint); background: rgba(12, 17, 39, 0.5); text-align: center; cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease; }
.dropzone:hover, .dropzone.is-over { border-color: rgba(179, 142, 238, 0.58); background: rgba(72, 50, 105, 0.15); }
.dropzone p { color: var(--ink-soft); font-size: 13px; }
.dropzone span { color: var(--ink-faint); font-size: 12px; }
.dropzone svg { color: #b99add; }
.media-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.media-preview:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #171c35; }
.thumb img, .thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; color: #fff; background: rgba(5, 7, 20, 0.65); cursor: pointer; backdrop-filter: blur(4px); }
.thumb .thumb-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; color: #fff; background: rgba(5, 7, 20, 0.58); font-size: 11px; }
.thumb .thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); }
.thumb .thumb-bar i { display: block; width: 30%; height: 100%; background: linear-gradient(90deg, #a58be9, #ed9bc8); animation: barSlide 1.1s ease-in-out infinite; }
@keyframes barSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.invite-card { padding: 17px 18px; border: 1px solid rgba(191, 155, 222, 0.16); border-radius: 17px; background: linear-gradient(135deg, rgba(79, 58, 121, 0.25), rgba(113, 57, 99, 0.18)); }
.invite-label { margin-bottom: 4px; color: #b5a4ce; font-size: 10px; letter-spacing: 0.17em; }
.invite-row { display: flex; align-items: center; gap: 12px; }
.invite-row strong { color: #e4c2e4; font-family: var(--font-serif); font-size: 25px; font-weight: 500; letter-spacing: 0.18em; }
.invite-hint { margin-top: 7px; color: var(--ink-faint); font-size: 12px; line-height: 1.65; }
.members { display: flex; flex-direction: column; gap: 8px; }
.member { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 14, 33, 0.6); font-size: 13px; }
.member .avatar { width: 26px; height: 26px; font-size: 10px; box-shadow: none; }
.member small { margin-left: auto; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- 大图与提示 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(2, 3, 11, 0.96); backdrop-filter: blur(10px); animation: fadeIn 0.2s ease both; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: min(1120px, 92vw); max-height: 82dvh; }
.lb-stage img, .lb-stage video { display: block; max-width: 100%; max-height: 82dvh; border-radius: 13px; box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.85); }
.lb-close, .lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); cursor: pointer; backdrop-filter: blur(8px); transition: background 0.18s ease; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lb-close { top: 18px; right: 18px; width: 42px; height: 42px; }
.lb-nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 60px; color: rgba(255, 255, 255, 0.72); font-size: 12px; letter-spacing: 0.04em; line-height: 1.6; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 26px); z-index: 90; max-width: 86vw; padding: 10px 18px; border: 1px solid rgba(192, 172, 235, 0.16); border-radius: 999px; color: #f2ecff; background: rgba(24, 22, 51, 0.94); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.75); font-size: 12px; letter-spacing: 0.02em; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity 0.24s ease, transform 0.24s ease; backdrop-filter: blur(12px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { height: 132px; margin-left: 74px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(25, 30, 62, 0.6) 20%, rgba(48, 47, 87, 0.72) 40%, rgba(25, 30, 62, 0.6) 60%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton + .skeleton { margin-top: 14px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* ---------- 无模糊保底（低端设备 / 不支持 backdrop-filter） ---------- */
.no-blur .topbar { background: var(--surface-panel-2); }
.no-blur .seg { background: var(--surface-thin); }
.no-blur .auth-card { background: linear-gradient(160deg, var(--surface-panel), var(--surface-panel-2)); }
.no-blur .hero { background: linear-gradient(155deg, var(--surface-panel), var(--surface-panel-2)); }
.no-blur .quick { background: var(--surface-panel); }
.no-blur .card { background: linear-gradient(160deg, var(--surface-panel), var(--surface-panel-2)); }
.no-blur .cal-card { background: var(--surface-panel); }
.no-blur .tabbar { background: var(--surface-panel-2); }
.no-blur .planet-meta { background: var(--surface-panel-2); }
.no-blur .planet-count { background: rgba(19, 26, 56, 0.92); }
.no-blur .toast { background: var(--surface-float); }
.no-blur .gallery-item .g-date { background: var(--surface-float-2); }
.no-blur .lb-close, .no-blur .lb-nav { background: var(--surface-float-2); }
.no-blur .topbar, .no-blur .seg, .no-blur .auth-card, .no-blur .hero,
.no-blur .quick, .no-blur .card, .no-blur .cal-card, .no-blur .tabbar,
.no-blur .planet-meta, .no-blur .planet-count, .no-blur .toast,
.no-blur .gallery-item .g-date, .no-blur .lb-close, .no-blur .lb-nav,
.no-blur .sheet-backdrop, .no-blur .thumb-x, .no-blur .lightbox {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 859px) {
  .seg-desktop { display: none; }
  .main { padding-bottom: calc(var(--tabbar-h) + 44px); }
  .orbit-travelers { display: none; }
}
@media (min-width: 860px) {
  :root { --topbar-h: 74px; }
  .seg-desktop { display: inline-flex; }
  .tabbar { display: none; }
  .main { padding-top: 30px; padding-bottom: 80px; }
  .auth-inner { grid-template-columns: minmax(0, 1fr) 430px; gap: 70px; }
  .auth-aside { display: block; }
  .cal-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .sheet-layer { align-items: center; padding: 24px; }
  .sheet { max-height: 86dvh; border-bottom: 1px solid rgba(174, 173, 228, 0.15); border-radius: var(--radius-xl); animation: sheetPop 0.26s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
  @keyframes sheetPop { from { transform: scale(0.97) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
  .toast { bottom: 34px; }
  .lb-close { top: 26px; right: 30px; }
  .lb-prev { left: 34px; }
  .lb-next { right: 34px; }
}
@media (max-width: 720px) {
  .shell { padding: 0 16px; }
  .cal-grid { grid-auto-rows: 44px; }
  .void-planet-a { opacity: 0.3; filter: blur(10px); }
  .void-planet-b { opacity: 0.22; filter: blur(8px); }
  .void-planet-c { opacity: 0.2; }
  .galaxy-band-a { opacity: 0.7; }
  .galaxy-band-b { opacity: 0.4; }
  .main { padding-top: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 118px; gap: 5px; min-height: 215px; padding: 25px 21px; border-radius: 25px; }
  .hero-days-num { font-size: clamp(46px, 14vw, 62px); }
  .hero-note { max-width: 19em; font-size: 12px; }
  .hero-stats-line { font-size: 12px; letter-spacing: 0.06em; }
  .hero-cosmos { width: 180px; height: 145px; transform: scale(0.72); transform-origin: right center; }
  .hero-side { width: 118px; overflow: visible; }
  .hero-people { margin-top: -9px; }
  .timeline-heading { display: block; margin-bottom: 24px; }
  .timeline-heading h2 { font-size: 19px; }
  .timeline-hint { margin-top: 8px; font-size: 12px; }
  .planet-stop { grid-template-columns: 74px minmax(0, 1fr); column-gap: 12px; min-height: 132px; margin-bottom: 28px; }
  .planet-node { grid-column: 1; width: 74px; min-height: 132px; padding: 13px 1px 10px; transform: none; align-items: flex-start; }
  .planet-sphere { width: 62px; height: 62px; margin-left: 6px; }
  .planet-sphere::before, .planet-sphere::after { width: 82px; height: 25px; left: -10px; top: 20px; }
  .planet-day { font-size: 22px; }
  .planet-meta {
    position: absolute; left: 70px; top: 14px; margin: 0; padding: 6px 11px 7px;
    width: max-content; max-width: min(62vw, 220px); align-items: flex-start; border-radius: 13px;
    border: 1px solid hsla(var(--planet-hue), 58%, 82%, 0.14);
    background: linear-gradient(115deg, rgba(8, 11, 26, 0.8), rgba(8, 11, 26, 0.46));
    backdrop-filter: blur(4px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
    transition: opacity 0.2s ease;
  }
  .planet-month { font-size: 12px; }
  .planet-year { font-size: 12px; letter-spacing: 0.1em; }
  .planet-count { margin-top: 4px; padding: 2px 7px; font-size: 12px; }
  .planet-open-hint { display: block; margin-top: 5px; font-size: 12px; letter-spacing: 0.06em; opacity: 0.8; }
  .planet-node::before { width: 110px; height: 110px; top: -4px; }
  .planet-node::after { width: 72px; height: 18px; top: 72px; }
  .planet-stop.is-expanded .planet-meta { opacity: 0; visibility: hidden; }
  .planet-close { height: 38px; padding: 0 14px; font-size: 12px; }
  .trail-bloom { stroke-width: 28; filter: blur(15px); }
  .trail-aura { stroke-width: 19; filter: blur(10px); }
  .trail-halo { stroke-width: 10.5; filter: blur(3.2px); }
  .trail-core { stroke-width: 5; }
  .trail-gloss { stroke-width: 2.5; }
  .trail-shine { stroke-width: 1; }
  .trail-spark { stroke-width: 1.9; }
  .planet-stop:nth-of-type(odd) .planet-events, .planet-stop:nth-of-type(even) .planet-events { grid-column: 2; max-width: none; }
  .planet-header { margin-bottom: 10px; }
  .planet-header h3 { font-size: 12px; }
  .planet-header h3 span { display: none; }
  .planet-relative { font-size: 12px; }
  .orbit-travelers { width: 98px; height: 64px; margin-left: -49px; margin-top: -57px; }
  .card { padding: 17px 16px; }
  .card-title { font-size: 16px; }
  .card-body { font-size: 13px; }
  .card-actions { opacity: 0.65; }
}
@media (max-width: 420px) {
  .topbar-inner { gap: 8px; }
  .cal-grid { grid-auto-rows: 42px; }
  .brand-text strong { font-size: 12px; }
  .brand-text span { max-width: 90px; }
  .brand-mark { width: 33px; height: 33px; }
  .top-actions { gap: 7px; }
  .hero { grid-template-columns: minmax(0, 1fr) 88px; padding: 23px 18px; }
  .hero-side { width: 88px; }
  .hero-cosmos { transform: scale(0.58); }
  .hero-people { display: none; }
  .hero-anniv { max-width: 22em; font-size: 12px; }
  .quick { border-radius: 16px; }
  .planet-stop { grid-template-columns: 64px minmax(0, 1fr); column-gap: 9px; min-height: 118px; }
  .planet-node { width: 64px; min-height: 118px; padding-top: 11px; }
  .planet-sphere { width: 53px; height: 53px; margin-left: 5px; }
  .planet-node::before { width: 94px; height: 94px; top: -2px; }
  .planet-node::after { width: 66px; height: 18px; top: 67px; }
  .planet-sphere::before, .planet-sphere::after { width: 70px; height: 22px; left: -9px; top: 17px; }
  .planet-day { font-size: 19px; }
  .planet-meta { left: 60px; top: 10px; padding: 4px 8px 5px; }
  .planet-month { font-size: 12px; }
  .planet-year { display: block; font-size: 12px; }
  .planet-count { margin-top: 3px; padding: 1px 6px; font-size: 12px; letter-spacing: 0; }
  .planet-header h3 { letter-spacing: 0.03em; }
  .planet-relative { display: none; }
  .orbit-travelers { width: 82px; height: 54px; margin-left: -41px; margin-top: -48px; }
  .card { padding: 16px 14px; }
  .card-date { font-size: 12px; }
  .card-date .d:not(:last-child)::after { margin: 0 5px; }
  .auth-card, .onboard-card { padding-left: 21px; padding-right: 21px; }
  .input-row { flex-wrap: wrap; }
  .input-row .btn-code { width: 100%; }
}

@media (max-width: 640px) {
  .planet-stop .planet-meta {
    left: 78px; right: auto; top: 12px;
    width: min(430px, calc(100vw - 110px)); max-width: none;
    flex-direction: row; align-items: center; flex-wrap: wrap;
    column-gap: 9px; row-gap: 2px; padding: 7px 12px; border-radius: 12px;
  }
  .planet-stop .planet-meta .planet-month { font-size: 12px; }
  .planet-stop .planet-meta .planet-year { font-size: 12px; }
  .planet-stop .planet-meta .planet-count { margin-top: 0; font-size: 12px; }
  .planet-stop .planet-meta .planet-open-hint { margin: 0 0 0 auto; font-size: 12px; }
}
@media (max-width: 420px) {
  .planet-stop .planet-meta { left: 72px; top: 10px; width: calc(100vw - 104px); padding: 6px 10px; column-gap: 7px; }
  .planet-stop .planet-meta .planet-month { font-size: 12px; }
  .planet-stop .planet-meta .planet-open-hint { font-size: 12px; letter-spacing: 0.02em; }
}

/* ---------- 可访问性与性能 ---------- */
:focus-visible { outline: 2px solid rgba(174, 145, 255, 0.72); outline-offset: 3px; }
::selection { color: #fff; background: rgba(170, 123, 222, 0.4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgba(148, 144, 192, 0.3); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(165, 152, 215, 0.48); background-clip: content-box; }
@media (hover: none) {
  .card:hover, .mood:hover, .btn-primary:hover:not(:disabled) { 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; }
  .orbit-travelers { will-change: auto; }
}
