* {
  box-sizing: border-box;
}

:root {
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #dca6b7 0%, #7b5aa6 38%, #26304f 72%, #101426 100%);
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.65;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-one {
  width: 230px;
  height: 230px;
  left: -60px;
  top: 80px;
  background: rgba(255, 206, 224, 0.55);
}

.orb-two {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 280px;
  background: rgba(174, 205, 255, 0.45);
  animation-delay: 1.6s;
}

.orb-three {
  width: 190px;
  height: 190px;
  left: 28%;
  bottom: -60px;
  background: rgba(255, 230, 166, 0.35);
  animation-delay: 3s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -32px, 0) scale(1.06); }
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
  position: relative;
  z-index: 1;
}

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card,
.section {
  border-radius: 28px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  transition: min-height 0.85s cubic-bezier(.22,.61,.36,1);
}

/* v6: 保留打开后封面缩小的仪式感 */
html.card-open .hero {
  min-height: 72vh;
}

.tiny-label,
.section-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  font-size: clamp(46px, 12vw, 98px);
  line-height: 0.95;
  margin: 18px 0 18px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.18;
  margin: 10px 0 20px;
  text-wrap: balance;
}

p {
  line-height: 1.9;
}

.hero-subtitle {
  font-size: clamp(18px, 4vw, 28px);
  color: var(--muted);
  margin: 0 0 30px;
}

.primary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  color: #242032;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, #fff2c7, #ffd3e5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.4s ease;
  position: relative;
  z-index: 10;
}

.primary-button:active {
  transform: scale(0.98);
}

html.card-open .primary-button {
  opacity: 0.72;
}

.touch-note {
  color: var(--muted);
  max-width: 620px;
  margin-top: 24px;
}

html.card-open .touch-note {
  color: rgba(255,255,255,0.82);
}

.section {
  margin-top: 22px;
  padding: clamp(24px, 5vw, 48px);
  scroll-margin-top: 130px;
}

html.js-ready .reveal-block {
  opacity: 0;
  transform: translateY(22px);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  transition:
    opacity 0.85s cubic-bezier(.22,.61,.36,1),
    transform 0.85s cubic-bezier(.22,.61,.36,1),
    max-height 1.05s cubic-bezier(.22,.61,.36,1),
    margin-top 0.7s cubic-bezier(.22,.61,.36,1),
    padding-top 0.7s cubic-bezier(.22,.61,.36,1),
    padding-bottom 0.7s cubic-bezier(.22,.61,.36,1);
}

html.js-ready.card-open .reveal-block {
  opacity: 1;
  transform: translateY(0);
  max-height: 5000px;
  margin-top: 22px;
  padding-top: clamp(24px, 5vw, 48px);
  padding-bottom: clamp(24px, 5vw, 48px);
  pointer-events: auto;
}

html:not(.js-ready) .reveal-block {
  opacity: 1;
  transform: none;
  max-height: none;
}

.letter {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
}

.letter p {
  margin: 0 0 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid rgba(255,255,255,0.14);
}

.timeline-date {
  color: #fff2c7;
  font-weight: 800;
}

.timeline-text {
  color: rgba(255,255,255,0.86);
  line-height: 1.75;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 18px;
}

.photo-wrap {
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.placeholder {
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.66);
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  line-height: 1.7;
}

.media-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

video,
audio {
  width: 100%;
  border-radius: 18px;
}

video {
  background: rgba(0,0,0,0.2);
  max-height: 560px;
}

.final {
  text-align: center;
  margin-bottom: 20px;
}

.signature {
  margin-top: 28px;
  color: #fff2c7;
  font-weight: 800;
  font-size: 22px;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 96px;
  }

  .page {
    width: min(100% - 22px, 960px);
    padding-top: 18px;
  }

  .hero {
    min-height: calc(100vh - 36px);
    border-radius: 24px;
  }

  html.card-open .hero {
    min-height: 68vh;
  }

  .section {
    scroll-margin-top: 96px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-wrap,
  .photo-wrap img {
    min-height: 132px;
  }
}
