@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("./assets/fonts/ZCOOLKuaiLe-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fff8f2;
  --bg-soft: rgba(255, 237, 227, 0.78);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #473530;
  --ink-soft: #7a5e57;
  --accent: #dd6f7d;
  --accent-deep: #b94d69;
  --accent-soft: #f7d2d1;
  --line: rgba(221, 111, 125, 0.24);
  --shadow: 0 18px 40px rgba(132, 75, 76, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --safe-top: max(24px, env(safe-area-inset-top));
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  --content-width: min(100%, 960px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 194, 0.95), transparent 34%),
    radial-gradient(circle at top right, rgba(247, 210, 209, 0.75), transparent 24%),
    linear-gradient(180deg, #fff6ee 0%, #fffaf6 48%, #fff3ef 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding:
    calc(var(--safe-top) + 12px)
    18px
    calc(var(--safe-bottom) + 28px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 244, 240, 0.68)),
    rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -32px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 217, 185, 0.8), rgba(255, 217, 185, 0));
}

.hero::after {
  bottom: -44px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(247, 210, 209, 0.95), rgba(247, 210, 209, 0));
}

.hero__eyebrow,
.section-heading__label {
  margin: 0;
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero__title,
.section-heading__title {
  margin: 10px 0 0;
  line-height: 1.1;
}

.hero__title {
  position: relative;
  z-index: 1;
  font-family: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  font-size: clamp(2.15rem, 9vw, 3.5rem);
  font-weight: 400;
}

.hero__subtitle {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  max-width: 28rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.97rem;
}

.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-stat {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-stat__value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.hero-stat__label {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.timeline-section {
  margin-top: 26px;
}

.section-heading {
  padding: 0 6px;
}

.section-heading__title {
  font-size: clamp(1.45rem, 5vw, 2rem);
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 42px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 111, 125, 0.18), rgba(221, 111, 125, 0.55), rgba(221, 111, 125, 0.18));
}

.timeline-year {
  position: relative;
  margin: 26px 0 12px;
  transform: translateX(-42px);
}

.timeline-year__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(132, 75, 76, 0.08);
  font-weight: 700;
}

.timeline-empty {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -33px;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c3c2, var(--accent));
  box-shadow: 0 0 0 5px rgba(247, 210, 209, 0.45);
}

.timeline-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.timeline-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.timeline-card__date {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.timeline-card__index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(247, 210, 209, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-card__photo {
  position: relative;
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f5e3d5, #ead6ce);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.timeline-card__photo::after {
  content: "点按查看大图";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(71, 53, 48, 0.45);
  color: #fff;
  font-size: 0.76rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.timeline-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-card__body {
  padding: 16px 18px 18px;
}

.timeline-card__text {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
  font-size: 0.98rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 25, 25, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: min(92vw, 680px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(var(--safe-top) + 8px)
    14px
    calc(var(--safe-bottom) + 12px);
}

.lightbox__close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.9rem;
  line-height: 1;
}

.lightbox__image {
  max-height: min(68vh, 720px);
  width: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.lightbox__meta {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.lightbox__date {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 800;
}

.lightbox__text {
  margin: 8px 0 0;
  line-height: 1.8;
  color: var(--ink);
}

@media (min-width: 700px) {
  .page-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding: 34px 30px 28px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 50%;
    margin-left: -1px;
  }

  .timeline-year {
    text-align: center;
    transform: none;
  }

  .timeline-item {
    width: calc(50% - 22px);
    margin-bottom: 28px;
  }

  .timeline-item:nth-of-type(odd) {
    margin-right: auto;
  }

  .timeline-item:nth-of-type(even) {
    margin-left: auto;
  }

  .timeline-item::before {
    top: 28px;
    left: auto;
  }

  .timeline-item:nth-of-type(odd)::before {
    right: -29px;
  }

  .timeline-item:nth-of-type(even)::before {
    left: -29px;
  }
}

@media (max-width: 389px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .timeline-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-card__photo::after {
    font-size: 0.72rem;
  }
}

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

  .timeline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
