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

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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --void: #07120c;
  --paper: #e9fff1;
  --dim: #9fc4ae;
  --edge: rgba(105, 255, 105, 0.26);
  --glass: rgba(20, 60, 40, 0.32);
  --radius: 4px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--paper);
  background:
    radial-gradient(1200px 620px at 12% -10%, rgba(0, 255, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 88% 2%, rgba(105, 255, 105, 0.15), transparent 58%),
    radial-gradient(760px 700px at 50% 112%, rgba(255, 105, 180, 0.13), transparent 62%),
    linear-gradient(180deg, #0b1a11, #07120c 56%, #0a1710);
  background-attachment: fixed;
}

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 9;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--neon);
  color: #06210f;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px clamp(10px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(15, 43, 28, 0.88), rgba(9, 26, 17, 0.55));
  border-bottom: 1px solid rgba(105, 255, 105, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
}

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

.bar-left { justify-content: flex-end; }
.bar-right { justify-content: flex-start; }

.bar-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 2px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 15.5px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.bar-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.bar-list a:hover,
.bar-list a:focus-visible {
  color: #ffffff;
  border-color: var(--edge);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

.brand-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #69ff69, #00ffff, #ffffff, #69ff69);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.75), inset 0 0 6px rgba(255, 255, 255, 0.9);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #ffffff, #d8ffe8 42%, #7fffe0 62%, #69ff69 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.45));
}

/* ---------- 主体 ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: clamp(20px, 3vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(10px, 3vw, 28px) 64px;
}

.doc {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  justify-self: center;
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-content: center;
  gap: 14px;
  min-height: 45vh;
  padding: clamp(22px, 5vw, 42px) 18px;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(0, 255, 255, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(23, 38, 23, 0.72), rgba(10, 26, 18, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 22px 50px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  opacity: 0.45;
  background: conic-gradient(from 90deg, rgba(105, 255, 105, 0.2), rgba(0, 255, 255, 0.22), rgba(255, 105, 180, 0.16), rgba(105, 255, 105, 0.2));
  animation: spin 26s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(0, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(82% 78% at 50% 42%, #000, transparent);
  mask-image: radial-gradient(82% 78% at 50% 42%, #000, transparent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 4px;
}

.hero-fig {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: conic-gradient(from 210deg, #69ff69, #00ffff, #ffffff, #a6ffd2, #69ff69);
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.55), inset 0 -6px 12px rgba(0, 60, 40, 0.45);
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(25px, 5.2vw, 48px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  font-weight: 700;
  background: linear-gradient(178deg, #ffffff 6%, #e8fff1 34%, #8ef7ff 53%, #69ff69 76%, #0f6240 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.38)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}

.lede {
  max-width: 44ch;
  margin: 0 auto;
  color: #cdeeda;
  font-size: 16.5px;
}

/* ---------- 正文 ---------- */
.doc > section[id] {
  position: relative;
  margin-top: clamp(18px, 3vw, 32px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.doc > section[id]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
  opacity: 0.85;
}

div h2 {
  margin: 0.15em 0 0.6em;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.36;
  font-weight: 600;
  color: #f4fff8;
  letter-spacing: 0.01em;
}

div h3 {
  margin: 1.2em 0 0.4em;
  font-size: 18.5px;
  line-height: 1.45;
  font-weight: 600;
  color: #d7ffe6;
}

div p { margin: 0 0 1em; }

div ul,
div ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

div li { margin-bottom: 0.42em; }

div li::marker { color: var(--cyan); }

div strong { color: #ffffff; }

div a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 255, 0.42);
}

div a:hover {
  color: #ffffff;
  background: rgba(0, 255, 255, 0.12);
}

div blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(105, 255, 105, 0.08);
  color: #dcf8e7;
}

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

div table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

div th,
div td {
  padding: 8px 10px;
  border: 1px solid rgba(105, 255, 105, 0.24);
  text-align: left;
}

div th { background: rgba(0, 255, 255, 0.1); }

div code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 255, 255, 0.13);
  font-size: 0.94em;
}

small {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  opacity: 0.88;
}

small + h2,
small + h3 { margin-top: 0.3em; }

/* ---------- 侧栏 ---------- */
.rail {
  align-self: start;
  padding: 16px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 48, 32, 0.62), rgba(9, 24, 16, 0.48));
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail-title {
  margin: 0.35em 0 0.75em;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: #eafff2;
}

.rail-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #d8f5e4;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rail-list a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  color: var(--neon);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #ffffff;
  border-color: rgba(0, 255, 255, 0.36);
  background: rgba(0, 255, 255, 0.1);
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: clamp(26px, 5vw, 46px) clamp(14px, 4vw, 28px) 34px;
  text-align: center;
  border-top: 1px solid rgba(105, 255, 105, 0.2);
  background: linear-gradient(180deg, rgba(10, 28, 18, 0.25), rgba(6, 16, 10, 0.72));
}

footer p { margin: 0 0 12px; }

.foot-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  border-radius: 999px;
  color: #06210f;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #cdffdb 18%, #69ff69 48%, #00ffff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 12px 30px rgba(0, 255, 255, 0.32), 0 0 40px rgba(105, 255, 105, 0.28);
  transition: transform 0.2s, box-shadow 0.25s;
}

.foot-cta a:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #ffffff, 0 16px 36px rgba(0, 255, 255, 0.45), 0 0 54px rgba(105, 255, 105, 0.4);
}

.foot-copy {
  color: var(--dim);
  font-size: 15px;
  letter-spacing: 0.06em;
}

footer small {
  color: rgba(159, 196, 174, 0.8);
  letter-spacing: 0.16em;
}

/* ---------- 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
}

/* ---------- 断点 ---------- */
@media (min-width: 901px) {
  .bar { position: sticky; top: 0; }
  .rail { position: sticky; top: 96px; }
  .doc > section[id] { scroll-margin-top: 104px; }
}

@media (max-width: 900px) {
  .bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 4px;
  }

  .brand {
    order: -1;
    flex: 0 0 100%;
    justify-content: center;
  }

  .bar-list {
    flex: 1 1 100%;
    justify-content: center;
  }

  .bar-list a { padding: 2px 9px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 40px;
  }

  .doc { max-width: none; }

  .rail { order: 2; margin-top: 10px; }

  .hero-fig { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .bar-list a { font-size: 15px; }
  .hero { min-height: 42vh; padding-left: 12px; padding-right: 12px; }
  .hero-top { gap: 10px; }
}

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