@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --lime:#80ff00;
  --neo:#00ff00;
  --ink:#1f2617;
  --deep:#141a10;
  --txt:#e8f5d9;
  --dim:#a8bd95;
  --line:rgba(128,255,0,.28);
  --card:rgba(0,0,0,.34);
  --r:10px;
  --shadow:0 16px 34px -20px rgba(0,0,0,.95),0 2px 0 rgba(128,255,0,.16);
  --font:"Be Vietnam Pro","Noto Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.68;
  color:var(--txt);
  background-color:var(--ink);
  background-image:
    radial-gradient(rgba(128,255,0,.16) 1px,transparent 1px),
    radial-gradient(rgba(0,255,0,.1) 1px,transparent 1px);
  background-size:16px 16px,29px 29px;
  background-position:0 0,8px 11px;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
::selection{background:var(--neo);color:#0a0f06}

:focus-visible{outline:3px solid var(--neo);outline-offset:3px}

/* ---------- 骨架 ---------- */
.app{
  display:grid;
  grid-template-columns:274px minmax(0,1fr);
  gap:26px;
  max-width:1380px;
  margin:0 auto;
  padding:26px 24px 128px;
}

.wrap{min-width:0;max-width:900px}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:22px;
  align-self:start;
  max-height:calc(100vh - 152px);
  overflow:auto;
  padding:16px 14px 22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
  scrollbar-width:thin;
}

.rail-pin{
  position:absolute;
  top:-9px;
  left:26px;
  width:58px;
  height:18px;
  background:var(--lime);
  opacity:.75;
  transform:rotate(-4deg);
  mix-blend-mode:screen;
  border-radius:2px;
}

.rail-tape{
  height:16px;
  margin-top:18px;
  border-radius:3px;
  background:repeating-linear-gradient(135deg,var(--lime) 0 8px,transparent 8px 16px);
  opacity:.5;
  transform:rotate(1.5deg);
}

.side-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin:0 0 12px;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.24em;
  color:var(--lime);
}

.side-title .spk{
  font-size:1.1rem;
  letter-spacing:0;
  color:var(--neo);
  animation:jitter 3.4s ease-in-out infinite;
}

.side-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.side-nav a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 11px;
  border:1px solid transparent;
  border-radius:var(--r);
  font-size:.95rem;
  line-height:1.35;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}

.side-nav .no{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--lime);
  opacity:.75;
  min-width:1.6em;
}

.side-nav a:hover,
.side-nav a.on{
  background:var(--lime);
  border-color:var(--neo);
  color:#101607;
  transform:translateX(2px) rotate(-.6deg);
}

.side-nav a:hover .no,
.side-nav a.on .no{color:#101607;opacity:1}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:center;
  gap:20px;
  padding:30px 0 46px;
}

.hero-copy{
  text-align:right;
  position:relative;
  z-index:2;
}

.kick{
  margin:0 0 14px;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.28em;
  color:var(--neo);
  text-transform:uppercase;
}

h1{
  margin:0;
  font-size:clamp(2rem,5.6vw,4.1rem);
  line-height:1.03;
  letter-spacing:-.02em;
  font-weight:700;
  color:var(--lime);
  text-shadow:3px 3px 0 rgba(0,0,0,.6),6px 6px 0 rgba(0,255,0,.16);
  word-break:break-word;
}

.hero-art{
  position:relative;
  height:100%;
  min-height:230px;
}

.art-inner{
  position:absolute;
  inset:0;
  will-change:transform;
}

.dots{
  position:absolute;
  left:2%;
  top:8%;
  width:min(58%,210px);
  aspect-ratio:1;
  border-radius:50%;
  background-image:radial-gradient(var(--lime) 2px,transparent 2px);
  background-size:13px 13px;
  filter:saturate(160%);
  opacity:.8;
  animation:spin 26s linear infinite;
}

.sticker{
  position:absolute;
  display:grid;
  place-items:center;
  font-size:1.5rem;
  color:#0d1308;
  background:var(--neo);
  border:2px solid #0d1308;
  border-radius:12px;
  box-shadow:5px 5px 0 rgba(0,0,0,.55);
}

.st1{left:38%;top:12%;width:74px;height:74px;transform:rotate(12deg)}
.st2{left:14%;bottom:16%;width:58px;height:58px;font-size:1.15rem;background:var(--lime);transform:rotate(-15deg);color:#0d1308}
.st3{right:6%;bottom:9%;width:46px;height:46px;font-size:1rem;background:#fff4d6;transform:rotate(8deg)}

.tape{
  position:absolute;
  left:24%;
  bottom:38%;
  width:130px;
  height:26px;
  background:rgba(128,255,0,.4);
  transform:rotate(-8deg);
  mix-blend-mode:screen;
  border-radius:2px;
}

.hero-img{
  position:absolute;
  right:2%;
  top:4%;
  width:min(46%,170px);
  border-radius:var(--r);
  border:2px solid var(--lime);
  transform:rotate(-5deg);
  box-shadow:6px 6px 0 rgba(0,0,0,.5);
}

.badge{
  position:absolute;
  right:0;
  top:6px;
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  border-radius:50%;
  background:var(--neo);
  color:#0d1308;
  font-size:1.4rem;
  border:2px solid #0d1308;
  transform:rotate(-13deg);
  box-shadow:4px 4px 0 rgba(0,0,0,.55);
  animation:jitter 5s ease-in-out infinite;
  z-index:3;
}

/* ---------- 正文 ---------- */
.text-sec{position:relative}

.prose{
  max-width:820px;
  border-left:2px solid var(--line);
  padding-left:clamp(14px,2.4vw,30px);
}

.prose div{
  padding:52px 0;
  border-top:1px dashed var(--line);
  scroll-margin-top:92px;
}

.prose div:first-child{border-top:0;padding-top:8px}

.prose h2,
.prose h3{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:10px;
  color:var(--lime);
  line-height:1.24;
  letter-spacing:-.01em;
  margin:0 0 16px;
  scroll-margin-top:92px;
}

.prose h2{font-size:clamp(1.45rem,3.2vw,2.05rem)}
.prose h3{font-size:clamp(1.16rem,2.4vw,1.42rem);color:var(--txt)}

.prose h2::before,
.prose h3::before{
  content:"";
  width:12px;
  height:12px;
  flex:none;
  background:var(--neo);
  border-radius:2px;
  transform:rotate(45deg) translateY(-2px);
}

.prose h2 span + span,
.prose h3 span + span{
  font-size:.72em;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--dim);
}

.prose p{margin:0 0 15px;font-size:1.03rem}
.prose strong{color:var(--neo)}

.prose a{
  color:var(--neo);
  text-decoration:underline;
  text-decoration-style:wavy;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
}

.prose ul,
.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--lime);font-weight:700}

.prose blockquote{
  margin:22px 0;
  padding:16px 18px;
  background:var(--card);
  border:1px solid var(--line);
  border-left:6px solid var(--neo);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  transform:rotate(-.4deg);
}

.prose blockquote p:last-child{margin-bottom:0}

.prose img{
  border-radius:var(--r);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  margin:18px 0;
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  font-size:.96rem;
  display:block;
  overflow-x:auto;
}

.prose th,
.prose td{
  border:1px solid var(--line);
  padding:9px 11px;
  text-align:left;
}

.prose th{background:rgba(128,255,0,.14);color:var(--lime)}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(0,0,0,.45);padding:1px 5px;border-radius:4px}
.prose hr{border:0;border-top:2px dotted var(--line);margin:26px 0}

/* ---------- 页脚 ---------- */
.site-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 22px;
  max-width:1380px;
  margin:0 auto;
  padding:24px 24px 132px;
  border-top:2px solid var(--lime);
  background:linear-gradient(180deg,rgba(0,0,0,.42),transparent);
}

.foot-brand{display:flex;align-items:center;gap:12px;min-width:0}

.mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:none;
  border-radius:50%;
  background:var(--lime);
  color:#0d1308;
  border:2px solid #0d1308;
  box-shadow:3px 3px 0 rgba(0,0,0,.6);
  font-size:1.1rem;
  font-weight:700;
  transform:rotate(-6deg);
}

.mark-glyph{line-height:1}

.foot-title{
  display:flex;
  align-items:baseline;
  gap:7px;
  margin:0;
  font-size:1rem;
  letter-spacing:.02em;
  color:var(--lime);
  max-width:16ch;
  line-height:1.3;
}

.foot-title .spk{color:var(--neo);animation:jitter 4s ease-in-out infinite}

.foot-nav ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  margin:0;
  padding:0;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:4px 8px;
  font-size:.9rem;
  color:var(--dim);
  border-radius:6px;
  transition:color .16s ease,background .16s ease;
}

.foot-nav a:hover,
.foot-nav a.on{color:#0d1308;background:var(--lime)}

.sub{display:flex;gap:8px}

.sub input{
  min-height:44px;
  width:170px;
  max-width:45vw;
  padding:8px 12px;
  font:inherit;
  font-size:.92rem;
  color:var(--txt);
  background:rgba(0,0,0,.5);
  border:1px solid var(--line);
  border-radius:var(--r);
}

.sub input::placeholder{color:var(--dim)}

.sub button{
  min-height:44px;
  padding:8px 16px;
  font:inherit;
  font-size:.92rem;
  font-weight:600;
  color:#0d1308;
  background:var(--neo);
  border:2px solid #0d1308;
  border-radius:var(--r);
  box-shadow:3px 3px 0 rgba(0,0,0,.6);
  cursor:pointer;
  transition:transform .15s ease;
}

.sub button:hover{transform:translate(-2px,-2px)}

.foot-copy{font-size:.84rem;color:var(--dim);letter-spacing:.02em}

/* ---------- 底部胶囊导航 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:rgba(16,22,12,.94);
  border-top:2px solid var(--lime);
  backdrop-filter:blur(10px);
}

.dock-mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex:none;
  border-radius:50%;
  background:var(--lime);
  color:#0d1308;
  border:2px solid #0d1308;
  font-weight:700;
  transform:rotate(-8deg);
}

.dock-list{
  list-style:none;
  display:flex;
  gap:7px;
  margin:0;
  padding:0 2px;
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}

.dock-list::-webkit-scrollbar{display:none}

.dock-list a{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  min-height:44px;
  padding:0 14px;
  font-size:.92rem;
  color:var(--txt);
  background:rgba(0,0,0,.4);
  border:1px solid var(--line);
  border-radius:999px;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}

.dock-list a:hover{transform:translateY(-2px)}

.dock-list a.on{
  background:var(--neo);
  border-color:#0d1308;
  color:#0d1308;
  font-weight:600;
}

.dock-search{
  display:flex;
  align-items:center;
  gap:4px;
  flex:none;
}

.dock-search input{
  min-height:44px;
  width:150px;
  padding:8px 12px;
  font:inherit;
  font-size:.9rem;
  color:var(--txt);
  background:rgba(0,0,0,.5);
  border:1px solid var(--line);
  border-radius:999px;
}

.dock-search input::placeholder{color:var(--dim)}

.dock-search button{
  min-height:44px;
  min-width:44px;
  font:inherit;
  font-size:1rem;
  color:#0d1308;
  background:var(--lime);
  border:2px solid #0d1308;
  border-radius:50%;
  cursor:pointer;
}

/* ---------- 动效 ---------- */
html.js .hero,
html.js .prose div,
html.js .foot-brand,
html.js .foot-nav,
html.js .foot-form{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}

html.js .hero.in,
html.js .prose div.in,
html.js .foot-brand.in,
html.js .foot-nav.in,
html.js .foot-form.in{opacity:1;transform:none}

@keyframes jitter{
  0%,100%{transform:rotate(-13deg) translateY(0)}
  35%{transform:rotate(-6deg) translateY(-4px)}
  70%{transform:rotate(-16deg) translateY(2px)}
}

@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .app{grid-template-columns:1fr;gap:18px;padding:18px 16px 120px}
  .rail{position:static;max-height:none;padding:12px 12px 14px}
  .side-title{margin-bottom:8px}
  .side-nav ul{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px;scrollbar-width:none}
  .side-nav ul::-webkit-scrollbar{display:none}
  .side-nav a{white-space:nowrap;min-height:44px}
  .side-nav a:hover,.side-nav a.on{transform:translateY(-2px)}
  .rail-tape{margin-top:12px;height:10px}
  .hero{grid-template-columns:1fr;min-height:0;padding:14px 0 34px;gap:8px}
  .hero-art{min-height:190px;order:2}
  .hero-copy{order:1}
  h1{font-size:clamp(1.9rem,8.4vw,2.9rem)}
  .badge{width:52px;height:52px;font-size:1.1rem;top:-4px}
  .prose{border-left:0;padding-left:0;border-top:2px solid var(--line);padding-top:18px}
  .prose div{padding:42px 0}
  .site-foot{padding:20px 16px 122px;gap:12px}
  .sub input{width:150px;max-width:52vw}
  .dock-search input{width:94px}
  .foot-nav ul{gap:2px 4px}
}

@media (max-width:520px){
  .foot-copy{flex:1 1 100%;order:9}
  .foot-form{flex:1 1 100%}
  .sub{width:100%}
  .sub input{flex:1;max-width:none}
  .dock-list a{padding:0 11px;font-size:.86rem}
  .dock-search input{width:74px;padding:8px 10px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  html.js .hero,
  html.js .prose div,
  html.js .foot-brand,
  html.js .foot-nav,
  html.js .foot-form{opacity:1;transform:none}
}

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