@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --neon: #87ff71;
  --lemon: #ffce5c;
  --ink: #192617;
  --deep: #12200f;
  --text: #e9ffe3;
  --muted: #b9d8b0;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(135, 255, 113, 0.34);
  --r: 18px;
}

* { box-sizing: border-box; }

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(135, 255, 113, 0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--lemon);
  color: var(--deep);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(25, 38, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 15px;
  height: 15px;
  background: var(--neon);
  border-radius: 2px;
  transform: rotate(18deg);
  box-shadow: 8px 8px 0 -3px var(--lemon);
}

.brand-mark { border-radius: 8px; }

.menu-box {
  flex: 1 1 420px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-box summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px dashed var(--lemon);
  border-radius: 999px;
  color: var(--lemon);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}
.menu-box summary::-webkit-details-marker { display: none; }
.menu-box summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.menu-box > menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border: 1px solid transparent;
}
.menu-box a:hover,
.menu-box a:focus-visible {
  background: rgba(135, 255, 113, 0.14);
  border-color: var(--line);
}

.menu-box a::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--neon);
  transform: rotate(45deg);
  border-radius: 1px;
  flex: none;
}
.menu-box li:nth-child(3n) a::before {
  border-radius: 50%;
  background: var(--lemon);
  transform: none;
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  min-height: 70vh;
  padding: clamp(22px, 4vw, 56px) clamp(16px, 5vw, 56px) clamp(30px, 6vw, 68px);
  border-bottom: 2px dashed var(--line);
  isolation: isolate;
}

.hero-num {
  position: absolute;
  right: -2vw;
  top: -3vh;
  z-index: 0;
  font-size: clamp(140px, 26vw, 340px);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 206, 92, 0.45);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  border-radius: var(--r);
  overflow: hidden;
  border: 2px dashed var(--lemon);
  background:
    repeating-linear-gradient(45deg, rgba(135, 255, 113, 0.12) 0 10px, transparent 10px 20px),
    var(--deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh { position: absolute; z-index: 2; display: block; }
.sh1 {
  width: 62px;
  height: 62px;
  left: 12px;
  bottom: 12px;
  background: var(--lemon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: bob 7s ease-in-out infinite;
}
.sh2 {
  width: 50px;
  height: 50px;
  right: 12px;
  top: 12px;
  border-radius: 50%;
  border: 5px dotted var(--neon);
  animation: spin 22s linear infinite;
}
.sh3 {
  width: 84px;
  height: 24px;
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(-8deg);
  background: repeating-linear-gradient(90deg, var(--neon) 0 6px, transparent 6px 12px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: right;
}

.hero h1 {
  margin: 0 0 0.4em auto;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 15ch;
}

.hero h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 8px;
  margin: 0.5em 0 0 auto;
  background: var(--neon);
  border-radius: 4px;
  transform: rotate(-1.5deg);
}

.hero-lead {
  margin: 1em 0 0 auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 主体 */
.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 40px) clamp(38px, 6vw, 80px);
}

.paper {
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 34px);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px dashed rgba(135, 255, 113, 0.42);
  box-shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.95);
}

.prose { min-width: 0; }

.prose > article {
  scroll-margin-top: 96px;
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 2px dotted rgba(255, 206, 92, 0.3);
}
.prose > article:first-child { padding-top: 4px; }
.prose > article:last-child { border-bottom: 0; padding-bottom: 4px; }

.prose h1 {
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.22;
  margin: 0 0 0.4em;
  color: #fff;
}

.prose h2 {
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.32;
  margin: 0 0 0.55em;
  color: #fff;
  font-weight: 700;
}
.prose h2::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 10px;
  background: var(--lemon);
  transform: rotate(45deg);
  vertical-align: 2px;
}

.prose h3 {
  font-size: 19px;
  margin: 1.4em 0 0.4em;
  color: var(--lemon);
}

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

.prose .subtitle {
  margin: -0.2em 0 1.1em;
  color: var(--muted);
  font-size: 16px;
}

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.35em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--neon); }

.prose a {
  color: var(--neon);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.prose a:hover { background: rgba(135, 255, 113, 0.16); }

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

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 6px solid var(--neon);
  background: rgba(135, 255, 113, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--text);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 15px;
}

.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 16px; }
.prose th, .prose td { border: 1px dashed var(--line); padding: 8px 10px; text-align: left; }

/* 侧栏 */
.side {
  position: sticky;
  top: 92px;
  padding: 18px 16px 20px;
  border-radius: var(--r);
  background: rgba(255, 206, 92, 0.11);
  border: 2px solid rgba(255, 206, 92, 0.5);
  transform: rotate(-0.7deg);
}

.side h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--lemon);
}
.side h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--lemon);
  transform: rotate(45deg);
}

.side .subtitle {
  margin: 2px 0 12px;
  font-size: 15px;
  color: var(--muted);
}

.side-menu {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.side-menu li { animation: rise 0.5s both; }
.side-menu li:nth-child(1) { animation-delay: 0.04s; }
.side-menu li:nth-child(2) { animation-delay: 0.09s; }
.side-menu li:nth-child(3) { animation-delay: 0.14s; }
.side-menu li:nth-child(4) { animation-delay: 0.19s; }
.side-menu li:nth-child(5) { animation-delay: 0.24s; }
.side-menu li:nth-child(6) { animation-delay: 0.29s; }
.side-menu li:nth-child(7) { animation-delay: 0.34s; }

.side-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.side-menu a:hover,
.side-menu a:focus-visible {
  background: rgba(135, 255, 113, 0.16);
  border-left-color: var(--neon);
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 2px dashed var(--neon);
  color: var(--neon);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.to-top:hover { background: rgba(135, 255, 113, 0.16); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px 20px;
  padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 40px) 22px;
  border-top: 2px dashed var(--neon);
  background: rgba(18, 32, 15, 0.92);
}

footer article { min-width: 0; }

.f-brand { display: flex; flex-direction: column; gap: 10px; }
.f-mark { border-radius: 12px; }
.f-blob {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
.f-name {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
}

.f-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--lemon);
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.f-col a:hover { color: var(--neon); text-decoration: underline dotted; text-underline-offset: 3px; }

.f-bar {
  grid-column: 1 / -1;
  text-align: center;
  border-top: 1px dotted rgba(135, 255, 113, 0.32);
  padding-top: 16px;
  margin-top: 6px;
}
.f-bar p { margin: 0; font-size: 15px; color: var(--muted); }

/* 断点 */
@media (min-width: 721px) {
  .menu-box > menu { display: flex; }
}

@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; transform: none; }
  .side-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar { gap: 8px; }
  .menu-box { flex: 0 0 auto; }
  .menu-box:not([open]) > menu { display: none; }
  .menu-box[open] { flex: 1 1 100%; }
  .menu-box > menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 6px;
  }
  .menu-box a { min-height: 46px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 18px;
  }
  .hero-art { aspect-ratio: 16 / 9; max-height: none; }
  .hero-copy { text-align: right; }
  .hero h1 { max-width: none; margin-left: 0; }
  .hero-lead { margin-left: 0; max-width: none; }
  .hero-num { font-size: 118px; top: -6px; right: -6px; }
  .prose > article { scroll-margin-top: 84px; }
  .side-menu { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  footer { grid-template-columns: 1fr; gap: 18px; }
  .f-brand { flex-direction: row; align-items: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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