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

:root{
  --lime:#87ff71;
  --mustard:#ffce5c;
  --ink:#192617;
  --panel:#1d2f1d;
  --panel-2:#223524;
  --line:#334a33;
  --text:#e7f8e1;
  --muted:#aec9a7;
  --r:10px;
  --dock-h:82px;
}

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

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

body{
  margin:0;
  padding-bottom:calc(var(--dock-h) + 26px);
  overflow-x:hidden;
  background-color:var(--ink);
  background-image:
    radial-gradient(circle at 10% 14%, rgba(135,255,113,.13), transparent 42%),
    radial-gradient(circle at 90% 4%, rgba(255,206,92,.13), transparent 38%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:auto, auto, 22px 22px;
  background-attachment:fixed, fixed, scroll;
  color:var(--text);
  font-family:"DM Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--lime);text-decoration:none}
a:hover{color:var(--mustard)}
:focus-visible{outline:3px dashed var(--mustard);outline-offset:3px}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 18px;
  background:rgba(20,31,18,.94);
  border-top:2px dashed var(--line);
  backdrop-filter:blur(8px);
}

.dock-brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  color:var(--lime);
  font-weight:700;
  letter-spacing:.02em;
  flex:0 0 auto;
}
.dock-brand:hover{color:var(--mustard)}

.mark{
  width:20px;
  height:20px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-90deg);
  flex:0 0 auto;
}

.dock-name{font-size:16px;white-space:nowrap}

.dock-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.dock-nav::-webkit-scrollbar{display:none}

.dock-nav ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
  white-space:nowrap;
}

.dock-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 12px;
  border-radius:var(--r);
  color:var(--text);
  font-size:16px;
  font-weight:500;
}
.dock-nav a:hover{background:var(--panel-2);color:var(--lime)}

.dot{
  width:10px;
  height:10px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  flex:0 0 auto;
}
.dock-nav li:nth-child(2n) .dot{border-radius:50%;clip-path:none;background:var(--mustard)}
.dock-nav li:nth-child(3n) .dot{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:rotate(12deg);background:var(--text)}

.dock-cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  border-radius:var(--r);
  background:var(--mustard);
  color:var(--ink);
  font-weight:700;
  font-size:16px;
  white-space:nowrap;
  transform:rotate(-1.5deg);
  clip-path:polygon(0 0,100% 0,100% 72%,94% 100%,0 100%);
}
.dock-cta:hover{background:var(--lime);color:var(--ink)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:0 24px 64px;
  background:var(--ink);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(102deg, rgba(25,38,23,.97) 14%, rgba(25,38,23,.74) 52%, rgba(25,38,23,.34) 100%);
}

.hero-art{position:absolute;inset:0;z-index:-2}
.hero-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.62;
  filter:saturate(1.12) contrast(1.06);
}

.hero-shapes{position:absolute;inset:0;z-index:-1;pointer-events:none;mix-blend-mode:screen}
.hero-shapes i{position:absolute;display:block}
.hero-shapes i:nth-child(1){
  width:230px;height:230px;right:7%;top:14%;
  border:3px dashed var(--mustard);border-radius:50%;
  opacity:.75;transform:rotate(7deg);
}
.hero-shapes i:nth-child(2){
  width:158px;height:158px;right:24%;bottom:13%;
  background:var(--lime);opacity:.8;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-6deg);
}
.hero-shapes i:nth-child(3){
  width:132px;height:132px;left:5%;bottom:17%;
  background:repeating-linear-gradient(45deg,var(--mustard) 0 8px,transparent 8px 17px);
  border-radius:var(--r);opacity:.5;transform:rotate(12deg);
}

.hero-copy{position:relative;z-index:2;max-width:760px}

.stamp{
  display:inline-block;
  margin:0 0 20px;
  padding:6px 18px;
  background:var(--lime);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
  transform:rotate(-3deg);
  clip-path:polygon(0 0,100% 0,100% 66%,93% 100%,0 100%);
}
.stamp span{display:block}

.hero h1{
  margin:0;
  font-size:clamp(2.3rem,7.2vw,4.5rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.025em;
  color:#f4fff1;
  text-shadow:5px 5px 0 rgba(135,255,113,.26);
}

.lede{
  max-width:560px;
  margin:22px 0 0;
  font-size:18px;
  line-height:1.75;
  color:#d3e8cb;
}

.hero-go{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  margin-top:28px;
  padding:10px 24px;
  border-radius:var(--r);
  background:var(--mustard);
  color:var(--ink);
  font-weight:700;
  font-size:17px;
  transform:rotate(-1.5deg);
  clip-path:polygon(0 0,100% 0,100% 74%,95% 100%,0 100%);
}
.hero-go:hover{background:var(--lime);color:var(--ink)}

/* ---------- 主区 ---------- */
main{display:block}

.wrap{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:48px;
  max-width:1180px;
  margin:0 auto;
  padding:64px 24px 72px;
}

.side{
  position:sticky;
  top:26px;
  align-self:start;
  padding:18px 16px;
  background:var(--panel);
  border:2px dashed var(--line);
  border-radius:var(--r);
}

.side-t{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.1em;
  color:var(--lime);
  text-transform:none;
}
.side-t span{
  display:inline-block;
  padding:2px 8px;
  background:rgba(135,255,113,.12);
  border-radius:4px;
}

.side-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}
.side-nav li + li{border-top:1px dotted var(--line)}
.side-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 2px;
  font-size:16px;
  color:var(--text);
}
.side-nav a::before{
  content:"";
  width:8px;
  height:8px;
  margin-right:9px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  flex:0 0 auto;
}
.side-nav a:hover{color:var(--lime)}

.col{min-width:0}

/* ---------- 正文 ---------- */
.prose{
  max-width:724px;
  overflow-wrap:break-word;
}

.prose > section{scroll-margin-top:26px}
.prose > section + section{
  margin-top:48px;
  padding-top:48px;
  border-top:2px dashed var(--line);
}

.prose h2{
  margin:0 0 18px;
  font-size:clamp(1.55rem,3.4vw,2.15rem);
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.015em;
  color:#f1ffe9;
}
.prose h2 span{
  display:inline;
  padding:0 3px;
  background:linear-gradient(transparent 62%, rgba(135,255,113,.45) 62%);
}

.prose h3{
  margin:32px 0 12px;
  font-size:clamp(1.2rem,2.4vw,1.4rem);
  font-weight:700;
  line-height:1.35;
  color:var(--mustard);
}
.prose h3 span{border-bottom:3px dotted rgba(255,206,92,.6);padding-bottom:1px}

.prose p{margin:0 0 18px;font-size:17px;line-height:1.85}

.prose a{
  color:var(--lime);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}

.prose ul,.prose ol{margin:0 0 20px;padding-left:1.3em}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--lime)}

.prose blockquote{
  margin:0 0 22px;
  padding:18px 20px;
  background:var(--panel-2);
  border-left:6px solid var(--mustard);
  border-radius:var(--r);
  color:#e3f4dc;
}
.prose blockquote p:last-child{margin-bottom:0}

.prose figure{margin:0 0 22px}
.prose figure img{border-radius:var(--r);width:100%}
.prose figcaption{font-size:16px;color:var(--muted);margin-top:8px}

.prose img{border-radius:var(--r)}

.prose hr{
  border:0;
  height:2px;
  margin:34px 0;
  background:repeating-linear-gradient(90deg,var(--line) 0 10px,transparent 10px 20px);
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 22px;
  font-size:16px;
}
.prose th,.prose td{
  padding:10px 12px;
  border-bottom:1px dotted var(--line);
  text-align:left;
}
.prose th{color:var(--lime);font-weight:700}

.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;
  background:var(--panel-2);
  padding:2px 6px;
  border-radius:5px;
}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 24px 46px;
  border-top:2px dashed var(--line);
}
.foot p{
  margin:0;
  font-size:16px;
  font-weight:700;
  color:var(--lime);
  letter-spacing:.04em;
}
.foot small{font-size:16px;color:var(--muted)}
.foot small a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 10px;
  border:2px dotted var(--line);
  border-radius:var(--r);
}

/* ---------- 动效 ---------- */
.rev .prose > section{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.rev .prose > section.in{opacity:1;transform:none}

.rev .prose > section > *{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease, transform .5s ease;
}
.rev .prose > section.in > *{opacity:1;transform:none}

.hero-copy > *{animation:rise .7s cubic-bezier(.2,.7,.3,1) both}
.hero-copy > *:nth-child(2){animation-delay:.08s}
.hero-copy > *:nth-child(3){animation-delay:.16s}
.hero-copy > *:nth-child(4){animation-delay:.24s}
@keyframes rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .hero-copy > *{animation:none}
  .rev .prose > section,
  .rev .prose > section > *{opacity:1;transform:none;transition:none}
  .stamp,.hero-go,.dock-cta{transform:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:200px minmax(0,1fr);gap:30px}
}

@media (max-width:760px){
  body{font-size:17px;padding-bottom:calc(var(--dock-h) + 46px)}
  .dock{padding:8px 12px;gap:8px}
  .dock-nav a{padding:8px 10px}
  .dock-name{max-width:5em;overflow:hidden;text-overflow:ellipsis}
  .hero{padding:0 16px 52px}
  .hero-shapes i:nth-child(1){width:150px;height:150px;right:2%;top:11%}
  .hero-shapes i:nth-child(2){width:112px;height:112px;right:16%;bottom:10%}
  .hero-shapes i:nth-child(3){width:96px;height:96px;left:4%;bottom:12%}
  .hero h1{text-shadow:3px 3px 0 rgba(135,255,113,.28)}
  .lede{font-size:17px}
  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding:34px 16px 56px;
  }
  .side{position:static;padding:14px}
  .side-nav ul{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
  .side-nav ul::-webkit-scrollbar{display:none}
  .side-nav li{flex:0 0 auto}
  .side-nav li + li{border-top:0}
  .side-nav a{
    min-height:44px;
    padding:8px 14px;
    background:var(--panel-2);
    border-radius:999px;
  }
  .side-nav a::before{display:none}
  .prose h2 span{padding:0 2px}
  .foot{flex-wrap:wrap;padding:22px 16px 36px}
  .prose th,.prose td{padding:8px 9px}
}

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