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

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

:root {
  --ink: #192617;
  --bg: #0b100e;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --txt: #d9e8d4;
  --dim: #93a890;
  --line: rgba(135, 255, 113, 0.22);
  --glass: rgba(25, 38, 23, 0.55);
  --r: 10px;
  --pad: clamp(16px, 4.2vw, 40px);
  --wrap: 1180px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--txt);
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(1, 205, 254, 0.16), transparent 62%),
    radial-gradient(820px 460px at 92% 6%, rgba(255, 113, 206, 0.12), transparent 60%),
    radial-gradient(700px 420px at 4% 34%, rgba(135, 255, 113, 0.09), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(180deg, rgba(135, 255, 113, 0.06) 0 1px, transparent 1px 4px);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 61;
  pointer-events: none;
  background: linear-gradient(90deg, var(--pink), var(--cyan) 45%, var(--neon));
}

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

/* 顶部 */
.sitehead {
  position: relative;
  z-index: 20;
  padding: 16px var(--pad) 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 16, 14, 0.96), rgba(11, 16, 14, 0.74));
}

.brandrow {
  display: flex;
  align-items: center;
  margin: 0 0 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #06200a;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 18px rgba(135, 255, 113, 0.45);
}

.brandtext {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.55);
}

.topnav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 0.94rem;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--neon);
  border-color: var(--line);
  background: rgba(135, 255, 113, 0.08);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.65);
}

.topnav a.cta {
  margin-left: auto;
  padding: 9px 16px;
  font-weight: 700;
  color: #06200a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 22px rgba(1, 205, 254, 0.35);
}

.topnav a.cta:hover {
  color: #041a06;
  text-shadow: none;
  filter: brightness(1.08);
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding: clamp(26px, 5vw, 52px) var(--pad) clamp(30px, 6vw, 62px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 113, 206, 0.12), rgba(1, 205, 254, 0.07) 55%, transparent),
    radial-gradient(680px 240px at 18% 108%, rgba(135, 255, 113, 0.18), transparent 70%);
}

.hero-in {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

.ghost {
  position: absolute;
  top: 50%;
  right: clamp(0px, 3vw, 34px);
  transform: translateY(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 21vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135, 255, 113, 0.24);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero h1 {
  position: relative;
  margin: 0 0 14px;
  max-width: 20ch;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.85rem, 6.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: #eefce8;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.45), 0 0 52px rgba(1, 205, 254, 0.28);
}

.hero .subtitle {
  position: relative;
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  color: var(--dim);
}

/* 主体 */
.stage {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) var(--pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.side {
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(1, 205, 254, 0.06) inset;
}

.side-h {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.45);
}

.side .subtitle {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.toc {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.96rem;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.toc .n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(1, 205, 254, 0.85);
}

.toc a:hover,
.toc a:focus-visible,
.toc a.on {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(135, 255, 113, 0.09);
}

.content { min-width: 0; }

.content > article {
  position: relative;
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scroll-margin-top: 96px;
}

.content > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  opacity: 0.75;
  background: linear-gradient(180deg, var(--neon), var(--cyan), transparent);
}

.content > article:last-child { margin-bottom: 0; }

.content h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.95rem);
  font-weight: 600;
  line-height: 1.28;
  color: #eefce8;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.3);
}

.content h3 {
  margin: 26px 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.content h4 {
  margin: 20px 0 6px;
  font-size: 1rem;
  color: var(--neon);
}

.content p { margin: 0 0 14px; }

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

.content a:hover { color: var(--cyan); }

.content ul,
.content ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.content li { margin: 0 0 8px; }
.content li::marker { color: var(--cyan); }

.content strong { color: #f2ffec; }
.content em { color: var(--cyan); font-style: normal; }

.content figure {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

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

.content figcaption {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(1, 205, 254, 0.08);
  color: #cfe6f5;
}

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

.content table {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.94rem;
}

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

.content th { background: rgba(1, 205, 254, 0.1); color: var(--neon); }

.content code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(1, 205, 254, 0.14);
}

.content pre {
  margin: 0 0 16px;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.4);
}

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

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

/* 页脚 */
.sitefoot {
  margin-top: clamp(34px, 6vw, 70px);
  padding: clamp(26px, 5vw, 50px) var(--pad) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(1, 205, 254, 0.07), transparent 62%),
    #090e0b;
}

.sitefoot h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.4);
}

.fbrand h2 {
  font-size: 1.26rem;
  letter-spacing: 0.05em;
}

.fcol p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--dim);
}

.fnav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.94rem;
  color: var(--dim);
  text-decoration: none;
}

.fnav a:hover,
.fnav a:focus-visible {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.sub input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
}

.sub input::placeholder { color: rgba(147, 168, 144, 0.8); }

.sub button {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  color: #06200a;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 18px rgba(135, 255, 113, 0.3);
}

.sub button:hover { filter: brightness(1.08); }

.fbar {
  grid-column: 1 / -1;
  padding: 14px 0 26px;
  border-top: 1px solid var(--line);
}

.fbar p {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .content > article { animation: rise 0.62s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .content > article:nth-child(1) { animation-delay: 0.04s; }
  .content > article:nth-child(2) { animation-delay: 0.1s; }
  .content > article:nth-child(3) { animation-delay: 0.16s; }
  .content > article:nth-child(4) { animation-delay: 0.22s; }
  .content > article:nth-child(5) { animation-delay: 0.28s; }
  .content > article:nth-child(6) { animation-delay: 0.34s; }
  .content > article:nth-child(7) { animation-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 断点 */
@media (min-width: 620px) {
  .sitefoot { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .fbar { grid-column: 1 / -1; }
}

@media (min-width: 820px) {
  .sitehead {
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .topnav a { padding: 10px 13px; font-size: 0.96rem; }
}

@media (min-width: 900px) {
  .stage { grid-template-columns: 252px minmax(0, 1fr); gap: clamp(28px, 3.4vw, 46px); }
  .side { position: sticky; top: 122px; }
}

@media (min-width: 980px) {
  .sitefoot { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 36px; padding-bottom: 0; }
  .fbrand { grid-column: auto; }
}

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