@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --mint: #5cc6b0;
  --mint-deep: #3da896;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f7f0e4;
  --paper-2: #efe4d3;
  --shell: #e6d8c3;
  --line: rgba(23, 38, 35, 0.14);
  --shadow: 0 20px 44px -28px rgba(23, 38, 35, 0.6);
  --r: 18px;
  --pad: clamp(16px, 4vw, 46px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0.004em;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(23, 38, 35, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Lexend Mega', 'Public Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: linear-gradient(180deg, var(--shell), var(--paper));
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 44px;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Lexend Mega', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker { display: none; }

.nav-toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease-out;
}

.nav-shell[open] > .nav-toggle::after { transform: rotate(-135deg) translateY(-2px); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  padding: 4px 0 8px;
}

@media (min-width: 901px) {
  .nav-shell > .masthead { display: grid; }
}

.nav-wing {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2px, 1vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-wing--left { justify-content: flex-end; }
.nav-wing--right { justify-content: flex-start; }

.nav-wing a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s ease-out, color 0.25s ease-out;
}

.nav-wing a::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--mint);
  transform: rotate(18deg);
  transition: transform 0.3s ease-out, background 0.3s ease-out;
}

.nav-wing a:hover { background: rgba(92, 198, 176, 0.22); }

.nav-wing a:hover::before {
  background: var(--clay);
  transform: rotate(62deg) scale(1.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  min-height: 44px;
  padding: 4px 8px;
  text-decoration: none;
}

.brandmark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 16px 6px 16px 6px;
  object-fit: cover;
  background: var(--sand);
}

.brandmark--seed {
  display: block;
  background:
    radial-gradient(circle at 34% 32%, var(--mint) 0 26%, transparent 27%),
    linear-gradient(140deg, var(--sand), var(--clay));
}

.brand-txt {
  max-width: 46vw;
  font-family: 'Lexend Mega', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 2vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(247, 240, 228, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.rail-track {
  display: flex;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad);
  overflow-x: auto;
  scrollbar-width: thin;
}

.rail-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 15px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease-out, color 0.25s ease-out;
}

.rail-link:hover { background: var(--sand); }
.rail-link.is-on { background: var(--ink); color: var(--paper-2); }

/* ---------- 大图 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 0 0 40% 40% / 0 0 92px 92px;
  background: linear-gradient(155deg, var(--sand), var(--mint) 78%);
}

.hero-media {
  position: absolute;
  inset: -8% 0 0;
  overflow: hidden;
  will-change: transform;
}

.hero-media--flat {
  background:
    radial-gradient(circle at 22% 26%, rgba(198, 123, 92, 0.55), transparent 46%),
    radial-gradient(circle at 78% 70%, rgba(107, 123, 60, 0.5), transparent 50%),
    linear-gradient(150deg, var(--sand), var(--mint));
}

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

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(23, 38, 35, 0.22), rgba(23, 38, 35, 0.68) 72%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 940px;
  padding: 10vh var(--pad) 13vh;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: #fff8ec;
  font-size: clamp(27px, 6.2vw, 74px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-shadow: 0 12px 44px rgba(23, 38, 35, 0.55);
}

.hero-sub {
  max-width: 52ch;
  margin: 20px auto 0;
  color: #f2e8d9;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  text-shadow: 0 6px 22px rgba(23, 38, 35, 0.5);
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 22px;
  background: linear-gradient(90deg, var(--mint), var(--clay));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 主体 ---------- */
.page-main {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 46px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px) var(--pad);
}

.side {
  position: sticky;
  top: 76px;
  padding: 20px 16px;
  border-radius: 26px 10px 26px 10px;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.side-title > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--ink);
}

.side-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: side;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 4px 6px;
  border-bottom: 1px dashed rgba(23, 38, 35, 0.2);
  border-radius: 10px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease-out;
}

.side-list a:hover { background: rgba(255, 255, 255, 0.5); }

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.sheet { max-width: 74ch; }

.sheet > article {
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--r);
  scroll-margin-top: 132px;
}

.sheet > article:nth-child(odd) { background: var(--paper-2); }
.sheet > article:nth-child(even) { background: var(--shell); }
.sheet > article:last-child { margin-bottom: 0; }

.sheet h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3.1vw, 31px);
  line-height: 1.14;
}

.sheet h3 {
  margin: 24px 0 8px;
  font-size: clamp(17px, 2.1vw, 22px);
}

.sheet p { margin: 0 0 14px; }
.sheet p:last-child { margin-bottom: 0; }

.sheet ul, .sheet ol { margin: 0 0 16px; padding-left: 22px; }
.sheet li { margin-bottom: 6px; }

.sheet img {
  width: 100%;
  height: auto;
  margin: 12px 0 16px;
  border-radius: var(--r);
}

.sheet blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 5px solid var(--mint);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 255, 255, 0.5);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.sheet th, .sheet td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(34px, 6vw, 76px);
  padding: clamp(26px, 5vw, 58px) var(--pad) 0;
  border-radius: 46px 46px 0 0;
  background: var(--ink);
  color: #f1e7d6;
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
  border-radius: 34px;
  background: linear-gradient(125deg, var(--mint), var(--mint-deep) 68%, var(--olive));
  color: var(--ink);
}

.cta-title {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.06;
}

.cta-title > span { display: inline-block; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #f5ecdb;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.3s ease-out, background 0.3s ease-out;
}

.cta-btn:hover {
  background: #0d1917;
  transform: translateY(-2px);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 48px) auto 0;
}

.foot-col h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--sand);
}

.foot-col h3 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--mint);
}

.foot-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(212, 196, 168, 0.2);
  font-size: 16px;
  color: #eae0ce;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.foot-links a:hover { color: var(--mint); }

.foot-note {
  margin: 0 0 6px;
  font-size: 16px;
  color: #c7bdac;
  overflow-wrap: anywhere;
}

.foot-bar {
  max-width: var(--maxw);
  margin: clamp(20px, 4vw, 38px) auto 0;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(212, 196, 168, 0.22);
  font-size: 16px;
  color: #b5aa99;
}

.foot-bar p { margin: 0; }

/* ---------- 自适应 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .masthead {
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0 4px;
    text-align: center;
  }

  .nav-shell[open] > .masthead { display: grid; }

  .nav-wing {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .nav-wing a {
    justify-content: center;
    padding: 8px 16px;
  }

  .brand { order: -1; }
  .brand-txt { max-width: 74vw; }

  .page-main { grid-template-columns: 1fr; }

  .side {
    position: static;
    order: 2;
    margin-top: 8px;
  }

  .sheet { max-width: none; }

  .hero {
    border-radius: 0 0 26% 26% / 0 0 60px 60px;
    place-items: start center;
  }

  .hero-copy {
    align-self: start;
    padding: 7vh var(--pad) 10vh;
  }

  .hero-title { font-size: clamp(26px, 8.4vw, 44px); }
}

@media (max-width: 600px) {
  .foot-cols { grid-template-columns: 1fr; }
  .foot-cta { flex-direction: column; align-items: flex-start; }
  .site-footer { border-radius: 30px 30px 0 0; }
  .rail-track { padding-left: 12px; padding-right: 12px; }
  .side-list { grid-template-columns: 1fr; }
  .nav-toggle { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { transform: none !important; }
  .cta-btn:hover { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
