:root {
  --bg: #f8f5ef;
  --bg-soft: #efe8dc;
  --surface: #ffffff;
  --surface-warm: #fffaf2;
  --text: #24302b;
  --muted: #66736c;
  --line: #e5dccf;
  --gold: #9b7a3d;
  --gold-dark: #735826;
  --green: #2f7d68;
  --green-dark: #215b4b;
  --peach: #f0d6bf;
  --shadow: 0 22px 70px rgba(58, 45, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(248, 245, 239, 0.9);
  border-bottom: 1px solid rgba(155, 122, 61, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 69px);
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.hero-bg,
.overview-image,
.services-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(248, 245, 239, 0.98), rgba(248, 245, 239, 0.78) 42%, rgba(248, 245, 239, 0.22)),
    url("assets/hero-community.png");
  background-position: center;
  background-size: cover;
  z-index: -2;
}

.hero::after,
.services::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6.8vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 720px;
  color: #43524b;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(47, 125, 104, 0.24);
}

.hero-panel,
.info-panel,
.feature-row article,
.detail-card,
.detail-side {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(155, 122, 61, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 30px;
}

.panel-label,
.service-label,
.service-meta,
.back-link {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero-panel h2 {
  font-size: 30px;
}

.hero-panel p,
.section-heading p,
.feature-row p,
.service-card p,
.detail-hero p,
.detail-side p {
  color: var(--muted);
}

.position-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.position-grid div,
.metric-grid div {
  min-height: 96px;
  padding: 16px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.position-grid strong,
.metric-grid strong {
  display: block;
  color: var(--green);
  line-height: 1.1;
}

.position-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.position-grid span {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid div {
  text-align: center;
}

.metric-grid strong {
  font-size: 32px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.overview {
  overflow: hidden;
}

.overview-image {
  inset: 0 0 auto auto;
  width: min(48vw, 680px);
  height: 100%;
  min-height: 560px;
  opacity: 0.16;
  background-image: url("assets/overview-community.png");
  z-index: -1;
}

.overview-grid,
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-panel {
  padding: 30px;
}

.panel-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 10px;
}

.services {
  overflow: hidden;
}

.services-bg {
  opacity: 0.13;
  background-image: url("assets/services-community.png");
  z-index: -2;
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(155, 122, 61, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(58, 45, 25, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 125, 104, 0.36);
  box-shadow: 0 24px 60px rgba(58, 45, 25, 0.14);
}

.service-index {
  color: rgba(47, 125, 104, 0.18);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.service-card h3 {
  margin-top: 20px;
}

.service-meta {
  margin-top: auto;
  padding-top: 20px;
}

.model {
  background: #fffaf2;
}

.feature-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-row article {
  padding: 28px;
  box-shadow: none;
}

.detail-hero {
  padding: clamp(58px, 9vw, 104px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(248, 245, 239, 1), rgba(248, 245, 239, 0.88)),
    url("assets/services-community.png");
  background-position: center;
  background-size: cover;
}

.detail-hero h1 {
  max-width: 900px;
}

.detail-hero p {
  max-width: 760px;
  font-size: 19px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.detail-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.detail-switch a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(47, 125, 104, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.detail-switch a:hover {
  background: #fff;
  border-color: rgba(47, 125, 104, 0.36);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
}

.detail-card,
.detail-side {
  padding: 30px;
}

.detail-intro {
  max-width: 940px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
}

.detail-image {
  width: 100%;
  min-height: clamp(260px, 30vw, 430px);
  margin: 8px 0 30px;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-list {
  display: grid;
  gap: 24px;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.explain-card {
  min-height: 190px;
  padding: 22px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.explain-card h3 {
  color: var(--green-dark);
  font-size: 20px;
}

.explain-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-group + .detail-group {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.group-image {
  min-height: clamp(220px, 24vw, 360px);
  margin: 12px 0 22px;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  color: var(--green-dark);
  background: #edf6f2;
  border: 1px solid rgba(47, 125, 104, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.value-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.value-box h3 {
  font-size: 20px;
}

.value-box ul {
  color: var(--muted);
}

.detail-switch-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding-top: 0;
}

.switch-card,
.switch-home {
  min-height: 112px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(155, 122, 61, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(58, 45, 25, 0.08);
}

.switch-card {
  display: grid;
  align-content: center;
  gap: 8px;
}

.switch-card.next {
  text-align: right;
}

.switch-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.switch-card a {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
}

.switch-home {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: #d6c9b3;
  background: #1d2b26;
}

@media (max-width: 980px) {
  .hero,
  .overview-grid,
  .feature-row,
  .detail-body,
  .detail-switch-bottom {
    grid-template-columns: 1fr;
  }

  .switch-card.next {
    text-align: left;
  }

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

  .overview-image {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(248, 245, 239, 0.96), rgba(248, 245, 239, 0.78)),
      url("assets/hero-community.png");
  }

  .position-grid,
  .metric-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

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