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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --ink-deep: #0b130c;
  --chrome: linear-gradient(180deg, #ffffff 0%, #dcffdc 20%, #8dffa2 44%, #24c46e 62%, #eaffea 88%);
  --glass: rgba(105, 255, 105, 0.07);
  --line: rgba(0, 255, 255, 0.26);
  --r: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  color: #e6ffe8;
  font-family: "Rubik", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(900px 620px at 84% -10%, rgba(0, 255, 255, 0.22), transparent 62%),
    radial-gradient(760px 540px at 4% 10%, rgba(105, 255, 105, 0.18), transparent 60%),
    radial-gradient(700px 700px at 74% 92%, rgba(0, 255, 255, 0.13), transparent 66%),
    linear-gradient(180deg, #0b130c 0%, #172617 48%, #0d1a10 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
}

/* ---------- 顶部细条 + 头部 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(11, 19, 12, 0.94), rgba(11, 19, 12, 0.68));
  border-bottom: 1px solid rgba(0, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ticker {
  margin: 0;
  padding: 7px 14px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.14em;
  overflow-wrap: anywhere;
  color: #c9ffd6;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), rgba(105, 255, 105, 0.2), rgba(0, 255, 255, 0.16));
  border-bottom: 1px solid rgba(0, 255, 255, 0.14);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 9px 16px;
}

.brand {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, #d3ffd8 32%, #69ff69 58%, #0fa860 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 0 22px rgba(105, 255, 105, 0.5);
  color: #0d1f0e;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  line-height: 1;
}

.pill-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill-nav p {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 2px;
  width: max-content;
  min-width: 100%;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #d7ffdf;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pill-nav a:hover,
.pill-nav a:focus-visible {
  background: rgba(0, 255, 255, 0.15);
  border-color: var(--line);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 46px 22px 64px;
  min-height: calc(100vh - 128px);
  min-height: calc(100svh - 128px);
}

.hero-copy {
  min-width: 0;
}

.badge {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0, 255, 255, 0.85);
}

.hero h1 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(105, 255, 105, 0.45));
}

.hero-sub {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #7ffcff;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.55);
}

.subtitle {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  color: #c9f7d3;
}

.hero-cta {
  margin: 0;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #f4fff4 0%, #b6ffb6 28%, #69ff69 58%, #23c66b 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 10px 26px rgba(105, 255, 105, 0.35);
  color: #0d1f0e;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 16px 34px rgba(105, 255, 105, 0.5);
}

.hero-figure {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 380px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(0, 255, 255, 0.18), rgba(105, 255, 105, 0.08) 54%, rgba(0, 255, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 255, 255, 0.28);
  pointer-events: none;
  z-index: 2;
}

.hero-art {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #7dffc6 30%, rgba(0, 255, 255, 0.55) 60%, rgba(0, 255, 255, 0) 72%);
  box-shadow: 0 0 46px rgba(0, 255, 255, 0.45);
  animation: floaty 7s ease-in-out infinite;
}

.orb-a {
  width: 170px;
  height: 170px;
  top: 9%;
  left: 7%;
}

.orb-b {
  width: 116px;
  height: 116px;
  bottom: 11%;
  right: 9%;
  animation-delay: -3.2s;
}

.spark {
  position: relative;
  z-index: 3;
  font-size: 46px;
  color: #eaffff;
  text-shadow: 0 0 26px rgba(0, 255, 255, 0.9), 0 0 60px rgba(105, 255, 105, 0.7);
}

@keyframes floaty {
  50% {
    transform: translateY(-16px);
  }
}

/* ---------- 主体：左侧目录 + 右侧正文 ---------- */

.shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 34px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 20px 22px 10px;
}

.rail {
  position: sticky;
  top: 104px;
  align-self: start;
  min-width: 0;
  padding: 18px 16px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rail-label {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: #7ffcff;
}

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

.rail-list li {
  margin: 0 0 4px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 9px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #d9ffe2;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rail-list .num {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(0, 255, 255, 0.75);
}

.rail-list .txt {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

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

.doc {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc section {
  position: relative;
  margin: 0 0 22px;
  padding: 26px 26px 30px;
  max-width: 100%;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  scroll-margin-top: 112px;
  overflow-wrap: anywhere;
}

.doc section::after {
  content: "\2726";
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 15px;
  color: rgba(0, 255, 255, 0.42);
  pointer-events: none;
}

.doc section:target {
  border-color: rgba(105, 255, 105, 0.6);
  box-shadow: 0 0 0 1px rgba(105, 255, 105, 0.35), 0 0 46px rgba(105, 255, 105, 0.18);
}

.doc h2 {
  margin: 0 0 12px;
  padding-bottom: 3px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(105, 255, 105, 0.3));
}

.doc h2 + p,
.doc h2 + p.subtitle {
  margin-top: 0;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--neon);
}

.doc p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(232, 255, 234, 0.9);
}

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

.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
  line-height: 1.85;
  color: rgba(232, 255, 234, 0.9);
}

.doc li {
  margin: 0 0 8px;
}

.doc strong,
.doc b {
  color: #f0fff2;
}

.doc a {
  color: var(--cyan);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc a:hover {
  color: #ffffff;
}

.doc blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  max-width: 100%;
  border-left: 3px solid var(--cyan);
  border-radius: 4px 18px 18px 4px;
  background: rgba(0, 255, 255, 0.09);
  color: #dbfff1;
}

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

.doc img,
.doc svg,
.doc video,
.doc iframe {
  max-width: 100%;
}

.doc img {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

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

.doc th,
.doc td {
  padding: 9px 12px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: rgba(105, 255, 105, 0.12);
  color: #eafff0;
}

.doc pre {
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(0, 255, 255, 0.1);
  line-height: 1.6;
}

.doc code {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.14);
  font-family: "Rubik", ui-monospace, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.doc pre code {
  padding: 0;
  background: none;
}

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

footer {
  margin-top: 54px;
  padding: 26px 22px 40px;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.05), transparent);
}

footer p {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #c4f7ce;
}

footer small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
  color: rgba(196, 247, 206, 0.6);
}

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, #f4fff4 0%, #b6ffb6 32%, #69ff69 62%, #23c66b 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 10px 26px rgba(0, 0, 0, 0.4);
  color: #0d1f0e;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 滚动揭示 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

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

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    min-height: 0;
    padding: 28px 16px 42px;
  }

  .hero-figure,
  .hero-art {
    min-height: 280px;
  }

  .hero-figure {
    aspect-ratio: 16 / 11;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 12px 16px 6px;
  }

  .rail {
    position: static;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .doc section {
    padding: 22px 16px 24px;
    scroll-margin-top: 128px;
  }

  footer {
    padding: 22px 16px 36px;
  }
}

@media (max-width: 480px) {
  .ticker {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .head-row {
    gap: 8px;
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-sub {
    letter-spacing: 0.22em;
  }

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

  .doc section::after {
    right: 12px;
  }

  .totop {
    right: 12px;
    bottom: 12px;
    padding: 0 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .pill-nav a,
  .rail-list a {
    transition: none;
  }
}

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