/* ============================================================
   生日惊喜网站 · 全站样式
   结构：
   01 基础变量与重置
   02 背景氛围 / 滤镜层
   03 通用按钮、标题、滚动淡入
   04 第一屏：暗号锁
   05 第二屏：倒计时
   06 主网站首屏
   07 时间线
   08 照片墙翻转卡片
   09 星空许愿
   10 生日蛋糕
   11 礼物与页脚
   12 音乐播放器
   13 拆礼物全屏层
   14 响应式与无障碍
   ============================================================ */

/* ---------- 01 基础变量与重置 ---------- */
:root {
  --bg-deep: #07050b;
  --bg: #0b0710;
  --bg-soft: #130d19;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-warm: rgba(255, 205, 145, 0.22);
  --text: #fff6eb;
  --text-soft: #e8d9cc;
  --text-muted: #b9a8b3;
  --text-faint: #8f7f8b;
  --gold: #ffc978;
  --gold-soft: #ffe2ad;
  --peach: #ff9a7f;
  --rose: #f883a4;
  --lavender: #c7adff;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-card: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-pad: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(117, 50, 55, 0.2), transparent 48%),
    radial-gradient(ellipse at 95% 15%, rgba(86, 54, 126, 0.15), transparent 45%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 171, 101, 0.08), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(5, 3, 8, 0.24) 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-soft);
}

::selection {
  color: #24101a;
  background: var(--gold);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--text);
  background: var(--bg);
  text-align: center;
}

/* ---------- 02 背景氛围 / 滤镜层 ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 12% 6%, rgba(255, 128, 95, 0.1), transparent 66%),
    radial-gradient(800px 700px at 88% 18%, rgba(167, 111, 255, 0.1), transparent 62%),
    radial-gradient(1000px 800px at 55% 110%, rgba(255, 170, 91, 0.08), transparent 66%);
}

.ambient-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.45;
  mix-blend-mode: screen;
  will-change: transform;
}

.ambient-orb--one {
  top: -12vw;
  left: -6vw;
  width: 40vw;
  height: 40vw;
  min-width: 320px;
  min-height: 320px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 139, 95, 0.5), rgba(118, 44, 56, 0.1) 68%);
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.ambient-orb--two {
  top: 18vh;
  right: -12vw;
  width: 45vw;
  height: 45vw;
  min-width: 340px;
  min-height: 340px;
  background: radial-gradient(circle at 50% 50%, rgba(137, 89, 225, 0.32), rgba(60, 35, 95, 0.04) 72%);
  animation: orbFloat 28s ease-in-out -7s infinite alternate-reverse;
}

.ambient-orb--three {
  bottom: -20vw;
  left: 30%;
  width: 44vw;
  height: 44vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 174, 93, 0.22), rgba(137, 72, 73, 0.03) 72%);
  animation: orbFloat 26s ease-in-out -12s infinite alternate;
}

.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle-canvas {
  z-index: 1;
}

.fireworks-canvas {
  z-index: 2;
}

/* ---------- 03 通用按钮、标题、滚动淡入 ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.9s var(--ease-soft),
    visibility 0.9s var(--ease-soft);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1.7;
  text-transform: uppercase;
}

.section {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(84px, 11vw, 142px) var(--page-pad);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  line-height: 1.8;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  text-wrap: balance;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.95;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--ease-soft),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease;
}

.btn:focus-visible,
.music-toggle:focus-visible,
.volume-slider:focus-visible,
.gift-overlay-close:focus-visible,
.memory-card:focus-visible,
.cake:focus-visible,
.wish-stage:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.btn-primary {
  color: #2b101b;
  background: linear-gradient(135deg, #ffe6af 0%, #ffc472 32%, #ff957d 68%, #f97f9e 100%);
  box-shadow:
    0 16px 44px rgba(255, 135, 110, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 58px rgba(255, 135, 110, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 205, 145, 0.35);
  background: rgba(255, 255, 255, 0.055);
}

.btn-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.35s var(--ease-soft);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 04 第一屏：暗号锁 ---------- */
.lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 96px 24px 74px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 166, 104, 0.13), transparent 33%),
    radial-gradient(circle at 18% 82%, rgba(141, 89, 215, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(10, 6, 15, 0.82), rgba(7, 4, 11, 0.97));
}

.lock-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(4, 2, 7, 0.35) 100%),
    linear-gradient(180deg, rgba(255, 237, 213, 0.02), transparent 20%);
}

.lock-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 200, 129, 0.13);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.lock-orbit--one {
  width: min(74vw, 780px);
  aspect-ratio: 1;
  animation: slowSpin 46s linear infinite;
}

.lock-orbit--one::before,
.lock-orbit--one::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 20px rgba(255, 206, 139, 0.8);
}

.lock-orbit--one::before {
  top: 13%;
  left: 21%;
}

.lock-orbit--one::after {
  right: 6%;
  bottom: 34%;
  width: 4px;
  height: 4px;
  opacity: 0.65;
}

.lock-orbit--two {
  width: min(94vw, 1050px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.045);
  animation: slowSpin 72s linear infinite reverse;
}

.lock-spark {
  position: absolute;
  color: var(--gold-soft);
  font-size: 18px;
  opacity: 0.7;
  pointer-events: none;
  text-shadow: 0 0 22px rgba(255, 203, 129, 0.7);
  animation: sparkleFloat 5s ease-in-out infinite;
}

.lock-spark--one {
  top: 23%;
  left: 17%;
}

.lock-spark--two {
  right: 16%;
  bottom: 26%;
  font-size: 12px;
  animation-delay: -2.4s;
}

.lock-content {
  position: relative;
  z-index: 2;
  width: min(100%, 590px);
  margin: auto 0;
  padding: 30px 0;
  animation: riseIn 1.2s var(--ease-soft) both;
}

.keyhole {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 201, 135, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 219, 158, 0.17), transparent 50%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 0 52px rgba(255, 174, 101, 0.14),
    inset 0 0 25px rgba(255, 193, 118, 0.06);
}

.keyhole::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 205, 145, 0.12);
  border-radius: 50%;
}

.keyhole-dot {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(255, 205, 145, 0.55);
}

.keyhole-stem {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: var(--gold-soft);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 205, 145, 0.5);
}

.lock-title {
  margin: 0 0 17px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.18;
  text-wrap: balance;
  text-shadow: 0 18px 65px rgba(255, 146, 99, 0.13);
}

.lock-copy {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing: 0.12em;
}

.lock-form {
  width: min(100%, 430px);
  margin: 0 auto;
}

.input-shell {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 20px 54px rgba(0, 0, 0, 0.24);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.input-shell:focus-within {
  border-color: rgba(255, 201, 133, 0.62);
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 0 0 4px rgba(255, 197, 122, 0.075),
    0 20px 60px rgba(0, 0, 0, 0.28);
}

.input-spark {
  margin-right: 12px;
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
  opacity: 0.85;
}

#passInput {
  width: 100%;
  min-width: 0;
  padding: 17px 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.13em;
  text-align: center;
}

#passInput::placeholder {
  color: #8f7f8b;
  font-size: 14px;
  letter-spacing: 0.08em;
}

#passInput:disabled {
  opacity: 0.6;
}

.lock-submit {
  width: 100%;
  margin-top: 14px;
  padding-block: 16px;
}

.lock-feedback {
  min-height: 27px;
  margin: 15px 0 0;
  color: #ffb7ad;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.lock-feedback.is-success {
  color: #b9f4ca;
}

.lock-hint {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.lock-footnote {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  letter-spacing: 0.3em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lock-footnote span {
  margin: 0 8px;
}

.lock-form.shake {
  animation: shake 0.46s ease both;
}

/* ---------- 05 第二屏：倒计时 ---------- */
.countdown-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 78px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 183, 108, 0.12), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(149, 96, 211, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(9, 6, 14, 0.88), rgba(7, 4, 11, 0.97));
}

.countdown-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, transparent 30%, rgba(3, 2, 5, 0.35) 100%);
}

.countdown-inner {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: auto;
  animation: riseIn 1s var(--ease-soft) both;
}

.countdown-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-wrap: balance;
}

.countdown-title span {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 22px);
  margin: clamp(32px, 5vw, 52px) auto 30px;
}

.time-unit {
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  padding: clamp(15px, 2.4vw, 24px) 6px clamp(13px, 2vw, 19px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: clamp(16px, 2.2vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.time-value {
  display: block;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8.3vw, 6.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.05;
  background: linear-gradient(140deg, #fff6d8 0%, #ffd082 30%, #ff9c84 62%, #c9a9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 26px rgba(255, 171, 105, 0.16));
}

.time-label {
  display: block;
  margin-top: 8px;
  color: var(--text-faint);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.42em;
  line-height: 1.6;
  text-indent: 0.42em;
}

.countdown-copy {
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: clamp(13px, 1.45vw, 15px);
  line-height: 2;
}

.countdown-date {
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.countdown-enter {
  min-width: 190px;
  padding-block: 16px;
}

.countdown-small {
  margin: 17px 0 0;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

/* ---------- 06 主网站首屏 ---------- */
.main-screen {
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background:
    linear-gradient(180deg, rgba(7, 4, 11, 0.22) 0%, rgba(7, 4, 11, 0.44) 30%, rgba(7, 4, 11, 0.74) 68%, #08050c 100%);
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 196, 107, 0.36) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.main-screen::-webkit-scrollbar {
  width: 8px;
}

.main-screen::-webkit-scrollbar-track {
  background: transparent;
}

.main-screen::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(255, 196, 107, 0.34);
  background-clip: padding-box;
}

.main-screen.no-scroll {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(112px, 15vh, 170px) var(--page-pad) 106px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(800px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 174, 100, 0.12), transparent 64%);
  filter: blur(22px);
  transform: translateX(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 18%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow:
    -22vw -24vh 0 0 rgba(255, 210, 150, 0.45),
    12vw -34vh 0 0 rgba(255, 154, 127, 0.45),
    -5vw -12vh 0 0 rgba(201, 169, 255, 0.5),
    18vw -9vh 0 0 rgba(255, 223, 177, 0.35),
    -30vw 5vh 0 0 rgba(255, 163, 151, 0.38);
  animation: heroTwinkle 4.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
}

.hero-kicker {
  margin: 0 0 25px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.44em;
  line-height: 1.8;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1s ease,
    transform 1s var(--ease-soft);
}

.hero-title {
  min-height: 2.45em;
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.65rem, 7.8vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
  text-wrap: balance;
  text-shadow:
    0 22px 70px rgba(255, 155, 104, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-typed {
  white-space: pre-line;
}

.hero-caret {
  display: inline-block;
  width: 2px;
  height: 0.88em;
  margin-left: 7px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--peach));
  box-shadow: 0 0 16px rgba(255, 197, 126, 0.75);
  vertical-align: -0.03em;
  animation: caretBlink 0.86s step-end infinite;
  transition: opacity 0.5s ease;
}

.hero-title.is-done .hero-caret {
  opacity: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--text-muted);
  font-size: clamp(14px, 1.65vw, 17px);
  letter-spacing: 0.035em;
  line-height: 2;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1s ease,
    transform 1s var(--ease-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1s ease,
    transform 1s var(--ease-soft);
}

.hero.is-ready .hero-kicker {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.hero.is-ready .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.hero.is-ready .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.88s;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: cueFloat 3.4s ease-in-out infinite;
}

.scroll-cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 205, 139, 0.8), transparent);
}

/* ---------- 07 时间线 ---------- */
.timeline-section {
  padding-top: clamp(76px, 10vw, 126px);
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 0 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 201, 128, 0.42) 9%,
    rgba(255, 255, 255, 0.12) 52%,
    rgba(255, 201, 128, 0.24) 85%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  width: calc(50% - 48px);
  margin-bottom: 42px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: calc(50% + 48px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 29px;
  width: 13px;
  height: 13px;
  border: 3px solid #241521;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5ce, #ffc16b 46%, #d27561);
  box-shadow:
    0 0 0 4px rgba(255, 186, 111, 0.08),
    0 0 25px rgba(255, 180, 100, 0.62);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -55px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -55px;
}

.timeline-card {
  padding: clamp(20px, 2.6vw, 27px) clamp(20px, 2.8vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 24px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s var(--ease-soft),
    border-color 0.4s ease,
    background-color 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-card {
  border-radius: 22px 7px 22px 22px;
}

.timeline-item:nth-child(even) .timeline-card {
  border-radius: 7px 22px 22px 22px;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(255, 199, 124, 0.25);
  transform: translateY(-4px);
}

.timeline-date {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.7;
  text-transform: uppercase;
}

.timeline-title {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.timeline-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.95;
}

/* ---------- 08 照片墙翻转卡片 ---------- */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  perspective: 1500px;
}

.memory-wrap {
  min-width: 0;
  perspective: 1200px;
}

.memory-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  outline: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-card);
  -webkit-tap-highlight-color: transparent;
}

.memory-card.is-flipped {
  transform: rotateY(180deg);
}

.memory-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--gold-soft),
    0 0 0 8px rgba(255, 205, 139, 0.1);
}

.memory-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.memory-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(17px, 2.4vw, 26px);
  color: #fff8ee;
  text-align: left;
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 28px 65px rgba(0, 0, 0, 0.25);
}

.memory-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(8, 5, 12, 0.02) 18%, rgba(8, 5, 12, 0.14) 48%, rgba(8, 5, 12, 0.84) 100%);
}

.memory-front > * {
  position: relative;
  z-index: 2;
}

.memory-index {
  position: absolute;
  top: clamp(15px, 2vw, 21px);
  left: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.memory-symbol {
  position: absolute;
  top: 48%;
  left: 50%;
  font-size: clamp(43px, 5.2vw, 66px);
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 12px 24px rgba(48, 22, 35, 0.28));
  transform: translate(-50%, -55%);
}

.memory-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.memory-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.17em;
  line-height: 1.8;
}

.memory-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 30px);
  text-align: left;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 166, 111, 0.1), transparent 42%),
    linear-gradient(155deg, rgba(49, 31, 51, 0.98), rgba(20, 12, 26, 0.99));
  box-shadow:
    inset 0 0 70px rgba(255, 160, 117, 0.055),
    0 28px 65px rgba(0, 0, 0, 0.32);
  transform: rotateY(180deg);
}

.memory-back::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 16px;
  color: rgba(255, 199, 120, 0.14);
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
}

.memory-back-label {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.7;
}

.memory-back p {
  margin: 0;
  color: #f4e6da;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.95;
}

.memory-back-hint {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.7;
}

/* ---------- 09 星空许愿 ---------- */
.wish-section {
  padding-bottom: clamp(90px, 11vw, 140px);
}

.wish-stage {
  position: relative;
  height: clamp(380px, 54vw, 540px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  outline: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 193, 128, 0.14), transparent 31%),
    radial-gradient(ellipse at 50% 120%, rgba(95, 53, 105, 0.6), transparent 58%),
    linear-gradient(180deg, #0c0715 0%, #090611 54%, #130b1c 100%);
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.42),
    0 32px 90px rgba(0, 0, 0, 0.26);
  cursor: crosshair;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wish-stage::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 218, 166, 0.12), transparent 68%);
  filter: blur(8px);
}

.wish-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(2, 1, 5, 0.55);
}

.wish-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.wish-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 245, 230, 0.72);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  letter-spacing: 0.13em;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.wish-hint-star {
  color: var(--gold-soft);
  font-size: 14px;
  text-shadow: 0 0 12px rgba(255, 207, 139, 0.85);
  animation: heroTwinkle 3.4s ease-in-out infinite;
}

.wish-bubbles {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.wish-bubble {
  position: absolute;
  max-width: min(220px, 64vw);
  padding: 10px 16px;
  border: 1px solid rgba(255, 205, 152, 0.28);
  border-radius: 18px 18px 18px 6px;
  color: #fff1dd;
  background: linear-gradient(135deg, rgba(80, 51, 67, 0.9), rgba(39, 24, 48, 0.94));
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(255, 181, 112, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.65;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
  animation: wishBubbleFloat 4.8s var(--ease-soft) forwards;
}

.wish-counter {
  position: absolute;
  right: 20px;
  bottom: 17px;
  z-index: 5;
  color: rgba(255, 243, 226, 0.46);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  pointer-events: none;
}

.wish-counter strong {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 10 生日蛋糕 ---------- */
.cake-section {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.cake-area {
  position: relative;
  text-align: center;
}

.cake-area::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 50%;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 172, 98, 0.17), transparent 66%);
  filter: blur(24px);
  transform: translateX(-50%);
}

.cake-stage {
  --cake-scale: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  height: calc(300px * var(--cake-scale) + 72px);
  margin: 0 auto;
}

.cake {
  position: relative;
  width: 320px;
  height: 300px;
  border-radius: 30px;
  outline: none;
  cursor: pointer;
  transform: scale(var(--cake-scale));
  transform-origin: bottom center;
  transition: filter 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.cake:hover {
  filter: brightness(1.06) drop-shadow(0 0 22px rgba(255, 173, 98, 0.16));
}

.cake:focus-visible {
  outline: 2px dashed rgba(255, 205, 140, 0.8);
  outline-offset: 8px;
}

.cake-plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 100%;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 232, 210, 0.33), rgba(93, 59, 82, 0.8) 45%, rgba(27, 15, 31, 0.95) 76%);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.48),
    inset 0 3px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.cake-layer {
  position: absolute;
  left: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px 18px 24px 24px;
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.07),
    inset 0 -22px 32px rgba(35, 11, 23, 0.32),
    0 13px 22px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.layer-bottom {
  bottom: 17px;
  width: 292px;
  height: 103px;
  background: linear-gradient(180deg, #7a4356 0%, #5d3145 48%, #452335 100%);
}

.layer-middle {
  bottom: 106px;
  width: 240px;
  height: 80px;
  background: linear-gradient(180deg, #a05a68 0%, #7c4154 52%, #5b2d41 100%);
  z-index: 3;
}

.layer-top {
  bottom: 170px;
  width: 186px;
  height: 67px;
  background: linear-gradient(180deg, #d18282 0%, #aa5666 55%, #7d3a50 100%);
  z-index: 4;
}

.cake-layer::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 5%;
  left: 5%;
  z-index: 2;
  height: 28px;
  border-radius: 50%;
  background: #f7ddc6;
  box-shadow:
    0 9px 0 -3px #f7ddc6,
    0 16px 20px rgba(37, 13, 25, 0.13);
}

.cake-layer::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 1%;
  left: 1%;
  z-index: 3;
  height: 22px;
  pointer-events: none;
  background: radial-gradient(circle at 10px 7px, #f7ddc6 0 8px, transparent 8.8px) 0 0 / 27px 22px repeat-x;
}

.cake-sprinkles {
  position: absolute;
  top: 36%;
  right: 14%;
  left: 14%;
  z-index: 4;
  height: 26px;
  opacity: 0.82;
  background-image:
    radial-gradient(circle, #ffdc98 0 2px, transparent 2.5px),
    radial-gradient(circle, #ffabc0 0 2px, transparent 2.5px),
    radial-gradient(circle, #bedcff 0 1.7px, transparent 2.2px);
  background-position:
    0 0,
    17px 9px,
    6px 17px;
  background-size:
    38px 26px,
    53px 26px,
    29px 26px;
}

.cake-sprinkles::before,
.cake-sprinkles::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: #ffd88f;
  opacity: 0.8;
}

.cake-sprinkles::before {
  top: 3px;
  left: 28%;
  transform: rotate(18deg);
}

.cake-sprinkles::after {
  top: 13px;
  right: 22%;
  background: #b7d7ff;
  transform: rotate(-24deg);
}

.candles {
  position: absolute;
  bottom: 229px;
  left: 50%;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  gap: 21px;
  transform: translateX(-50%);
}

.candle {
  position: relative;
  display: block;
  width: 11px;
  height: 54px;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #fff1dd 0 6px, #f19aa5 6px 12px);
  box-shadow:
    inset -2px 0 4px rgba(96, 30, 48, 0.22),
    0 4px 8px rgba(0, 0, 0, 0.18);
  transition: filter 0.3s ease;
}

.candle:nth-child(2) {
  height: 62px;
}

.candle:nth-child(3) {
  height: 50px;
}

.candle:nth-child(4) {
  height: 58px;
}

.candle:nth-child(5) {
  height: 54px;
}

.candle-wick {
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 3;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: #3d222e;
  transform: translateX(-50%);
}

.flame {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  z-index: 4;
  width: 18px;
  height: 30px;
  border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%;
  background:
    radial-gradient(ellipse at 50% 72%, #fffbe2 0 10%, #ffe18b 28%, #ffb347 52%, #ff714d 72%, rgba(255, 87, 51, 0) 74%);
  filter:
    drop-shadow(0 0 10px rgba(255, 166, 67, 0.85))
    drop-shadow(0 0 22px rgba(255, 112, 69, 0.34));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: flameDance 0.42s ease-in-out infinite alternate;
}

.flame::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 11px;
  border-radius: 50%;
  background: #fffbea;
  filter: blur(0.5px);
  opacity: 0.9;
  transform: translateX(-50%);
}

.candle:nth-child(2n) .flame {
  height: 28px;
  animation-delay: -0.2s;
}

.candle:nth-child(3n) .flame {
  animation-delay: -0.32s;
}

.candle.is-blown .flame {
  opacity: 0;
  animation: none;
  transform: translateX(-50%) translateY(-13px) scale(0.2);
  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}

.candle.is-blown .candle-wick {
  background: #24151b;
}

.candle.is-blown::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  width: 9px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(219, 205, 211, 0.36), rgba(255, 255, 255, 0));
  filter: blur(4px);
  pointer-events: none;
  transform: translateX(-50%);
  animation: smokeRise 2s ease-out forwards;
}

.cake-hint {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.8;
}

.cake-wish {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 23px 28px;
  border: 1px solid rgba(255, 204, 141, 0.2);
  border-radius: 22px;
  color: #ffe6b7;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 183, 107, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(52, 31, 46, 0.78), rgba(23, 14, 29, 0.9));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.55;
  animation: wishReveal 0.8s var(--ease-soft) both;
}

.cake-wish-small {
  display: block;
  margin-top: 9px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.07em;
  line-height: 1.8;
}

/* ---------- 11 礼物与页脚 ---------- */
.gift-section {
  padding-bottom: clamp(86px, 10vw, 120px);
}

.gift-card {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 90px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255, 205, 145, 0.18);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 184, 105, 0.2), transparent 55%),
    radial-gradient(circle at 92% 110%, rgba(160, 105, 220, 0.08), transparent 40%),
    linear-gradient(160deg, rgba(48, 28, 44, 0.76), rgba(17, 10, 23, 0.93));
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gift-card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 640px;
  height: 360px;
  border: 1px solid rgba(255, 210, 153, 0.11);
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%) rotate(-8deg);
}

.gift-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 172, 102, 0.12), transparent 68%);
}

.gift-card-stars {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.4em;
  line-height: 1.7;
  opacity: 0.75;
  text-indent: 0.4em;
}

.gift-title {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-wrap: balance;
}

.gift-copy {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.95;
}

.gift-button {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 17px 36px;
  font-size: 16px;
}

.gift-emoji {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  animation: giftWiggle 2.8s ease-in-out infinite;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 16px var(--page-pad) calc(60px + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer::before {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 131, 0.6), transparent);
}

.footer-mark {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.32em;
  line-height: 1.6;
  text-indent: 0.32em;
}

.footer-signature {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 23px);
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.footer-date {
  margin: 0 0 22px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.26em;
  line-height: 1.8;
}

.footer-note {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* ---------- 12 音乐播放器 ---------- */
.music-player {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(22, 14, 27, 0.74);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease-soft),
    visibility 0.7s;
}

body.main-open .music-player {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.music-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: none;
  text-align: left;
}

.music-toggle:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
  border-radius: 999px;
}

.music-disc {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3e2a38 0%, #171017 60%, #090609 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.music-disc::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd28d, #ff8d92);
  opacity: 0.9;
}

.music-note {
  position: relative;
  z-index: 2;
  color: #2b1321;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.music-player.is-playing .music-disc {
  animation: spinDisc 5s linear infinite;
}

.music-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 65px;
}

.music-name {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.music-state {
  color: var(--text-faint);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.music-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--gold-soft);
}

.music-icon svg {
  display: block;
}

.icon-pause {
  display: none;
}

.music-player.is-playing .icon-play {
  display: none;
}

.music-player.is-playing .icon-pause {
  display: block;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-label {
  color: var(--text-faint);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.volume-slider {
  width: 72px;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 196, 107, 0.82), rgba(255, 153, 128, 0.6));
}

.volume-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #fff2d4;
  box-shadow: 0 0 0 3px rgba(255, 197, 122, 0.16);
  appearance: none;
  -webkit-appearance: none;
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.volume-slider::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 196, 107, 0.82);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff2d4;
  box-shadow: 0 0 0 3px rgba(255, 197, 122, 0.16);
}

.music-player.is-disabled {
  opacity: 0.65;
}

/* ---------- 13 拆礼物全屏层 ---------- */
.gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 22%, rgba(88, 50, 69, 0.46), transparent 55%),
    rgba(6, 4, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.6s var(--ease-soft),
    visibility 0.6s;
}

.gift-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gift-overlay-glow {
  position: absolute;
  width: min(680px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 104, 0.15), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: overlayBreathe 6s ease-in-out infinite;
}

.gift-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid rgba(255, 214, 164, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 185, 111, 0.08), transparent 36%),
    linear-gradient(160deg, rgba(42, 26, 40, 0.97), rgba(16, 10, 22, 0.985));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.7s var(--ease-soft);
  scrollbar-color: rgba(255, 196, 107, 0.32) transparent;
  scrollbar-width: thin;
}

.gift-overlay.is-open .gift-panel {
  transform: translateY(0) scale(1);
}

.gift-panel::-webkit-scrollbar {
  width: 6px;
}

.gift-panel::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 196, 107, 0.3);
}

.gift-overlay-close {
  position: absolute;
  top: 14px;
  right: 17px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.gift-overlay-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}

.gift-overlay-kicker {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.38em;
  line-height: 1.8;
  text-indent: 0.38em;
}

.gift-overlay-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.letter {
  min-height: 220px;
  margin: 30px 0 8px;
}

.letter-line {
  margin: 0 0 18px;
  color: #f3e7db;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: 0.015em;
  line-height: 2.05;
  white-space: pre-wrap;
}

.letter-line.is-typing::after {
  content: "▍";
  margin-left: 2px;
  color: var(--gold);
  animation: caretBlink 0.8s step-end infinite;
}

.letter-signature {
  margin: 26px 0 0;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: right;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s ease,
    transform 0.8s var(--ease-soft);
}

.letter-signature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay-actions {
  margin-top: 30px;
  text-align: center;
}

/* ---------- 14 动画关键帧 ---------- */
@keyframes orbFloat {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(0.97);
  }
}

@keyframes slowSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.86);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-12px) scale(1.12);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-9px);
  }
  36% {
    transform: translateX(7px);
  }
  54% {
    transform: translateX(-5px);
  }
  72% {
    transform: translateX(3px);
  }
  86% {
    transform: translateX(-1px);
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes cueFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, 7px);
    opacity: 0.85;
  }
}

@keyframes heroTwinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes wishBubbleFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.82);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -72px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -112px) scale(0.96);
  }
}

@keyframes flameDance {
  0% {
    transform: translateX(-50%) rotate(-4deg) scaleX(0.94) scaleY(1);
  }
  100% {
    transform: translateX(-50%) rotate(4deg) scaleX(1.04) scaleY(0.94);
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.6);
  }
  20% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -36px) scale(1.3);
  }
}

@keyframes wishReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes giftWiggle {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  35% {
    transform: rotate(-7deg) translateY(-2px);
  }
  65% {
    transform: rotate(7deg) translateY(-1px);
  }
}

@keyframes overlayBreathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ---------- 15 响应式与无障碍 ---------- */
@media (max-width: 980px) {
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .screen-kicker {
    letter-spacing: 0.28em;
  }

  .section {
    padding-top: clamp(76px, 13vw, 100px);
    padding-bottom: clamp(76px, 13vw, 100px);
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-eyebrow {
    letter-spacing: 0.27em;
  }

  .hero {
    min-height: 100svh;
    padding-top: 115px;
    padding-bottom: 100px;
  }

  .hero-kicker {
    margin-bottom: 20px;
    letter-spacing: 0.27em;
  }

  .hero-title {
    min-height: 2.7em;
    font-size: clamp(2.35rem, 9.5vw, 4.2rem);
  }

  .hero-subtitle {
    max-width: 520px;
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .scroll-cue {
    display: none;
  }

  .lock-content {
    padding-block: 20px;
  }

  .keyhole {
    width: 64px;
    height: 64px;
    margin-bottom: 23px;
  }

  .keyhole-dot {
    top: 18px;
  }

  .keyhole-stem {
    top: 31px;
    height: 16px;
  }

  .lock-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .countdown {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .time-unit {
    padding-right: 3px;
    padding-left: 3px;
    border-radius: 16px;
  }

  .time-value {
    font-size: clamp(2.1rem, 9.4vw, 4.3rem);
  }

  .time-label {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .timeline::before {
    left: 10px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 201, 128, 0.42) 7%,
      rgba(255, 255, 255, 0.12) 55%,
      transparent 100%
    );
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: auto;
    margin-right: 0;
    margin-bottom: 27px;
    margin-left: 36px;
    text-align: left;
  }

  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    top: 25px;
    right: auto;
    left: -33px;
  }

  .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    border-radius: 18px;
  }

  .memory-back {
    padding: 18px;
  }

  .memory-back-label {
    margin-bottom: 10px;
  }

  .memory-back-hint {
    margin-top: 13px;
  }

  .wish-hint {
    top: 16px;
    padding: 8px 13px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .wish-stage {
    height: clamp(360px, 72vw, 470px);
    border-radius: 25px;
  }

  .wish-counter {
    right: 15px;
    bottom: 13px;
  }

  .cake-area::before {
    top: 4%;
  }

  .cake-stage {
    --cake-scale: 0.88;
  }

  .candle {
    width: 10px;
  }

  .candles {
    gap: 18px;
  }

  .gift-card {
    border-radius: 27px;
  }

  .gift-overlay {
    padding: 12px;
  }

  .gift-panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    padding: 38px 24px 30px;
    border-radius: 24px;
  }

  .letter {
    min-height: 200px;
    margin-top: 24px;
  }

  .letter-line {
    margin-bottom: 15px;
    line-height: 1.95;
  }

  .letter-signature {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .music-player {
    gap: 8px;
    padding: 7px 9px 7px 7px;
  }

  .music-disc {
    width: 30px;
    height: 30px;
  }

  .music-disc::before {
    inset: 10px;
  }

  .music-meta {
    display: none;
  }

  .volume-control {
    gap: 5px;
    padding-left: 8px;
  }

  .volume-label {
    display: none;
  }

  .volume-slider {
    width: 54px;
  }

  .lock-screen {
    padding: 86px 20px 66px;
  }

  .lock-orbit--one {
    width: 120vw;
  }

  .lock-orbit--two {
    width: 160vw;
  }

  .lock-spark--one {
    top: 17%;
    left: 9%;
  }

  .lock-spark--two {
    right: 8%;
    bottom: 21%;
  }

  .lock-copy {
    margin-bottom: 26px;
    letter-spacing: 0.08em;
  }

  .lock-footnote {
    bottom: 17px;
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .countdown-screen {
    padding: 70px 16px;
  }

  .countdown {
    gap: 5px;
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .time-unit {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .time-value {
    font-size: clamp(1.85rem, 9.4vw, 2.7rem);
  }

  .time-label {
    font-size: 9px;
  }

  .countdown-copy {
    font-size: 12.5px;
  }

  .countdown-enter {
    min-width: 172px;
    padding: 14px 26px;
  }

  .section-title {
    font-size: clamp(1.85rem, 8.2vw, 2.6rem);
  }

  .memory-grid {
    gap: 12px;
  }

  .memory-face {
    border-radius: 18px;
  }

  .memory-front {
    padding: 14px;
  }

  .memory-title {
    font-size: clamp(19px, 5.6vw, 24px);
  }

  .memory-caption {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .memory-index {
    top: 13px;
    left: 13px;
    font-size: 8.5px;
  }

  .memory-symbol {
    font-size: clamp(35px, 10vw, 49px);
  }

  .memory-back {
    padding: 15px 14px;
    border-radius: 18px;
  }

  .memory-back::before {
    top: 2px;
    left: 10px;
    font-size: 54px;
  }

  .memory-back-label {
    margin-bottom: 8px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .memory-back p {
    font-size: 12px;
    line-height: 1.76;
  }

  .memory-back-hint {
    margin-top: 10px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .wish-hint {
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }

  .wish-stage {
    border-radius: 22px;
  }

  .wish-bubble {
    padding: 9px 13px;
    font-size: 11.5px;
    line-height: 1.6;
  }

  .cake-stage {
    --cake-scale: 0.76;
  }

  .cake-hint {
    margin-top: 8px;
    font-size: 10px;
  }

  .cake-wish {
    margin-top: 18px;
    padding: 18px 17px;
    border-radius: 18px;
    font-size: 20px;
  }

  .cake-wish-small {
    font-size: 11px;
  }

  .gift-card-stars {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .gift-copy {
    font-size: 13px;
  }

  .gift-button {
    margin-top: 23px;
    padding: 15px 27px;
    font-size: 15px;
  }

  .footer-note {
    font-size: 11px;
  }

  .gift-overlay-close {
    top: 10px;
    right: 11px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  .gift-overlay-kicker {
    letter-spacing: 0.26em;
    text-indent: 0.26em;
  }

  .letter-line {
    font-size: 15px;
    line-height: 1.9;
  }

  .letter-signature {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: min(100%, 280px);
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 30px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: -27px;
  }

  /* 超小屏卡片变窄，压缩背面文字，避免回忆文案被裁切 */
  .memory-grid {
    gap: 9px;
  }

  .memory-back {
    padding: 12px 10px;
  }

  .memory-back::before {
    top: 0;
    left: 8px;
    font-size: 44px;
  }

  .memory-back-label {
    margin-bottom: 6px;
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .memory-back p {
    font-size: 11px;
    line-height: 1.58;
  }

  .memory-back-hint {
    display: none;
  }

  .music-player {
    top: 10px;
    right: 10px;
  }

  .volume-slider {
    width: 46px;
  }
}

@media (max-height: 640px) {
  .lock-content {
    padding-block: 0;
  }

  .keyhole {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
  }

  .keyhole-dot {
    top: 15px;
  }

  .keyhole-stem {
    top: 27px;
    height: 14px;
  }

  .lock-title {
    margin-bottom: 12px;
    font-size: clamp(2rem, 7vh, 3rem);
  }

  .lock-copy {
    margin-bottom: 20px;
  }

  .lock-hint {
    font-size: 11px;
  }

  .countdown-screen {
    padding-block: 50px;
  }

  .countdown {
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .countdown-copy {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-kicker,
  .hero-subtitle,
  .hero-actions {
    opacity: 1;
    transform: none;
  }

  .scroll-cue {
    display: none;
  }
}
