/* ==========================================================================
   白月光机场 · 全站样式
   设计基调：午夜靛蓝 + 月光银蓝渐变，玻璃拟态卡片
   ========================================================================== */

:root {
  --bg: #0a0e1c;
  --bg-soft: #0f1428;
  --bg-elevated: #141a33;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(184, 197, 255, 0.35);

  --text: #eef1fb;
  --text-dim: #9aa3c2;
  --text-faint: #6b7395;

  --accent: #b9c6ff;
  --accent-2: #7c8cff;
  --accent-3: #5865e0;
  --gold: #f3d9a4;

  --glow: rgba(124, 140, 255, 0.35);
  --gold-glow: rgba(243, 217, 164, 0.25);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 15% -10%, rgba(124, 140, 255, 0.18), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(243, 217, 164, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(88, 101, 224, 0.12), transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #0a0e1c;
  box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 60px var(--glow));
}

/* ---------- 数据统计条 ---------- */
.stats {
  padding: 0 0 40px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-soft);
  padding: 30px 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-4px);
}

/* ---------- 功能亮点 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 197, 255, 0.18), rgba(88, 101, 224, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 价格卡片 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.price-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(184, 197, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.price-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold), #e0b767);
  color: #241a05;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card .plan-name {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.price-card .plan-price {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card .plan-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
}

.price-card .plan-quota {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.price-card li {
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- 节点覆盖 ---------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.region-item {
  padding: 20px;
  text-align: center;
}

.region-item .flag {
  font-size: 26px;
  margin-bottom: 8px;
}

.region-item .region-name {
  font-size: 14px;
  font-weight: 600;
}

.region-item .region-count {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- CTA 区块 ---------- */
.cta-band {
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(184, 197, 255, 0.12), rgba(88, 101, 224, 0.1));
  border: 1px solid var(--border-strong);
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 通用内容页（tutorial/about） ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.prose ol,
.prose ul.plain {
  color: var(--text-dim);
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose li {
  margin-bottom: 8px;
}

.step-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0a0e1c;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- 平台下载 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.platform-card {
  padding: 28px 24px;
  text-align: center;
}

.platform-card .platform-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 197, 255, 0.18), rgba(88, 101, 224, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card .platform-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.platform-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

/* ---------- 页面顶部小标题条 ---------- */
.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 13.5px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
}

/* ---------- AI 摘要区块（面向 LLM 抓取的纯文本说明） ---------- */
.ai-summary {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-m);
  padding: 26px 28px;
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.8;
}

.ai-summary strong {
  color: var(--text-dim);
}

/* ---------- 滚动淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
