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

:root{
  --ink:#192617;
  --ink2:#1f301b;
  --ink3:#2a4024;
  --line:#3d5c34;
  --green:#87ff71;
  --yellow:#ffce5c;
  --paper:#eef9ea;
  --muted:#a9c7a1;
  --dock:146px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:"Space Grotesk","Inter",system-ui,-apple-system,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.68;
  letter-spacing:.004em;
  padding-bottom:calc(var(--dock) + 18px);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(135,255,113,.20) 1px,transparent 1px);
  background-size:16px 16px;
}

.hero,.wrap,.foot{position:relative;z-index:1}

img{max-width:100%;height:auto}
a{color:var(--green)}
a:focus-visible,button:focus-visible{outline:3px dashed var(--yellow);outline-offset:3px}
p{margin:.85em 0}

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px 8px calc(8px + env(safe-area-inset-bottom));
  background:var(--ink2);
  border-top:3px solid var(--green);
}
.dock-brand{
  order:-1;
  flex:1 0 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  color:var(--yellow);
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  letter-spacing:.07em;
}
.dock-nav{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  gap:3px;
  flex:1 1 100%;
}
.dock-a{grid-template-columns:repeat(4,1fr)}
.dock-b{grid-template-columns:repeat(3,1fr)}
.dock-nav li{min-width:0}
.dock-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:44px;
  padding:4px 2px;
  background:var(--ink3);
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
  line-height:1.15;
  text-align:center;
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
  transition:background .18s ease,color .18s ease;
}
.dock-nav a:hover,.dock-nav a:focus{background:var(--green);color:var(--ink)}
.dock-b li:last-child a{background:var(--yellow);color:var(--ink)}
.ic{
  display:inline-block;
  width:8px;height:8px;
  background:var(--green);
  flex:0 0 auto;
}
.dock-nav li:nth-child(2n) a .ic{background:var(--yellow);clip-path:polygon(50% 0,100% 100%,0 100%)}
.dock-nav li:nth-child(3n) a .ic{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}

/* ---------- 首屏 ---------- */
.hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  min-height:45vh;
  padding:24px 18px 28px;
  overflow:hidden;
  border-bottom:3px dashed var(--line);
}
.hero-art{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:start;
}
.shot{
  margin:0;
  position:relative;
  aspect-ratio:4/3;
  background:var(--ink3);
  overflow:hidden;
  transition:transform .5s ease;
}
.shot img{display:block;width:100%;height:100%;object-fit:cover}
.shot-a{
  transform:rotate(-2.6deg);
  clip-path:polygon(0 10%,100% 0,95% 100%,4% 92%);
}
.shot-b{
  transform:rotate(3.2deg) translateY(12px);
  clip-path:polygon(5% 0,100% 7%,96% 95%,0 100%);
}
.shot.shape{
  background-image:repeating-linear-gradient(45deg,var(--green) 0 7px,var(--ink) 7px 14px);
  background-blend-mode:normal;
}
.shot-b.shape{
  background-image:repeating-linear-gradient(-45deg,var(--yellow) 0 7px,var(--ink2) 7px 14px);
}
.shot.hot{transform:rotate(0deg) scale(1.03);z-index:2}

.hero-copy{text-align:right}
h1{
  margin:0;
  font-size:clamp(1.9rem,8.6vw,3.4rem);
  line-height:1.08;
  letter-spacing:-.01em;
  color:var(--green);
  font-weight:700;
  text-wrap:balance;
}
.lede{
  margin:.7em 0 0 auto;
  max-width:44ch;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

/* ---------- 主区 ---------- */
.wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 18px 54px;
}
.stage{min-width:0}
.post{min-width:0}

/* 侧栏 */
.rail{
  background:var(--ink2);
  padding:16px 16px 18px;
  border-top:5px solid var(--yellow);
  box-shadow:8px 8px 0 rgba(135,255,113,.10);
}
.rail-title{
  margin:0 0 10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--green);
}
.blip{
  display:inline-block;
  width:.34em;height:.34em;
  background:var(--yellow);
  transform:rotate(45deg);
  margin-left:.4em;
  vertical-align:baseline;
}
.rail-list{
  list-style:none;
  margin:0 0 12px;
  padding:0;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:2px 0;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px dotted var(--line);
}
.rail-list a:hover{color:var(--green)}
.rail-list a::before{
  content:"";
  width:8px;height:8px;
  background:var(--green);
  margin-right:10px;
  flex:0 0 auto;
}
.rail-list li:nth-child(2n) a::before{background:var(--yellow);clip-path:polygon(50% 0,100% 100%,0 100%)}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--yellow);
  text-decoration:none;
  font-size:16px;
  letter-spacing:.06em;
}
.totop::after{content:"↑";margin-left:.4em}

/* 正文 */
.post section{
  padding:30px 0;
  border-top:3px dashed var(--line);
  scroll-margin-top:16px;
}
.post section:first-child{border-top:0;padding-top:0}
.post section:last-child{padding-bottom:0}

.post h2{
  margin:.15em 0 .7em;
  font-size:clamp(1.35rem,4.6vw,1.95rem);
  line-height:1.26;
  font-weight:700;
  color:var(--paper);
}
.post h2>span{
  position:relative;
  display:inline-block;
  padding:0 .12em;
  z-index:0;
}
.post h2>span::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:.03em;
  height:.3em;
  background:var(--green);
  opacity:.85;
  z-index:-1;
}
.post h3{
  margin:1.5em 0 .55em;
  font-size:1.15rem;
  line-height:1.35;
  color:var(--yellow);
  font-weight:600;
}
.post h3>span{display:inline-block;border-bottom:3px solid var(--yellow);padding-bottom:2px}
.post h2 span span,.post h3 span span{
  display:inline-block;
  width:.3em;height:.3em;
  background:var(--yellow);
  margin-left:.35em;
  transform:rotate(45deg);
  vertical-align:baseline;
}
.post p{max-width:70ch}
.post a{color:var(--green);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.post strong{color:var(--yellow);font-weight:700}
.post em{color:var(--green);font-style:normal;border-bottom:2px dotted var(--green)}
.post ul,.post ol{padding-left:1.25em;margin:.9em 0;max-width:70ch}
.post li{margin:.35em 0}
.post ul{list-style:none;padding-left:1.1em}
.post ul li::before{
  content:"";
  display:inline-block;
  width:.5em;height:.5em;
  background:var(--green);
  margin-right:.6em;
  vertical-align:middle;
}
.post ol li::marker{color:var(--green);font-weight:700}
.post blockquote{
  margin:1.3em 0;
  padding:14px 18px;
  background:var(--ink2);
  border-left:6px solid var(--yellow);
}
.post blockquote p:first-child{margin-top:0}
.post blockquote p:last-child{margin-bottom:0}
.post img{
  display:block;
  width:100%;
  margin:1.3em 0;
  clip-path:polygon(0 0,100% 0,99% 99%,1% 100%);
}
.post hr{border:0;border-top:3px dotted var(--line);margin:2em 0}
.post table{width:100%;border-collapse:collapse;font-size:16px;margin:1.2em 0}
.post th,.post td{padding:8px 10px;border-bottom:2px dotted var(--line);text-align:left}
.post th{color:var(--yellow)}

/* 动效 */
.has-js .post section,
.has-js .rail-list li,
.has-js .hero-copy{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .45s ease,transform .45s ease;
}
.has-js .post section.in,
.has-js .rail-list li.in,
.has-js .hero-copy.in{opacity:1;transform:none}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  padding:20px 18px 26px;
  background:var(--ink2);
  border-top:3px solid var(--yellow);
}
.f-title{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.05em;
  color:var(--green);
}
.f-nav ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px 12px;
  margin:0;
  padding:0;
}
.f-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
}
.f-nav a:hover{color:var(--yellow)}
.f-nav .ic{background:var(--line);width:7px;height:7px;margin-right:7px}
.f-copy p{margin:0;font-size:16px;color:var(--muted)}

/* ---------- 桌面 ---------- */
@media (min-width:900px){
  :root{--dock:66px}
  body{padding-bottom:calc(var(--dock) + 12px)}
  .dock{flex-wrap:nowrap;gap:22px;padding:8px 26px}
  .dock-brand{order:0;flex:0 0 auto;min-height:44px;padding:0 12px;font-size:18px}
  .dock-nav{flex:0 1 auto;display:flex;gap:4px}
  .dock-a{justify-content:flex-end}
  .dock-b{justify-content:flex-start}
  .dock-nav a{padding:6px 12px;white-space:nowrap}
  .dock-nav a clip-path:none;

  .hero{
    display:grid;
    grid-template-columns:1.02fr .98fr;
    align-items:center;
    gap:40px;
    min-height:45vh;
    padding:34px 40px;
  }
  .hero-art{order:1}
  .hero-copy{order:2}
  h1{font-size:clamp(2.6rem,5vw,4rem)}
  .shot-b{transform:rotate(4deg) translateY(22px)}
  .wrap{
    grid-template-columns:252px minmax(0,1fr);
    gap:44px;
    align-items:start;
    padding:44px 40px 66px;
  }
  .rail{position:sticky;top:20px}
  .foot{padding:22px 40px 26px}
}

@media (min-width:1200px){
  .hero{padding:44px 56px}
  .wrap{padding:48px 56px 72px}
  .foot{padding:22px 56px 28px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .has-js .post section,
  .has-js .rail-list li,
  .has-js .hero-copy{opacity:1;transform:none;transition:none}
  .shot{transition:none}
}

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