/* ============================================================
 * 国联客户 · 样式（设计令牌与 Flutter 端一致）
 * ============================================================ */
:root{
  --brand:#1A3D6D;
  --brand-deep:#0E2747;
  --brand-mid:#2C5C93;
  --brand-soft:#EAF0F8;
  --gold:#B8913F;
  --gold-soft:#F8F1E1;
  --bg:#F4F6FA;
  --surface:#FFFFFF;
  --line:#ECEFF4;
  --t1:#151A23;
  --t2:#6A7280;
  --t3:#9AA1AD;
  --success:#0F9D6E;
  --warning:#E08600;
  --danger:#D92D20;
  --info:#0B84C4;
  --radius:14px;
  /* iOS 安全区：底部横条 / 刘海 / 横屏左右缺口 */
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
  --safe-l:env(safe-area-inset-left,0px);
  --safe-r:env(safe-area-inset-right,0px);
  --tabh:56px;
  /* 动态视口高度：iOS 地址栏收起/展开时 100vh 会算错，优先用 dvh */
  --vfull:100vh;
}
@supports (height:100dvh){ :root{ --vfull:100dvh; } }
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
html{scrollbar-width:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
::-webkit-scrollbar{width:0;height:0;display:none}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--t1);
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:13px;overscroll-behavior-y:none;
  /* 防止长按弹出系统菜单、拖动时选中文字（输入框单独放行） */
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
}
input,textarea{ -webkit-user-select:text;user-select:text;-webkit-touch-callout:default }
button{font-family:inherit;border:none;background:none;padding:0;color:inherit;cursor:pointer}
input,textarea,select{font-family:inherit;font-size:13px;color:inherit;outline:none;border:none;background:none}
/* iOS Safari 规则：输入框字号 < 16px 时，聚焦会自动放大整页且难以还原。
   由 index.html 依据 UA 提前打上 .is-ios，安卓与桌面保持原设计尺寸。 */
.is-ios input,.is-ios textarea,.is-ios select{font-size:16px !important;line-height:1.35}
@supports (-webkit-touch-callout:none){
  input,textarea,select{font-size:16px !important;line-height:1.35}
  .searchbox input,.field input,.field textarea{font-size:16px !important}
}

/* ---------- 外壳 ---------- */
#app{max-width:520px;margin:0 auto;min-height:var(--vfull);background:var(--bg);position:relative;
  padding-bottom:calc(var(--tabh) + var(--safe-b));}
.page{animation:fade .18s ease}
@keyframes fade{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}
.scrollpad{height:16px}

/* 顶部栏（二级页） */
.navbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;
  padding:calc(var(--safe-t) + 10px) 14px 10px;background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line)}
.navbar .back{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  color:var(--brand);background:var(--brand-soft)}
.navbar h1{font-size:15px;margin:0;font-weight:700}
.navbar .right{margin-left:auto;font-size:11.5px;color:var(--brand);font-weight:600}

/* 深色头 */
.hero{background:linear-gradient(135deg,var(--brand-deep) 0%,var(--brand) 55%,var(--brand-mid) 100%);
  color:#fff;padding:calc(var(--safe-t) + 14px) calc(18px + var(--safe-r)) 32px calc(18px + var(--safe-l));
  border-radius:0 0 24px 24px}
.hero.compact{padding-bottom:22px}
.hero .row{display:flex;align-items:center;gap:11px}
.hero h2{margin:0;font-size:17px;font-weight:700}
.hero .sub{font-size:10.5px;color:rgba(255,255,255,.72);margin-top:3px}
.hero .quote{font-size:15px;font-weight:800;margin-top:13px;line-height:1.45}
.hero .desc{font-size:10.5px;color:rgba(255,255,255,.78);line-height:1.75;margin-top:6px}
.avatar{width:38px;height:38px;border-radius:12px;background:#fff;color:var(--brand);display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:800;flex:0 0 auto}
.hero .nav{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hero .nav .t{font-size:13px;font-weight:700}
.hero .nav .l{margin-left:auto;font-size:10px;color:rgba(255,255,255,.7)}

/* 卡片 */
.card{background:var(--surface);border-radius:var(--radius);padding:14px;margin:0 16px 10px;
  box-shadow:0 1px 3px rgba(16,38,68,.05)}
.card.tap:active{transform:scale(.994);background:#FCFDFF}
.sec{display:flex;align-items:baseline;gap:8px;padding:14px 20px 8px}
.sec b{font-size:13.5px}
.sec i{font-style:normal;font-size:10.5px;color:var(--t3)}
.sec .more{margin-left:auto;font-size:10.5px;color:var(--info);font-weight:600}
.muted{color:var(--t2);font-size:11.5px;line-height:1.65}
.tiny{font-size:10px;color:var(--t3);line-height:1.7}
.hr{height:1px;background:var(--line);margin:10px 0}

/* KPI */
.kpi{display:flex;background:#fff;border-radius:16px;padding:13px 4px;margin:-26px 16px 4px;
  box-shadow:0 6px 18px rgba(16,38,68,.10)}
.kpi>div{flex:1;text-align:center;position:relative}
.kpi>div+div::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:1px;background:var(--line)}
.kpi b{display:block;font-size:17px;letter-spacing:-.3px}
.kpi span{font-size:9.5px;color:var(--t3)}

/* 打卡条 */
.checkin{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.12);
  border-radius:12px;padding:9px 11px;margin-top:12px}
.checkin .dot{width:7px;height:7px;border-radius:50%;background:#54D6A4;box-shadow:0 0 0 3px rgba(84,214,164,.22);flex:0 0 auto}
.checkin .txt{flex:1;font-size:10.5px;color:rgba(255,255,255,.92);line-height:1.5}
.checkin .btn{font-size:10.5px;font-weight:700;background:#fff;color:var(--brand);border-radius:9px;padding:7px 13px;flex:0 0 auto}

/* 标签 */
.tag{display:inline-block;font-size:9.5px;padding:2px 7px;border-radius:6px;font-weight:600;line-height:1.5}
.tag.red{background:#FDECEA;color:var(--danger)}
.tag.green{background:#E7F7F1;color:var(--success)}
.tag.blue{background:var(--brand-soft);color:var(--brand)}
.tag.gold{background:var(--gold-soft);color:#8A6B23}
.tag.gray{background:#F1F3F7;color:var(--t2)}

/* 节点卡 */
.node{background:#fff;border-radius:13px;padding:11px 12px;margin:0 16px 8px;display:flex;gap:10px;
  box-shadow:0 1px 3px rgba(16,38,68,.05);position:relative;overflow:hidden}
.node::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--danger)}
.node.ok::before{background:var(--success)}
.node.warn::before{background:var(--warning)}
.node .body{flex:1;min-width:0}
.node .t{font-size:12px;font-weight:700;line-height:1.5;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.node .m{font-size:9.5px;color:var(--t3);margin-top:3px;line-height:1.5}
.chk{width:22px;height:22px;border-radius:50%;border:1.5px solid #D7DDE7;display:flex;align-items:center;
  justify-content:center;flex:0 0 auto;margin-top:2px;color:transparent;font-size:11px}
.chk.on{border-color:var(--success);color:var(--success);background:#F1FBF7}

/* 快捷入口 */
.quick{display:flex;justify-content:space-between;padding:14px 8px}
.quick>button{flex:1;text-align:center;font-size:9.5px;color:var(--t2)}
.quick .qi{width:36px;height:36px;border-radius:11px;margin:0 auto 6px;display:flex;align-items:center;
  justify-content:center;position:relative}
.quick .badge{position:absolute;top:-4px;right:-4px;min-width:15px;height:15px;border-radius:8px;background:var(--danger);
  color:#fff;font-size:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;font-weight:700}

/* 安装到桌面的提示条 */
.tipbar{display:flex;align-items:center;gap:9px;margin:8px 16px 0;padding:9px 10px 9px 11px;
  background:linear-gradient(100deg,#FFF8E9 0%,#FDF3DE 100%);border:1px solid #F2E3C2;border-radius:12px}
.tipbar .ic{width:26px;height:26px;border-radius:8px;background:#fff;color:var(--gold);display:flex;
  align-items:center;justify-content:center;flex:0 0 auto}
.tipbar .tx{flex:1;min-width:0}
.tipbar .tx b{display:block;font-size:11px;color:#7A5C1E;font-weight:700}
.tipbar .tx span{display:block;font-size:9.5px;color:#9A7E42;margin-top:2px}
.tipbar .x{width:22px;height:22px;border-radius:50%;color:#B79A5E;font-size:10px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center}

/* 服务体系入口条 */
.strip{display:flex;align-items:center;gap:11px;background:#fff;border-radius:14px;padding:12px 13px;
  margin:10px 16px 0;box-shadow:0 1px 3px rgba(16,38,68,.05)}
.strip .ic{width:36px;height:36px;border-radius:11px;background:var(--brand-soft);color:var(--brand);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.strip .tt{font-size:12.5px;font-weight:700}
.strip .tt em{font-style:normal;font-size:9.5px;color:var(--t3);font-weight:400;margin-left:5px}
.strip .ss{font-size:9.5px;color:var(--t3);margin-top:5px;display:flex;align-items:center;gap:4px}
.dots{display:flex;gap:3px}
.dots i{width:4.5px;height:4.5px;border-radius:50%;display:block}

/* 维度卡 */
.dim{background:#fff;border-radius:14px;padding:12px 13px;margin:0 16px 9px;
  box-shadow:0 1px 3px rgba(16,38,68,.05)}
.dim .top{display:flex;gap:9px;align-items:flex-start}
.dim .no{font-size:12.5px;font-weight:800;color:#C9D3E2;width:20px;flex:0 0 auto;padding-top:2px}
.dim .ic{width:29px;height:29px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.dim .nm{font-size:12.5px;font-weight:700}
.dim .ds{font-size:10px;color:var(--t2);line-height:1.45;margin-top:2px}
.chips{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0 0 29px}
.chips span{font-size:9px;color:var(--t2);background:var(--bg);border-radius:5px;padding:3px 6px}
.prog{display:flex;align-items:center;gap:8px;margin:9px 0 0 29px}
.track{flex:1;height:4px;border-radius:3px;background:var(--line);overflow:hidden}
.track i{display:block;height:100%;border-radius:3px;transition:width .3s}
.prog em{font-style:normal;font-size:9px;color:var(--t3);flex:0 0 auto}

/* 指标条 */
.metric{margin-bottom:11px}
.metric .h{display:flex;justify-content:space-between;font-size:10.5px;margin-bottom:5px}
.metric .h b{font-weight:600}
.metric .h span{color:var(--t3);font-size:9.5px}
.metric .bar{height:5px;border-radius:3px;background:var(--line);overflow:hidden}
.metric .bar i{display:block;height:100%;border-radius:3px;transition:width .35s}

/* 列表行 */
.row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:none}
.row .ic{width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.row .tx{flex:1;min-width:0}
.row .tx b{display:block;font-size:12.5px;font-weight:600}
.row .tx span{display:block;font-size:10px;color:var(--t3);margin-top:2px}
.row .tr{font-size:11px;color:var(--t3);flex:0 0 auto}
.chev{color:#C4CBD6;flex:0 0 auto}

/* 客户卡 */
.client{background:#fff;border-radius:14px;padding:13px 14px;margin:0 16px 10px;
  box-shadow:0 1px 3px rgba(16,38,68,.05)}
.client .h{display:flex;align-items:flex-start;gap:9px}
.client .nm{font-size:13px;font-weight:700;line-height:1.45}
.client .sb{font-size:9.5px;color:var(--t3);margin-top:3px}
.client .score{width:44px;text-align:center;flex:0 0 auto}
.client .score b{display:block;font-size:17px;font-weight:800;line-height:1}
.client .score span{font-size:8.5px;color:var(--t3)}
.client .g{display:flex;margin-top:11px;padding-top:10px;border-top:1px dashed var(--line)}
.client .g>div{flex:1;text-align:center}
.client .g b{display:block;font-size:11.5px;font-weight:700}
.client .g span{font-size:8.5px;color:var(--t3)}

/* 搜索与筛选 */
.searchbox{margin:0 16px 10px;display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;
  padding:10px 12px;box-shadow:0 1px 3px rgba(16,38,68,.05)}
.searchbox input{flex:1;font-size:12.5px}
.searchbox input::placeholder{color:var(--t3)}
.filters{display:flex;gap:7px;padding:2px 16px 12px;overflow-x:auto;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;font-size:11px;padding:7px 12px;border-radius:20px;background:#fff;color:var(--t2);
  border:1px solid var(--line);font-weight:500}
.chip.on{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:600}

/* 空态 */
.empty{text-align:center;padding:34px 20px;color:var(--t3);font-size:11.5px}
.empty svg{margin-bottom:8px;opacity:.55}

/* 底部 Tab */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:40;display:flex;max-width:520px;margin:0 auto;
  background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);
  border-top:1px solid var(--line);
  /* 底部横条 + 横屏左右缺口 */
  padding-bottom:var(--safe-b);
  padding-left:var(--safe-l);padding-right:var(--safe-r)}
.tabbar button{flex:1;height:var(--tabh);display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;color:var(--t3);font-size:9px}
.tabbar button.on{color:var(--brand);font-weight:700}
.tabbar button.on svg{stroke-width:2.1}

/* 弹层 */
.sheet-mask{position:fixed;inset:0;background:rgba(12,22,38,.42);z-index:60;display:flex;align-items:flex-end;
  animation:fade .15s ease}
.sheet{width:100%;max-width:520px;margin:0 auto;background:#fff;border-radius:20px 20px 0 0;
  padding:14px 18px calc(18px + var(--safe-b));max-height:82vh;max-height:82dvh;
  overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  animation:up .22s ease}
@keyframes up{from{transform:translateY(24px)}to{transform:none}}
.sheet .bar{width:36px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 12px}
.sheet h3{margin:0 0 10px;font-size:15px}
.sheet .acts{display:flex;gap:10px;margin-top:16px}
.btn{flex:1;height:42px;border-radius:11px;font-size:13px;font-weight:600;display:flex;align-items:center;
  justify-content:center;gap:6px}
.btn.primary{background:var(--brand);color:#fff}
.btn.ghost{background:#F1F4F9;color:var(--t2)}
.btn.danger{background:#FDECEA;color:var(--danger)}

/* 输入 */
.field{background:#F7F9FC;border:1px solid var(--line);border-radius:11px;padding:10px 12px;margin-bottom:9px}
.field label{display:block;font-size:9.5px;color:var(--t3);margin-bottom:4px}
.field input,.field textarea{width:100%;font-size:12.5px;resize:none}

/* toast */
.toast{position:fixed;left:50%;bottom:calc(var(--tabh) + var(--safe-b) + 18px);transform:translateX(-50%);
  background:rgba(20,28,40,.92);color:#fff;font-size:11.5px;padding:9px 15px;border-radius:10px;z-index:80;
  max-width:78%;text-align:center;line-height:1.5;animation:toastin .2s ease}
@keyframes toastin{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* 图表 */
.bars{display:flex;align-items:flex-end;gap:3px;height:88px;margin-top:6px}
.bars .b{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.bars .b i{width:100%;border-radius:3px 3px 0 0;background:var(--brand-soft);display:block;min-height:3px}
.bars .b.on i{background:var(--brand)}
.bars .b em{font-style:normal;font-size:8px;color:var(--t3)}
.ring{width:66px;height:66px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ring>div{width:54px;height:54px;border-radius:50%;background:#12314F;display:flex;flex-direction:column;
  align-items:center;justify-content:center}
.ring b{font-size:18px;line-height:1}
.ring span{font-size:7.5px;color:rgba(255,255,255,.7);margin-top:2px}

/* 数据条带 */
.stat4{display:flex;background:#fff;border-radius:14px;padding:14px 6px;margin:0 16px 10px;
  box-shadow:0 1px 3px rgba(16,38,68,.05)}
.stat4>div{flex:1;text-align:center}
.stat4 b{font-size:18px;color:var(--brand);font-weight:800}
.stat4 b small{font-size:9px;font-weight:700}
.stat4 span{display:block;font-size:9.5px;color:var(--t3);margin-top:2px}

/* 时间线 */
.tl{display:flex;gap:9px}
.tl .y{width:32px;font-size:10.5px;font-weight:800;color:var(--brand);flex:0 0 auto;padding-top:1px}
.tl .line{width:7px;position:relative;flex:0 0 auto}
.tl .line i{position:absolute;top:4px;left:0;width:7px;height:7px;border-radius:50%;background:var(--brand)}
.tl .line s{position:absolute;top:14px;bottom:0;left:3px;width:1.5px;background:var(--line)}
.tl .c{flex:1;padding-bottom:13px}
.tl .c b{font-size:11px}
.tl .c p{margin:2px 0 0;font-size:9.5px;color:var(--t2);line-height:1.6}

.quote-box{border-radius:12px;padding:11px 12px;margin:0 16px 9px}
.quote-box .h{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700}
.quote-box p{margin:6px 0 0;font-size:10.5px;line-height:1.75}
.footnote{margin:0 20px 18px;font-size:9.5px;color:var(--t3);line-height:1.7}

/* ---------- 登录页 ---------- */
.login-page{min-height:var(--vfull);display:flex;flex-direction:column}
.login-card{background:#fff;border-radius:16px;margin:-22px 16px 0;padding:16px 14px 14px;
  box-shadow:0 6px 18px rgba(16,38,68,.10);position:relative;z-index:2}
.login-card .field input{letter-spacing:.4px}
.login-card .field input[type=password]{letter-spacing:2px}

/* ---------- v4.0 新业务组件 ---------- */
.sp{display:inline-block;font-size:9.5px;font-weight:700;padding:3px 7px;border-radius:6px;margin:2px 3px 2px 0}
.sect{font-size:11px;font-weight:800;color:var(--brand);margin:14px 0 8px;padding-left:8px;border-left:3px solid var(--brand)}
.checkline{display:flex;align-items:flex-start;gap:9px;padding:8px 0;border-bottom:1px solid var(--line);cursor:pointer}
.checkline:last-child{border-bottom:none}
.checkline input{width:17px;height:17px;flex:0 0 auto;margin-top:1px;accent-color:var(--brand)}
.checkline span{flex:1;min-width:0}
.checkline b{display:block;font-size:11.5px;font-weight:600}
.checkline em{display:block;font-style:normal;font-size:9.5px;color:var(--t3);margin-top:2px;line-height:1.5}
.field select{width:100%;font-size:12.5px}
.field textarea{min-height:38px;line-height:1.6}
.navbar .right button{font-size:11.5px;font-weight:700}
.client.tap{cursor:pointer}
.client.tap:active{transform:scale(.994);background:#FCFDFF}

/* ---------- 国联金企客户询单（员工手工填报） ---------- */
.svpage{min-height:calc(var(--vfull) - var(--tabh) - var(--safe-b));display:flex;flex-direction:column}
.svpage .svsave{margin-top:auto}
.svpage .navbar{position:sticky;top:0;z-index:22}
.svhead{background:#fff;margin:0 16px 10px;border-radius:14px;padding:14px;
  box-shadow:0 2px 10px rgba(16,38,68,.05)}
.svbar{height:5px;border-radius:4px;background:var(--line);overflow:hidden;margin-top:9px}
.svbar i{display:block;height:100%;background:var(--brand);border-radius:4px;transition:width .25s}
.sventry{display:flex;align-items:center;gap:11px}
.sventry .ic{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.sventry .tx{flex:1;min-width:0}
.sventry .tx b{display:block;font-size:12.5px;font-weight:700}
.sventry .tx span{display:block;font-size:9.5px;color:var(--t3);margin-top:3px;line-height:1.5}
.sventry .chev{color:var(--t3);display:flex}

.svacc{background:#fff;border-radius:14px;margin:0 16px 10px;overflow:hidden;
  box-shadow:0 2px 10px rgba(16,38,68,.05)}
.svacc summary{display:flex;align-items:center;gap:8px;padding:13px 14px;cursor:pointer;list-style:none}
.svacc summary::-webkit-details-marker{display:none}
.svacc summary>span{flex:1;min-width:0}
.svacc summary b{display:block;font-size:12.5px;font-weight:800;color:var(--brand)}
.svacc summary em{display:block;font-style:normal;font-size:9.5px;color:var(--t3);margin-top:3px}
.svacc summary svg{color:var(--t3);transition:transform .18s;flex:0 0 auto}
.svacc[open] summary svg{transform:rotate(90deg)}
.svacc[open] summary{border-bottom:1px solid var(--line)}
.svbody{padding:12px 14px 14px}

.svgrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.svgrid2 .svwide{grid-column:1/-1}
.svf{background:#F7F9FC;border:1px solid var(--line);border-radius:9px;padding:7px 9px;min-width:0}
.svf label{display:block;font-size:9.5px;color:var(--t2);line-height:1.35;margin-bottom:4px}
.svf input,.svf textarea,.svf select{width:100%;font-size:12.5px;line-height:1.4;
  background:transparent;outline:none;border:none;resize:none;min-width:0}
.svf textarea{min-height:44px;padding-top:2px}
.svf input[readonly],.svf textarea[readonly]{color:var(--t2);background:#F1F4F8}
.svf select:disabled{color:var(--t2)}
.svbody>.svf{margin-bottom:8px}
.svnote{font-size:9.5px;color:var(--t3);line-height:1.6;margin-top:9px}

.svbank{border:1px solid var(--line);border-radius:11px;padding:10px;margin-bottom:10px;background:#FCFDFF}
.svbank-h{display:flex;align-items:center;margin-bottom:8px}
.svbank-h b{font-size:11px;color:var(--brand)}
.svbank-x{margin-left:auto;font-size:10px;color:var(--danger);font-weight:600;padding:3px 6px}
.svbank .svf{margin-bottom:7px}
.svbank .svf:last-child{margin-bottom:0}
.svliab{border:1px solid var(--line);border-radius:11px;padding:10px;margin-bottom:10px;background:#FCFDFF}
.svliab-h{display:flex;align-items:center;margin-bottom:8px}
.svliab-h b{font-size:11px;color:var(--brand)}
.svliab-x{margin-left:auto;font-size:10px;color:var(--danger);font-weight:600;padding:3px 6px}
.svliab .svf{margin-bottom:7px}
.svliab .svf:last-of-type{margin-bottom:0}
.svliab-st{display:flex;align-items:center;gap:8px;margin-top:4px}
.svliab-ok{font-size:11px;font-weight:700;color:#0F9D6E;border:1px solid #BFE6D2;background:#EAF8F1;border-radius:8px;padding:5px 10px;margin-left:auto}
/* v5.13 催扣息预警「已处理 / 撤销已处理」按钮 */
.svliab-ok.undo{color:#B26A00;border-color:#F0D9A8;background:#FFF7E8}
.opsact-row{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.opsact{font-size:11px;font-weight:800;color:#fff;background:#0F9D6E;border:1px solid #0F9D6E;border-radius:8px;padding:6px 14px;cursor:pointer}
.opsact:disabled{opacity:.6;cursor:default}
.opsact.undo{color:#B26A00;background:#FFF7E8;border-color:#F0D9A8}
.opsact-row .tiny{flex:1;min-width:100px}
/* v5.20 贷款到期预警：结清 / 续贷 / 逾期三个处理结果 */
.loandue-row{gap:6px}
.opsact.ld-settle{background:#0F9D6E;border-color:#0F9D6E}
.opsact.ld-renew{background:#5A63C8;border-color:#5A63C8}
.opsact.ld-late{background:#D9534F;border-color:#D9534F}
.opsact.on{box-shadow:0 0 0 2px rgba(15,157,110,.28);font-weight:900}
@media (min-width:720px){ .loandue-row .opsact{padding:7px 18px} }
.svadd{width:100%;height:36px;border:1px dashed var(--brand-mid);border-radius:9px;
  color:var(--brand);font-size:11.5px;font-weight:700;background:var(--brand-soft)}

.svyear{border:1px solid var(--line);border-radius:11px;padding:10px;margin-bottom:10px;background:#FCFDFF}
.svyear:last-child{margin-bottom:0}
.svyear-h{display:flex;align-items:center;gap:6px;margin-bottom:9px;flex-wrap:wrap}
.svyear-h b{font-size:11.5px;color:var(--brand)}
.svyear-h span{margin-left:auto;font-size:10px;color:var(--t2)}
.svyear-h strong{font-size:13px;color:var(--brand);font-weight:800}
.svmonths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.svq{border-bottom:1px dashed var(--line);padding:8px 0}
.svq:last-child{border-bottom:none;padding-bottom:0}
.svq-t{font-size:10.5px;font-weight:700;color:var(--brand);margin-bottom:6px}
.svq-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}

.svsave{position:sticky;bottom:0;z-index:20;padding:10px 16px calc(10px + var(--safe-b));
  background:rgba(244,246,250,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-top:1px solid var(--line)}
.svsave .btn{width:100%}
@media (max-width:360px){ .svgrid2,.svq-g{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ---------- 开户资料：影像件网格 ---------- */
.amblock{margin-bottom:15px}
.amblock:last-child{margin-bottom:0}
.amslot-t{font-size:12px;font-weight:800;color:var(--brand);margin:2px 0 9px;padding-top:9px;border-top:1px dashed var(--line)}
.amblock:first-child .amslot-t{border-top:0;padding-top:0}
.amslot-t em{display:block;font-style:normal;font-size:9.5px;font-weight:400;color:var(--t3);margin-top:3px;line-height:1.5}
.amgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}
.amphoto{position:relative;overflow:hidden;border-radius:9px;background:#EEF1F6;border:1px solid var(--line)}
.amphoto img{display:block;width:100%;height:82px;object-fit:cover;cursor:zoom-in}
.amphoto .amby{font-size:8px;color:var(--t3);padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;line-height:1.4}
.amx{position:absolute;top:3px;right:3px;width:21px;height:21px;border:0;border-radius:50%;padding:0;
  background:rgba(0,0,0,.62);color:#fff;font-size:15px;line-height:20px;text-align:center;cursor:pointer}
.amadd{display:flex;align-items:center;justify-content:center;height:104px;border:1px dashed var(--brand);border-radius:9px;
  background:var(--brand-soft);color:var(--brand);cursor:pointer;text-align:center;font-size:10px;font-weight:600;line-height:1.6}
.amadd input[type=file]{display:none}
.amadd svg{margin-bottom:2px}
.amview{display:block;width:100%;max-height:68vh;object-fit:contain;border-radius:10px;background:#F1F4F8}
@media (max-width:360px){ .amgrid{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ---------- 征信与财报：原件列表 + 待确认草稿 ---------- */
.rptrow{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px dashed var(--line)}
.rptrow:last-child{border-bottom:0}
.rptacts{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
.rptacts .btn{padding:5px 9px;font-size:10px;min-width:56px}
.rptadd{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;margin-top:10px;
  border:1px dashed var(--brand);border-radius:9px;background:var(--brand-soft);color:var(--brand);
  font-size:11px;font-weight:700;cursor:pointer}
.rptadd input[type=file]{display:none}
.rptdraft{padding:13px;margin-bottom:10px}
.rptitem,.rptliab{padding:7px 0;border-top:1px dashed var(--line)}
.rptcheck{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:700;color:var(--ink);margin-bottom:5px}
.rptcheck input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);flex:0 0 auto}
.rptval{width:100%;box-sizing:border-box;padding:7px 9px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink);font-size:12px;line-height:1.5}
.rptval[readonly]{background:#F5F7FA;color:var(--t2)}
.rptliabgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.rptliabgrid label{display:block;color:var(--t3);font-size:9.5px}
.rptliabgrid .rptval{margin-top:3px;font-size:11px;padding:5px 7px}
@media (max-width:360px){ .rptliabgrid{grid-template-columns:1fr} }

/* ---------- v5.15 征信财报手填：每类一个多行文本框 ---------- */
.rptnote{padding:2px 0}
.rptnote-input{display:block;width:100%;box-sizing:border-box;min-height:132px;padding:10px 11px;
  border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);
  font-family:inherit;font-size:13px;line-height:1.75;resize:vertical;-webkit-user-select:text;user-select:text}
.rptnote-input::placeholder{color:var(--t3);font-size:12px}
.rptnote-input[readonly]{background:#F5F7FA;color:var(--t2)}
.rptnote-save{width:100%;margin-top:10px}
@media (min-width:720px){ .rptnote-input{min-height:168px;font-size:14px} }

/* ---------- v5.18 征信资料结构化字段：企业征信 4 格 + 法人详版征信 6 格 ---------- */
.cfgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.cfgrid .svf{background:#fff}
.cfgrid .svf label{font-size:10.5px;font-weight:700;color:var(--ink)}
.cfval:disabled{background:#F5F7FA;color:var(--t2)}
@media (max-width:420px){ .cfgrid{grid-template-columns:1fr} }
@media (min-width:720px){ .cfgrid{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* ---------- v5.5 运营预警：开票采集打卡 / 法人征信手填 / 预警汇总 ---------- */
.invcollect{display:flex;gap:10px;align-items:center;padding:11px 12px;margin-bottom:12px;
  border:1px solid var(--line);border-radius:11px;background:#FCFDFF}
.invcollect .tx{flex:1;min-width:0}
.invcollect .tx b{display:block;font-size:12px;color:var(--ink)}
.invcollect .tx span{display:block;font-size:9.5px;color:var(--t3);line-height:1.5;margin-top:3px}
.invcollect.late{border-color:#F2B8B1;background:#FFF6F4}
.invcollect.late .tx b{color:var(--danger)}
.invcollect.done{border-color:#BFE6D2;background:#F3FBF7}
.invcollect.done .tx b{color:#0F9D6E}
.invcollect .btn{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:7px 12px}
.rpthand{padding:2px 0}
.rpthand>.tiny{display:block;color:var(--t3);font-size:9.5px;margin-bottom:6px}
.rpthand>.tiny .rptval{margin-top:3px}
.rpthand .rptadd{margin-top:10px}
.opsgrp{margin-bottom:12px}
.opsgrp-h{font-size:11px;font-weight:800;color:var(--t2);margin:2px 0 6px}
.opsgrp-h span{display:inline-block;min-width:17px;text-align:center;padding:1px 5px;margin-left:4px;
  border-radius:9px;background:var(--gold-soft);color:#8A6B23;font-size:10px}
@media (max-width:360px){ .invcollect{flex-direction:column;align-items:stretch} }

/* ---------- v5.6 每日提醒：顶部提醒条 / 底部角标 / 清单页 ---------- */
.remind-banner{display:flex;gap:11px;align-items:center;margin:2px 14px 12px;padding:12px 13px;
  border:1px solid #F2B8B1;border-radius:13px;background:linear-gradient(135deg,#FFF6F4,#FFEDE9)}
.remind-banner .rb-ic{flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:#FDE4DF;color:#D92D20;
  display:flex;align-items:center;justify-content:center}
.remind-banner .rb-tx{flex:1;min-width:0}
.remind-banner .rb-tx b{display:block;font-size:12.5px;color:#B42318;line-height:1.4}
.remind-banner .rb-tx span{display:block;font-size:9.5px;color:#A1514A;line-height:1.5;margin-top:3px}
.remind-banner .rb-go{flex:0 0 auto;color:#D92D20}
.tbadge{position:absolute;top:2px;left:calc(50% + 7px);min-width:16px;height:16px;padding:0 4px;
  border-radius:9px;background:#D92D20;color:#fff;font-size:9px;font-style:normal;font-weight:800;
  line-height:16px;text-align:center;box-shadow:0 1px 3px rgba(217,45,32,.4)}
.tabbar button{position:relative}
.remind-head{display:flex;gap:12px;align-items:center;margin:0 14px;padding:15px 14px;
  border-radius:13px;background:linear-gradient(135deg,#FFF6F4,#FFEDEA);border:1px solid #F2B8B1}
.remind-head.off{background:#F5F6F8;border-color:var(--line)}
.remind-head .rh-ic{width:44px;height:44px;border-radius:13px;background:#FDE4DF;color:#D92D20;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.remind-head.off .rh-ic{background:#E9EBEF;color:#9AA0AA}
.remind-head .rh-tx{flex:1;min-width:0}
.remind-head .rh-tx b{display:block;font-size:15px;color:#B42318}
.remind-head.off .rh-tx b{color:var(--t2)}
.remind-head .rh-tx span{display:block;font-size:10px;color:#A1514A;margin-top:4px;line-height:1.5}
.remind-head.off .rh-tx span{color:var(--t3)}
.remgrp{margin:0 14px 12px}
.remgrp-h{display:flex;gap:8px;align-items:center;padding:9px 12px;background:var(--brand-soft);
  border-radius:11px 11px 0 0;color:var(--brand)}
.remgrp-h b{flex:1;font-size:12.5px}
.remgrp-h .tag{flex:0 0 auto}
.remit{background:#fff;border:1px solid var(--line);border-top:0;padding:11px 12px}
.remit:last-child{border-radius:0 0 11px 11px}

/* ============================================================
 * v5.8 电脑 / 平板宽屏：内容铺满，不再挤在中间 520px 窄栏
 * 只在屏幕 ≥900px 生效，手机端一切保持原样
 * ============================================================ */
.clientgrid{display:block}
/* 档案信息卡：手机端左侧标签 + 右侧数值（与原先内联样式等价） */
.card.infolist{padding:4px 14px}
.card.infolist .row .tr{max-width:60%;text-align:right}

@media (min-width:900px){
  /* 外壳铺满 */
  #app{max-width:1240px}
  .tabbar{max-width:1240px}

  /* 弹层：不再用手机的底部抽屉宽度 */
  .sheet{max-width:820px;border-radius:20px;margin-bottom:24px;max-height:86vh;max-height:86dvh}
  .sheet-mask{align-items:center;padding:0 16px}
  .sheet .bar{display:none}

  /* 客户列表：两列卡片，一屏看更多 */
  .clientgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px}
  .clientgrid .client{margin:0}

  /* 档案信息：标签左对齐 + 数值紧跟，两列排布，避免中间空出一整行 */
  .card.infolist{padding:6px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:32px}
  .card.infolist>.row{min-width:0}
  .card.infolist>.row .tx{flex:0 0 116px}
  .card.infolist>.row .tr{flex:1;max-width:none;text-align:left;color:var(--t1);font-weight:600;
    overflow-wrap:anywhere}
  .card.infolist>*:not(.row){grid-column:1/-1}

  /* 顶部 KPI 与快捷入口：限宽居中，别把 4 个数字拉开 1200 宽 */
  .kpi{max-width:820px;margin:-26px auto 4px}
  .quick{max-width:760px;margin:0 auto}
  .quick>button{max-width:150px}
  /* 指标条：进度条不拉成一条长线（与左侧小标题对齐） */
  .metric{max-width:860px;margin-bottom:11px}
  .stat4{max-width:820px;margin-left:auto;margin-right:auto}

  /* 询单 / 开户 / 征信：表单与小格铺开 */
  .svgrid2{grid-template-columns:repeat(4,minmax(0,1fr))}
  .svmonths,.svq-g{grid-template-columns:repeat(6,minmax(0,1fr))}
  .amgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .amphoto img{height:104px}
  .amadd{height:126px}
  .rptliabgrid{grid-template-columns:repeat(4,minmax(0,1fr))}

  /* 保存条：按钮不拉满 1240，居中一段更自然 */
  .svsave{padding-left:16px;padding-right:16px}
  .svsave .btn{max-width:460px;margin:0 auto}

  /* 卡片内边距随宽度略放大，留白更舒展 */
  .card{padding:16px 18px}
  .client{padding:15px 16px}
  .node{padding:13px 14px}
  .dim{padding:14px 16px}

  /* 电脑上 9~10px 的字太小，逐项提到可读尺寸 */
  body{font-size:14px}
  .muted{font-size:12.5px}
  .tiny{font-size:11.5px;line-height:1.75}
  .sec b{font-size:15px}
  .sec i{font-size:11.5px}
  .sec{padding:16px 22px 9px}
  .hero h2{font-size:19px}
  .hero .quote{font-size:17px}
  .hero .sub{font-size:11.5px}
  .hero .desc{font-size:11.5px}
  .kpi b{font-size:21px}
  .kpi span{font-size:10.5px}
  .client .nm{font-size:14.5px}
  .client .sb{font-size:11px}
  .client .g b{font-size:12.5px}
  .client .g span{font-size:10px}
  .row .tx b{font-size:13.5px}
  .row .tx span{font-size:11.5px}
  .row .tr{font-size:12px}
  .node .t{font-size:13.5px}
  .node .m{font-size:11px}
  .dim .nm{font-size:13.5px}
  .dim .ds{font-size:11px}
  .chips span{font-size:10px;padding:4px 8px}
  .tag{font-size:10.5px;padding:3px 8px}
  .sp{font-size:10.5px}
  .sect{font-size:12.5px}
  .svacc summary b{font-size:13.5px}
  .svacc summary em{font-size:10.5px}
  .svf label{font-size:10.5px}
  .svf input,.svf textarea,.svf select{font-size:13.5px}
  .svf textarea{min-height:52px}
  .field label{font-size:10.5px}
  .field input,.field textarea{font-size:13.5px}
  .field{padding:11px 13px}
  .searchbox input{font-size:13.5px}
  .searchbox{padding:11px 14px}
  .chip{font-size:12px;padding:8px 14px}
  .checkline b{font-size:12.5px}
  .checkline em{font-size:10.5px}
  .btn{height:46px;font-size:14px}
  .timeline .c b,.tl .c b{font-size:12px}
  .tl .c p{font-size:10.5px}
  .footnote{font-size:11px}
  .empty{font-size:12.5px;padding:44px 20px}
  .remind-banner .rb-tx b{font-size:13.5px}
  .remind-banner .rb-tx span{font-size:10.5px}
  .remind-head .rh-tx b{font-size:16px}
  .remind-head .rh-tx span{font-size:11px}
  .remit{padding:13px 14px}
  .invcollect .tx b{font-size:13px}
  .invcollect .tx span{font-size:10.5px}
  .rptval{font-size:13px}
  .rptcheck{font-size:12px}
  .tabbar button{font-size:10px}
  .toast{font-size:12.5px;max-width:520px}
}

/* 超宽屏（2K / 大屏一体机）：客户列表三列 */
@media (min-width:1560px){
  #app{max-width:1500px}
  .tabbar{max-width:1500px}
  .clientgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* v5.12 征信自动汇总明细表 */
.rptsum{width:100%;border-collapse:collapse;font-size:10.5px;margin-top:2px}
.rptsum th,.rptsum td{border:1px solid var(--line);padding:4px 6px;text-align:left;white-space:nowrap}
.rptsum th{background:#F5F8FF;color:var(--t2);font-weight:700}
