/* 蘑菇加速器 - 公共样式
   配色灵感来自蘑菇本身：菌盖暖橙、菌褶紫、孢子黄，深色背景衬托科技感 */

:root {
  --bg: #150f1e;
  --bg-alt: #1c1428;
  --surface: #221934;
  --surface-2: #2a1f40;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3eefb;
  --text-dim: #b7abcb;
  --text-faint: #8b7fa3;

  --primary: #ff8a3d;
  --primary-dark: #e8672a;
  --accent: #a855f7;
  --accent-2: #ffd166;
  --success: #4ade80;

  --gradient: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-dim); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  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: var(--gradient);
  color: #1a1024;
  box-shadow: 0 12px 30px -10px rgba(255, 138, 61, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 138, 61, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }

/* ============================== 顶部导航 ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  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-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand-logo { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

/* ============================== 页面小Hero（内页通用） ============================== */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(168, 85, 247, 0.18), transparent 70%);
}
.page-hero .section-tag { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ============================== Hero ============================== */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(50% 80% at 85% 10%, rgba(255, 138, 61, 0.16), transparent 70%),
    radial-gradient(45% 70% at 10% 30%, rgba(168, 85, 247, 0.16), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.hero-desc { font-size: 1.02rem; max-width: 520px; }

.hero-cta { display: flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--text); }
.hero-stats span { font-size: 0.85rem; color: var(--text-faint); }

.hero-visual { display: flex; justify-content: center; }

/* ============================== 通用 section ============================== */
section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ============================== 核心优势 ============================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  color: #1a1024;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: 0.93rem; }

/* ============================== 节点分布 ============================== */
.nodes { background: var(--bg-alt); }
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.node-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.node-flag {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  color: var(--accent-2);
}
.node-status {
  font-size: 0.78rem;
  color: var(--success);
  display: flex; align-items: center; gap: 6px;
}
.node-status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.node-card h4 { margin-bottom: 4px; font-size: 1rem; }
.node-line { font-size: 0.82rem; color: var(--text-faint); }
.node-ping { margin-top: 14px; font-size: 0.85rem; color: var(--text-dim); }
.node-ping b { color: var(--primary); }
.nodes-more { text-align: center; margin-top: 28px; font-size: 0.9rem; }

/* ============================== 使用步骤 ============================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 12px;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { margin: 0; font-size: 0.92rem; }

/* ============================== 平台下载 ============================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform-card { text-align: center; }
.platform-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.platform-icon svg { width: 28px; height: 28px; }
.platform-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.platform-card .btn { margin-top: 12px; }

.guide-list { counter-reset: guide; }
.guide-list li {
  counter-increment: guide;
  position: relative;
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.guide-list li:last-child { border-bottom: none; }
.guide-list li::before {
  content: counter(guide);
  position: absolute;
  left: 0; top: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a1024;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.guide-list strong { color: var(--text); }

/* ============================== 套餐价格 ============================== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  cursor: pointer;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  transition: transform 0.25s ease;
}
.toggle-switch[aria-checked="true"]::after { transform: translateX(24px); }
.save-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.15);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card { position: relative; text-align: left; }
.price-card.popular { border-color: var(--primary); box-shadow: var(--shadow); }
.price-badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--gradient);
  color: #1a1024;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; }
.price-desc { font-size: 0.88rem; margin-bottom: 18px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .num { font-size: 2.4rem; font-weight: 800; }
.price-amount .unit { color: var(--text-faint); font-size: 0.9rem; }
.price-original { font-size: 0.82rem; color: var(--text-faint); text-decoration: line-through; margin-bottom: 18px; }
.price-features { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-dim); }
.price-features svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.pricing-note { text-align: center; margin-top: 32px; font-size: 0.85rem; color: var(--text-faint); }

/* ============================== FAQ ============================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.faq-question .icon svg { width: 18px; height: 18px; color: var(--primary); transition: transform 0.2s ease; }
.faq-item[data-open="true"] .icon svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.faq-item[data-open="true"] .faq-answer { max-height: 400px; padding: 0 28px 24px; }

.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.faq-cat-tag {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================== CTA 横幅 ============================== */
#cta { padding-bottom: 100px; }
.cta-banner {
  text-align: center;
  padding: 60px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255, 138, 61, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-banner p { max-width: 520px; margin: 0 auto 26px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================== 正文内容页（关于/条款/隐私） ============================== */
.prose { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.prose p, .prose li { color: var(--text-dim); font-size: 0.96rem; }
.prose ul { padding-left: 1.4em; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--text-faint); font-size: 0.85rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.value-grid .card h3 { font-size: 1rem; }
.value-grid .card p { font-size: 0.9rem; margin: 0; }

.team-timeline { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year { color: var(--primary); font-weight: 700; }
.timeline-item h4 { margin-bottom: 6px; font-size: 1rem; }
.timeline-item p { margin: 0; font-size: 0.9rem; }

/* ============================== Footer ============================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-size: 0.92rem; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--primary); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================== 滚动显现动画 ============================== */
.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-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid, .nodes-grid, .steps, .pricing-grid, .platform-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .features-grid, .nodes-grid, .steps, .pricing-grid, .platform-grid, .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .timeline-item { grid-template-columns: 1fr; }
}
