@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --acid: #80ff00;
  --lime: #00ff00;
  --ink: #1f2617;
  --bg: #10150c;
  --card: rgba(31, 38, 23, 0.62);
  --line: rgba(128, 255, 0, 0.28);
  --txt: #e9ffd9;
  --dim: #b9cf9f;
  --r: 28px;
}

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

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
  background:
    radial-gradient(120% 80% at 92% -10%, rgba(0, 255, 0, 0.18), transparent 62%),
    radial-gradient(90% 60% at -12% 22%, rgba(128, 255, 0, 0.13), transparent 58%),
    var(--bg);
  color: var(--txt);
  font: 400 17px/1.7 Cabin, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  filter: saturate(118%);
}

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

h1, h2, h3, .brand, .f-brand a, .tape-in span, .side-t {
  font-family: "Amatic SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 700;
}

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

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

html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ---------- 头部 ---------- */
.hdr {
  position: relative;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--acid);
  background: linear-gradient(180deg, #17200f, #10150c);
}

.hdr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--acid) 0 10px, transparent 10px 20px);
  opacity: 0.32;
  pointer-events: none;
}

.hdr-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-block;
  max-width: 100%;
  color: var(--acid);
  text-decoration: none;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
  letter-spacing: 0.05em;
  transform: rotate(-2.5deg);
  text-shadow: 3px 3px 0 rgba(0, 255, 0, 0.28);
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transform: rotate(2deg);
  box-shadow: 0 0 0 3px rgba(128, 255, 0, 0.18);
}

.pill:hover { background: var(--lime); }

.hdr-nav {
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 18px;
}

.hdr-nav p {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hdr-nav p::-webkit-scrollbar { display: none; }

.hdr-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  animation: drop 0.42s both;
}

.hdr-nav a:hover,
.hdr-nav a:focus-visible {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.hdr-nav a:nth-child(1) { animation-delay: 0.03s; }
.hdr-nav a:nth-child(2) { animation-delay: 0.08s; }
.hdr-nav a:nth-child(3) { animation-delay: 0.13s; }
.hdr-nav a:nth-child(4) { animation-delay: 0.18s; }
.hdr-nav a:nth-child(5) { animation-delay: 0.23s; }
.hdr-nav a:nth-child(6) { animation-delay: 0.28s; }
.hdr-nav a:nth-child(7) { animation-delay: 0.33s; }

@keyframes drop {
  from { opacity: 0; transform: translateY(-9px) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 820px) {
  .hdr-nav p { flex-wrap: wrap; overflow: visible; }
}

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.hero > * { min-width: 0; }

.hero-media {
  position: relative;
  margin: 0;
  transform: rotate(-1.5deg);
}

.hero-media img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border: 2px solid var(--acid);
  border-radius: var(--r);
  box-shadow: 8px 10px 0 rgba(0, 255, 0, 0.15);
}

.hero-media::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -8px;
  width: 54px;
  height: 18px;
  background: var(--lime);
  border-radius: 4px;
  transform: rotate(-8deg);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero-txt { align-self: center; }

.hero-txt h1 {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: clamp(34px, 8.4vw, 66px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 4px 4px 0 rgba(0, 255, 0, 0.22);
}

.lede {
  margin: 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 17px;
}

@media (min-width: 780px) {
  .hero {
    position: relative;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    min-height: 45vh;
    padding-top: 40px;
  }
  .hero-txt { text-align: right; }
  .lede { margin-left: auto; }
  .hero-media img { height: 38vh; max-height: 340px; }
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 20px;
    background: linear-gradient(90deg, var(--acid), var(--lime));
    transform: skewY(-1.6deg);
    opacity: 0.9;
    pointer-events: none;
  }
}

/* ---------- 跑马灯 ---------- */
.tape {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 24px 0 4px;
  border-top: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-0.6deg);
}

.tape-in {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}

.tape-in span {
  display: block;
  padding: 4px 0;
  font-size: 26px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 主体 ---------- */
.wrap {
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 18px 48px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.shell > * { min-width: 0; }

@media (min-width: 920px) {
  .shell {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
}

.side {
  min-width: 0;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  transform: rotate(-0.8deg);
}

.side-t {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 16px;
  letter-spacing: 0.22em;
}

.side-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.side-list::-webkit-scrollbar { display: none; }

.side-list li { flex: 0 0 auto; }

.side-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

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

@media (min-width: 920px) {
  .side { position: sticky; top: 16px; }
  .side-list { flex-direction: column; overflow: visible; }
  .side-list li { flex: 0 1 auto; }
  .side-list a { width: 100%; }
}

.body {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 16px 28px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

@media (min-width: 760px) {
  .body { padding: 30px 32px 42px; }
}

.body div[id] { scroll-margin-top: 24px; }

.body h2 {
  margin: 40px 0 8px;
  color: var(--acid);
  font-size: clamp(26px, 4.8vw, 42px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-shadow: 3px 3px 0 rgba(0, 255, 0, 0.16);
}

.body div:first-child h2:first-child { margin-top: 0; }

.body h2 + hr { margin: 0 0 16px; }

.body hr {
  border: 0;
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 14px, rgba(128, 255, 0, 0.15) 14px 26px);
  opacity: 0.75;
}

.body h3 {
  margin: 26px 0 8px;
  color: var(--lime);
  font-size: 21px;
  line-height: 1.35;
}

.body p { margin: 0 0 14px; }

.body a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.body ul, .body ol { margin: 0 0 16px; padding-left: 1.25em; }
.body li { margin: 0 0 8px; }

.body img {
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.body blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 6px solid var(--acid);
  border-radius: 0 18px 18px 0;
  background: rgba(128, 255, 0, 0.08);
  color: var(--txt);
}

.body strong { color: #fff; }

.body table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.body th, .body td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.body pre {
  margin: 0 0 18px;
  padding: 14px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0f07;
  font-size: 16px;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 34px;
  padding: 22px 18px 32px;
  border-top: 2px solid var(--acid);
  background: #0b0f07;
}

.foot-in {
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
}

.f-brand { min-width: 0; }

.f-brand a {
  display: inline-block;
  color: var(--acid);
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 rgba(0, 255, 0, 0.2);
}

.f-nav { min-width: 0; max-width: 100%; }

.f-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
}

.f-nav a:hover { background: var(--acid); color: var(--ink); }

.f-copy { flex: 1 1 160px; min-width: 0; text-align: center; }
.f-copy p { margin: 0; color: var(--dim); font-size: 16px; }

@media (min-width: 900px) {
  .foot-in { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-in, .hdr-nav a { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

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