:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffdfa;
  --text: #2c2a25;
  --muted: #6d665f;
  --accent: #b75c2e;
  --accent-soft: #f6e4d4;
  --accent-2: #d98b4a;
  --accent-3: #4f6f8f;
  --border: rgba(44, 42, 37, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f9f4eb 0%, #f7efe4 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(18, 25, 48, 0.84), rgba(190, 98, 54, 0.46), rgba(89, 126, 167, 0.38)),
    url("大合照5.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  color: #fffdf9;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent-soft);
}

h1,
h2 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 253, 249, 0.92);
  margin: 0 auto;
  max-width: 720px;
}

main {
  padding: 0 1.5rem 4rem;
}

.intro-section,
.gallery-section,
.carousel-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.2rem 0 0;
}

.intro-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  box-shadow: 0 18px 45px rgba(18, 15, 12, 0.06);
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.96), rgba(247, 239, 229, 0.95));
  border: 1px solid rgba(183, 92, 46, 0.12);
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading .eyebrow {
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.intro-section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.image-grid figure {
  margin: 0;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 15, 12, 0.08);
}

.carousel {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(183, 92, 46, 0.12);
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(246, 228, 212, 0.96));
  padding: 0.8rem;
  box-shadow: 0 16px 36px rgba(18, 15, 12, 0.06);
}

.carousel-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.activity-track {
  animation-duration: 40s;
}

.carousel-track img {
  flex: 0 0 320px;
  height: 260px;
  border-radius: 18px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 1rem 3rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid figure {
    height: 260px;
  }

  .carousel-track img {
    flex-basis: 250px;
    height: 220px;
  }
}
