/* =====================================================================
   口袋驾考官网 — style.css
   品牌：蓝渐变 #2D7FF9 → #1B5FD0 | 纯静态 | mobile-first
   ===================================================================== */

/* ---------- 设计 token ---------- */
:root {
  --brand-1: #2D7FF9;
  --brand-2: #1B5FD0;
  --brand-3: #1587FB;
  --grad: linear-gradient(135deg, #2D7FF9 0%, #1B5FD0 100%);
  --grad-soft: linear-gradient(135deg, #EAF2FF 0%, #DCEAFE 100%);

  --ink: #1A2233;
  --ink-2: #5B6779;
  --ink-3: #8A95A8;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FF;
  --bg-softer: #FAFBFE;
  --line: #E6ECF6;
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(27, 95, 208, .06);
  --shadow: 0 10px 30px rgba(27, 95, 208, .10);
  --shadow-lg: 0 24px 60px rgba(27, 95, 208, .16);

  --maxw: 1180px;
  --header-h: 66px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 48px 0; }

/* 章节标题 */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--brand-2); background: var(--grad-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.3; }
.section-head p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section-head h2 { font-size: 36px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; line-height: 1;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(45,127,249,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(45,127,249,.42); }
.btn-ghost { background: #fff; color: var(--brand-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* 「即将上线」徽章（叠在下载按钮上） */
.coming-soon { position: relative; overflow: hidden; }
.coming-soon::after {
  content: "即将上线"; position: absolute; top: 8px; right: -26px;
  background: #FF6A00; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 30px; transform: rotate(35deg); box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--brand-1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 15px; }

/* 汉堡 */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s;
}
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-cta .btn-header-text { display: none; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; padding: calc(var(--header-h) + 56px) 0 72px;
  background: var(--grad); color: #fff; overflow: hidden;
}
/* 装饰光斑 */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5;
}
.hero::before { width: 360px; height: 360px; background: rgba(255,255,255,.16); top: -120px; right: -80px; }
.hero::after { width: 280px; height: 280px; background: rgba(21,135,251,.55); bottom: -120px; left: -60px; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero .container { grid-template-columns: 1.05fr .95fr; gap: 30px; } }

.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: 34px; font-weight: 900; line-height: 1.25; letter-spacing: -1px;
}
.hero h1 .accent { background: linear-gradient(120deg,#FFE9A8,#FFC65C); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.92); line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: rgba(255,255,255,.88); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: #9BE7A8; }
@media (min-width: 768px) { .hero h1 { font-size: 46px; } }

/* ---------- CSS 手机模型 ---------- */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 264px; height: 540px; background: #0E1A2E; border-radius: 40px; padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,.32), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
.phone::before { /* 听筒 */ content:""; position:absolute; top:18px; left:50%; transform:translateX(-50%); width:90px; height:22px; background:#000; border-radius:14px; z-index:3; }
.phone-screen {
  width: 100%; height: 100%; background: #fff; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink);
}
.ph-status { display:flex; justify-content:space-between; align-items:center; padding: 14px 22px 6px; font-size: 12px; font-weight: 700; }
.ph-status .dots { display:flex; gap:3px; }
.ph-status .dots i { width:4px;height:4px;border-radius:50%;background:var(--ink); display:inline-block; }
.ph-top { display:flex; justify-content:space-between; align-items:center; padding: 4px 16px 10px; border-bottom: 1px solid var(--bg-soft); }
.ph-top .tag { font-size: 11px; color: var(--ink-2); }
.ph-top .tag b { color: var(--brand-2); font-size: 13px; }
.ph-top .heart { color:#E24A6A; font-size:16px; }
.ph-q { padding: 16px 16px 12px; }
.ph-q .num { font-size: 12px; color: var(--brand-2); font-weight: 700; }
.ph-q .txt { font-size: 13.5px; line-height: 1.6; margin-top: 6px; font-weight: 600; }
.ph-opts { padding: 0 14px; display: flex; flex-direction: column; gap: 9px; }
.ph-opt { display:flex; gap:10px; align-items:flex-start; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink); }
.ph-opt .k { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); font-weight: 700; display:flex; align-items:center; justify-content:center; font-size: 12px; flex-shrink: 0; }
.ph-opt.sel { border-color: var(--brand-1); background: #EAF2FF; }
.ph-opt.sel .k { background: var(--grad); color: #fff; }
.ph-foot { margin-top: auto; display:flex; align-items:center; justify-content:space-between; padding: 12px 16px; border-top: 1px solid var(--bg-soft); }
.ph-foot .prev { color: var(--ink-3); font-size: 13px; }
.ph-foot .next { background: var(--grad); color:#fff; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px; }
.ph-prog { height: 4px; background: var(--bg-soft); margin: 0 16px 8px; border-radius: 2px; overflow:hidden; }
.ph-prog i { display:block; width: 38%; height:100%; background: var(--grad); }

/* =====================================================================
   能力数据条
   ===================================================================== */
.stats { background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 28px 18px; text-align: center; }
.stat .num { font-size: 28px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.stat .lbl { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 38px 18px; }
  .stat .num { font-size: 34px; }
}

/* =====================================================================
   四大核心亮点
   ===================================================================== */
.hl-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
.hl-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px 30px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hl-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hl-card:hover::before { transform: scaleX(1); }
.hl-num {
  position: absolute; top: 16px; right: 24px; font-size: 50px; font-weight: 900; line-height: 1;
  letter-spacing: -2px; color: rgba(45,127,249,.10); user-select: none; pointer-events: none;
}
.hl-ico {
  width: 58px; height: 58px; border-radius: 16px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(45,127,249,.28);
}
.hl-ico svg { width: 30px; height: 30px; }
.hl-card h3 { font-size: 20px; font-weight: 800; }
.hl-card .hl-tag { color: var(--ink); font-size: 15px; margin-top: 10px; font-weight: 500; line-height: 1.7; }
.hl-detail { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.hl-detail li {
  position: relative; padding-left: 24px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55;
}
.hl-detail li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--brand-1); border-bottom: 2px solid var(--brand-1);
  transform: rotate(-45deg); border-radius: 0 0 0 2px;
}

/* =====================================================================
   功能卡 grid
   ===================================================================== */
.feat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feat-ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brand-2); margin-bottom: 16px;
}
.feat-ico svg { width: 28px; height: 28px; }
.feat-card h3 { font-size: 18px; font-weight: 700; }
.feat-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.feat-card .pill { display:inline-block; margin-top: 12px; font-size: 12px; color: var(--brand-2); background: var(--grad-soft); padding: 4px 10px; border-radius: 999px; font-weight: 600; }

/* =====================================================================
   车型 & 科目
   ===================================================================== */
.scope-wrap { display: grid; gap: 20px; }
@media (min-width: 880px) { .scope-wrap { grid-template-columns: 1fr 1fr; } }
.scope-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; }
.scope-card h3 { font-size: 18px; font-weight: 700; display:flex; align-items:center; gap: 10px; margin-bottom: 6px; }
.scope-card h3 .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; }
.scope-card .desc { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chip b { color: var(--brand-2); }

/* =====================================================================
   优势（为什么选）
   ===================================================================== */
.adv-grid { display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .adv-grid { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 1000px){ .adv-grid { grid-template-columns: repeat(3,1fr);} }
.adv { display:flex; gap: 14px; align-items: flex-start; }
.adv .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); color: var(--brand-2); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.adv h4 { font-size: 16px; font-weight: 700; }
.adv p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* =====================================================================
   下载区
   ===================================================================== */
.download { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.download::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:rgba(255,255,255,.12); top:-160px; left:-120px; }
.download .container { position:relative; z-index:1; }
.dl-inner { display:grid; gap: 34px; align-items:center; }
@media (min-width: 880px) { .dl-inner { grid-template-columns: 1fr auto; } }
.dl-copy h2 { font-size: 28px; font-weight: 800; }
.dl-copy p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 520px; }
.dl-btns { display:flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.dl-btn { display:flex; align-items:center; gap: 12px; background: rgba(255,255,255,.14); border:1.5px solid rgba(255,255,255,.4); border-radius: 14px; padding: 12px 20px; min-width: 178px; transition: background .2s, transform .2s; }
.dl-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.dl-btn .ico { width: 30px; height: 30px; flex-shrink:0; }
.dl-btn .small { font-size: 11px; opacity:.85; line-height:1; }
.dl-btn .big { font-size: 17px; font-weight: 700; line-height: 1.2; margin-top: 3px; }
.dl-qr { justify-self: center; text-align: center; }
.dl-qr .box { width: 168px; height: 168px; background:#fff; border-radius: 18px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-lg); position: relative; }
.dl-qr .box .placeholder { color: var(--ink-3); font-size: 13px; text-align:center; padding: 14px; }
.dl-qr .cap { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.92); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--brand-1); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 600; text-align: left; color: var(--ink); }
.faq-q .ic { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand-2); transition: transform .25s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.85; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: #0E1830; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display:grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { color: #fff; font-size: 18px; }
.footer .brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer .fabout { margin-top: 14px; font-size: 14px; line-height: 1.85; max-width: 340px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer .contact li { font-size: 14px; display:flex; gap:8px; align-items:center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; display:flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom .icp a { color: rgba(255,255,255,.7); }
.footer-bottom .icp a:hover { color: #fff; }

/* =====================================================================
   About 页
   ===================================================================== */
.page-hero { background: var(--grad); color: #fff; padding: calc(var(--header-h) + 60px) 0 60px; text-align: center; }
.page-hero h1 { font-size: 30px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.9); margin-top: 12px; }
@media (min-width:768px){ .page-hero h1 { font-size: 40px; } }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 36px 0 14px; }
.prose p { color: var(--ink-2); font-size: 16px; margin-bottom: 14px; }
.prose .lead { font-size: 18px; color: var(--ink); font-weight: 500; }
.contact-cards { display:grid; gap:16px; grid-template-columns:1fr; max-width: 820px; margin: 8px auto 0; }
@media (min-width:680px){ .contact-cards { grid-template-columns: repeat(2,1fr);} }
.contact-cards .c { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-cards .c .k { font-size: 13px; color: var(--ink-3); }
.contact-cards .c .v { font-size: 17px; font-weight: 700; margin-top: 6px; color: var(--brand-2); }

/* =====================================================================
   动效
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
