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

:root{
  --ink:#192617;
  --ink-deep:#101a10;
  --neon:#87ff71;
  --must:#ffce5c;
  --cream:#f2ffe6;
  --edge:rgba(135,255,113,.4);
  --edge-2:rgba(255,206,92,.42);
  --r:18px;
  --bar:64px;
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--cream);
  font-family:'Patrick Hand','Kalam',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.2px;
  overflow-x:hidden;
  min-height:100%;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(135,255,113,.16) 1px,transparent 1.7px);
  background-size:22px 22px;
  mix-blend-mode:screen;
  opacity:.7;
}

body[data-menu="open"]{overflow:hidden}

img,svg{max-width:100%}
p{margin:0 0 1em}
a{color:var(--neon);text-decoration:none;transition:color .18s ease,transform .18s ease}
a:hover{color:var(--must)}
button{font:inherit}
:focus-visible{outline:3px solid var(--must);outline-offset:3px}
[id]{scroll-margin-top:calc(var(--bar) + 20px)}

/* ---------- 顶栏 ---------- */
.bar{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--bar);
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 14px;
  background:rgba(25,38,23,.9);
  border-bottom:2px dashed var(--edge);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

.mark{
  display:grid;
  place-items:center;
  width:46px;height:46px;
  border:2px solid var(--neon);
  border-radius:15px;
  background:var(--must);
  transform:rotate(-6deg);
  flex:0 0 auto;
  transition:transform .2s ease;
}
.mark:hover{transform:rotate(6deg) scale(1.04)}

.bar-tools{display:flex;align-items:center;gap:10px}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 13px;
  border:2px dashed var(--edge-2);
  border-radius:14px;
  color:var(--must);
  font-size:16px;
  transform:rotate(1.2deg);
}

.burger{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 14px;
  border:2px solid var(--neon);
  border-radius:14px;
  background:transparent;
  color:var(--neon);
  font-size:16px;
  cursor:pointer;
  transform:rotate(-2deg);
}
.burger:hover{background:rgba(135,255,113,.12);color:var(--neon)}

.bars{display:grid;gap:4px;width:18px}
.bars i{display:block;height:2px;background:currentColor}
.bars i:nth-child(2){width:70%}

/* ---------- 遮罩菜单 ---------- */
.menu{
  position:fixed;
  inset:0;
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:calc(var(--bar) + 16px) 20px 30px;
  background:var(--ink-deep);
  background-image:repeating-linear-gradient(135deg,rgba(135,255,113,.07) 0 12px,transparent 12px 26px);
  transform:translateY(-102%);
  transition:transform .4s cubic-bezier(.2,.8,.25,1);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.menu[data-open="true"]{transform:none}

.menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px}

.menu-brand{
  font-family:'Kalam',cursive;
  font-size:22px;
  color:var(--must);
  transform:rotate(-1.6deg);
}

.menu-close{
  min-height:44px;
  padding:0 16px;
  border:2px solid var(--must);
  border-radius:14px;
  background:transparent;
  color:var(--must);
  cursor:pointer;
}

.menu-list{list-style:none;margin:0;padding:0;display:grid;gap:0}
.menu-list li{border-bottom:2px dotted var(--edge)}
.menu-list li:last-child{border-bottom:0}

.menu-list a{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:8px 2px;
  font-family:'Kalam',cursive;
  font-size:clamp(1.35rem,6.4vw,2rem);
  color:var(--cream);
}
.menu-list a:hover{color:var(--neon);transform:translateX(5px)}

.menu-cta{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 20px;
  border:2px solid var(--neon);
  border-radius:var(--r);
  background:var(--neon);
  color:var(--ink);
  font-family:'Kalam',cursive;
  font-size:18px;
}
.menu-cta:hover{color:var(--ink);background:var(--must);border-color:var(--must)}

/* ---------- 主体 ---------- */
main{
  position:relative;
  z-index:1;
  padding-top:var(--bar);
}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  padding:34px 18px 30px;
  border-bottom:3px solid var(--neon);
}

.hero-title{
  margin:0;
  max-width:22ch;
  font-family:'Kalam',cursive;
  font-weight:700;
  font-size:clamp(2.45rem,11.4vw,5.4rem);
  line-height:1.04;
  letter-spacing:.5px;
  color:var(--neon);
  text-shadow:4px 4px 0 rgba(255,206,92,.32);
  transform:rotate(-1deg);
}

.stage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:28px 18px 46px;
}

.deco{
  position:absolute;
  inset:0;
  margin:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.deco span{position:absolute;display:block}
.d1{
  width:118px;height:118px;
  top:-6px;right:8%;
  background:var(--must);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
  opacity:.82;
}
.d2{
  width:84px;height:84px;
  top:150px;right:-22px;
  border:4px dashed var(--neon);
  border-radius:50%;
  transform:rotate(12deg);
  opacity:.6;
}
.d3{
  width:60px;height:60px;
  top:300px;right:24%;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
  opacity:.45;
  transform:rotate(18deg);
}
.d4{
  width:150px;height:16px;
  top:420px;right:12%;
  border-top:5px dotted rgba(255,206,92,.55);
  transform:rotate(-4deg);
}

.doc{position:relative;z-index:1;min-width:0}

.doc section{
  padding:24px 0 26px;
  border-bottom:2px dotted var(--edge);
}
.doc > section:last-child{border-bottom:0;padding-bottom:8px}

.doc small{
  display:block;
  font-size:.84rem;
  letter-spacing:.22em;
  color:var(--neon);
  margin-bottom:2px;
}

.doc h2{
  font-family:'Kalam',cursive;
  font-weight:700;
  font-size:clamp(1.55rem,6vw,2.15rem);
  line-height:1.18;
  margin:.05em 0 .5em;
  color:var(--must);
  transform:rotate(-.5deg);
}

.doc h3{
  font-family:'Kalam',cursive;
  font-size:clamp(1.2rem,4.6vw,1.5rem);
  line-height:1.3;
  margin:1.4em 0 .45em;
  color:var(--neon);
}

.doc p{max-width:66ch}
.doc ul,.doc ol{margin:0 0 1em;padding-left:1.3em}
.doc li{margin:.32em 0;max-width:64ch}

.doc a{
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}

.doc figure{
  margin:18px 0;
  padding:10px;
  border:2px dashed var(--edge-2);
  border-radius:var(--r);
  transform:rotate(-.4deg);
}
.doc img{display:block;width:100%;height:auto;border-radius:14px}

.doc blockquote{
  margin:18px 0;
  padding:6px 0 6px 16px;
  border-left:5px solid var(--must);
  color:#ddf6cd;
}

.doc table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.doc th,.doc td{border:2px dotted var(--edge);padding:8px 10px;text-align:left}
.doc th{color:var(--must);font-weight:400}

.doc code{
  font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;
  font-size:.92em;
  background:rgba(135,255,113,.14);
  padding:1px 6px;
  border-radius:7px;
}

/* ---------- 右侧栏 ---------- */
.side{
  position:relative;
  z-index:1;
  padding:16px 16px 12px;
  border:2px dashed var(--must);
  border-radius:var(--r);
  background:rgba(255,206,92,.07);
  transform:rotate(-.8deg);
  align-self:start;
}

.side .eyebrow{
  display:block;
  font-size:.8rem;
  letter-spacing:.24em;
  color:var(--neon);
}

.side-title{
  margin:.08em 0 .7em;
  font-family:'Kalam',cursive;
  font-size:1.35rem;
  line-height:1.2;
  color:var(--must);
}

.side-list{list-style:none;margin:0;padding:0}
.side-list li{border-bottom:2px dotted rgba(135,255,113,.22)}
.side-list li:last-child{border-bottom:0}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  color:var(--cream);
  font-size:16px;
}
.side-list a::before{
  content:"";
  width:9px;height:9px;
  margin-right:10px;
  background:var(--must);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  flex:0 0 auto;
}
.side-list a:hover{color:var(--neon)}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 18px;
  padding:30px 18px 24px;
  border-top:3px solid var(--must);
  background:var(--ink-deep);
}

.foot-brand{
  grid-column:1 / -1;
  margin:0;
  font-family:'Kalam',cursive;
  font-weight:700;
  font-size:clamp(1.9rem,12vw,3.6rem);
  line-height:1;
  color:var(--neon);
  transform:rotate(-1.4deg);
  text-shadow:3px 3px 0 rgba(255,206,92,.28);
}

.foot-links{margin:0;display:flex;flex-wrap:wrap;gap:0 14px;font-size:16px}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--cream);
  border-bottom:2px dotted rgba(135,255,113,.34);
}

.foot-copy{
  grid-column:1 / -1;
  display:block;
  margin-top:8px;
  font-size:.86rem;
  color:rgba(242,255,230,.68);
}

/* ---------- 滚动揭示 ---------- */
.js .rv{
  opacity:0;
  transform:translateY(20px) rotate(-.6deg);
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.8,.3,1);
  transition-delay:calc(var(--i,0) * 55ms);
}
.js .rv.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (min-width:600px){
  .hero{padding:44px 26px 38px}
  .stage{padding:34px 24px 54px}
  .foot{grid-template-columns:1.6fr 1fr 1fr;gap:16px 24px;padding:36px 26px 26px}
  .foot-brand{grid-column:1 / 2}
  .foot-copy{grid-column:1 / -1}
}

@media (min-width:900px){
  .stage{
    grid-template-columns:minmax(0,1fr) 272px;
    gap:46px;
    padding:46px 26px 68px;
    align-items:start;
  }
  .side{position:sticky;top:calc(var(--bar) + 22px);order:2}
  .hero{min-height:45vh;padding:56px 26px 46px}
  .hero-title{font-size:clamp(3rem,6.6vw,5.6rem)}
  .doc section{padding:30px 0 32px}
  .foot{padding:40px 26px 28px}
  .menu{padding:calc(var(--bar) + 24px) 44px 40px}
  .menu-list a{min-height:64px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1;transform:none;transition:none}
  .menu{transition:none}
  .hero-title,.side,.mark,.foot-brand{transform:none}
}

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