/* ============ 奇迹夏夏 · 纪念花园 ============
   色彩取自首屏影像：靛蓝夜空 → 蜜桃余晖，蝴蝶的浅蓝，烛光的暖金。 */
:root {
  --night: #0b1330;
  --night-2: #142048;
  --dusk: #263a72;
  --peach: #f4b58a;
  --ember: #e98a5c;
  --gold: #f6d797;
  --flame: #ffcf7a;
  --wing: #9fd0ff;
  --wing-deep: #5e9de0;
  --cream: #fbf4ea;
  --mist: rgba(251, 244, 234, 0.72);
  --faint: rgba(251, 244, 234, 0.46);
  --line: rgba(251, 244, 234, 0.14);
  --glass: rgba(14, 22, 52, 0.46);

  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --hand: "LXGW WenKai", "Kaiti SC", "KaiTi", serif;
  --latin: "Cormorant Garamond", "Noto Serif SC", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-veiled { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: rgba(159, 208, 255, 0.35); }

.eyebrow {
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--wing);
  opacity: 0.85;
}

/* ---------- 帷幕 ---------- */
.veil {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 110%, #1c2c5c 0%, var(--night) 55%, #050916 100%);
  transition: opacity 1.6s var(--ease-soft), visibility 1.6s;
}
.veil.is-gone { opacity: 0; visibility: hidden; }
.veil__inner { text-align: center; padding: 0 24px; }
.veil__line {
  font-family: var(--hand);
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 0.3em;
  color: var(--mist);
  opacity: 0;
  animation: rise 1.8s var(--ease-out) forwards;
}
.veil__line:nth-child(2) { animation-delay: 1.1s; color: var(--cream); }
.veil__enter {
  margin-top: 56px;
  padding: 14px 40px;
  border: 1px solid rgba(246, 215, 151, 0.5);
  border-radius: 999px;
  background: rgba(246, 215, 151, 0.06);
  font-family: var(--serif);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold);
  opacity: 0;
  animation: rise 1.6s var(--ease-out) 2.3s forwards;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.veil__enter:hover, .veil__enter:focus-visible {
  background: rgba(246, 215, 151, 0.14);
  box-shadow: 0 0 40px rgba(246, 215, 151, 0.25);
  transform: translateY(-2px);
  outline: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- 全局粒子画布 ---------- */
.sky {
  position: fixed; inset: 0; z-index: 30;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 14px;
  letter-spacing: 0.2em;
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
}
.nav.is-solid {
  background: rgba(11, 19, 48, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { font-family: var(--hand); font-size: 20px; text-decoration: none; letter-spacing: 0.3em; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 36px); }
.nav__links a {
  text-decoration: none; color: var(--mist);
  position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px;
  background: var(--gold); transition: left 0.4s var(--ease-out), right 0.4s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-here { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-here::after { left: 0; right: 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  transform: scale(1.12);
  animation: breathe 28s var(--ease-soft) infinite alternate;
}
body.is-entered .hero__media img { animation-play-state: running; }
@keyframes breathe {
  from { transform: scale(1.12) translateY(0); }
  to   { transform: scale(1.02) translateY(-1.5%); }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,19,48,0.55) 0%, rgba(11,19,48,0) 30%, rgba(11,19,48,0) 58%, rgba(11,19,48,0.55) 78%, rgba(11,19,48,0.95) 100%);
}
.hero__title {
  position: absolute; left: 0; right: 0; top: clamp(90px, 15vh, 160px);
  text-align: center;
}
.hero__kicker { font-family: var(--latin); letter-spacing: 0.6em; font-size: 13px; color: var(--mist); text-indent: 0.6em; }
.hero__name {
  margin-top: 14px;
  font-weight: 900;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-shadow: 0 6px 50px rgba(11, 19, 48, 0.5);
}
.hero__name span {
  display: inline-block; opacity: 0; transform: translateY(30px); filter: blur(12px);
  background: linear-gradient(180deg, #fffaf1 20%, #f6d797 75%, #f4b58a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding: 0 0.02em;
}
body.is-entered .hero__name span { animation: rise 2.2s var(--ease-out) forwards; }
body.is-entered .hero__name span:nth-child(2) { animation-delay: 0.35s; }
.hero__real {
  margin-top: 18px;
  font-family: var(--hand);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--cream);
  opacity: 0;
}
body.is-entered .hero__real { animation: rise 2s var(--ease-out) 0.9s forwards; }

.hero__vertical {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--hand);
  font-size: 18px; letter-spacing: 0.6em;
  color: var(--mist);
  opacity: 0;
}
body.is-entered .hero__vertical { animation: rise 2.4s var(--ease-out) 1.6s forwards; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 44px);
  text-align: center; padding: 0 var(--gutter);
  text-shadow: 0 2px 18px rgba(11, 19, 48, 0.95), 0 0 4px rgba(11, 19, 48, 0.8);
  opacity: 0;
}
body.is-entered .hero__foot { animation: rise 2s var(--ease-out) 1.4s forwards; }
.hero__date {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--latin); font-size: 18px; letter-spacing: 0.22em; color: var(--gold);
}
.hero__date .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.hero__wish { margin-top: 8px; color: var(--mist); font-size: 15px; letter-spacing: 0.15em; }
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 28px; text-decoration: none;
  font-size: 12px; letter-spacing: 0.4em; color: var(--faint);
}
.hero__scroll i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 通用标题 ---------- */
.section-head { text-align: center; padding: 0 var(--gutter); }
.section-head h2, .garden__head h2 {
  margin-top: 10px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.18em; text-indent: 0.18em;
  line-height: 1.2;
}
.section-sub { margin: 18px auto 0; max-width: 34em; color: var(--mist); font-size: 16px; letter-spacing: 0.05em; }

/* ---------- 她的五年 ---------- */
.story {
  position: relative;
  padding: clamp(110px, 16vh, 180px) 0 80px;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(38,58,114,0.55), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 50%, var(--night) 100%);
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1280px;
  margin: clamp(56px, 9vh, 100px) auto 0;
  padding: 0 var(--gutter);
}
.story__stage { position: relative; }
.frame {
  position: sticky; top: 12vh;
  height: 76vh; max-height: 820px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.7), 0 0 0 1px var(--line);
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(0.85) blur(4px);
  transition: opacity 1.4s var(--ease-soft), transform 6s var(--ease-out), filter 1.4s var(--ease-soft);
}
.frame img.is-on { opacity: 1; transform: scale(1); filter: none; }
.frame__grain {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(11,19,48,0.55));
}
.frame__cap {
  position: sticky; top: calc(12vh + min(76vh, 820px) + 12px);
  font-size: 12px; letter-spacing: 0.2em; color: var(--faint);
}

.story__steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
  opacity: 0.18;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-out);
}
.step.is-active { opacity: 1; transform: none; }
.step__year {
  font-family: var(--latin);
  font-size: 15px; letter-spacing: 0.3em;
  color: var(--peach);
}
.step h3 {
  margin: 10px 0 22px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.step p { color: var(--mist); margin-top: 14px; max-width: 30em; }
.step blockquote {
  position: relative;
  font-family: var(--hand);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.6;
  color: var(--gold);
  padding-left: 0;
}
.step__img { display: none; }
.step__soft { font-family: var(--hand); font-size: 22px; color: var(--wing) !important; margin-top: 28px !important; }

/* ---------- 数字 ---------- */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1180px; margin: 0 auto;
  padding: clamp(60px, 10vh, 110px) var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.num { text-align: center; padding: 8px 12px; }
.num + .num { border-left: 1px solid var(--line); }
.num b {
  font-family: var(--latin); font-weight: 400;
  font-size: clamp(54px, 7vw, 96px); line-height: 1;
  color: var(--cream);
}
.num span { font-size: 18px; margin-left: 4px; color: var(--gold); }
.num em { display: block; margin-top: 12px; font-style: normal; font-size: 14px; letter-spacing: 0.25em; color: var(--faint); }

/* ---------- 她说过 ---------- */
.words { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.words__track {
  margin-top: 64px;
  display: flex; gap: clamp(20px, 3vw, 40px);
  padding: 20px var(--gutter) 40px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.words__track::-webkit-scrollbar { display: none; }
.words__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.word {
  flex: 0 0 min(78vw, 440px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  display: flex; align-items: flex-end;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 4px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(159,208,255,0.16), transparent 60%),
    linear-gradient(160deg, rgba(38,58,114,0.7), rgba(11,19,48,0.9));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s;
}
.word:nth-child(2n) { background:
    radial-gradient(120% 80% at 0% 0%, rgba(244,181,138,0.22), transparent 60%),
    linear-gradient(200deg, rgba(56,44,90,0.75), rgba(11,19,48,0.92)); }
.word::before {
  content: "“";
  position: absolute; top: -0.12em; left: 0.12em;
  font-family: var(--latin); font-size: 220px; line-height: 1;
  color: rgba(246,215,151,0.14);
}
.word:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(246,215,151,0.35), 0 30px 80px -30px rgba(0,0,0,0.8); }
.word blockquote {
  font-family: var(--hand);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.6;
  color: var(--cream);
}

/* ---------- 声音：她的原声卡片 ---------- */
.veil__note {
  margin-top: 22px;
  font-size: 13px; letter-spacing: 0.18em; color: var(--faint);
  opacity: 0; animation: rise 1.6s var(--ease-out) 2.8s forwards;
}
.hero__greet {
  margin-top: 22px;
  font-family: var(--hand); font-size: clamp(18px, 2vw, 22px);
  color: var(--gold);
  opacity: 0; transform: translateY(8px); filter: blur(4px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out), filter 0.9s;
  text-shadow: 0 2px 20px rgba(11,19,48,0.9);
}
.hero__greet span { margin-left: 12px; font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; color: var(--mist); }
.hero__greet.is-on { opacity: 1; transform: none; filter: none; }

.words__hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px; padding: 0 var(--gutter);
  font-size: 14px; letter-spacing: 0.12em; color: var(--mist);
}
.words__hint[hidden] { display: none; }

/* 小喇叭/声波图标（纯 CSS） */
.vicon { position: relative; display: inline-block; width: 16px; height: 14px; flex: none; }
.vicon::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 7px; height: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 45% 0, 100% -60%, 100% 160%, 45% 100%, 0 100%);
}
.vicon::after {
  content: ""; position: absolute; left: 7px; top: 1px; width: 8px; height: 12px;
  border: 2px solid currentColor; border-left: 0; border-radius: 0 12px 12px 0;
  opacity: 0.8;
}

.word figcaption {
  position: absolute; left: clamp(28px, 4vw, 44px); right: clamp(28px, 4vw, 44px); top: clamp(24px, 3.4vw, 36px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.16em; color: var(--faint);
}
.word--voice { cursor: pointer; outline: none; }
.word--voice blockquote { position: relative; z-index: 1; margin-bottom: 54px; }
.vbadge { display: inline-flex; align-items: center; gap: 8px; color: var(--wing); }
.word time { font-family: var(--latin); font-size: 14px; letter-spacing: 0.1em; }

.ch { transition: color 0.35s, text-shadow 0.6s; }
.word--voice.is-playing .ch { color: rgba(251,244,234,0.38); }
.word--voice.is-playing .ch.is-lit { color: var(--gold); text-shadow: 0 0 18px rgba(246,215,151,0.55); }

.wave {
  position: absolute; left: clamp(28px, 4vw, 44px); right: clamp(28px, 4vw, 44px); bottom: clamp(24px, 3.4vw, 36px);
  width: calc(100% - 2 * clamp(28px, 4vw, 44px)); height: 34px;
}

.word--voice::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(246,215,151,0);
  transition: box-shadow 0.6s;
}
.word--voice:hover::after, .word--voice:focus-visible::after { box-shadow: inset 0 0 0 1px rgba(159,208,255,0.45); }
.word--voice.is-playing { transform: translateY(-8px); }
.word--voice.is-playing::after {
  box-shadow: inset 0 0 0 1px rgba(246,215,151,0.55), 0 0 60px -10px rgba(246,215,151,0.45);
  animation: breathe-ring 2.2s var(--ease-soft) infinite;
}
@keyframes breathe-ring {
  50% { box-shadow: inset 0 0 0 1px rgba(246,215,151,0.85), 0 0 90px -6px rgba(246,215,151,0.6); }
}
.word--voice.is-playing .vbadge { color: var(--gold); }
.word--voice.is-playing .vicon::after { animation: wave-pulse 0.9s var(--ease-soft) infinite; }
@keyframes wave-pulse { 50% { transform: scale(1.25); opacity: 0.35; } }

/* ---------- 背景音乐唱片 ---------- */
.dock {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 45;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  background: rgba(11,19,48,0.6);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(251,244,234,0.12), 0 18px 40px -16px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-out);
}
.dock[hidden] { display: none; }
.dock.is-in { opacity: 1; transform: none; }
.dock__disc {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none;
}
.disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 14%, #1a1f36 15% 18%, transparent 19%),
    repeating-radial-gradient(circle, #10162e 0 2px, #1d2647 2px 3px),
    #10162e;
  box-shadow: 0 0 0 1px rgba(246,215,151,0.35);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}
.dock.is-playing .disc { animation-play-state: running; box-shadow: 0 0 0 1px rgba(246,215,151,0.6), 0 0 24px rgba(246,215,151,0.35); }
@keyframes spin { to { transform: rotate(360deg); } }
/* 暂停时盖一个播放三角 */
.dock__state {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate(-35%, -50%);
  border-left: 11px solid var(--cream); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
  transition: opacity 0.3s;
}
.dock.is-playing .dock__state { opacity: 0; }
.dock__disc:focus-visible, .dock__next:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dock__meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.dock__meta b { font-family: var(--hand); font-weight: 400; font-size: 15px; color: var(--cream); }
.dock__meta span { font-size: 11px; letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; }
.dock__next {
  position: relative; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(251,244,234,0.06);
  transition: background 0.3s;
}
.dock__next:hover { background: rgba(251,244,234,0.14); }
.dock__next span {
  position: absolute; left: 50%; top: 50%; transform: translate(-60%, -50%);
  border-left: 8px solid var(--mist); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.dock__next span::after {
  content: ""; position: absolute; left: 0; top: -5px; width: 2px; height: 10px; background: var(--mist);
}

/* ---------- 分享 ---------- */
.share-thumb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.nav__share {
  border: 1px solid rgba(246,215,151,0.45); border-radius: 999px; background: rgba(246,215,151,0.08);
  padding: 2px 14px; font-size: 13px; letter-spacing: 0.2em; text-indent: 0.2em; color: var(--gold);
  transition: background 0.3s;
}
.nav__share:hover { background: rgba(246,215,151,0.18); }
.altar-panel__share {
  display: block; margin: 4px auto 0; border: 0; background: none;
  font-size: 13px; letter-spacing: 0.12em; color: var(--wing);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(159,208,255,0.4);
}
.coda__share {
  margin-top: 30px; padding: 12px 30px; border-radius: 999px;
  border: 1px solid rgba(246,215,151,0.5); background: rgba(11,19,48,0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold); letter-spacing: 0.3em; text-indent: 0.3em; text-shadow: none;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.coda__share:hover { background: rgba(246,215,151,0.14); transform: translateY(-2px); }
.nav__share:focus-visible, .altar-panel__share:focus-visible, .coda__share:focus-visible, .share__btn:focus-visible, .share__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

body.is-sharing { overflow: hidden; }
.share {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(5,9,22,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s var(--ease-soft);
}
.share[hidden] { display: none; }
.share.is-on { opacity: 1; }
.share__panel {
  position: relative; width: min(420px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: 22px 20px 20px; border-radius: 22px;
  background: linear-gradient(180deg, #142048, #0b1330);
  box-shadow: inset 0 0 0 1px rgba(251,244,234,0.12), 0 40px 100px -30px rgba(0,0,0,0.8);
  transform: translateY(14px) scale(0.98); transition: transform 0.45s var(--ease-out);
}
.share.is-on .share__panel { transform: none; }
.share__title { font-size: 18px; font-weight: 600; letter-spacing: 0.2em; text-align: center; }
.share__close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(251,244,234,0.06); }
.share__close span::before, .share__close span::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 1.5px; background: var(--mist); transform: rotate(45deg); }
.share__close span::after { transform: rotate(-45deg); }
.share__frame { position: relative; margin-top: 16px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #0b1330; box-shadow: 0 0 0 1px var(--line); }
.share__img { width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: default; }
.share__loading { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--hand); color: var(--mist); }
.share.is-loading .share__loading { display: grid; }
.share.is-loading .share__img { visibility: hidden; }
.share__tip { margin-top: 10px; text-align: center; font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.share__actions { display: flex; gap: 8px; margin-top: 14px; }
.share__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(251,244,234,0.06);
  color: var(--cream); font-size: 14px; letter-spacing: 0.1em; text-decoration: none;
  transition: background 0.3s;
}
.share__btn:hover { background: rgba(251,244,234,0.12); }
.share__btn--gold { background: linear-gradient(135deg, #ffe7b0, #f4b58a); color: var(--night); border-color: transparent; }
.share__btn--gold:hover { background: linear-gradient(135deg, #fff0c8, #f7c39e); }

/* ---------- 树下花园 ---------- */
.garden { position: relative; }
.garden__scene {
  position: relative;
  height: 100svh; min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}
.garden__stage { position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; }
.garden__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 70%;
  z-index: -3;
}
.garden__dim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,19,48,0.75) 0%, rgba(11,19,48,0.1) 32%, rgba(11,19,48,0) 60%, rgba(11,19,48,0.55) 100%);
}
.garden__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.garden__head { position: absolute; top: clamp(72px, 11vh, 120px); left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }

.garden__tally {
  position: absolute; left: var(--gutter); top: 50%; z-index: 2;
  transform: translateY(-50%);
  display: grid; gap: 22px;
  text-shadow: 0 2px 16px rgba(11,19,48,0.8);
}
.garden__tally div { display: flex; align-items: baseline; gap: 10px; }
.garden__tally b {
  font-family: var(--latin); font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1;
  min-width: 2.6ch;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(246,215,151,0.35);
  transition: color 0.3s;
}
.garden__tally b.is-bump { animation: bump 0.9s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); color: var(--cream); } 30% { transform: scale(1.25); color: var(--flame); } 100% { transform: scale(1); } }
.garden__tally span { font-size: 14px; letter-spacing: 0.2em; color: var(--mist); }

.altar-panel {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  transform: translateY(-46%);
  width: 300px;
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(251,244,234,0.12), 0 30px 80px -20px rgba(0,0,0,0.6);
}
.altar-panel__flowers { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid transparent; border-radius: 999px;
  background: rgba(251,244,234,0.06);
  font-size: 14px; letter-spacing: 0.08em; color: var(--mist);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.chip i {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--h) 0 28%, var(--c) 30% 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}
.chip:hover { background: rgba(251,244,234,0.12); color: var(--cream); }
.chip.is-active { border-color: rgba(246,215,151,0.55); background: rgba(246,215,151,0.12); color: var(--cream); }
.chip:focus-visible, .act:focus-visible, .send:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.altar-panel__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.act {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  border: 0; border-radius: 14px;
  font-size: 16px; letter-spacing: 0.15em;
  color: var(--night);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, filter 0.35s;
}
.act--flower  { background: linear-gradient(135deg, #fffaf1, #f3dccb); }
.act--candle  { background: linear-gradient(135deg, #ffe3a6, #f4b58a); }
.act--incense { background: linear-gradient(135deg, #cfe6ff, #9fc3ef); }
.act:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(246,215,151,0.55); }
.act:active { transform: translateY(0) scale(0.97); }
.act[disabled] { filter: grayscale(0.5) brightness(0.8); cursor: default; transform: none; }
.act::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.8), transparent 40%);
  opacity: 0; transition: opacity 0.6s;
}
.act.is-ripple::after { opacity: 1; transition: none; }

/* 按钮内的小图标（纯 CSS） */
.act__ico { position: relative; width: 18px; height: 22px; flex: none; }
.ico-flower::before {
  content: ""; position: absolute; left: 1px; top: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, #f2c14e 0 22%, transparent 24%),
              conic-gradient(from 0deg, #fff 0 12%, #f6e7dc 12% 25%, #fff 25% 37%, #f6e7dc 37% 50%, #fff 50% 62%, #f6e7dc 62% 75%, #fff 75% 87%, #f6e7dc 87%);
  box-shadow: 0 0 0 1px rgba(11,19,48,0.25);
}
.ico-flower::after { content: ""; position: absolute; left: 8px; top: 16px; width: 2px; height: 7px; background: #4d7a4a; }
.ico-candle::before { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 13px; border-radius: 2px; background: #fffaf1; box-shadow: 0 0 0 1px rgba(11,19,48,0.25); }
.ico-candle::after {
  content: ""; position: absolute; left: 6px; top: 0; width: 6px; height: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff6c9, #ff9a3c 70%);
  animation: flick 0.18s infinite alternate;
}
@keyframes flick { to { transform: scaleY(1.12) translateX(0.3px); } }
.ico-incense::before { content: ""; position: absolute; left: 8px; top: 6px; width: 2px; height: 16px; background: #7b4b2a; }
.ico-incense::after { content: ""; position: absolute; left: 7px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ff6b3d; box-shadow: 0 0 8px #ff8a4d; }

.altar-panel__whisper {
  margin-top: 10px; text-align: center;
  font-family: var(--hand); font-size: 15px; color: var(--mist);
  min-height: 1.6em;
  transition: opacity 0.4s;
}

/* ---------- 寄给夏夏 ---------- */
.letters {
  position: relative;
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(94,157,224,0.18), transparent 70%),
    var(--night);
}
.letter-form {
  max-width: 640px; margin: 56px auto 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(251,244,234,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.letter-form input, .letter-form textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-family: var(--hand);
  font-size: 18px; line-height: 1.7;
  padding: 10px 4px;
  resize: none;
  transition: border-color 0.3s;
}
.letter-form textarea { margin-top: 6px; }
.letter-form input::placeholder, .letter-form textarea::placeholder { color: rgba(251,244,234,0.32); }
.letter-form input:focus, .letter-form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.letter-form__row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.letter-form__count { font-family: var(--latin); color: var(--faint); font-size: 14px; }
.send {
  padding: 12px 28px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #cfe6ff, #9fc3ef);
  color: var(--night);
  letter-spacing: 0.25em; text-indent: 0.25em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.send:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(159,208,255,0.7); }
.send[disabled] { opacity: 0.6; cursor: default; transform: none; }

.letters__wall {
  max-width: 1180px; margin: 64px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px;
}
.note {
  flex: 0 1 360px;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(38,58,114,0.5), rgba(20,32,72,0.4));
  box-shadow: inset 0 0 0 1px var(--line);
  animation: rise 1.2s var(--ease-out) both;
}
.note--pending { background: linear-gradient(160deg, rgba(246,215,151,0.08), rgba(20,32,72,0.4)); box-shadow: inset 0 0 0 1px rgba(246,215,151,0.28); }
.note__tag { display: inline-block; margin-bottom: 10px; padding: 0 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; color: var(--gold); border: 1px solid rgba(246,215,151,0.4); }
.note p { font-family: var(--hand); font-size: 19px; line-height: 1.7; color: var(--cream); word-break: break-word; }
.note footer { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); letter-spacing: 0.06em; }
.letters__empty { text-align: center; margin-top: 48px; font-family: var(--hand); color: var(--faint); font-size: 18px; }
.letters__empty[hidden] { display: none; }

/* ---------- 尾声 ---------- */
.coda {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  padding: 120px var(--gutter);
}
.coda__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.coda__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 34% at 50% 80%, rgba(11,19,48,0.72), transparent 100%),
    linear-gradient(180deg, var(--night) 0%, rgba(11,19,48,0.2) 30%, rgba(11,19,48,0.15) 60%, rgba(11,19,48,0.7) 100%);
}
.coda__inner { text-align: center; text-shadow: 0 2px 20px rgba(11,19,48,0.95), 0 0 6px rgba(11,19,48,0.9); }
.polaroid {
  display: inline-block;
  padding: 12px 12px 0;
  background: #fbf7f0;
  border-radius: 2px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
  transform: rotate(-3deg);
  transition: transform 0.9s var(--ease-out);
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); }
.polaroid img { width: clamp(170px, 20vw, 230px); aspect-ratio: 521 / 680; object-fit: cover; }
.polaroid figcaption { font-family: var(--hand); color: #3a3550; font-size: 20px; padding: 10px 0 14px; letter-spacing: 0.3em; }
.coda__title {
  margin-top: 44px;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  letter-spacing: 0.15em; text-indent: 0.15em;
  line-height: 1.2;
  text-shadow: 0 0 60px rgba(159,208,255,0.55);
}
.coda__text { margin-top: 24px; color: var(--mist); font-size: 17px; letter-spacing: 0.12em; }
.coda__text--small { margin-top: 36px; font-size: 14px; color: var(--faint); letter-spacing: 0.3em; }

.foot {
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.9; color: var(--faint);
  text-align: center;
}
.foot p { max-width: 60em; margin: 0 auto; }
.foot p + p { margin-top: 8px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60;
  transform: translate(-50%, -12px);
  padding: 10px 22px; border-radius: 999px;
  background: rgba(11,19,48,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(246,215,151,0.3);
  font-family: var(--hand); font-size: 16px; color: var(--gold);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 进入视口时的淡入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease-soft), transform 1.4s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: 0; padding: 0 0 72px; opacity: 0.35; }
  .step__img {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 6px; margin-bottom: 26px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px var(--line);
  }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .num:nth-child(3) { border-left: 0; }
  .hero__vertical { display: none; }
  .garden__scene { height: auto; min-height: 0; padding-bottom: 28px; background: var(--night); }
  .garden__stage { position: relative; inset: auto; height: clamp(440px, 125vw, 80svh); }
  .garden__dim { background: linear-gradient(180deg, rgba(11,19,48,0.8) 0%, rgba(11,19,48,0.1) 34%, rgba(11,19,48,0) 70%, rgba(11,19,48,0.9) 100%); }
  .garden__tally {
    position: relative; top: auto; left: auto; transform: none;
    margin-top: -18px;
    display: flex; justify-content: center; gap: 28px;
  }
  .altar-panel {
    position: relative; right: auto; top: auto; transform: none;
    width: auto; margin: 18px 16px 0;
  }
  .altar-panel__actions { grid-template-columns: repeat(3, 1fr); }
  .garden__tally div { flex-direction: column; align-items: center; gap: 2px; }
  .garden__tally b { min-width: 0; font-size: 32px; }
  .garden__tally span { font-size: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__links { gap: 14px; font-size: 12px; letter-spacing: 0.1em; }
  .nav__brand { font-size: 17px; }
  .act { font-size: 14px; letter-spacing: 0.05em; gap: 6px; min-height: 50px; }
  .chip { font-size: 13px; padding: 5px 10px 5px 6px; }
  .altar-panel { padding: 14px 12px 10px; }
  .act { flex-direction: column; gap: 4px; min-height: 64px; }
  .nav__links a[href="#words"] { display: none; }
  .nav__share { padding: 1px 10px; font-size: 12px; letter-spacing: 0.1em; text-indent: 0.1em; }
  .dock { left: 12px; bottom: 12px; gap: 8px; padding: 6px; }
  .dock__meta { display: none; }
  .dock__disc { width: 40px; height: 40px; }
  .hero__date { font-size: 15px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
