:root {
  --bg: #f6f1e8;
  --paper: rgba(255, 251, 246, 0.86);
  --paper-strong: rgba(255, 255, 255, 0.95);
  --ink: #1f3129;
  --muted: #5e6f66;
  --forest: #1f5a49;
  --forest-soft: #2f7a61;
  --moss: #7c9b6d;
  --sun: #d79134;
  --berry: #8e4630;
  --line: rgba(31, 49, 41, 0.12);
  --shadow: 0 24px 80px rgba(72, 58, 35, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(215, 145, 52, 0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(31, 90, 73, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f2e9 0%, #f0e8dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.36;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 242, 233, 0.78);
  border-bottom: 1px solid rgba(31, 49, 41, 0.08);
}

.topbar-inner,
.container,
.page-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(31, 90, 73, 0.18), rgba(215, 145, 52, 0.22));
  border: 1px solid rgba(31, 90, 73, 0.16);
  color: var(--forest);
  font-size: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.nav-link,
.nav-dropdown-toggle {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  line-height: 1.1;
}

.nav-link {
  border: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-caret {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.is-active,
.nav-dropdown[open] > .nav-dropdown-toggle {
  color: var(--forest);
  background: rgba(31, 90, 73, 0.08);
  transform: translateY(-1px);
}

.nav-dropdown[open] .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(31, 49, 41, 0.12);
  background: var(--paper-strong);
  box-shadow: 0 18px 48px rgba(72, 58, 35, 0.16);
  display: grid;
  gap: 6px;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-link {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
  color: var(--forest);
  background: rgba(31, 90, 73, 0.08);
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #24352d;
  background: #f5e2bf;
}

.button-secondary {
  color: var(--forest);
  background: rgba(31, 90, 73, 0.08);
  border: 1px solid rgba(31, 90, 73, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dcefe6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 26px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
}

.page-footer {
  padding: 30px 0 56px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1120px) {
  .topbar-inner {
    display: grid;
  }

  .nav {
    padding-bottom: 4px;
    justify-content: flex-start;
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 860px) {
  .page-footer,
  .container,
  .topbar-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 8px;
    min-width: 0;
  }
}