/* ============================================================
   移动WiFi 首页样式 · 高端极简设计
   断点：1024 / 860 / 640
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0e1526;
  --ink-2: #46506b;
  --ink-3: #8a94a6;
  --line: #e7eaf3;
  --brand: #2f5cff;
  --brand-2: #22c3e6;
  --grad: linear-gradient(135deg, #2f5cff 0%, #22c3e6 100%);
  --dark: #0b1020;
  --dark-2: #131a30;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(14, 21, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 21, 38, 0.12);
  --container: 1180px;
  --header-h: 64px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: rgba(47, 92, 255, 0.18); }

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

.container-narrow { max-width: 820px; }

/* ---------------- 通用按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(47, 92, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(47, 92, 255, 0.45); transform: translateY(-1px); }

.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12); }

.btn-ghost { color: var(--ink-2); padding: 10px 16px; }
.btn-ghost:hover { color: var(--brand); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }

.btn-soft { background: rgba(47, 92, 255, 0.08); color: var(--brand); }
.btn-soft:hover { background: rgba(47, 92, 255, 0.14); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------------- 公告栏 ---------------- */

.announce {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 48px;
  background: linear-gradient(90deg, rgba(47, 92, 255, 0.12), rgba(34, 195, 230, 0.12));
  color: var(--brand);
  font-size: 13.5px;
  text-align: center;
}
.announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
}
.announce-close:hover { background: rgba(0, 0, 0, 0.06); }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 16, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: rgba(11, 16, 32, 0.92); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 92, 255, 0.4);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.header-cta .btn-ghost { color: rgba(255, 255, 255, 0.8); }
.header-cta .btn-ghost:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------------- 首屏 Hero ---------------- */

.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: rgba(47, 92, 255, 0.32); }
.hero-glow-2 { width: 460px; height: 460px; right: -120px; bottom: -160px; background: rgba(34, 195, 230, 0.22); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin-top: 18px;
}

.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.68);
  max-width: 480px;
  margin-bottom: 28px;
}

/* 推荐码卡片 —— 首屏核心视觉 */
.ref-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(47, 92, 255, 0.22), rgba(34, 195, 230, 0.14));
  border: 1px solid rgba(120, 160, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 44px rgba(47, 92, 255, 0.28);
  max-width: 520px;
}
.ref-meta { display: flex; flex-direction: column; gap: 2px; }
.ref-label {
  font-size: 12.5px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}
.ref-hint { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.ref-row { display: flex; align-items: center; gap: 16px; }
.ref-code {
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff, #9fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}
.hero-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 8px rgba(34, 195, 230, 0.9);
}

.hero-visual { min-width: 0; }
.hero-visual svg { display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4)); }

.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-fast { animation: floatY 5s ease-in-out 0.8s infinite; }
.float-fast2 { animation: floatY 5s ease-in-out 1.6s infinite; }
.pulse { animation: pulseWave 2.6s ease-in-out infinite; transform-origin: 342px 110px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseWave {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------------- 数据概览 ---------------- */

.stats { padding: 0 0 10px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -52px;
  position: relative;
  z-index: 5;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.stat-num {
  display: block;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 6px; color: var(--ink-3); font-size: 14px; }

/* ---------------- 通用区块 ---------------- */

.section { padding: 88px 0; }
.section-alt {
  background: linear-gradient(180deg, #eef1f8 0%, #f6f7fb 100%);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.section-sub { color: var(--ink-3); font-size: 15.5px; }

/* ---------------- 产品优势 ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(47, 92, 255, 0.09);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------------- 推广流程 ---------------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: flow;
}
.flow-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(14, 21, 38, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flow-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.flow-card h3 { font-size: 17px; }
.flow-card p { color: var(--ink-2); font-size: 14px; flex: 1; }
.flow-card .btn { align-self: flex-start; }

/* ---------------- 收益测算 ---------------- */

.calc-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  gap: 34px;
}
.calc-row { margin-bottom: 24px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}
.calc-label output { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 10px rgba(47, 92, 255, 0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 10px rgba(47, 92, 255, 0.4);
  cursor: pointer;
}
.calc-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 92, 255, 0.07), rgba(34, 195, 230, 0.09));
  border: 1px dashed rgba(47, 92, 255, 0.3);
}
.calc-result-label { font-size: 14px; color: var(--ink-2); }
.calc-result-num {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 代理申请表单 ---------------- */

.apply-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-field label em { color: #e5484d; font-style: normal; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 92, 255, 0.12);
  background: #fff;
}

.form-hint {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(47, 92, 255, 0.06);
  border: 1px dashed rgba(47, 92, 255, 0.3);
  color: var(--ink-2);
  font-size: 13.5px;
}
.form-hint b { color: var(--brand); }

.form-opt { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 6px 0 22px;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.form-consent a { color: var(--brand); }

.form-msg { margin-top: 14px; color: #e5484d; font-size: 14px; text-align: center; }
.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------------- FAQ ---------------- */

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.faq-q svg { flex-shrink: 0; color: var(--ink-3); transition: transform 0.25s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-2); font-size: 14.5px; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-slogan { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.footer-col a { color: rgba(255, 255, 255, 0.62); transition: color 0.15s ease; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-col span { color: rgba(255, 255, 255, 0.62); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}
.footer-bottom b { color: rgba(255, 255, 255, 0.75); }

/* ---------------- 移动端底部操作栏 ---------------- */

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(14, 21, 38, 0.06);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 4px 0;
}
.tab-item svg { width: 21px; height: 21px; }
.tab-primary {
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  padding: 8px 0;
  margin-right: 8px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(47, 92, 255, 0.35);
}

/* ---------------- 返回顶部 / Toast / 弹窗 ---------------- */

.back-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}
.back-top:hover { transform: translateY(-3px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(8px);
  z-index: 90;
  max-width: 86vw;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(14, 21, 38, 0.92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask { position: absolute; inset: 0; background: rgba(11, 16, 32, 0.55); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-card h3 { font-size: 18px; margin-bottom: 14px; }
.modal-body { display: grid; gap: 10px; margin-bottom: 22px; color: var(--ink-2); font-size: 14px; }

/* ---------------- 滚动动画 ---------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow, .float-fast, .float-fast2, .pulse { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* 移动端下拉菜单 */
  .site-header.nav-open { background: rgba(11, 16, 32, 0.98); }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px 18px;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header.nav-open .nav a { padding: 13px 14px; border-radius: 12px; font-size: 15.5px; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .ref-card { max-width: none; }

  body { padding-bottom: 66px; }
  .tabbar { display: flex; }
  .back-top { bottom: 84px; }
  .toast { bottom: 84px; }

  .section { padding: 64px 0; }
  .stats-grid { margin-top: -40px; gap: 12px; }
  .calc-card, .apply-card { padding: 26px 22px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; }

  .feature-grid, .flow-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 20px; }

  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ref-row { width: 100%; justify-content: space-between; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { align-items: flex-start; text-align: left; }

  .hero-badges { gap: 8px 16px; }
  .section-head { margin-bottom: 36px; }
}
