:root {
  --bg: #1a1020;
  --bg-soft: #2a1830;
  --card: rgba(255, 245, 250, 0.06);
  --card-border: rgba(255, 182, 193, 0.18);
  --text: #fff5f8;
  --muted: #d4b8c4;
  --accent: #ff8fab;
  --accent-2: #ffc2d4;
  --gold: #ffd6a5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 143, 171, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 214, 165, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, #120a16 100%);
  line-height: 1.8;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 80%, rgba(255, 143, 171, 0.08), transparent 40%);
  z-index: 0;
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.hero-tag {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 400;
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.counter {
  margin-top: 2.5rem;
  padding: 1.5rem 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.counter-num {
  display: block;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.counter-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.scroll-hint {
  margin-top: 3rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.intro h2,
.quotes h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--gold);
}

.timeline {
  position: relative;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.5;
}

.memory {
  position: relative;
  margin-left: 1.25rem;
}

.memory::before {
  content: "♥";
  position: absolute;
  left: -1.85rem;
  top: 1.6rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.memory time {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.memory h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.memory p {
  color: var(--muted);
  font-size: 0.95rem;
}

.memory.highlight {
  border-color: rgba(255, 143, 171, 0.45);
  background: rgba(255, 143, 171, 0.08);
}

.quotes blockquote {
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.gallery {
  margin-top: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.photo {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
}

.photo span {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.ph-1 { background: linear-gradient(135deg, #ff8fab 0%, #ffb3c6 100%); }
.ph-2 { background: linear-gradient(135deg, #cdb4db 0%, #ffc8dd 100%); }
.ph-3 { background: linear-gradient(135deg, #ffd6a5 0%, #ffadad 100%); }
.ph-4 { background: linear-gradient(135deg, #a2d2ff 0%, #cdb4db 100%); }

.gallery-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  opacity: 0.7;
}

footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}

.footer-heart {
  margin-top: 0.5rem;
  color: var(--accent-2);
}

@media (max-width: 600px) {
  .card {
    padding: 1.25rem 1.25rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
