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

:root{
  --lime:#87ff71;
  --yellow:#ffce5c;
  --ink:#192617;
  --paper:#f4f8ec;
  --card:#ffffff;
  --dot:rgba(25,38,23,.17);
  --line:2px solid var(--ink);
  --radius:10px;
}

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

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

body{
  margin:0;
  font-family:'Exo',system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(var(--dot) 1.5px,transparent 1.6px);
  background-size:20px 20px;
  overflow-x:hidden;
}

img{display:block;max-width:100%}
a{color:inherit}
p{margin:0 0 14px}
menu{list-style:none;margin:0;padding:0}

/* ---------- 顶部 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
  padding:9px clamp(12px,4vw,30px) 11px;
  background:var(--ink);
  color:var(--lime);
  border-bottom:5px dashed var(--yellow);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:4px 6px;
  text-decoration:none;
  color:var(--lime);
  font-weight:700;
  letter-spacing:.05em;
  font-size:18px;
}

.brand .mark{
  width:34px;
  height:34px;
  border:2px solid var(--yellow);
  border-radius:8px;
  object-fit:cover;
  transform:rotate(-7deg);
}

.mark-type{
  display:inline-block;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.contact{
  margin-left:auto;
  order:2;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  background:var(--yellow);
  border:2px solid var(--ink);
  border-radius:999px;
  transform:rotate(2deg);
}

.contact:hover,
.contact:focus-visible{background:var(--lime)}

.drawer{
  order:3;
  width:100%;
  margin:0;
}

.drawer > summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 14px;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--ink);
  background:var(--lime);
  border:2px solid var(--ink);
  border-radius:9px;
  transform:rotate(-1.5deg);
}

.drawer > summary::-webkit-details-marker{display:none}
.drawer > summary::after{content:'+';font-size:18px;line-height:1}
.drawer[open] > summary::after{content:'−'}

.drawer-menu{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:11px 0 3px;
}

.drawer-menu a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:var(--lime);
  border:2px solid rgba(135,255,113,.45);
  border-radius:999px;
}

.drawer-menu a:hover,
.drawer-menu a:focus-visible{
  color:var(--ink);
  background:var(--yellow);
  border-color:var(--ink);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:clamp(18px,4vw,44px);
  padding:clamp(22px,5vw,54px) clamp(16px,4vw,32px);
}

.hero > *{position:relative;z-index:1}

.hero::before{
  content:'';
  position:absolute;
  left:-26px;
  top:14%;
  width:118px;
  height:118px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(13deg);
  z-index:0;
}

.hero::after{
  content:'';
  position:absolute;
  right:-14px;
  bottom:9%;
  width:88px;
  height:88px;
  border:5px dotted var(--ink);
  border-radius:50%;
  z-index:0;
}

.hero-figure{
  position:relative;
  margin:0;
  aspect-ratio:4/5;
  border:3px solid var(--ink);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--yellow);
  clip-path:polygon(0 0,100% 0,100% 90%,86% 100%,0 100%);
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-shapes{position:absolute;inset:0}

.sh{
  position:absolute;
  display:block;
}

.sh-1{
  left:8%;
  top:10%;
  width:46%;
  height:46%;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
}

.sh-2{
  right:6%;
  top:24%;
  width:38%;
  height:38%;
  border:4px dashed var(--ink);
  border-radius:50%;
}

.sh-3{
  left:16%;
  bottom:14%;
  width:58%;
  height:16%;
  background:repeating-linear-gradient(90deg,var(--ink) 0 8px,transparent 8px 16px);
}

.sh-4{
  right:14%;
  bottom:8%;
  width:64px;
  height:64px;
  background:var(--ink);
  transform:rotate(18deg);
}

.fig-dot{
  position:absolute;
  right:10px;
  top:10px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--ink);
  mix-blend-mode:multiply;
}

.hero-copy{text-align:right}

.stamps{margin:0 0 14px}
.sticker{
  display:inline-block;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:15px;
  padding:6px 14px;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--lime);
  transform:rotate(-3deg);
}
.sticker + .sticker{margin-right:8px}
.st-a{background:var(--yellow);transform:rotate(2.5deg)}

.hero h1{
  margin:0 0 16px;
  font-size:clamp(30px,5.6vw,56px);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.01em;
  text-shadow:4px 4px 0 var(--lime);
}

.hero-desc{
  max-width:36ch;
  margin:0 0 22px auto;
  font-size:17px;
  color:#26361f;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:11px 28px;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:16px;
  letter-spacing:.1em;
  text-decoration:none;
  color:var(--lime);
  background:var(--ink);
  border:3px dashed var(--yellow);
  border-radius:9px;
  transform:rotate(-1.4deg);
}

.hero-cta:hover,
.hero-cta:focus-visible{background:#243522;color:var(--yellow)}

/* ---------- 内容区 ---------- */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(18px,4vw,42px) clamp(16px,4vw,32px) 64px;
  display:grid;
  grid-template-columns:222px minmax(0,1fr);
  gap:clamp(18px,4vw,40px);
  align-items:start;
}

.rail{
  position:sticky;
  top:118px;
  border:var(--line);
  border-radius:var(--radius);
  background:var(--yellow);
  padding:16px 14px 12px;
  transform:rotate(-.6deg);
}

.rail-title{
  margin:0 0 10px;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:16px;
  letter-spacing:.16em;
}

.rail-title span{border-bottom:3px solid var(--ink);padding-bottom:1px}

.rail-list{display:grid;gap:2px}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px 4px 16px;
  font-size:16px;
  text-decoration:none;
  position:relative;
  border-bottom:1px dotted rgba(25,38,23,.35);
}

.rail-list a::before{
  content:'';
  position:absolute;
  left:2px;
  width:7px;
  height:7px;
  background:var(--ink);
  transform:rotate(45deg);
}

.rail-list a:hover,
.rail-list a:focus-visible{background:var(--lime)}

.stream{min-width:0}

.stream > article{
  position:relative;
  background:var(--card);
  border:var(--line);
  border-radius:var(--radius);
  padding:clamp(20px,3vw,32px);
  margin:0 0 26px;
  scroll-margin-top:126px;
}

.stream > article:nth-child(even){background:#fbfdf6}

.stream > article::before{
  content:'';
  position:absolute;
  right:14px;
  top:14px;
  width:12px;
  height:12px;
  background:var(--lime);
  border:2px solid var(--ink);
  transform:rotate(45deg);
}

.stream h2{
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.3;
  font-weight:700;
  margin:0 0 14px;
}

.stream h2 span{
  background:linear-gradient(transparent 60%,var(--lime) 60%);
  padding:0 2px;
}

.stream h3{
  font-size:19px;
  margin:22px 0 10px;
  font-family:'Roboto Mono','Exo',monospace;
  letter-spacing:.04em;
}

.stream h3 span{border-bottom:3px dotted var(--yellow)}

.stream ul,
.stream ol{padding-left:1.25em;margin:0 0 14px}
.stream li{margin:0 0 6px}

.stream figure{margin:16px 0}
.stream figure img{border:2px solid var(--ink);border-radius:var(--radius)}
.stream figcaption{font-size:15px;color:#3d4f34;margin-top:6px}

.stream aside{
  border-left:6px solid var(--yellow);
  background:#fdf8e8;
  padding:12px 16px;
  border-radius:0 var(--radius) var(--radius) 0;
  margin:0 0 16px;
}

.stream blockquote{
  margin:16px 0;
  padding:10px 16px;
  border-left:6px solid var(--lime);
  background:#f4fcef;
}

.stream a{color:#1d5b2b;text-decoration-thickness:2px}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:var(--lime);
  border-top:7px solid var(--lime);
  padding:clamp(24px,4vw,44px) clamp(16px,4vw,32px) 16px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr .8fr;
  gap:26px;
}

.foot article{min-width:0}

.foot h2{
  font-size:20px;
  margin:0 0 10px;
  line-height:1.3;
}

.foot h2 span{
  border-bottom:3px solid var(--yellow);
  padding-bottom:2px;
}

.foot p{
  margin:0;
  font-size:16px;
  color:#dcf3cf;
}

.foot menu{display:grid;gap:2px}

.foot menu a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:3px 0;
  font-size:16px;
  text-decoration:none;
  color:var(--lime);
}

.foot menu a:hover,
.foot menu a:focus-visible{color:var(--yellow);text-decoration:underline}

.foot-up{align-self:start}

.to-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  font-family:'Roboto Mono','Exo',monospace;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  background:var(--yellow);
  border:2px solid var(--lime);
  border-radius:999px;
  transform:rotate(-2deg);
}

.foot-line{
  grid-column:1/-1;
  margin-top:8px;
  padding-top:12px;
  border-top:2px dashed rgba(135,255,113,.45);
  font-family:'Roboto Mono','Exo',monospace;
  font-size:15px;
  color:#bfe0b0;
}

/* ---------- 动效 ---------- */
.js .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .5s cubic-bezier(.2,.7,.3,1);
  transition-delay:calc(var(--i,0) * 55ms);
}

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

.js .hero-figure,
.js .hero-copy > *{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s ease,transform .55s ease;
}

.js .hero.in .hero-figure,
.js .hero.in .hero-copy > *{opacity:1;transform:none}
.js .hero.in .hero-copy > *:nth-child(2){transition-delay:.08s}
.js .hero.in .hero-copy > *:nth-child(3){transition-delay:.16s}
.js .hero.in .hero-copy > *:nth-child(4){transition-delay:.24s}

/* ---------- 响应式 ---------- */
@media (min-width:900px){
  .drawer{
    order:2;
    width:auto;
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .drawer-menu{margin:0;flex-wrap:nowrap;gap:4px}
  .drawer > summary{padding:6px 12px}
  .contact{order:3;margin-left:4px}
}

@media (max-width:899px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:26px;
  }
  .hero-copy{order:1;text-align:left}
  .hero-desc{margin-left:0}
  .hero-figure{order:2;aspect-ratio:16/11}
  .hero h1{text-shadow:3px 3px 0 var(--lime)}
  .shell{grid-template-columns:1fr;padding-bottom:48px}
  .rail{position:static;transform:none}
  .rail-list{grid-template-columns:1fr 1fr;gap:0 12px}
  .foot{grid-template-columns:1fr 1fr}
}

@media (max-width:560px){
  .foot{grid-template-columns:1fr}
  .rail-list{grid-template-columns:1fr}
  .stream > article{padding:18px 15px}
}

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

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