@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --leaf: #2c7a5c;
  --soft: #f2fffa;
  --line: 4px solid var(--ink);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 18px;
  --bar-h: 88px;
  --clay: 8px 12px 22px rgba(23, 38, 32, .18), inset -3px -3px 9px rgba(23, 38, 32, .10), inset 4px 4px 12px rgba(255, 255, 255, .8);
  --clay-sm: 4px 7px 14px rgba(23, 38, 32, .16), inset -2px -2px 6px rgba(23, 38, 32, .08), inset 3px 3px 8px rgba(255, 255, 255, .8);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', 'DM Sans', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  background:
    radial-gradient(1000px 520px at 8% -8%, #dffbf0 0%, rgba(223, 251, 240, 0) 70%),
    radial-gradient(900px 520px at 108% 6%, #d8eef8 0%, rgba(216, 238, 248, 0) 70%),
    linear-gradient(180deg, #f0fdf8 0%, #e8f7ff 55%, #eefdf6 100%);
  background-attachment: fixed;
  padding-bottom: calc(var(--bar-h) + 28px);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a { color: var(--leaf); }

:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 3px;
}

/* ---------- 底部固定条 ---------- */
.dockbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #f7fffb 0%, #e4f7f1 100%);
  border-top: var(--line);
  box-shadow: 0 -10px 28px rgba(23, 38, 32, .16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, #d6fff1, var(--mint));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: var(--clay-sm);
  transition: transform .2s var(--pop), background .2s ease;
}

.brand:hover { transform: translateY(-3px) rotate(-1.5deg); }
.brand .mark { border-radius: 8px; display: block; }
.brand-sm { padding: 6px 14px; font-size: .95rem; }

.docknav { min-width: 0; grid-column: 2; }

.docknav p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 3px 2px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.docknav p::-webkit-scrollbar { display: none; }

.docknav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--clay-sm);
  transition: transform .2s var(--pop), background .2s ease;
}

.docknav a svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.docknav a:hover { transform: translateY(-4px); background: var(--sky); }
.docknav a[aria-current="true"] { background: linear-gradient(180deg, #d9fff2, var(--mint)); }

.seek { display: flex; align-items: center; gap: 6px; grid-column: 3; }

.seek input {
  width: 118px;
  min-height: 44px;
  padding: 0 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 3px 3px 8px rgba(23, 38, 32, .10);
}

.seek button {
  min-width: 46px;
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, #d8f2fb, var(--sky));
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--clay-sm);
  transition: transform .2s var(--pop);
}

.seek button:hover { transform: translateY(-3px) rotate(3deg); }
.seek button:active { transform: translateY(1px) scale(.97); }

/* ---------- 主区 ---------- */
main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--bar-h) - 46px);
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 26px;
  padding: 44px 28px;
  border: var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 88% 18%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(158deg, #e9fff7 0%, #ddf3ff 58%, #e6fff4 100%);
  box-shadow: var(--clay);
}

.ghost {
  position: absolute;
  left: -2%;
  bottom: -6%;
  z-index: -1;
  font-size: clamp(6rem, 21vw, 15rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  color: rgba(23, 38, 32, .070);
  white-space: nowrap;
  will-change: transform;
}

.hero-copy { text-align: center; position: relative; }

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-dot { display: flex; justify-content: center; gap: 9px; margin: 22px 0 0; }

.hero-dot i {
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: var(--clay-sm);
}

.hero-dot i:nth-child(2) { background: #ffffff; }
.hero-dot i:nth-child(3) { background: var(--sky); }

.herofig {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border: var(--line);
  border-radius: calc(var(--r-xl) + 8px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--mint), var(--sky));
  box-shadow: 10px 14px 0 rgba(23, 38, 32, .16), inset -3px -3px 12px rgba(23, 38, 32, .12);
  transform: rotate(-2deg);
  animation: bob 7s var(--pop) infinite;
}

.herofig:hover { animation-play-state: paused; }
.herofig img, .herofig svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--pop); }
.herofig:hover img, .herofig:hover svg { transform: scale(1.04); }

@keyframes bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-.6deg) translateY(-11px); }
}

/* ---------- 主体板 ---------- */
.board {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}

/* ---------- 左栏 ---------- */
.rail {
  position: sticky;
  top: 20px;
  padding: 18px 16px 20px;
  border: var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, #f2fffa);
  box-shadow: var(--clay);
}

.kick {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--leaf);
  text-transform: uppercase;
}

.kick:empty { display: none; }

.rail-h {
  margin: .1em 0 .75em;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.raillist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  counter-reset: step;
}

.raillist li { counter-increment: step; }

.raillist a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 11px;
  border: 2px solid transparent;
  border-radius: 15px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s var(--pop);
}

.raillist a::before {
  content: counter(step, decimal-leading-zero);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--leaf);
  font-weight: 700;
}

.raillist a:hover {
  background: #e7fff6;
  border-color: var(--ink);
  transform: translateX(3px);
}

/* ---------- 正文 ---------- */
.content { min-width: 0; }

.content div {
  position: relative;
  margin: 0 0 22px;
  padding: 30px 26px 42px;
  border: var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f4fffb 100%);
  box-shadow: var(--clay);
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--bar-h) + 30px);
}

.content div::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 16px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
}

.content div:nth-of-type(even) { background: linear-gradient(180deg, #ffffff 0%, #f2f9ff 100%); }

.content small {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--leaf);
}

.content h2 {
  margin: .12em 0 .55em;
  font-size: clamp(1.32rem, 2.5vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.content h3 {
  margin: 1.3em 0 .4em;
  font-size: 1.16rem;
  line-height: 1.4;
}

.content p { margin: 0 0 1.05em; font-size: 1.0625rem; }
.content p:last-child { margin-bottom: 0; }
.content ul, .content ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.content li { margin-bottom: .45em; }
.content li::marker { color: var(--leaf); font-weight: 700; }

.content a {
  color: var(--leaf);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.content figure { margin: 1.3em 0; }

.content img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--clay-sm);
}

.content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: #eafff7;
  box-shadow: var(--clay-sm);
}

.content blockquote p:last-child { margin-bottom: 0; }

.content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.content th, .content td { padding: 10px 12px; border-bottom: 2px solid rgba(23, 38, 32, .18); text-align: left; }

.lead { background: linear-gradient(180deg, #ffffff, #eafff7) !important; }

.lead h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lead::after { display: none; }

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 16px;
}

.cta {
  padding: 30px 26px 34px;
  border: var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(420px 240px at 90% 10%, rgba(180, 253, 225, .35) 0%, rgba(180, 253, 225, 0) 70%),
    linear-gradient(160deg, #1e332b 0%, #172620 100%);
  color: #eafff7;
  box-shadow: var(--clay);
}

.cta .kick { color: var(--mint); }

.cta h2 {
  margin: .15em 0 .8em;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #ffffff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, #d9fff2, var(--mint));
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .35);
  transition: transform .2s var(--pop);
}

.cta-btn:hover { transform: translateY(-4px) rotate(-1.5deg); }
.cta-btn:active { transform: translateY(1px) scale(.97); }

.footrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 20px 0 8px;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  background: #ffffff;
  box-shadow: var(--clay-sm);
}

.footnav { min-width: 0; }

.footnav p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  justify-content: center;
}

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}

.footnav a:hover { color: var(--leaf); border-bottom-color: var(--mint); }

.copy { margin: 0; font-size: .88rem; color: #4b655b; text-align: right; white-space: nowrap; }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .board { grid-template-columns: 216px minmax(0, 1fr); gap: 18px; }
  .hero { grid-template-columns: 1fr 1fr; padding: 34px 22px; }
}

@media (max-width: 820px) {
  :root { --bar-h: 132px; }

  .dockbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand seek"
      "nav nav";
    row-gap: 8px;
  }

  .brand { grid-area: brand; }
  .seek { grid-area: seek; justify-self: end; }
  .docknav { grid-area: nav; }
  .seek input { width: 100%; max-width: 140px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 20px 30px;
    gap: 20px;
    text-align: center;
  }

  .herofig { max-width: 320px; margin: 0 auto; width: 100%; }

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

  .rail { position: static; }

  .raillist { grid-template-columns: 1fr 1fr; gap: 6px 8px; }

  .content div { padding: 24px 18px 38px; }
  .content div::after { left: 18px; right: 18px; bottom: 14px; }

  .footrow { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .copy { text-align: center; }
  .cta { text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .docknav a { padding: 8px 12px; }
  .raillist { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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