:root {
  --bg: #fff8f2;
  --bg-soft: #fff1e6;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: #ffffff;
  --text: #553126;
  --muted: #8c6558;
  --accent: #de7c5a;
  --accent-dark: #b85a3d;
  --accent-soft: #ffe0d2;
  --line: rgba(125, 69, 54, 0.12);
  --shadow: 0 24px 60px rgba(126, 84, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 186, 0.85), transparent 28%),
    radial-gradient(circle at right 10% top 20%, rgba(255, 228, 196, 0.65), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, #fff4eb 55%, #fff8f3 100%);
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.top-link {
  color: var(--muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 58px 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  margin-bottom: 0;
}

.lead {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(184, 90, 61, 0.16);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.photo-card,
.message-card,
.memory-card,
.surprise-card {
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card {
  padding: 20px;
  border-radius: 28px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 410px;
  background:
    linear-gradient(180deg, rgba(255, 233, 220, 0.92), rgba(255, 246, 239, 0.92)),
    linear-gradient(135deg, #ffd8c7, #fff5ec);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(184, 90, 61, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.button-download {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.photo-note {
  padding-top: 18px;
}

.photo-note strong {
  display: block;
  margin-bottom: 8px;
}

.photo-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.message-card,
.surprise-card {
  padding: 28px;
  border-radius: 26px;
}

.message-card p,
.memory-card p,
.surprise-card p {
  line-height: 1.9;
  color: var(--muted);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.memory-card {
  padding: 24px;
  border-radius: 24px;
}

.memory-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.surprise-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.surprise-card p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0 52px;
  color: var(--muted);
}

.signature {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 960px) {
  .hero-layout,
  .memory-grid,
  .surprise-card,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .memory-grid {
    display: grid;
  }

  .surprise-card,
  .footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .footer {
    width: min(1120px, calc(100% - 20px));
  }

  .topbar,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-frame {
    min-height: 320px;
  }
}
