@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root{
  --ink:#192617;
  --lime:#87ff71;
  --gold:#ffce5c;
  --paper:#fbf7e6;
  --card:#fffdf4;
  --dim:rgba(25,38,23,.14);
  --rim:28px;
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-bottom:130px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding:0 0 128px;
  background-color:var(--paper);
  background-image:radial-gradient(var(--dim) 1.1px,transparent 1.3px);
  background-size:22px 22px;
  color:var(--ink);
  font-family:'Nunito','DM Sans',ui-rounded,system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

a{color:inherit}
img{display:block;max-width:100%;height:auto}
p{margin:0 0 1em}
:focus-visible{outline:3px dashed var(--ink);outline-offset:3px}

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:60;
  display:flex;
  align-items:center;
  gap:2px;
  max-width:calc(100% - 16px);
  padding:6px;
  background:var(--lime);
  border:3px solid var(--ink);
  border-radius:999px;
  box-shadow:0 6px 0 var(--ink);
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.dock::-webkit-scrollbar{display:none}

.dock-nav{flex:0 0 auto}
.dock-nav ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.dock-nav a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:16px;
  letter-spacing:.2px;
  text-decoration:none;
  white-space:nowrap;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.dock-nav a:hover,
.dock-nav a.active{background:var(--ink);color:var(--lime);transform:rotate(-2deg)}

.dock-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-height:42px;
  margin:0 3px;
  padding:8px 14px;
  background:var(--gold);
  border:2px solid var(--ink);
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  transform:rotate(-3deg);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  gap:20px;
  align-content:center;
  min-height:92svh;
  padding:44px 18px 48px;
  overflow:hidden;
  isolation:isolate;
}
.hero::before{
  content:'';
  position:absolute;
  top:26px;
  left:-12%;
  right:-12%;
  height:76px;
  background:var(--lime);
  transform:rotate(-3.5deg);
  z-index:-1;
}
.hero::after{
  content:'';
  position:absolute;
  right:-40px;
  bottom:26px;
  width:180px;
  height:180px;
  border-radius:50%;
  border:3px dashed var(--ink);
  opacity:.35;
  z-index:-1;
}

.hero-art{
  position:relative;
  display:grid;
  place-items:center;
  min-height:186px;
  margin:0;
}
.hero-img{
  position:relative;
  z-index:2;
  width:100%;
  max-width:520px;
  max-height:40svh;
  aspect-ratio:4/3;
  object-fit:cover;
  border:4px solid var(--ink);
  border-radius:32px;
  box-shadow:12px 12px 0 var(--gold);
  transform:rotate(-2.5deg);
}
.shp{position:absolute;display:block;z-index:1}
.s1{
  width:104px;height:104px;
  top:-12px;left:2px;
  background:var(--lime);
  clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  transform:rotate(14deg);
}
.s2{
  width:84px;height:84px;
  right:-4px;bottom:-6px;
  background:var(--gold);
  border:3px dashed var(--ink);
  border-radius:50%;
  mix-blend-mode:multiply;
}
.s3{
  width:132px;height:132px;
  left:-18px;bottom:14px;
  background:var(--lime);
  opacity:.6;
  border-radius:44% 56% 62% 38%/48% 42% 58% 52%;
  transform:rotate(-16deg);
}

.hero-copy{position:relative;z-index:3;text-align:center}
.hero-chip{
  display:inline-block;
  padding:6px 16px;
  background:var(--gold);
  border:3px solid var(--ink);
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  letter-spacing:1px;
  transform:rotate(-3deg);
  box-shadow:4px 4px 0 var(--ink);
}
h1{
  margin:18px 0 26px;
  font-size:clamp(2rem,7.2vw,3.9rem);
  line-height:1.06;
  font-weight:900;
  letter-spacing:-.5px;
  text-wrap:balance;
}
.hero-go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 28px;
  background:var(--ink);
  color:var(--lime);
  border:3px solid var(--ink);
  border-radius:999px;
  font-weight:900;
  font-size:17px;
  text-decoration:none;
  box-shadow:6px 6px 0 var(--gold);
  transition:transform .18s ease,box-shadow .18s ease;
}
.hero-go:hover{transform:translate(3px,3px) rotate(-1.5deg);box-shadow:2px 2px 0 var(--gold)}

/* ---------- 正文区 ---------- */
.board{
  display:grid;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:6px 18px 40px;
}
.board-body{min-width:0}

main div[id]{
  margin:0 0 26px;
  padding:26px 20px 30px;
  background:var(--card);
  border:2px dashed var(--ink);
  border-bottom:9px solid var(--lime);
  border-radius:var(--rim);
  box-shadow:7px 7px 0 rgba(25,38,23,.10);
  scroll-margin-top:26px;
}
main div[id]:nth-of-type(even){border-bottom-color:var(--gold)}

main h2{
  margin:0 0 10px;
  font-size:clamp(1.4rem,3.6vw,2rem);
  line-height:1.22;
  font-weight:900;
  letter-spacing:-.2px;
}
main h3{
  margin:22px 0 8px;
  font-size:1.16rem;
  font-weight:900;
}
main hr{
  height:0;
  margin:10px 0 18px;
  border:0;
  border-top:3px dashed var(--ink);
  opacity:.5;
}
main div[id] a{
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}
main div[id] ul,
main div[id] ol{padding-left:22px}
main div[id] li{margin:0 0 .5em}
main div[id] figure{margin:20px 0}
main div[id] img{border:3px solid var(--ink);border-radius:22px}
main div[id] blockquote{
  margin:18px 0;
  padding:14px 18px;
  background:var(--gold);
  border:3px solid var(--ink);
  border-radius:20px;
}
main div[id] blockquote p:last-child{margin:0}

/* ---------- 右侧目录 ---------- */
.rail{
  align-self:start;
  padding:18px 16px 20px;
  background:var(--gold);
  border:3px solid var(--ink);
  border-radius:var(--rim);
  box-shadow:8px 8px 0 var(--lime);
}
.rail-t{margin:0 0 6px;font-size:1.1rem;font-weight:900}
.rail hr{
  height:0;
  margin:0 0 12px;
  border:0;
  border-top:2px dashed var(--ink);
  opacity:.6;
}
.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rail;
  display:grid;
  gap:4px;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:7px 8px;
  border-radius:14px;
  font-weight:800;
  font-size:16px;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  flex:0 0 auto;
  padding:1px 6px;
  background:var(--ink);
  color:var(--gold);
  border-radius:7px;
  font-size:13px;
  font-weight:900;
}
.rail-list a:hover{background:var(--ink);color:var(--gold)}
.rail-list a:hover::before{background:var(--lime);color:var(--ink)}

/* ---------- 页脚 ---------- */
footer{
  padding:34px 18px 30px;
  background:var(--ink);
  color:var(--paper);
  border-top:5px solid var(--ink);
}
.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:1180px;
  margin:0 auto 34px;
  padding:24px 22px;
  background:var(--lime);
  color:var(--ink);
  border:3px solid var(--ink);
  border-radius:34px;
  box-shadow:10px 10px 0 var(--gold);
  transform:rotate(-.7deg);
}
.cta-brand{
  margin:0;
  font-size:clamp(1.6rem,5vw,2.6rem);
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.5px;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 24px;
  background:var(--ink);
  color:var(--lime);
  border:3px solid var(--ink);
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
}
.cta-btn:hover{transform:rotate(-2deg)}

.f-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  max-width:1180px;
  margin:0 auto;
  padding-top:20px;
  border-top:2px dashed rgba(251,247,230,.35);
}
.f-logo{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  background:var(--gold);
  color:var(--ink);
  border:2px solid var(--gold);
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  transform:rotate(-2deg);
}
.f-nav ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2px 4px;
  margin:0;
  padding:0;
  list-style:none;
}
.f-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  border-radius:12px;
  font-size:16px;
  font-weight:700;
  color:var(--paper);
  text-decoration:none;
}
.f-nav a:hover{background:var(--lime);color:var(--ink)}
.f-copy{
  justify-self:end;
  margin:0;
  font-size:16px;
  text-align:center;
  color:rgba(251,247,230,.85);
}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.8,.3,1);
}
.reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (min-width:760px){
  .hero{
    grid-template-columns:1.02fr .98fr;
    align-items:center;
    min-height:100svh;
    padding:56px 34px 60px;
    gap:26px;
  }
  .hero-art{min-height:320px}
  .hero-img{max-height:56svh}
  .board{padding:10px 34px 56px}
  .f-row{grid-template-columns:auto 1fr auto}
}

@media (min-width:980px){
  .board{
    grid-template-columns:minmax(0,1fr) 296px;
    align-items:start;
    gap:32px;
  }
  .rail{position:sticky;top:22px}
  .board-body{order:0}
  .hero-copy{padding-right:10px}
}

@media (max-width:759px){
  .f-row{grid-template-columns:1fr;justify-items:center;gap:10px}
  .f-logo{justify-self:center}
  .f-copy{justify-self:center}
  .cta{justify-content:center;text-align:center;transform:none}
  .board{padding-top:0}
}

@media (max-width:420px){
  .dock-nav a{padding:9px 8px;font-size:15px}
  .dock-brand{padding:8px 10px;font-size:15px}
  main div[id]{padding:22px 16px 26px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-img,.cta,.f-logo,.dock-brand{transform:none}
  *{animation-duration:.001ms;transition-duration:.001ms}
}

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