:root {
  --leaf-50: #f4fbf1;
  --leaf-100: #e4f6dc;
  --leaf-200: #cbeaba;
  --leaf-400: #79b95f;
  --leaf-600: #3b7f37;
  --leaf-700: #285f2b;
  --moss: #17391f;
  --ink: #142018;
  --muted: #68766a;
  --paper: #fffef8;
  --water: #dff4ef;
  --sun: #f3c969;
  --line: rgba(29, 73, 36, 0.12);
  --shadow: 0 20px 55px rgba(28, 73, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(244, 251, 241, 0.92), rgba(223, 244, 239, 0.72)),
    url("../img/mainBack.jpg") center / 460px auto repeat;
}

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

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

.site-hero {
  min-height: 94vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(244, 251, 241, 0.96), rgba(223, 244, 239, 0.82) 48%, rgba(255, 254, 248, 0.68)),
    url("../img/headerBack.jpg") center / cover no-repeat;
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--moss);
}

.brand img {
  width: 48px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.78);
  backdrop-filter: blur(18px);
}

.nav-links a {
  min-width: 56px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--moss);
  font-size: 0.94rem;
  text-align: center;
}

.nav-links a:hover {
  background: var(--leaf-100);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(94vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--moss);
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-slogan {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--leaf-700);
  font-size: clamp(1.32rem, 2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

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

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action {
  background: var(--leaf-600);
  color: white;
  box-shadow: 0 12px 28px rgba(59, 127, 55, 0.28);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 254, 248, 0.78);
  color: var(--moss);
}

.hero-visual {
  min-height: 560px;
  position: relative;
}

.hero-logo {
  width: min(450px, 72vw);
  opacity: 0.1;
  position: absolute;
  left: 42%;
  top: 48%;
  transform: translate(-50%, -50%);
}

.hero-character {
  width: min(470px, 72vw);
  position: absolute;
  right: 0;
  bottom: 0;
  filter: drop-shadow(0 28px 40px rgba(31, 68, 37, 0.22));
}

.leaf-field span {
  width: 56px;
  height: 32px;
  border-radius: 56px 4px 56px 4px;
  background: linear-gradient(135deg, rgba(121, 185, 95, 0.28), rgba(243, 201, 105, 0.22));
  border: 1px solid rgba(59, 127, 55, 0.12);
  position: absolute;
  transform: rotate(-24deg);
  animation: drift 12s ease-in-out infinite;
}

.leaf-field span:nth-child(1) { left: 12%; top: 19%; }
.leaf-field span:nth-child(2) { left: 54%; top: 13%; animation-delay: -4s; }
.leaf-field span:nth-child(3) { left: 82%; top: 30%; animation-delay: -7s; }
.leaf-field span:nth-child(4) { left: 34%; top: 78%; animation-delay: -2s; }
.leaf-field span:nth-child(5) { left: 72%; top: 82%; animation-delay: -9s; }

@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 18px -24px; rotate: 10deg; }
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.join-copy h2 {
  margin: 0;
  color: var(--moss);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.intro-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.article-card,
.join-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.9);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 28px;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.location-image,
.location-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 254, 248, 0.9);
  box-shadow: var(--shadow);
}

.location-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.location-copy {
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-copy h2 {
  margin: 0;
  color: var(--moss);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.location-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.location-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.location-points span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--leaf-100);
  color: var(--leaf-700);
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(244, 251, 241, 0.15), rgba(255, 254, 248, 0.76));
}

.activity-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 254, 248, 0.92);
  box-shadow: var(--shadow);
}

.activity-showcase > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.activity-caption {
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-caption h3 {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.16;
}

.activity-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.activity-tags span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--leaf-100);
  color: var(--leaf-700);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric {
  color: var(--leaf-600);
  font-size: 2rem;
  font-weight: 900;
}

.intro-grid h3,
.department-card h3,
.article-card h3 {
  margin: 12px 0 10px;
  color: var(--moss);
}

.intro-grid p,
.department-card p,
.article-card p,
.join-copy p,
.join-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.departments-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 254, 248, 0.72), rgba(228, 246, 220, 0.72));
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.department-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.department-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--leaf-100);
}

.department-card div {
  padding: 22px;
}

.article-card {
  min-height: 330px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--leaf-100);
}

.article-card div {
  padding: 20px;
}

.article-meta {
  color: var(--leaf-600);
  font-size: 0.84rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--leaf-100);
  color: var(--leaf-700);
  font-size: 0.78rem;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.join-copy {
  padding: 38px;
  border-radius: 8px;
  background: var(--moss);
}

.join-copy .eyebrow,
.join-copy h2 {
  color: var(--leaf-100);
}

.join-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.join-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.join-panel span {
  color: var(--leaf-600);
  font-weight: 800;
}

.join-panel strong {
  margin: 8px 0 4px;
  color: var(--moss);
  font-size: 2.4rem;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--leaf-700);
  background: rgba(255, 254, 248, 0.78);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 36px;
  height: 32px;
  object-fit: contain;
}

.article-page {
  min-height: 100vh;
}

.page-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 72px;
}

.article-detail {
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-detail img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-body {
  padding: clamp(24px, 5vw, 52px);
}

.article-body h1 {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.article-body p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .site-nav {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .hero-content,
  .join-section,
  .location-section,
  .activity-showcase {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding: 42px 0 64px;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .hero-character {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .intro-grid,
  .department-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    min-height: auto;
  }
}
