/* ============================================================
 * 公积金代提代取服务网（15-gjj-jznjc）—— pages.css
 * 传统 CMS 门户 + 资讯内容型：顶栏 / logo 横幅 / 主导航 / 头图 / 图文栏目 /
 * 左侧分类树 / 文章列表与正文 / FAQ 折叠 / 表单 / 我的 / 底部四宫格
 * 依赖 base.css 的令牌与通用组件，只补充本站结构
 * 布局约束：320px 起不横向溢出；触控目标 ≥44px；网格 minmax(0,1fr)
 * ============================================================ */

:root {
  --navbar-h: 42px;   /* 门户主导航高度 */
  --cellbar-h: 56px;  /* 底部四宫格高度 */
}

/* ---------------- 顶部信息条 ---------------- */
.topbar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 var(--sp-l);
  background: var(--brand-2); color: #fff; font-size: 11px;
}
.topbar .grow { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar .tb-links { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.topbar .tb-links a { color: rgba(255, 255, 255, .92); }

/* ---------------- logo 横幅 ---------------- */
.sitehead {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; padding: 12px var(--sp-l) 14px;
  position: relative; overflow: hidden;
}
.sitehead::after {
  content: ''; position: absolute; right: -46px; top: -54px; width: 148px; height: 148px;
  border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.sitehead > * { position: relative; z-index: 1; }
.sitehead-row { display: flex; align-items: center; gap: 10px; }
.sitehead-logo {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .42);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sitehead-name { display: block; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.sitehead-sub { display: block; font-size: 11px; opacity: .9; margin-top: 2px; line-height: 1.4; }
.sitehead-tel { flex: 0 0 auto; text-align: right; font-size: 10px; color: rgba(255, 255, 255, .85); }
.sitehead-tel .no { display: block; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.sitehead-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sitehead-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }

/* ---------------- 门户主导航 ---------------- */
.mainnav {
  position: sticky; top: 0; z-index: 21;
  display: flex; align-items: stretch;
  height: var(--navbar-h); background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(17, 24, 39, .04);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  flex: 0 0 auto; min-width: 62px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--t2); padding: 0 8px; position: relative; white-space: nowrap;
}
.mainnav a.on { color: var(--brand); font-weight: 600; }
.mainnav a.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px; background: var(--brand);
}

/* ---------------- 头图 hero ---------------- */
.hero {
  position: relative; padding: 22px var(--sp-l) 42px; 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: 150px; height: 150px;
  border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.hero::before {
  content: ''; position: absolute; right: 34px; bottom: -58px; width: 116px; height: 116px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: 21px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.hero-sub { font-size: 12px; opacity: .92; margin-top: 8px; line-height: 1.6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }

/* 头图上的数据条（上提压住 hero 下沿） */
.hero-stats {
  display: flex; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow);
  margin: -28px var(--sp-l) 0; padding: 12px 0; position: relative; z-index: 2;
}
.hero-stats .stat { flex: 1; text-align: center; position: relative; min-width: 0; }
.hero-stats .stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: var(--line);
}
.hero-stats .stat-val { font-size: 15px; font-weight: 700; color: var(--brand); overflow-wrap: anywhere; }
.hero-stats .stat-label { font-size: 10px; color: var(--t3); margin-top: 2px; }
@media (max-width: 340px) {
  .hero-stats .stat-val { font-size: 13px; }
  .hero-stats .stat-label { font-size: 9px; }
}

/* ---------------- 公告条 ---------------- */
.notice-bar { margin: 12px var(--sp-l) 0; }
.notice-bar .notice { cursor: pointer; }
.notice-bar .notice .grow { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------------- 通用门户区块（无卡片阴影，CMS 栏目感） ---------------- */
.block { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px var(--sp-l); }
.block + .block { margin-top: 10px; }
.block-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.block-title { font-size: 16px; font-weight: 600; position: relative; padding-left: 10px; }
.block-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));
}
.block-more { font-size: 12px; color: var(--t3); flex: 0 0 auto; }

/* ---------------- 服务栏目图文网格（2 列 × 3 行，带缩略预留） ---------------- */
.col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.col-card {
  display: flex; gap: 9px; align-items: flex-start; min-width: 0;
  padding: 10px; border-radius: var(--r-m); background: #fafbfd; border: 1px solid #f2f4f8;
}
.col-card:active { background: #fdf3f4; }
.col-thumb {
  width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: linear-gradient(135deg, #fdeaea, #fbd5d5); color: var(--brand);
  border: 1px solid #f6dcdc;
}
.col-body { flex: 1; min-width: 0; display: block; }
.col-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.col-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; color: var(--t3); line-height: 1.5; margin-top: 3px; }
.col-tagline { display: block; font-size: 10px; color: var(--brand); margin-top: 4px; }
@media (max-width: 340px) {
  .col-grid { gap: 8px; }
  .col-card { padding: 8px; gap: 7px; }
  .col-thumb { width: 40px; height: 40px; font-size: 17px; }
  .col-name { font-size: 13px; }
}

/* ---------------- 列表 tab（段控） ---------------- */
.tabs-line { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs-line::-webkit-scrollbar { display: none; }
.tab-line-item {
  flex: 0 0 auto; padding: 6px 0 10px; font-size: 14px; color: var(--t2); position: relative; white-space: nowrap;
}
.tab-line-item.on { color: var(--brand); font-weight: 600; }
.tab-line-item.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand);
}

/* ---------------- 文章列表（CMS 索引条） ---------------- */
.art-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.art-item:last-child { border-bottom: 0; }
.art-item:active { background: #fafbfc; }
.art-idx {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; margin-top: 2px;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.art-idx.top { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.art-body { flex: 1; min-width: 0; display: block; }
.art-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.45; }
.art-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--t2); margin-top: 5px; line-height: 1.6; }
.art-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; font-size: 11px; color: var(--t3); }
.art-meta .sp { color: #d9dde3; }
.art-side { flex: 0 0 auto; text-align: right; font-size: 11px; color: var(--t3); line-height: 1.7; padding-top: 2px; }
.art-side .d { display: block; white-space: nowrap; }

/* 热文列表（首页） */
.hot-item { display: flex; gap: 9px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hot-item:last-child { border-bottom: 0; }
.hot-rank {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; margin-top: 1px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  background: #f1f3f6; color: var(--t2);
}
.hot-rank.r1 { background: var(--brand); color: #fff; }
.hot-rank.r2 { background: #d9534f; color: #fff; }
.hot-rank.r3 { background: #ef9a9a; color: #fff; }
.hot-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; }
.hot-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--t3); margin-top: 5px; }

/* ---------------- 服务页：左侧分类树 + 右侧列表 ---------------- */
.svc-layout { display: flex; align-items: flex-start; gap: 0; margin-top: 10px; }
/* 分类树随页面滚动（不做 sticky：页面高度多档不一，sticky 在筛选后右列变短时
   会把列表尾部卷到树下方并被树遮住） */
.cate-tree {
  flex: 0 0 94px; width: 94px; align-self: flex-start; background: #f7f8fa;
  border-right: 1px solid var(--line); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cate-tree::-webkit-scrollbar { display: none; }
.cate-group { border-bottom: 1px solid var(--line); }
.cate-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  min-height: 44px; padding: 8px 8px 8px 10px; font-size: 12px; line-height: 1.35; color: var(--t2);
}
.cate-row .nm { min-width: 0; overflow-wrap: anywhere; }
.cate-row .ar { flex: 0 0 auto; font-size: 10px; color: var(--t3); transition: transform .2s; }
.cate-group.open .cate-row .ar { transform: rotate(180deg); }
.cate-row.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.cate-subs { display: none; background: #fff; }
.cate-group.open .cate-subs { display: block; }
.cate-sub {
  display: block; min-height: 42px; padding: 9px 8px 9px 14px; font-size: 12px; line-height: 1.35;
  color: var(--t2); border-bottom: 1px solid #f6f7f9; position: relative;
}
.cate-sub:last-child { border-bottom: 0; }
.cate-sub .nm { display: block; overflow-wrap: anywhere; }
.cate-sub.on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.cate-sub.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 0 2px 2px 0; background: var(--brand);
}

.svc-main { flex: 1; min-width: 0; padding: 0 0 0 10px; }
.svc-main .list-bar { padding: 0 0 8px; }

/* 搜索条（服务页 / 资讯页 / FAQ 页共用） */
.search-bar { display: flex; gap: 8px; align-items: center; padding: 10px var(--sp-l); background: #fff; border-bottom: 1px solid var(--line); }
.svc-layout .search-bar { padding: 10px 0 4px; border-bottom: 0; }
.search-box {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 999px; background: #f5f6f8;
}
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; }
.search-box .ico { color: var(--t3); flex: 0 0 auto; }
.search-btn {
  flex: 0 0 auto; height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 13px; font-weight: 600;
}
.hotwords { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px var(--sp-l) 2px; }
.hotword { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #f5f6f8; color: var(--t2); }

/* 服务卡（右侧列表项） */
.svc-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.svc-row:last-child { border-bottom: 0; }
.svc-row:active { background: #fafbfc; }
.svc-thumb2 {
  width: 62px; height: 62px; border-radius: var(--r-m); flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.svc-body { flex: 1; min-width: 0; display: block; }
.svc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.45; }
.svc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--t3); margin-top: 4px; line-height: 1.6; }
.svc-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; font-size: 11px; color: var(--t3); }
.svc-meta .sp { color: #d9dde3; }
@media (max-width: 340px) {
  .cate-tree { flex: 0 0 84px; width: 84px; }
  .cate-row { font-size: 11px; padding-left: 8px; }
  .cate-sub { font-size: 11px; padding-left: 11px; }
  .svc-main { padding-left: 8px; }
  .svc-thumb2 { width: 54px; height: 54px; font-size: 18px; }
}

/* ---------------- 栏目条 / 筛选 chips ---------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--sp-l) 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px; border: 0;
  background: #fff; color: var(--t2); font-size: 13px; box-shadow: var(--shadow);
}
.chip.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; }

/* ---------------- 面包屑 / 列表条 / 加载更多 ---------------- */
.crumb { display: flex; align-items: center; gap: 6px; padding: 10px var(--sp-l) 0; font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.crumb a { color: var(--t3); }
.crumb .sep { color: #d3d7de; }
.crumb .cur { color: var(--brand); }

.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--t3); }
.list-bar .reset { color: var(--brand); flex: 0 0 auto; }
.list-bar .grow { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.more-wrap { padding: 14px var(--sp-l) 4px; }
.more-btn { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--t2); font-size: 13px; }
.more-btn:disabled { opacity: .6; }
.end-line { text-align: center; font-size: 12px; color: var(--t3); padding: 14px 0 4px; }
.end-line::before, .end-line::after { content: '—'; margin: 0 6px; color: #dfe3e9; }

/* ---------------- 同页切换视图 ---------------- */
.view-host > .view { display: none; }
.view-host > .view.on { display: block; }
.detail-hd { background: #fff; padding: 14px var(--sp-l) 12px; border-bottom: 1px solid var(--line); }
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--t3); }
.detail-meta .sp { color: #d9dde3; }
.detail-body { background: #fff; padding: 2px var(--sp-l) 18px; }
.detail-body p { font-size: 15px; color: #33373d; line-height: 1.95; margin-top: 14px; overflow-wrap: anywhere; text-indent: 2em; }
.detail-sec { margin-top: 16px; }
.detail-sec h4 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.detail-sec h4::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(var(--brand), var(--brand-2)); flex: 0 0 auto; }
.point-list { margin-top: 8px; }
.point-list li { position: relative; padding-left: 18px; font-size: 13px; color: var(--t2); line-height: 1.8; overflow-wrap: anywhere; }
.point-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--brand); font-size: 12px; font-weight: 700; }
.ol-list { margin-top: 8px; counter-reset: ol; }
.ol-list li { position: relative; padding-left: 24px; font-size: 13px; color: var(--t2); line-height: 1.8; overflow-wrap: anywhere; }
.ol-list li::before {
  counter-increment: ol; content: counter(ol);
  position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.detail-note { margin-top: 16px; font-size: 11px; color: var(--t3); line-height: 1.7; background: #fafbfd; border-left: 3px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.detail-note.warn { background: #fff8ec; border-left-color: var(--warn); color: #8a5a10; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; }
.kv .k { color: var(--t3); flex: 0 0 auto; }
.kv .v { font-weight: 600; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.dialog-acts { display: flex; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dialog-acts .btn { flex: 1; height: 44px; font-size: 14px; }

/* 相关推荐 */
.rel-list { margin-top: 6px; }
.rel-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rel-item:last-child { border-bottom: 0; }
.rel-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 7px; }
.rel-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; }
.rel-d { display: block; font-size: 11px; color: var(--t3); margin-top: 3px; }

/* ---------------- 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; line-height: 1.55; }
.faq-q .qt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.faq-q .ico { color: var(--t3); transition: transform .2s; flex: 0 0 auto; font-size: 13px; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--brand); }
.faq-a { display: none; font-size: 13px; color: var(--t2); margin-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }
.faq-item.open .faq-a { display: block; }
.faq-a .risk { display: block; margin-top: 6px; font-size: 11px; color: #8a5a10; background: #fff8ec; border-radius: 6px; padding: 7px 9px; line-height: 1.6; }
.faq-cate { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); margin-right: 6px; vertical-align: 1px; }

/* ---------------- 表单 ---------------- */
.form-card { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--sp-l); }
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 0 14px; background: #f7f8fa; border-radius: var(--r-m);
  border: 1px solid transparent; font-size: 14px;
}
.pick-row .v { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-row .v.ph { color: var(--t3); }
.pick-row .ar { color: var(--t3); font-size: 13px; flex: 0 0 auto; }
.field.has-error .pick-row { border-color: var(--danger); background: #fff5f4; }
.form-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: var(--t3); line-height: 1.6; margin-top: 6px; }
.form-tip .ico { flex: 0 0 auto; }

/* 提交成功 */
.succ-box { text-align: center; }
.succ-ico {
  width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; font-size: 30px;
  background: rgba(18, 183, 106, .12); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.succ-t { font-size: 17px; font-weight: 700; margin-top: 12px; }
.succ-d { font-size: 12px; color: var(--t2); margin-top: 6px; line-height: 1.7; }
.ticket-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fafbfd; border: 1px dashed #d8dee8; border-radius: var(--r-m);
  padding: 12px; margin-top: 14px; text-align: left;
}
.ticket-row > div { min-width: 0; }
.ticket-no {
  font-size: 15px; font-weight: 700; letter-spacing: .4px; color: var(--brand);
  font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere;
}
.ui-dialog { width: 86%; max-width: 348px; }
.ui-dialog-bd { max-height: 58vh; overflow-y: auto; }
.ui-dialog-ft .btn { white-space: nowrap; font-size: 14px; padding: 0 8px; }

/* ---------------- 我的 ---------------- */
.mine-hd {
  padding: 18px var(--sp-l) 26px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.mine-hd::after { content: ''; position: absolute; right: -34px; top: -52px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.mine-hd > * { position: relative; z-index: 1; }
.mine-user { display: flex; align-items: center; gap: 12px; }
.mine-av {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; font-size: 20px; font-weight: 700;
  background: rgba(255, 255, 255, .22); color: #fff; border: 2px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
}
.mine-name { font-size: 17px; font-weight: 700; }
.mine-phone { font-size: 12px; opacity: .9; margin-top: 3px; }
.mine-stats {
  display: flex; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow);
  margin: -16px var(--sp-l) 0; position: relative; z-index: 3; padding: 13px 0;
}
.mine-stats > div { flex: 1; text-align: center; position: relative; min-width: 0; }
.mine-stats > div + div::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: var(--line);
}
.mine-stats .v { font-size: 16px; font-weight: 700; color: var(--brand); }
.mine-stats .l { font-size: 11px; color: var(--t3); margin-top: 2px; }

.seg.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 var(--sp-l); }
.seg.seg4 .seg-item { background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-size: 12px; }

/* 5 项状态筛选：横向可滚动段控，窄屏不挤压 */
.seg.seg-scroll { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.seg.seg-scroll::-webkit-scrollbar { display: none; }
.seg.seg-scroll .seg-item { flex: 0 0 auto; padding: 7px 12px; font-size: 12px; white-space: nowrap; }

.rec-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.rec-item:last-child { border-bottom: 0; }
.rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rec-type { flex: 0 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.rec-top .tag { white-space: nowrap; flex: 0 0 auto; }
.rec-remark { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--t2); margin-top: 6px; line-height: 1.65; }
.rec-time { font-size: 11px; color: var(--t3); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.rec-time .sp { color: #d9dde3; }

.fav-item { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.fav-item:last-child { border-bottom: 0; }
.fav-kind { flex: 0 0 auto; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-top: 2px; background: var(--brand-soft); color: var(--brand); }
.fav-kind.news { background: rgba(247, 144, 9, .12); color: var(--warn); }
.fav-kind.qa { background: rgba(18, 183, 106, .12); color: var(--ok); }
.fav-body { flex: 1; min-width: 0; display: block; }
.fav-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.45; }
.fav-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--t3); margin-top: 4px; line-height: 1.6; }
.fav-date { display: block; font-size: 11px; color: var(--t3); margin-top: 6px; }
.fav-del { flex: 0 0 auto; color: var(--t3); font-size: 12px; padding: 4px 2px; }
.row-list { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 2px var(--sp-l); }

/* 客服卡 / 菜单 */
.cs-card { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--sp-l); }
.cs-head { display: flex; align-items: center; gap: 10px; }
.cs-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; font-size: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.cs-avatar .dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.cs-name { font-size: 15px; font-weight: 600; }
.cs-status { font-size: 12px; color: var(--t3); margin-top: 2px; }
.cs-acts { display: flex; gap: 8px; margin-top: 12px; }
.cs-acts .btn { flex: 1; height: 42px; font-size: 14px; }

.menu-group { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px var(--sp-l); border-bottom: 1px solid var(--line); min-height: 52px; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #fafbfc; }
.menu-item .ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; font-size: 17px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.menu-item .t { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.menu-item .sub {
  flex: 0 1 auto; min-width: 0; font-size: 12px; color: var(--t3);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right;
}
.menu-item .list-arrow { flex: 0 0 auto; color: var(--t3); }

/* 客服引导块 */
.wx-box { display: flex; align-items: center; gap: 12px; background: #f7fcfa; border: 1px solid #dff2e6; border-radius: var(--r-m); padding: 12px; margin-top: 12px; text-align: left; }
.wx-qr { width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; background: #fff; border: 1px solid #dfe6ee; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.wx-t { font-size: 13px; font-weight: 600; }
.wx-d { font-size: 11px; color: var(--t3); margin-top: 3px; line-height: 1.6; }
.wx-id { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }

/* ---------------- 底部四宫格（返回首页 / 拨打热线 / 发送短信 / 在线客服） ---------------- */
.cellbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 27;
  max-width: 480px; margin: 0 auto;
  height: calc(var(--cellbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: #fff; border-top: 1px solid var(--line);
}
.cell-item {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--t2); border: 0; background: transparent; padding: 0;
}
.cell-item + .cell-item { border-left: 1px solid var(--line); }
.cell-item .ico { font-size: 18px; line-height: 1; color: var(--brand); }
.cell-item:active { background: #fafbfc; }

/* 底部导航位于四宫格之上 */
.tabbar { bottom: calc(var(--cellbar-h) + var(--safe-b)); }

/* 底部留白：底部导航 + 四宫格都叠在页面底部，两处都要预留足量空间 */
.page { padding-bottom: calc(var(--tabbar-h) + var(--cellbar-h) + var(--safe-b) + 26px); }
.page.has-cta { padding-bottom: calc(var(--tabbar-h) + var(--cellbar-h) + var(--safe-b) + 30px); }

/* 底部固定转化条位于四宫格之上、导航之下 */
.cta-bar { bottom: calc(var(--cellbar-h) + var(--tabbar-h) + var(--safe-b)); }

/* ---------------- 页面切换视图容器 ---------------- */
.view-host { min-height: 60vh; }

/* ---------------- 联系我们 ---------------- */
.contact-hd {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: 18px var(--sp-l) 22px; border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.contact-hd h2 { font-size: 18px; font-weight: 700; }
.contact-hd p { font-size: 12px; opacity: .92; margin-top: 6px; line-height: 1.6; }
.contact-tel { font-size: 21px; font-weight: 700; margin-top: 12px; letter-spacing: .5px; overflow-wrap: anywhere; }
.qr-box { display: flex; gap: 14px; align-items: center; }
.qr-ph {
  width: 92px; height: 92px; border-radius: var(--r-m); flex: 0 0 auto;
  background: #fff; border: 1px dashed #cfd6e0; color: var(--t3); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; line-height: 1.3;
}
.qr-ph .ico { font-size: 24px; }
.map-ph {
  margin-top: 12px; height: 112px; border-radius: var(--r-m); border: 1px dashed #cfd6e0;
  background: #fafbfd; color: var(--t3); font-size: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.map-ph .ico { font-size: 26px; }

/* 时间线（我的 → 咨询进度） */
.timeline { position: relative; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #dfe3e9; margin-top: 5px; 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::after { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::after { display: none; }
.tl-t { font-size: 14px; font-weight: 500; }
.tl-time { font-size: 12px; color: var(--t3); }

/* ---------------- 合规提示块 ---------------- */
.compliance {
  background: #fff8ec; border: 1px solid #f6e2bd; border-radius: var(--r-m);
  padding: 11px 12px; font-size: 11px; color: #8a5a10; line-height: 1.75;
}
.compliance b { color: #7a4e0c; }
.compliance .ct { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }

/* 免责声明：位于页面最末，需整体抬到「底部导航 + 四宫格」之上 */
.disclaimer { padding-bottom: calc(var(--tabbar-h) + var(--cellbar-h) + var(--safe-b) + 8px); }

/* 底部转化条按钮文案不换行 */
.cta-bar .btn { white-space: nowrap; }
.cta-bar .cta-tel { min-width: 58px; }
