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

:root {
  --ink: #192617;
  --ink-deep: #0c150d;
  --green: #87ff71;
  --cyan: #01cdfe;
  --violet: #b967ff;
  --pink: #ff71ce;
  --text: #d9ffe4;
  --muted: #93bba1;
  --line: rgba(135, 255, 113, 0.18);
  --line-cy: rgba(1, 205, 254, 0.28);
  --shell: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: 72px;
  font-family: 'Atkinson Hyperlegible', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(1, 205, 254, 0.18), transparent 62%),
    radial-gradient(880px 480px at 88% -4%, rgba(185, 103, 255, 0.17), transparent 58%),
    linear-gradient(180deg, #0c150d 0%, #192617 44%, #0b130c 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 18px;
  background: rgba(11, 20, 12, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(1, 205, 254, 0.25), 0 14px 40px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav { min-width: 0; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-a ul { justify-content: flex-end; }
.nav-b { padding-right: 104px; }
.nav-b ul { justify-content: flex-start; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, text-shadow 0.2s, background 0.2s;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.85);
  background: rgba(135, 255, 113, 0.07);
}
.nav a.cta {
  color: #08130a;
  font-weight: 700;
  padding: 0 16px;
  background: linear-gradient(100deg, var(--green), var(--cyan) 88%);
  box-shadow: 0 0 20px rgba(1, 205, 254, 0.45);
}
.nav a.cta:hover,
.nav a.cta:focus-visible {
  color: #08130a;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(1, 205, 254, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #eefff3;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.75), 0 0 30px rgba(135, 255, 113, 0.4);
}
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}

.burger {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  font: inherit;
  font-size: 16px;
  color: var(--green);
  background: rgba(135, 255, 113, 0.09);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.burger:hover { background: rgba(135, 255, 113, 0.18); }
.burger-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.burger-box i {
  display: block;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: transform 0.25s, opacity 0.2s;
}
.topbar.open .burger-box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.open .burger-box i:nth-child(2) { opacity: 0; }
.topbar.open .burger-box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 全屏遮罩菜单 */
.topbar.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  inset: 0;
  padding: 82px 22px 42px;
  overflow-y: auto;
  background: rgba(9, 16, 10, 0.975);
}
.topbar.open .brand {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 18px;
}
.topbar.open .nav { width: 100%; }
.topbar.open .nav-b { padding-right: 0; }
.topbar.open .nav ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.topbar.open .nav a {
  min-height: 52px;
  padding: 10px 4px;
  font-size: 21px;
  color: #d6ffe1;
  border-bottom: 1px dashed rgba(135, 255, 113, 0.16);
  border-radius: 0;
}
.topbar.open .nav a.cta {
  margin-top: 12px;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 19px;
  border-bottom: 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  min-height: 45vh;
  padding: 34px 22px 0;
  overflow: hidden;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.hero-deco {
  position: absolute;
  right: -1%;
  bottom: -6%;
  z-index: 0;
  font-size: clamp(130px, 27vw, 300px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(1, 205, 254, 0.38);
  text-shadow: 0 0 50px rgba(1, 205, 254, 0.3);
  pointer-events: none;
  user-select: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.24) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 75%);
  mask-image: linear-gradient(180deg, transparent, #000 75%);
}
.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 760px;
}
.hero-h1 {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(29px, 5.6vw, 56px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #f3fff6;
  text-shadow:
    0 0 10px rgba(1, 205, 254, 0.95),
    0 0 34px rgba(1, 205, 254, 0.45),
    3px 3px 0 rgba(185, 103, 255, 0.55);
}
.hero-h1::before,
.hero-h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-h1::before {
  color: var(--cyan);
  opacity: 0.55;
  clip-path: inset(0 0 56% 0);
  animation: glitch 5.5s infinite linear;
}
.hero-h1::after {
  color: var(--pink);
  opacity: 0.5;
  clip-path: inset(52% 0 0 0);
  animation: glitch 5.5s infinite linear reverse;
}
@keyframes glitch {
  0%, 91%, 100% { transform: translate(0, 0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 0); }
}
.hero-desc {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  color: #b6dcc2;
}
.hero-media {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 14px;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-cy);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -12px 44px rgba(1, 205, 254, 0.22);
}

/* ---------- 主区 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 38px 22px 56px;
}

.rail {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(24, 41, 25, 0.9), rgba(12, 21, 13, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(1, 205, 254, 0.09);
}
.rail-t {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.rail-t span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-cy);
}
.rail-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-nav li {
  animation: rise 0.5s both;
}
.rail-nav li:nth-child(1) { animation-delay: 0.04s; }
.rail-nav li:nth-child(2) { animation-delay: 0.09s; }
.rail-nav li:nth-child(3) { animation-delay: 0.14s; }
.rail-nav li:nth-child(4) { animation-delay: 0.19s; }
.rail-nav li:nth-child(5) { animation-delay: 0.24s; }
.rail-nav li:nth-child(6) { animation-delay: 0.29s; }
.rail-nav li:nth-child(7) { animation-delay: 0.34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 5px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: var(--green);
  background: rgba(135, 255, 113, 0.09);
}
.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.rail-top { margin-top: 4px; }

.to-top {
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(1, 205, 254, 0.09);
  border: 1px solid var(--line-cy);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.to-top:hover,
.to-top:focus-visible {
  background: rgba(1, 205, 254, 0.2);
  box-shadow: 0 0 18px rgba(1, 205, 254, 0.45);
}

.stage { min-width: 0; }

.prose {
  min-width: 0;
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.prose > *:first-child { margin-top: 0; }
.prose > article {
  padding: 26px 0;
  scroll-margin-top: 96px;
}
.prose > article + article {
  border-top: 1px dashed rgba(135, 255, 113, 0.17);
}
.prose h2,
.prose h3 {
  color: #effff4;
}
.prose h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 15px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.32;
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.55);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  bottom: 0.24em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px rgba(1, 205, 254, 0.75);
}
.prose h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  color: #d9f6ff;
  text-shadow: 0 0 12px rgba(185, 103, 255, 0.5);
}
.prose h2 span,
.prose h3 span { display: inline; }
.prose p { margin: 0 0 14px; }
.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--green); }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--green); }
.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 4px 4px 0;
  background: rgba(1, 205, 254, 0.08);
  color: #d2effa;
}
.prose img {
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.prose table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--line);
}
.prose th {
  color: #eafff0;
  background: rgba(1, 205, 254, 0.12);
}
.prose code {
  padding: 1px 5px;
  font-size: 16px;
  background: rgba(135, 255, 113, 0.12);
  border-radius: 3px;
}
.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(9, 16, 10, 0.85);
}
.prose pre code { padding: 0; background: none; }
.prose hr {
  height: 0;
  margin: 24px 0;
  border: 0;
  border-top: 1px dashed rgba(1, 205, 254, 0.3);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 24px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 21, 13, 0.35), rgba(7, 13, 8, 0.96));
}
.f-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 38px 22px 16px;
}
.f-brand { flex: 1 1 230px; min-width: 180px; }
.mega {
  display: block;
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: transparent;
  background: linear-gradient(95deg, var(--green), var(--cyan) 52%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(1, 205, 254, 0.45));
}
.f-nav,
.f-col { flex: 1 1 190px; }
.foot h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.foot h3 span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-cy);
}
.foot ul {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}
.foot li a:hover,
.foot li a:focus-visible { color: var(--green); }
.f-col p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.f-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 22px 34px;
  border-top: 1px dashed rgba(135, 255, 113, 0.14);
}
.f-bar p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 滚动显现 ---------- */
.js .js-rel {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .js-rel.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 0 9px; font-size: 16px; }
  .nav-b { padding-right: 96px; }
  .brand { font-size: 17px; letter-spacing: 0.08em; }
}

@media (max-width: 980px) {
  .nav ul { display: none; }
  .topbar.open .nav ul { display: flex; }
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 18px 42px;
  }
  .rail {
    position: static;
    order: 2;
  }
  .hero { min-height: 0; padding: 26px 18px 0; }
  .hero-deco { font-size: clamp(96px, 30vw, 180px); opacity: 0.85; }
  .f-main { padding: 28px 18px 12px; gap: 20px; }
  .f-brand,
  .f-nav,
  .f-col { flex: 1 1 100%; }
  .f-bar { padding: 12px 18px 30px; }
}

@media (max-width: 520px) {
  body { padding-top: 66px; }
  .topbar { min-height: 58px; padding: 6px 12px; }
  .brand { font-size: 16px; letter-spacing: 0.04em; }
  .brand-mark { width: 8px; height: 8px; }
  .burger { right: 10px; padding: 0 10px; }
  .hero-h1 { font-size: clamp(26px, 8vw, 34px); }
  .prose h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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