/* ============================================================
 * 金标准骨架 v1 —— base.css
 * 每站只改 :root 里的 --brand / --brand-2 / --brand-soft 三行
 * ============================================================ */
:root {
  --brand: #0F5BD9;
  --brand-2: #0A3E96;
  --brand-soft: rgba(15, 91, 217, .10);
  --bg: #f5f6f8;
  --card: #fff;
  --line: #eceef2;
  --t1: #1b1d21;
  --t2: #5b6169;
  --t3: #9aa0a8;
  --ok: #12b76a;
  --warn: #f79009;
  --danger: #f04438;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --sp: 12px;
  --sp-l: 16px;
  --shadow: 0 2px 10px rgba(17, 24, 39, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 52px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--t1);
  background: var(--bg);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------------- 布局 ---------------- */
.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); }
.page.has-cta { padding-bottom: calc(var(--tabbar-h) + 68px + var(--safe-b)); }
.wrap { padding: 0 var(--sp-l); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.tc { text-align: center; } .tr { text-align: right; }
.hide { display: none !important; }

/* ---------------- 头部 ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  height: 46px; display: flex; align-items: center;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.navbar .nav-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--t1); }
.navbar .nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.navbar .nav-right { min-width: 40px; text-align: right; padding-right: 8px; color: var(--t2); font-size: 13px; }
.navbar.brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; }
.navbar.brand .nav-title, .navbar.brand .nav-back, .navbar.brand .nav-right { color: #fff; }

/* ---------------- 卡片 / 区块 ---------------- */
.card { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--sp-l); }
.card + .card { margin-top: 12px; }
.sec { margin-top: 12px; background: var(--card); border-radius: var(--r-l); padding: var(--sp-l); box-shadow: var(--shadow); }
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-title { font-size: 16px; font-weight: 600; position: relative; padding-left: 10px; }
.sec-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(var(--brand), var(--brand-2)); }
.sec-more { font-size: 12px; color: var(--t3); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------------- 文本 ---------------- */
.t1 { color: var(--t1); } .t2 { color: var(--t2); } .t3 { color: var(--t3); }
.f12 { font-size: 12px; } .f13 { font-size: 13px; } .f14 { font-size: 14px; }
.f16 { font-size: 16px; } .f18 { font-size: 18px; } .f22 { font-size: 22px; } .f28 { font-size: 28px; }
.bold { font-weight: 600; } .bolder { font-weight: 700; }
.brand-c { color: var(--brand); }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; background: #f1f3f6; color: var(--t1);
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-ghost { background: #f1f3f6; color: var(--t2); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; font-size: 17px; }
.btn.disabled, .btn:disabled { opacity: .5; }
.btn-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 480px; margin: 0 auto; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field-label { font-size: 13px; color: var(--t2); margin-bottom: 6px; display: block; }
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-input {
  width: 100%; height: 46px; padding: 0 14px; background: #f7f8fa;
  border: 1px solid transparent; border-radius: var(--r-m); outline: none;
}
textarea.field-input { height: auto; min-height: 84px; padding: 12px 14px; resize: none; line-height: 1.6; }
.field-input:focus { background: #fff; border-color: var(--brand); }
.field.has-error .field-input { border-color: var(--danger); background: #fff5f4; }
.field-err { color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 16px; display: block; }
.field-row { display: flex; gap: 8px; }
.field-row .field-input { flex: 1; }
.field-code { width: 108px; height: 46px; border: 0; border-radius: var(--r-m); background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; }
.field-code.disabled { color: var(--t3); background: #f1f3f6; }
.checkbox { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--t2); }
.checkbox input { margin-top: 3px; }

/* ---------------- 列表 ---------------- */
.list { background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px var(--sp-l); border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: #fafbfc; }
.list-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.list-arrow { color: var(--t3); font-size: 16px; flex: 0 0 auto; }
.list-title { font-size: 15px; font-weight: 500; }
.list-desc { font-size: 12px; color: var(--t3); }

/* 服务 / 商品卡 */
.svc-card { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc-card:last-child { border-bottom: 0; }
.svc-thumb { width: 84px; height: 84px; border-radius: var(--r-m); background: linear-gradient(135deg, #eef3ff, #e3ecff); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 22px; font-weight: 700; flex: 0 0 auto; }
.svc-body { flex: 1; min-width: 0; }
.svc-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.svc-desc { font-size: 12px; color: var(--t3); margin-top: 4px; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.svc-price { color: var(--danger); font-weight: 700; font-size: 15px; }

/* 标签 */
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; line-height: 17px; background: var(--brand-soft); color: var(--brand); }
.tag-warn { background: rgba(247,144,9,.12); color: var(--warn); }
.tag-danger { background: rgba(240,68,56,.12); color: var(--danger); }
.tag-ok { background: rgba(18,183,106,.12); color: var(--ok); }
.tag-gray { background: #f1f3f6; color: var(--t2); }

/* ---------------- 头屏 hero ---------------- */
.hero { position: relative; padding: 26px var(--sp-l) 30px; color: #fff; background: linear-gradient(150deg, var(--brand), var(--brand-2)); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.10); }
.hero::before { content: ''; position: absolute; right: 40px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: 23px; font-weight: 700; line-height: 1.35; }
.hero-sub { font-size: 13px; opacity: .9; margin-top: 8px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); }

/* 数据条 */
.stats { display: flex; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); margin: -18px var(--sp-l) 0; padding: 14px 0; position: relative; z-index: 2; }
.stat { flex: 1; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 24px; background: var(--line); }
.stat-val { font-size: 17px; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* 轮播 */
.slider { position: relative; overflow: hidden; border-radius: var(--r-l); }
.slider-track { display: flex; transition: transform .35s ease; }
.slider-item { flex: 0 0 100%; height: 116px; display: flex; flex-direction: column; justify-content: center; padding: 0 20px; color: #fff; }
.slider-item h4 { font-size: 18px; font-weight: 700; }
.slider-item p { font-size: 12px; opacity: .9; margin-top: 4px; }
.slider-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.slider-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slider-dots i.on { width: 14px; border-radius: 3px; background: #fff; }

/* 优势格 */
.adv-grid { display: flex; gap: 10px; }
.adv-item { flex: 1; background: #fafbfd; border-radius: var(--r-m); padding: 12px 10px; text-align: center; }
.adv-ico { font-size: 20px; }
.adv-title { font-size: 13px; font-weight: 600; margin-top: 6px; }
.adv-desc { font-size: 11px; color: var(--t3); margin-top: 3px; line-height: 1.4; }

/* 步骤 */
.steps { position: relative; padding-left: 26px; }
.step { position: relative; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.step::after { content: ''; position: absolute; left: -15px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step-num { display: none; }
.step-t { font-size: 14px; font-weight: 600; }
.step-d { font-size: 12px; color: var(--t3); }

/* 时间轴（进度查询） */
.timeline { position: relative; }
.tl-item { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: #dfe3e9; margin-top: 4px; flex: 0 0 auto; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(18,183,106,.14); }
.tl-item.now .tl-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 1.6s infinite; }
.tl-item::after { content: ''; position: absolute; left: 5.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::after { display: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.tl-t { font-size: 14px; font-weight: 500; }
.tl-time { font-size: 12px; color: var(--t3); }

/* FAQ 折叠 */
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; }
.faq-q .ico { color: var(--t3); transition: transform .2s; flex: 0 0 auto; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); }
.faq-a { display: none; font-size: 13px; color: var(--t2); margin-top: 8px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---------------- 底部转化条 + 导航 ---------------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 25;
  max-width: 480px; margin: 0 auto; display: flex; gap: 10px; align-items: center;
  padding: 8px var(--sp-l); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.cta-bar .cta-tel { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--t2); flex: 0 0 auto; }
.cta-bar .cta-tel .ico { font-size: 18px; color: var(--brand); }
.cta-bar .btn { flex: 1; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 26;
  max-width: 480px; margin: 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: #fff; border-top: 1px solid var(--line);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--t3); }
.tab-item .ico { font-size: 19px; line-height: 1; }
.tab-item.active { color: var(--brand); }

/* 悬浮客服 */
.fab { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 76px); width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; box-shadow: 0 6px 18px rgba(11,71,179,.35); z-index: 24; }
.fab .ico { font-size: 19px; line-height: 1; }

/* 公告 */
.notice { display: flex; align-items: center; gap: 8px; background: #fff8ec; border-radius: var(--r-m); padding: 9px 12px; font-size: 12px; color: #8a5a10; }
.notice .ico { flex: 0 0 auto; }

/* 答谢 / 结果页 */
.result { padding: 40px 20px; text-align: center; }
.result .ico { font-size: 54px; }
.result-t { font-size: 19px; font-weight: 700; margin-top: 12px; }
.result-d { font-size: 13px; color: var(--t2); margin-top: 8px; line-height: 1.7; }
.result-box { background: #fafbfd; border: 1px dashed var(--line); border-radius: var(--r-m); padding: 14px; margin-top: 18px; text-align: left; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.kv .k { color: var(--t3); }
.kv .v { font-weight: 600; }

/* 骨架 / 空态 */
.sk-card { background: #fff; border-radius: var(--r-m); padding: 14px; margin-bottom: 10px; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef0f4 25%, #f6f7fa 37%, #eef0f4 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
.sk-1 { width: 62%; }
.sk-2 { width: 92%; margin-top: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.empty { padding: 46px 20px; text-align: center; }
.empty-ico { font-size: 40px; opacity: .7; }
.empty-t { font-size: 13px; color: var(--t3); margin-top: 10px; }
.empty-btn { margin-top: 14px; }

/* toast / loading / mask / dialog / sheet */
.ui-toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(24,26,30,.9); color: #fff; font-size: 13px; padding: 10px 16px;
  border-radius: 10px; z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 76vw; text-align: center;
}
.ui-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ui-toast.ok { background: rgba(18,140,86,.94); }
.ui-toast.error { background: rgba(200,44,34,.94); }

.ui-loading { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.02); }
.ui-loading.show { display: flex; }
.ui-loading-box { background: rgba(24,26,30,.88); color: #fff; border-radius: 12px; padding: 16px 20px; text-align: center; min-width: 104px; }
.ui-loading-text { font-size: 12px; margin: 8px 0 0; }
.spin { display: block; width: 22px; height: 22px; margin: 0 auto; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ui-mask { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 9990; display: flex; align-items: center; justify-content: center; }
.ui-dialog { width: 78%; max-width: 320px; background: #fff; border-radius: var(--r-l); overflow: hidden; animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.92); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.ui-dialog-hd { padding: 18px 18px 0; font-size: 16px; font-weight: 600; text-align: center; }
.ui-dialog-bd { padding: 12px 18px 18px; font-size: 13px; color: var(--t2); text-align: center; line-height: 1.7; }
.ui-dialog-ft { display: flex; border-top: 1px solid var(--line); }
.ui-dialog-ft .btn { flex: 1; border-radius: 0; height: 46px; background: transparent; }
.ui-dialog-ft .btn-primary { color: var(--brand); background: transparent; }

.ui-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: var(--safe-b); animation: up .22s ease; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ui-sheet-hd { padding: 14px; font-size: 13px; color: var(--t3); text-align: center; border-bottom: 1px solid var(--line); }
.ui-sheet-item { padding: 14px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line); }
.ui-sheet-item:active { background: #f7f8fa; }
.ui-sheet-item.cancel { color: var(--t3); border-bottom: 0; }

/* tab 段控 */
.seg { display: flex; background: #f1f3f6; border-radius: 999px; padding: 3px; }
.seg-item { flex: 1; text-align: center; font-size: 13px; padding: 7px 0; border-radius: 999px; color: var(--t2); }
.seg-item.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* 免责 */
.disclaimer { padding: 16px var(--sp-l) 6px; font-size: 11px; color: var(--t3); line-height: 1.7; text-align: center; }


/* geo 城市条：定位来源徽章（"默认城市"字样由受保护的 geo.js 注入，这里不展示） */
#geoBar > span:nth-of-type(2) { display: none !important; }
