:root {
  --acid: #80ff00;
  --neon: #00ff00;
  --ink: #1f2617;
  --deep: #0d1208;
  --card: #f7fbe9;
  --mist: #dff5cf;
  --line: rgba(31, 38, 23, .22);
  --shadow: 0 12px 0 -6px rgba(128, 255, 0, .45), 0 20px 38px rgba(0, 0, 0, .45);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background-color: var(--deep);
  background-image:
    radial-gradient(rgba(128, 255, 0, .18) 1px, transparent 1px),
    radial-gradient(rgba(0, 255, 0, .1) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  color: var(--card);
  font: 400 17px/1.7 "Lora", Georgia, serif;
}

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

/* ---------- 走马灯 ---------- */
.marquee {
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 9px 0;
  font: 700 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .22em;
}

.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: slide 26s linear infinite;
}

.marquee-track span { white-space: nowrap; }

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

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 45vh;
  padding: clamp(22px, 6vw, 54px) clamp(16px, 5vw, 48px);
  border-bottom: 4px solid var(--acid);
  background-image: radial-gradient(rgba(128, 255, 0, .22) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: #131a0c;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(13, 18, 8, .92) 8%, rgba(31, 38, 23, .62) 52%, rgba(128, 255, 0, .38) 100%);
}

.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px) saturate(150%);
  opacity: .85;
}

.blob-one {
  width: 120px;
  height: 120px;
  right: 6%;
  top: 8%;
  background: var(--neon);
  mix-blend-mode: screen;
  animation: jitter 6s ease-in-out infinite;
}

.blob-two {
  width: 70px;
  height: 70px;
  left: 8%;
  bottom: 12%;
  background: var(--acid);
  mix-blend-mode: multiply;
  animation: jitter 8s ease-in-out infinite reverse;
}

@keyframes jitter {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-5px); }
}

.hero-inner {
  max-width: 620px;
  margin-left: auto;
  text-align: right;
}

.sticker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--neon);
  color: var(--ink);
  font: 700 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .16em;
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--ink);
  animation: jitter 5s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 60px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-shadow: 3px 3px 0 rgba(31, 38, 23, .75);
}

.hero-desc {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- 主栅格 ---------- */
main { display: block; }

.wrap {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
  padding: 24px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.panel {
  min-width: 0;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 36px);
  transform: rotate(-.25deg);
}

.prose { font-size: 16.5px; }

.prose section {
  padding: 24px 0 28px;
  border-top: 2px dashed var(--line);
  scroll-margin-top: 70px;
  scroll-margin-bottom: 110px;
}

.prose section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.prose h2 {
  margin: 0 0 12px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(22px, 4.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.prose h2 > span {
  display: inline-block;
  padding: 0 3px;
  background: linear-gradient(transparent 62%, var(--acid) 62%);
  transform: rotate(-.6deg);
}

.prose h3 {
  margin: 20px 0 10px;
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
}

.prose h3 > span {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 7px;
  background: rgba(0, 255, 0, .32);
}

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

.prose a {
  color: #23470a;
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}

.prose a:hover { background: var(--acid); }

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

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

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

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

.prose img {
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(128, 255, 0, .8);
  margin: 8px 0 16px;
}

.prose code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .92em;
  background: rgba(31, 38, 23, .12);
  padding: 1px 5px;
  border-radius: 5px;
}

/* ---------- 侧栏 ---------- */
.side {
  background: #18200f;
  border: 2px solid var(--acid);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
  transform: rotate(.7deg);
}

.side-title {
  margin: 0 0 12px;
  color: var(--acid);
  font: 700 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .22em;
}

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

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 8px;
  border-bottom: 1px dashed rgba(128, 255, 0, .28);
  color: var(--mist);
  text-decoration: none;
  font: 500 15px/1.4 "Raleway", system-ui, sans-serif;
}

.side-nav a:hover,
.side-nav a.is-on {
  background: var(--acid);
  color: var(--ink);
  border-bottom-color: transparent;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 8px;
  padding: 30px 0;
  background: #0a0e06;
  border-top: 4px solid var(--neon);
}

.foot-grid {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.foot-brand {
  margin: 0 0 10px;
  font: 700 22px/1.2 "Lora", Georgia, serif;
}

.foot-brand a { color: var(--acid); text-decoration: none; }
.foot-brand a:hover { text-decoration: underline; }

.sub { margin-top: 8px; }

.sub label {
  display: block;
  margin-bottom: 6px;
  color: var(--neon);
  font: 600 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .16em;
}

.sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--acid);
  border-radius: 10px;
  background: #121a0b;
  color: var(--card);
  font: 400 16px/1 "Lora", Georgia, serif;
}

.sub button {
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--neon);
  color: var(--ink);
  font: 700 15px/1 "Raleway", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--acid);
}

.sub button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--acid);
}

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

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 8px;
  color: var(--neon);
  font: 700 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .18em;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mist);
  text-decoration: none;
  font: 400 15px/1.45 "Raleway", system-ui, sans-serif;
}

.foot dd a:hover { color: var(--acid); text-decoration: underline; }

.copy {
  width: min(1120px, 100% - 28px);
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(128, 255, 0, .3);
  text-align: center;
  color: #9db888;
  font: 400 13px/1.6 "Raleway", system-ui, sans-serif;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(10, 14, 6, .95);
  border-top: 3px solid var(--acid);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .55);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dock-nav::-webkit-scrollbar { display: none; }

.dock-col {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  font: 600 14px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: .03em;
}

.dock a:hover,
.dock a.is-on {
  background: var(--acid);
  color: var(--ink);
}

.dock-brand {
  order: -1;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 12px 0 2px;
  border-right: 2px dashed rgba(128, 255, 0, .45);
}

.dock-brand a {
  color: var(--neon);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- 断点 ---------- */
@media (min-width: 900px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  .wrap {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: start;
    gap: 26px;
  }

  .side { position: sticky; top: 20px; }

  .dock-nav {
    justify-content: center;
    overflow-x: visible;
    padding: 10px 16px;
  }

  .dock-brand {
    order: 0;
    padding: 0 16px;
    border-right: 0;
    border-left: 2px dashed rgba(128, 255, 0, .45);
  }

  .dock-col-a { order: -1; }

  .dock-col-b { order: 1; }
}

@media (min-width: 820px) {
  .foot-grid {
    grid-template-columns: 1.05fr 1.35fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .sticker,
  .blob { animation: none; }
  .hero-img,
  .blob { filter: none; }
}

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