@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --neon: #00ff80;
  --blue: #0000ff;
  --ink: #000000;
  --paper: #f2fff8;
  --dim: #9fd8b8;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Mono', ui-monospace, 'Courier New', 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover { background: var(--neon); color: #000; }

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

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

.skip-none { display: none; }

/* ---------- 主网格 ---------- */
.shell {
  display: flex;
  flex-direction: column;
  padding: 0 14px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.body { order: 1; min-width: 0; }
.side { order: 2; }

/* ---------- 侧栏 ---------- */
.side {
  border: 3px solid var(--neon);
  padding: 14px 12px 16px;
  margin: 34px 0 0;
  background: #000;
}

.side-h {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .12em;
}

.side-h > span {
  display: inline-block;
  background: var(--neon);
  color: #000;
  padding: 2px 8px;
  font-weight: 700;
}

.side-h.b { margin-top: 22px; }
.side-h.b > span { background: var(--blue); color: #fff; }

.side-list li { border-top: 2px solid #10301f; }

.side-list a {
  display: block;
  padding: 11px 4px;
  font-size: 16px;
  line-height: 1.4;
  min-height: 44px;
}

.side-list .dot { color: var(--blue); margin-right: 7px; font-size: 11px; }

.side-note {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--dim);
  word-break: break-all;
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 0 46px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 0 100%);
  border-bottom: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(0.62);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .95) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-in, .strip, .badge { position: relative; z-index: 1; }

.hero-in h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 4px 4px 0 rgba(0, 0, 255, .85);
  word-break: break-word;
}

.badge {
  position: absolute;
  top: 78px;
  right: 0;
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  padding: 6px 12px;
  border: 3px solid #000;
  animation: bob 2.6s steps(2, end) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.strip {
  overflow: hidden;
  margin-top: 26px;
  border-top: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  background: rgba(0, 0, 0, .72);
}

.strip-in {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 9px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
  animation: slide 34s linear infinite;
}

.strip-in i { color: var(--blue); font-style: normal; font-size: 11px; }

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

/* ---------- 正文 ---------- */
.body > section { scroll-margin-top: 92px; }

.body > section + section {
  border-top: 4px solid var(--neon);
  margin-top: 44px;
  padding-top: 34px;
}

.body h2 {
  margin: 0 0 .65em;
  font-size: clamp(1.4rem, 4.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

.body h2 > span {
  display: inline-block;
  border-bottom: 6px solid var(--blue);
  padding-bottom: 2px;
}

.body h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--neon);
}

.body h3 > span { border-left: 8px solid var(--blue); padding-left: 9px; display: inline-block; }

.body p { max-width: 68ch; }
.body strong { color: var(--neon); }

.body ul, .body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.body li { margin: .4em 0; }

.body blockquote {
  margin: 1.4em 0;
  padding: .5em 0 .5em 1em;
  border-left: 8px solid var(--blue);
  color: var(--dim);
  background: #050505;
}

.body img {
  height: auto;
  border: 2px solid var(--neon);
  margin: .6em 0;
}

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

.body th, .body td {
  border: 2px solid #1d5c3c;
  padding: .5em .7em;
  text-align: left;
}

.body th { background: var(--blue); color: #fff; }

.body hr { border: 0; border-top: 3px solid var(--neon); margin: 2em 0; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 4px solid var(--blue);
  margin-top: 54px;
  padding: 0 14px 108px;
}

.foot-mega {
  overflow: hidden;
  padding: 24px 0 10px;
}

.foot-mega span {
  display: block;
  font-size: clamp(2rem, 13.5vw, 6.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--blue);
  -webkit-text-stroke: 1.5px var(--neon);
  white-space: nowrap;
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--neon);
  padding-top: 12px;
}

.copy { margin: 0; font-size: 16px; color: var(--dim); }

.foot-nav { display: flex; gap: 6px; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid var(--neon);
  font-size: 16px;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #000;
  border-top: 4px solid var(--neon);
}

.slot {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.slot.end { justify-content: flex-end; }

.dock a,
.dock summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--neon);
  white-space: nowrap;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }

.ico { font-size: 19px; line-height: 1; }

.brand {
  justify-content: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  letter-spacing: -.02em;
}

.brand .mark { display: block; width: 22px; height: 22px; border: 2px solid var(--neon); }

.dock a.cta {
  background: var(--neon);
  color: #000;
  border: 2px solid var(--neon);
}

.dock a.cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.drawer-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blue);
  border-top: 4px solid var(--neon);
  max-height: 62vh;
  overflow-y: auto;
}

.drawer-list li { border-bottom: 2px solid rgba(255, 255, 255, .22); }

.drawer-list a {
  color: #fff;
  min-height: 48px;
  padding: 10px 12px;
  white-space: normal;
}

.drawer-list a:hover { background: var(--neon); color: #000; }
.drawer-list .dot { color: var(--neon); font-size: 11px; }
.drawer-list a:hover .dot { color: #000; }

.half { display: none; }

/* ---------- 动画：逐项浮现 ---------- */
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.side-list li { animation: pop .18s both; }
.side-list li:nth-child(1) { animation-delay: .02s; }
.side-list li:nth-child(2) { animation-delay: .06s; }
.side-list li:nth-child(3) { animation-delay: .1s; }
.side-list li:nth-child(4) { animation-delay: .14s; }
.side-list li:nth-child(5) { animation-delay: .18s; }
.side-list li:nth-child(6) { animation-delay: .22s; }
.side-list li:nth-child(7) { animation-delay: .26s; }

.drawer[open] .drawer-list li { animation: pop .16s both; }
.drawer[open] .drawer-list li:nth-child(2) { animation-delay: .03s; }
.drawer[open] .drawer-list li:nth-child(3) { animation-delay: .06s; }
.drawer[open] .drawer-list li:nth-child(4) { animation-delay: .09s; }
.drawer[open] .drawer-list li:nth-child(5) { animation-delay: .12s; }
.drawer[open] .drawer-list li:nth-child(6) { animation-delay: .15s; }
.drawer[open] .drawer-list li:nth-child(7) { animation-delay: .18s; }

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }

  .shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 44px;
    padding: 0 26px 80px;
  }

  .side {
    order: 1;
    position: sticky;
    top: 26px;
    align-self: start;
    margin: 84px 0 0;
  }

  .body { order: 2; }

  .hero { padding-bottom: 56px; }
  .badge { top: 96px; right: 8px; font-size: 17px; }

  .dock {
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    padding: 7px 18px;
  }

  .drawer { display: none; }

  .half {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .dock a { padding: 0 10px; }

  .foot { padding: 0 26px 96px; }
}

@media (min-width: 1240px) {
  .dock a { padding: 0 14px; }
}

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