:root {
  /* 晨雾暖纸与草木矿石色板 (Organic Sanctuary Palette) */
  --bg-linen: #f5f0e7;
  --bg-card: rgba(255, 252, 247, 0.82);
  --bg-card-solid: #fffcf7;
  --bg-tea: #f4ece0;
  --ink: #2d2722;
  --ink-soft: #544b43;
  --ink-muted: #7c7166;
  --line-whisper: rgba(168, 148, 124, 0.22);
  --line-warm: rgba(176, 107, 73, 0.28);

  /* 疗愈自然色系 */
  --candle: #ad6542;
  --candle-soft: rgba(173, 101, 66, 0.11);
  --sage: #4a6b59;
  --sage-soft: rgba(74, 107, 89, 0.11);
  --plum: #6c5b7b;
  --plum-soft: rgba(108, 91, 123, 0.11);
  --ochre: #94713b;
  --ochre-soft: rgba(148, 113, 59, 0.12);
  --dusk: #586775;
  --dusk-soft: rgba(88, 103, 117, 0.11);
  --blush: #a85460;
  --blush-soft: rgba(168, 84, 96, 0.11);

  /* 字体与圆角阴影 */
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "华文中宋", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --shadow-whisper: 0 10px 34px rgba(58, 44, 30, 0.045);
  --shadow-float: 0 22px 56px rgba(58, 44, 30, 0.075);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-linen);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==================== 1. 呼吸感水彩光晕背景层 ==================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  animation: floatAura 24s ease-in-out infinite alternate;
}

.aura-warm {
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, #f3d5be 0%, rgba(243, 213, 190, 0) 72%);
}

.aura-sage {
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  top: 28%;
  right: -12%;
  background: radial-gradient(circle, #d4e3d9 0%, rgba(212, 227, 217, 0) 72%);
  animation-delay: -8s;
  animation-duration: 28s;
}

.aura-dusk {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  bottom: -14%;
  left: 18%;
  background: radial-gradient(circle, #e5dcf0 0%, rgba(229, 220, 240, 0) 72%);
  animation-delay: -15s;
  animation-duration: 32s;
}

@keyframes floatAura {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 4%) scale(1.06); }
  100% { transform: translate(-2%, -3%) scale(0.96); }
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(120, 100, 80, 0.09) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ==================== 2. 顶部悬浮静谧导航栏 ==================== */
.sanctuary-topbar {
  position: sticky;
  top: 14px;
  z-index: 90;
  padding: 0 20px;
  margin-top: 14px;
}

.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  background: rgba(255, 252, 247, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-whisper);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(58, 44, 30, 0.04);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.brand-candle {
  font-size: 17px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.06em;
}

.brand-tag {
  font-size: 11px;
  color: var(--candle);
  background: var(--candle-soft);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.chapter-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chapter-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.chapter-link:hover {
  color: var(--candle);
  background: var(--candle-soft);
}

@media (max-width: 820px) {
  .chapter-links,
  .brand-tag {
    display: none;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-action {
  appearance: none;
  border: 1px solid var(--line-whisper);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
}

.pill-action:hover {
  border-color: var(--candle);
  color: var(--candle);
  background: #fff;
  transform: translateY(-1px);
}

.btn-ambient.playing {
  background: var(--sage-soft);
  border-color: rgba(74, 107, 89, 0.35);
  color: var(--sage);
  font-weight: 500;
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5b9ac;
  display: inline-block;
}

.ai-dot.online {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 107, 89, 0.22);
}

/* ==================== 3. 主画布与顶部诗意区 ==================== */
.sanctuary-shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 42px 22px 96px;
}

.sanctuary-hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--candle);
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.35;
}

.hero-subtitle {
  margin: 0 auto 26px;
  max-width: 620px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.95;
}

@media (max-width: 640px) {
  .hide-mobile { display: none; }
}

/* 柔和的人物足迹丝带 */
.footprint-ribbon {
  max-width: 780px;
  margin: 0 auto 16px;
  background: rgba(255, 252, 247, 0.68);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-whisper);
  border-radius: var(--radius-pill);
  padding: 9px 12px 9px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-whisper);
}

.ribbon-summary {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
}

.ribbon-summary strong {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
}

.ribbon-edit-btn {
  border: 1px solid var(--line-warm);
  background: var(--candle-soft);
  color: var(--candle);
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ribbon-edit-btn:hover {
  background: var(--candle);
  color: #fff;
}

.journey-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.presets-caption {
  font-size: 12px;
  color: var(--ink-muted);
}

.preset-chip {
  border: 1px solid transparent;
  background: rgba(255, 252, 247, 0.55);
  color: var(--ink-muted);
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  border-color: var(--line-warm);
  background: #fff;
  color: var(--candle);
}

/* ==================== 4. 第一章：沉浸式语音倾听室 ==================== */
.listening-sanctuary {
  position: relative;
  max-width: 820px;
  margin: 0 auto 54px;
  background: linear-gradient(165deg, rgba(255, 253, 249, 0.88) 0%, rgba(248, 241, 230, 0.82) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 174, 146, 0.32);
  border-radius: var(--radius-lg);
  padding: 34px 38px 36px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

@media (max-width: 640px) {
  .listening-sanctuary {
    padding: 24px 20px 26px;
    border-radius: 26px;
  }
}

/* 4秒吸气·6秒呼气 冥想呼吸光环 */
.breathing-halo {
  position: absolute;
  width: 380px;
  height: 380px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 193, 162, 0.28) 0%, rgba(212, 227, 217, 0.14) 48%, transparent 72%);
  pointer-events: none;
  animation: breatheRhythm 10s ease-in-out infinite;
}

@keyframes breatheRhythm {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); opacity: 0.45; }
  40% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.85; }
}

.listening-inner {
  position: relative;
  z-index: 1;
}

.listening-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.session-stage-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-step-pill {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-muted);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s ease;
}

.stage-step-pill:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.stage-step-pill.done {
  background: var(--sage-soft);
  color: var(--sage);
}

.stage-step-pill.active {
  background: var(--candle);
  color: #fff;
  box-shadow: 0 4px 14px rgba(173, 101, 66, 0.24);
}

.counselor-controls-top {
  display: flex;
  gap: 8px;
}

.btn-whisper {
  border: 1px solid var(--line-whisper);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whisper:hover,
.btn-whisper.active {
  border-color: var(--candle);
  color: var(--candle);
  background: #fff;
}

/* 统一连贯的一问一答对话流（提问与回答自然衔接） */
.counselor-chat-log {
  max-height: 390px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 8px 8px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.counselor-chat-log::-webkit-scrollbar {
  width: 5px;
}

.counselor-chat-log::-webkit-scrollbar-track {
  background: transparent;
}

.counselor-chat-log::-webkit-scrollbar-thumb {
  background: rgba(173, 101, 66, 0.22);
  border-radius: var(--radius-pill);
}

.counselor-chat-log::-webkit-scrollbar-thumb:hover {
  background: rgba(173, 101, 66, 0.38);
}

.chat-bubble-row {
  display: flex;
}

.chat-bubble-row.is-user {
  justify-content: flex-end;
}

.chat-bubble-row.is-counselor {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 85%;
  padding: 13px 18px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.8;
  box-shadow: 0 4px 16px rgba(58, 44, 30, 0.035);
}

.is-counselor .chat-bubble {
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(196, 174, 146, 0.28);
  color: var(--ink-soft);
  border-bottom-left-radius: 6px;
}

/* 当前正在引导的倾听师提问气泡（融在对话流最下方，温暖醒目） */
.chat-bubble.is-active-prompt {
  max-width: 92%;
  background: linear-gradient(155deg, #fffdf9 0%, #f9efe2 100%);
  border: 1px solid rgba(173, 101, 66, 0.34);
  padding: 16px 22px;
  box-shadow: 0 10px 28px rgba(173, 101, 66, 0.08);
  animation: fadeUnfold 0.38s ease;
}

.active-prompt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.counselor-badge {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--candle);
  font-weight: 600;
}

.btn-whisper-play {
  border: none;
  background: var(--candle-soft);
  color: var(--candle);
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whisper-play:hover {
  background: var(--candle);
  color: #fff;
}

.active-prompt-question {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.9;
  color: var(--ink);
  font-weight: 500;
}

.is-user .chat-bubble {
  background: #e6efe9;
  border: 1px solid rgba(74, 107, 89, 0.2);
  color: #263b2f;
  border-bottom-right-radius: 6px;
}

.chat-role-tag {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* 麦克风能量圆环与信纸输入区 */
.voice-altar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.orb-mic-btn {
  position: relative;
  border: 1px solid rgba(173, 101, 66, 0.32);
  background: linear-gradient(135deg, #fffaf4 0%, #f7e6d7 100%);
  color: var(--candle);
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(173, 101, 66, 0.14);
  transition: all 0.28s ease;
}

.orb-mic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(173, 101, 66, 0.22);
  background: linear-gradient(135deg, #fff7ee 0%, #f3dac4 100%);
}

.orb-icon {
  font-size: 18px;
}

.orb-ripple {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(168, 84, 96, 0.45);
  opacity: 0;
  pointer-events: none;
}

.orb-mic-btn.recording {
  background: linear-gradient(135deg, #b85b66 0%, #9c4652 100%);
  border-color: #9c4652;
  color: #fff;
  box-shadow: 0 12px 30px rgba(168, 84, 96, 0.3);
}

.orb-mic-btn.recording .orb-ripple.r1 {
  animation: rippleWave 2s ease-out infinite;
}

.orb-mic-btn.recording .orb-ripple.r2 {
  animation: rippleWave 2s ease-out 1s infinite;
}

@keyframes rippleWave {
  0% { inset: 0; opacity: 0.75; }
  100% { inset: -16px; opacity: 0; }
}

.voice-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--blush);
  background: var(--blush-soft);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.voice-live-status[hidden] {
  display: none !important;
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush);
  animation: gentleBlink 1.2s ease-in-out infinite;
}

@keyframes gentleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.lined-answer-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-whisper);
  border-radius: 22px;
  padding: 14px 18px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lined-answer-wrap:focus-within {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line-warm);
}

#counselorAnswerInput {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  resize: vertical;
}

#counselorAnswerInput:focus {
  outline: none;
}

.answer-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px dashed rgba(168, 148, 124, 0.22);
}

/* 通用温润按钮体系 */
.btn-sanctuary-primary {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #b56c49 0%, #9b5635 100%);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(155, 86, 53, 0.22);
  transition: all 0.22s ease;
}

.btn-sanctuary-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(155, 86, 53, 0.3);
}

.btn-sanctuary-secondary {
  appearance: none;
  border: 1px solid rgba(108, 91, 123, 0.28);
  background: var(--plum-soft);
  color: var(--plum);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
}

.btn-sanctuary-secondary:hover {
  background: var(--plum);
  color: #fff;
}

.btn-text-calm {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.btn-text-calm:hover {
  color: var(--ink);
  background: rgba(168, 148, 124, 0.12);
}

/* ==================== 5. 第二章：时光序言信 & 岁月扉页 ==================== */
.results-area {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.story-letter {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(170deg, #fffdf9 0%, #f8f1e5 100%);
  border: 1px solid rgba(194, 173, 145, 0.36);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-float);
}

@media (max-width: 640px) {
  .story-letter {
    padding: 28px 24px;
  }
}

.story-letter::after {
  content: "❦";
  position: absolute;
  right: 38px;
  top: 32px;
  font-size: 32px;
  color: rgba(173, 101, 66, 0.18);
  pointer-events: none;
}

.letter-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--candle);
  margin-bottom: 12px;
}

.letter-headline {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.letter-body p {
  margin: 0 0 14px;
}

.healing-affirmation-box {
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--sage);
  padding: 14px 20px;
  border-radius: 0 16px 16px 0;
  font-size: 14.5px;
  color: #36493e;
  margin-bottom: 22px;
}

.letter-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-whisper);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.letter-stat-pill {
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-whisper);
}

.letter-stat-pill strong {
  color: var(--candle);
}

.sanctuary-jump-link {
  text-decoration: none;
  color: var(--candle) !important;
  background: var(--candle-soft) !important;
  border-color: transparent !important;
  font-weight: 500;
  margin-left: auto;
  transition: all 0.2s ease;
}

.sanctuary-jump-link:hover {
  background: var(--candle) !important;
  color: #fff !important;
}

/* AI 状态柔和横幅 */
.ai-status-banner {
  max-width: 820px;
  width: 100%;
  margin: -20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
}

.ai-status-banner.loading {
  background: var(--plum-soft);
  color: var(--plum);
  justify-content: flex-start;
}

.ai-status-banner.success {
  background: var(--sage-soft);
  color: var(--sage);
}

.ai-status-banner.error {
  background: var(--blush-soft);
  color: var(--blush);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(108, 91, 123, 0.25);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 岁月扉页 (Editorial Spread) */
.editorial-spread {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 760px) {
  .editorial-spread {
    grid-template-columns: 1fr;
  }
}

.spread-page {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-whisper);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-whisper);
}

.spread-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.spread-page h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.onthisday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onthisday-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(168, 148, 124, 0.18);
}

.onthisday-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.year-badge {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--candle);
}

.migration-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.migration-stop {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-whisper);
  padding: 5px 12px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
}

.stop-city {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

.stop-meta {
  font-size: 11px;
  color: var(--ink-muted);
}

.migration-arrow {
  color: var(--candle);
  opacity: 0.65;
}

.place-insight-line {
  margin: 8px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.wiki-entity-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-whisper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-entity-item {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.wiki-tag {
  color: var(--sage);
  font-weight: 600;
  margin-right: 6px;
}

/* 平行时空跨度柔光条 */
.parallel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.parallel-item {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  padding: 12px 14px;
}

.parallel-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--candle);
  margin-bottom: 8px;
}

.parallel-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.parallel-side {
  font-size: 12.5px;
}

.p-event {
  color: var(--ink-muted);
  font-size: 11.5px;
}

.p-user {
  color: var(--ink);
  font-weight: 600;
  margin-top: 2px;
}

.parallel-divider {
  color: var(--candle);
  opacity: 0.6;
}

/* ==================== 6. 第三章：岁月长卷（去表单化·明信片手账时间轴） ==================== */
.scroll-controls-section {
  max-width: 820px;
  width: 100%;
  margin: 0 auto -18px;
  text-align: center;
}

.scroll-section-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.scroll-section-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.view-mode-bar {
  background: rgba(255, 252, 247, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-whisper);
  border-radius: 24px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(168, 148, 124, 0.1);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: 12.8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(58, 44, 30, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(168, 148, 124, 0.18);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.2px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--candle);
  background: var(--candle-soft);
}

.filter-pill.active {
  background: var(--ink);
  color: #fff;
}

.search-input {
  padding: 6px 14px;
  border: 1px solid var(--line-whisper);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  min-width: 190px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.search-input:focus {
  outline: none;
  border-color: var(--candle);
}

/* 诗意金线长卷 */
.timeline-wrapper {
  position: relative;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, rgba(173, 101, 66, 0.45) 8%, rgba(74, 107, 89, 0.35) 92%, transparent);
}

.timeline-stage-group {
  margin-bottom: 42px;
}

.stage-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.stage-dot {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-linen);
  border: 2.5px solid var(--candle);
  box-shadow: 0 0 0 5px rgba(173, 101, 66, 0.12);
}

.stage-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.stage-years {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.event-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 明信片级柔和记忆卡（摒弃生硬左粗边与密集标签） */
.event-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-whisper);
  border-radius: 26px;
  padding: 26px 30px;
  box-shadow: var(--shadow-whisper);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

@media (max-width: 640px) {
  .event-card {
    padding: 20px 20px;
  }
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

/* 不同情绪/性质卡片采用极其柔和的顶部水彩晕染 */
.event-card.is-personal {
  background: linear-gradient(165deg, rgba(255, 249, 240, 0.92) 0%, rgba(255, 253, 249, 0.86) 65%);
  border-color: rgba(196, 152, 116, 0.34);
}

.event-card.is-local {
  background: linear-gradient(165deg, rgba(242, 248, 244, 0.9) 0%, rgba(255, 253, 249, 0.86) 65%);
}

.event-card.is-ai-custom {
  background: linear-gradient(165deg, rgba(246, 242, 251, 0.92) 0%, rgba(255, 253, 249, 0.86) 65%);
}

.event-card.is-reflective {
  background: linear-gradient(165deg, rgba(241, 244, 247, 0.94) 0%, rgba(252, 252, 253, 0.88) 70%);
  border-color: rgba(120, 136, 150, 0.28);
}

.event-card.is-liked {
  border-color: rgba(168, 84, 96, 0.36);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.event-date {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--candle);
}

.event-card.is-reflective .event-date {
  color: var(--dusk);
}

.meta-divider {
  opacity: 0.4;
}

.age-pill {
  color: var(--ink-soft);
  font-weight: 500;
}

.cat-badge {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
}

.cat-history { background: var(--candle-soft); color: var(--candle); }
.cat-tech { background: var(--ochre-soft); color: var(--ochre); }
.cat-culture { background: var(--plum-soft); color: var(--plum); }
.cat-sports { background: var(--ochre-soft); color: var(--ochre); }
.cat-city { background: var(--sage-soft); color: var(--sage); }
.cat-personal { background: var(--blush-soft); color: var(--blush); }
.cat-ai { background: var(--plum-soft); color: var(--plum); }

.event-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.event-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* 岁月风物批注（取代以前沉重的黄框） */
.sensory-strip {
  padding: 12px 16px;
  background: rgba(244, 236, 224, 0.52);
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.sensory-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 12.2px;
  color: var(--ochre);
}

.gaokao-line {
  margin-top: 6px;
  font-size: 12.2px;
  color: var(--candle);
}

/* 温柔共鸣段落（文学书摘感） */
.resonance-quote {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid rgba(173, 101, 66, 0.38);
  font-family: var(--font-serif);
  font-size: 14.2px;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 14px;
}

.event-card.is-reflective .resonance-quote {
  border-left-color: var(--dusk);
  color: #3f4b56;
}

/* 渐进式展开的手账批注区（平时无比清爽，点击提笔才展开信纸） */
.memory-interact {
  padding-top: 12px;
  border-top: 1px dashed rgba(168, 148, 124, 0.2);
}

.memory-whisper-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-prompt-text {
  font-size: 13px;
  color: var(--ink-muted);
  flex: 1;
  min-width: 220px;
}

.card-gentle-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-btn,
.pen-toggle-btn {
  border: 1px solid var(--line-whisper);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-muted);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn:hover {
  border-color: var(--blush);
  color: var(--blush);
}

.like-btn.liked {
  background: var(--blush-soft);
  border-color: rgba(168, 84, 96, 0.3);
  color: var(--blush);
  font-weight: 500;
}

.pen-toggle-btn:hover {
  border-color: var(--candle);
  color: var(--candle);
  background: #fff;
}

/* 已保存的手写感页边注脚 */
.saved-note-paper {
  margin-top: 12px;
  padding: 12px 16px;
  background: repeating-linear-gradient(
    to bottom,
    #fffdf8 0px,
    #fffdf8 27px,
    rgba(196, 174, 146, 0.22) 28px
  );
  border: 1px solid rgba(196, 174, 146, 0.32);
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 28px;
  color: #46382b;
}

.note-editor-drawer {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-warm);
  border-radius: 16px;
}

.note-editor-drawer[hidden] {
  display: none !important;
}

.guided-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.guided-memory-chip {
  border: 1px dashed rgba(173, 101, 66, 0.35);
  background: #fffaf3;
  color: var(--candle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.guided-memory-chip:hover {
  background: var(--candle);
  color: #fff;
  border-style: solid;
}

.note-row {
  display: flex;
  gap: 8px;
}

.note-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-whisper);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
}

.note-input:focus {
  outline: none;
  border-color: var(--candle);
}

/* ==================== 7. 双轨对照视图 & 岁月纪念报 ==================== */
.dual-timeline-container {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dual-header-bar {
  display: grid;
  grid-template-columns: 270px 68px 1fr;
  gap: 16px;
  background: rgba(244, 236, 224, 0.85);
  color: var(--ink-soft);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  align-items: center;
}

.dual-h-center { text-align: center; }

.dual-row {
  display: grid;
  grid-template-columns: 270px 68px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .dual-header-bar { display: none; }
  .dual-row {
    grid-template-columns: 1fr;
    padding-left: 16px;
    border-left: 1.5px solid rgba(173, 101, 66, 0.35);
  }
  .dual-col-axis {
    order: -1;
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 8px;
  }
}

.dual-col-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}

.dual-year-node {
  font-family: var(--font-serif);
  background: var(--candle);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.dual-age-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.dual-personal-card,
.dual-state-pill,
.dual-world-Vibe {
  background: var(--bg-card);
  border: 1px solid var(--line-whisper);
  border-radius: 20px;
  padding: 16px 18px;
}

.dual-personal-card h4 {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 15px;
}

.dual-personal-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.dual-p-badge,
.dual-age-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--candle);
  background: var(--candle-soft);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.dual-price-note {
  margin-top: 6px;
  font-size: 11.8px;
  color: var(--ochre);
}

.dual-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 复古温和纪念特刊 */
.newspaper-sheet {
  max-width: 920px;
  margin: 0 auto;
  background: #faf4e8;
  border: 1px solid #cbbba0;
  border-radius: 16px;
  padding: 36px 40px;
  color: #2c261f;
  box-shadow: var(--shadow-float);
  font-family: var(--font-serif);
}

.np-masthead {
  border-bottom: 2px double #6e5f4b;
  padding-bottom: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.np-top-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  border-bottom: 1px solid #dfd3be;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.np-title {
  margin: 6px 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.28em;
  font-weight: 700;
}

.np-sub-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #cbbba0;
  padding-top: 8px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.np-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .np-grid { grid-template-columns: 1fr; }
}

.np-lead-story {
  border-bottom: 1px solid #dfd3be;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.np-kicker {
  font-size: 12px;
  color: var(--candle);
  font-family: var(--font-sans);
  margin-bottom: 4px;
}

.np-lead-story h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.np-quote-box {
  background: #f3ead8;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-section-title {
  color: var(--candle);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid #dfd3be;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.np-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .np-two-col { grid-template-columns: 1fr; }
}

.np-mini-article h4 { margin: 4px 0; font-size: 15px; }
.np-mini-article p { margin: 0 0 6px; font-size: 13px; line-height: 1.7; }
.np-mini-year { font-size: 11.5px; color: var(--candle); font-family: var(--font-sans); }
.np-mini-res { color: var(--sage); font-size: 12px !important; }

.np-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.np-box {
  background: #f4ecdc;
  border-radius: 12px;
  padding: 16px;
}

.np-box-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.np-timeline-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== 8. 第四章：跨时空疗愈邮局（信纸桌面感） ==================== */
.healing-sanctuary-card {
  max-width: 900px;
  width: 100%;
  margin: 12px auto 0;
  background: linear-gradient(160deg, #fffdf9 0%, #f6ede0 100%);
  border: 1px solid rgba(194, 173, 145, 0.38);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-float);
}

@media (max-width: 640px) {
  .healing-sanctuary-card {
    padding: 26px 20px;
  }
}

.sanctuary-header {
  text-align: center;
  margin-bottom: 28px;
}

.sanctuary-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--candle);
  margin-bottom: 8px;
}

.sanctuary-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
}

.sanctuary-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 14px;
  color: var(--ink-muted);
}

.past-self-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 26px;
}

.past-stop-chip {
  border: 1px solid var(--line-whisper);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.past-stop-chip:hover {
  border-color: var(--candle);
  color: var(--candle);
}

.past-stop-chip.active {
  background: var(--candle);
  border-color: var(--candle);
  color: #fff;
  box-shadow: 0 6px 18px rgba(173, 101, 66, 0.25);
}

.sanctuary-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 840px) {
  .sanctuary-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* 左侧横线信纸 */
.sanctuary-pane {
  background: rgba(255, 254, 251, 0.9);
  border: 1px solid rgba(194, 173, 145, 0.3);
  border-radius: 24px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.pane-step-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.past-stop-context {
  background: var(--bg-tea);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12.8px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.sanctuary-textarea {
  width: 100%;
  border: 1px solid rgba(194, 173, 145, 0.32);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 30px;
  background: repeating-linear-gradient(
    to bottom,
    #fffefb 0px,
    #fffefb 29px,
    rgba(196, 174, 146, 0.22) 30px
  );
  color: var(--ink);
  resize: vertical;
}

.sanctuary-input {
  width: 100%;
  border: 1px solid var(--line-whisper);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.sanctuary-textarea:focus,
.sanctuary-input:focus {
  outline: none;
  border-color: var(--candle);
}

.energy-words-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.energy-chip {
  border: 1px solid var(--line-whisper);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-muted);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.energy-chip.active {
  background: var(--sage-soft);
  border-color: rgba(74, 107, 89, 0.35);
  color: var(--sage);
  font-weight: 500;
}

/* 右侧回信信笺 */
.reply-pane {
  position: relative;
  background: linear-gradient(160deg, #fffdf9 0%, #fbf3e4 100%);
}

.postmark-stamp {
  position: absolute;
  right: 22px;
  top: 18px;
  border: 1.5px dashed rgba(173, 101, 66, 0.38);
  color: rgba(173, 101, 66, 0.65);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 8px;
  transform: rotate(4deg);
  pointer-events: none;
}

.past-reply-letter {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeUnfold 0.6s ease;
}

@keyframes fadeUnfold {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reply-text {
  font-family: var(--font-serif);
  font-size: 14.8px;
  line-height: 2.0;
  color: #362e26;
  padding: 6px 2px;
}

.future-seal {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-whisper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.seal-tag {
  background: var(--sage-soft);
  color: var(--sage);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.reply-empty-box,
.reply-loading-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  color: var(--ink-muted);
  font-size: 13.8px;
}

.mini-notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.mini-note-item {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  gap: 8px;
}

.mini-note-year {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--candle);
  flex-shrink: 0;
}

/* ==================== 9. 侧滑磨砂足迹手账抽屉 & 弹窗 ==================== */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 26, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

.modal-backdrop {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.drawer-backdrop[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

.footprint-sheet {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #fbf7f0;
  border-left: 1px solid var(--line-whisper);
  box-shadow: -18px 0 48px rgba(42, 34, 26, 0.12);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.sheet-header,
.modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line-whisper);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--candle);
}

.sheet-header h3,
.modal-header h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
}

.sheet-close-btn {
  border: none;
  background: rgba(168, 148, 124, 0.14);
  color: var(--ink-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-close-btn:hover {
  background: var(--candle-soft);
  color: var(--candle);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
}

.sheet-intro {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.form-section {
  margin-bottom: 22px;
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-section-label {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field label {
  font-size: 12px;
  color: var(--ink-muted);
}

.field input,
.field select,
.sheet-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-whisper);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
}

.field input:focus,
.sheet-textarea:focus {
  outline: none;
  border-color: var(--candle);
}

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

.repeater-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-whisper);
  border-radius: 16px;
  padding: 12px;
}

.repeater-row-top {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.repeater-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.repeater-item input,
.repeater-item select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-whisper);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-family: inherit;
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 8px;
}

.remove-btn:hover {
  background: var(--blush-soft);
  color: var(--blush);
}

.sheet-footer {
  padding-top: 12px;
  border-top: 1px dashed var(--line-whisper);
}

.modal-card {
  background: #fbf7f0;
  border: 1px solid var(--line-whisper);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.modal-body {
  padding: 20px 26px;
}

.modal-tip {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-tea);
  padding: 12px 14px;
  border-radius: 14px;
}

.modal-footer {
  padding: 14px 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 页面下方显著位置：隐私与数据不保存声明横幅 */
.ephemeral-notice-banner {
  max-width: 860px;
  width: 100%;
  margin: 48px auto 0;
  padding: 28px 32px;
  background: linear-gradient(145deg, #fffaf2 0%, #f9efe1 100%);
  border: 2px solid rgba(173, 101, 66, 0.42);
  border-radius: var(--radius-lg);
  box-shadow:
    0 14px 36px rgba(120, 76, 48, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: center;
  position: relative;
}

.ephemeral-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(173, 101, 66, 0.14);
  border: 1px solid rgba(173, 101, 66, 0.32);
  color: var(--candle);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.ephemeral-notice-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.ephemeral-notice-desc {
  max-width: 690px;
  margin: 0 auto 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.ephemeral-notice-desc strong {
  color: var(--candle);
  font-weight: 600;
}

.ephemeral-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.btn-notice-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #b56845, #985032);
  color: #fffdf9;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(152, 80, 50, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-notice-pdf:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(152, 80, 50, 0.34);
}

.btn-notice-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(173, 101, 66, 0.38);
  background: #fffdf9;
  color: var(--candle);
  font-size: 13.8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-notice-secondary:hover {
  background: rgba(173, 101, 66, 0.09);
  border-color: var(--candle);
}

.btn-notice-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(130, 112, 94, 0.38);
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-notice-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
}

/* Footer & Empty State */
.sanctuary-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-whisper);
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--line-whisper);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-family: var(--font-serif);
}

@media (max-width: 640px) {
  .ephemeral-notice-banner {
    padding: 22px 18px;
  }
  .ephemeral-notice-title {
    font-size: 18px;
  }
  .btn-notice-pdf,
  .btn-notice-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .ambient-canvas,
  .sanctuary-topbar,
  .listening-sanctuary:not(.has-user-dialogue),
  .breathing-halo,
  .listening-topbar,
  .voice-altar,
  .chat-bubble.is-active-prompt,
  .journey-presets-row,
  .ribbon-actions,
  .view-mode-bar,
  .compact-bar-controls,
  .c-actions,
  .card-gentle-actions,
  .note-editor-drawer,
  .past-self-selector,
  .letter-starters-row,
  .energy-words-bar,
  #btnSendToPast,
  .sanctuary-steps-grid.print-hide-draft,
  .vault-item-actions,
  .vault-expand-hint,
  .sanctuary-jump-link,
  .drawer-backdrop,
  .modal-backdrop,
  .ephemeral-notice-banner,
  .sanctuary-footer {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .sanctuary-shell {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .counselor-chat-log {
    max-height: none !important;
    overflow: visible !important;
  }
  .story-letter,
  .single-spread-card,
  .compact-row,
  .event-card,
  .vault-letter-item,
  .healing-sanctuary-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}


/* ==================== 紧凑版「岁月拾遗 · 我的人生缩影」 ==================== */
.results-area {
  gap: 32px;
}

.compact-timeline-section {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-whisper);
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: var(--shadow-whisper);
}

@media (max-width: 640px) {
  .compact-timeline-section {
    padding: 18px 16px;
    border-radius: 22px;
  }
}

.compact-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-whisper);
}

.compact-section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.compact-section-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.compact-bar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.compact-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 贯穿左侧年份与节点的柔和细线 */
.compact-timeline::before {
  content: "";
  position: absolute;
  left: 65px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(173, 101, 66, 0.35) 8%, rgba(74, 107, 89, 0.3) 92%, transparent);
}

.compact-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px 18px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-row:hover {
  background: rgba(255, 255, 255, 0.72);
}

.compact-row.is-personal {
  background: rgba(255, 250, 243, 0.65);
}

.compact-row.is-personal:hover {
  background: rgba(255, 250, 243, 0.95);
}

.compact-row.is-ai-custom {
  background: rgba(246, 242, 251, 0.65);
}

.compact-row.is-reflective {
  background: rgba(241, 244, 247, 0.75);
}

.c-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  padding-right: 2px;
}

.c-year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--candle);
}

.compact-row.is-era .c-year {
  color: var(--sage);
  font-weight: 600;
}

.compact-row.is-reflective .c-year {
  color: var(--dusk);
}

.c-age {
  font-size: 11px;
  color: var(--ink-muted);
}

.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--candle);
  justify-self: center;
  transform: translateY(-1px);
  z-index: 1;
}

.compact-row.is-era .c-dot {
  width: 6px;
  height: 6px;
  border-color: var(--sage);
  opacity: 0.75;
}

.compact-row.is-reflective .c-dot {
  border-color: var(--dusk);
}

.c-body {
  min-width: 0;
}

.c-top-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.c-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.c-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.compact-row.is-era .c-title {
  font-size: 14.2px;
  font-weight: 500;
  color: var(--ink-soft);
}

.c-inline-meta {
  font-size: 11.8px;
  color: var(--ink-muted);
  background: rgba(168, 148, 124, 0.11);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.c-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.18s ease;
}

.compact-row:hover .c-actions,
.compact-row.is-liked .c-actions {
  opacity: 1;
}

.c-icon-btn,
.c-pen-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.c-pen-btn:hover,
.c-icon-btn:hover {
  border-color: var(--line-warm);
  background: #fff;
  color: var(--candle);
}

.c-echo-line {
  margin: 3px 0 0;
  font-size: 12.6px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.c-saved-note {
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(255, 253, 248, 0.9);
  border-left: 2px solid var(--candle);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 13px;
  color: #46382b;
  line-height: 1.55;
}

.compact-drawer {
  margin-top: 8px;
  padding: 10px 12px;
}

.c-drawer-prompt {
  font-size: 12px;
  color: var(--candle);
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .compact-timeline::before {
    left: 49px;
  }
  .compact-row {
    grid-template-columns: 42px 14px 1fr;
    padding: 9px 8px;
  }
  .c-actions {
    opacity: 1;
  }
}


/* ==================== 时光书信匣（归档保存往来书信） ==================== */
.saved-letters-vault {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-whisper);
}

.vault-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.vault-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.vault-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

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

.vault-letter-item {
  background: rgba(255, 254, 251, 0.78);
  border: 1px solid var(--line-whisper);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.vault-letter-item[open] {
  border-color: rgba(173, 101, 66, 0.32);
  background: rgba(255, 254, 251, 0.94);
}

.vault-letter-summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}

.vault-letter-summary::-webkit-details-marker {
  display: none;
}

.vault-sum-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vault-badge {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--candle);
}

.vault-place {
  font-size: 11.5px;
  color: var(--ink-muted);
  background: rgba(168, 148, 124, 0.12);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.vault-preview {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.vault-sum-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vault-status {
  font-size: 11.5px;
  color: var(--sage);
}

.btn-vault-action,
.btn-vault-delete {
  border: 1px solid var(--line-whisper);
  background: #fff;
  color: var(--ink-muted);
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-vault-action:hover {
  border-color: var(--candle);
  color: var(--candle);
}

.btn-vault-delete:hover {
  border-color: var(--blush);
  color: var(--blush);
  background: var(--blush-soft);
}

.vault-letter-body {
  padding: 14px 18px 16px;
  border-top: 1px dashed var(--line-whisper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .vault-letter-body {
    grid-template-columns: 1fr;
  }
}

.vault-col {
  background: rgba(245, 240, 231, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
}

.vault-col.is-reply {
  background: linear-gradient(155deg, #fffdf9, #faf1e2);
  border: 1px solid rgba(196, 174, 146, 0.28);
}

.vault-col-label {
  font-size: 11.8px;
  font-weight: 600;
  color: var(--candle);
  margin-bottom: 6px;
}

.vault-col-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.vault-wish-line {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-whisper);
  font-size: 12px;
  color: var(--sage);
}


/* 阶段专属信纸落笔灵感签 */
.letter-starters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.starter-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.letter-starter-chip {
  border: 1px dashed rgba(173, 101, 66, 0.34);
  background: rgba(255, 250, 243, 0.85);
  color: var(--candle);
  font-size: 11.8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.letter-starter-chip:hover {
  background: var(--candle);
  border-color: var(--candle);
  border-style: solid;
  color: #fff;
}


.single-spread-card {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
