:root {
  --bg: #fff7fb;
  --card: rgba(255, 255, 255, 0.75);
  --cardSolid: #ffffff;
  --ink: #2b1b22;
  --muted: rgba(43, 27, 34, 0.7);
  --line: rgba(43, 27, 34, 0.10);
  --pink: #ff5aa5;
  --pinkSoft: #ffd2e7;
  --shadow: 0 18px 50px rgba(43, 27, 34, 0.12);
  --shadowSoft: 0 12px 34px rgba(43, 27, 34, 0.10);
  --radius: 18px;
  --radiusSm: 14px;
  --max: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
}

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

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

.orb {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.orb-a {
  left: -18vmax;
  top: -12vmax;
  background: radial-gradient(circle at 30% 30%, rgba(255, 90, 165, 0.28), rgba(255, 90, 165, 0.05) 62%, rgba(255, 90, 165, 0) 70%);
}

.orb-b {
  right: -20vmax;
  top: 10vmax;
  background: radial-gradient(circle at 40% 40%, rgba(255, 210, 231, 0.75), rgba(255, 210, 231, 0.20) 62%, rgba(255, 210, 231, 0) 70%);
}

.orb-c {
  left: 8vmax;
  bottom: -22vmax;
  background: radial-gradient(circle at 40% 40%, rgba(255, 150, 200, 0.26), rgba(255, 150, 200, 0.08) 62%, rgba(255, 150, 200, 0) 70%);
}

.sparkles {
  position: absolute;
  inset: 0;
  opacity: 0.30;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.9) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.7) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 58% 64%, rgba(255, 255, 255, 0.8) 0 1px, rgba(255, 255, 255, 0) 2px);
  background-size: 380px 420px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(255, 247, 251, 0.88), rgba(255, 247, 251, 0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 27, 34, 0.06);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.dot {
  color: var(--pink);
}

.chip {
  border: 1px solid rgba(43, 27, 34, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(43, 27, 34, 0.08);
  touch-action: manipulation;
}

.chip:active { transform: translateY(1px); }

.chipIcon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 90, 165, 0.20), rgba(255, 210, 231, 0.80));
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 22px 16px 60px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 28px 0 10px;
}

.heroInner {
  padding: 10px 0;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 165, 0.25);
  background: rgba(255, 255, 255, 0.70);
  color: rgba(43, 27, 34, 0.85);
  font-weight: 600;
}

.title {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.ctaRow {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 90, 165, 0.22);
  background: linear-gradient(135deg, rgba(255, 90, 165, 0.92), rgba(255, 210, 231, 0.92));
  color: #1d0f16;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 750;
  box-shadow: var(--shadowSoft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
}

.btn:active { transform: translateY(1px); }

.btnGhost {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(43, 27, 34, 0.10);
  color: var(--ink);
}

.stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.statCard {
  border-radius: var(--radiusSm);
  border: 1px solid rgba(43, 27, 34, 0.10);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(43, 27, 34, 0.07);
  padding: 12px 12px 11px;
  backdrop-filter: blur(10px);
}

.statLabel {
  color: rgba(43, 27, 34, 0.65);
  font-weight: 650;
  font-size: 12px;
}

.statValue {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.statHint {
  margin-top: 6px;
  color: rgba(43, 27, 34, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.heroArt {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.heartStack {
  width: min(340px, 100%);
  height: min(340px, 100%);
  position: relative;
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0);
}

.heart {
  position: absolute;
  width: 72%;
  height: 72%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(255, 210, 231, 0.45) 40%, rgba(255, 90, 165, 0.15) 70%, rgba(255, 90, 165, 0) 78%);
  border-radius: 32px;
  filter: blur(0px);
  box-shadow: 0 18px 60px rgba(255, 90, 165, 0.12);
  transform: rotate(8deg);
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 90, 165, 0.10), rgba(255, 255, 255, 0.55));
  mix-blend-mode: overlay;
  opacity: 0.75;
}

.h1 { transform: rotate(10deg) translate3d(0, 0, 0); }
.h2 { transform: rotate(-8deg) translate3d(10px, 14px, 0); opacity: 0.80; }
.h3 { transform: rotate(14deg) translate3d(-14px, 24px, 0); opacity: 0.65; }

.section {
  padding: 30px 0 10px;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.sectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.desc {
  margin: 0;
  color: rgba(43, 27, 34, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.timeline::-webkit-scrollbar { height: 8px; }
.timeline::-webkit-scrollbar-thumb { background: rgba(43, 27, 34, 0.10); border-radius: 999px; }

.tCard {
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid rgba(43, 27, 34, 0.10);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(43, 27, 34, 0.08);
  backdrop-filter: blur(10px);
  padding: 14px 14px 12px;
  min-height: 126px;
}

.tDate {
  font-weight: 800;
  color: rgba(255, 90, 165, 0.95);
  letter-spacing: -0.1px;
}

.tTitle {
  margin-top: 8px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.tDesc {
  margin-top: 6px;
  color: rgba(43, 27, 34, 0.70);
  line-height: 1.55;
  font-size: 13px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  perspective: 900px;
}

.cardBtn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  touch-action: manipulation;
}

.cardInner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadowSoft);
}

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

.cardFace {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(43, 27, 34, 0.10);
}

.cardFront {
  background: #fff;
}

.cardImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cardOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(43, 27, 34, 0.45), rgba(43, 27, 34, 0) 55%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
}

.cardCaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  letter-spacing: -0.2px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.cardBack {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
}

.backTitle {
  font-weight: 950;
  letter-spacing: -0.2px;
}

.backText {
  margin-top: 10px;
  color: rgba(43, 27, 34, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.backHint {
  margin-top: 10px;
  color: rgba(43, 27, 34, 0.55);
  font-size: 12px;
}

.letterCard {
  border-radius: var(--radius);
  border: 1px solid rgba(43, 27, 34, 0.10);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.letterToggle {
  width: 100%;
  border: 0;
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(255, 210, 231, 0.75), rgba(255, 255, 255, 0.75));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  color: rgba(43, 27, 34, 0.92);
  touch-action: manipulation;
}

.letterToggle:active { transform: translateY(1px); }

.arrow {
  color: rgba(255, 90, 165, 0.95);
}

.letterBody {
  padding: 14px 16px 18px;
}

.letterLines {
  display: grid;
  gap: 10px;
  color: rgba(43, 27, 34, 0.78);
  line-height: 1.85;
  font-size: 15px;
}

.ending {
  padding-top: 34px;
}

.endingInner {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 90, 165, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 210, 231, 0.55));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px 16px;
}

.endingTitle {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.endingDesc {
  margin-top: 6px;
  color: rgba(43, 27, 34, 0.70);
  line-height: 1.7;
  font-size: 13px;
}

.endingRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.foot {
  padding: 18px 12px 26px;
  text-align: center;
  color: rgba(43, 27, 34, 0.55);
}

.footInner {
  font-size: 12px;
}

.fade-item {
  opacity: 0;
  transform: translateY(18px);
}

.fade-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .heroArt {
    min-height: 180px;
    order: -1;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .gallery {
    gap: 10px;
  }
}

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

  .orb,
  .fade-item,
  .cardInner {
    transition: none !important;
  }
}
