:root {
  /* VI 品牌色（深酒红 + 深炭灰，取自冠欧 logo 配色） */
  --brand: #8E2A2A;
  --brand-d: #6F1F1F;
  --brand-l: #B54848;
  --ink: #2D2D2D;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #5F6672;
  --line: #e8ecf1;
  --warn: #e6a23c;
  --danger: #e25b5b;
  --info: #409eff;
  --ok: #8E2A2A;
  --shadow: 0 2px 12px rgba(20, 40, 60, .06);
  --grad-brand: linear-gradient(135deg, #8E2A2A 0%, #6F1F1F 100%);
  /* v1.5.177 H5 KPI 视觉令牌（对齐 Web 端统一口径，按移动宽度缩放） */
  --kpi-n: 22px;    /* KPI 数字：默认 22；≤480=20 / ≤360=18 / ≥769=26 */
  --kpi-l: 11.5px;  /* KPI 标签 */
  --kpi-pad: 14px;  /* KPI 卡内边距：≤480=12px 10px / ≥769=16px 18px 14px */
  --kpi-radius: 14px;
  --kpi-gap: 10px;  /* KPI 卡间距 */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.55; }
/* 毛笔体：仅用于品牌 slogan/书法感元素 */
.brush { font-family: "Ma Shan Zheng", "STXingkai", "KaiTi", "楷体", "Kaiti SC", serif; font-weight: 400; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* 登录 */
#login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, #fbf7f6 0%, var(--bg) 60%); }
#login .brand-logo { width: 280px; max-width: 84vw; height: auto; margin-bottom: 14px; }
#login h1 { font-size: 20px; margin: 4px 0 0; color: var(--ink); }
#login .sub { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
#login .position { color: var(--brand); font-size: 15px; font-weight: 700; letter-spacing: 2px; margin: 4px 0 16px; padding: 6px 14px; border-left: 3px solid var(--brand); border-right: 3px solid var(--brand); background: rgba(142, 42, 42, .04); }
#login .values { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 22px; max-width: 360px; }
#login .values span { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: #fff; color: var(--brand); border: 1px solid rgba(142, 42, 42, .25); font-weight: 600; }
#login .box { width: 100%; max-width: 360px; background: var(--card); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
#login label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
#login input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
#login input:focus { border-color: var(--brand); }
.btn-primary { width: 100%; padding: 13px; background: var(--brand); color: #fff; border-radius: 10px; font-size: 16px; font-weight: 600; margin-top: 18px; }
.btn-primary:active { background: var(--brand-d); }
.login-tip { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; line-height: 1.6; }
.btn-dt { width: 100%; padding: 11px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfc; color: var(--muted); margin-top: 10px; font-size: 13px; }
#login .hotline { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
#login .hotline b { color: var(--brand); font-size: 18px; letter-spacing: 1px; font-weight: 700; }
#login .hotline a { color: var(--brand); text-decoration: none; font-weight: 700; }
#login .footer-slogan { margin-top: 24px; font-size: 20px; color: rgba(45, 45, 45, .45); letter-spacing: 6px; }
@media (max-width: 360px) { #login .position { font-size: 13px; letter-spacing: 1px; } }

/* 主框架 */
#main { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.topbar .who { font-size: 14px; }
.topbar .who b { font-size: 16px; }
.topbar .who .role { opacity: .85; font-size: 12px; margin-left: 6px; }
.topbar .exit { background: rgba(255,255,255,.18); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; }
.topbar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-brand img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: #fff; padding: 1px; flex-shrink: 0; }
.topbar-brand span { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 品牌副条：红色顶栏下的细条，挂毛笔体 slogan + 定位语 */
.brand-strip { position: sticky; top: 56px; z-index: 19; background: linear-gradient(180deg, #fbf7f6 0%, #f4f0ee 100%); border-bottom: 1px solid rgba(142, 42, 42, .12); padding: 6px 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-strip .brand-slogan { color: var(--brand); font-size: 16px; letter-spacing: 4px; line-height: 1.2; }
.brand-strip .brand-position { color: var(--muted); font-size: 11px; letter-spacing: 2px; }

.view { padding: 14px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid button { background: #fbfcfd; border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; font-size: 13.5px; color: var(--ink); text-align: left; }
.quick-grid button:active { border-color: var(--brand); color: var(--brand); }
.stat { position: relative; background: var(--card); border-radius: var(--kpi-radius, 14px); padding: var(--kpi-pad, 14px); box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; border-radius: 0 3px 3px 0; background: var(--grad-brand); }
.stat.warn::before { background: linear-gradient(180deg, #e6a23c, #c98a1e); }
.stat .v { font-size: var(--kpi-n, 22px); font-weight: 700; color: var(--brand); line-height: 1.15; }
.stat .v small { font-size: 13px; font-weight: 500; }
.stat .k { font-size: var(--kpi-l, 12px); color: var(--muted); margin-top: 3px; line-height: 1.3; }

.list { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.item { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.item:last-child { border-bottom: none; }
.item .t { font-weight: 600; }
.item .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef6f3; color: var(--brand); }
.tag.warn { background: #fdf3e6; color: var(--warn); }
.tag.gray { background: #f0f2f5; color: var(--muted); }
.req { color: var(--danger); margin-left: 3px; font-style: normal; }

/* 列表行右侧操作按钮（马上跟进 / 马上维护 / 新增） */
.rowbtn { flex: 0 0 auto; margin-left: 10px; padding: 6px 13px; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rowbtn:active { background: var(--brand); color: #fff; }
/* 新增业务选择框（[5]） */
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; text-align: left; }
.menu-item:active { background: var(--brand); color: #fff; }

/* 报表模块美化（[7]） */
.report-hero { background: linear-gradient(135deg, var(--brand) 0%, #2D2D2D 100%); color: #fff; border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.report-hero-t { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.report-hero-s { font-size: 12px; opacity: .85; margin-top: 6px; line-height: 1.5; }
/* v1.5.177：旧 .kpi-strip 报表皮肤无引用已删，.kpi 统一定义见文末 .kpis 块 */
.rsec { border-left: 4px solid var(--brand); }
.rsec h3 { font-size: 15px; margin: 0 0 10px; }
.rh-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }

.bar { height: 5px; background: #eef1f4; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

.search { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }

/* 底部导航 */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid var(--line); z-index: 30; }
.nav button { flex: 1; padding: 8px 0 10px; background: none; color: var(--muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav button .ic { font-size: 20px; }
.nav button.on { color: var(--brand); font-weight: 600; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15,30,45,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 16px 28px; animation: up .2s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }
.sheet h2 { margin: 0 0 14px; font-size: 17px; }
.sheet label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.sheet input, .sheet select, .sheet textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.sheet textarea { min-height: 72px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-line { width: 100%; padding: 12px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; margin-top: 16px; }
.btn-line.ghost { background: #f0f2f5; color: var(--text); }
/* 年度规划 */
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-top-l .muted { font-size: 12px; color: var(--muted); }
.plan-year { font-size: 22px; font-weight: 800; line-height: 1.1; }
.plan-card { margin-bottom: 12px; }
.plan-m { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.plan-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 4px 0; }
.plan-row b { font-size: 16px; color: var(--text); }
.plan-row b.act { color: var(--brand); }
.plan-bar { height: 8px; border-radius: 6px; background: #eef0f3; overflow: hidden; margin: 8px 0 4px; }
.plan-bar-fill { height: 100%; border-radius: 6px; transition: width .4s; }
.plan-rate { font-size: 12px; color: var(--muted); text-align: right; }
.btn-mini { padding: 5px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.btn-mini.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.follow { border-left: 3px solid var(--brand); padding: 8px 0 8px 12px; margin: 10px 0; }
.follow .meta { font-size: 12px; color: var(--muted); }
.follow .c { margin-top: 3px; }

/* 潜在需求 - 紧凑标签云 */
.demand-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.demand-chip { display: flex; align-items: center; justify-content: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; font-size: 13px; cursor: pointer; user-select: none; transition: all .15s; }
.demand-chip input { display: none; }
.demand-chip.on { background: #fff3f3; border-color: var(--brand); color: var(--brand); font-weight: 600; }
.demand-chip:active { transform: scale(0.97); }

/* 渠道关系维护 - 执行动作（2 列网格，选中高亮）v1.4.15 */
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
.act-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; font-size: 14px; cursor: pointer; user-select: none; transition: all .15s; }
.act-chip input { display: none; }
.act-chip span { pointer-events: none; }
.act-chip.on { background: #fff3f3; border-color: var(--brand); color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(142,42,42,.12); }
.act-chip:active { transform: scale(0.97); }

/* 红字项目数显示 */
.demand-count { color: var(--brand); font-weight: 700; margin-left: 4px; font-size: 13px; }

/* 客户联系类别 - 竖排 chip+填写框 (v1.4.12) */
.contact-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.contact-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.contact-row .demand-chip { padding: 11px 4px; }
.contact-row input { margin: 0; }

/* 渠道类别二级 - 紧凑选择 */
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subtype-wrap { margin-top: -4px; }
.subtype-wrap input, .subtype-wrap select { margin-top: 4px; }
.subtype-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 首登改密弹窗 - 行内布局 */
.pw-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.pw-row label { flex: 0 0 96px; margin: 0; font-size: 13.5px; color: var(--ink); }
.pw-row input { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(20,30,45,.9); color: #fff; padding: 10px 18px; border-radius: 22px; font-size: 14px; z-index: 60; }
.seg { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.seg button { padding: 7px 13px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat .lbl { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat .val { font-size: var(--kpi-n, 22px); font-weight: 700; color: var(--brand); }
.stat .val.ok { color: #07a35a; }
.stat .val.warn { color: #e6892b; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.tbl th, .tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.pill { display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; background:#eef6f3; color:var(--brand); margin-left:6px;}
.cb { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.cb input { width: 16px; height: 16px; }
.btn-sm { padding: 6px 11px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; border: none; }
.btn-sm.danger { background: #d9534f; }
.muted { color: var(--muted); font-weight: 400; font-size: 12px; }
.enum-wrap { max-height: 62vh; overflow: auto; margin: -4px -6px 0; padding: 4px 6px; }
.enum-cat { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.enum-cat h4 { margin: 0 0 8px; font-size: 14px; }
.enum-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.enum-add { display: flex; gap: 8px; margin-top: 8px; }
.enum-add input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }

/* 三栏 Top 看板（移动端用紧凑样式，Top tab 用现成 .seg） */
.top-panels .panel-tabs { margin-bottom: 10px; }
.top-panels .panel-tabs button { font-size: 12px; padding: 6px 11px; }
.top-panels .top-panel { padding-top: 4px; }
.top-panels .list .item { padding: 12px 14px; }
.top-panels .list .item .t { font-size: 14px; }

/* 管理员操作：默认隐藏（移动端），宽度 > 768px 时显示 */
.admin-bar { display: none; }
.admin-bar h3::before { content: "🛡 "; }
@media (min-width: 769px) {
  .admin-bar { display: block; }
}

/* 跟进 tab 紧凑 */
.stat-grid.follows { grid-template-columns: repeat(3, 1fr); }

/* 通用：标题数字 颜色弱化提示 */
.stat .v.warn { color: var(--warn); }
.stat .v.danger { color: var(--danger); }

/* web 端（>768px）：容器放大约束到 720，便于阅读 */
@media (min-width: 769px) {
  :root { --kpi-n: 26px; --kpi-l: 12px; --kpi-pad: 16px 18px 14px; }
  #main { max-width: 760px; }
  .nav { max-width: 760px; }
  .sheet { max-width: 760px; }
}

/* 移动端（<=768px）：stat 三栏更紧凑 */
@media (max-width: 480px) {
  :root { --kpi-n: 20px; --kpi-l: 11px; --kpi-pad: 12px 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 360px) {
  :root { --kpi-n: 18px; --kpi-l: 10.5px; }
}

/* FAB 浮动 + 按钮：固定右下角，位于底部 nav 上方（带一点阴影） */
.fab { position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: 76px; z-index: 35;
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgba(142, 42, 42, 0.45), 0 2px 6px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.92); background: var(--brand-d); }
@media (min-width: 769px) {
  .fab { right: max(24px, calc(50% - 380px + 24px)); bottom: 84px; width: 60px; height: 60px; }
}

/* FAB ActionSheet 三按钮 */
.fab-action { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-top: 10px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; }
.fab-action:first-of-type { margin-top: 4px; }
.fab-action .fa-ic { font-size: 26px; line-height: 1; flex-shrink: 0; }
.fab-action .fa-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fab-action .fa-text b { font-size: 15px; color: var(--ink); }
.fab-action .fa-text .fa-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fab-action.fab-lead { border-left: 4px solid #2da672; }
.fab-action.fab-channel { border-left: 4px solid var(--brand); }
.fab-action.fab-opp { border-left: 4px solid var(--warn); }
.fab-action:active { background: #f7f9fc; }

/* 客户 tab：FAB 提示行 */
.fab-hint { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 0 8px; }

/* 首页效率提醒卡片 */
.rm-card { padding: 14px 16px; }
.rm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rm-ico { font-size: 18px; line-height: 1; }
.rm-title { font-size: 15px; font-weight: 700; color: var(--ink); flex: 1; }
.rm-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* 客户中心 Hub */
.hub-entries-card h3 { margin: 0 0 10px; }
.hub-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hub-entries button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hub-entries button:active { background: #f4f6fa; }
.hub-entries .he-ic { font-size: 24px; line-height: 1; }
.hub-back { display: inline-block; padding: 8px 12px; margin: 2px 0 10px; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; }
.hub-back:active { opacity: .6; }
.hub-data { cursor: pointer; }
.hub-data:active { background: #f7f9fc; }
.hub-data .hub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hub-data .hub-view { color: var(--brand); font-size: 13px; font-weight: 600; }
.hub-drow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hub-drow:first-of-type { margin-top: 8px; }
.hub-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--ink); }
.hub-chip b { color: var(--brand); margin-left: 2px; }
.rm-badge.zero { background: #e9edf2; color: var(--muted); }
.rm-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 40px 20px; }
.rm-sum { font-size: 13px; color: var(--muted); }
.rm-sum b { font-size: 16px; }
.rm-buckets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rm-bk { font-size: 12px; color: var(--muted); background: #f4f6f8; border-radius: 8px; padding: 4px 9px; }
.rm-bk b { color: var(--ink); margin-left: 2px; }
.rm-metrics { margin: 0; }

/* AI 悬浮按钮（叠在 + 快速新建上方，仅首页显示） */
.fab.ai { bottom: 140px; background: linear-gradient(135deg, #6a5acd 0%, #409eff 100%); box-shadow: 0 6px 18px rgba(64, 120, 220, .45), 0 2px 6px rgba(0,0,0,.18); }
.fab.ai:active { background: linear-gradient(135deg, #5a4ac0 0%, #308ee8 100%); }
@media (min-width: 769px) { .fab.ai { bottom: 150px; } }

/* v1.4.9 客户详情 10 页签 */
.tabbar { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 6px; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabbar button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 20px; padding: 6px 14px; font-size: 11px; white-space: nowrap; }
.tabbar button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 顾客搜索拾取 */
.pickbox { margin-top: 6px; max-height: 200px; overflow-y: auto; }
.pick { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: #fff; }
.pick .d { color: var(--muted); font-size: 12px; }
.pick:active { background: var(--bg); }
/* 退回/预警卡片 */
.warncity { margin: 8px 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
/* 负效率标签 */
.tag.danger { background: #fdecec; color: var(--danger); }

/* v1.4.13 客户中心工作台：搜索框 + 四大分组带数量板块 */
.hub-search-card { padding: 12px; }
.hub-search-card .search { margin: 0; width: 100%; }
.hub-data { padding: 12px 12px 14px; }
.hub-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.hub-block { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.hub-block:active { background: var(--bg); }
.hub-block .hb-v { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.hub-block .hb-k { font-size: 13px; color: var(--ink); }
.hub-group-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 4px 0 2px; }

/* v1.4.13 首页模块卡片可点进详情 */
.rm-card.clickable { cursor: pointer; transition: box-shadow .15s; }
.rm-card.clickable:active { box-shadow: 0 4px 16px rgba(20,40,60,.14); }
.rm-go { margin-left: auto; color: var(--muted); font-size: 18px; font-weight: 700; }

/* v1.4.13 AIgo 悬浮按钮文字标签 */
.fab.ai { bottom: 140px; background: linear-gradient(135deg, #8E2A2A 0%, #b54848 100%); box-shadow: 0 6px 18px rgba(142, 42, 42, .45), 0 2px 6px rgba(0,0,0,.18); }
.fab.ai:active { background: linear-gradient(135deg, #6F1F1F 0%, #9c3a3a 100%); }
.aigo-label { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #fff; line-height: 1; }
@media (min-width: 769px) { .fab.ai { bottom: 150px; } }

/* v1.4.17 客户详情头部 + 统计卡 */
.cust-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:2px; }
.cust-head .ch-name { font-size:18px; font-weight:700; color:var(--ink); line-height:1.35; }
.cust-head .ch-no { font-size:12px; font-weight:500; color:var(--muted); margin-left:6px; }
.cust-head .ch-badge { display:flex; align-items:center; gap:6px; white-space:nowrap; flex-shrink:0; }
.cust-head .stars { color:#f5a623; font-size:15px; letter-spacing:1px; }
.stat-card { padding:4px 14px; }
.stat-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); }
.stat-row:last-child { border-bottom:none; }
.stat-row .sk { font-size:13px; color:var(--muted); }
.stat-row .sv { font-size:14px; font-weight:600; color:var(--ink); text-align:right; }
.stat-row .sv.danger { color:var(--danger); }

/* ===== v1.5 移动端版块美化 ===== */
/* AIgo 弹窗头 + 快捷 chip（修复此前 chip 无样式） */
.chip { display:inline-block; padding:7px 13px; border-radius:20px; background:#f3eeee; color:var(--brand); border:1px solid rgba(142,42,42,.18); font-size:13px; font-weight:600; line-height:1.2; }
.chip:active { background:#e7dada; }
.ai-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ai-head-l { display:flex; align-items:center; gap:8px; font-size:16px; }
.ai-dot { width:8px; height:8px; border-radius:50%; background:#3ec46d; box-shadow:0 0 0 3px rgba(62,196,109,.2); }
.ai-online { font-size:11px; color:#3ec46d; background:#eafaf0; padding:2px 9px; border-radius:20px; font-weight:600; }
.ai-chat { max-height:50vh; overflow:auto; padding:6px 2px; display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.ai-quick { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.ai-input-row { display:flex; gap:8px; align-items:stretch; }
.ai-input-row .search { margin-bottom:0; flex:1; }
.ai-send { width:auto; margin-top:0; padding:0 18px; flex-shrink:0; }

/* ── v1.4.66 AIgo 弹层放大：撑满屏 + 消息区弹性占满 + 多行输入 ── */
.ai-sheet { max-height:94vh; display:flex; flex-direction:column; }
.ai-sheet .ai-head { flex-shrink:0; }
.ai-sheet .note { flex-shrink:0; }
.ai-sheet .ai-quick { flex-shrink:0; }
.ai-sheet .ai-chat { flex:1; min-height:32vh; max-height:none; margin-bottom:8px; }
.ai-input-box { flex-shrink:0; display:flex; flex-direction:column; gap:8px; }
.ai-input-box .ai-ta { width:100%; box-sizing:border-box; min-height:52px; max-height:140px; resize:vertical;
  border:1px solid var(--line); border-radius:10px; background:#fbfcfd; font-size:14.5px; line-height:1.55; padding:10px 12px; font-family:inherit; color:var(--ink); }
.ai-input-box .ai-ta:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(142,42,42,.10); }
.ai-input-btns { display:flex; align-items:center; gap:8px; }
.ai-input-btns .ai-send { width:auto; margin-top:0; padding:9px 20px; }
.ai-input-tools { display:flex; gap:8px; }
.ai-input-btns .ai-tools-btn { width:auto; margin-top:0; padding:9px 14px; font-size:15px; }
.ai-input-hint { font-size:11px; color:#999; flex:1; text-align:right; margin-right:2px; }

/* 服务 / 我的 功能宫格（3 列） */
.hub-entries { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.hub-entry { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:16px 8px; background:#fff; border:1px solid var(--line); border-radius:14px; font-size:13.5px; font-weight:600; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.04); transition:all .15s; }
.hub-entry:active { background:#f4f6fa; transform:translateY(1px); }
/* 报价方案 H5 表单 */
.chk-row { display:flex; flex-wrap:wrap; gap:12px; margin:4px 0 8px; }
.chk { display:flex; align-items:center; gap:5px; font-size:13.5px; color:var(--ink); }
.chk input { width:16px; height:16px; accent-color:var(--brand); }
.qi { border:1px solid var(--line); border-radius:10px; padding:10px; margin:8px 0; background:#fcfbfb; }
.qi .row2 { margin-bottom:6px; }
.hub-entry.on { border-color:var(--brand); background:#fff5f5; box-shadow:0 2px 8px rgba(142,42,42,.15); }
.hub-entry .he-ic { font-size:26px; line-height:1; }
.hub-entry .he-k { font-size:13px; }
.mine-grid .hub-entry .he-ic { font-size:24px; }

/* 统一加载中转圈（异步切换功能板块时反馈） */
.loading-box { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:42px 0; color:var(--muted); font-size:13px; }
.spin { width:26px; height:26px; border:3px solid #eadada; border-top-color:var(--brand); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* AI 引导选型向导 */
.gsteps { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.gstep { font-size:11px; padding:3px 8px; border-radius:12px; background:#f0f0f0; color:#999; }
.gstep.on { background:var(--brand); color:#fff; }
.gstep.done { background:#f0dcdc; color:#8E2A2A; }
.gd { font-size:13px; color:var(--ink); white-space:pre-line; line-height:1.6; }
.gopts { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.gopt { text-align:left; background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.gopt .t { font-size:14px; color:var(--ink); font-weight:600; }
.gopt .d { font-size:12px; color:#999; margin-top:2px; }
.gopt.rec { border-color:var(--brand); background:#fff6f6; }
.gopt.rec .d { color:#8E2A2A; }

/* 报表中心 hero */
.rhub-hero { background:linear-gradient(135deg,#8E2A2A 0%, #b54848 100%); color:#fff; border:none; }
.rhub-hero .rhub-hero-t { font-size:18px; font-weight:800; letter-spacing:1px; }
.rhub-hero .rhub-hero-s { font-size:12.5px; opacity:.9; margin-top:4px; line-height:1.5; }

/* 我的 hero */
.mine-hero { display:flex; align-items:center; gap:14px; padding:18px 16px; background:linear-gradient(135deg,#8E2A2A 0%, #b54848 100%); border-radius:14px; color:#fff; margin-bottom:12px; box-shadow:var(--shadow); }
.mine-avatar { width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,.22); color:#fff; font-size:24px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mine-id { min-width:0; }
.mine-name { font-size:18px; font-weight:700; display:flex; align-items:center; gap:8px; }
.mine-name .tag { background:rgba(255,255,255,.22); color:#fff; }
.mine-sub { font-size:12.5px; opacity:.9; margin-top:3px; }

/* 通讯录 */
.org-ent { margin-bottom:12px; }
.org-ent-t { font-size:14px; font-weight:700; color:var(--ink); margin-bottom:8px; }
.org-grp { border-top:1px solid var(--line); padding:8px 0; }
.org-grp:first-of-type { border-top:none; }
.org-grp-t { font-size:12.5px; color:var(--muted); font-weight:600; margin-bottom:6px; }
.org-per { display:flex; align-items:center; gap:10px; padding:7px 0; }
.org-av { width:34px; height:34px; border-radius:50%; background:var(--brand); color:#fff; font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.org-info { min-width:0; }
.org-name { font-size:14px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:6px; }
.org-name .tag { background:rgba(142,42,42,.1); color:var(--brand); }
.org-role { font-size:12px; color:var(--muted); margin-top:2px; }
.org-phone { font-size:12.5px; margin-top:3px; }
.org-per .rowbtn { margin-left: auto; }

/* 个人荣誉 */
.honor-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.honor-card { border-radius:14px; padding:14px 12px; background:#fff; border:1px solid var(--line); text-align:center; position:relative; overflow:hidden; }
.honor-card .honor-ic { font-size:30px; line-height:1; }
.honor-card .honor-t { font-size:13.5px; font-weight:700; color:var(--ink); margin-top:6px; }
.honor-card .honor-d { font-size:11.5px; color:var(--muted); margin-top:3px; }
.honor-card.gold { background:linear-gradient(160deg,#fff8e6,#fff); border-color:#e8c66a; }
.honor-card.gold .honor-t { color:#a9802b; }
.honor-card.silver { background:linear-gradient(160deg,#f4f6f8,#fff); border-color:#c4ccd4; }
.honor-card.bronze { background:linear-gradient(160deg,#fbf1ec,#fff); border-color:#d8a892; }

/* 学习进度 */
.learn-card { margin-bottom:12px; }
.learn-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:14px; }
.learn-steps { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.learn-step { display:flex; align-items:center; gap:6px; font-size:13px; background:#f6f8fa; border:1px solid var(--line); border-radius:20px; padding:6px 11px; cursor:pointer; }
.learn-step input { width:15px; height:15px; }
.learn-step:has(input:checked) { background:#fff3f3; border-color:var(--brand); color:var(--brand); font-weight:600; }

/* ── 返利管理模块 ── */
.reb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.reb-grid.sm { gap: 8px; margin-bottom: 8px; }
.reb-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.reb-filter input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.reb-filter select { width: 124px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.tag-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.dt { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--card); border-radius: 12px; overflow: hidden; }
table.dt th, table.dt td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dt th { background: #f6f2f2; color: var(--muted); font-weight: 600; }
table.dt td.tl, table.dt th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); z-index: 1; }
table.dt td.tl b { color: var(--brand); }

/* ── 报表中心 v1.4.23：当月一览 + 四大板块 ── */
.rhub-setbtn { padding: 6px 13px; border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.14); border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rhub-setbtn:active { background: rgba(255,255,255,.3); }

/* A/B/C 当月业绩任务卡 */
.rpt-task-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rpt-task-card.rpt-group { border-left: 4px solid var(--brand); }
.rpt-task-card.rpt-store { border-left: 4px solid var(--warn); }
.rpt-task-card.rpt-mine { border-left: 4px solid #3a7d5c; background: linear-gradient(160deg, #f4faf7, #fff); }
.rtc-head { display: flex; align-items: center; gap: 7px; }
.rtc-ic { font-size: 17px; line-height: 1; }
.rtc-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rpt-task-card .rtc-amt { font-size: 26px; font-weight: 800; color: var(--brand); margin-top: 7px; letter-spacing: .5px; }
.rpt-task-card.rpt-mine .rtc-amt { color: #2c6a4d; }
.rpt-task-card .rtc-sub { font-size: 12px; color: var(--muted); margin: 5px 0 8px; }
.rpt-norate { color: var(--muted); }
.rpt-bar { height: 8px; border-radius: 6px; background: #f0f2f5; overflow: hidden; }
.rpt-bar i { display: block; height: 100%; border-radius: 6px; transition: width .5s ease; }

/* D 排名卡 */
.rpt-rank-card { background: linear-gradient(135deg, #8E2A2A 0%, #b54848 100%); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rpt-rank-card .rtc-t { color: #fff; }
.rpt-rank-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; gap: 6px; }
.rpt-rank-no { font-size: 22px; font-weight: 800; }
.rpt-rank-no b { font-size: 30px; }
.rpt-rank-total { font-size: 12px; opacity: .8; font-weight: 400; margin-left: 4px; }
.rpt-up { font-size: 12.5px; font-weight: 700; color: #7ce3a8; padding: 3px 10px; background: rgba(255,255,255,.16); border-radius: 20px; }
.rpt-down { font-size: 12.5px; font-weight: 700; color: #ffd9a6; padding: 3px 10px; background: rgba(255,255,255,.16); border-radius: 20px; }
.rpt-flat { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9); padding: 3px 10px; background: rgba(255,255,255,.14); border-radius: 20px; }
.rpt-cheer { font-size: 12.5px; margin-top: 8px; opacity: .95; }

/* E 签约简报（自动播报） */
.rpt-brief-card { background: var(--card); border: 1px dashed rgba(142,42,42,.35); border-radius: 14px; padding: 13px 16px; margin-bottom: 12px; }
.rpt-brief-live { font-size: 11px; color: var(--brand); background: rgba(142,42,42,.08); border-radius: 20px; padding: 2px 9px; margin-left: auto; }
.rpt-brief-live::before { content: '●'; margin-right: 4px; animation: rptBlink 1.6s infinite; }
@keyframes rptBlink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.rpt-brief-roll { max-height: 176px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 9px; mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent); }
.rpt-brief-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rpt-brief-item:last-child { border-bottom: none; }
.rpt-brief-amt { font-weight: 800; color: var(--brand); }
.rpt-brief-who { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* 四大板块宫格 */
.rpt-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.rpt-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 14px; text-align: left; box-shadow: var(--shadow); }
.rpt-cell:active { border-color: var(--brand); background: #fff6f6; transform: scale(.98); }
.rpt-cell .rc-ic { font-size: 24px; line-height: 1; }
.rpt-cell .rc-k { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.rpt-cell .rc-s { font-size: 11.5px; color: var(--muted); }

/* 板块详情：返回栏 / 激励卡 / 本人高亮 */
.hub-back { display: inline-block; margin-bottom: 10px; padding: 7px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hub-back:active { color: var(--brand); border-color: var(--brand); }
.rpt-cheer-card { background: linear-gradient(135deg, #fff4e6, #fff); border: 1px solid #f0d9b5; border-radius: 12px; padding: 12px 15px; font-size: 13.5px; font-weight: 700; color: #a9802b; margin-bottom: 12px; text-align: center; }
.item.rpt-me { background: #fff6f6; border-left: 3px solid var(--brand); }

/* ═══ v1.4.37 H5 全局视觉升级（设计打磨）═══ */
:root {
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-md: 0 6px 20px rgba(20,40,60,.10);
  --grad-brand: linear-gradient(135deg, #8E2A2A 0%, #6F1F1F 100%);
}
/* 卡片层次 */
.card { border-radius: var(--radius-md); border: 1px solid rgba(232,236,241,.65); box-shadow: var(--shadow); }
.card h3 { letter-spacing: .3px; }
/* 列表项留白与分组 */
.list { border-radius: var(--radius-md); }
.item { padding: 15px 16px; transition: background .15s; }
.item:active { background: #faf6f6; }
.item .t { font-size: 14.5px; }
/* 标签胶囊 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
/* 表单聚焦光环 */
.sheet input:focus, .sheet select:focus, .sheet textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,42,42,.12); outline: none; }
/* 分段控件 */
.seg button { border-radius: 20px; transition: all .15s; font-weight: 600; }
.seg button.on { box-shadow: 0 3px 8px rgba(142,42,42,.30); }
/* 主按钮微交互 */
.btn-primary, .btn-line { border-radius: var(--radius-md); transition: transform .12s, box-shadow .15s; }
.btn-primary:active, .btn-line:active { transform: scale(.985); }
/* 进度条渐变 */
.bar i { background: var(--grad-brand); }
/* 空态 */
.empty { font-size: 13.5px; color: #9aa4b2; }
/* 底部导航/页签激活品牌色 */
.bottom-nav, .tabbar { box-shadow: 0 -2px 12px rgba(20,40,60,.06); }

/* ═══ v1.5.25 H5 导航重构（对齐《冠欧AIdoms-H5原型方案v1-移动端8中心》）═══ */
/* 顶栏渐变红 + 消息铃铛 */
.topbar.h5bar { background: linear-gradient(93deg, var(--brand-d), var(--brand) 55%, #A04040); }
.topbar .bell { position: relative; cursor: pointer; font-size: 16px; margin-right: 10px; text-decoration: none; display: inline-flex; }
.nav button .ic svg { width: 21px; height: 21px; display: block; }
/* 小节标题（金条） */
.sec { font-size: 12.5px; font-weight: 800; color: var(--brand-d); margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.sec::before { content: ""; width: 4px; height: 12px; border-radius: 2px; background: var(--gold, #C8963E); }
/* 8 中心宫格 */
.grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g8 { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px 9px; text-align: center; cursor: pointer; transition: transform .12s; box-shadow: var(--shadow); }
.g8:active { transform: scale(.96); }
.g8 .ic { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 12px; background: rgba(142,42,42,.08); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.g8 .ic svg { width: 20px; height: 20px; }
.g8 .nm { font-size: 11px; font-weight: 600; color: var(--ink); }
/* 工作台板块标题 + 功能宫格（3 列） */
.wg-title { font-size: 11px; font-weight: 800; color: var(--brand-d); margin: 12px 2px 7px; letter-spacing: .3px; }
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px 9px; text-align: center; cursor: pointer; transition: transform .12s; box-shadow: var(--shadow); }
.wcard:active { transform: scale(.96); }
.wcard .wi { width: 36px; height: 36px; border-radius: 10px; background: rgba(142,42,42,.08); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; }
.wcard .wi svg { width: 19px; height: 19px; }
.wcard .wn { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.wcard .wn .fl { font-size: 8.5px; background: rgba(142,42,42,.1); color: var(--brand); border-radius: 8px; padding: 0 5px; margin-left: 3px; vertical-align: 1px; }
.wcard .wg { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
/* 列表行（待办 / 审批 / 预警） */
.row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.row .tl { flex: 1; font-size: 12.5px; color: var(--ink); }
.row .st { font-size: 10.5px; border-radius: 10px; padding: 2px 8px; background: #f6e9e9; color: var(--brand); white-space: nowrap; }
.row .st.g { background: #e8f5e9; color: #1b5e20; }
.row .st.o { background: #fdf3e0; color: #9a6b00; }
/* KPI 三连 */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--kpi-gap, 10px); }
.kpis.x4 { grid-template-columns: repeat(4, 1fr); }
.kpi { position: relative; background: var(--card); border-radius: var(--kpi-radius, 14px); padding: var(--kpi-pad, 12px 10px); text-align: center; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; border-radius: 0 3px 3px 0; background: var(--grad-brand); }
.kpi.warn::before { background: linear-gradient(180deg, #e6a23c, #c98a1e); }
.kpi .n { font-size: var(--kpi-n, 22px); font-weight: 800; color: var(--brand); line-height: 1.15; }
.kpi .l { font-size: var(--kpi-l, 11.5px); color: var(--muted); margin-top: 4px; line-height: 1.3; }
/* 宽按钮 */
.btn.w { border: none; border-radius: 10px; padding: 11px 10px; font-size: 13px; font-weight: 700; background: var(--brand); color: #fff; cursor: pointer; }
.btn.w:active { transform: scale(.97); }
.fl.o { background: #fdf3e0; color: #9a6b00; }

/* ═══ v1.5.30 H5 导航壳（严格对齐《冠欧AIdoms-H5原型方案v1-移动端8中心》）═══ */
/* 顶部 .hbar = back + 标题 + 右上角色切换（pinned，30px 上边距） */
.hbar { background: var(--brand, #8E2A2A); color: #fff; padding: calc(30px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(142,42,42,.18); }
.hbar .back { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; flex: 0 0 auto; user-select: none; }
.hbar .back:active { background: rgba(255,255,255,.28); }
.hbar .tt { font-size: 16px; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .role-tag { font-size: 10.5px; background: rgba(255,255,255,.2); border-radius: 12px; padding: 3px 10px; white-space: nowrap; cursor: pointer; user-select: none; flex: 0 0 auto; }
.hbar .role-tag:active { background: rgba(255,255,255,.32); }
/* 底部 .tabbar（mobile TabBar）——flex + SVG + 角色 on 高亮；与原 .tabbar chip-bar 冲突，用 .tabbar#hbarTabbar 区分 */
.tabbar#hbarTabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--card, #fff); border-top: 1px solid var(--line, #e8ecf1); display: flex; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 50; box-shadow: 0 -2px 12px rgba(20,40,60,.06); }
.tb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted, #8a8f99); cursor: pointer; padding: 5px 0 3px; border-radius: 10px; user-select: none; }
.tb:active { background: rgba(142,42,42,.06); }
.tb.on { color: var(--brand, #8E2A2A); font-weight: 700; }
.tb svg { width: 19px; height: 19px; }
/* 主内容区：避开顶部 60px + 底部 60px */
.hc { padding: 14px; padding-bottom: 84px; min-height: calc(100vh - 120px); }

/* ═══ v1.5.31 H5 workBoard / approveBoard 样式（严格对齐原型）═══ */
/* BANNER 广告位 */
.ad { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: linear-gradient(120deg, var(--brand-d, #6F1F1F), var(--brand, #8E2A2A) 50%, #B54848); color: #fff; padding: 20px 18px; box-shadow: var(--shadow); }
.ad .ad-t { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.ad .ad-s { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 5px; }
.ad .ad-tag { position: absolute; top: 8px; right: 10px; font-size: 9px; background: rgba(255,255,255,.2); border-radius: 10px; padding: 2px 8px; }
/* 效率分 score-card */
.score-card { background: linear-gradient(120deg, var(--brand, #8E2A2A), var(--brand-d, #6F1F1F)); color: #fff; border-radius: 14px; padding: 16px; margin-bottom: 4px; box-shadow: var(--shadow); }
.score-card.slim { padding: 13px 15px; margin-bottom: 8px; }
.score-row { display: flex; align-items: baseline; gap: 10px; }
.score-big { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.score-big em { font-style: normal; font-size: 13px; font-weight: 600; opacity: .85; margin-left: 3px; }
.score-mot { font-size: 12px; font-weight: 600; color: #FFE3B3; flex: 1; }
.score-bar { height: 8px; background: rgba(255,255,255,.28); border-radius: 5px; margin: 10px 0 7px; overflow: hidden; }
.score-fill { height: 100%; background: #fff; border-radius: 5px; transition: width .3s; }
.score-meta { font-size: 10.5px; color: rgba(255,255,255,.9); line-height: 1.6; }
/* 二级列表（原型 .l2，本期 workGrid 用 wgrid 替代） */
.l2 { background: var(--card, #fff); border: 1px solid var(--line, #e8ecf1); border-radius: 12px; padding: 4px 12px; margin-bottom: 10px; }
.l2 .grp { font-size: 10.5px; color: var(--muted, #8a8f99); padding: 9px 2px 3px; letter-spacing: .5px; }
.l2 .it { display: flex; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid var(--line, #e8ecf1); font-size: 13px; cursor: pointer; }
.l2 .it:last-child { border-bottom: none; }
.l2 .it .arr { margin-left: auto; color: var(--muted, #8a8f99); font-size: 13px; }
.l2 .it .fl { font-size: 9.5px; background: rgba(142,42,42,.1); color: var(--brand, #8E2A2A); border-radius: 8px; padding: 1px 7px; }
.l2 .it .fl.o { background: #fdf3e0; color: #9a6b00; }
/* 我的页面 */
.mine .mi { display: flex; align-items: center; gap: 12px; padding: 13px; background: var(--card, #fff); border: 1px solid var(--line, #e8ecf1); border-radius: 12px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow); }
.mine .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold, #C8963E), #B27A2E); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.mine .mi .nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.mine .mi .rl { font-size: 11px; color: var(--muted); margin-top: 1px; }
.role-sel { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.role-sel .rs { background: var(--card, #fff); border: 1px solid var(--line, #e8ecf1); border-radius: 10px; padding: 10px 4px; text-align: center; font-size: 12px; color: var(--ink); cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.role-sel .rs.on { background: var(--brand, #8E2A2A); color: #fff; font-weight: 700; border-color: var(--brand, #8E2A2A); }
.role-sel .rs:active { transform: scale(.97); }
/* 我的页：卡片头像渐变（品牌金）+ 点击反馈 */
.mine .mi:active { transform: scale(.995); background: #fafafa; }
.mine .mi .nm .tag { background: rgba(142,42,42,.1); color: var(--brand, #8E2A2A); font-size: 10px; padding: 1px 7px; border-radius: 10px; }
/* 我的页功能宫格：与全局 hub-entries 一致的 3 列 */
.mine-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-bottom: 4px; }
.mine-grid .hub-entry { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; background: var(--card, #fff); border: 1px solid var(--line, #e8ecf1); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; }
.mine-grid .hub-entry .he-ic { font-size: 21px; line-height: 1; }
.mine-grid .hub-entry .he-k { font-size: 11.5px; color: var(--ink); text-align: center; line-height: 1.3; }
