:root {
  color-scheme: light;
  --paper: #fffdf8;
  --paper-strong: #fff7ea;
  --ink: #243238;
  --muted: #69777b;
  --line: rgba(36, 50, 56, 0.14);
  --leaf: #7a9b58;
  --teal: #3e9fa5;
  --blue: #5e8ec4;
  --rose: #d77f8f;
  --sun: #e7b65b;
  --shadow: 0 24px 70px rgba(48, 70, 68, 0.18);
  font-family:
    "Noto Serif SC", "Songti SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(48, 70, 68, 0.16);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 34, 35, 0.72), rgba(20, 34, 35, 0.28) 48%, rgba(20, 34, 35, 0.08)),
    linear-gradient(0deg, rgba(20, 34, 35, 0.42), rgba(20, 34, 35, 0.05) 46%);
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 8vw, 88px) clamp(18px, 7vw, 92px);
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ddfff6;
}

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

h1 {
  max-width: 11em;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 700;
}

.button.primary {
  color: #193333;
  background: white;
}

.button.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.intro-section,
.moments-section,
.timeline-section,
.future-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
}

.profile-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.profile-avatar {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.birthday-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  color: white;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.birthday-card .label,
.birthday-card span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
}

.birthday-card strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.quote-band {
  padding: clamp(40px, 8vw, 74px) 18px;
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
  text-align: center;
}

.quote-band p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.45;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.photo-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(48, 70, 68, 0.12);
}

.photo-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.photo-card.large img {
  height: 560px;
  object-position: center 42%;
}

.photo-card div {
  padding: 22px;
}

.photo-card time,
.timeline time {
  color: var(--teal);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline p,
.photo-card p,
.future-section p {
  margin-bottom: 0;
}

.future-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
}

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

.future-list span {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 34px rgba(48, 70, 68, 0.08);
}

.future-list span:nth-child(2),
.future-list span:nth-child(5) {
  border-color: rgba(62, 159, 165, 0.34);
}

.future-list span:nth-child(3),
.future-list span:nth-child(6) {
  border-color: rgba(215, 127, 143, 0.34);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin-inline: 18px;
  }

  .intro-section,
  .future-section,
  .photo-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-avatar {
    width: 150px;
  }

  .birthday-card {
    min-height: 190px;
  }

  .photo-card img,
  .photo-card.large img {
    height: 420px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .brand span {
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 690px;
  }

  .hero-media img {
    object-position: 57% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(20, 34, 35, 0.78), rgba(20, 34, 35, 0.18) 58%),
      linear-gradient(90deg, rgba(20, 34, 35, 0.46), rgba(20, 34, 35, 0.08));
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 260px);
  }

  .photo-card img,
  .photo-card.large img {
    height: 360px;
  }

  .future-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
