/* ============================================================
   Falemon v2 · 设计系统
   风格：暗色玻璃拟态 + Aurora 渐变（靛蓝/紫/青）
   ============================================================ */

:root {
  --bg: #060a13;
  --bg-2: #0b1220;
  --bg-3: #101a2e;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --ink: #eaf0fa;
  --ink-2: #9aa8bd;
  --ink-3: #5f6e85;
  --line: rgba(255, 255, 255, 0.08);
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(120deg, #6366f1, #8b5cf6 55%, #22d3ee);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

/* ---------- Aurora 背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 560px; height: 560px; background: #4f46e5; top: -180px; left: -120px; }
.blob-2 { width: 480px; height: 480px; background: #7c3aed; top: 10%; right: -160px; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; background: #0891b2; bottom: -160px; left: 30%; animation-delay: -12s; opacity: 0.4; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(99, 102, 241, 0.55); }
.btn-glass { background: var(--glass-2); border-color: var(--glass-border); color: var(--ink); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; border-color: var(--glass-border); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- 文字 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -0.3px; }

/* ---------- 顶部导航 ---------- */
.nav { position: sticky; top: 14px; z-index: 60; padding: 0 24px; }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 22px; border-radius: 18px;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-badge {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); font-size: 17px; box-shadow: 0 6px 18px rgba(99,102,241,.45);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.12; }
.hero-sub { margin: 22px auto 0; max-width: 620px; color: var(--ink-2); font-size: 17.5px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; color: var(--ink-3); font-size: 13.5px; }

/* ---------- 连接演示卡 ---------- */
.demo { max-width: 620px; margin: 56px auto 0; padding: 22px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-title { font-weight: 700; font-size: 15px; }
.pill {
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.15); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--green);
}
.server-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.server-row:last-child { border-bottom: 0; }
.server-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.server-flag { font-size: 15px; }
.server-name { flex: 1; color: var(--ink-2); }
.server-ping { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.server-row.switching .server-ping { color: var(--cyan); }
.server-row.switching .server-dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.stat { padding: 26px 18px; text-align: center; }
.stat .num { font-size: 32px; font-weight: 800; }
.stat .num small { font-size: 17px; }
.stat .label { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(27px, 4vw, 40px); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 16px; }

/* ---------- Bento 特性 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-item { padding: 28px 26px; position: relative; overflow: hidden; }
.bento-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 85% 10%, rgba(139, 92, 246, 0.16), transparent 70%);
}
.bento-item.wide { grid-column: span 2; }
.bento-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(99, 102, 241, 0.16); border: 1px solid rgba(99, 102, 241, 0.35); margin-bottom: 16px;
}
.bento-icon svg { width: 24px; height: 24px; stroke: #a5b4fc; }
.bento-item h3 { font-size: 18px; margin-bottom: 8px; }
.bento-item p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 22px; right: 24px;
  font-size: 34px; font-weight: 800; color: rgba(255,255,255,.08);
}
.step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.35); margin-bottom: 16px; }
.step-icon svg { width: 22px; height: 22px; stroke: #67e8f9; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 下载卡片 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dl-card { padding: 30px 20px; text-align: center; }
.dl-card .os-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.35); }
.dl-card .os-icon svg { width: 26px; height: 26px; stroke: #a5b4fc; }
.dl-card h3 { font-size: 17px; }
.dl-card .os-sub { color: var(--ink-3); font-size: 13px; margin: 2px 0 20px; }
.dl-card .btn { width: 100%; }
.dl-card.recommended { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 1px rgba(34,211,238,.35), var(--shadow); }
.dl-tip {
  display: none; margin-bottom: 20px; padding: 13px 18px; border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.4);
  color: #a5f3fc; font-size: 14.5px;
}

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.06); }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 17px; }
.price-card .desc { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 20px; }
.price .amount { font-size: 40px; font-weight: 800; }
.price .amount small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.price .unit { color: var(--ink-3); font-size: 13px; }
.price-feats { margin: 22px 0 26px; display: grid; gap: 10px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14px; }
.price-feats svg { width: 16px; height: 16px; stroke: var(--green); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: 0; text-align: left;
  color: var(--ink); font-size: 16px; font-weight: 600;
}
.faq-q .chev { color: var(--ink-3); font-size: 12px; transition: transform .25s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--ink-2); font-size: 14.5px; }
.faq-a-inner a { color: var(--cyan); }

/* ---------- CTA ---------- */
.cta { padding: 90px 24px; text-align: center; position: relative; }
.cta-card {
  max-width: 760px; margin: 0 auto; padding: 56px 40px; position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-card p { color: var(--ink-2); margin: 16px auto 30px; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; color: var(--ink); }
.footer a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; }
.footer a:hover { color: var(--cyan); }
.footer-about { color: var(--ink-2); font-size: 13.5px; margin-top: 14px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 38px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--ink-3); font-size: 13px;
}
.compliance { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; margin-top: 14px; max-width: 900px; }

/* ---------- 内页 Hero ---------- */
.page-hero { padding: 84px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: var(--ink-2); margin: 14px auto 0; max-width: 600px; font-size: 16px; }

/* ---------- 正文页 ---------- */
.prose { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.prose h2 { font-size: 22px; margin: 42px 0 14px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose li { padding-left: 20px; position: relative; }
.prose li::before { content: "•"; position: absolute; left: 4px; color: var(--violet); }
.prose .meta { color: var(--ink-3); font-size: 13.5px; margin-bottom: 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(16px);
  padding: 13px 24px; border-radius: 999px; font-size: 14px; z-index: 90;
  background: rgba(16, 26, 46, 0.92); border: 1px solid var(--glass-border);
  color: var(--ink); backdrop-filter: blur(12px); opacity: 0; pointer-events: none;
  transition: all .25s ease; max-width: 90vw; text-align: center; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .bento, .steps, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento-item.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav { top: 8px; }
  .nav-links {
    position: absolute; top: 70px; left: 24px; right: 24px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 16, 30, 0.97); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 8px 18px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta .btn-glass { display: none; }
  .nav-toggle { display: block; }
  .bento, .steps, .price-grid, .download-grid { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .hero { padding: 64px 0 40px; }
  .section { padding: 56px 0; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
