:root{
  --ink:#192617;
  --ink-soft:#213122;
  --lime:#87ff71;
  --sun:#ffce5c;
  --paper:#eafae1;
  --line:rgba(135,255,113,.28);
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:'IBM Plex Sans',system-ui,-apple-system,'Noto Sans SC','PingFang SC',sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;max-width:100%}
body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  color:#e9f9e0;
  background-color:var(--ink);
  background-image:
    repeating-linear-gradient(90deg,rgba(135,255,113,.055) 0 1px,transparent 1px 46px),
    repeating-linear-gradient(0deg,rgba(135,255,113,.055) 0 1px,transparent 1px 46px),
    radial-gradient(rgba(255,206,92,.12) 1.4px,transparent 1.5px);
  background-size:auto,auto,22px 22px;
  overflow-x:hidden;
  max-width:100%;
}
a{color:var(--sun)}
img{max-width:100%;height:auto}
p{margin:0 0 1.1em}
::selection{background:var(--lime);color:var(--ink)}

/* ---------- 顶部细条 ---------- */
.ticker{
  background:var(--sun);
  color:var(--ink);
  border-bottom:3px solid var(--ink);
  overflow:hidden;
  width:100%;
  max-width:100%;
  height:34px;
  display:flex;
  align-items:center;
}
.ticker-run{
  flex:0 0 auto;
  min-width:0;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.14em;
  white-space:nowrap;
  padding-left:100%;
  animation:run 26s linear infinite;
}
@keyframes run{from{transform:translateX(0)}to{transform:translateX(-100%)}}

/* ---------- 头部三栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--ink);
  border-bottom:3px solid var(--lime);
  max-width:100%;
}
.bar{
  max-width:1180px;
  margin:0 auto;
  padding:12px 20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:14px;
}
.bar nav{min-width:0}
.bar nav ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 6px;
  min-width:0;
}
.bar nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 9px;
  font-family:var(--mono);
  font-size:13.5px;
  letter-spacing:.04em;
  color:var(--paper);
  text-decoration:none;
  border-radius:14px;
  border:2px solid transparent;
  white-space:nowrap;
}
.bar nav a:hover,.bar nav a:focus-visible{
  color:var(--ink);
  background:var(--lime);
  border-color:var(--lime);
  outline:none;
}
.nav-a ol{justify-content:flex-end}
.nav-b ol{justify-content:flex-start}
.brand{
  font-family:var(--mono);
  font-weight:700;
  font-size:clamp(1rem,2.4vw,1.3rem);
  letter-spacing:.1em;
  color:var(--lime);
  text-decoration:none;
  padding:8px 14px;
  border:3px solid var(--lime);
  border-radius:16px;
  transform:rotate(-2deg);
  white-space:nowrap;
  min-width:0;
}
.brand:hover{background:var(--lime);color:var(--ink)}

/* ---------- 英雄区 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:calc(100svh - 110px);
  max-width:1180px;
  margin:0 auto;
  padding:34px 20px 0;
  display:flex;
  flex-direction:column;
}
.hero::before{
  content:"";
  position:absolute;
  top:12%;
  right:4%;
  width:clamp(74px,17vw,168px);
  aspect-ratio:1;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(13deg);
  opacity:.85;
  pointer-events:none;
  animation:tilt 9s ease-in-out infinite alternate;
}
.hero::after{
  content:"";
  position:absolute;
  bottom:26%;
  left:2%;
  width:clamp(52px,11vw,110px);
  aspect-ratio:1;
  border:10px solid var(--sun);
  border-radius:50%;
  opacity:.65;
  pointer-events:none;
}
@keyframes tilt{from{transform:rotate(9deg)}to{transform:rotate(19deg)}}
.badge{
  position:absolute;
  top:26px;
  right:22px;
  margin:0;
  z-index:2;
  max-width:calc(100% - 44px);
  background:var(--sun);
  color:var(--ink);
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.12em;
  padding:8px 14px;
  border:3px solid var(--ink);
  border-radius:28px;
  transform:rotate(4deg);
  animation:bob 5s ease-in-out infinite alternate;
}
@keyframes bob{from{transform:rotate(4deg) translateY(0)}to{transform:rotate(4deg) translateY(-9px)}}
.hero-copy{
  position:relative;
  z-index:2;
  max-width:22ch;
  min-width:0;
  padding-top:56px;
}
.hero-copy h1{
  margin:0 0 .5em;
  font-size:clamp(2.1rem,8.4vw,4.4rem);
  line-height:1.24;
  letter-spacing:-.02em;
  color:var(--lime);
  overflow-wrap:break-word;
}
.lede{
  max-width:34ch;
  min-width:0;
  font-size:1rem;
  line-height:1.75;
  color:#cbe9bf;
  margin:0;
  overflow-wrap:break-word;
}
.hero-art{
  flex:1;
  min-width:0;
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px 0 0;
  will-change:transform;
}
.hero-art .art{
  width:auto;
  height:auto;
  max-width:min(100%,460px);
  max-height:38vh;
  object-fit:contain;
  border:3px solid var(--lime);
  border-radius:28px;
  background:var(--ink-soft);
}
.hero-cut{
  height:0;
  border-bottom:3px dashed rgba(255,206,92,.55);
  margin-bottom:0;
}

/* ---------- 主区 ---------- */
.layout{
  max-width:1180px;
  margin:0 auto;
  padding:46px 20px 30px;
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  gap:38px;
  align-items:start;
}
.layout > *{min-width:0}
.side{
  position:sticky;
  top:114px;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  border-right:2px dashed var(--line);
  padding-right:18px;
}
.side h2{
  margin:0;
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:.22em;
  color:var(--sun);
  text-transform:uppercase;
}
.side hr{
  border:0;
  border-top:2px dotted rgba(255,206,92,.6);
  margin:10px 0 16px;
}
.side-nav{min-width:0;max-width:100%}
.side-nav ol{
  list-style:none;
  margin:0;
  padding:0;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.side-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:15px;
  line-height:1.4;
  color:var(--paper);
  text-decoration:none;
  border:2px solid rgba(135,255,113,.42);
  border-radius:18px;
  background:rgba(135,255,113,.05);
}
.side-nav a:hover,.side-nav a:focus-visible{
  background:var(--lime);
  color:var(--ink);
  border-color:var(--lime);
  outline:none;
}
.side-nav li{
  animation:slide .5s ease both;
}
.side-nav li:nth-child(2){animation-delay:.05s}
.side-nav li:nth-child(3){animation-delay:.1s}
.side-nav li:nth-child(4){animation-delay:.15s}
.side-nav li:nth-child(5){animation-delay:.2s}
.side-nav li:nth-child(6){animation-delay:.25s}
.side-nav li:nth-child(7){animation-delay:.3s}
@keyframes slide{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

main{min-width:0;max-width:100%}
.wrap{min-width:0;max-width:100%}
.body{min-width:0;max-width:100%}

/* ---------- 正文 ---------- */
section{
  max-width:70ch;
  min-width:0;
  font-size:17px;
  line-height:1.78;
  overflow-wrap:break-word;
  word-break:break-word;
}
section div{
  border-top:2px dashed rgba(135,255,113,.2);
  padding-top:26px;
  margin-bottom:52px;
  scroll-margin-top:126px;
}
section div:first-child{
  border-top:0;
  padding-top:0;
}
section h2{
  margin:1.5em 0 .35em;
  font-size:clamp(1.45rem,4.4vw,2rem);
  line-height:1.3;
  letter-spacing:-.01em;
  color:var(--lime);
}
section h2::before{
  content:"";
  display:inline-block;
  width:.5em;
  height:.5em;
  margin-right:.45em;
  background:var(--sun);
  transform:rotate(45deg);
  vertical-align:middle;
}
section h2:first-child{margin-top:0}
section h3{
  margin:1.4em 0 .3em;
  font-size:1.15rem;
  line-height:1.4;
  color:var(--sun);
}
section hr{
  border:0;
  border-top:2px dotted rgba(255,206,92,.5);
  margin:14px 0 26px;
}
section a{
  color:var(--sun);
  text-decoration:none;
  border-bottom:3px solid rgba(255,206,92,.55);
  padding-bottom:1px;
  overflow-wrap:break-word;
}
section a:hover{border-bottom-color:var(--lime);color:var(--lime)}
section ul,section ol{padding-left:1.3em;margin:0 0 1.2em}
section li{margin-bottom:.5em}
section blockquote{
  margin:1.6em 0;
  padding:.7em 1.2em;
  border-left:6px solid var(--sun);
  background:rgba(255,206,92,.07);
  border-radius:0 22px 22px 0;
  color:#e6f8db;
}
section blockquote p:last-child{margin-bottom:0}
section img{
  max-width:100%;
  height:auto;
  border:2px solid var(--lime);
  border-radius:22px;
  margin:8px 0;
}
section table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:1.4em 0;
  font-size:15.5px;
}
section th,section td{
  border:2px solid rgba(135,255,113,.32);
  padding:9px 11px;
  text-align:left;
}
section th{background:rgba(135,255,113,.1);color:var(--lime)}
section pre{
  max-width:100%;
  overflow-x:auto;
  margin:1.4em 0;
  padding:14px 16px;
  border:2px dashed rgba(135,255,113,.35);
  border-radius:18px;
  background:rgba(135,255,113,.06);
}
section code{
  font-family:var(--mono);
  font-size:.92em;
  background:rgba(255,206,92,.14);
  padding:2px 6px;
  border-radius:8px;
  overflow-wrap:break-word;
}
section pre code{background:none;padding:0}
section strong{color:var(--sun)}

/* ---------- 页脚 ---------- */
.bot{
  max-width:1180px;
  margin:24px auto 0;
  padding:48px 20px 44px;
  border-top:3px solid var(--lime);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
}
.bot > *{min-width:0}
.f-brand a{
  display:inline-block;
  font-family:var(--mono);
  font-weight:700;
  font-size:clamp(1.55rem,4.4vw,2.6rem);
  letter-spacing:-.02em;
  line-height:1.15;
  color:var(--lime);
  text-decoration:none;
  transform:rotate(-1.5deg);
}
.f-brand a:hover{color:var(--sun)}
.f-nav{min-width:0}
.f-nav ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 8px;
  justify-content:center;
}
.f-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 7px;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.04em;
  color:#c8e6bd;
  text-decoration:none;
  border-radius:12px;
  white-space:nowrap;
}
.f-nav a:hover,.f-nav a:focus-visible{background:var(--sun);color:var(--ink);outline:none}
.f-copy{text-align:right}
.f-copy p{
  margin:0;
  font-size:13px;
  font-family:var(--mono);
  color:#9fc195;
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .top{position:static}
  .bar{
    grid-template-columns:minmax(0,1fr);
    padding:12px 14px;
    gap:8px;
    justify-items:center;
  }
  .brand{order:-1}
  .bar nav{width:100%}
  .bar nav ol{justify-content:center;gap:2px 4px}
  .bar nav a{font-size:13px;padding:0 7px;min-height:44px}
  .hero{min-height:auto;padding-top:24px}
  .hero-copy{padding-top:56px;max-width:14em}
  .hero-art{padding:22px 0 6px}
  .hero-art .art{max-height:30vh}
  .layout{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding:32px 16px 20px;
  }
  .side{
    position:static;
    border-right:0;
    border-bottom:2px dashed var(--line);
    padding:0 0 14px;
  }
  .side-nav ol{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
  }
  .side-nav li{flex:0 0 auto}
  .side-nav a{white-space:nowrap;font-size:14px}
  section{font-size:16.5px}
  .bot{
    grid-template-columns:minmax(0,1fr);
    justify-items:center;
    text-align:center;
    padding:38px 18px 36px;
    gap:16px;
  }
  .f-copy{text-align:center}
  .f-copy p{white-space:normal}
}
@media (max-width:420px){
  .badge{position:static;display:inline-block;margin-bottom:14px;max-width:100%}
  .hero-copy{padding-top:18px;max-width:100%}
  .band{padding-left:14px;padding-right:14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ticker-run,.hero::before,.badge,.side-nav li{animation:none}
  .hero-art{transform:none!important}
}

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