/* 幸福计划 · 沉浸式视觉系统 (immersive.css)
   全部页面通用。独立于旧版 styles.css。
   ============================================
   Sections:
   1.  Tokens / fonts / resets
   2.  Paper background layers + keyframes
   3.  Reveal utility / hand-drawn rule
   4.  Topbar + bottom nav + icon buttons
   5.  Buttons (primary / ghost / link)
   6.  Cards (content / reading / summary / soft)
   7.  Question shell (option / mark / input / textarea)
   8.  Bottom sheet (feedback / preview / generic)
   9.  Home screen
   10. Map screen (day node + stream)
   11. Day-flow screen (header + progress)
   12. Reading standalone
   13. Report (hero + echo + stream)
   14. Onboarding (slides + redeem sheet)
   15. Catalog (stage card + day row)
   16. Journal (day block + entry)
   17. Reports list
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=JetBrains+Mono:wght@300;400&display=swap');

/* ============ 1. Tokens ============ */
:root {
  --paper:      #FBF6E9;
  --paper-2:    #F6EFDC;
  --paper-3:    #EFE5CC;
  --ink:        #2B221A;
  --ink-soft:   #5C4E3E;
  --ink-mute:   #95866F;
  --ink-faint:  #C6B89D;
  --ink-line:   rgba(43, 34, 26, 0.12);
  --ink-line-soft: rgba(43, 34, 26, 0.06);
  --amber:      #B26A2E;
  --amber-soft: #CC8E58;

  --correct:    #7A9A6F;
  --correct-bg: rgba(122, 154, 111, 0.12);
  --wrong:      #C77B6B;
  --wrong-bg:   rgba(199, 123, 107, 0.12);

  --stage-1: #F09866;
  --stage-2: #E5B14B;
  --stage-3: #7BBE7E;
  --stage-4: #7AA8D6;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --english-serif: "Cormorant Garamond", "EB Garamond", "Georgia", serif;
  --mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  min-height: 100vh; min-height: 100dvh;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(178, 106, 46, 0.25); color: var(--ink); }

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul { padding-left: 1.2em; }

/* container — keep readable on tablets too */
.app-shell {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 22px;
  padding-top: max(env(safe-area-inset-top), 18px);
  padding-bottom: max(env(safe-area-inset-bottom), 18px);
  min-height: 100vh; min-height: 100dvh;
}

/* ============ 2. Paper background ============ */
.paper-bg {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background: #FAF3DE;
}
.paper-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 10%, #FFFCF3 0%, transparent 55%),
    radial-gradient(100% 80% at 20% 100%, #EFE5CC 0%, transparent 60%),
    linear-gradient(180deg, #FFFCF3 0%, #FAF3DE 60%, #F2E8CC 100%);
}
.paper-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.30  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  mix-blend-mode: multiply; opacity: 0.08; pointer-events: none;
}
.paper-light, .paper-light-2 {
  position: fixed; pointer-events: none; border-radius: 50%; z-index: -2;
  filter: blur(10px); mix-blend-mode: soft-light;
}
.paper-light {
  top: -12vh; right: -18vw; width: 80vw; height: 50vh;
  background: radial-gradient(circle, rgba(255,250,225,0.95) 0%, transparent 65%);
  animation: paper-drift 22s ease-in-out infinite;
}
.paper-light-2 {
  bottom: -25vh; left: -20vw; width: 90vw; height: 60vh;
  background: radial-gradient(circle, rgba(255,250,225,0.7) 0%, transparent 70%);
  filter: blur(20px); animation: paper-drift 28s ease-in-out -8s infinite;
}
.paper-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(255,245,220,0.4), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(80,60,30,0.06), transparent 50%);
  mix-blend-mode: soft-light;
}

@keyframes paper-drift {
  0%, 100% { transform: translate(-2%, -1%) scale(1); }
  50%      { transform: translate(2%, 1%) scale(1.03); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes breathe-slow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.06); opacity: 0.65; }
}
@keyframes fade-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes feedback-stroke { to { stroke-dashoffset: 0; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes pulse-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes xiaoman-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes xiaoman-emerge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ============ 3. Reveal + hand rule ============ */
.reveal { opacity: 0; animation: fade-up 1s ease-out forwards; }
.reveal[data-delay="1"] { animation-delay: 0.05s; }
.reveal[data-delay="2"] { animation-delay: 0.18s; }
.reveal[data-delay="3"] { animation-delay: 0.32s; }
.reveal[data-delay="4"] { animation-delay: 0.46s; }
.reveal[data-delay="5"] { animation-delay: 0.6s; }
.reveal[data-delay="6"] { animation-delay: 0.74s; }
.reveal[data-delay="7"] { animation-delay: 0.88s; }
.reveal[data-delay="8"] { animation-delay: 1.02s; }

.hand-rule {
  display: inline-block; width: 50px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='10' viewBox='0 0 80 10'><path d='M 2 5 Q 12 1 22 5 T 42 5 T 62 5 T 78 5' stroke='%2395866F' stroke-width='0.8' fill='none' stroke-linecap='round' opacity='0.7'/></svg>");
  background-repeat: no-repeat; background-size: contain;
}

.loading-dots { display: inline-flex; gap: 6px; }
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-mute);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============ 4. Topbar / bottom nav / icon btn ============ */
.imm-topbar {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -22px;
  padding: max(env(safe-area-inset-top), 18px) 22px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, var(--paper) 60%, rgba(251,246,233,0) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.imm-topbar-title {
  flex: 1; text-align: center; line-height: 1.2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-faint); text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imm-topbar-title-rich {
  flex: 1; text-align: center; line-height: 1.15;
}
.imm-topbar-title-rich .cn {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  letter-spacing: 0.25em; color: var(--ink);
}
.imm-topbar-title-rich .en {
  font-family: var(--english-serif); font-style: italic;
  font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em;
  margin-top: 2px;
}

.imm-icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-mute); font-size: 22px; line-height: 1;
  text-decoration: none;
}
.imm-icon-btn:active { transform: scale(0.92); transition: transform 0.1s; }
.imm-icon-btn svg { display: block; }
.imm-topbar .spacer-44 { width: 44px; height: 44px; flex-shrink: 0; }

.imm-bottom-nav {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  left: 0; right: 0;
  display: flex; justify-content: center;
  pointer-events: none; z-index: 50;
}
.imm-bottom-nav-inner {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px;
  background: rgba(255, 250, 235, 0.78);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(43, 34, 26, 0.1);
  pointer-events: auto;
}
.imm-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-mute); text-decoration: none;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.15em;
  transition: all 0.3s ease; line-height: 1;
}
.imm-nav-btn.active { background: var(--ink); color: var(--paper); }
.imm-nav-btn svg { display: block; }

/* spacer below content so bottom nav doesn't cover the last button */
.bottom-nav-spacer { height: 100px; }

/* ============ 5. Buttons ============ */
.btn-primary, .btn-ghost, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.25em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:disabled, .btn-primary[disabled] {
  opacity: 0.35; cursor: not-allowed;
}
.btn-primary:active:not(:disabled) { transform: scale(0.985); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:active { background: rgba(43, 34, 26, 0.06); }
.btn-ghost {
  background: transparent; color: var(--ink-mute);
  border: 0; letter-spacing: 0.2em;
}
.btn-ghost:active { color: var(--ink); }

.btn-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* small button */
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 250, 235, 0.6);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--ink-mute);
  font-family: var(--serif); font-size: 12px; letter-spacing: 0.1em;
  cursor: pointer; text-decoration: none;
}

/* ============ 6. Cards ============ */
.card {
  background: rgba(255, 252, 242, 0.6);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  margin-bottom: 16px;
  position: relative;
}
.card-soft {
  background: rgba(255, 252, 242, 0.4);
  border-color: var(--ink-line-soft);
}
.card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 14px 0;
  line-height: 1.5;
}
.card-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
.card-body p { margin: 0 0 14px 0; }
.card-body p:last-child { margin-bottom: 0; }
.card-body strong { color: var(--ink); font-weight: 600; }
.card-body em { font-style: italic; color: var(--ink); }
.card-body blockquote {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 16px; margin: 18px 0;
  color: var(--ink); font-family: var(--serif);
  font-size: 17px; line-height: 1.85; letter-spacing: 0.02em;
  font-weight: 500;
}
.card-body ul, .card-body ol { margin: 14px 0; padding-left: 1.4em; }
.card-body li { margin-bottom: 8px; }
.card-body h1, .card-body h2, .card-body h3 {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); margin: 24px 0 12px;
}
.card-body h1 { font-size: 22px; }
.card-body h2 { font-size: 19px; }
.card-body h3 { font-size: 17px; }
.card-body code {
  font-family: var(--mono); font-size: 14px;
  background: rgba(43, 34, 26, 0.06); padding: 1px 6px; border-radius: 4px;
}

/* Reading card — special, more newspaper-like */
.reading-card { padding: 28px 24px; }
.reading-eyebrow {
  font-family: var(--english-serif); font-style: italic;
  font-size: 20px; color: var(--amber);
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.reading-subtitle {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.25em;
  margin-bottom: 18px;
}
.reading-body {
  font-family: var(--serif); font-size: 16px; line-height: 2;
  color: var(--ink); letter-spacing: 0.02em;
}
.reading-body h1, .reading-body h2 {
  font-family: var(--serif); font-weight: 500;
  color: var(--ink); margin: 28px 0 14px;
  letter-spacing: 0.05em;
}
.reading-body h1 { font-size: 22px; }
.reading-body h2 { font-size: 19px; }
.reading-body p { margin: 0 0 16px 0; text-indent: 0; }
.reading-body strong { color: var(--ink); font-weight: 600; }
.reading-body blockquote {
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 18px; margin: 22px 0;
  color: var(--ink); font-style: italic; font-size: 17px;
}

/* Summary star */
.star-burst {
  font-size: 48px; text-align: center; margin: 8px 0 18px;
  color: var(--amber);
  animation: fade-up 0.8s ease-out, breathe 4s ease-in-out infinite 0.8s;
}

/* ============ 7. Question shell ============ */
.question {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500;
  line-height: 1.7; color: var(--ink);
  letter-spacing: 0.02em; margin-bottom: 22px;
  text-wrap: pretty;
}
.question p { margin: 0 0 10px 0; }
.question p:last-child { margin: 0; }
.question strong { font-weight: 600; }
.question em { font-style: italic; }

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  all: unset; box-sizing: border-box;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; padding: 14px 16px;
  background: rgba(255, 252, 242, 0.55);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--serif); font-size: 15px; line-height: 1.7;
  color: var(--ink);
  position: relative;
}
.option:active:not(.locked) { transform: scale(0.995); }
.option.selected {
  background: rgba(178, 106, 46, 0.07);
  border-color: rgba(178, 106, 46, 0.45);
}
.option .option-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.4px solid var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  position: relative;
  background: var(--paper);
  transition: all 0.25s ease;
  color: var(--ink);
  font-family: var(--english-serif); font-style: italic;
  font-size: 13px; line-height: 1;
}
.option .option-mark.square {
  border-radius: 4px;
  font-family: var(--serif); font-style: normal;
  font-size: 14px; font-weight: 500;
}
.option.selected .option-mark {
  background: var(--amber); border-color: var(--amber); color: var(--paper);
}
.option.selected .option-mark.square::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg);
  margin-top: -3px;
}
.option.selected .option-mark.square { font-size: 0; }
.option-text { flex: 1; text-wrap: pretty; }
.option.locked { cursor: default; opacity: 0.65; }

/* fill input */
.fill-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px;
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink-mute);
  outline: none;
  font-family: var(--serif); font-size: 17px;
  color: var(--ink); letter-spacing: 0.02em;
}
.fill-input::placeholder { color: var(--ink-faint); }
.fill-input:focus { border-bottom-color: var(--amber); }

/* textarea */
.text-input {
  width: 100%; box-sizing: border-box;
  min-height: 140px;
  padding: 14px 16px;
  background: rgba(255, 252, 242, 0.55);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  outline: none; resize: vertical;
  font-family: var(--serif); font-size: 15px; line-height: 1.9;
  color: var(--ink); letter-spacing: 0.02em;
}
.text-input:focus { border-color: rgba(178, 106, 46, 0.5); }
.text-input::placeholder { color: var(--ink-faint); }

/* 觉察单选「我想自己写」展开的输入框 */
.freewrite-box { margin-top: 10px; }
.freewrite-box .text-input { min-height: 96px; }

/* ============ 8. Bottom sheet ============ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 34, 26, 0);
  pointer-events: none;
  transition: background 0.4s ease;
}
.sheet-overlay.open {
  background: rgba(43, 34, 26, 0.28);
  pointer-events: auto;
}
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  transform: translateY(120%);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  display: flex; justify-content: center;
}
.sheet.open { transform: translateY(0); pointer-events: auto; }
.sheet-inner {
  width: 100%; max-width: 520px;
  background: var(--paper);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 30px 28px calc(36px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 40px rgba(43, 34, 26, 0.16);
  position: relative;
  overflow: hidden;
}
.sheet-handle {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 2px;
  background: rgba(43, 34, 26, 0.15);
}
.sheet-mark {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sheet-mark.correct { background: var(--correct-bg); }
.sheet-mark.wrong   { background: var(--wrong-bg); }
.sheet-mark.neutral { background: rgba(178, 106, 46, 0.10); }
.sheet-eyebrow {
  font-family: var(--english-serif); font-style: italic;
  font-size: 17px; letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.sheet-eyebrow.correct { color: var(--correct); }
.sheet-eyebrow.wrong   { color: var(--wrong); }
.sheet-eyebrow.neutral { color: var(--amber); }
.sheet-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
  margin-bottom: 14px;
}
.sheet-body {
  font-family: var(--serif); font-size: 15px; line-height: 1.85;
  color: var(--ink-soft); letter-spacing: 0.01em;
  text-wrap: pretty;
}
.sheet-body p, .sheet-body ul { margin: 0 0 10px 0; }
.sheet-body ul { padding-left: 1.2em; }
.sheet-body strong { color: var(--ink); font-weight: 600; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.sheet.shake .sheet-inner { animation: shake 0.5s ease-in-out; }
.sheet-xiaoman {
  position: absolute; top: 22px; right: 24px;
  width: 72px; height: 84px; object-fit: contain;
  opacity: 0.9; pointer-events: none;
  animation: xiaoman-float 4.5s ease-in-out infinite;
}

/* ============ 9. HOME screen ============ */
.imm-home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(env(safe-area-inset-top), 50px) 28px 130px;
  position: relative;
}
.imm-home-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative; z-index: 2;
}
.imm-home-date {
  font-family: var(--english-serif); font-style: italic;
  font-size: 22px; color: var(--ink-mute); letter-spacing: 0.04em;
  white-space: nowrap;
}
.imm-home-weekday {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-faint); margin-top: 4px; letter-spacing: 0.05em;
}
.imm-home-actions { display: flex; gap: 4px; }
.imm-home-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 1; padding-top: 16px;
  text-align: center;
}
.imm-breathing-orb {
  position: absolute;
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  pointer-events: none; z-index: 0;
}
.imm-breathing-orb::before,
.imm-breathing-orb::after {
  content: ""; position: absolute; border-radius: 50%;
}
.imm-breathing-orb::before {
  inset: -25%;
  background: radial-gradient(circle, rgba(224, 172, 117, 0.2) 0%, transparent 60%);
  animation: breathe 7s ease-in-out infinite;
}
.imm-breathing-orb::after {
  inset: 0;
  background: radial-gradient(circle, rgba(224, 172, 117, 0.33) 0%, rgba(224, 172, 117, 0.07) 70%, transparent 100%);
  animation: breathe 7s ease-in-out -1s infinite;
}
.imm-stage-eyebrow {
  font-family: var(--serif); font-size: 14px;
  color: var(--stage-2); letter-spacing: 0.45em;
  text-align: center; position: relative; z-index: 1;
}
.imm-day-number {
  font-family: var(--english-serif); font-weight: 300;
  font-size: clamp(96px, 32vw, 132px); line-height: 1; color: var(--ink);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  margin: 4px 0 0; position: relative; z-index: 1;
}
.imm-day-number .day-label {
  font-family: var(--english-serif); font-style: italic;
  font-size: 18px; color: var(--ink-mute);
  align-self: flex-start; margin-top: 30px; font-weight: 400;
}
.imm-theme {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: 0.05em;
  text-align: center; margin: 14px 0 0; color: var(--ink);
  position: relative; z-index: 1; text-wrap: balance;
}
.imm-coreline {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink-soft); letter-spacing: 0.04em;
  text-align: center; margin: 10px 8px 0;
  position: relative; z-index: 1; line-height: 1.7;
  text-wrap: balance;
}
.imm-divider {
  margin: 20px auto 12px;
  position: relative; z-index: 1; text-align: center;
}
.imm-subtitle {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--ink-faint); letter-spacing: 0.15em;
  text-align: center; position: relative; z-index: 1;
}
.imm-home-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative; z-index: 2;
}
.imm-cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500;
  font-size: 16px; letter-spacing: 0.4em;
  color: var(--ink); padding: 14px 36px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: all 0.25s ease; min-width: 200px;
}
.imm-cta-button:active { background: var(--ink); color: var(--paper); }
.imm-cta-meta {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.15em;
}
.imm-cta-meta .accent { color: var(--amber); font-weight: 500; }
.imm-home-note {
  margin-top: 18px; max-width: 280px;
  text-align: center; font-size: 11px; line-height: 1.7;
  color: var(--ink-faint); letter-spacing: 0.02em;
}
.legacy-upgrade {
  width: min(100%, 360px);
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(178, 106, 46, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 243, 0.74);
  box-shadow: 0 10px 28px rgba(77, 56, 34, 0.08);
  text-align: left;
}
.legacy-upgrade-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.legacy-upgrade-text {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-mute);
}
.legacy-upgrade-btn {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--amber);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.xiaoman-home {
  position: absolute; z-index: 1;
  width: 84px; height: 114px; object-fit: contain;
  right: calc(50% - 164px); bottom: 15%;
  opacity: 0.94; pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(178, 106, 46, 0.1));
  animation: xiaoman-float 5.5s ease-in-out infinite;
}
.xiaoman-home-done { width: 90px; }
.xiaoman-home-rest { width: 82px; opacity: 0.86; }

/* Done state */
.imm-home.done .imm-day-number { color: var(--stage-2); }
.imm-home.done .imm-breathing-orb::before,
.imm-home.done .imm-breathing-orb::after {
  background: radial-gradient(circle, rgba(123, 190, 126, 0.25) 0%, transparent 65%);
}

/* ============ 10. MAP screen ============ */
.imm-map { min-height: 100vh; min-height: 100dvh; padding-bottom: 120px; }
.imm-map-pages { padding: 8px 0 40px; }
.imm-stage-page { position: relative; padding: 28px 12px 30px; }
.imm-stage-head {
  margin-bottom: 14px; padding: 0 12px;
  display: flex; align-items: baseline; gap: 14px;
  position: relative; z-index: 2;
}
.imm-stage-num {
  font-family: var(--english-serif); font-style: italic;
  font-size: 40px; font-weight: 400; line-height: 1;
}
.imm-stage-name-cn {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--ink);
}
.imm-stage-name-en {
  font-family: var(--english-serif); font-style: italic;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.15em; margin-top: 2px;
}
.imm-stage-pill {
  font-family: var(--english-serif); font-style: italic;
  font-size: 11px; letter-spacing: 0.2em;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: var(--ink-faint); margin-left: auto;
  flex-shrink: 0;
}
.imm-stage-pill.now {
  border-color: rgba(43, 34, 26, 0.4); color: var(--ink);
  background: rgba(43, 34, 26, 0.06);
}
.imm-stage-pill.done {
  color: var(--ink-mute);
  background: rgba(43, 34, 26, 0.06);
}
.imm-stream { position: relative; margin-top: 8px; }
.imm-stream svg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.imm-day-node {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  width: 60px; height: 60px;
  text-decoration: none;
}
.imm-day-node:active .imm-day-circle { transform: scale(0.94); }
.imm-day-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--english-serif); font-size: 19px; font-weight: 400;
  color: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.imm-day-node.today .imm-day-circle {
  width: 60px; height: 60px; font-size: 24px;
  font-style: italic; font-weight: 500;
}
.imm-day-node.today::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 60%);
  opacity: 0.4;
  animation: breathe 3.5s ease-in-out infinite;
}

/* ============ 11. Day-flow screen ============ */
.imm-day-shell {
  padding-bottom: 20px;
}
.imm-day-fixedtop {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -22px;
  padding: 0 22px 6px;
  background: var(--paper);
}
/* day.html 内 topbar 由外层容器承担 sticky，自身归流 */
.imm-day-fixedtop .imm-topbar {
  position: static;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.imm-day-shell #page-root {
  display: flex; flex-direction: column;
  min-height: calc(100dvh - 130px);
}
.imm-day-progress-bar {
  position: relative; height: 3px;
  background: rgba(43, 34, 26, 0.08);
  border-radius: 999px; overflow: hidden;
  margin: 8px 0 18px;
}
.imm-day-progress-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--amber);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.imm-day-progress-text {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-faint); letter-spacing: 0.25em;
  flex-shrink: 0;
}

.imm-day-header {
  text-align: center; padding: 12px 0 28px;
  position: relative;
}
.imm-day-stage-eyebrow {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.45em;
  margin-bottom: 4px;
}
.imm-day-num-mark {
  font-family: var(--english-serif); font-style: italic;
  font-size: 56px; line-height: 1; color: var(--ink);
  letter-spacing: -0.02em; margin: 4px 0;
}
.imm-day-num-mark .label {
  font-family: var(--english-serif); font-style: italic;
  font-size: 13px; color: var(--ink-faint);
  display: block; margin-bottom: 2px; letter-spacing: 0.3em;
}
.imm-day-theme {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
  margin: 10px 0 0; text-wrap: balance;
}
.imm-day-coreline {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-mute); letter-spacing: 0.04em;
  margin: 8px 0 0; font-style: italic;
  text-wrap: balance;
}
.xiaoman-card-listen {
  float: right; width: 76px; height: 108px; object-fit: contain;
  margin: -8px -6px 8px 16px;
  opacity: 0.92;
}
.xiaoman-summary {
  display: block; width: 86px; height: 104px; object-fit: contain;
  margin: -12px auto 8px;
  animation: xiaoman-float 4.5s ease-in-out infinite;
}
.xiaoman-reading {
  float: right; width: 76px; height: 100px; object-fit: contain;
  margin: -12px -6px 8px 14px;
  opacity: 0.88;
}

/* ============ 12. Reading standalone ============ */
.imm-reading-page {
  padding-bottom: 60px;
}
.imm-reading-page .reading-card {
  margin-top: 12px;
}

/* ============ 13. Report ============ */
.report-hero {
  text-align: center;
  padding: 32px 24px 28px;
  margin: 8px 0 18px;
  background: linear-gradient(180deg, var(--hero-tint, var(--paper-2)) 0%, rgba(255,252,242,0) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line-soft);
  position: relative;
  overflow: hidden;
}
.report-hero-xiaoman {
  position: absolute; right: 10px; bottom: -14px;
  width: 68px; height: 92px; object-fit: contain;
  opacity: 0.42; pointer-events: none;
}
.report-hero-spark {
  font-size: 28px; color: var(--hero-accent, var(--amber));
  margin-bottom: 8px;
  animation: breathe 4s ease-in-out infinite;
}
.report-hero-eyebrow {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-faint); letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.report-hero-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink);
  margin: 0 0 12px 0; text-wrap: balance;
}
.report-hero-coreline {
  font-family: var(--english-serif); font-style: italic;
  font-size: 16px; color: var(--hero-accent, var(--amber));
  letter-spacing: 0.03em; line-height: 1.6;
  text-wrap: balance;
}

.echo-card { background: rgba(255, 252, 242, 0.5); }
.echo-eyebrow {
  font-family: var(--english-serif); font-style: italic;
  font-size: 18px; color: var(--amber);
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.echo-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.echo-item {
  padding-left: 14px;
  border-left: 1.5px solid var(--ink-line);
}
.echo-q {
  font-family: var(--serif); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.04em;
  margin-bottom: 6px; line-height: 1.6;
}
.echo-a {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink); letter-spacing: 0.02em;
  line-height: 1.8;
}

.report-card .report-body {
  font-family: var(--serif); font-size: 15px; line-height: 1.95;
  color: var(--ink); letter-spacing: 0.01em;
}
.report-card .report-body h1,
.report-card .report-body h2,
.report-card .report-body h3 {
  font-family: var(--serif); font-weight: 500;
  color: var(--ink); letter-spacing: 0.04em;
  margin: 22px 0 10px;
}
.report-card .report-body h2 { font-size: 18px; }
.report-card .report-body h3 { font-size: 16px; }
.report-card .report-body p { margin: 0 0 12px 0; }
.report-card .report-body ul { margin: 10px 0 14px; padding-left: 1.4em; }
.report-card .report-body li { margin-bottom: 6px; }
.report-card .report-body strong { color: var(--ink); font-weight: 600; }
.report-card .report-body blockquote {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 14px; margin: 16px 0;
  font-style: italic; color: var(--ink); font-size: 16px;
}
.xiaoman-report-loading {
  display: block; width: 92px; height: 112px; object-fit: contain;
  margin: -10px auto 6px;
  animation: xiaoman-float 4.5s ease-in-out infinite;
}
.report-xiaoman-signature {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding-top: 14px; margin-top: 16px;
  border-top: 1px solid var(--ink-line-soft);
  font-family: var(--serif); font-size: 12px; color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.report-xiaoman-signature img {
  width: 42px; height: 52px; object-fit: contain;
}

.typing-cursor {
  display: inline-block;
  width: 0.6em; height: 1em;
  vertical-align: -2px;
  background: var(--amber);
  margin-left: 2px;
  animation: cursor-blink 1s infinite;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============ 14. Onboarding ============ */
.onboarding-body { overflow: hidden; }
.onboarding-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(env(safe-area-inset-top), 20px) 0 max(env(safe-area-inset-bottom), 20px);
  position: relative;
}
.onboarding-top {
  display: flex; justify-content: flex-end;
  padding: 0 22px 8px;
}
.onboarding-skip {
  background: transparent; border: 0; padding: 8px 14px;
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.15em;
  cursor: pointer;
}
.onboarding-viewport {
  flex: 1; overflow: hidden; position: relative;
}
.onboarding-track {
  display: flex; height: 100%;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: pan-y;
}
.onboarding-slide {
  flex: 0 0 100%; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 12px 32px 24px;
  text-align: center;
}
.onboarding-art {
  position: relative;
  width: 100%; max-width: 340px;
  height: 260px;
  margin: 16px auto 32px;
  display: flex; align-items: center; justify-content: center;
}
.onboarding-art-1 .onboarding-orb {
  width: 220px; height: 220px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #FAE2C1, #E5B14B),
    var(--amber);
  box-shadow: 0 18px 60px rgba(229, 177, 75, 0.32);
  animation: breathe 5s ease-in-out infinite;
}
.onboarding-xiaoman {
  position: absolute; left: 50%; bottom: 2px; z-index: 2;
  width: 112px; height: 158px; object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(178, 106, 46, 0.1));
  animation: xiaoman-emerge 5s ease-in-out infinite;
}
.onboarding-spark {
  position: absolute; font-size: 16px; color: var(--amber);
  animation: breathe-slow 3.5s ease-in-out infinite;
}
.spark-a { top: 14%; left: 10%; }
.spark-b { top: 26%; right: 12%; animation-delay: -1.2s; font-size: 22px; }
.spark-c { bottom: 18%; left: 18%; animation-delay: -2.4s; font-size: 14px; }

.onboarding-art-2 {
  display: flex; gap: 16px; justify-content: center;
}
.onboarding-step {
  flex: 1; max-width: 100px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 24px;
}
.onboarding-step-no {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FAE2C1, #E5B14B);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--english-serif); font-style: italic;
  font-size: 22px; color: var(--paper); font-weight: 500;
  box-shadow: 0 6px 18px rgba(229, 177, 75, 0.28);
  margin-bottom: 14px;
}
.onboarding-step-label {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-soft); line-height: 1.6;
  letter-spacing: 0.04em;
}

.onboarding-art-3 {
  flex-direction: column; gap: 12px;
}
.onboarding-pill {
  display: inline-block; padding: 8px 18px;
  background: rgba(255, 252, 242, 0.65);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-soft); letter-spacing: 0.05em;
}
.onboarding-pill:nth-child(1) { transform: rotate(-2deg); }
.onboarding-pill:nth-child(2) { transform: rotate(1.5deg); }
.onboarding-pill:nth-child(3) { transform: rotate(-1deg); }

.onboarding-eyebrow {
  font-family: var(--english-serif); font-style: italic;
  font-size: 16px; color: var(--amber);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.onboarding-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink);
  line-height: 1.6; margin: 0 0 18px 0;
  text-wrap: balance;
}
.onboarding-subtitle {
  font-family: var(--serif); font-size: 15px; line-height: 1.85;
  color: var(--ink-soft); letter-spacing: 0.02em;
  margin: 0; max-width: 320px;
  text-wrap: balance;
}
.onboarding-cta-wrap { margin-top: 24px; width: 100%; max-width: 320px; }

.onboarding-bottom {
  padding: 18px 28px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.onboarding-dots { display: flex; gap: 8px; }
.onboarding-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint); cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.onboarding-dots .dot.active {
  background: var(--ink);
  width: 22px; border-radius: 4px;
}
.onboarding-next {
  max-width: 320px; transition: opacity 0.3s ease;
}

/* redeem sheet */
.redeem-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 34, 26, 0);
  pointer-events: none;
  transition: background 0.4s ease;
}
.redeem-overlay.open {
  background: rgba(43, 34, 26, 0.32);
  pointer-events: auto;
}
.redeem-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  transform: translateY(120%);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  background: var(--paper);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 30px 28px calc(36px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 40px rgba(43, 34, 26, 0.16);
  max-width: 520px; margin: 0 auto;
}
.redeem-sheet.open { transform: translateY(0); }
.redeem-sheet.shake { animation: shake 0.5s ease-in-out; }
.redeem-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
  margin: 14px 0 8px;
}
.redeem-subtitle {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); line-height: 1.7;
  margin: 0 0 22px 0;
}
.redeem-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px;
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink-mute);
  outline: none;
  font-family: var(--mono); font-size: 18px;
  color: var(--ink); letter-spacing: 0.15em;
  text-align: center; text-transform: uppercase;
  margin-bottom: 12px;
}
.redeem-input::placeholder {
  color: var(--ink-faint); text-transform: none; letter-spacing: 0.1em;
  font-family: var(--serif);
}
.redeem-input:focus { border-bottom-color: var(--amber); }
.redeem-error {
  font-family: var(--serif); font-size: 13px;
  color: var(--wrong); min-height: 18px; margin-bottom: 14px;
  text-align: center;
}
.redeem-note {
  font-family: var(--serif); font-size: 12px;
  color: var(--ink-faint); line-height: 1.7;
  margin: -4px 0 14px 0;
  text-align: center;
}

/* ============ 15. Catalog ============ */
.imm-catalog { padding-bottom: 80px; }
.catalog-header { padding: 16px 4px 26px; }
.catalog-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}
.catalog-subtitle {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-mute); line-height: 1.7;
  letter-spacing: 0.02em; margin-bottom: 18px;
}
.catalog-overall {
  display: flex; align-items: center; gap: 12px;
  padding-top: 4px;
}
.catalog-overall-bar {
  flex: 1; height: 4px;
  background: rgba(43, 34, 26, 0.08);
  border-radius: 999px; overflow: hidden;
}
.catalog-overall-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stage-1), var(--stage-2), var(--stage-3), var(--stage-4));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.catalog-overall-text {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.2em;
}

/* Day 0 入门 special card */
.catalog-onboarding {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--stage-tint, rgba(155, 123, 90, 0.08));
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--stage-color, var(--amber));
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  text-decoration: none; color: var(--ink);
}
.catalog-onboarding-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em; color: var(--stage-color, var(--amber));
}
.catalog-onboarding-theme {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
}
.catalog-onboarding-coreline {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.02em;
}
.catalog-onboarding-status {
  font-family: var(--english-serif); font-style: italic;
  font-size: 13px; color: var(--stage-color, var(--amber));
  letter-spacing: 0.05em; margin-top: 4px;
}

.catalog-stage {
  margin-bottom: 14px;
  background: rgba(255, 252, 242, 0.45);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.catalog-stage-head {
  width: 100%; padding: 18px 20px;
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  text-align: left;
}
.catalog-stage-head-main { flex: 1; min-width: 0; }
.catalog-stage-eyebrow {
  font-family: var(--mono); font-size: 10px;
  color: var(--stage-color, var(--amber));
  letter-spacing: 0.3em; margin-bottom: 4px;
}
.catalog-stage-name {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--ink);
}
.catalog-stage-subtitle {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); margin-top: 4px;
  letter-spacing: 0.02em;
}
.catalog-stage-bar {
  margin-top: 10px; height: 3px;
  background: rgba(43, 34, 26, 0.08); border-radius: 999px; overflow: hidden;
}
.catalog-stage-bar-fill {
  height: 100%;
  background: var(--stage-color, var(--amber));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.catalog-stage-arrow {
  font-family: var(--serif); font-size: 18px; color: var(--ink-mute);
  flex-shrink: 0; transition: transform 0.3s ease;
}
.catalog-stage.open .catalog-stage-arrow { transform: rotate(0deg); }
.catalog-stage-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease;
}
.catalog-stage.open .catalog-stage-body { max-height: 9999px; }

.catalog-day {
  display: block;
  padding: 0;
  border-top: 1px dashed var(--ink-line);
  text-decoration: none; color: var(--ink);
}
.catalog-day-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 20px;
}
.catalog-day-status {
  flex-shrink: 0; width: 28px; padding-top: 1px;
}
.status-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-family: var(--english-serif);
  letter-spacing: 0;
}
.status-dot.done {
  background: var(--stage-color, var(--correct)); color: var(--paper);
}
.status-dot.current {
  background: var(--stage-color, var(--amber)); color: var(--paper);
  animation: breathe 3s ease-in-out infinite;
}
.status-dot.available {
  background: transparent; color: var(--ink-mute);
  border: 1px solid var(--ink-mute);
  font-size: 14px;
}
.status-dot.locked {
  background: transparent; color: var(--ink-faint);
  border: 1px dashed var(--ink-faint); font-size: 11px;
}
.catalog-day-main { flex: 1; min-width: 0; }
.catalog-day-head {
  display: flex; gap: 8px; align-items: baseline;
}
.catalog-day-num {
  font-family: var(--english-serif); font-style: italic;
  font-size: 14px; color: var(--ink-faint); letter-spacing: 0.05em;
}
.catalog-day-theme {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.02em;
  text-wrap: pretty;
}
.catalog-day-coreline {
  font-family: var(--serif); font-size: 12px;
  color: var(--ink-mute); margin-top: 4px;
  letter-spacing: 0.02em; line-height: 1.6;
  text-wrap: pretty;
}
.catalog-day-locked .catalog-day-theme,
.catalog-day-locked .catalog-day-coreline {
  color: var(--ink-faint);
}

/* ============ 16. Journal ============ */
.imm-journal { padding-bottom: 60px; }
.journal-header { padding: 16px 4px 24px; }
.journal-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink);
  margin-bottom: 8px;
}
.journal-subtitle {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-mute); line-height: 1.7;
}
.journal-day-block { margin-bottom: 28px; }
.journal-day-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 16px 14px 20px;
  background: var(--day-tint, rgba(178, 106, 46, 0.06));
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--day-color, var(--amber));
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.journal-day-num {
  font-family: var(--english-serif); font-style: italic;
  font-size: 13px; color: var(--day-color, var(--amber));
  letter-spacing: 0.2em;
}
.journal-day-theme {
  flex: 1;
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.02em;
  text-wrap: pretty;
}
.journal-day-link {
  font-family: var(--english-serif); font-style: italic;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.05em; flex-shrink: 0;
}
.journal-entry {
  padding: 14px 18px;
  margin-bottom: 8px;
  background: rgba(255, 252, 242, 0.5);
  border: 1px solid var(--ink-line-soft);
  border-left: 2px solid var(--day-color, var(--ink-line));
  border-radius: var(--radius-sm);
}
.journal-entry-q {
  font-family: var(--serif); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.03em;
  margin-bottom: 6px; line-height: 1.6;
}
.journal-entry-a {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink); letter-spacing: 0.02em;
  line-height: 1.85; white-space: pre-wrap;
}
.journal-empty {
  text-align: center; padding: 40px 30px;
  background: rgba(255, 252, 242, 0.5);
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius-md);
}
.journal-empty-icon {
  font-size: 36px; color: var(--ink-faint);
  margin-bottom: 16px; font-family: var(--english-serif); font-style: italic;
}
.journal-empty p {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-mute); line-height: 1.8;
}

/* ============ 17. Reports list ============ */
.imm-reports { padding-bottom: 60px; }
.reports-header { padding: 16px 4px 22px; }
.reports-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--ink);
  margin-bottom: 8px;
}
.reports-subtitle {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-mute); line-height: 1.7;
}
.report-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--item-tint, rgba(255, 252, 242, 0.5));
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease;
}
.report-list-item:active { transform: scale(0.99); }
.report-list-day {
  font-family: var(--english-serif); font-style: italic;
  font-size: 22px; color: var(--item-accent, var(--amber));
  letter-spacing: 0.05em; flex-shrink: 0;
  width: 64px;
}
.report-list-main { flex: 1; min-width: 0; }
.report-list-eyebrow {
  font-family: var(--mono); font-size: 9px;
  color: var(--ink-faint); letter-spacing: 0.3em;
}
.report-list-theme {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
  margin: 3px 0;
  text-wrap: pretty;
}
.report-list-meta {
  font-family: var(--serif); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.04em;
}
.report-list-arrow {
  font-size: 16px; color: var(--ink-mute);
  flex-shrink: 0;
}

/* ============ 成长轨迹 (growth.html) ============ */
.growth-card {
  background: rgba(255, 252, 242, 0.6);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 16px;
}
.growth-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--amber);
  margin-bottom: 14px;
}
.growth-start-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.growth-start-num {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.02em;
}
.growth-start-desc { font-size: 13px; color: var(--ink-mute); }
.growth-word { padding: 10px 0; border-top: 1px solid var(--ink-line-soft); }
.growth-word-k {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 5px;
}
.growth-word-v { display: block; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }

.growth-q { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.growth-q-sub { font-size: 12px; color: var(--ink-mute); }
.growth-band { margin-bottom: 10px; }

.growth-now-score {
  font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.growth-now-score span { font-size: 13px; color: var(--ink-faint); }
.growth-compare {
  font-family: var(--serif); font-size: 14px; line-height: 1.75;
  color: var(--ink-soft); margin-bottom: 16px;
}
.growth-redo {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute); background: none; border: 1px solid var(--ink-line);
  border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.growth-redo:active { background: var(--paper-2); }

.growth-chart { display: block; margin: 4px 0 12px; }
.growth-grid { stroke: var(--ink-line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.growth-axis { font-family: var(--mono); font-size: 9px; fill: var(--ink-faint); }
.growth-line { stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.growth-dot { fill: var(--amber-soft); stroke: var(--paper); stroke-width: 1.5; }
.growth-dot.is-start { fill: var(--ink); }

.growth-hint {
  font-size: 13px; line-height: 1.75; color: var(--ink-mute);
}
.growth-stats { display: flex; justify-content: space-between; gap: 10px; }
.growth-stat { flex: 1; text-align: center; }
.growth-stat-num {
  font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink);
}
.growth-stat-unit { font-size: 12px; color: var(--ink-faint); margin-left: 2px; }
.growth-stat-label { font-size: 11px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.05em; }
.growth-xiaoman {
  display: flex; align-items: center; gap: 12px;
  padding: 2px 0 14px; margin-bottom: 12px;
  border-bottom: 1px solid var(--ink-line-soft);
  font-size: 12px; color: var(--ink-mute);
}
.growth-xiaoman img {
  width: 62px; height: 76px; object-fit: contain;
}
.growth-xiaoman-empty {
  display: block; width: 82px; height: 104px; object-fit: contain;
  margin: -8px auto 8px;
}

@media (max-width: 360px) {
  .xiaoman-home {
    width: 74px; height: 100px;
    right: calc(50% - 145px); bottom: 16%;
  }
}

/* ============ 成长卡片入口 + 弹层 (sharecard) ============ */
.growth-share-wrap { text-align: center; margin: 24px 0 8px; }
.growth-share-btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--paper); background: var(--amber);
  border: none; border-radius: 999px; padding: 14px 32px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(178, 106, 46, 0.28);
}
.growth-share-btn:active { transform: translateY(1px); }
.growth-share-hint { font-size: 12px; color: var(--ink-mute); margin-top: 12px; }

.sharecard-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 22, 16, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sharecard-overlay.show { opacity: 1; }
.sharecard-box {
  width: 100%; max-width: 360px; text-align: center;
  transform: translateY(10px); transition: transform 0.22s ease;
}
.sharecard-overlay.show .sharecard-box { transform: translateY(0); }
.sharecard-img {
  width: 100%; border-radius: 14px; display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.sharecard-tip {
  font-size: 13px; color: rgba(251, 246, 233, 0.9);
  margin-top: 18px; letter-spacing: 0.04em;
}
.sharecard-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.sharecard-dl, .sharecard-close {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  border-radius: 999px; padding: 11px 24px; cursor: pointer;
}
.sharecard-dl {
  color: var(--ink); background: var(--paper); border: none;
}
.sharecard-close {
  color: rgba(251, 246, 233, 0.85); background: none;
  border: 1px solid rgba(251, 246, 233, 0.3);
}

/* ============ 名字采集遮罩 (track.js) ============ */
.nameform-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28, 22, 16, 0.66);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.nameform-overlay.show { opacity: 1; }
.nameform-box {
  width: 100%; max-width: 340px;
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 30px 26px 24px; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px); transition: transform 0.22s ease;
}
.nameform-overlay.show .nameform-box { transform: translateY(0); }
.nameform-title {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--ink); margin-bottom: 8px;
}
.nameform-sub { font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; line-height: 1.6; }
.nameform-input {
  width: 100%; border: none; border-bottom: 1.5px solid var(--ink-line);
  background: transparent; font-family: var(--serif); font-size: 18px;
  color: var(--ink); text-align: center; padding: 8px 4px 10px; outline: none;
}
.nameform-input:focus { border-bottom-color: var(--amber); }
.nameform-err { font-size: 12px; color: var(--wrong); min-height: 16px; margin-top: 8px; }
.nameform-priv {
  font-size: 11px; color: var(--ink-faint); line-height: 1.6;
  margin: 6px 0 4px; text-align: left;
}
.nameform-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.nameform-ok, .nameform-cancel {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  border-radius: 999px; padding: 12px 28px; cursor: pointer;
}
.nameform-ok { color: var(--paper); background: var(--amber); border: none; flex: 1; max-width: 180px; }
.nameform-cancel { color: var(--ink-mute); background: none; border: 1px solid var(--ink-line); }

/* ============ 好事发生 推荐入口 (haoshi.js) ============ */
.haoshi-fab {
  position: fixed; right: 12px; top: 30%; transform: translateY(-50%);
  z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer; padding: 7px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  animation: haoshi-breathe 2.8s ease-in-out infinite;
}
.haoshi-fab img { width: 100%; height: 100%; object-fit: contain; display: block; }
.haoshi-fab:active { animation: none; transform: translateY(-50%) scale(0.9); }
@keyframes haoshi-breathe {
  0%, 100% { transform: translateY(-50%) scale(1);    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); }
  50%      { transform: translateY(-50%) scale(1.09); box-shadow: 0 6px 24px rgba(232, 98, 63, 0.5); }
}

.haoshi-overlay {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(28, 22, 16, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; opacity: 0; transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.haoshi-overlay.show { opacity: 1; }
.haoshi-box {
  width: 100%; max-width: 336px; text-align: center;
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px); transition: transform 0.22s ease;
}
.haoshi-overlay.show .haoshi-box { transform: translateY(0); }
.haoshi-hero {
  width: min(224px, 78vw);
  margin: -2px auto 10px;
  line-height: 0;
}
.haoshi-hug {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.haoshi-box-logo { width: 76px; height: 76px; object-fit: contain; margin-bottom: 16px; }
.haoshi-box-title {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--ink); line-height: 1.5; margin-bottom: 10px;
}
.haoshi-box-text { font-size: 13px; color: var(--ink-mute); line-height: 1.8; margin-bottom: 22px; }
.haoshi-box-actions { display: flex; flex-direction: column; gap: 8px; }
.haoshi-go {
  display: block; text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  color: #fff; background: #E8623F; border-radius: 999px; padding: 14px; cursor: pointer;
}
.haoshi-go:active { transform: translateY(1px); }
.haoshi-close {
  font-size: 12px; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 8px;
}

/* ============ 软着陆弹窗 (onboard-wechat.js) ============ */
.wxonb-overlay {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(28, 22, 16, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 26px; opacity: 0; transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.wxonb-overlay.show { opacity: 1; }
.wxonb-box {
  width: 100%; max-width: 340px; text-align: center;
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 30px 26px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px); transition: transform 0.22s ease;
  max-height: 92vh; overflow-y: auto;
}
.wxonb-overlay.show .wxonb-box { transform: translateY(0); }
.wxonb-xiaoman {
  width: 84px; display: block; margin: 0 auto 4px; user-select: none;
}
.wxonb-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--ink); margin-bottom: 12px;
}
.wxonb-text {
  font-size: 13px; color: var(--ink-mute); line-height: 1.85;
  margin-bottom: 20px; text-align: left;
}
.wxonb-qr {
  width: 184px; height: 184px; margin: 0 auto 10px;
  border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.wxonb-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wxonb-qr-ph { display: none; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.2em; }
.wxonb-qr.is-missing img { display: none; }
.wxonb-qr.is-missing .wxonb-qr-ph { display: block; }
.wxonb-qr-tip {
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.05em; margin-bottom: 6px;
}
.wxonb-qr-tip b { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.wxonb-qr-note { font-size: 12px; color: var(--amber); margin-bottom: 18px; }
.wxonb-export {
  display: block; width: 100%;
  font-family: var(--serif); font-size: 14px;
  color: var(--amber); background: rgba(178, 106, 46, 0.08);
  border: 1px solid rgba(178, 106, 46, 0.22); border-radius: 999px;
  padding: 13px; cursor: pointer; margin-bottom: 8px;
}
.wxonb-export:active { transform: translateY(1px); }
.wxonb-close {
  font-size: 12px; color: var(--ink-mute);
  background: none; border: none; cursor: pointer; padding: 8px;
}
.wxonb-buy {
  display: block; width: 100%; text-align: center;
  padding: 11px 20px; margin-bottom: 12px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--amber);
  color: var(--amber); font-size: 15px; font-family: var(--serif);
  cursor: pointer; text-decoration: none; box-sizing: border-box;
  transition: opacity 0.2s ease;
}
.wxonb-buy:active { opacity: 0.7; }

/* ============ 试用墙 (app.js paywall) ============ */
.paywall-card { text-align: center; padding: 30px 24px; }
.paywall-xiaoman {
  width: 96px; display: block; margin: 0 auto 6px; user-select: none;
}
.paywall-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--amber); margin-bottom: 14px;
}
.paywall-title {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--ink); line-height: 1.5; margin-bottom: 12px;
}
.paywall-text { font-size: 14px; color: var(--ink-mute); line-height: 1.8; margin-bottom: 22px; text-align: left; }
.paywall-input {
  width: 100%; border: none; border-bottom: 1.5px solid var(--ink-line);
  background: transparent; font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em;
  color: var(--ink); text-align: center; padding: 10px 4px; outline: none; text-transform: uppercase;
}
.paywall-input:focus { border-bottom-color: var(--amber); }
.paywall-error { font-size: 12px; color: var(--wrong); min-height: 16px; margin: 8px 0; }
.paywall-card .btn-primary { margin-bottom: 10px; }
.paywall-buy { font-size: 12px; color: var(--ink-mute); margin-top: 18px; line-height: 1.7; }
.paywall-buy b { color: var(--amber); }
.paywall-note { font-size: 12px; color: var(--ink-faint); margin-top: 8px; line-height: 1.7; }

/* ============ 兑换码后台 (admin.html) ============ */
.admin-key-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ink-line);
  border-radius: 10px; background: rgba(255, 252, 242, 0.6);
  font-family: var(--mono); font-size: 14px; color: var(--ink); outline: none;
}
.admin-key-input:focus { border-color: var(--amber); }
.admin-err { color: var(--wrong); font-size: 13px; margin-top: 10px; }
.admin-stats { font-size: 13px; color: var(--ink-mute); }
.admin-stats b { color: var(--ink); }
.admin-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--ink-line); border-radius: 10px;
  margin-bottom: 8px; background: rgba(255, 252, 242, 0.5);
}
.admin-row.is-revoked { opacity: 0.55; }
.admin-code { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 600; flex: 1 1 160px; }
.admin-tag { font-size: 11px; color: var(--wrong); border: 1px solid var(--wrong); border-radius: 4px; padding: 1px 5px; }
.admin-meta { font-size: 12px; color: var(--ink-mute); flex: 1 1 180px; }
.admin-ops { display: flex; gap: 8px; }
.admin-ops button {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ink-line); background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.admin-ops button.danger { color: var(--wrong); border-color: var(--wrong); }
.admin-ops button:active { transform: translateY(1px); }

/* ============ 底部主操作栏 (day.html) ============ */
.imm-action-bar {
  margin-top: auto;
  position: sticky; bottom: 0; z-index: 20;
  margin-left: -22px; margin-right: -22px;
  padding: 12px 22px max(env(safe-area-inset-bottom), 16px);
  background: linear-gradient(0deg, var(--paper) 75%, rgba(251,246,233,0) 100%);
}

/* ============ 报告分享弹层 (reportshare.js) ============ */
.rshare-overlay {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(28, 22, 16, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.24s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.rshare-overlay.show { opacity: 1; }

.rshare-box {
  width: 100%; max-width: 380px;
  text-align: center;
  transform: translateY(10px); transition: transform 0.24s ease;
}
.rshare-overlay.show .rshare-box { transform: translateY(0); }

/* 选择面板 */
.rshare-choose {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 24px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.rshare-choose-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.rshare-choose-desc {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.rshare-choose-btns {
  display: flex; gap: 12px; margin-bottom: 18px;
}
.rshare-choose-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px;
  background: rgba(255, 252, 242, 0.7);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  cursor: pointer; font-family: var(--serif);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rshare-choose-btn:active {
  background: rgba(178, 106, 46, 0.08);
  border-color: rgba(178, 106, 46, 0.4);
}
.rshare-choose-icon { font-size: 28px; line-height: 1; }
.rshare-choose-label {
  font-size: 14px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.04em;
}
.rshare-choose-sub {
  font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em;
}
.rshare-close-txt {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 8px;
}

/* 预览面板 */
.rshare-preview { text-align: center; }
.rshare-generating {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 0;
}
.rshare-spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(251, 246, 233, 0.3);
  border-top-color: var(--paper);
  animation: rshare-spin 0.8s linear infinite;
}
@keyframes rshare-spin { to { transform: rotate(360deg); } }
.rshare-generating-txt {
  font-family: var(--serif); font-size: 14px;
  color: rgba(251, 246, 233, 0.85); letter-spacing: 0.1em;
}

.rshare-img {
  width: 100%; border-radius: 14px; display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}
.rshare-tip {
  font-size: 13px; color: rgba(251, 246, 233, 0.9);
  margin-top: 18px; letter-spacing: 0.04em;
}
.rshare-actions {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap;
}
.rshare-dl, .rshare-next, .rshare-close-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  border-radius: 999px; padding: 11px 22px; cursor: pointer;
}
.rshare-dl {
  color: var(--ink); background: var(--paper); border: none;
}
.rshare-next {
  color: var(--paper); background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(251, 246, 233, 0.4);
}
.rshare-close-btn {
  color: rgba(251, 246, 233, 0.8); background: none;
  border: 1px solid rgba(251, 246, 233, 0.25);
}

/* ============ 勋章墙 (badges.html / badges.js) ============ */
.bwall-summary {
  text-align: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink-mute); padding: 16px 0 22px;
}
.bwall-summary-num {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--amber);
}
.bwall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 32px;
}
.bwall-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; cursor: pointer;
  padding: 14px 8px 12px;
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 242, 0.5);
  transition: border-color 0.2s ease;
}
.bwall-item:not(.bwall-locked):active {
  border-color: rgba(178, 106, 46, 0.4);
  background: rgba(178, 106, 46, 0.06);
}
.bwall-img {
  width: 68px; height: 68px; object-fit: contain;
  border-radius: 50%;
}
.bwall-locked .bwall-img {
  filter: grayscale(1) opacity(0.45);
}
.bwall-name {
  font-family: var(--serif); font-size: 13px; font-weight: 500;
  color: var(--ink); text-align: center; line-height: 1.4;
}
.bwall-locked .bwall-name { color: var(--ink-mute); }
.bwall-cond {
  font-family: var(--sans, sans-serif); font-size: 10px;
  color: var(--ink-faint); text-align: center; line-height: 1.4;
}
.bwall-date {
  font-family: var(--mono); font-size: 10px;
  color: var(--amber-soft); text-align: center;
}

/* ============ 勋章解锁庆祝层 (app.js bcele-) ============ */
.bcele-overlay {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(28, 22, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0; transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.bcele-overlay.show { opacity: 1; }
.bcele-box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  max-width: 340px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(12px); transition: transform 0.25s ease;
}
.bcele-overlay.show .bcele-box { transform: translateY(0); }
.bcele-img {
  width: 100px; height: 100px; object-fit: contain;
  border-radius: 50%;
  animation: bcele-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes bcele-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.bcele-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--amber); margin: 14px 0 4px;
}
.bcele-name {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.bcele-cond {
  font-size: 13px; color: var(--ink-mute); margin-bottom: 24px; line-height: 1.5;
}
.bcele-actions {
  display: flex; flex-direction: column; gap: 10px;
}

/* ============ 勋章「获得详情」层 (badges.js bdetail-) ============ */
.bdetail-box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 34px 26px 26px;
  max-width: 340px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.bdetail-img {
  width: 200px; height: 200px; object-fit: contain;
  border-radius: 50%; margin: 0 auto 16px;
  display: block;
}
.bdetail-img-locked {
  filter: grayscale(1) opacity(0.45);
}
.bdetail-name {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}
.bdetail-cond {
  font-size: 14px; color: var(--ink-mute); margin-bottom: 10px; line-height: 1.5;
}
.bdetail-date {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--amber-soft); margin-bottom: 24px;
}
.bdetail-actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}
