:root {
  --bg: #f6f1e8;
  --paper: #fffaf1;
  --paper-strong: #fff4df;
  --ink: #1f2933;
  --muted: #667085;
  --line: rgba(111, 78, 55, 0.18);
  --brand: #8a1f11;
  --brand-dark: #5f150c;
  --accent: #c78a2c;
  --green: #426b4b;
  --shadow: 0 22px 70px rgba(74, 45, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 138, 44, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff8eb 0%, var(--bg) 42%, #f7efe1 100%);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(138, 31, 17, 0.08);
  background: rgba(255, 250, 241, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(19, 92, 28, 0.18));
}

.brand strong,
h1,
h2 {
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #43505e;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--brand);
  background: rgba(138, 31, 17, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff9ef;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.35;
}

.hero-lead,
.section-lead,
.community-copy > p {
  color: var(--muted);
  font-size: 18px;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-actions,
.resource-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 34px rgba(138, 31, 17, 0.24);
}

.button.secondary {
  color: var(--brand);
  background: #fff;
  border: 1px solid rgba(138, 31, 17, 0.18);
}

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(255, 244, 223, 0.9)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 80 0' stroke='%23c78a2c' stroke-opacity='.08'/%3E%3C/svg%3E");
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 30px;
  background: rgba(138, 31, 17, 0.16);
  filter: blur(34px);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(66, 107, 75, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.hero-card ul,
.community-rules ul {
  margin: 0;
  padding-left: 20px;
}

.hero-card li,
.community-rules li {
  margin: 10px 0;
  color: #4e5a66;
}

.notice-strip {
  width: min(1120px, calc(100% - 32px));
  margin: -26px auto 8px;
  padding: 18px 22px;
  border: 1px solid rgba(138, 31, 17, 0.16);
  border-radius: 20px;
  color: #663322;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 40px rgba(74, 45, 25, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 50px;
}

.stats-grid article,
.resource-card,
.contact-cards article,
.message-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 18px 55px rgba(74, 45, 25, 0.08);
}

.stats-grid article {
  padding: 28px;
}

.stats-grid span,
.resource-card span,
.contact-cards span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stats-grid p,
.resource-card p,
.timeline-item p,
.contact-cards p,
.footer p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: rgba(138, 31, 17, 0.12);
}

.timeline-item {
  position: relative;
  padding: 22px 22px 22px 58px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 4px solid #fff3de;
  border-radius: 999px;
  background: var(--brand);
}

.timeline-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(138, 31, 17, 0.16);
  border-radius: 999px;
  color: #634b42;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active {
  color: #fff;
  background: var(--brand);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.resource-card {
  display: flex;
  min-height: 260px;
  padding: 26px;
  flex-direction: column;
}

.resource-card a {
  margin-top: auto;
  color: var(--brand);
  font-weight: 900;
}

.resource-card.hidden {
  display: none;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.community-rules {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(66, 107, 75, 0.14);
  border-radius: 22px;
  background: rgba(66, 107, 75, 0.07);
}

.message-panel {
  padding: 28px;
}

.message-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.message-panel input,
.message-panel textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(102, 112, 133, 0.22);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.message-panel input:focus,
.message-panel textarea:focus {
  border-color: rgba(138, 31, 17, 0.52);
  box-shadow: 0 0 0 4px rgba(138, 31, 17, 0.08);
}

.message-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.message-item {
  padding: 14px;
  border: 1px solid rgba(138, 31, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 244, 223, 0.66);
}

.message-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
}

.message-item p {
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-cards article {
  padding: 24px;
}

.contact-cards strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  word-break: break-word;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 6px 0;
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 250, 241, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split,
  .community,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .stats-grid,
  .resource-grid,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 54px 0;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero-card,
  .message-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .stats-grid,
  .resource-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .notice-strip {
    margin-top: 0;
  }

  .timeline-item {
    padding-right: 18px;
  }
}
