/* ═══════════════════════════════════════════
   一刻集 · 禅的七种微体验 — 样式
   bofei.com / zen-moments.html
   ═══════════════════════════════════════════ */

:root {
  --stone: #d4cbbf;
  --stone-light: #ece6dc;
  --stone-pale: #f5f1eb;
  --moss: #5a7a66;
  --moss-dark: #3d5a48;
  --forest: #1e2d23;
  --rust: #b8764a;
  --rust-light: #d4956a;
  --ink: #2c2822;
  --ink-light: #5a5248;
  --cream: #faf7f2;
  --cream-warm: #f0ebe2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--moss);
  color: var(--cream);
}

/* ── Screen 基础 ── */

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
}

.screen.active {
  display: flex;
}

.moment-screen {
  background: var(--cream);
}

/* ═══ 欢迎屏 / 完成屏 ═══ */

.welcome-inner {
  text-align: center;
  max-width: 520px;
  padding: 0 2rem;
}

.welcome-overline {
  font-size: 0.5rem;
  letter-spacing: 0.6em;
  color: var(--rust);
  opacity: 0.4;
  margin-bottom: 2rem;
}

.welcome-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--forest);
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.complete-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

.welcome-sub {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--ink-light);
  line-height: 2.4;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.welcome-sub .dim {
  color: var(--stone);
  font-size: 0.85rem;
}

.welcome-time {
  font-size: 0.7rem;
  color: var(--stone);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.welcome-start {
  display: inline-block;
  padding: 0.9rem 3rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--cream);
  background: var(--forest);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s;
  margin-bottom: 1.5rem;
}

.welcome-start:hover {
  background: var(--moss-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(30,45,35,0.2);
}

.welcome-back {
  display: block;
  font-size: 0.7rem;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

.welcome-back:hover {
  color: var(--moss);
}

/* ── 完成屏 ── */

.complete-text {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--ink-light);
  line-height: 2.4;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.complete-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.complete-meta {
  font-size: 0.68rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  line-height: 2;
}

/* ═══ 进度条 ═══ */

.progress-bar {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  align-items: center;
  gap: 1rem;
}

.progress-dots {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(250,247,242,0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(184,118,74,0.08);
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s;
}

.pdot.done {
  background: var(--moss);
  opacity: 0.7;
}

.pdot.current {
  background: var(--rust);
  opacity: 1;
  transform: scale(1.3);
}

.pdot:hover {
  opacity: 1;
}

.progress-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  opacity: 0.5;
  white-space: nowrap;
}

/* ═══ 导航控制 ═══ */

.nav-controls {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(184,118,74,0.15);
  background: rgba(250,247,242,0.9);
  backdrop-filter: blur(8px);
  color: var(--ink-light);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--cream-warm);
  border-color: var(--rust);
  color: var(--rust);
}

.nav-skip {
  width: auto;
  padding: 0 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif SC', serif;
}

/* ═══ 通用 moment inner ═══ */

.moment-inner {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.moment-hint {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--stone);
  opacity: 0.4;
  margin-bottom: 2rem;
}

.moment-hint.bottom {
  margin-top: 3rem;
  margin-bottom: 0;
}

/* ═══ 体验1：一字禅 ═══ */

.char-display {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.char-attribution {
  font-size: 0.75rem;
  color: var(--rust);
  letter-spacing: 0.2em;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* ═══ 体验2：一息禅 ═══ */

.breath-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 1.5rem;
}

.breath-ring {
  width: 100%;
  height: 100%;
}

.breath-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.breath-phase {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
}

.breath-count {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
}

.breath-instruction {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* ═══ 体验3：一语禅 ═══ */

.quote-text {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 2.2;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 3em;
}

.quote-source {
  font-size: 0.82rem;
  color: var(--rust);
  letter-spacing: 0.2em;
  opacity: 0;
  transition: opacity 1.2s ease;
  margin-bottom: 3rem;
}

.quote-silence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--stone);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.silence-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
}

/* ═══ 体验4：一问禅 ═══ */

.koan-display {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 2.2;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 1.2s ease;
  min-height: 2em;
}

.koan-timer {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--rust);
  opacity: 0.2;
  margin-bottom: 1rem;
  transition: opacity 0.5s;
}

.koan-instruction {
  font-size: 0.68rem;
  color: var(--ink-light);
  letter-spacing: 0.15em;
  opacity: 0.4;
}

/* ═══ 体验5：一忘禅 ═══ */

.forget-step {
  text-align: center;
  transition: opacity 0.8s;
}

.forget-step.hidden {
  display: none;
}

.forget-label {
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.forget-label-strong {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 900;
  color: var(--forest);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.forget-think {
  font-size: 1.5rem;
  color: var(--stone);
  letter-spacing: 0.3em;
  opacity: 0;
  transition: opacity 1s;
  min-height: 1.5em;
}

.forget-fade {
  font-size: 0.85rem;
  color: var(--rust);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 1s;
  min-height: 1.5em;
  margin-top: 1rem;
}

.forget-final {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--moss-dark);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.forget-final-sub {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* ═══ 体验6：一音禅 ═══ */

.sound-container {
  margin: 2rem auto 2rem;
  display: flex;
  justify-content: center;
}

.sound-bowl {
  position: relative;
  cursor: pointer;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.sound-bowl:hover {
  transform: scale(1.05);
}

.sound-bowl:active {
  transform: scale(0.98);
}

.bowl-svg {
  width: 200px;
  height: 200px;
}

.sound-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  opacity: 0;
  pointer-events: none;
}

.sound-ripple.animate {
  animation: rippleOut 3s ease-out;
}

@keyframes rippleOut {
  0% {
    width: 120px;
    height: 120px;
    opacity: 0.6;
    border-width: 3px;
  }
  100% {
    width: 320px;
    height: 320px;
    opacity: 0;
    border-width: 1px;
  }
}

.sound-hint {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-top: 1rem;
  transition: opacity 0.5s;
}

.sound-replay {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  background: rgba(184,118,74,0.06);
  border: 1px solid rgba(184,118,74,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.sound-replay:hover {
  background: rgba(184,118,74,0.12);
  border-color: var(--rust);
}

/* ═══ 体验7：一白禅 ═══ */

.white-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 0;
  opacity: 0;
}

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

.white-hint {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--stone);
  opacity: 0.5;
  margin-bottom: 2rem;
  transition: opacity 2s;
}

.white-timer {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--stone);
  opacity: 0.2;
  transition: opacity 0.5s;
}

/* ═══ 响应式 ═══ */

@media (max-width: 768px) {
  .breath-container {
    width: 240px;
    height: 240px;
  }

  .sound-bowl, .bowl-svg {
    width: 160px;
    height: 160px;
  }

  .nav-controls {
    bottom: 1rem;
    right: 1rem;
  }

  .nav-btn {
    width: 34px;
    height: 34px;
  }

  .progress-bar {
    top: 1rem;
  }

  .progress-dots {
    padding: 0.4rem 0.8rem;
    gap: 0.4rem;
  }

  .pdot {
    width: 6px;
    height: 6px;
  }

  .progress-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .welcome-inner {
    padding: 0 1.5rem;
  }

  .moment-inner {
    padding: 1.5rem 1rem;
  }

  .char-display {
    font-size: clamp(5rem, 22vw, 8rem);
  }

  .breath-container {
    width: 200px;
    height: 200px;
  }

  .quote-text, .koan-display {
    font-size: 1.2rem;
  }
}

/* ═══ 减少动画（无障碍） ═══ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
