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

:root {
  --lime: #80ff00;
  --neon: #00ff00;
  --ink: #1f2617;
  --ink-2: #17200f;
  --ink-3: #2b3a1d;
  --text: #e8ffd2;
  --muted: #b6cf9b;
  --line: rgba(128, 255, 0, 0.28);
  --r: 10px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 2px 0 rgba(128, 255, 0, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 104px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(128, 255, 0, 0.22), transparent 46%),
    radial-gradient(circle at 88% 30%, rgba(0, 255, 0, 0.14), transparent 40%),
    radial-gradient(circle at 60% 92%, rgba(128, 255, 0, 0.1), transparent 52%),
    var(--ink);
  font-family: 'Outfit', 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  filter: saturate(150%);
}

.bglets {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(128, 255, 0, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(25deg, rgba(0, 255, 0, 0.045) 0 1px, transparent 1px 34px);
  mix-blend-mode: screen;
}

p { margin: 0 0 1em; }

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

h1, h2, h3 {
  font-family: 'Outfit', 'Work Sans', 'PingFang SC', system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }

.ico {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.wrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 左侧栏 */
.side {
  position: sticky;
  top: 18px;
  padding: 16px 14px 14px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(23, 32, 15, 0.82);
  box-shadow: var(--shadow);
  transform: rotate(-0.7deg);
}

.side-title {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin: 0 0 10px;
}

.side-title span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.side-link:hover,
.side-link:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateX(3px) rotate(-1deg);
}

.side-stamp {
  margin: 0;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
}

/* 主面版 */
.panel {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(43, 58, 29, 0.55), rgba(23, 32, 15, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.paper { display: block; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 40px 30px 96px;
  isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  background: var(--ink-2);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(170%) contrast(1.08);
}

.hero-void {
  background:
    conic-gradient(from 140deg at 30% 30%, rgba(128, 255, 0, 0.5), transparent 40%),
    conic-gradient(from 300deg at 75% 70%, rgba(0, 255, 0, 0.35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(128, 255, 0, 0.14) 0 8px, transparent 8px 20px),
    var(--ink-2);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(31, 38, 23, 0.25) 20%, rgba(23, 32, 15, 0.92) 82%);
}

.hero-copy {
  max-width: 30ch;
  text-align: right;
  display: grid;
  justify-items: end;
}

.kicker {
  margin: 0 0 10px;
  padding: 5px 12px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  background: rgba(23, 32, 15, 0.7);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 7.5vw, 4.6rem);
  font-weight: 700;
  color: #f5ffe4;
  text-shadow: 4px 4px 0 rgba(128, 255, 0, 0.55), -2px -2px 0 rgba(0, 255, 0, 0.3);
  word-break: break-word;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 26ch;
}

/* 贴纸 */
.sticker {
  position: absolute;
  z-index: 3;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  animation: jitter 5.5s ease-in-out infinite alternate;
}

.st1 { top: 9%; left: 6%; transform: rotate(-9deg); }

.st2 {
  top: 24%;
  right: 8%;
  background: var(--neon);
  transform: rotate(6deg);
  animation: jitter2 7s ease-in-out 0.6s infinite alternate;
}

@keyframes jitter {
  from { transform: rotate(-9deg) translate(0, 0); }
  to { transform: rotate(-4deg) translate(4px, -7px); }
}

@keyframes jitter2 {
  from { transform: rotate(6deg) translate(0, 0); }
  to { transform: rotate(2deg) translate(-6px, 6px); }
}

/* 走马灯 */
.marquee {
  overflow: hidden;
  border-block: 2px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  padding: 8px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  animation: slide 26s linear infinite;
}

.marquee-track .ghost { opacity: 0.6; }
.marquee-track .dot { color: var(--ink); }

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

/* 正文 */
.body {
  padding: 8px 26px 44px;
}

.body > div {
  padding: 40px 0;
  border-top: 2px dashed var(--line);
  scroll-margin-top: 18px;
}

.body > div:first-child { border-top: 0; }

.body h2 { color: #f2ffe0; }

.body h2 span,
.body h3 span {
  display: inline;
  box-shadow: inset 0 -0.42em 0 rgba(128, 255, 0, 0.55);
}

.body h3 { color: var(--lime); }

.body ul,
.body ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

.body li { margin: 0.4em 0; }
.body li::marker { color: var(--lime); }

.body a {
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.body a:hover { background: var(--neon); }
.body strong { color: var(--neon); }

.body blockquote {
  margin: 0 0 1.1em;
  padding: 14px 18px;
  border-left: 5px solid var(--lime);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(128, 255, 0, 0.08);
  color: var(--muted);
}

.body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 2px solid var(--line);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.1em;
  font-size: 0.96rem;
}

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

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

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 34px 20px 20px;
  border-top: 3px solid var(--lime);
  background: linear-gradient(180deg, rgba(23, 32, 15, 0.4), rgba(23, 32, 15, 0.95));
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto 22px;
  align-items: start;
}

.foot-brand {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
  transform: rotate(-1.4deg);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.foot-nav dl { margin: 0; }

.foot-nav dt {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 6px;
}

.foot-nav dd { margin: 0 0 2px; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
}

.copy {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* 底部固定条 */
.bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--lime);
  background: rgba(23, 32, 15, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(0, 255, 0, 0.16);
}

.bar-brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 16px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.bar-brand:hover,
.bar-brand:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.bar-links { display: contents; }

.bar-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bar-side.left { grid-column: 1; justify-content: flex-end; }
.bar-side.right { grid-column: 3; justify-content: flex-start; }

.bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.bar-link:hover,
.bar-link:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-3px) rotate(-2deg);
}

.bar-link:hover .ico { transform: scale(1.4); }

/* 移动端 */
@media (max-width: 899px) {
  body { font-size: 16px; padding-bottom: 132px; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 12px;
  }

  .side {
    position: static;
    transform: none;
    padding: 10px 10px 4px;
    overflow: hidden;
  }

  .side-title { margin-bottom: 6px; }

  .side-links {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .side-link { white-space: nowrap; flex: 0 0 auto; }

  .side-stamp { display: none; }

  .hero {
    padding: 32px 18px 74px;
    min-height: 86vh;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }

  .hero-copy { max-width: 100%; }

  .sticker { font-size: 0.78rem; padding: 5px 10px; }
  .st1 { top: 6%; left: 4%; }
  .st2 { top: 16%; right: 5%; }

  .body { padding: 6px 16px 34px; }
  .body > div { padding: 30px 0; }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

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

  .bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 5px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .bar-brand {
    order: -1;
    align-self: center;
    min-height: 40px;
    font-size: 15px;
  }

  .bar-links {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bar-links::-webkit-scrollbar { display: none; }

  .bar-side.left { justify-content: flex-start; }

  .bar-link { padding: 4px 9px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }
  .foot-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker,
  .marquee-track { animation: none; }
  .side-link,
  .bar-link,
  .foot-nav a,
  .ico { transition: none; }
}

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