:root{
  --ink:#192617;
  --deep:#101b0f;
  --neon:#87ff71;
  --mustard:#ffce5c;
  --paper:#eef7ea;
  --dash:rgba(255,206,92,.5);
  --rail:128px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--paper);
  background-color:var(--ink);
  background-image:radial-gradient(rgba(255,206,92,.13) 1px,transparent 1px);
  background-size:26px 26px;
  overflow-x:hidden;
}
img{max-width:100%}
a{color:var(--neon)}

/* ---- 左侧竖排栏 ---- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 10px 26px;
  background:var(--deep);
  border-right:3px solid var(--neon);
  z-index:30;
}
.rail::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:14px;
  width:26px;
  height:24px;
  margin-left:-13px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
  opacity:.85;
}
.brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0 auto;
  overflow:hidden;
  background:var(--ink);
  border:2px dashed var(--mustard);
  border-radius:4px;
  transform:rotate(-5deg);
  text-decoration:none;
  transition:transform .2s ease;
}
.brand:hover{transform:rotate(0) scale(1.07)}
.brand img{width:100%;height:100%;object-fit:cover;display:block}
.mark-fallback{
  font-family:'Bebas Neue','Source Sans 3',sans-serif;
  font-size:24px;
  letter-spacing:.06em;
  color:var(--neon);
}
.rail-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
.rail-nav ol{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
  padding:0;
}
.rail-nav li{
  opacity:0;
  transform:translateX(-10px);
  animation:railIn .45s ease forwards;
}
.rail-nav li:nth-child(2){animation-delay:.05s}
.rail-nav li:nth-child(3){animation-delay:.1s}
.rail-nav li:nth-child(4){animation-delay:.15s}
.rail-nav li:nth-child(5){animation-delay:.2s}
.rail-nav li:nth-child(6){animation-delay:.25s}
.rail-nav li:nth-child(7){animation-delay:.3s}
@keyframes railIn{to{opacity:1;transform:none}}
.rail-nav a{
  display:block;
  padding:11px 8px;
  font-size:16px;
  line-height:1.35;
  color:var(--paper);
  text-decoration:none;
  border-left:3px solid transparent;
  border-radius:0 4px 4px 0;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.rail-nav a:hover,
.rail-nav a[aria-current]{
  background:var(--neon);
  color:#0f1a0e;
  border-left-color:var(--mustard);
  transform:translateX(2px);
}

/* ---- 主区 ---- */
.stage{margin-left:var(--rail);padding:0 clamp(18px,4vw,52px)}
.post{max-width:820px;margin:0 auto;padding-bottom:60px}

.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
  gap:clamp(20px,4vw,54px);
  padding:clamp(30px,6vh,74px) 0;
}
.hero-txt{text-align:center}
.badge{
  display:inline-block;
  margin:0 0 20px;
  padding:6px 15px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  color:#241f0b;
  background:var(--mustard);
  border:3px solid #0d1508;
  border-radius:4px;
  transform:rotate(-3deg);
}
.hero-h1{
  margin:0;
  font-size:clamp(2.3rem,7.6vw,5.2rem);
  line-height:1.04;
  letter-spacing:.045em;
  font-weight:700;
  color:var(--neon);
  text-shadow:4px 4px 0 rgba(255,206,92,.85);
  overflow-wrap:anywhere;
}
.hero-lead{
  max-width:44ch;
  margin:20px auto 0;
  color:rgba(238,247,234,.85);
}
.hero-art{
  position:relative;
  min-height:320px;
  border:3px solid var(--neon);
  border-bottom:8px solid var(--mustard);
  border-radius:4px;
  background:repeating-linear-gradient(-45deg,rgba(135,255,113,.12) 0 12px,transparent 12px 24px);
}
.hero-art .hero-img{
  display:block;
  width:100%;
  height:100%;
  min-height:320px;
  max-height:62vh;
  object-fit:cover;
  border-radius:2px;
}
.hero-art.is-empty{min-height:300px}
.shape{position:absolute;pointer-events:none}
.tri{
  top:-16px;
  right:14px;
  width:76px;
  height:64px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(7deg);
  opacity:.92;
}
.zig{
  left:-16px;
  bottom:28px;
  width:124px;
  height:16px;
  background-image:radial-gradient(circle at 10px 16px,var(--neon) 9px,transparent 10px);
  background-size:20px 16px;
  background-repeat:repeat-x;
}

/* ---- 正文 ---- */
div{scroll-margin-top:96px}
.post > div:not(.hero){
  margin-top:44px;
  padding-top:34px;
  border-top:2px dashed var(--dash);
}
.post h2{
  position:relative;
  margin:0 0 .65em;
  font-size:clamp(1.45rem,2.7vw,1.95rem);
  line-height:1.3;
  color:var(--neon);
  letter-spacing:.02em;
}
.post h2::before{
  content:"";
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:10px;
  vertical-align:2px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-5deg);
}
.post h2 span{display:inline}
.post h2 span span{
  display:inline-block;
  width:9px;
  height:9px;
  margin-left:8px;
  vertical-align:6px;
  background:var(--mustard);
  border-radius:50%;
}
.post h3{
  margin:1.4em 0 .5em;
  font-size:1.18rem;
  color:var(--mustard);
}
.post p{margin:0 0 1em}
.post ul,.post ol{margin:0 0 1.1em;padding-left:1.3em}
.post li{margin:0 0 .45em}
.post li::marker{color:var(--mustard)}
.post a{color:var(--neon);text-decoration:underline dashed;text-underline-offset:3px}
.post a:hover{background:rgba(135,255,113,.16)}
.post blockquote{
  margin:1.2em 0;
  padding:14px 18px;
  border-left:5px solid var(--mustard);
  border-radius:0 4px 4px 0;
  background:rgba(255,206,92,.09);
}
.post blockquote p:last-child{margin:0}
.post strong{color:var(--mustard)}
.post img{border-radius:4px;border-bottom:4px solid var(--neon)}

/* ---- 页脚 ---- */
.base{
  margin-left:var(--rail);
  padding:clamp(28px,5vw,56px) clamp(18px,4vw,52px) 26px;
  background:var(--deep);
  border-top:4px solid var(--mustard);
}
.base > *{max-width:820px;margin-left:auto;margin-right:auto}
.cta{margin-bottom:34px}
.cta-h{
  margin:0 0 18px;
  font-size:clamp(1.5rem,4vw,2.5rem);
  line-height:1.15;
  letter-spacing:.04em;
  color:#fff;
}
.cta-h span{color:var(--neon)}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 26px;
  font-weight:700;
  color:#0f1a0e;
  background:var(--neon);
  border:3px solid #0d1508;
  border-radius:4px;
  text-decoration:none;
  transform:rotate(-1.5deg);
  transition:transform .18s ease,background .18s ease;
}
.cta-btn:hover{transform:rotate(0) scale(1.04);background:var(--mustard)}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:0 0 26px;
}
.foot-cols dl{margin:0;padding-left:14px;border-left:2px dashed var(--dash)}
.foot-cols dt{margin-bottom:6px;font-size:16px;font-weight:700;letter-spacing:.08em;color:var(--mustard)}
.foot-cols dd{margin:0}
.foot-cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .16s ease,border-color .16s ease;
}
.foot-cols dd a:hover{color:var(--neon);border-bottom-color:var(--neon)}
.copy{
  margin:0;
  padding-top:16px;
  font-size:16px;
  color:rgba(238,247,234,.62);
  border-top:1px solid rgba(135,255,113,.22);
}

@media (max-width:860px){
  .rail{
    inset:0 0 auto 0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:3px solid var(--neon);
  }
  .rail::after{display:none}
  .brand{width:44px;height:44px;margin:0;transform:none}
  .rail-nav{overflow-x:auto;overflow-y:hidden}
  .rail-nav ol{flex-direction:row;gap:6px}
  .rail-nav li{transform:none;animation:none;opacity:1}
  .rail-nav a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    white-space:nowrap;
    border-left:0;
    border-bottom:3px solid transparent;
    border-radius:4px 4px 0 0;
  }
  .stage{margin-left:0;padding-top:72px}
  .post{padding-bottom:44px}
  .base{margin-left:0}
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:28px 0 8px;
    gap:24px;
  }
  .hero-h1{text-shadow:3px 3px 0 rgba(255,206,92,.85)}
  .hero-art{min-height:240px;height:44vh;order:-1}
  .hero-art .hero-img{min-height:240px;max-height:none;height:100%}
  .tri{width:54px;height:46px;top:-12px}
  .zig{width:96px;left:-10px;bottom:16px}
  .foot-cols{grid-template-columns:1fr;gap:10px}
  .foot-cols dl{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;padding-left:12px}
  .foot-cols dt{width:100%;margin-bottom:0}
  div{scroll-margin-top:84px}
}
@media (max-width:420px){
  .hero-h1{font-size:2.1rem}
  .badge{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  .rail-nav li{opacity:1;transform:none}
}

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