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

:root{
  --ink:#192617;
  --ink-2:#11200f;
  --green:#87ff71;
  --yellow:#ffce5c;
  --cream:#eef6e6;
  --line:rgba(135,255,113,.3);
  --shadow:0 16px 34px rgba(0,0,0,.42);
  --r:18px;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  font-family:'Outfit',ui-sans-serif,system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--cream);
  background-color:var(--ink);
  background-image:radial-gradient(rgba(135,255,113,.13) 1.4px,transparent 1.4px);
  background-size:24px 24px;
}

body::before{
  content:"";
  position:fixed;
  left:-140px;
  bottom:-160px;
  width:440px;
  height:440px;
  border-radius:50%;
  background:var(--yellow);
  opacity:.15;
  filter:blur(70px);
  pointer-events:none;
  z-index:0;
}

a{color:var(--green)}

:focus-visible{outline:3px dashed var(--yellow);outline-offset:3px}

/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:8px clamp(10px,3vw,26px);
  background:rgba(17,32,15,.95);
  backdrop-filter:blur(8px);
  border-bottom:3px dashed var(--line);
}

.side{display:flex;align-items:center;gap:8px;min-width:0}
.side-r{justify-content:flex-end}
.side nav{display:flex;gap:2px;flex-wrap:wrap}
.side nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 10px;
  font-size:15px;
  font-weight:700;
  color:var(--cream);
  text-decoration:none;
  border-radius:10px;
  transition:background .18s,color .18s,transform .18s;
}
.side nav a:hover{background:var(--green);color:var(--ink);transform:rotate(-2deg)}

.burger{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:0 10px;
  cursor:pointer;
  background:var(--green);
  border:0;
  border-radius:12px;
  transform:rotate(-3deg);
  transition:transform .2s;
}
.burger:hover{transform:rotate(0)}
.burger span{display:block;height:3px;border-radius:2px;background:var(--ink)}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:5px 12px;
  color:var(--cream);
  text-decoration:none;
  border:2px dashed transparent;
  border-radius:999px;
}
.brand:hover{border-color:var(--green);color:var(--green)}
.brand-logo{display:block;width:32px;height:32px;border-radius:10px}
.brand-txt{font-weight:900;font-size:18px;letter-spacing:.08em;white-space:nowrap}

.search{
  display:flex;
  align-items:stretch;
  min-height:44px;
  background:rgba(255,255,255,.06);
  border:2px dashed var(--line);
  border-radius:999px;
  overflow:hidden;
}
.search input{
  width:124px;
  min-width:0;
  padding:8px 14px;
  border:0;
  background:transparent;
  color:var(--cream);
  font:inherit;
  font-size:15px;
}
.search input:focus{outline:none}
.search button{
  border:0;
  padding:0 14px;
  min-height:44px;
  background:var(--yellow);
  color:var(--ink);
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

/* 抽屉 */
.drawer{
  position:fixed;
  inset:0;
  z-index:60;
  overflow:auto;
  padding:16px clamp(14px,5vw,44px) 56px;
  background:var(--ink-2);
  background-image:repeating-linear-gradient(45deg,rgba(135,255,113,.06) 0 2px,transparent 2px 14px);
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease,visibility .25s;
}
.drawer.open{opacity:1;visibility:visible}

.dhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:3px dashed var(--line);
}
.dtitle{font-weight:900;font-size:19px;letter-spacing:.08em}
.dclose{
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:var(--yellow);
  color:var(--ink);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.ds{margin-top:18px;max-width:440px;border-radius:14px}
.ds input{flex:1;width:auto;font-size:16px}

.dnav{display:grid;gap:6px;margin-top:22px;max-width:560px}
.dnav a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:12px 16px;
  font-size:21px;
  font-weight:800;
  color:var(--cream);
  text-decoration:none;
  border:2px dashed rgba(135,255,113,.24);
  border-radius:14px;
}
.dnav a:nth-child(even){transform:rotate(-.7deg)}
.dnav a:hover{background:var(--green);color:var(--ink)}
.drawer.open .dnav a{animation:rise .4s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0)*55ms)}

/* 主区 */
main{position:relative;z-index:1}

.hero{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"t f" "l l";
  align-items:center;
  justify-items:center;
  gap:18px 24px;
  max-width:1120px;
  min-height:70vh;
  margin:0 auto;
  padding:clamp(26px,6vw,60px) clamp(16px,4vw,28px);
  text-align:center;
}
.hero h1{
  grid-area:t;
  margin:0;
  font-size:clamp(1.95rem,5.6vw,3.5rem);
  font-weight:900;
  line-height:1.14;
  letter-spacing:.005em;
}
.hero .lede{
  grid-area:l;
  margin:0;
  max-width:46ch;
  color:#cfe3c5;
  font-size:1.02rem;
}
.art{
  grid-area:f;
  width:clamp(92px,19vw,148px);
  margin:0;
}
.art svg{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 22px rgba(0,0,0,.45))}

.body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  align-items:start;
  gap:clamp(20px,3vw,36px);
  max-width:1120px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,28px) clamp(40px,7vw,76px);
}

/* 正文 */
.prose{min-width:0}
.prose > article{
  margin-bottom:34px;
  padding-bottom:34px;
  border-bottom:2px dashed rgba(135,255,113,.16);
  scroll-margin-top:112px;
}
.prose > article:last-child{margin-bottom:0;border-bottom:0;padding-bottom:0}
.js .prose > article{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.js .prose > article.in{opacity:1;transform:none}

.prose h1,.prose h2{
  margin:.35rem 0 .85rem;
  font-size:clamp(1.42rem,3.4vw,1.98rem);
  font-weight:900;
  line-height:1.22;
}
.prose h3{margin:1.5rem 0 .6rem;font-size:1.18rem;font-weight:800;color:var(--yellow)}
.prose h2::before{
  content:"";
  display:inline-block;
  width:13px;
  height:13px;
  margin-right:10px;
  background:var(--green);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:translateY(-2px);
}
.prose small{display:block;margin-bottom:2px;color:var(--yellow);font-size:.78rem;font-weight:800;letter-spacing:.16em}
.prose p{margin:0 0 1.05em}
.prose a{color:var(--green);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.prose a:hover{color:var(--yellow)}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.3em}
.prose li{margin:.34em 0}
.prose li::marker{color:var(--green)}
.prose strong{color:var(--yellow)}
.prose img{max-width:100%;height:auto;border-radius:var(--r);border:3px solid rgba(135,255,113,.28)}
.prose figure{margin:1.2em 0}
.prose blockquote{
  margin:1.2em 0;
  padding:14px 18px;
  background:rgba(255,206,92,.09);
  border-left:6px solid var(--yellow);
  border-radius:0 var(--r) var(--r) 0;
}
.prose blockquote p:last-child{margin:0}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th,.prose td{padding:9px 11px;text-align:left;border:2px dashed rgba(135,255,113,.24)}

/* 侧栏 */
.rail{
  position:sticky;
  top:92px;
  padding:16px 18px;
  background:rgba(255,255,255,.045);
  border:2px dashed rgba(255,206,92,.42);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}
.rail small{
  display:inline-block;
  padding:3px 9px;
  background:var(--yellow);
  color:var(--ink);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.18em;
  border-radius:6px;
  transform:rotate(-2deg);
}
.rail h2{margin:10px 0 12px;font-size:1.12rem;font-weight:900}
.rail ul{list-style:none;margin:0;padding:0;display:grid;gap:1px}
.rail a{
  display:block;
  padding:11px 0;
  min-height:44px;
  font-size:.95rem;
  color:var(--cream);
  text-decoration:none;
  border-bottom:1px dotted rgba(135,255,113,.24);
  transition:color .16s,padding-left .16s;
}
.rail a:hover{color:var(--green);padding-left:6px}

/* 页脚 */
footer{
  margin-top:auto;
  padding:clamp(28px,5vw,52px) clamp(16px,4vw,28px) 18px;
  background:var(--ink-2);
  border-top:4px solid var(--green);
}

.foot-top{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
  align-items:start;
  max-width:1120px;
  margin:0 auto 28px;
}
.fbrand{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:1.1rem;font-weight:900}
.fbrand p{width:100%;margin:0;font-size:.95rem;font-weight:400;line-height:1.62;color:#bccfb2}

.sub{display:flex;flex-wrap:wrap;gap:8px}
.sub input{
  flex:1 1 150px;
  min-width:0;
  min-height:48px;
  padding:12px 14px;
  border:2px solid rgba(135,255,113,.35);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:var(--cream);
  font:inherit;
  font-size:16px;
}
.sub input:focus{outline:none;border-color:var(--green)}
.sub button{
  min-height:48px;
  padding:12px 22px;
  border:0;
  border-radius:12px;
  background:var(--green);
  color:var(--ink);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}

.foot-navwrap{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  max-width:1120px;
  margin:0 auto;
  padding-top:22px;
  border-top:2px dashed rgba(135,255,113,.2);
}
.foot-nav{display:contents}
.foot-nav dl{margin:0}
.foot-nav dt{margin-bottom:6px;color:var(--yellow);font-size:.95rem;font-weight:900}
.foot-nav dd{margin:0}
.foot-nav a{
  display:inline-block;
  min-height:44px;
  padding:10px 0;
  font-size:.95rem;
  color:var(--cream);
  text-decoration:none;
}
.foot-nav a:hover{color:var(--green);text-decoration:underline;text-underline-offset:3px}

.copy{
  max-width:1120px;
  margin:26px auto 0;
  padding-top:14px;
  border-top:2px dashed rgba(135,255,113,.18);
  font-size:.85rem;
  color:#a9bda1;
}

@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

@media (max-width:1060px){
  .side nav{display:none}
  .body{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
  .prose > article{scroll-margin-top:96px}
}

@media (max-width:860px){
  .side-r{display:none}
  .foot-top{grid-template-columns:1fr}
}

@media (max-width:720px){
  body{font-size:16px}
  .hero{
    grid-template-columns:1fr;
    grid-template-areas:"f" "t" "l";
    min-height:0;
    padding-top:26px;
    gap:14px;
  }
  .art{width:84px}
  .foot-navwrap{grid-template-columns:1fr 1fr;gap:12px}
  .dnav a{font-size:19px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .js .prose > article{opacity:1;transform:none}
}

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