:root {
  --bg: #f6f4ee;
  --paper: #fffdf7;
  --ink: #24211c;
  --muted: #6d665d;
  --line: #ded7cc;
  --red: #9e2f25;
  --green: #2f6d58;
  --gold: #b9842f;
  --blue: #315d7c;
  --shadow: 0 18px 40px rgba(45, 37, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(36, 33, 28, 0.12);
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 28px);
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 8px 0;
}

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

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: end;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 72px) clamp(72px, 9vw, 112px);
  color: #fff;
  background: #312820;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.86), rgba(20, 16, 12, 0.48) 48%, rgba(20, 16, 12, 0.12)),
    linear-gradient(0deg, rgba(20, 16, 12, 0.56), rgba(20, 16, 12, 0.08) 46%);
}

.hero__media {
  position: absolute;
  inset: 0;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.section-heading h2 {
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: 0;
}

.hero__lead {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.button--secondary {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.overview__item {
  min-height: 112px;
  padding: 24px clamp(18px, 3vw, 34px);
  background: var(--paper);
}

.overview__item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.overview__item strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
}

.activity-section,
.message-section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.activity-section--yaxiang {
  background: var(--paper);
}

.activity-section--fuzhu {
  background: #edf3ee;
}

.activity-section--classroom {
  background: #f5f0e5;
}

.activity-section--results {
  background: #eef3f5;
}

.section-heading {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 420px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px max(20px, calc((100vw - 1120px) / 2)) 20px;
  scrollbar-color: var(--gold) transparent;
}

.photo-card {
  scroll-snap-align: start;
  margin: 0;
  border: 1px solid rgba(36, 33, 28, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8d0c3;
  transition: transform 180ms ease;
}

.activity-section--results .photo-card img {
  object-fit: contain;
  background: #fff;
}

.photo-card a {
  display: block;
  overflow: hidden;
}

.photo-card a:hover img {
  transform: scale(1.03);
}

.photo-card figcaption {
  min-height: 52px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  word-break: break-word;
}

.message-section {
  background: var(--paper);
}

.message-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.message-form,
.message-card,
.empty-state {
  border: 1px solid rgba(36, 33, 28, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(45, 37, 27, 0.08);
}

.message-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.message-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fffdf8;
}

.message-form textarea {
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  outline: 2px solid rgba(49, 93, 124, 0.24);
  border-color: var(--blue);
}

.form-note {
  border-left: 4px solid var(--green);
  padding: 10px 12px;
  background: #eef6f1;
  color: var(--green);
  font-weight: 700;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-card {
  padding: 18px;
}

.message-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.message-card time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.message-card p {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  background: #27231f;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

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

  .nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero {
    min-height: calc(100svh - 108px);
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(20, 16, 12, 0.84), rgba(20, 16, 12, 0.34));
  }

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

  .message-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 76svh;
    padding: 58px 20px 48px;
  }

  .hero h1 {
    font-size: clamp(36px, 14vw, 54px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .overview__item {
    min-height: 86px;
  }

  .photo-strip {
    grid-auto-columns: minmax(252px, 84vw);
  }

  .message-card div {
    display: grid;
    gap: 2px;
  }
}
