/* AllerScan Lite — 落地页专用样式（不影响 privacy/support 共用的 site.css）
   与站点共用品牌色：accent #3D5A6C / text #1F2937 / muted #6B7280 / bg #F6F8FA */

:root {
  --bg: #f6f8fa;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #3d5a6c;
  --accent-ink: #24333f;
  --tint: #e9f1f7;
  --tint-2: #eef3f8;
  --border: #e2e8ee;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px -12px rgba(15, 23, 42, .18);
  --shadow-md: 0 24px 60px -18px rgba(15, 23, 42, .35), 0 4px 14px rgba(15, 23, 42, .10);
  --radius: 18px;
  --maxw: 1060px;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", "Noto Sans JP", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #78a6c8; outline-offset: 3px; border-radius: 6px; }

/* ---------- 通用容器 ---------- */
main > section { padding: 56px var(--pad); }
main > section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
main > section[id] { scroll-margin-top: 62px; }
.sec-alt { background: var(--tint-2); border-block: 1px solid var(--border); }
.sec-t { font-size: clamp(22px, 3.4vw, 30px); }
.sec-l { color: var(--muted); max-width: 46em; margin-left: 0; margin-right: 0; margin-bottom: 1.6em; }

/* ---------- 微信 / 内置浏览器提示条 ---------- */
.wxbar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px calc(11px + env(safe-area-inset-top, 0px));
  padding-top: calc(11px + env(safe-area-inset-top, 0px));
  background: #10384f; color: #eaf6ff; font-size: 14px; line-height: 1.45;
}
.wxbar svg { flex: 0 0 auto; opacity: .9; }
.wxbar-x {
  margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer;
}

/* ---------- 顶栏 ---------- */
.hdr { border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .82); }
.hdr-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 15px; }
.brand-name em { font-style: normal; font-size: 12px; color: var(--muted); }
.hnav { display: flex; gap: 18px; font-size: 14.5px; }
.hnav a { color: var(--muted); text-decoration: none; }
.hnav a:hover { color: var(--text); }
.hdr-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.langs { display: flex; padding: 3px; gap: 2px; background: var(--tint); border-radius: 11px; }
.lang-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 8px;
}
.lang-btn[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- App Store 按钮 ---------- */
.btn-as {
  display: inline-flex; align-items: center; gap: 11px;
  background: #0b0f14; color: #fff; text-decoration: none;
  border-radius: 15px; padding: 11px 18px; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(11, 15, 20, .7);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-as:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(11, 15, 20, .75); }
.btn-as .apple { width: 18px; height: 22px; flex: 0 0 auto; }
.btn-as-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 12px; gap: 8px; }
.btn-as-sm .apple { width: 14px; height: 17px; }
.btn-as-lg { padding: 14px 22px; font-size: 17px; border-radius: 17px; }
.btn-as-lg .apple { width: 22px; height: 27px; }
.btn-as-txt { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.btn-as-txt small { font-weight: 400; font-size: 12px; opacity: .78; }

/* ---------- 首屏 ---------- */
.hero { padding-top: 34px; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: 38px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--tint); padding: 6px 12px; border-radius: 999px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2ea86b; box-shadow: 0 0 0 0 rgba(46, 168, 107, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 168, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 168, 107, 0); } }
.hero h1 { font-size: clamp(30px, 7vw, 50px); margin-bottom: .35em; }
.hero-sub { color: var(--muted); font-size: clamp(15.5px, 2.6vw, 18px); max-width: 34em; margin-bottom: 1.5em; }
.hero-hint { color: var(--muted); font-size: 13.5px; margin: 12px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips li {
  font-size: 13px; color: var(--accent-ink); background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
}
.chips li::before { content: "✓ "; color: #2ea86b; font-weight: 700; }

/* 二维码卡片 */
.qrcard {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm); max-width: 460px;
}
.qrcard .qr { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 10px; }
.qrcard-lg { max-width: 520px; }
.qrcard-lg .qr { width: 128px; height: 128px; }
.qr-txt { display: flex; flex-direction: column; gap: 3px; }
.qr-txt strong { font-size: 15.5px; }
.qr-txt span { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* 手机壳 */
.phone {
  position: relative; background: #0b0f14; border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-md);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 4.3%; left: 50%;
  width: 23%; aspect-ratio: 3.4; transform: translateX(-50%);
  background: #05080b; border-radius: 999px;
}
.phone img { display: block; width: 100%; border-radius: 31px; }
.hero-phone { max-width: 320px; justify-self: center; width: 100%; }
.phone-sm { padding: 7px; border-radius: 30px; }
.phone-sm img { border-radius: 24px; }

/* ---------- 功能卡 ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 17px; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; background: var(--tint); color: var(--accent);
  margin-bottom: 14px;
}
.ic svg { width: 23px; height: 23px; }

/* ---------- 截图轨道 ---------- */
.rail {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 auto; width: min(62vw, 236px); margin: 0; scroll-snap-align: center; }
.shot figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ---------- 双引擎步骤 ---------- */
.steps { display: grid; gap: 14px; }
.steps li {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px 18px 68px; box-shadow: var(--shadow-sm);
}
.steps h3 { font-size: 16.5px; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.steps .n {
  position: absolute; left: 20px; top: 20px;
  width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}

/* ---------- 旅行 ---------- */
.travel { display: grid; gap: 26px; align-items: start; }
.stat { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.stat-n { font-size: clamp(46px, 9vw, 68px); font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.stat-u { color: var(--muted); font-size: 17px; }
.travel h2 { font-size: clamp(21px, 3.4vw, 28px); }
.travel p { color: var(--muted); }
.ticks { display: grid; gap: 9px; margin-top: 14px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #2ea86b; font-weight: 700;
}
.tcard {
  background: linear-gradient(165deg, #fff, #f4f8fb);
  border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-md);
}
.tcard-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tcard-h strong { font-size: 16px; }
.tcard-h em {
  font-style: normal; font-size: 12px; color: var(--accent);
  background: var(--tint); border-radius: 999px; padding: 3px 10px; margin-left: auto;
}
.trows { margin: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.trows > div { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 10px 14px; }
.trows dt { color: var(--muted); font-size: 14px; }
.trows dd { margin: 0; font-weight: 600; font-size: 15px; }
.tcard-f {
  margin: 14px 0 0; font-size: 14px; color: var(--accent-ink);
  background: var(--tint); border-radius: 12px; padding: 12px 14px;
}

/* ---------- 定价 ---------- */
.packs { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin-left: 0; margin-right: 0; }
.pack {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 10px; text-align: center; font-weight: 700; font-size: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pack-main { border-color: var(--accent); box-shadow: 0 12px 30px -16px rgba(61, 90, 108, .55); }
.pack em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 9px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- 结尾 CTA ---------- */
.cta-final { background: #1c2732; color: #fff; padding: 58px var(--pad); }
.cta-in {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 30px; align-items: center;
}
.cta-final h2 { font-size: clamp(24px, 4.6vw, 36px); }
.cta-final p { color: #b9c6d1; margin-bottom: 1.4em; }
.cta-final .btn-as { background: #fff; color: #0b0f14; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .9); }
.cta-final .qrcard { background: #fff; border-color: transparent; }

/* ---------- 页脚 ---------- */
.ft { background: var(--tint-2); border-top: 1px solid var(--border); padding: 40px var(--pad) 44px; }
.ft-in { max-width: var(--maxw); margin: 0 auto; }
.ft-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ft-brand { display: flex; align-items: center; gap: 10px; }
.ft-brand img { border-radius: 9px; }
.ft-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.ft-brand strong { font-size: 14.5px; }
.ft-brand span { font-size: 12px; color: var(--muted); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 14px 20px; font-size: 14px; }
.ft-nav a { color: var(--accent); text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-qr { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ft-qr img { width: 92px; height: 92px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.ft-qr span { font-size: 13px; color: var(--muted); }
.ft-dis {
  margin: 26px 0 10px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); max-width: 60em;
}
.ft-copy { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- iOS 底部吸顶下载条 ---------- */
.iosbar {
  position: fixed; z-index: 80; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 18px 44px -18px rgba(15, 23, 42, .5);
  transform: translateY(120%); opacity: 0; transition: transform .26s ease, opacity .26s ease;
}
.iosbar.show { transform: none; opacity: 1; }
.iosbar-ic { border-radius: 8px; flex: 0 0 auto; }
.iosbar-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.iosbar-txt strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iosbar-count { font-size: 12px; color: var(--muted); }
.iosbar-open {
  flex: 0 0 auto; margin-left: auto; background: #0b0f14; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 11px;
}
.iosbar-cancel {
  flex: 0 0 auto; border: 1px solid var(--border); background: #fff; color: var(--muted);
  font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 11px; cursor: pointer;
}
.iosbar-x {
  flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
body.has-iosbar { padding-bottom: 96px; }

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 62px 20px 20px; }
  .steps .n { top: 18px; }
}
@media (min-width: 900px) {
  main > section { padding: 76px var(--pad); }
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 52px; }
  .hero { padding-top: 56px; }
  .hero-phone { max-width: 340px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { justify-content: center; overflow: visible; }
  .shot { width: 226px; }
  .travel { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; }
  .cta-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .qrcard-lg { margin-left: auto; }
}
@media (min-width: 1100px) {
  .hero h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn-as, .iosbar { transition: none; }
}
