/* ============================================
   致姐姐 · 吉卜力风格生日站
   Palette: cream / sage / sky / gold / forest
   ============================================ */

:root {
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --parchment: #f3ebe0;
  --sage: #7a9b76;
  --sage-deep: #5a7a58;
  --sage-soft: #c5d4c2;
  --sky: #a8c5d4;
  --sky-deep: #6f94a8;
  --gold: #c9a06a;
  --gold-soft: #e8d4b0;
  --rose: #d4a99a;
  --forest: #2c3e2d;
  --forest-soft: #4a5c4b;
  --ink: #2a332b;
  --muted: #6b756c;
  --white: #fffcf7;
  --shadow: 0 20px 60px rgba(44, 62, 45, 0.12);
  --shadow-soft: 0 8px 32px rgba(44, 62, 45, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 197, 212, 0.35), transparent 70%),
    linear-gradient(165deg, #e8f0e6 0%, var(--cream) 45%, #e5dcc8 100%);
  transition: opacity 1s var(--ease), visibility 1s;
}

.curtain.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain__inner {
  text-align: center;
  padding: 32px;
  animation: fadeUp 1.2s var(--ease) both;
}

.curtain__orb {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8e8, var(--gold-soft) 40%, var(--sage) 100%);
  box-shadow:
    0 0 40px rgba(201, 160, 106, 0.45),
    0 0 80px rgba(122, 155, 118, 0.25);
  animation: pulse 3.5s ease-in-out infinite;
}

.curtain__en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.curtain__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.curtain__hint {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 36px;
  letter-spacing: 0.08em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}

.btn--enter {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(44, 62, 45, 0.22);
}

.btn--enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(44, 62, 45, 0.28);
  background: #243425;
}

.btn--primary {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(90, 122, 88, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(90, 122, 88, 0.38);
}

.btn--gold {
  background: linear-gradient(135deg, #d4b07a 0%, var(--gold) 100%);
  color: #3d2e18;
  box-shadow: 0 12px 32px rgba(201, 160, 106, 0.35);
  margin-top: 8px;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 160, 106, 0.45);
}

/* ---------- Particles & ambient ---------- */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.is-entered .particles {
  opacity: 1;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease 0.4s;
}

body.is-entered .ambient {
  opacity: 1;
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d0 0%, rgba(201, 160, 106, 0.6) 50%, transparent 70%);
  box-shadow: 0 0 12px rgba(255, 230, 150, 0.8);
  animation: firefly 12s ease-in-out infinite;
}

.firefly:nth-child(1) { top: 20%; left: 12%; animation-delay: 0s; }
.firefly:nth-child(2) { top: 55%; left: 80%; animation-delay: -3s; animation-duration: 15s; }
.firefly:nth-child(3) { top: 70%; left: 25%; animation-delay: -6s; animation-duration: 18s; }
.firefly:nth-child(4) { top: 35%; left: 60%; animation-delay: -2s; animation-duration: 14s; }
.firefly:nth-child(5) { top: 80%; left: 50%; animation-delay: -8s; animation-duration: 16s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  opacity: 0;
  pointer-events: none;
}

body.is-entered .nav {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.8s ease 0.5s, background 0.4s, box-shadow 0.4s;
}

.nav.is-solid {
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(44, 62, 45, 0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--forest);
}

.nav__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sage));
  box-shadow: 0 0 12px rgba(201, 160, 106, 0.5);
}

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}

.nav__links a {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--forest-soft);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.35s var(--ease);
}

.nav__links a:hover {
  color: var(--forest);
}

.nav__links a:hover::after {
  width: 100%;
}

.music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid rgba(44, 62, 45, 0.12);
  background: rgba(255, 252, 247, 0.5);
  position: relative;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.music-btn:hover {
  background: rgba(255, 252, 247, 0.9);
  border-color: var(--sage-soft);
}

.music-btn.is-playing {
  border-color: var(--sage);
  background: rgba(197, 212, 194, 0.4);
  box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.12);
}

/* 播放时只显示均衡条，避免喇叭+波形叠成两个图标 */
.music-btn__icon {
  display: block;
}

.music-btn.is-playing .music-btn__icon {
  display: none;
}

.music-btn__eq {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 16px;
}

.music-btn.is-playing .music-btn__eq {
  display: flex;
}

.music-btn__eq i {
  display: block;
  width: 2.5px;
  background: var(--sage-deep);
  border-radius: 2px;
  animation: eq 0.75s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.music-btn__eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-btn__eq i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.music-btn__eq i:nth-child(3) { height: 9px; animation-delay: 0.3s; }
.music-btn__eq i:nth-child(4) { height: 14px; animation-delay: 0.45s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(44, 62, 45, 0.55) 0%, rgba(44, 62, 45, 0.15) 40%, transparent 70%),
    linear-gradient(to bottom, rgba(247, 241, 232, 0.25) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px calc(12vh + 20px);
  color: var(--white);
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero .eyebrow {
  color: rgba(255, 252, 247, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero__title {
  margin-bottom: 20px;
}

.hero__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.hero__name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  opacity: 0.92;
}

.hero__sub {
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
  opacity: 0.9;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 48px;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 12vw, 120px) 0;
  position: relative;
}

.section__head {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.section__head .eyebrow {
  color: var(--sage-deep);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section__desc {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
  max-width: 420px;
  margin: 0 auto 8px;
}

.section__rule {
  width: 48px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Letter ---------- */
.letter {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(168, 197, 212, 0.18), transparent 60%),
    var(--cream);
}

.letter-card {
  position: relative;
  background: var(--parchment);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 160, 106, 0.18);
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-soft), var(--gold-soft), var(--sky));
}

.letter-card__stamp {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 28px auto;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--white);
  transform: rotate(4deg);
}

.letter-card__stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.letter-card__body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--forest-soft);
  line-height: 2.05;
}

.letter-card__body p + p {
  margin-top: 1.1em;
}

.letter-card__salute {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: 0.08em;
  margin-bottom: 0.5em !important;
}

.letter-card__close {
  margin-top: 1.6em !important;
  color: var(--forest);
}

.letter-card__sign {
  margin-top: 2.2em !important;
  text-align: right;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.letter-card__sign em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  letter-spacing: 0.1em;
}

/* ---------- Moments ---------- */
.moments {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 50%, var(--cream) 100%);
}

.moments__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 28px);
}

.moment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 62, 45, 0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.moment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.moment-card__media {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.moment-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 62, 45, 0.15), transparent 50%);
}

.moment-card__media--a {
  background-image:
    linear-gradient(135deg, rgba(168, 197, 212, 0.35), rgba(247, 241, 232, 0.15)),
    url("assets/hero.jpg");
  background-position: center 20%;
}

.moment-card__media--b {
  background-image:
    linear-gradient(135deg, rgba(212, 224, 200, 0.25), transparent 50%),
    url("assets/flowers.jpg");
  background-position: center;
}

.moment-card__media--c {
  background-image:
    linear-gradient(160deg, rgba(197, 168, 136, 0.2), rgba(111, 148, 168, 0.15)),
    url("assets/evening.jpg");
  background-position: center;
}

.moment-card__media--d {
  background-image:
    linear-gradient(135deg, rgba(201, 160, 106, 0.3), rgba(44, 62, 45, 0.15)),
    url("assets/lantern.jpg");
  background-position: center;
}

.moment-card figcaption {
  padding: 22px 24px 26px;
}

.moment-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.moment-card p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Wishes ---------- */
.wishes {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(122, 155, 118, 0.1), transparent 55%),
    var(--cream);
}

.wish-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
  align-items: stretch;
}

.wish-panel__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(122, 155, 118, 0.15);
  display: flex;
  flex-direction: column;
}

.wish-panel__to {
  font-family: var(--font-en);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 160, 106, 0.25);
}

.wish-panel__form textarea {
  flex: 1;
  min-height: 120px;
  resize: none;
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wish-panel__form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.15);
}

.wish-panel__form textarea.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.wish-panel__form textarea::placeholder {
  color: #a0a89f;
}

.wish-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.wish-panel__count {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

/* 与灯笼插画同色系的暮空，便于无缝融合 */
.wish-sky {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 55% at 50% 42%, rgba(255, 220, 170, 0.18), transparent 58%),
    linear-gradient(
      180deg,
      #9aa3c4 0%,
      #b8a8c8 28%,
      #e0b8c0 55%,
      #efd0c4 78%,
      #f3e2d4 100%
    );
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(180, 160, 170, 0.28);
}

.wish-sky__glow {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 85%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 230, 190, 0.45), transparent 72%);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.7s, transform 0.9s var(--ease);
}

.wish-sky.is-releasing .wish-sky__glow {
  opacity: 0.9;
  transform: translateX(-50%) scale(1.15);
}

.wish-sky__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1.2px 1.2px at 14% 16%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 32% 38%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.2px 1.2px at 70% 12%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 86% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 52% 22%, rgba(255, 248, 230, 0.7), transparent),
    radial-gradient(1px 1px at 22% 48%, rgba(255, 240, 220, 0.3), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

.wish-sky__haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(243, 226, 212, 0.55), transparent);
  pointer-events: none;
  z-index: 0;
}

.wish-sky::before {
  content: "写下心愿，点亮属于你的一盏灯";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: rgba(70, 60, 75, 0.45);
  letter-spacing: 0.14em;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 1;
}

.wish-sky.has-wishes::before {
  opacity: 0;
}

/* 柔和光晕 */
.wish-burst {
  position: absolute;
  left: var(--bx, 50%);
  bottom: 12%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  background: radial-gradient(circle, rgba(255, 248, 230, 0.75), rgba(255, 200, 140, 0.2) 45%, transparent 72%);
  animation: wishBurst 1.4s var(--ease) forwards;
  pointer-events: none;
  z-index: 2;
}

/* ========== 与背景融为一体的孔明灯 ========== */
.lantern {
  position: absolute;
  bottom: 2%;
  left: 50%;
  z-index: 5;
  width: 150px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: riseLantern 11s cubic-bezier(0.25, 0.7, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.lantern__aura {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 70%;
  height: 48%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 210, 130, 0.4), rgba(255, 190, 120, 0.08) 55%, transparent 75%);
  filter: blur(12px);
  animation: auraPulse 2.4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.lantern__visual {
  position: relative;
  width: 100%;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(255, 200, 120, 0.35));
  animation: lanternFloat 3.2s ease-in-out infinite alternate;
}

.lantern__img {
  width: 100%;
  height: auto;
  display: block;
  /* 插画已含同色天空：大范围羽化，边缘溶进背景 */
  -webkit-mask-image: radial-gradient(
    ellipse 68% 62% at 50% 48%,
    #000 28%,
    rgba(0, 0, 0, 0.85) 48%,
    rgba(0, 0, 0, 0.35) 68%,
    transparent 86%
  );
  mask-image: radial-gradient(
    ellipse 68% 62% at 50% 48%,
    #000 28%,
    rgba(0, 0, 0, 0.85) 48%,
    rgba(0, 0, 0, 0.35) 68%,
    transparent 86%
  );
}

.lantern__visual::after {
  content: none;
}

/* 心愿字：半透明浮签，贴合暮空 */
.lantern__scroll {
  position: relative;
  z-index: 2;
  margin-top: -4px;
  max-width: 128px;
  padding: 8px 12px 10px;
  background: rgba(255, 250, 245, 0.42);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(120, 90, 100, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: scrollFade 11s var(--ease) forwards;
}

.lantern__scroll::before {
  display: none;
}

.lantern__scroll-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(90, 70, 80, 0.5);
  text-align: center;
  margin-bottom: 2px;
}

.lantern__text {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(55, 45, 50, 0.78);
  text-align: center;
  line-height: 1.45;
  word-break: break-word;
  max-height: 3.2em;
  overflow: hidden;
}

/* 柔光尘粒 */
.wish-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 240, 0.95), rgba(255, 210, 160, 0.4) 55%, transparent);
  box-shadow: 0 0 6px rgba(255, 220, 170, 0.55);
  pointer-events: none;
  z-index: 4;
  animation: sparkRise 3s var(--ease) forwards;
}

/* 淡丝带光痕 */
.wish-ribbon {
  position: absolute;
  width: 1.5px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.7), rgba(220, 170, 160, 0.08));
  pointer-events: none;
  z-index: 3;
  animation: ribbonDrift 3.8s var(--ease) forwards;
  transform-origin: center top;
}

.wish-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.wish-list li {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(255, 252, 247, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 155, 118, 0.12);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.wish-list li:hover {
  background: var(--white);
  transform: translateX(4px);
}

.wish-list__icon {
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.wish-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--forest);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wish-list p {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- Gift ---------- */
.gift {
  position: relative;
  padding: clamp(100px, 14vw, 140px) 0;
  overflow: hidden;
}

.gift__bg {
  position: absolute;
  inset: 0;
}

.gift__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(1.05);
}

.gift__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.88) 0%, rgba(247, 241, 232, 0.72) 50%, rgba(247, 241, 232, 0.9) 100%);
}

.gift__inner {
  position: relative;
  z-index: 2;
}

.gift-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 48px);
  background: rgba(255, 252, 247, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 160, 106, 0.25);
  box-shadow: var(--shadow);
}

.gift-card .eyebrow {
  color: var(--sage-deep);
}

.gift-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.gift-card__text {
  font-weight: 300;
  color: var(--forest-soft);
  line-height: 2;
  margin-bottom: 28px;
}

.gift-card__quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--sage-deep);
  line-height: 2;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(201, 160, 106, 0.3);
  border-bottom: 1px solid rgba(201, 160, 106, 0.3);
}

.gift-card__final {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 24px 48px;
  background: var(--forest);
  color: rgba(247, 241, 232, 0.7);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.footer__en {
  font-family: var(--font-en);
  font-style: italic;
  margin-top: 8px;
  opacity: 0.6;
  letter-spacing: 0.12em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

body.is-entered .hero .reveal {
  animation: fadeUp 1s var(--ease) both;
}

body.is-entered .hero .reveal:nth-child(1) { animation-delay: 0.3s; }
body.is-entered .hero .reveal:nth-child(2) { animation-delay: 0.5s; }
body.is-entered .hero .reveal:nth-child(3) { animation-delay: 0.7s; }
body.is-entered .hero .reveal:nth-child(4) { animation-delay: 0.95s; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1) translateY(8px); transform-origin: top; }
}

@keyframes firefly {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -40px) scale(1.2);
    opacity: 0.9;
  }
  50% {
    transform: translate(-20px, -70px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(40px, -30px) scale(1.1);
    opacity: 0.85;
  }
}

@keyframes riseLantern {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.72) rotate(-2deg);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
  35% {
    transform: translateX(calc(-50% + var(--drift, 10px) * 0.35)) translateY(-75px) scale(1.02) rotate(1deg);
  }
  65% {
    opacity: 1;
    transform: translateX(calc(-50% + var(--drift, 10px) * 0.75)) translateY(-165px) scale(0.98) rotate(-1deg);
  }
  90% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(-50% + var(--drift, 18px))) translateY(-275px) scale(0.9) rotate(1.5deg);
  }
}

@keyframes lanternFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

@keyframes auraPulse {
  from { opacity: 0.4; transform: translateX(-50%) scale(0.96); }
  to { opacity: 0.75; transform: translateX(-50%) scale(1.06); }
}

@keyframes scrollFade {
  0%, 10% { opacity: 0; transform: translateY(6px); }
  20% { opacity: 1; transform: translateY(0); }
  78% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes wishBurst {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.7;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

@keyframes sparkRise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx, 20px), var(--sy, -80px)) scale(0.2);
  }
}

@keyframes ribbonDrift {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(var(--rx, 30px), var(--ry, -100px)) rotate(var(--rr, 40deg));
  }
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes eq {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  10% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg) translateX(var(--px, 40px));
  }
}

.petal {
  position: fixed;
  top: -20px;
  z-index: 200;
  pointer-events: none;
  width: 12px;
  height: 10px;
  background: radial-gradient(ellipse at 30% 30%, #f5d0d0, #e8a0a0);
  border-radius: 80% 0 80% 0;
  animation: petalFall linear forwards;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .moments__grid {
    grid-template-columns: 1fr;
  }

  .wish-panel {
    grid-template-columns: 1fr;
  }

  .wish-list {
    grid-template-columns: 1fr;
  }

  .moment-card__media {
    height: 160px;
  }

  .letter-card__stamp {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero__name {
    letter-spacing: 0.28em;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
