:root {
  --bg: #07111f;
  --bg-2: #0b1930;
  --panel: rgba(10, 24, 46, 0.76);
  --panel-strong: #0d2343;
  --line: rgba(128, 184, 255, 0.16);
  --text: #ecf5ff;
  --muted: #9db2cf;
  --brand: #5eead4;
  --brand-2: #60a5fa;
  --brand-3: #a78bfa;
  --gold: #f7c66b;
  --ok: #6ee7b7;
  --danger: #fca5a5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1180px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eef4ff;
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 80, 255, 0.22), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(0, 214, 201, 0.14), transparent 22%),
    linear-gradient(180deg, #050816 0%, #0a1024 32%, #10162f 100%);
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

svg,
img {
  display: block;
}

.container {
  width: min(calc(100% - 32px), 1240px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(160, 176, 255, 0.12);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(98, 110, 255, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #9ba7ca;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.nav-link:hover {
  color: #f2f6ff;
  border-color: rgba(164, 181, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #07111f;
  background: linear-gradient(135deg, #95f3ea, #d9f7ff);
  box-shadow: 0 10px 30px rgba(149, 243, 234, 0.24);
}

main {
  overflow: hidden;
}

.scroll-hero,
.page-hero {
  padding: 34px 0 18px;
}

.scroll-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.rail-card,
.chapter,
.hero-banner,
.quote-ribbon,
.faq-item,
.footer-card {
  background: rgba(12, 18, 40, 0.84);
  border: 1px solid rgba(153, 173, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.rail-card {
  border-radius: 28px;
  padding: 20px;
}

.rail-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #93a4d3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rail-list a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #e8efff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(155, 173, 255, 0.08);
}

.rail-list span {
  font-size: 0.82rem;
  color: #92a0c2;
}

.rail-mini {
  display: grid;
  gap: 12px;
}

.rail-kpi strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.storyboard {
  display: grid;
  gap: 22px;
}

.hero-banner {
  border-radius: 34px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d7fff5;
  background: rgba(149, 243, 234, 0.1);
  border: 1px solid rgba(149, 243, 234, 0.16);
  font-size: 0.92rem;
}

.hero-banner h1,
.chapter h2 {
  margin: 18px 0 12px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-banner h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.chapter h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.lead,
.chapter p,
.muted,
.faq-answer,
.footer-card p + p,
.rail-list span,
.chapter-sub {
  color: #9aa8cb;
}

.hero-actions,
.cluster-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.btn,
.jump-link,
.download-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary,
.download-btn.primary {
  color: #071220;
  background: linear-gradient(135deg, #95f3ea, #d7fbff);
  box-shadow: 0 16px 34px rgba(149, 243, 234, 0.2);
}

.btn-secondary,
.jump-link,
.download-btn.secondary {
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(155, 173, 255, 0.14);
}

.btn:hover,
.jump-link:hover,
.download-btn:hover {
  transform: translateY(-1px);
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.stack-card {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(155, 173, 255, 0.12);
}

.stack-card strong,
.stat-block strong,
.platform-name,
.quote-name,
.flow-index,
.log-time,
.compare-title {
  display: block;
  color: #eef4ff;
}

.orb-stage {
  min-height: 100%;
  border-radius: 28px;
  padding: 22px;
  border: 1px solid rgba(155, 173, 255, 0.12);
  background:
    radial-gradient(circle at 50% 40%, rgba(149, 243, 234, 0.12), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(119, 109, 255, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.orb-stage::before,
.orb-stage::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(160, 178, 255, 0.14);
  border-radius: 999px;
}

.orb-stage::before {
  inset: 18% 14%;
}

.orb-stage::after {
  inset: 28% 24%;
}

.orb-core {
  width: 210px;
  height: 210px;
  margin: 28px auto 24px;
  display: grid;
  place-items: center;
}

.orb-logo {
  width: 190px;
  height: 190px;
  border-radius: 36px;
  overflow: hidden;
}

.orb-stats {
  display: grid;
  gap: 12px;
}

.stat-block {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(155, 173, 255, 0.12);
}

.stat-block:last-child {
  border-bottom: 0;
}

.chapter {
  border-radius: 32px;
  padding: 30px;
}

.chapter-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.chapter-index {
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.line-grid,
.platform-lines,
.quote-grid,
.compare-grid,
.flow-grid,
.log-grid,
.tips-grid,
.keyword-grid {
  display: grid;
  gap: 16px;
}

.line-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-grid,
.keyword-grid,
.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.line-card,
.platform-line,
.quote-card,
.compare-card,
.flow-card,
.tip-card,
.keyword-card,
.log-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(153, 173, 255, 0.1);
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #dffcf7;
  background: linear-gradient(135deg, rgba(149, 243, 234, 0.18), rgba(115, 88, 255, 0.16));
  border: 1px solid rgba(149, 243, 234, 0.14);
}

.platform-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.platform-badge {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(153, 173, 255, 0.12);
}

.platform-meta,
.quote-role,
.log-tag,
.chapter-kicker {
  color: #8ea0c9;
}

.platform-name {
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.quote-card {
  position: relative;
}

.quote-mark {
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(255,255,255,0.12);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: #eef4ff;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: 0.25s ease;
}

.quote-ribbon {
  border-radius: 32px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-card {
  border-radius: 26px;
  padding: 24px;
  text-align: center;
}

.footer-card p {
  margin: 0;
}

.site-footer {
  padding: 18px 0 42px;
}

@media (max-width: 1080px) {
  .scroll-shell,
  .hero-banner,
  .quote-ribbon,
  .line-grid,
  .platform-lines,
  .quote-grid,
  .compare-grid,
  .flow-grid,
  .tips-grid,
  .keyword-grid {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 calc(33.333% - 8px);
    text-align: center;
  }

  .scroll-shell,
  .hero-banner,
  .platform-line,
  .chapter-head,
  .quote-ribbon {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .chapter,
  .rail-card,
  .quote-ribbon,
  .faq-item,
  .footer-card {
    padding: 22px;
  }
}
