@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --ink-soft: #2f4739;
  --paper: #ffffff;
  --wash: #f2fffa;
  --line: rgba(23, 38, 32, 0.8);
  --hair: rgba(23, 38, 32, 0.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Raleway', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(165deg, #f4fffb 0%, #e9f5fc 58%, #f7fffb 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, 'Songti SC', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

/* ---------- 顶部导航 ---------- */

.top {
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, #f6fffb, #ecfbf5);
  border-bottom: 4px solid var(--line);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.nav-set {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-set--l { justify-content: flex-start; }
.nav-set--r { justify-content: flex-end; }

.nav-set a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
  border: 2px solid transparent;
  transition: background 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}

.nav-set a:hover {
  background: var(--mint);
  border-color: var(--hair);
  transform: translateY(-1px);
}

.nav-set a:active { transform: translateY(1px); }

.nav-set .cta {
  background: var(--ink);
  color: #e7fff6;
  border: 2px solid var(--ink);
  box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.35), 2px 3px 0 rgba(23, 38, 32, 0.28);
}

.nav-set .cta:hover {
  background: #1f342a;
  color: #eafff7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  min-height: 40px;
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: linear-gradient(150deg, var(--mint), var(--sky));
  border: 3px solid var(--line);
}

/* ---------- 二级锚点条 ---------- */

.strip {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.94);
  border-top: 3px solid var(--hair);
  border-bottom: 3px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar { height: 0; }

.strip-in {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px 14px;
  width: max-content;
}

.strip-in a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f4fffa;
  border: 2px solid var(--hair);
}

.strip-in a:hover { background: var(--sky); }

/* ---------- 首屏 ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  background-image: radial-gradient(rgba(23, 38, 32, 0.15) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

.hero-txt { min-width: 0; }

.hero-txt h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.1;
  font-weight: 700;
}

.lede {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero-go { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: linear-gradient(150deg, var(--mint), var(--sky));
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: inset -2px -3px 8px rgba(23, 38, 32, 0.16), 4px 5px 0 rgba(23, 38, 32, 0.3);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease-out;
}

.btn:hover { transform: translateY(-2px); }

.btn:active {
  transform: translateY(2px);
  box-shadow: inset 2px 3px 8px rgba(23, 38, 32, 0.22), 1px 2px 0 rgba(23, 38, 32, 0.3);
}

.hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-img {
  width: 100%;
  border-radius: 24px;
  border: 4px solid var(--line);
  object-fit: cover;
  box-shadow: inset -3px -3px 16px rgba(23, 38, 32, 0.14), 10px 12px 24px rgba(23, 38, 32, 0.18);
}

.blob {
  display: block;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, var(--mint), var(--sky));
  border: 4px solid var(--line);
  box-shadow: inset -8px -10px 26px rgba(23, 38, 32, 0.16), 10px 14px 26px rgba(23, 38, 32, 0.2);
  animation: soft-bob 7s ease-in-out infinite;
}

@keyframes soft-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 主体 ---------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 28px;
  align-items: start;
}

.content { min-width: 0; }

section > article {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 26px;
  margin: 0 0 22px;
  scroll-margin-top: 78px;
}

article[id] { scroll-margin-top: 78px; }

section h2 {
  font-size: clamp(23px, 2.4vw, 29px);
  margin: 0.15em 0 0.55em;
}

section h3 {
  font-size: 20px;
  margin: 1.1em 0 0.4em;
}

section p,
section li {
  margin: 0 0 0.85em;
  line-height: 1.75;
}

section ul,
section ol { padding-left: 1.3em; margin: 0 0 1em; }

section a {
  color: #10573f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

section a:hover { background: var(--mint); }

small {
  display: block;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #4a6857;
}

small + h2 { margin-top: 0.12em; }

/* ---------- 侧栏 ---------- */

.side {
  position: sticky;
  top: 74px;
  background: #f4fffb;
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 20px;
  box-shadow: inset -3px -3px 12px rgba(23, 38, 32, 0.1), 5px 6px 0 rgba(23, 38, 32, 0.12);
}

.side h2 {
  font-size: 22px;
  margin: 0.1em 0 0.7em;
}

.side-links {
  display: grid;
  gap: 7px;
  margin: 0;
}

.side-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  background: #ffffff;
  border: 2px solid var(--hair);
  transition: transform 200ms ease-out, background 200ms ease-out;
}

.side-links a:hover {
  background: var(--mint);
  transform: translateX(3px);
}

/* ---------- 页脚 ---------- */

.foot {
  border-top: 4px solid var(--line);
  background: linear-gradient(180deg, #eefdf6, #e3f3fc);
  scroll-margin-top: 78px;
}

.foot-cta {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 24px 20px;
  text-align: center;
}

.foot-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0.15em 0 0.7em;
}

.foot-cols {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.foot-cols dl { margin: 0; min-width: 0; }

.foot-cols dt {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #34503f;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--hair);
}

.foot-cols dd {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid var(--hair);
  font-weight: 600;
}

.foot-cols dd a:hover { background: var(--sky); }

.copy {
  margin: 0;
  padding: 22px 24px 34px;
  text-align: center;
  font-size: 16px;
  color: #3c5748;
}

/* ---------- 入场动效 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease-out, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid #0f5f4a;
  outline-offset: 3px;
}

/* ---------- 自适应 ---------- */

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 34px 20px 44px;
    gap: 26px;
  }
  .hero-art { order: 2; }
  .blob { width: 62%; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .navbar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 10px 14px;
    gap: 4px;
  }
  .brand { order: -1; }
  .nav-set { justify-content: center; }
  .nav-set--l, .nav-set--r { justify-content: center; }
  .shell { padding: 8px 16px 52px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-set a { padding: 6px 10px; }
  section > article { padding: 18px 16px 22px; border-radius: 16px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lede { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

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