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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0b120b;
  --panel: #12200f;
  --text: #e6ffe6;
  --dim: #a9d8b4;
  --chrome: linear-gradient(180deg, #f6fff6 0%, #b7e7c1 38%, #3f6e4b 58%, #dcffe3 100%);
  --edge: rgba(105, 255, 105, 0.28);
  --r: 4px;
  --mono: 'Space Mono', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font: 400 16px/1.7 var(--mono);
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 10% -6%, rgba(105, 255, 105, 0.22), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(0, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 60% 120%, rgba(105, 255, 105, 0.12), transparent 50%),
    linear-gradient(180deg, #172617 0%, #0b120b 72%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--edge);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.97), rgba(11, 18, 11, 0.92));
  backdrop-filter: blur(8px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid var(--cyan);
  border-radius: var(--r);
  background: var(--chrome);
  color: #0a150a;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 255, 255, 0.35);
}

.brand-glyph { color: #10401f; }
.brand-txt { line-height: 1; }
.brand:hover { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)); }

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-list li { flex: 0 0 auto; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: var(--r);
  color: #d5ffdf;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(105, 255, 105, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #0d2a0d;
  border-radius: var(--r);
  background: linear-gradient(165deg, var(--neon) 0%, #b6ff2e 48%, #43e0a2 100%);
  color: #0a1a0a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(105, 255, 105, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(105, 255, 105, 0.8), inset 0 1px 0 #fff;
}

/* ---------- 主体 ---------- */
.main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
  min-height: 45vh;
  padding: 14px 0 22px;
  border-bottom: 2px dashed rgba(0, 255, 255, 0.35);
}

.kicker {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.55);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #f2fff2;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.55), 2px 2px 0 rgba(0, 255, 255, 0.35);
}

.lede {
  margin: 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.75;
}

.hero-fig {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  gap: 8px;
}

.hero-art {
  width: 100%;
  border: 2px solid var(--cyan);
  border-radius: var(--r);
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
}

.bubble {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, rgba(0, 255, 255, 0.8) 34%, rgba(105, 255, 105, 0.4) 64%, rgba(105, 255, 105, 0.05) 78%);
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.6));
  animation: float 5s ease-in-out infinite;
}

.bubble-b {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, rgba(105, 255, 105, 0.9) 40%, rgba(0, 255, 255, 0.3) 72%, transparent 80%);
  animation-delay: -2.2s;
}

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

/* ---------- 目录 + 正文 ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 22px;
}

.index {
  padding: 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(180deg, rgba(18, 32, 15, 0.95), rgba(11, 18, 11, 0.9));
}

.index-h {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.5);
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.index-list a:hover,
.index-list a:focus-visible,
.index-list a.on {
  color: #0a1a0a;
  background: var(--chrome);
  border-color: var(--cyan);
}

.rule {
  border: 0;
  height: 3px;
  margin: 0 0 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 60%, transparent);
}

.prose { min-width: 0; }

.prose > div {
  scroll-margin-top: 86px;
  margin: 0 0 18px;
  padding: 16px 14px 18px;
  border: 1px solid var(--edge);
  border-bottom: 3px solid var(--neon);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.86), rgba(11, 18, 11, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: rise 0.45s ease both;
}

.prose > div:nth-child(1) { animation-delay: 0.02s; }
.prose > div:nth-child(2) { animation-delay: 0.06s; }
.prose > div:nth-child(3) { animation-delay: 0.1s; }
.prose > div:nth-child(4) { animation-delay: 0.14s; }
.prose > div:nth-child(5) { animation-delay: 0.18s; }
.prose > div:nth-child(6) { animation-delay: 0.22s; }
.prose > div:nth-child(7) { animation-delay: 0.26s; }

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

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 5vw, 27px);
  line-height: 1.3;
  color: #f4fff4;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.45);
}

.prose h2 + hr {
  border: 0;
  height: 3px;
  margin: 0 0 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, transparent);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  color: var(--neon);
}

.prose h3 + hr {
  border: 0;
  height: 1px;
  margin: 0 0 12px;
  background: rgba(0, 255, 255, 0.4);
}

.prose p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
  line-height: 1.8;
}

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

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

.prose a:hover { color: #fff; }

.prose blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--cyan);
  border-radius: var(--r);
  background: rgba(0, 255, 255, 0.07);
  color: #d9fff2;
}

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

.prose img {
  border: 2px solid var(--edge);
  border-radius: var(--r);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 2px solid var(--edge);
  background: linear-gradient(180deg, rgba(11, 18, 11, 0.6), rgba(6, 10, 6, 0.95));
  padding: 24px 14px 14px;
}

.foot-brand {
  margin: 0 0 16px;
  font-size: clamp(34px, 13vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, var(--neon) 46%, var(--cyan) 78%, #2b6b4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(105, 255, 105, 0.35));
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 18px;
}

.foot-dl { margin: 0; }

.foot-dl dt {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--neon);
  margin: 0 0 6px;
}

.foot-dl dd {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.foot-links { display: flex; flex-direction: column; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible { color: var(--cyan); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid rgba(105, 255, 105, 0.18);
  color: var(--dim);
  font-size: 16px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--cyan);
  text-decoration: none;
}

.top-link:hover { background: rgba(0, 255, 255, 0.14); color: #fff; }

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .main { padding: 26px 20px 48px; }
  .hero { grid-template-columns: minmax(0, 1fr) 190px; gap: 26px; }
  .hero-art { border-width: 3px; }
  .bubble { width: 96px; height: 96px; }
  .bubble-b { width: 52px; height: 52px; }
  .prose > div { padding: 22px 22px 24px; }
}

@media (min-width: 900px) {
  .doc { grid-template-columns: 208px minmax(0, 1fr); gap: 26px; align-items: start; }
  .index { position: sticky; top: 78px; }
  .index-list { flex-direction: column; flex-wrap: nowrap; }
  .index-list a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble,
  .prose > div { animation: none; }
  .nav-list a,
  .cta { transition: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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