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

:root {
  --ink: #000000;
  --neon: #00ff80;
  --blue: #0000ff;
  --paper: #f2f2f2;
  --line: #232323;
  --pad: clamp(1rem, 4vw, 2.75rem);
  --dock: 118px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: var(--dock);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 80px 100%;
  color: var(--paper);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
}

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

/* ---------- 顶部荧光细条 ---------- */

.strip {
  background: var(--neon);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}

.roll {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  margin: 0;
  padding: 0.42rem 0;
  animation: roll 26s linear infinite;
}

.roll span {
  white-space: nowrap;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

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

/* ---------- 底部固定导航 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 4px solid var(--neon);
  padding: 0.5rem clamp(0.4rem, 2vw, 1.1rem) calc(0.55rem + env(safe-area-inset-bottom));
}

.dock-nav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto;
  max-width: 1100px;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  animation: pop 0.12s steps(2, end) both;
}

.dock-nav a:nth-child(1) { animation-delay: 0.02s; }
.dock-nav a:nth-child(2) { animation-delay: 0.05s; }
.dock-nav a:nth-child(3) { animation-delay: 0.08s; }
.dock-nav a:nth-child(4) { animation-delay: 0.11s; }
.dock-nav a:nth-child(5) { animation-delay: 0.14s; }
.dock-nav a:nth-child(6) { animation-delay: 0.17s; }
.dock-nav a:nth-child(7) { animation-delay: 0.2s; }
.dock-nav a:nth-child(8) { animation-delay: 0.23s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dock-nav a:hover,
.dock-nav a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}

.dock-brand {
  background: var(--neon);
  border-color: var(--neon) !important;
  color: var(--ink) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-inline: 1rem !important;
}

.dock-brand:hover {
  background: var(--blue);
  border-color: var(--blue) !important;
  color: #ffffff !important;
}

/* ---------- 骨架 ---------- */

.main { display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: 2rem 0 3rem;
}

.body { min-width: 0; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem 0 5rem;
  overflow: hidden;
  background: #060606;
  border-left: 4px solid var(--neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), 0 100%);
}

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

.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}

.hero-in {
  position: relative;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  max-width: 960px;
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.5rem, 8.5vw, 5.6rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 5px 5px 0 var(--blue);
}

.hero-sub {
  margin: 0;
  max-width: 44ch;
  padding-left: 0.9rem;
  border-left: 6px solid var(--neon);
  color: var(--neon);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- 正文 ---------- */

.prose {
  counter-reset: sec;
  padding-top: 2.5rem;
  overflow-wrap: break-word;
}

.prose > article {
  counter-increment: sec;
  border-top: 4px solid var(--blue);
  padding-top: 1.6rem;
  margin-top: 3rem;
  scroll-margin-top: 1.5rem;
}

.prose > article::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--neon);
}

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.prose h2 > span {
  background: var(--neon);
  color: var(--ink);
  padding: 0.02em 0.32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.prose h3 > span {
  border-bottom: 3px solid var(--blue);
  padding-bottom: 0.08em;
}

.prose p { margin: 0 0 1.15rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.prose li { margin: 0.4rem 0; }

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

.prose a:hover {
  background: var(--neon);
  color: var(--ink);
  text-decoration: none;
}

.prose strong {
  background: var(--blue);
  color: #ffffff;
  padding: 0 0.22em;
  font-weight: 700;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: #0a0a0a;
  border-left: 8px solid var(--neon);
  font-weight: 600;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  margin: 1.2rem 0;
  border: 3px solid var(--neon);
}

.prose hr {
  border: 0;
  border-top: 3px dashed var(--line);
  margin: 2rem 0;
}

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.95em;
  background: #111111;
  border: 1px solid var(--line);
  padding: 0.05em 0.3em;
}

/* ---------- 右侧栏 ---------- */

.side {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.side-block {
  border: 3px solid var(--neon);
  background: #070707;
  padding: 1rem;
}

.side-block--alt { border-color: var(--blue); }

.side h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.side h2 > span {
  display: inline-block;
  background: var(--neon);
  color: var(--ink);
  padding: 0.12em 0.5em;
}

.side-block--alt h2 > span {
  background: var(--blue);
  color: #ffffff;
}

.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side li + li { border-top: 1px solid var(--line); }

.side li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.15rem;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.side li a:hover {
  background: var(--neon);
  color: var(--ink);
}

.top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 3px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.top-link:hover {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 4px solid var(--neon);
  background: #050505;
}

.foot p {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.foot p a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  border-bottom: 2px solid var(--line);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.foot p a:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.foot p:first-child a {
  color: var(--neon);
  font-weight: 800;
}

.foot small {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--line);
  text-align: center;
  color: #9c9c9c;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- 断点 ---------- */

@media (max-width: 960px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root { --dock: 168px; }

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

  .hero {
    min-height: calc(100svh - 40px);
    border-left-width: 0;
    padding: 2.5rem 0 4.5rem;
  }

  .hero-in { padding: 0; }

  .hero h1 { text-shadow: 4px 4px 0 var(--blue); }
}

@media (max-width: 520px) {
  :root { --dock: 210px; }

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

  .side { grid-template-columns: minmax(0, 1fr); }

  .dock-nav p { gap: 0.35rem; }

  .dock-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.98rem;
  }

  .prose > article::before { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roll { animation: none; }
  .dock-nav a { animation: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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