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

:root {
  --ink: #001e3c;
  --ink2: #001228;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #eafff6;
  --body: #b9e8d6;
  --line: rgba(153, 255, 204, 0.18);
  --card: rgba(153, 255, 204, 0.055);
  --rail: 220px;
  --top: 34px;
}

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

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

body {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  padding: calc(var(--top) + 66px) 0 0;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 32% at 16% 20%, rgba(0, 255, 65, 0.17), transparent 70%),
    radial-gradient(28% 28% at 84% 10%, rgba(153, 255, 204, 0.15), transparent 72%),
    radial-gradient(42% 38% at 72% 88%, rgba(0, 255, 65, 0.11), transparent 70%);
  filter: blur(34px);
  animation: breathe 15s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.09); opacity: 1; }
}

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

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

/* ---------- 顶部细条 ---------- */
.topline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--mint);
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.16), rgba(0, 30, 60, 0.94) 42%, rgba(0, 18, 40, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.6); }
  70% { box-shadow: 0 0 0 11px rgba(0, 255, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: var(--top);
  left: 0;
  right: 0;
  height: 58px;
  z-index: 66;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(0, 18, 40, 0.95);
  border-bottom: 1px solid var(--line);
}

.rail::-webkit-scrollbar { display: none; }

.mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  text-decoration: none;
}

.mark::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 54% 46% 40% 60% / 46% 54% 46% 54%;
  background: conic-gradient(from 0deg, var(--neon), var(--mint), var(--neon));
  animation: morph 9s ease-in-out infinite;
}

.mark.hasImg::before { display: none; }
.mark img { width: 26px; height: 26px; object-fit: contain; border-radius: 3px; display: block; }

@keyframes morph {
  0%, 100% { border-radius: 54% 46% 40% 60% / 46% 54% 46% 54%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 40% 60% 58% 42% / 60% 40% 60% 40%; transform: rotate(180deg) scale(1.12); }
}

.railLinks {
  display: flex;
  gap: 5px;
  flex: 1 1 auto;
}

.rl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #cfeee0;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.rl i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--neon);
  opacity: 0.8;
}

.rl:hover,
.rl[aria-current] {
  background: var(--card);
  border-color: var(--line);
  color: var(--paper);
}

.toTop {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mint);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.toTop:hover { background: var(--card); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 42px 20px 34px;
  max-width: 900px;
  margin: 0 auto;
}

.heroIn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.seed {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 52% 48% 44% 56% / 48% 52% 48% 52%;
  background: radial-gradient(circle at 34% 32%, var(--mint), rgba(0, 255, 65, 0.4) 58%, rgba(0, 255, 65, 0.05) 76%);
  box-shadow: 0 0 34px rgba(0, 255, 65, 0.35);
  animation: morph 11s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: var(--paper);
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.28);
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: 16.5px;
  color: var(--body);
}

/* ---------- 主体骨架 ---------- */
.wrap {
  display: grid;
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 46px;
}

/* ---------- 左侧索引 ---------- */
.index {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 15px 16px;
  box-shadow: 0 24px 48px -34px #000;
}

.index h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--mint);
}

.index hr {
  height: 1px;
  border: 0;
  margin: 9px 0 12px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 10px;
}

.index li { margin: 0 0 2px; break-inside: avoid; }

.index a {
  display: block;
  padding: 9px 8px;
  min-height: 40px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  color: #cbebdd;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.index a:hover,
.index a[aria-current] {
  background: rgba(0, 255, 65, 0.1);
  border-left-color: var(--neon);
  color: var(--paper);
}

/* ---------- 正文 ---------- */
.doc { min-width: 0; max-width: 780px; }

.prose {
  background: rgba(0, 255, 65, 0.028);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 18px 30px;
  box-shadow: 0 34px 70px -46px #000;
}

.prose > article {
  scroll-margin-top: calc(var(--top) + 78px);
  padding-bottom: 6px;
}

.prose > article + article {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid rgba(153, 255, 204, 0.13);
}

.prose h2 {
  margin: 0 0 0;
  font-size: clamp(21px, 3.6vw, 28px);
  line-height: 1.32;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.prose h3 {
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--mint);
}

.prose h2 + hr,
.prose h3 + hr {
  height: 2px;
  width: 62px;
  border: 0;
  margin: 11px 0 18px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.prose p { margin: 0 0 16px; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.15em; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--paper); }

.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, 0.55);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--paper); background: rgba(0, 255, 65, 0.14); }

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--neon);
  border-radius: 0 4px 4px 0;
  background: var(--card);
  color: #dcf8ec;
}

.prose img { border-radius: 4px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15.5px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 18, 40, 0.35), rgba(0, 18, 40, 0.96));
}

.footCta {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 18px 30px;
  text-align: center;
}

.footCta a {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--paper);
  font-weight: 900;
  font-size: clamp(23px, 5vw, 40px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 0 26px rgba(0, 255, 65, 0.3);
}

.footCta a:hover { color: var(--neon); }
.footCta .arrow { color: var(--neon); font-size: 0.78em; }

.footGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px 30px;
}

.footGrid address {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footGrid .mk {
  width: 16px;
  height: 16px;
  border-radius: 54% 46% 40% 60% / 46% 54% 46% 54%;
  background: conic-gradient(from 0deg, var(--neon), var(--mint), var(--neon));
  animation: morph 9s ease-in-out infinite;
}

.fnav dt {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--mint);
  margin-bottom: 8px;
}

.fnav dd { margin: 0; }

.fnav a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  color: #cbebdd;
  font-size: 15px;
  text-decoration: none;
}

.fnav a:hover { color: var(--neon); }

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

.footGrid ul a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  color: #cbebdd;
  font-size: 15px;
  text-decoration: none;
}

.footGrid ul a:hover { color: var(--neon); }

.footBase {
  border-top: 1px solid var(--line);
  padding: 14px 18px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #7fb9a4;
}

/* ---------- 滚动入场 ---------- */
.rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 65ms);
}

.rev.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .footGrid { grid-template-columns: 1.15fr 1fr 1fr; gap: 30px; }
  .prose { padding: 30px 30px 36px; }
}

@media (min-width: 1000px) {
  body { padding: calc(var(--top) + 34px) 0 0 calc(var(--rail) + 44px); }

  .rail {
    top: var(--top);
    right: auto;
    bottom: 0;
    height: auto;
    width: var(--rail);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 16px;
    overflow: visible;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(0, 30, 60, 0.96), rgba(0, 18, 40, 0.97));
  }

  .mark { width: 44px; height: 44px; margin: 0 0 4px; }

  .railLinks {
    flex-direction: column;
    gap: 2px;
    margin-top: 22px;
    flex: 1 1 auto;
  }

  .rl { min-height: 46px; }

  .toTop {
    margin: auto 0 0;
    font-size: 14px;
  }

  .wrap {
    grid-template-columns: 202px minmax(0, 1fr);
    gap: 34px;
    padding: 0 40px 64px 0;
  }

  .index { position: sticky; top: calc(var(--top) + 26px); align-self: start; }
  .index ol { columns: 1; }
}

@media (min-width: 1180px) {
  .hero { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .pulse,
  .mark::before,
  .seed,
  .footGrid .mk { animation: none; }
  .rev { opacity: 1; transform: none; transition: none; }
}

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