:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --deep: #141a10;
  --rail: 118px;
  --ticker: 32px;
  --paper: #eaffd6;
  --text: #e9f7dc;
  --muted: #bcdaa2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding: var(--ticker) 0 0 var(--rail);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(128, 255, 0, 0.22) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); }

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

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker);
  z-index: 70;
  background: var(--lime);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  height: 100%;
  padding-left: 10px;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: var(--ticker);
  bottom: 0;
  width: var(--rail);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 9px 18px;
  background: var(--deep);
  border-right: 2px solid rgba(128, 255, 0, 0.45);
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.rail a {
  display: block;
  text-align: center;
  min-height: 44px;
  padding: 11px 4px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(128, 255, 0, 0.32);
  border-radius: 4px;
  background: rgba(128, 255, 0, 0.07);
  transform: rotate(-1.4deg);
  transition: background 0.15s linear, color 0.15s linear, transform 0.15s ease;
}

.rail li:nth-child(even) a { transform: rotate(1.7deg); }

.rail a:hover,
.rail a:focus-visible {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
  transform: rotate(0deg) scale(1.03);
}

.brand {
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: block;
  padding: 12px 5px;
  min-height: 44px;
  background: var(--lime);
  color: var(--ink) !important;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--green);
  text-decoration: none;
  transform: rotate(2deg);
  margin: 6px 0;
}

.brand-name {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 3px solid var(--lime);
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-fig--blank {
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 255, 0, 0.35), transparent 58%),
    radial-gradient(circle at 80% 75%, rgba(128, 255, 0, 0.28), transparent 55%),
    var(--deep);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(160%) contrast(115%);
  mix-blend-mode: luminosity;
  opacity: 0.55;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 38, 23, 0.55), rgba(20, 26, 16, 0.9)),
    radial-gradient(rgba(128, 255, 0, 0.24) 1px, transparent 1px);
  background-size: auto, 20px 20px;
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-3deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 44px 20px;
  text-align: center;
}

.mini {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-2deg);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--lime);
  text-shadow: 4px 4px 0 rgba(0, 255, 0, 0.4), -2px -2px 0 #0c110a;
  transform: rotate(-1deg);
  animation: pop 0.6s ease-out both;
}

@keyframes pop {
  from { opacity: 0; transform: rotate(-1deg) translateY(20px) scale(0.97); }
  to { opacity: 1; transform: rotate(-1deg) translateY(0) scale(1); }
}

.lede {
  margin: 0 auto 26px;
  max-width: 33em;
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--paper);
}

.hero-cta { margin: 0; }

.hero-cta a {
  display: inline-block;
  min-height: 48px;
  padding: 12px 26px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--green);
  transform: rotate(1.6deg);
}

.hero-cta a:hover { background: var(--green); }

/* ---------- 主体骨架 ---------- */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  padding: 0 clamp(14px, 3vw, 42px) 44px;
}

.stickers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 4px;
}

.sticker {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 255, 0, 0.6);
  animation: jitter 4s ease-in-out infinite;
}

.s1 { transform: rotate(-3deg); }

.s2 {
  background: var(--green);
  transform: rotate(2.4deg);
  animation-delay: 0.6s;
}

.s3 { transform: rotate(-1deg); animation-delay: 1.2s; }

@keyframes jitter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

/* ---------- 正文 ---------- */
.prose {
  grid-column: 1;
  min-width: 0;
  counter-reset: sec;
  font-size: 17px;
}

.prose > article {
  position: relative;
  counter-increment: sec;
  margin: 0 0 22px;
  padding: 26px clamp(16px, 2.6vw, 34px) 30px;
  background: rgba(234, 255, 214, 0.045);
  border: 1px solid rgba(128, 255, 0, 0.3);
  border-left: 5px solid var(--lime);
  border-radius: 4px;
  box-shadow: 0 16px 30px -22px #000;
  scroll-margin-top: 96px;
}

.prose > article:nth-child(odd) { transform: rotate(-0.18deg); }
.prose > article:nth-child(even) { transform: rotate(0.16deg); }

.prose > article::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 0 9px;
  background: var(--ink);
  border: 1px solid var(--lime);
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lime);
}

.prose h2,
.prose h3 {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--lime);
  margin: 0 0 14px;
  text-shadow: 2px 2px 0 rgba(0, 255, 0, 0.25);
}

.prose h2 { font-size: clamp(23px, 3.6vw, 33px); }

.prose h3 {
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--paper);
}

.prose p { margin: 0 0 16px; }

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

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.prose a:hover { background: var(--lime); color: var(--ink); }

.prose strong { color: var(--lime); }

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.prose li { margin: 0 0 8px; }

.prose li::marker { color: var(--green); }

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--green);
  background: rgba(0, 255, 0, 0.08);
  border-radius: 4px;
}

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

.prose figure { margin: 18px 0; }

.prose figure img {
  border: 2px solid var(--lime);
  border-radius: 4px;
}

.prose figcaption {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid rgba(128, 255, 0, 0.35);
  padding: 8px 10px;
  text-align: left;
}

.prose th { background: rgba(128, 255, 0, 0.12); color: var(--lime); }

/* ---------- 侧栏 ---------- */
.side {
  grid-column: 2;
  position: sticky;
  top: calc(var(--ticker) + 16px);
  padding: 16px 14px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0, 255, 0, 0.55);
  transform: rotate(0.6deg);
}

.side small {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #45602c;
}

.side h2 {
  margin: 2px 0 12px;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}

.side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.side-nav a {
  display: block;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px dashed rgba(31, 38, 23, 0.55);
  border-radius: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: var(--lime);
  border-style: solid;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding: clamp(22px, 4vw, 42px) clamp(14px, 3vw, 42px) 22px;
  background: var(--deep);
  border-top: 3px solid var(--lime);
}

.foot dl { margin: 0; }

.foot dt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 6px;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
}

.foot dd a:hover,
.foot dd a:focus-visible { color: var(--lime); }

.wordmark {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  overflow: hidden;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 12.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--lime);
  text-shadow: 6px 6px 0 rgba(0, 255, 0, 0.32);
  white-space: nowrap;
}

.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(128, 255, 0, 0.35);
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.foot-bottom p { margin: 0; }

/* ---------- 滚动显现 ---------- */
html.js .prose > article,
html.js .stickers,
html.js .foot dl,
html.js .wordmark {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .prose > article.in,
html.js .stickers.in,
html.js .foot dl.in,
html.js .wordmark.in {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  body { padding: 88px 0 0; }

  .rail {
    top: var(--ticker);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 2px solid var(--lime);
  }

  .rail ol {
    flex-direction: row;
    width: auto;
    gap: 8px;
  }

  .rail a {
    white-space: nowrap;
    padding: 9px 12px;
    min-height: 40px;
    transform: none;
  }

  .rail li:nth-child(even) a { transform: none; }

  .brand {
    writing-mode: horizontal-tb;
    order: -1;
    padding: 8px 12px;
    min-height: 40px;
    transform: none;
    box-shadow: 3px 3px 0 var(--green);
  }

  .brand-name { font-size: 16px; writing-mode: horizontal-tb; }

  .hero { min-height: 58vh; }
  .hero-copy { padding: 36px 16px; }
  .prose > article { scroll-margin-top: 150px; }

  .shell { grid-template-columns: minmax(0, 1fr); }

  .prose,
  .side { grid-column: 1; }

  .side { position: static; transform: none; }

  .prose > article,
  .prose > article:nth-child(odd),
  .prose > article:nth-child(even) { transform: none; }

  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .wordmark { font-size: clamp(36px, 13vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ticker-track,
  .sticker,
  .hero-copy h1 { animation: none; }

  html.js .prose > article,
  html.js .stickers,
  html.js .foot dl,
  html.js .wordmark {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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