/* ============================================================
 * 公积金提取服务中心 —— pages.css（业务页专属样式）
 * 主色三行在 base.css 的 :root；本文件只加金色强调与业务组件
 * ============================================================ */
:root {
  --gold: #C8A055;
  --gold-soft: rgba(200, 160, 85, .14);
  --gold-line: rgba(200, 160, 85, .40);
}

/* ---------------- 顶部信息条 ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 22;
  max-width: 480px; margin: 0 auto;
  height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, #0A3E96, #0F5BD9);
  color: #fff; font-size: 11px; letter-spacing: .2px;
}
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.navbar { position: fixed; top: 30px; left: 0; right: 0; max-width: 480px; margin: 0 auto; }
.page.with-topbar { padding-top: 76px; }
.page.with-nav { padding-top: 46px; }
.page.with-topbar.mt12, .page.with-nav.mt12 { margin-top: 0; }

/* ---------------- 头屏 ---------------- */
.hero { padding: 22px var(--sp-l) 34px; margin-top: 6px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff;
}
.hero-kicker .g { color: #F3D9A4; }
.hero-title { font-size: 25px; margin-top: 12px; letter-spacing: .4px; }
.hero-title em { font-style: normal; color: #F3D9A4; }
.hero-sub { font-size: 13px; margin-top: 10px; opacity: .92; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero-tags span { font-size: 11px; padding: 2px 9px; border-radius: 4px; background: rgba(255,255,255,.14); }
.hero-btns { display: flex; gap: 10px; margin-top: 18px; }
.hero-btns .btn { flex: 1; height: 46px; }
.btn-gold { background: linear-gradient(135deg, #E0BE7C, #C8A055); color: #4a3608; font-weight: 700; }
.btn-onbrand { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.hero-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; opacity: .9; }
.hero-foot .face { display: flex; gap: 2px; font-size: 13px; }
.hero-shield { position: absolute; right: 16px; top: 18px; font-size: 46px; opacity: .16; }

/* ---------------- 数据背书 ---------------- */
.stats { padding: 12px 0; }
.stat-val { font-size: 16px; }
.stat-val .u { font-size: 11px; font-weight: 600; margin-left: 1px; }

/* ---------------- 公告 ---------------- */
.notice { align-items: flex-start; }
.notice .notice-txt { flex: 1; line-height: 1.6; }
.notice .notice-go { color: var(--warn); font-weight: 600; flex: 0 0 auto; }

/* ---------------- 提取类型网格 ---------------- */
.type-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.type-item {
  width: calc((100% - 20px) / 3);
  background: #fafbfd; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 12px 6px 10px; text-align: center; position: relative;
  transition: border-color .15s, background .15s;
}
.type-item:active { background: var(--brand-soft); border-color: var(--brand); }
.type-ico { font-size: 22px; line-height: 1; }
.type-name { font-size: 12px; font-weight: 600; margin-top: 7px; line-height: 1.35; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.type-meta { font-size: 10px; color: var(--t3); margin-top: 3px; height: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.type-hot {
  position: absolute; top: -1px; right: -1px; font-size: 9px; padding: 1px 5px;
  border-radius: 0 var(--r-s) 0 var(--r-s); background: var(--gold); color: #fff;
}

/* ---------------- 优势 ---------------- */
.adv-item { background: linear-gradient(180deg, #f7f9ff, #fff); border: 1px solid var(--line); }
.adv-ico { font-size: 22px; }
.adv-title { font-size: 12.5px; }

/* ---------------- 流程 ---------------- */
.flow { display: flex; gap: 6px; }
.flow-item { flex: 1; text-align: center; position: relative; }
.flow-num {
  width: 30px; height: 30px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(10, 62, 150, .25);
}
.flow-item:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px);
  height: 1px; background: var(--line);
}
.flow-t { font-size: 12px; font-weight: 600; margin-top: 8px; }
.flow-d { font-size: 10px; color: var(--t3); margin-top: 2px; line-height: 1.4; }

/* ---------------- 案例 ---------------- */
.case-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.case-filter::-webkit-scrollbar { display: none; }
.case-chip {
  flex: 0 0 auto; font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: #f1f3f6; color: var(--t2); white-space: nowrap;
}
.case-chip.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.case-list { display: block; }
.case-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-card:first-child { padding-top: 0; }
.case-card:last-child { border-bottom: 0; padding-bottom: 0; }
.case-hd { display: flex; align-items: center; gap: 8px; }
.case-avt {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.case-who { font-size: 13px; font-weight: 600; }
.case-meta { font-size: 11px; color: var(--t3); margin-top: 2px; }
.case-text { font-size: 13px; color: var(--t2); line-height: 1.7; margin-top: 9px; }
.case-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.case-amount { font-size: 13px; font-weight: 700; color: var(--gold); margin-left: auto; }

/* ---------------- FAQ ---------------- */
.faq-q { cursor: pointer; padding: 2px 0; }
.faq-item { padding: 13px 0; }
.faq-cat { flex: 0 0 auto; }

/* ---------------- 表单 ---------------- */
.form-tip { font-size: 11px; color: var(--t3); line-height: 1.6; }
.pick {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 46px; padding: 0 14px; background: #f7f8fa; border: 1px solid transparent;
  border-radius: var(--r-m); font-size: 14px;
}
.pick .pick-v { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick .pick-v.ph { color: var(--t3); }
.pick .pick-a { color: var(--t3); font-size: 14px; }
.pick:active { background: #eef1f6; }

/* ---------------- 多步表单 ---------------- */
.stepper { display: flex; align-items: center; background: #fff; padding: 14px var(--sp-l) 12px; border-bottom: 1px solid var(--line); }
.step-node { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; width: 62px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; background: #eceef2; color: var(--t3);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.step-node.active .step-dot { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 3px 8px rgba(10, 62, 150, .28); }
.step-node.done .step-dot { background: var(--ok); color: #fff; }
.step-label { font-size: 11px; color: var(--t3); }
.step-node.active .step-label { color: var(--brand); font-weight: 600; }
.step-node.done .step-label { color: var(--ok); }
.step-line { flex: 1; height: 2px; background: #eceef2; margin-bottom: 18px; border-radius: 2px; }
.step-line.done { background: var(--ok); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* 上传 */
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-cell {
  width: calc((100% - 20px) / 3); aspect-ratio: 1 / 1; border-radius: var(--r-m);
  border: 1px dashed #cfd6e2; background: #fafbfd; color: var(--t3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; text-align: center; padding: 4px; position: relative; overflow: hidden;
}
.upload-cell .u-ico { font-size: 20px; }
.upload-cell.filled { border-style: solid; border-color: var(--ok); background: #f4fdf8; color: var(--ok); }
.upload-cell.busy { border-color: var(--brand); color: var(--brand); }
.upload-cell .u-name { font-size: 9px; line-height: 1.3; max-height: 24px; overflow: hidden; }
.upload-cell .u-del {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px; border-radius: 0 var(--r-m) 0 8px;
  background: rgba(240, 68, 56, .9); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
@keyframes upl { to { transform: rotate(360deg); } }
.u-spin { width: 16px; height: 16px; border: 2px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: upl .7s linear infinite; }

/* ---------------- 额度测算 ---------------- */
.calc-out {
  margin-top: 14px; border-radius: var(--r-l); padding: 18px 16px; color: #fff;
  background: linear-gradient(140deg, #0F5BD9, #0A3E96 70%); position: relative; overflow: hidden;
}
.calc-out::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(200, 160, 85, .22); }
.calc-out > * { position: relative; z-index: 1; }
.calc-out .co-label { font-size: 12px; opacity: .86; }
.calc-out .co-amount { font-size: 34px; font-weight: 700; line-height: 1.2; margin-top: 4px; color: #F3D9A4; letter-spacing: .5px; }
.calc-out .co-amount small { font-size: 14px; margin-left: 3px; color: #fff; opacity: .8; }
.calc-out .co-formula { font-size: 12px; line-height: 1.7; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .3); }
.calc-out .co-note { font-size: 11px; opacity: .82; margin-top: 8px; line-height: 1.6; }
.calc-out.warn { background: linear-gradient(140deg, #8a5a10, #5c3c07); }
.calc-out.warn .co-amount { color: #FFE0A8; }

.calc-kv { display: flex; gap: 10px; margin-top: 12px; }
.calc-kv .ck {
  flex: 1; background: #fafbfd; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 10px; text-align: center;
}
.calc-kv .ck .k { font-size: 11px; color: var(--t3); }
.calc-kv .ck .v { font-size: 14px; font-weight: 700; color: var(--t1); margin-top: 3px; }
.calc-bar { height: 8px; border-radius: 999px; background: #eceef2; overflow: hidden; margin-top: 12px; }
.calc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .5s ease; }
.calc-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.calc-quick span { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.input-suffix { position: relative; }
.input-suffix .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--t3); }
.input-suffix .field-input { padding-right: 46px; }

/* ---------------- 进度查询 ---------------- */
.tl-item .tl-body { flex: 1; min-width: 0; }
.tl-state { font-size: 11px; flex: 0 0 auto; }
.tl-item.done .tl-t { color: var(--t1); }
.tl-item.now .tl-t { color: var(--brand); font-weight: 600; }
.tl-item.todo .tl-t { color: var(--t3); }
.prog-hd {
  border-radius: var(--r-l); padding: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.prog-hd .ph-row { display: flex; align-items: center; justify-content: space-between; }
.prog-hd .ph-t { font-size: 16px; font-weight: 700; }
.prog-hd .ph-no { font-size: 12px; opacity: .88; margin-top: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.prog-kv { display: flex; gap: 10px; margin-top: 14px; }
.prog-kv .pk { flex: 1; }
.prog-kv .pk .k { font-size: 11px; opacity: .8; }
.prog-kv .pk .v { font-size: 13px; font-weight: 600; margin-top: 2px; }

/* ---------------- 我的 ---------------- */
.user-hd {
  display: flex; align-items: center; gap: 12px; padding: 18px var(--sp-l);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.user-avt {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.user-name { font-size: 17px; font-weight: 700; }
.user-phone { font-size: 12px; opacity: .88; margin-top: 3px; }
.user-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: #fff; margin-left: 6px; vertical-align: 2px; }
.user-stat { display: flex; background: #fff; margin: -16px var(--sp-l) 0; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 14px 0; position: relative; z-index: 2; }
.user-stat .us { flex: 1; text-align: center; position: relative; }
.user-stat .us + .us::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: var(--line); }
.user-stat .v { font-size: 17px; font-weight: 700; color: var(--brand); }
.user-stat .k { font-size: 11px; color: var(--t3); margin-top: 2px; }

.lead-card { padding: 13px 0; border-bottom: 1px solid var(--line); }
.lead-card:first-child { padding-top: 0; }
.lead-card:last-child { border-bottom: 0; padding-bottom: 0; }
.lead-row { display: flex; align-items: center; gap: 8px; }
.lead-title { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.lead-meta { font-size: 11px; color: var(--t3); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lead-meta > span { position: relative; }
.lead-meta > span + span::before { content: '·'; position: absolute; left: -7px; color: var(--line); }
.lead-amount { color: var(--gold); font-weight: 700; }
.lead-acts { display: flex; gap: 8px; margin-top: 10px; }
.lead-acts .btn { height: 30px; font-size: 12px; padding: 0 12px; }
.lead-filter { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.lead-filter::-webkit-scrollbar { display: none; }

/* 收藏 */
.fav-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fav-item:last-child { border-bottom: 0; }
.fav-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.fav-more { font-size: 12px; color: var(--t3); text-align: center; margin-top: 12px; }

/* ---------------- 搜索 ---------------- */
.search-bar { display: flex; align-items: center; gap: 8px; background: #f1f3f6; border-radius: 999px; padding: 0 14px; height: 40px; }
.search-bar .ico { color: var(--t3); font-size: 14px; }
.search-bar input { flex: 1; border: 0; background: transparent; outline: none; height: 40px; font-size: 13px; min-width: 0; }
.search-bar .clr { color: var(--t3); font-size: 14px; padding: 0 2px; }

/* ---------------- 结果页 ---------------- */
.result-hero { text-align: center; padding: 34px 20px 22px; background: linear-gradient(160deg, #0F5BD9, #0A3E96); color: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.result-ring {
  width: 66px; height: 66px; margin: 0 auto; border-radius: 50%;
  background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .6);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.result-hero .rt { font-size: 20px; font-weight: 700; margin-top: 14px; }
.result-hero .rd { font-size: 12px; opacity: .9; margin-top: 6px; }
.order-box { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 16px; margin: -18px var(--sp-l) 0; position: relative; z-index: 2; }
.order-no { font-size: 19px; font-weight: 700; letter-spacing: 1px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }
.tel-big { font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }

/* ---------------- 其他 ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #f1f3f6; color: var(--t2); }
.chip.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.need-list li { font-size: 13px; color: var(--t2); padding: 5px 0 5px 20px; position: relative; }
.need-list li::before { content: '·'; position: absolute; left: 8px; color: var(--brand); font-weight: 700; }
.upload-note { font-size: 11px; color: var(--t3); margin-top: 10px; line-height: 1.6; }
.svc-thumb { background: linear-gradient(135deg, #eaf0ff, #dbe6ff); }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px var(--sp-l) 0; font-size: 11px; color: var(--t3); flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 3px; }
