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

:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --ink-2: #161c11;
  --paper: #10140c;
  --line: #2c3722;
  --text: #e9f3da;
  --muted: #a7bd90;
  --serif: 'Bodoni Moda', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  background-image: radial-gradient(rgba(128, 255, 0, .34) 1px, transparent 1px);
  background-size: 22px 22px;
}

header, main, footer, .marquee { position: relative; z-index: 1; }

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

menu { margin: 0; padding: 0; list-style: none; }

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16, 20, 12, .93);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(6px);
}

.dnav { position: relative; }
.dnav-a { justify-self: start; }
.dnav-b { justify-self: end; }

.dnav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  background: transparent;
  user-select: none;
}
.dnav summary::-webkit-details-marker { display: none; }
.dnav-a summary { transform: rotate(-2.5deg); }
.dnav-b summary { transform: rotate(2.5deg); }
.dnav summary:hover,
.dnav[open] summary { background: var(--lime); color: var(--ink); }

.dnav-m {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: min(72vw, 244px);
  padding: 8px;
  background: var(--ink);
  border: 2px solid var(--lime);
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}
.dnav-m-r { left: auto; right: 0; }
.dnav-m a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.dnav-m li:last-child a { border-bottom: 0; }
.dnav-m a:hover { background: var(--lime); color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-family: var(--serif);
  font-size: clamp(19px, 3.4vw, 26px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--lime);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.brand-k { color: var(--green); animation: spin 9s linear infinite; }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 2px solid var(--lime);
  background: var(--ink-2);
  padding: 8px 0;
  transform: rotate(-.6deg);
  margin: -2px 0 0;
}
.marquee-tr {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee-tr span {
  padding-right: 26px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  min-height: 45vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) 20px clamp(26px, 4vw, 44px);
  overflow: hidden;
}

.hero-copy { position: relative; text-align: center; }

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.03;
  letter-spacing: -.015em;
  color: var(--text);
  text-shadow: 3px 3px 0 rgba(128, 255, 0, .28);
}

.lead {
  margin: 0 auto 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 rgba(0, 255, 0, .28);
}
.hero-cta:hover { background: var(--green); transform: rotate(1.5deg); }

.stick {
  position: absolute;
  left: -4px;
  bottom: -26px;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  border: 2px solid var(--ink);
  animation: jitter 3.4s steps(2) infinite;
}

.hero-fig {
  margin: 0;
  border: 3px solid var(--lime);
  border-bottom-width: 8px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  transform: rotate(2deg);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .5);
}
.hero-img { display: block; width: 100%; height: auto; filter: saturate(150%) contrast(1.06); }

.hero-blk {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(rgba(0, 255, 0, .55) 1.6px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(140deg, #0b0f08, #24301a);
}

/* ---------- 正文 + 侧栏 ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(20px, 3vw, 38px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 56px;
  align-items: start;
}

.body { min-width: 0; }
.body > * { max-width: 72ch; }

.body > article {
  padding: 26px 0 30px;
  border-top: 2px dashed var(--line);
  border-radius: 18px;
}
.body > article:first-child { border-top: 0; padding-top: 4px; }
.body > article + article { margin-top: 6px; }

.body h2,
.body h3 {
  font-family: var(--serif);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.body h2 { font-size: clamp(24px, 3.8vw, 34px); }
.body h3 { font-size: clamp(20px, 2.8vw, 25px); }

.body h2 span,
.body h3 span,
.side h2 span {
  background: linear-gradient(transparent 62%, rgba(128, 255, 0, .45) 62%);
  padding-bottom: 2px;
}

.body p { margin: 0 0 14px; font-size: 17px; line-height: 1.85; }
.body a { color: var(--lime); text-underline-offset: 3px; }
.body ul, .body ol { padding-left: 1.25em; margin: 0 0 16px; }
.body li { margin: .4em 0; line-height: 1.75; }
.body strong { color: var(--lime); font-weight: 600; }

.body figure,
.body aside {
  margin: 0 0 18px;
  padding: 12px;
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--lime);
  border-radius: 18px;
  background: var(--ink-2);
}
.body figure img,
.body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.body figcaption { margin-top: 8px; color: var(--muted); font-size: 16px; }

.body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 6px solid var(--lime);
  border-radius: 0 18px 18px 0;
  background: var(--ink-2);
  color: var(--muted);
}

.body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.body th, .body td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }

.side {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 2px dashed var(--lime);
  border-radius: 18px;
  background: rgba(31, 38, 23, .74);
  transform: rotate(-1deg);
}

.side h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--lime);
}
.side h2 + .side-m { margin-bottom: 20px; }

.side-m a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 4px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.side-m li:last-child a { border-bottom: 0; }
.side-m a:hover { color: var(--ink); background: var(--lime); border-radius: 10px; padding-left: 8px; }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.to-top:hover { background: var(--lime); transform: rotate(-2deg); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 3px solid var(--lime);
  background: var(--ink-2);
  padding: 30px 20px 18px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto 22px;
}
.foot dl { margin: 0; }
.foot dt {
  color: var(--lime);
  font-size: 16px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.foot dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.foot-nav a:hover { color: var(--lime); }
.copy {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 锚点偏移 ---------- */
article[id] { scroll-margin-top: 96px; }

/* ---------- 动效 ---------- */
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes riseRot {
  from { opacity: 0; transform: rotate(2deg) translateY(18px); }
  to { opacity: 1; transform: rotate(2deg); }
}
@keyframes jitter {
  0%, 100% { transform: rotate(-7deg) translate(0, 0); }
  50% { transform: rotate(-3deg) translate(2px, -2px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-copy { animation: rise .6s both; }
.hero-fig { animation: riseRot .7s .08s both; }
.body > article { animation: rise .7s both; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); padding-bottom: 44px; }
  .side { position: static; transform: none; margin-top: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 26px; }
  .hero-fig { order: 2; transform: rotate(1.5deg); }
  .hero-copy { order: 1; }
  .stick { position: static; display: inline-block; margin-top: 12px; }
  .hero-fig { animation: rise .7s .08s both; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .top { padding: 8px 10px; gap: 6px; }
  .dnav summary { padding: 10px 12px; font-size: 16px; }
  .brand { font-size: 18px; gap: 5px; }
  .brand-k { display: none; }
  .dnav-m { min-width: 78vw; }
  .lead { max-width: 30ch; }
  article[id] { scroll-margin-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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