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

:root{
  --ink:#192617;
  --ink-2:#101c0f;
  --neon:#87ff71;
  --lemon:#ffce5c;
  --cream:#e9f9df;
  --bar:34px;
  --rail:190px;
  --r:28px;
  --serif:"Playfair Display",Georgia,"Songti SC","SimSun",serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  padding:var(--bar) 0 0 var(--rail);
  background:
    radial-gradient(rgba(135,255,113,.09) 1px, transparent 1px) 0 0/26px 26px,
    var(--ink);
  color:var(--cream);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{color:var(--neon)}

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

img{max-width:100%}

/* 顶部细条 */
.ticker{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--bar);
  z-index:70;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 16px;
  background:var(--neon);
  color:var(--ink);
  font-size:13px;
  letter-spacing:.18em;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
}
.ticker i{
  width:8px;height:8px;flex:none;
  background:var(--ink);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}

/* 左侧竖排导航 */
.rail{
  position:fixed;
  left:0;top:var(--bar);bottom:0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:14px 12px 26px;
  background:var(--ink-2);
  border-right:2px dashed rgba(135,255,113,.32);
  overflow-y:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:4px 2px;
  text-decoration:none;
  color:var(--cream);
}
.brand-mark{
  width:40px;height:40px;flex:none;
  border-radius:12px;
  background:var(--neon);
  color:var(--ink);
  display:grid;
  place-items:center;
  object-fit:cover;
  font-family:var(--serif);
  font-size:21px;
  font-weight:700;
  transform:rotate(-6deg);
}
.brand-name{
  font-family:var(--serif);
  font-size:14px;
  line-height:1.25;
  overflow-wrap:break-word;
  min-width:0;
}

.menu{position:relative}
.menu summary{
  list-style:none;
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  background:var(--lemon);
  color:var(--ink);
  font-weight:700;
  font-size:15px;
  letter-spacing:.16em;
}
.menu summary::-webkit-details-marker{display:none}
.menu summary::after{
  content:"";
  width:9px;height:9px;
  margin-left:8px;
  border-right:3px solid var(--ink);
  border-bottom:3px solid var(--ink);
  transform:rotate(45deg) translateY(-2px);
}
.menu[open] summary::after{transform:rotate(-135deg) translateY(-2px)}

.menu menu{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.menu menu a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 14px;
  border-radius:999px;
  border:2px solid rgba(135,255,113,.4);
  color:var(--cream);
  text-decoration:none;
  font-size:15px;
  line-height:1.35;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.menu menu a:hover,.menu menu a:focus-visible{
  background:var(--neon);
  border-color:var(--neon);
  color:var(--ink);
}

/* 主体 */
main{padding-bottom:8px;min-width:0}

.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:24px;
  padding:42px 20px 34px;
  text-align:center;
  background-image:radial-gradient(rgba(135,255,113,.24) 1.5px, transparent 1.5px);
  background-size:20px 20px;
}
.hero::before{
  content:"";
  position:absolute;
  width:220px;height:220px;
  left:-70px;top:10px;
  background:var(--lemon);
  opacity:.16;
  border-radius:50%;
  mix-blend-mode:screen;
}
.hero h1{
  position:relative;
  margin:0;
  max-width:17em;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2rem,6.2vw,4.3rem);
  line-height:1.1;
  overflow-wrap:break-word;
  text-shadow:5px 5px 0 rgba(135,255,113,.2);
}

.art{
  position:relative;
  margin:0;
  width:min(620px,100%);
  aspect-ratio:16/7;
  border-radius:var(--r);
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(118deg,var(--neon),var(--lemon) 72%);
}
.art .hero-img{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:1;
}
.art .sh{position:absolute;z-index:2;mix-blend-mode:multiply}
.sh-tri{
  width:84px;height:84px;
  left:14px;bottom:12px;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-12deg);
}
.sh-ring{
  width:66px;height:66px;
  right:26px;top:16px;
  border:10px solid var(--ink);
  border-radius:50%;
  opacity:.85;
}
.sh-dots{
  width:112px;height:56px;
  right:18px;bottom:16px;
  background-image:radial-gradient(var(--ink) 2px,transparent 2px);
  background-size:14px 14px;
  opacity:.7;
}
.squig{
  position:absolute;
  z-index:2;
  width:190px;
  left:50%;top:50%;
  transform:translate(-50%,-50%) rotate(-6deg);
  mix-blend-mode:multiply;
  opacity:.9;
}

/* 内容区：aside 在左 */
.shell{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:26px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:26px 24px 0;
}
.shell > *{min-width:0}

.jump{
  position:sticky;
  top:calc(var(--bar) + 18px);
  min-width:0;
  padding:4px 0 4px 14px;
  border-left:3px dashed rgba(255,206,92,.55);
}
.jump-t{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.26em;
  color:var(--lemon);
}
.jump ul{
  list-style:none;
  margin:0;
  padding:0;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.jump li{flex:none}
.jump a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:#223a23;
  border:1px dashed rgba(135,255,113,.32);
  color:var(--cream);
  text-decoration:none;
  font-size:14.5px;
  line-height:1.35;
  transition:background .18s ease,color .18s ease;
}
.jump a:hover,.jump a:focus-visible{background:var(--neon);color:var(--ink)}

.prose{
  min-width:0;
  max-width:820px;
}

.prose > article{
  --bg:#213522;
  --fg:#e6f7dc;
  --lk:#a6ff92;
  background:var(--bg);
  color:var(--fg);
  border-radius:var(--r);
  padding:26px 22px;
  margin:0 0 24px;
  overflow-wrap:break-word;
  scroll-margin-top:calc(var(--bar) + 26px);
}
.prose > article:nth-of-type(even){
  --bg:var(--lemon);
  --fg:#152012;
  --lk:#0d3613;
}

.prose h2{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.5rem,3.4vw,2.1rem);
  line-height:1.26;
  margin:.1em 0 .55em;
  overflow-wrap:break-word;
}
.prose h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.2rem,2.6vw,1.45rem);
  line-height:1.32;
  margin:1.1em 0 .5em;
  overflow-wrap:break-word;
}
.prose p{margin:0 0 1.05em}
.prose p:last-child,.prose ul:last-child,.prose ol:last-child{margin-bottom:0}
.prose a{
  color:var(--lk);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.prose a:hover{text-decoration-style:solid}
.prose ul,.prose ol{padding-left:1.15em;margin:0 0 1.05em}
.prose li{margin:.25em 0}
.prose img{border-radius:18px;display:block;height:auto;max-width:100%}
.prose figure{margin:1em 0;max-width:100%}
.prose figcaption{font-size:14px;opacity:.8;margin-top:8px}
.prose blockquote{
  margin:1.1em 0;
  padding:14px 18px;
  border-left:6px solid var(--lemon);
  border-radius:0 18px 18px 0;
  background:rgba(0,0,0,.2);
  font-style:normal;
}
.prose hr{
  border:0;
  height:4px;
  width:76px;
  margin:0 0 1.1em;
  border-radius:2px;
  background:repeating-linear-gradient(90deg,currentColor 0 12px,transparent 12px 21px);
  opacity:.55;
}
.prose pre{
  max-width:100%;
  overflow-x:auto;
  margin:0 0 1.1em;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(0,0,0,.35);
  font-size:15px;
  line-height:1.6;
}
.prose code{overflow-wrap:anywhere}
.prose table{
  display:block;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:15.5px;
  margin:0 0 1.1em;
}
.prose th,.prose td{
  border:1px dashed rgba(135,255,113,.45);
  padding:9px 11px;
  text-align:left;
}
.prose > article:nth-of-type(even) th,
.prose > article:nth-of-type(even) td{border-color:rgba(21,32,18,.45)}

/* 页脚 */
footer{
  margin-top:48px;
  padding:40px 24px 26px;
  border-top:3px dashed rgba(135,255,113,.34);
  min-width:0;
}
.foot-in{max-width:1180px;margin:0 auto;min-width:0}
.foot-big{
  margin:0 0 26px;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2rem,9vw,4.8rem);
  line-height:1;
  color:var(--neon);
  word-break:break-word;
  overflow-wrap:anywhere;
}
.cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:0 0 26px;
}
.cols dl{margin:0;min-width:0}
.cols dt{
  font-size:13px;
  letter-spacing:.22em;
  color:var(--lemon);
  margin-bottom:4px;
}
.cols dd{margin:0}
.cols a{
  display:flex;
  align-items:center;
  min-height:40px;
  color:var(--cream);
  text-decoration:none;
  font-size:15px;
  line-height:1.35;
  overflow-wrap:break-word;
}
.cols a:hover{color:var(--neon);text-decoration:underline dotted}
.base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:16px;
  border-top:1px solid rgba(233,249,223,.18);
  font-size:14px;
}
.base a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  background:var(--lemon);
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
}
.base a:hover{background:var(--neon)}

/* 动效 */
.rv{opacity:0;transform:translateY(22px)}
.rv.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.8,.3,1);
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
}

/* 移动端 */
@media (max-width:900px){
  :root{--bar:0px;--rail:0px}
  body{padding:70px 0 0}
  .ticker{display:none}
  .rail{
    top:0;bottom:auto;
    width:100%;height:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 14px;
    border-right:0;
    border-bottom:2px dashed rgba(135,255,113,.32);
    overflow:visible;
  }
  .brand-name{font-size:13px}
  .menu{position:static}
  .menu menu{
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    width:min(76vw,250px);
    margin:0;
    padding:10px;
    background:#16260f;
    border:2px dashed var(--neon);
    border-radius:22px;
    box-shadow:0 18px 40px rgba(0,0,0,.55);
    z-index:80;
  }
  .hero{min-height:0;padding:30px 16px 26px}
  .shell{
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    padding:20px 16px 0;
  }
  .jump{
    position:static;
    border-left:0;
    border-top:2px dashed rgba(255,206,92,.45);
    padding:12px 0 0;
  }
  .jump ul{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  .jump a{white-space:nowrap}
  .prose{max-width:none}
  .prose > article{padding:22px 16px;scroll-margin-top:84px}
  .cols{grid-template-columns:minmax(0,1fr);gap:14px}
  footer{padding:34px 16px 22px}
}

@media (max-width:400px){
  .art{aspect-ratio:16/9}
  .squig{width:140px}
  .hero h1{font-size:clamp(1.85rem,8.6vw,2.4rem)}
  .prose > article{padding:20px 14px}
}

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