/* ============================================================
   惠券通官网 - 全局样式
   Huiquantong Marketing Website
   ============================================================ */

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 颜色系统 */
  --bg: #070A1A;
  --bg-2: #0B1029;
  --bg-3: #121738;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #F4F6FF;
  --text-2: #B6BDE0;
  --text-3: #7B83A8;

  --primary: #6366F1;
  --primary-2: #8B5CF6;
  --accent: #22D3EE;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(99,102,241,.35), transparent 60%),
               radial-gradient(900px 500px at 90% 10%, rgba(139,92,246,.30), transparent 60%),
               radial-gradient(900px 500px at 50% 90%, rgba(34,211,238,.18), transparent 60%),
               linear-gradient(180deg, #070A1A 0%, #0B1029 100%);

  --grad-btn: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --grad-btn-hover: linear-gradient(135deg, #7C7FF5 0%, #A078FA 100%);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);

  --shadow-sm: 0 2px 12px rgba(0,0,0,.25);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.45);
  --glow-primary: 0 0 0 1px rgba(99,102,241,.35), 0 10px 40px rgba(99,102,241,.28);
  --glow-accent: 0 10px 30px rgba(34,211,238,.25);

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

  --container: 1200px;
}

/* 基础排版 */
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }

img, svg { max-width: 100%; }
img { display: block; }
svg { display: inline-block; vertical-align: middle; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* 通用排版 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  color: #A5B4FC;
  border: 1px solid rgba(99,102,241,.28);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #A5B4FC; box-shadow: 0 0 8px #A5B4FC;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(36px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { color: var(--text-2); }

.gradient-text {
  background: linear-gradient(135deg, #A5B4FC 0%, #C4B5FD 50%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.45), 0 18px 55px rgba(99,102,241,.40);
  background: var(--grad-btn-hover);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(139,92,246,.4);
  color: #C4B5FD;
}
.btn-outline:hover { background: rgba(139,92,246,.12); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

/* ================= 导航 ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  --nav-h: 72px;
  --sat: env(safe-area-inset-top, 0px);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7,10,26,.55);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
  padding-top: var(--sat);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.nav.scrolled {
  background: rgba(7,10,26,.85);
  border-bottom-color: var(--border);
}
.nav-wrap {
  min-height: var(--nav-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  height: 100%;
}
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(139,92,246,.45));
  transition: filter .25s ease, transform .25s ease;
}
.logo:hover .logo-img {
  transform: translateY(-1px);
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(139,92,246,.7));
}
.footer-intro .logo-img {
  height: 52px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(99,102,241,.35));
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-btn);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-primary);
  color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: -.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: all .2s ease;
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--grad-btn);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* 下拉菜单 */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: rgba(13,17,42,.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all .25s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.dropdown-menu a:hover { background: rgba(99,102,241,.1); color: #fff; }
.dropdown-menu .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(99,102,241,.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: #A5B4FC; flex-shrink: 0;
}
.dropdown-menu .meta strong { display: block; color: #fff; font-weight: 600; }
.dropdown-menu .meta span { font-size: 12.5px; color: var(--text-3); }

.menu-toggle { display: none; }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 80px 0 96px;
  background: var(--grad-hero);
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero h1 { margin: 18px 0; }
.hero h1 .line2 { display: block; }
.hero .lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 620px;
}
.hero-stats .stat .num {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; line-height: 1;
}
.hero-stats .stat .label {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Hero 右侧可视化 */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 520px;
  margin-left: auto;
}
.visual-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(139,92,246,.25);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.visual-ring.r2 { inset: 8%; animation-duration: 90s; animation-direction: reverse; border-color: rgba(34,211,238,.18); }
.visual-ring.r3 { inset: 16%; animation-duration: 120s; border-color: rgba(99,102,241,.15); }
@keyframes spin { to { transform: rotate(360deg); } }

.visual-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%; aspect-ratio: 1/1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(167,139,250,.6), transparent 55%),
    linear-gradient(135deg, rgba(99,102,241,.95) 0%, rgba(139,92,246,.85) 100%);
  box-shadow: 0 30px 80px rgba(99,102,241,.5), inset 0 0 50px rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: #fff;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: .02em;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, -55%); } }

.visual-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(13,17,42,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #fff;
  white-space: nowrap;
}
.visual-chip .ci {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(99,102,241,.2);
  color: #A5B4FC;
}
.visual-chip.c1 { top: 6%; left: -2%; animation: float-s 5s ease-in-out infinite; }
.visual-chip.c2 { top: 28%; right: -4%; animation: float-s 6s ease-in-out infinite .8s; }
.visual-chip.c3 { bottom: 22%; left: -6%; animation: float-s 5.5s ease-in-out infinite .4s; }
.visual-chip.c4 { bottom: 4%; right: 6%; animation: float-s 6.5s ease-in-out infinite 1.2s; }
@keyframes float-s { 50% { transform: translateY(-8px); } }

/* ================= Section 通用 ================= */
section { position: relative; padding: 110px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 16.5px; color: var(--text-2); }

/* ================= 业务卡片 ================= */
.products {
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,.04) 100%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: all .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,0%), rgba(99,102,241,.18), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.product-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(99,102,241,.15); color: #A5B4FC;
  border: 1px solid rgba(99,102,241,.28);
  margin-bottom: 18px;
}
.product-card .badge.wx { background: rgba(52,211,153,.12); color: #6EE7B7; border-color: rgba(52,211,153,.28); }
.product-card .badge.ali { background: rgba(34,211,238,.12); color: #67E8F9; border-color: rgba(34,211,238,.28); }
.product-card .pc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.25) 0%, rgba(139,92,246,.25) 100%);
  color: #C4B5FD;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: 14.5px; }
.product-card ul {
  list-style: none;
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card ul li {
  font-size: 13.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.product-card ul li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #A5B4FC;
  flex-shrink: 0;
}
.product-card .pc-foot {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px;
}
.product-card .pc-foot .more {
  color: #A5B4FC; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .pc-foot .more svg { transition: transform .2s; }
.product-card:hover .pc-foot .more svg { transform: translateX(4px); }

/* ================= Process 流程 ================= */
.process { background: var(--bg-2); }
.process-tabs {
  display: inline-flex;
  padding: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.process-tabs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}
.process-tabs-wrap .pdf-cta-bar {
  margin-top: 0;
  width: 100%;
  max-width: 720px;
  padding: 14px 20px;
  border-radius: 14px;
}
.process-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
}
.process-tab:hover { color: #fff; }
.process-tab.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
}
.process-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.process-step:hover {
  border-color: rgba(139,92,246,.35);
  transform: translateY(-3px);
}
.process-step .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-btn);
  color: #fff; font-weight: 700;
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-2); }
.process-step .api-tag {
  margin-top: 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.2);
  color: #67E8F9;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
}

/* ================= 特性 features ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  text-align: left;
  transition: all .3s ease;
}
.feature:hover {
  border-color: rgba(139,92,246,.3);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(99,102,241,.08) 0%, rgba(255,255,255,.02) 100%);
}
.feature .fi {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(99,102,241,.15);
  color: #A5B4FC;
  margin-bottom: 18px;
}
.feature h4 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-2); }

/* ================= Scenes 场景 ================= */
.scenes {
  background: var(--bg-2);
}
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scene {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
  transition: all .3s ease;
}
.scene .bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(400px 200px at 80% 20%, rgba(99,102,241,.22), transparent 60%),
    linear-gradient(180deg, rgba(18,23,56,.9) 0%, rgba(11,16,41,.95) 100%);
}
.scene .si {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: #A5B4FC;
  margin-bottom: 16px;
}
.scene h4 { font-size: 19px; margin-bottom: 10px; }
.scene p { font-size: 14px; color: var(--text-2); }
.scene:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.35); }

/* ================= Brands ================= */
.brands .brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.brand-logo {
  height: 72px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.brand-logo:hover { color: #fff; border-color: rgba(139,92,246,.35); }

/* ================= CTA 条 ================= */
.cta-section {
  padding: 100px 0;
  position: relative;
}
.cta-card {
  position: relative;
  padding: 60px 56px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,.18) 0%, rgba(139,92,246,.12) 50%, rgba(34,211,238,.10) 100%);
  border: 1px solid rgba(139,92,246,.25);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(34,211,238,.18), transparent 60%);
  pointer-events: none;
}
.cta-card h2 { margin-bottom: 10px; position: relative; }
.cta-card p { font-size: 16px; color: var(--text-2); max-width: 560px; position: relative; }
.cta-card .cta-actions { display: flex; gap: 12px; position: relative; }

/* ================= Footer ================= */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
  background: #050813;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-intro p { margin-top: 16px; font-size: 14px; max-width: 320px; }
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-3);
  font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 16px;
}

/* ================= 业务详情页 ================= */
.page-hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(700px 350px at 100% 0%, rgba(139,92,246,.20), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(30px, 4.2vw, 48px); margin: 16px 0 14px; }
.page-hero .lead { color: var(--text-2); max-width: 560px; font-size: 16px; }
.page-hero .ph-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: #fff; }

.ph-mock {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 9/16;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ph-mock .screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #0B1029, #141938);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* 两栏详情布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
.detail-block h2 { margin-bottom: 12px; }
.detail-block .sub { color: var(--text-2); max-width: 720px; margin-bottom: 36px; font-size: 16px; }

/* API 接口列表 */
.api-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.api-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.api-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.35); }
.api-card .api-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  font-size: 12.5px; color: #A5B4FC;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.28);
  margin-bottom: 14px;
}
.api-card h4 { font-size: 17px; margin-bottom: 10px; }
.api-card p { font-size: 13.5px; color: var(--text-2); }

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 44px;
}
.timeline::before {
  content: '';
  position: absolute; left: 16px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(99,102,241,.6), rgba(139,92,246,.2));
}
.timeline-item {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.timeline-item:hover { border-color: rgba(139,92,246,.35); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18), 0 6px 16px rgba(99,102,241,.4);
}
.timeline-item h4 { margin-bottom: 6px; font-size: 17px; }
.timeline-item p { font-size: 14px; color: var(--text-2); }
.timeline-item .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
  background: rgba(34,211,238,.1); color: #67E8F9;
  border: 1px solid rgba(34,211,238,.2);
  font-family: 'JetBrains Mono', monospace;
}

/* 优势列 */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.perk:hover { border-color: rgba(139,92,246,.35); transform: translateY(-3px); }
.perk .pi {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(99,102,241,.15); color: #A5B4FC;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.perk h4 { margin-bottom: 8px; font-size: 17px; }
.perk p { font-size: 14px; color: var(--text-2); }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-card);
  overflow: hidden;
  transition: all .2s ease;
}
.faq-item:hover { border-color: rgba(139,92,246,.3); }
.faq-q {
  width: 100%;
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600;
  color: #fff;
  text-align: left;
}
.faq-q .ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(99,102,241,.15); color: #A5B4FC;
  display: grid; place-items: center;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: rgba(139,92,246,.3); color: #fff; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  color: var(--text-2);
  font-size: 14.5px;
}
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 420px; }

/* 对比表 */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: rgba(99,102,241,.1);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td { color: var(--text-2); }
.compare-table td:first-child { color: #fff; font-weight: 600; }
.compare-table .ok { color: var(--success); font-weight: 600; }
.compare-table .no { color: var(--text-3); }

/* 嵌入代码块 */
pre.code {
  background: rgba(5,8,19,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  color: #E0E7FF;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre;
  scrollbar-width: thin;
}
pre.code .k { color: #A5B4FC; }
pre.code .s { color: #6EE7B7; }
pre.code .c { color: #7B83A8; font-style: italic; }
pre.code .n { color: #FBBF24; }

/* 微信样机流程 */
.phone-flow {
  display: flex; gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.phone {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 9/19;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.phone .pscreen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 40%, #fff 100%);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  color: #1f2937;
}
.phone .p-head {
  padding: 34px 16px 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #111827;
  border-bottom: 1px solid #eef2ff;
  background: #fff;
}
.phone .p-body {
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px;
}
.phone .caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 10px;
  max-width: 240px;
}

.phone-card {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2ff;
  font-size: 12.5px;
  color: #374151;
}
.phone-card.red {
  background: linear-gradient(160deg, #f43f5e, #e11d48);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(244,63,94,.3);
  padding: 18px 14px;
  text-align: center;
}
.phone-card.red .amt {
  font-size: 28px; font-weight: 800; margin: 10px 0;
}
.phone-btn {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #10B981;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.phone-btn.primary { background: #07C160; }
.phone-btn.blue { background: #1677FF; }

/* 支付宝绿小按钮 */
.alipay-btn { background: #1677FF; color: #fff; padding: 10px 14px; border-radius: 999px; font-size: 12.5px; text-align: center; font-weight: 600;}

/* ================= 响应式 ================= */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; min-height: 0; display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .product-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .scenes-grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr; }

  .brands .brand-row { grid-template-columns: repeat(3, 1fr); }

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

  .cta-card { grid-template-columns: 1fr; padding: 40px 28px; }

  .page-hero-inner { grid-template-columns: 1fr; }
  .ph-mock { margin: 0 auto; }

  section { padding: 72px 0; }

  .nav { --nav-h: 64px; --sat: max(env(safe-area-inset-top, 0px), 18px); padding-top: var(--sat); }
  @supports (-webkit-touch-callout: none) {
    /* iOS/微信内置浏览器某些场景 safe-area 可能返回 0，这里给刘海机做强兜底 */
    .nav { --sat: max(env(safe-area-inset-top, 0px), 54px); padding-top: var(--sat); }
  }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: #fff;
  }
  .nav-links {
    position: fixed;
    top: 100px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(7,10,26,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .3s ease;
    gap: 4px;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-cta .btn.desktop-only { display: none; }
  .nav-wrap { gap: 12px; height: 64px; }
  .logo-img { height: 38px; }
  .menu-toggle { width: 38px !important; height: 38px !important; }

  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 8px 8px 18px;
  }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .scenes-grid { grid-template-columns: 1fr; }
  .brands .brand-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 36px; }
  .footer-intro .logo-img { height: 42px; }
  .nav-cta { gap: 8px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }
}

/* 选中高亮 */
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ============================================================
   PDF 流程预览：触发按钮 + 弹窗
   ============================================================ */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #F4F6FF;
  background: linear-gradient(135deg, rgba(248,113,113,.18), rgba(239,68,68,.12));
  border: 1px solid rgba(248,113,113,.45);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-pdf:hover {
  background: linear-gradient(135deg, rgba(248,113,113,.28), rgba(239,68,68,.20));
  border-color: rgba(248,113,113,.7);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(239,68,68,.18);
}
.btn-pdf .pdf-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(248,113,113,.85);
  color: #fff;
  letter-spacing: .04em;
}

.pdf-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.2);
}
.pdf-cta-bar .pdf-cta-text {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-cta-bar .pdf-cta-text strong { color: #FCA5A5; font-weight: 700; }

html.pdf-lock, html.pdf-lock body { overflow: hidden; }

.pdf-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdf-modal.open { display: flex; animation: pdfFadeIn .18s ease; }
@keyframes pdfFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pdf-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,6,18,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pdf-modal-dialog {
  position: relative;
  width: min(1100px, 100%);
  height: min(88vh, 900px);
  background: #0B1029;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(99,102,241,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.pdf-modal-title .pdf-ico {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  background: rgba(248,113,113,.18);
  color: #FCA5A5;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 8px; }
.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pdf-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--text);
  border-color: var(--border-strong);
}
.pdf-close { width: 34px; padding: 0; }
.pdf-modal-body {
  flex: 1;
  background: #1f2230;
  position: relative;
}
.pdf-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #1f2230;
}

@media (max-width: 768px) {
  .pdf-modal { padding: 0; }
  .pdf-modal-dialog { width: 100%; height: 100%; border-radius: 0; }
}
