:root {
  --red: #8f1d14;
  --deep-red: #5d120d;
  --gold: #d8a64b;
  --light-gold: #f7e0a3;
  --ink: #2e1b12;
  --paper: #f8efd9;
  --paper-deep: #ead5a4;
  --white: #fffaf0;
  --shadow: 0 20px 45px rgba(62, 16, 10, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "STKaiti", "KaiTi", "华文楷体", "宋体", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216,166,75,.25), transparent 30%),
    linear-gradient(180deg, #fff7e6 0%, #f4dfb5 100%);
  line-height: 1.8;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(95, 18, 13, 0.92);
  border-bottom: 1px solid rgba(216,166,75,.45);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--light-gold);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 4px;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: #fbe9b8;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 18px;
  transition: .3s;
}

.nav a:hover,
.nav a.active {
  background: rgba(216,166,75,.2);
  color: #fff4ca;
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: var(--light-gold);
  font-size: 30px;
}

/* Hero */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  background:
    linear-gradient(rgba(95,18,13,.82), rgba(95,18,13,.72)),
    repeating-linear-gradient(45deg, rgba(216,166,75,.08) 0 2px, transparent 2px 18px);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.eyebrow.light {
  color: #ffe4a0;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.16;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.hero p {
  max-width: 680px;
  font-size: 20px;
  color: #fff1c8;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 18px;
  transition: .3s;
}

.btn.primary {
  background: linear-gradient(135deg, #eac368, #b57b27);
  color: #4b130c;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.btn.ghost {
  border: 1px solid rgba(247,224,163,.75);
  color: #fff0bf;
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-img {
  filter: drop-shadow(0 30px 45px rgba(0,0,0,.32));
}

/* Page Hero */
.page-hero {
  padding: 92px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(95,18,13,.86), rgba(95,18,13,.75)),
    url("../assets/img/divider.svg") center/420px repeat;
  border-bottom: 5px solid var(--gold);
}

.page-hero p:last-child {
  max-width: 760px;
  font-size: 21px;
  color: #fff1c8;
}

/* Common Section */
.section {
  padding: 86px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 46px;
}

.section-title span {
  color: var(--red);
  letter-spacing: 3px;
  font-family: Georgia, serif;
}

.section-title h2 {
  margin-top: 8px;
  font-size: 42px;
  color: var(--deep-red);
  letter-spacing: 4px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card,
.custom-card,
.food-card,
.quote-box,
.banquet {
  background:
    linear-gradient(180deg, rgba(255,250,240,.96), rgba(247,232,190,.92));
  border: 1px solid rgba(143,29,20,.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card {
  padding: 34px 28px;
  text-align: center;
  transition: .35s;
}

.card:hover {
  transform: translateY(-8px);
}

.card-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--light-gold);
  background: radial-gradient(circle, #b9271a, #65140e);
  border: 3px solid var(--gold);
  font-size: 34px;
}

.card h3,
.custom-card h3,
.food-card h3 {
  color: var(--deep-red);
  font-size: 26px;
  margin-bottom: 10px;
}

/* Red Panel */
.red-panel {
  background:
    linear-gradient(135deg, rgba(95,18,13,.96), rgba(143,29,20,.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 16px);
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 42px;
  align-items: center;
}

.split h2 {
  font-size: 42px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.split p {
  color: #fff1c8;
  font-size: 20px;
}

.quote-box {
  padding: 38px;
  background: rgba(255,250,240,.1);
  border-color: rgba(247,224,163,.35);
}

.quote-box p {
  font-size: 30px;
  color: #ffe9a8;
}

.quote-box span {
  color: #fff4d4;
}

/* Link Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.link-grid a {
  padding: 30px;
  border-radius: 22px;
  min-height: 150px;
  color: #fff2c2;
  background:
    linear-gradient(135deg, rgba(143,29,20,.94), rgba(93,18,13,.94));
  border: 1px solid rgba(216,166,75,.5);
  box-shadow: var(--shadow);
  transition: .3s;
}

.link-grid a:hover {
  transform: translateY(-6px);
}

.link-grid strong {
  display: block;
  font-size: 25px;
  color: var(--light-gold);
  margin-bottom: 8px;
}

/* Article */
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 42px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,250,240,.85);
  border: 1px solid rgba(143,29,20,.16);
}

.toc h3 {
  color: var(--deep-red);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: #7a291e;
}

.article {
  padding: 42px;
  background: rgba(255,250,240,.86);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article section {
  margin-bottom: 42px;
}

.article h2 {
  font-size: 32px;
  color: var(--deep-red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143,29,20,.18);
}

.article p {
  font-size: 19px;
  margin-bottom: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline div {
  padding: 18px 22px;
  border-left: 5px solid var(--red);
  background: #fff4d6;
  border-radius: 14px;
}

.timeline span {
  color: var(--red);
  font-weight: bold;
  font-size: 20px;
}

/* Customs */
.paper-bg {
  background:
    radial-gradient(circle at center, rgba(216,166,75,.18), transparent 35%),
    #f3ddb2;
}

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

.custom-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.custom-card::before {
  content: "春";
  position: absolute;
  right: 20px;
  bottom: -28px;
  font-size: 110px;
  color: rgba(143,29,20,.08);
  font-weight: bold;
}

.custom-card span {
  color: var(--red);
  font-weight: bold;
}

/* Food */
.food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.food-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.food-img {
  height: 130px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(216,166,75,.65);
}

.dumpling {
  background:
    radial-gradient(circle at 35% 60%, #fff4dd 0 16%, transparent 17%),
    radial-gradient(circle at 55% 50%, #fff7e6 0 18%, transparent 19%),
    linear-gradient(135deg, #9b2218, #e3b354);
}

.fish {
  background:
    radial-gradient(ellipse at 50% 50%, #f5c15e 0 28%, transparent 29%),
    radial-gradient(circle at 40% 45%, #7b120d 0 4%, transparent 5%),
    linear-gradient(135deg, #781810, #c83c27);
}

.cake {
  background:
    linear-gradient(0deg, #d9a441 0 32%, #f5d78d 33% 66%, #fff0c2 67%),
    linear-gradient(135deg, #9b2218, #e3b354);
}

.tangyuan {
  background:
    radial-gradient(circle at 35% 45%, #fff9ed 0 13%, transparent 14%),
    radial-gradient(circle at 58% 50%, #fff1d2 0 14%, transparent 15%),
    radial-gradient(circle at 47% 67%, #fff7e6 0 12%, transparent 13%),
    linear-gradient(135deg, #b42218, #ffd06d);
}

.banquet {
  margin-top: 42px;
  padding: 42px;
}

.banquet h2 {
  font-size: 36px;
  color: var(--deep-red);
  margin-bottom: 12px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  min-height: 300px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  border: 2px solid rgba(216,166,75,.6);
  background-size: cover;
  background-position: center;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(54,12,8,.78));
}

.gallery-item figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #ffe8a2;
  font-size: 28px;
  letter-spacing: 3px;
}

.lantern {
  background:
    radial-gradient(circle at 50% 35%, #ffcf75 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 48%, #c5271b 0 30%, transparent 31%),
    linear-gradient(135deg, #65140e, #d9a441);
}

.firework {
  background:
    radial-gradient(circle at 30% 35%, #ffe6a0 0 2%, transparent 3%),
    radial-gradient(circle at 70% 30%, #fff 0 2%, transparent 3%),
    radial-gradient(circle at 55% 58%, #ffc65b 0 2%, transparent 3%),
    repeating-radial-gradient(circle at 50% 45%, rgba(255,220,130,.75) 0 2px, transparent 3px 18px),
    linear-gradient(135deg, #250b1e, #80160f);
}

.paper-cut {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, #c51f17 19% 23%, transparent 24%),
    repeating-linear-gradient(45deg, #b91f17 0 12px, #e35a45 12px 24px);
}

.couplet {
  background:
    linear-gradient(90deg, #b42017 0 28%, #f3c35d 29% 31%, #7b120d 32% 68%, #f3c35d 69% 71%, #b42017 72%),
    linear-gradient(#8f1d14, #8f1d14);
}

.temple {
  background:
    linear-gradient(180deg, transparent 0 45%, #6f1710 46%),
    repeating-linear-gradient(90deg, #d8a64b 0 10px, #8f1d14 10px 20px);
}

.reunion {
  background:
    radial-gradient(circle at 50% 45%, #ffe0a0 0 18%, transparent 19%),
    radial-gradient(circle at 35% 62%, #8f1d14 0 12%, transparent 13%),
    radial-gradient(circle at 65% 62%, #8f1d14 0 12%, transparent 13%),
    linear-gradient(135deg, #5d120d, #d8a64b);
}

/* Footer */
.footer {
  padding: 30px 0;
  color: #fbe8b4;
  text-align: center;
  background: #4d100b;
  border-top: 1px solid rgba(216,166,75,.45);
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .8s forwards;
}

.delay {
  animation-delay: .18s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    right: 4%;
    top: 76px;
    width: 220px;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: rgba(93,18,13,.98);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .hero-grid,
  .split,
  .content-layout,
  .food-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .custom-grid,
  .gallery,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 56px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cards,
  .custom-grid,
  .gallery,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .food-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .article {
    padding: 26px;
  }
}
