/* 心动云 CRM 复刻 —— 视觉层 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; color: #303133; background: #f2f1f6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8dae2; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }

/* 左侧导航 */
.sb { width: 210px; flex: 0 0 210px; background: #1a1c27; display: flex; flex-direction: column; }
.sb-logo { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #000; }
.sb-logo .lg { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f56c6c, #ff9a9e); display: grid; place-items: center; font-size: 13px; color: #fff; font-weight: 700; flex: 0 0 30px; }
.sb-logo .lgt { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.sb-logo .lgt i { display: block; font-style: normal; font-size: 9px; color: #7b7f96; letter-spacing: 1px; font-weight: 400; }
.sb-body { flex: 1; overflow-y: auto; padding: 10px 0 24px; }
.sb-body::-webkit-scrollbar-thumb { background: #33364a; }
.sb-g { margin-bottom: 12px; }
.sb-gt { display: flex; align-items: center; gap: 7px; padding: 7px 14px 7px 12px; color: #e9eaf2; font-size: 12.5px; font-weight: 600; }
.sb-gt .ic { width: 17px; height: 17px; border-radius: 4px; background: rgba(116, 122, 251, .18); color: #9aa0ff; display: grid; place-items: center; font-size: 10px; flex: 0 0 17px; }
.sb-items { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0 8px; }
.sb-i { position: relative; font-size: 12px; color: #b8bbcb; padding: 6px 4px; border-radius: 4px; text-align: center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .15s; }
.sb-i:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sb-i.on { background: linear-gradient(90deg, #5b63f0, #8389fb); color: #fff; }
.sb-i .bdg { position: absolute; top: -1px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #f56c6c; color: #fff; font-size: 9px; line-height: 14px; text-align: center; }

/* 主区 */
.mn { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tb { height: 44px; flex: 0 0 44px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #ececf1; }
.tb .bc { font-size: 12.5px; color: #909399; display: flex; gap: 6px; }
.tb .bc b { font-weight: 400; color: #606266; }
.tb .bc em { font-style: normal; color: #c0c4cc; }
.tb-r { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #606266; }
.tb-r a { display: flex; align-items: center; gap: 3px; cursor: pointer; color: #606266; }
.tb-r a:hover { color: #409eff; }
.tb-r .sep { color: #dcdfe6; }
.tb-r .bal { color: #606266; }
.tb-r .bal b { color: #f56c6c; font-weight: 500; }
.tb-r .u { display: flex; align-items: center; gap: 6px; }
.tb-r .av { width: 24px; height: 24px; border-radius: 50%; background: #409eff; color: #fff; display: grid; place-items: center; font-size: 11px; }
.tags { height: 34px; flex: 0 0 34px; background: #fff; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #ececf1; overflow-x: auto; overflow-y: hidden; }
.tags::-webkit-scrollbar { height: 0; }
.tag { height: 24px; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #e4e7ed; border-radius: 3px; font-size: 12px; color: #606266; background: #fff; cursor: pointer; }
.tag.on { background: #409eff; border-color: #409eff; color: #fff; }
.tag .x { font-size: 12px; opacity: .55; padding: 0 1px; }
.tag .x:hover { opacity: 1; }
.main { flex: 1; overflow-y: auto; padding: 10px 12px 24px; }

/* ---------- 卡片 ---------- */
.card { background: #fff; border-radius: 4px; padding: 14px 16px; margin-bottom: 10px; }
.card.p0 { padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-t { font-size: 13.5px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 8px; }
.card-t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #409eff; }
.card-t.nb::before { display: none; }
.card-sub { font-size: 11.5px; color: #a8abb2; font-weight: 400; }
.card-r { display: flex; align-items: center; gap: 8px; }

/* ---------- 页内页签 ---------- */
.ptabs { display: flex; gap: 26px; border-bottom: 1px solid #ebeef5; margin: 0 0 14px; padding: 0 2px; overflow-x: auto; }
.ptabs::-webkit-scrollbar { height: 0; }
.ptab { position: relative; padding: 9px 0 10px; font-size: 13px; color: #606266; cursor: pointer; white-space: nowrap; }
.ptab:hover { color: #409eff; }
.ptab.on { color: #409eff; font-weight: 600; }
.ptab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #409eff; border-radius: 1px; }
.ptab .n { color: #f56c6c; font-size: 11px; margin-left: 2px; }

/* 顶部标签（多选筛选用） */
.chip { height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid #dcdfe6; background: #fff; color: #606266; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; }
.chip.on { background: #409eff; border-color: #409eff; color: #fff; }
.chip.gr { border-radius: 3px; }

/* ---------- 筛选区 ---------- */
.fbox { background: #fff; border-radius: 4px; padding: 12px 14px 6px; margin-bottom: 10px; }
.frow { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 8px; }
.fin { height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; background: #fff; width: 210px; }
.fin:focus { border-color: #409eff; }
.fin::placeholder { color: #c0c4cc; }
.fin.wide { width: 380px; }
.fin.w120 { width: 120px; }
.fin.w150 { width: 150px; }
.fsel { height: 30px; min-width: 108px; max-width: 150px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; color: #c0c4cc; background: #fff; cursor: pointer; user-select: none; position: relative; }
.fsel.has { color: #606266; }
.fsel .ar { color: #c0c4cc; font-size: 9px; }
.fsel .menu { position: absolute; top: 32px; left: 0; min-width: 100%; max-height: 210px; overflow: auto; background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); padding: 4px 0; z-index: 30; display: none; }
.fsel.open .menu { display: block; }
.fsel .menu div { padding: 6px 10px; font-size: 12.5px; color: #606266; white-space: nowrap; }
.fsel .menu div:hover { background: #f5f7fa; color: #409eff; }
.fsel .menu div.on { color: #409eff; font-weight: 600; }
.fdate { height: 30px; width: 240px; border: 1px solid #dcdfe6; border-radius: 3px; display: inline-flex; align-items: center; padding: 0 8px; font-size: 12.5px; color: #c0c4cc; gap: 6px; background: #fff; }
.fdate b { font-weight: 400; color: #c0c4cc; }
.fbtns { display: flex; gap: 8px; align-items: center; }
.fmore { display: flex; justify-content: center; align-items: center; height: 20px; color: #c0c4cc; cursor: pointer; font-size: 12px; border-top: 1px dashed #f0f0f4; }
.fmore:hover { color: #409eff; }

/* ---------- 按钮 ---------- */
.btn { height: 30px; padding: 0 13px; border-radius: 3px; border: 1px solid #dcdfe6; background: #fff; color: #606266; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; transition: .15s; }
.btn:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.btn.pri { background: #409eff; border-color: #409eff; color: #fff; }
.btn.pri:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; }
.btn.xs { height: 22px; padding: 0 6px; font-size: 11.5px; border-radius: 2px; }
.btn.link { border: none; background: none; color: #409eff; padding: 0 4px; height: auto; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn.danger { color: #f56c6c; border-color: #fbc4c4; background: #fef0f0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pri.ghost { background: #ecf5ff; color: #409eff; border-color: #b3d8ff; }

/* ---------- KPI ---------- */
.kpis { display: flex; border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden; background: #fff; margin-bottom: 10px; }
.kpi { flex: 1; padding: 11px 14px; border-right: 1px solid #f2f3f5; min-width: 0; }
.kpi:last-child { border-right: none; }
.kpi .kl { font-size: 11.5px; color: #909399; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.kpi .kl .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.kpi .kv { font-size: 19px; font-weight: 600; color: #303133; margin-top: 6px; letter-spacing: .3px; }
.kpi .ks { font-size: 11px; color: #c0c4cc; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .ks b { color: #909399; font-weight: 400; }
.kpi.hl { background: #f5f8ff; }
.kpi.hl .kv { color: #409eff; }

/* 大数字卡 */
.bigkpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: #fff; border-radius: 4px; margin-bottom: 10px; overflow: hidden; }
.bigkpi .bk { padding: 16px 18px; border-right: 1px solid #f2f3f5; }
.bigkpi .bk:last-child { border-right: none; }
.bigkpi .bk .bl { font-size: 12px; color: #909399; }
.bigkpi .bk .bv { font-size: 24px; font-weight: 600; color: #303133; margin: 6px 0 6px; }
.bigkpi .bk .bs { font-size: 11.5px; color: #c0c4cc; }
.bigkpi .bk .bs i { font-style: normal; color: #909399; }

/* ---------- 表格 ---------- */
.tb-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.tbl thead th { background: #f7f8fa; color: #606266; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid #ebeef5; white-space: nowrap; position: sticky; top: 0; z-index: 2; }

table.tbl tbody td { padding: 9px 10px; border-bottom: 1px solid #f2f3f5; color: #606266; vertical-align: middle; }
table.tbl tbody tr:hover td { background: #f7f9fc; }
table.tbl tbody tr.sel td { background: #ecf5ff; }
table.tbl .cb { width: 34px; text-align: center; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .ctr { text-align: center; }
table.tbl .op { white-space: nowrap; }
.tbl-empty { padding: 60px 0; text-align: center; color: #c0c4cc; font-size: 13px; }

/* 用户单元格 */
.uc { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.uc .av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; background: #d9dee8; }
.uc .ui { min-width: 0; }
.uc .un { color: #303133; font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.uc .un .vip { font-size: 9px; padding: 1px 4px; border-radius: 2px; background: #fdf0e8; color: #e6903a; border: 1px solid #f8dcc6; }
.uc .uid { color: #a8abb2; font-size: 11px; margin-top: 2px; }
.uc .um { color: #909399; font-size: 11px; margin-top: 2px; }

/* 状态 */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 7px; border-radius: 2px; background: #f2f3f5; color: #909399; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.blue { background: #ecf5ff; color: #409eff; }
.pill.green { background: #f0f9eb; color: #67c23a; }
.pill.orange { background: #fdf6ec; color: #e6a23c; }
.pill.red { background: #fef0f0; color: #f56c6c; }
.pill.gray { background: #f4f4f5; color: #909399; }
.pill.purple { background: #f5f0ff; color: #8b5cf6; }
.pill.nodot::before { display: none; }

/* 进度胶囊 */
.prog { display: inline-flex; flex-direction: column; gap: 3px; min-width: 74px; }
.prog .pt { font-size: 11.5px; color: #e6a23c; }
.prog .pt.ok { color: #67c23a; }
.prog .pt.bad { color: #f56c6c; }
.prog .pb { height: 3px; border-radius: 2px; background: #f0f1f4; overflow: hidden; }
.prog .pb i { display: block; height: 100%; border-radius: 2px; background: #e6a23c; }
.prog .pb i.ok { background: #67c23a; }
.prog .pb i.bad { background: #f56c6c; }

/* 开关 */
.sw { width: 34px; height: 18px; border-radius: 9px; background: #dcdfe6; position: relative; cursor: pointer; display: inline-block; vertical-align: middle; transition: .2s; }
.sw::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; }
.sw.on { background: #409eff; }
.sw.on::after { left: 18px; }

/* 页码 */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 2px 2px; font-size: 12px; color: #606266; }
.pager .tot { color: #909399; margin-right: auto; }
.pager .pg { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 2px; background: #f4f4f5; color: #606266; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pager .pg:hover { color: #409eff; }
.pager .pg.on { background: #409eff; color: #fff; }
.pager .pg.dis { color: #c0c4cc; cursor: not-allowed; }
.pager select { height: 26px; border: 1px solid #dcdfe6; border-radius: 3px; font-size: 12px; color: #606266; padding: 0 4px; }
.pager input { width: 44px; height: 26px; border: 1px solid #dcdfe6; border-radius: 3px; text-align: center; font-size: 12px; color: #606266; }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 900; display: none; }
.mask.show { display: block; }
.dlg { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: 620px; max-height: 76vh; background: #fff; border-radius: 4px; z-index: 901; display: none; flex-direction: column; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.dlg.show { display: flex; }
.dlg-h { padding: 14px 18px; border-bottom: 1px solid #f0f1f4; font-size: 14px; font-weight: 600; color: #303133; display: flex; justify-content: space-between; align-items: center; }
.dlg-h .x { cursor: pointer; color: #909399; font-size: 16px; line-height: 1; }
.dlg-h .x:hover { color: #409eff; }
.dlg-b { padding: 16px 18px; overflow-y: auto; }
.dlg-f { padding: 10px 18px 14px; border-top: 1px solid #f0f1f4; display: flex; justify-content: flex-end; gap: 8px; }
.dlg.wide { width: 820px; }
.dlg.narrow { width: 460px; }

/* 表单 */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.fgrid.one { grid-template-columns: 1fr; }
.fi { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.fi > label { width: 92px; flex: 0 0 92px; text-align: right; font-size: 12.5px; color: #606266; line-height: 30px; }
.fi > label em { color: #f56c6c; font-style: normal; margin-right: 2px; }
.fi .fc { flex: 1; min-width: 0; }
.fi input[type=text], .fi input[type=number], .fi select, .fi textarea { width: 100%; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; height: 30px; }
.fi textarea { height: 76px; padding: 7px 9px; resize: vertical; line-height: 1.6; }
.fi input:focus, .fi select:focus, .fi textarea:focus { border-color: #409eff; }
.fi .hint { font-size: 11px; color: #a8abb2; margin-top: 4px; line-height: 1.5; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { font-size: 12.5px; color: #606266; display: flex; align-items: center; gap: 5px; cursor: pointer; line-height: 30px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.radios label { font-size: 12.5px; color: #606266; display: flex; align-items: center; gap: 5px; cursor: pointer; line-height: 30px; }

/* ---------- 抽屉 ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; background: #fff; z-index: 901; transform: translateX(100%); transition: .22s; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0, 0, 0, .1); }
.drawer.show { transform: translateX(0); }
.drawer-h { padding: 14px 18px; border-bottom: 1px solid #f0f1f4; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 18px; }

/* toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); background: #f0f9eb; border: 1px solid #e1f3d8; color: #67c23a; padding: 9px 18px; border-radius: 4px; font-size: 13px; z-index: 999; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #fef0f0; border-color: #fde2e2; color: #f56c6c; }
.toast.info { background: #f4f4f5; border-color: #e9e9eb; color: #909399; }

/* ---------- 图表 ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chart-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.chart-card { background: #fff; border-radius: 4px; padding: 14px 16px; }
.chart-card .ct { font-size: 12.5px; color: #606266; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: #909399; align-items: center; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
svg.chart { width: 100%; display: block; }

/* ---------- 工作台 ---------- */
.dash { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: start; }
.dash .col { display: flex; flex-direction: column; gap: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.metric-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.metric .ml { font-size: 11.5px; color: #909399; display: flex; align-items: center; gap: 4px; line-height: 1.35; }
.metric .mv { font-size: 20px; font-weight: 600; color: #303133; margin-top: 4px; }
.metric .ms { font-size: 11px; color: #c0c4cc; margin-top: 3px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick { border: 1px solid #f0f1f4; border-radius: 6px; padding: 12px 6px; text-align: center; cursor: pointer; position: relative; }
.quick:hover { border-color: #c6e2ff; background: #fafcff; }
.quick .qi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin: 0 auto 6px; font-size: 14px; color: #fff; }
.quick .ql { font-size: 11.5px; color: #606266; }
.quick .qn { position: absolute; top: 6px; right: 8px; min-width: 15px; height: 15px; border-radius: 8px; background: #f56c6c; color: #fff; font-size: 9px; line-height: 15px; padding: 0 3px; }
.cal { border: 1px solid #f0f1f4; border-radius: 6px; overflow: hidden; }
.cal-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #fafbfd; font-size: 12px; color: #606266; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid div { text-align: center; padding: 6px 0; font-size: 11.5px; color: #606266; border-top: 1px solid #f5f6f8; }
.cal-grid div.d { color: #909399; }
.cal-grid div.on { background: #409eff; color: #fff; border-radius: 4px; }
.cal-grid div.tdy { color: #f56c6c; font-weight: 600; }
.todo { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #f0f1f4; font-size: 12px; }
.todo:last-child { border-bottom: none; }
.todo .tt { color: #409eff; flex: 0 0 44px; font-variant-numeric: tabular-nums; }
.todo .tc { flex: 1; color: #606266; line-height: 1.6; }
.todo .tc b { color: #303133; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #f0f1f4; font-size: 12.5px; }
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center; font-size: 11px; background: #f0f1f4; color: #909399; }
.rank-row .rk.t1 { background: #f56c6c; color: #fff; }
.rank-row .rk.t2 { background: #e6a23c; color: #fff; }
.rank-row .rk.t3 { background: #409eff; color: #fff; }
.rank-row .rn { flex: 1; color: #303133; }
.rank-row .rv { color: #606266; }

/* 看板 */
.board-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.board-kpi .bc { background: #fff; border-radius: 4px; padding: 14px 16px; }
.board-kpi .bc .bl { font-size: 12px; color: #909399; }
.board-kpi .bc .bv { font-size: 22px; font-weight: 600; color: #303133; margin-top: 5px; }
.board-kpi .bc .bs { font-size: 11px; color: #c0c4cc; margin-top: 4px; }

/* 套餐卡 */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pkg { border: 1px solid #ebeef5; border-radius: 6px; padding: 14px; position: relative; }
.pkg.on { border-color: #409eff; background: #fafcff; }
.pkg .pn { font-size: 13px; font-weight: 600; color: #303133; }
.pkg .pp { font-size: 20px; font-weight: 700; color: #f56c6c; margin: 6px 0; }
.pkg .pp small { font-size: 11px; font-weight: 400; color: #909399; }
.pkg .pd { font-size: 11.5px; color: #909399; line-height: 1.9; }
.pkg .tagx { position: absolute; top: 8px; right: 8px; font-size: 10px; background: #409eff; color: #fff; padding: 1px 5px; border-radius: 2px; }

/* 设置页 */
.set-sec { margin-bottom: 18px; }
.set-sec-t { background: #fafbfd; border-radius: 3px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.set-sec-t::before { content: ""; width: 3px; height: 12px; background: #409eff; border-radius: 2px; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px dashed #f2f3f5; font-size: 12.5px; }
.set-row .sl { width: 190px; flex: 0 0 190px; text-align: right; color: #606266; }
.set-row .sc { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.set-row .sc input[type=number], .set-row .sc input[type=text] { width: 100px; height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 8px; font-size: 12.5px; color: #606266; }
.set-row .sc .unit { color: #909399; font-size: 12px; }
.set-row .hint { color: #f56c6c; font-size: 11.5px; }
.set-row .hint.gray { color: #a8abb2; }

/* 二维码 */
.qr-wrap { display: flex; gap: 24px; padding: 10px 4px; }
.qr-box { width: 200px; height: 200px; border: 1px solid #ebeef5; border-radius: 6px; display: grid; place-items: center; background: #fff; }
.qr-form .fi > label { width: 80px; flex: 0 0 80px; }
.qr-form .fi select, .qr-form .fi input { max-width: 340px; }
.qr-wrap { align-items: flex-start; }

/* 日历表（服务计划） */
.plan-table { overflow-x: auto; }
.plan-tbl { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.plan-tbl th { background: #f7f8fa; color: #606266; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid #ebeef5; text-align: center; white-space: nowrap; }
.plan-tbl th.we { color: #f56c6c; }
.plan-tbl th small { display: block; color: #a8abb2; font-size: 10px; font-weight: 400; }
.plan-tbl td { padding: 0; border-bottom: 1px solid #f2f3f5; border-right: 1px solid #f7f8fa; height: 42px; text-align: center; }
.plan-tbl td.lc { position: sticky; left: 0; background: #fff; z-index: 2; padding: 0 8px; text-align: left; }
.plan-tbl td .dt { display: block; width: 100%; height: 42px; line-height: 42px; color: #c0c4cc; }
.plan-tbl .slot { color: #409eff; font-size: 11px; }
.plan-tbl .slot.res { color: #e6a23c; }
.plan-tbl .slot.over { color: #f56c6c; }

/* 空态 */
.empty { padding: 46px 0; text-align: center; color: #c0c4cc; font-size: 12.5px; }
.empty .ei { font-size: 26px; margin-bottom: 8px; opacity: .5; }

.btn.pri.green { background:#67c23a; border-color:#67c23a; }
.btn.pri.green:hover { background:#85ce61; border-color:#85ce61; }
.btn.pri.blue { background:#409eff; border-color:#409eff; }
.btn.pri.ghost { background:#ecf5ff; color:#409eff; border-color:#b3d8ff; }

table.tbl thead th { white-space: nowrap; }
table.tbl thead th .sw { width: 28px; height: 15px; margin-left: 6px; vertical-align: -3px; }
table.tbl thead th .sw::after { width: 11px; height: 11px; }
table.tbl thead th .sw.on::after { left: 15px; }
.uc { min-width: 200px; }
.fsel > span { min-width: 0; }

table.tbl thead th.swcol { min-width: 330px; }

.metric-grid { gap: 12px 10px; }
.metric .ml { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .ms { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .card .card-t { font-size: 13px; }

/* ================= 数据中心（按线上真实结构） ================= */
.dc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.dc-kpis .dc-kpi { background: #fff; border-radius: 4px; padding: 13px 15px; min-width: 0; }
.dc-kl { font-size: 12px; color: #909399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-kv { font-size: 23px; font-weight: 600; color: #303133; margin: 5px 0 4px; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.dc-ks { font-size: 11px; color: #c0c4cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dc-card { padding: 0; overflow: hidden; }
.dc-tb-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #f2f3f5; flex-wrap: wrap; }
.dc-tb-t { font-size: 13px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 8px; }
.dc-tb-t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #409eff; }
.dc-tb-t:empty { display: none; }
.dc-sub-t { font-size: 11.5px; color: #909399; font-weight: 400; }
.dc-tb-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.dc-segs { display: flex; gap: 4px; align-items: center; }
.dc-tb { padding: 0 0 4px; }
.dc-tbl thead th { text-align: center; background: #f7f8fa; border-right: 1px solid #f0f1f4; padding: 8px 8px; font-weight: 600; color: #606266; font-size: 12px; }
.dc-tbl thead tr:first-child th { border-bottom: 1px solid #ebeef5; }
.dc-tbl thead th:last-child { border-right: none; }
.dc-tbl tbody td { padding: 8px 10px; border-right: 1px solid #f7f8fa; font-size: 12.5px; white-space: nowrap; }
.dc-tbl tbody td:last-child { border-right: none; }
.dc-tbl tbody tr.dc-sumrow td { background: #fbfcfe; font-weight: 600; }
.dc-tbl .dc-sum { font-weight: 700; color: #303133; }
.dc-sub { display: block; font-size: 10.5px; color: #a8abb2; font-weight: 400; margin-top: 1px; }
.dc-tb-foot { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 11px 16px; border-top: 1px solid #f2f3f5; background: #fcfcfd; }
.dc-tb-foot span { font-size: 12px; color: #909399; }
.dc-tb-foot span b { font-size: 14px; font-weight: 600; color: #303133; margin-right: 6px; font-variant-numeric: tabular-nums; }
.dc-foot { display: flex; flex-wrap: wrap; gap: 8px 26px; background: #fff; border-radius: 4px; padding: 13px 16px; margin-bottom: 10px; }
.dc-foot div { font-size: 12px; color: #909399; }
.dc-foot div b { font-size: 15px; font-weight: 600; color: #303133; margin-right: 6px; }

/* 图表横排 */
.dc-row { display: flex; gap: 10px; align-items: stretch; padding: 0 16px 14px; }
.dc-row:first-child { padding-top: 14px; }
.dc-row .dc-chart { flex: 1 1 0; min-width: 0; border: 1px solid #f2f3f5; border-radius: 5px; padding: 10px 12px 6px; }
.dc-chart-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dc-ct { font-size: 12.5px; color: #606266; font-weight: 600; }
.dc-chart-r { display: flex; gap: 3px; }
.dc-chart-r .chip { height: 21px; padding: 0 7px; font-size: 11px; border-radius: 3px; }
.dc-legend { display: flex; gap: 12px; font-size: 11px; color: #909399; padding: 2px 0 6px; flex-wrap: wrap; }
.dc-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.dc-chart-body svg.chart, .dc-bigchart svg.chart, .dc-chart-pair svg.chart { width: 100%; height: auto; display: block; }
.dc-bigchart { padding: 4px 16px 12px; }
.dc-chart-pair { display: flex; gap: 10px; padding: 4px 16px 12px; }
.dc-chart-pair .dc-chart-hd { padding-top: 2px; }

/* 弹窗内构件 */
.dc-form { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; align-items: center; font-size: 12.5px; }
.dc-form > label { text-align: right; color: #606266; }
.dc-form input, .dc-form select { height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; width: 100%; }
.dc-form .dc-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dc-form .dc-checks label { text-align: left; color: #606266; display: flex; align-items: center; gap: 5px; }
.dc-form .dc-inline { display: flex; align-items: center; gap: 6px; }
.dc-form .dc-inline input { width: 88px; }
.dc-form .dc-inline span { font-size: 12px; color: #909399; white-space: nowrap; }
.dc-dlg-grid { display: flex; flex-direction: column; gap: 12px; }
.dc-dlg-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #606266; }
.dc-dlg-row > span { width: 72px; flex: 0 0 72px; }
.dc-dlg-row .prog { flex: 0 0 180px; }
.dc-dlg-row .prog .pb { height: 6px; }
.dc-dlg-row b { width: 66px; font-weight: 600; color: #303133; }
.dc-dlg-row em { font-style: normal; color: #909399; font-size: 12px; }
.dc-kv-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.dc-kv-row div { background: #fafbfd; border-radius: 4px; padding: 10px 12px; }
.dc-kv-row div b { display: block; font-size: 18px; font-weight: 600; color: #303133; }
.dc-kv-row div span { font-size: 11.5px; color: #909399; }

@media (max-width: 1400px) {
  .dc-kpis { grid-template-columns: repeat(3, 1fr); }
}
.dc-tbl thead th .th-s { display: block; font-size: 10.5px; color: #a8abb2; font-weight: 400; margin-top: 1px; }
.dc-tbl tbody td.wrap { white-space: normal; min-width: 300px; max-width: 460px; color: #909399; font-size: 12px; line-height: 1.55; }

/* 多行表头：整个 thead 一起吸附，避免两行 th 各自 top:0 重叠 */
table.tbl thead { position: sticky; top: 0; z-index: 3; }
table.tbl thead th { position: static; }
.dc-tbl thead tr:first-child th { background: #eff2f7; color: #4b5563; }
.dc-tbl thead tr:nth-child(2) th { background: #f7f8fa; font-weight: 500; color: #6b7280; }
.dc-tbl thead tr:first-child th[rowspan] { background: #eff2f7; }
/* 数据中心表：多行表头不做吸附，避免浏览器只粘第一行导致错位 */
.dc-tbl thead, .dc-tbl thead th { position: static; }

/* 列表页工具条（批量操作） */
.tbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 10px; }
.tbar .btn { height: 28px; }

/* ================= 表头多开关排版 ================= */
table.tbl thead th.swcol { white-space: normal; min-width: 150px; line-height: 1.9; }
table.tbl thead th.swcol .sw { width: 22px; height: 12px; vertical-align: -1px; }
table.tbl thead th.swcol > span:not(.sw):not(.ar) { font-size: 10.5px; }

/* 操作列吸附右侧 */
table.tbl td.op { position: sticky; right: 0; background: #fff; box-shadow: -6px 0 8px -7px rgba(0, 0, 0, .18); white-space: nowrap; z-index: 2; }
table.tbl tbody tr:hover td.op { background: #f7f9fc; }
table.tbl tbody tr.sel td.op { background: #eef4ff; }

/* ================= 红娘看板 ================= */
.hn { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 10px; align-items: start; }
.hn-l, .hn-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hn-perf { padding: 0; }
.hn-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; }
.hn-t { font-size: 14px; font-weight: 600; color: #303133; }
.hn-kv { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px 10px 10px; border-bottom: 1px solid #f4f5f8; }
.hn-kv > div { padding: 4px 6px; min-width: 0; }
.hn-kv .k { font-size: 11.5px; color: #909399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-kv .v { font-size: 20px; font-weight: 600; color: #303133; line-height: 1.35; font-variant-numeric: tabular-nums; }
.hn-kv .s { font-size: 10.5px; color: #c0c4cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-body { display: flex; gap: 12px; padding: 8px 16px 14px; align-items: stretch; }
.hn-chart { flex: 1 1 0; min-width: 0; }
.hn-chart svg { width: 100%; height: auto; display: block; }
.hn-fun { flex: 0 0 262px; border-left: 1px solid #f4f5f8; padding-left: 12px; }
.hn-fun-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #606266; margin-bottom: 4px; }
.hn-fun-hd .chip { height: 20px; padding: 0 7px; font-size: 11px; }

.hn-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hn-mini { padding: 0 0 6px; }
.hn-mini-t { font-size: 13px; font-weight: 600; color: #303133; padding: 11px 14px 8px; }
.hn-tbl { width: 100%; }
.hn-tbl thead th { background: #f7f8fa; color: #909399; font-size: 11.5px; font-weight: 500; padding: 6px 10px; text-align: left; }
.hn-tbl tbody td { padding: 6px 10px; font-size: 12px; color: #606266; border-bottom: 1px solid #f7f8fa; }
.hn-tbl tbody tr:last-child td { border-bottom: none; }
.hn-tbl .num { text-align: right; font-variant-numeric: tabular-nums; color: #303133; }
.hn-foot { padding: 7px 14px 2px; font-size: 11.5px; color: #909399; }

.hn-cal { padding: 0 0 8px; }
.hn-cal-hd { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px 4px; font-size: 13px; color: #303133; }
.hn-cal-r { font-size: 11.5px; color: #909399; display: inline-flex; align-items: center; gap: 3px; }
.hn-cal-wk { display: grid; grid-template-columns: repeat(7, 1fr); padding: 4px 10px 2px; font-size: 11px; color: #a8abb2; text-align: center; }
.hn-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 2px 10px 6px; }
.hn-cal-g span { height: 26px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #606266; border-radius: 50%; }
.hn-cal-g span.on { background: #5b63f0; color: #fff; font-weight: 600; }
.hn-cal-note { text-align: center; font-size: 11.5px; color: #c0c4cc; padding-top: 2px; }
.hn-rank { padding-bottom: 4px; }

.rk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; font-size: 11px; background: #f0f1f4; color: #909399; }
.rk.t1 { background: #f56c6c; color: #fff; }
.rk.t2 { background: #e6a23c; color: #fff; }
.rk.t3 { background: #409eff; color: #fff; }

/* 分段（全部/我的/下属） */
.seg2 { display: inline-flex; background: #f2f3f6; border-radius: 4px; padding: 2px; }
.seg2 .sg { padding: 4px 14px; font-size: 12.5px; color: #606266; border-radius: 3px; cursor: pointer; }
.seg2 .sg.on { background: #fff; color: #303133; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* 到店周日期条 */
.wkbar { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.wkbar .wk { position: relative; min-width: 62px; text-align: center; padding: 6px 8px 7px; border: 1px solid #ebeef5; border-radius: 4px; font-size: 11.5px; color: #606266; cursor: pointer; background: #fff; }
.wkbar .wk b { font-weight: 500; }
.wkbar .wk i { position: absolute; top: -6px; right: -5px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: #f56c6c; color: #fff; font-size: 10px; font-style: normal; padding: 0 4px; }
.wkbar .wk.on { border-color: #5b63f0; color: #5b63f0; background: #f3f4ff; }

/* 表头开关组：整体换到第二行 */
table.tbl thead th .swg { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 400; color: #a8abb2; line-height: 1.6; }
table.tbl thead th .swg > span { display: inline; }
table.tbl thead th .swg .sw { width: 22px; height: 12px; margin-right: 3px; vertical-align: -2px; }
table.tbl thead th .swg > span + .sw { margin-left: 8px; }

/* ================= CRM 业务弹窗 ================= */
.fgrid .fg { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.fgrid .fg > span:first-child { width: 74px; flex: 0 0 74px; text-align: right; font-size: 12.5px; color: #606266; line-height: 30px; }
.fgrid .fg-full { grid-column: 1 / -1; }
.fgrid .fin { flex: 1; min-width: 0; height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; background: #fff; outline: none; }
.fgrid textarea.fin { height: 72px; padding: 7px 9px; resize: vertical; line-height: 1.6; }
.fgrid .fin:focus { border-color: #409eff; }
.fg-radio { display: flex; gap: 16px; align-items: center; line-height: 30px; font-size: 12.5px; color: #606266; }
.fg-radio label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.upload { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px dashed #dcdfe6; border-radius: 3px; font-size: 12.5px; color: #909399; cursor: pointer; }
.upload:hover { border-color: #409eff; color: #409eff; }

/* 分配红娘 */
.dlg.assign { width: 640px; }
.asg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: #606266; }
.asg-l { width: 76px; text-align: right; color: #606266; }
.asg-pick { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; min-width: 160px; border: 1px solid #dcdfe6; border-radius: 3px; color: #c0c4cc; }
.asg-sw { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #606266; cursor: pointer; }
.asg-g { display: flex; gap: 10px; padding: 8px 0 4px; border-top: 1px dashed #f0f1f4; }
.asg-gt { width: 76px; flex: 0 0 76px; text-align: right; font-size: 12.5px; color: #606266; padding-top: 6px; }
.asg-list { display: flex; flex-wrap: wrap; gap: 6px 10px; flex: 1; }
.asg-i { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid #dcdfe6; border-radius: 3px; font-size: 12.5px; color: #606266; cursor: pointer; }
.asg-i em { font-style: normal; color: #a8abb2; font-size: 11.5px; }
.asg-i input { display: none; }
.asg-i.on { border-color: #5b63f0; color: #5b63f0; background: #f3f4ff; }

/* 导入 */
.imp-box { border: 1px dashed #dcdfe6; border-radius: 4px; padding: 26px; text-align: center; color: #606266; font-size: 13px; background: #fafbfd; }
.imp-ic { font-size: 26px; color: #c0c4cc; line-height: 1; margin-bottom: 8px; }
.imp-box b { color: #409eff; cursor: pointer; }
.imp-tip { font-size: 11.5px; color: #a8abb2; margin-top: 8px; }
.imp-row { display: flex; align-items: center; gap: 16px; padding: 12px 2px 0; font-size: 12.5px; color: #606266; }
.imp-row label { display: inline-flex; align-items: center; gap: 5px; }

/* 驳回 */
.rj-tip { font-size: 12.5px; color: #909399; margin-bottom: 10px; }
.rj-i { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; color: #606266; }
.rj-in { flex: 1; height: 28px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 8px; font-size: 12.5px; }

/* 跟单抽屉 */
.drawer { width: 720px; }
.fw-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f4f5f8; }
.fw-user { flex: 1; min-width: 0; }
.fw-btns { display: flex; gap: 6px; }
.fw-grid { padding: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.fw-grid .fg > span:first-child { width: 66px; flex: 0 0 66px; }
.fw-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 74px; }
.ftag { font-size: 11.5px; color: #606266; background: #f4f5f8; border-radius: 3px; padding: 4px 9px; cursor: pointer; }
.ftag:hover { background: #eef1f7; color: #409eff; }
.fw-upload { padding-left: 74px; }
.fw-sub { padding-left: 74px; padding-top: 4px; }
.fw-tl { border-top: 1px solid #f4f5f8; margin-top: 12px; padding-top: 10px; }
.fw-tl-t { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 8px; }
.tl-i { display: flex; gap: 10px; padding: 6px 0; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: #c8cdd8; margin-top: 7px; flex: 0 0 7px; }
.tl-c { flex: 1; }
.tl-h { font-size: 12.5px; color: #303133; display: flex; justify-content: space-between; gap: 10px; }
.tl-h em { font-style: normal; color: #a8abb2; font-size: 11.5px; }
.tl-b { font-size: 12px; color: #909399; margin-top: 3px; line-height: 1.55; }

/* 抽屉内表单对齐 */
.fw-grid .fg { display: flex; align-items: center; gap: 8px; }
.fw-grid .fg > span:first-child { width: 66px; flex: 0 0 66px; text-align: right; font-size: 12.5px; color: #606266; }
.fw-grid .fg .fin { flex: 1; min-width: 0; height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; background: #fff; }
.fw-grid .fg textarea.fin { height: 78px; padding: 7px 9px; line-height: 1.6; resize: vertical; }
.asg-gt { width: 90px; flex: 0 0 90px; white-space: nowrap; font-size: 12px; }

/* 设置面板 */
.rf { padding: 4px 2px 8px; }
.rf-sec { padding: 12px 0 10px; border-bottom: 1px solid #f4f5f8; }
.rf-t { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 8px; }
.rf-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 12.5px; color: #606266; padding: 4px 0; }
.rsw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #606266; cursor: pointer; }
.rf-row .fin { height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; }
.rf-foot { padding-top: 14px; }

/* 用户列不被挤压 */
table.tbl td .uc { min-width: 186px; }
table.tbl td .ui { min-width: 0; }
table.tbl td .un, table.tbl td .um { white-space: nowrap; }

/* 含用户卡的列保底宽度 */
table.tbl td:has(.uc) { min-width: 200px; width: 200px; }
table.tbl td:has(.uc) .uc { min-width: 0; }

/* 列不换行，超宽走横向滚动（与线上一致） */
table.tbl tbody td { white-space: nowrap; }
table.tbl tbody td.wrap { white-space: normal; }

/* 文本列最小宽度，避免被 sticky 操作列吞掉 */
table.tbl tbody td { min-width: 66px; }
table.tbl tbody td.cb { min-width: 34px; }
table.tbl tbody td.op { min-width: 118px; }

/* ============================================================
   登录鉴权层
   ============================================================ */
html.lg-locked .app { visibility: hidden; }

/* 启动加载层 */
.boot { position: fixed; inset: 0; z-index: 300; background: #f2f1f6; display: flex; align-items: center; justify-content: center; transition: opacity .28s; }
.boot.hide { opacity: 0; pointer-events: none; }
.boot-in { text-align: center; }
.boot-logo { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, #f56c6c, #ff9a9e); color: #fff; font-size: 24px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(245, 108, 108, .35); }
.boot-sp { width: 24px; height: 24px; margin: 0 auto 12px; border: 2.5px solid #e3e5ec; border-top-color: #409eff; border-radius: 50%; animation: bootSpin .8s linear infinite; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-t { font-size: 12.5px; color: #909399; letter-spacing: 1px; }

/* 登录页外壳 */
.lg-wrap { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: #14161f; overflow: hidden; animation: lgIn .3s ease both; }
.lg-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 620px at 16% 10%, rgba(91, 99, 240, .34), transparent 62%), radial-gradient(780px 540px at 86% 90%, rgba(245, 108, 108, .24), transparent 62%), linear-gradient(135deg, #181a27 0%, #1e2130 46%, #13151d 100%); }
.lg-wrap::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%); mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%); }
.lg-wrap.ok { animation: lgOut .26s ease both; }
@keyframes lgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.015); } }

/* 卡片 */
.lg-card { position: relative; z-index: 2; width: 404px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; padding: 32px 32px 0; box-shadow: 0 26px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.lg-brand { display: flex; align-items: center; gap: 14px; }
.lg-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: linear-gradient(135deg, #f56c6c, #ff9a9e); color: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(245, 108, 108, .34); }
.lg-bt h1 { font-size: 19px; font-weight: 600; color: #1f2330; letter-spacing: .5px; }
.lg-bt p { font-size: 11.5px; color: #9aa0ae; margin-top: 3px; letter-spacing: .6px; }
.lg-hr { height: 1px; background: #eef0f5; margin: 20px -32px 22px; }

/* 表单 */
.lg-form { display: block; }
.lg-f { position: relative; margin-bottom: 14px; }
.lg-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #a8adb9; pointer-events: none; }
.lg-ic svg { width: 17px; height: 17px; display: block; }
.lg-f input { width: 100%; height: 44px; border: 1px solid #e2e5ec; background: #f7f8fa; border-radius: 7px; padding: 0 42px 0 38px; font-size: 13.5px; color: #303133; transition: .16s; }
.lg-f input::placeholder { color: #b3b8c4; }
.lg-f input:focus { background: #fff; border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.lg-f.bad input { border-color: #f56c6c; background: #fff8f8; }
.lg-eye { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: #b3b8c4; cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
.lg-eye:hover { color: #409eff; background: #f2f7ff; }
.lg-eye svg { width: 16px; height: 16px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 8px; font-size: 12.5px; }
.lg-ck { display: inline-flex; align-items: center; gap: 7px; color: #606266; cursor: pointer; user-select: none; }
.lg-ck input { display: none; }
.lg-ck i { width: 15px; height: 15px; border: 1px solid #dcdfe6; border-radius: 3px; position: relative; background: #fff; transition: .15s; }
.lg-ck input:checked + i { background: #409eff; border-color: #409eff; }
.lg-ck input:checked + i::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: 1.6px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg); }
.lg-fp { color: #909399; cursor: pointer; }
.lg-fp:hover { color: #409eff; }
.lg-err { height: 18px; font-size: 12px; line-height: 18px; color: #f56c6c; opacity: 0; transition: .15s; margin-bottom: 8px; }
.lg-err.on { opacity: 1; }
.lg-btn { width: 100%; height: 44px; border: 0; border-radius: 7px; cursor: pointer; color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: 3px; background: linear-gradient(90deg, #3d8bfd, #5aa9ff); box-shadow: 0 8px 20px rgba(64, 158, 255, .28); transition: .16s; }
.lg-btn:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(64, 158, 255, .36); }
.lg-btn:active:not(:disabled) { transform: translateY(1px); }
.lg-btn:disabled { cursor: not-allowed; opacity: .62; letter-spacing: 1px; }
.lg-foot { margin: 22px -32px 0; padding: 14px 32px 17px; border-top: 1px solid #eef0f5; background: #fafbfd; border-radius: 0 0 12px 12px; text-align: center; font-size: 11.5px; color: #a8adb9; line-height: 1.8; }
.lg-foot em { font-style: normal; color: #c0c4cc; }
@keyframes lgShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.lg-card.shake { animation: lgShake .5s; }
@media (max-width: 480px) {
  .lg-card { padding: 26px 22px 0; }
  .lg-hr { margin: 18px -22px 20px; }
  .lg-foot { margin: 20px -22px 0; padding: 12px 22px 16px; }
  .lg-bt h1 { font-size: 17px; }
}

/* 顶栏用户菜单 */
.tb-r .u { cursor: pointer; padding: 3px 5px; border-radius: 4px; transition: .15s; }
.tb-r .u:hover { background: #f4f7ff; }
.umsg { position: absolute; right: 0; top: 38px; width: 190px; background: #fff; border: 1px solid #eef0f5; border-radius: 8px; box-shadow: 0 12px 30px rgba(20, 25, 40, .15); padding: 6px; z-index: 120; display: none; }
.umsg.on { display: block; animation: umIn .14s ease; }
@keyframes umIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.umsg-h { padding: 9px 10px 10px; border-bottom: 1px solid #f2f3f6; margin-bottom: 5px; }
.umsg-h b { display: block; font-size: 13px; color: #303133; font-weight: 600; }
.umsg-h span { font-size: 11px; color: #a8abb2; }
.umsg a { display: block; padding: 8px 10px; border-radius: 5px; font-size: 12.5px; color: #606266; cursor: pointer; }
.umsg a:hover { background: #f4f7ff; color: #409eff; }
.umsg a.out:hover { background: #fff3f3; color: #f56c6c; }

/* 修改密码说明弹层 */
.pwd-tip-mask { position: fixed; inset: 0; z-index: 500; background: rgba(20, 22, 31, .55); display: grid; place-items: center; padding: 20px; }
.pwd-tip { width: 470px; max-width: 100%; background: #fff; border-radius: 10px; padding: 22px 24px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.pwd-tip h3 { font-size: 15px; color: #303133; margin-bottom: 10px; }
.pwd-tip p { font-size: 12.5px; color: #606266; line-height: 1.85; margin-bottom: 6px; }
.pwd-tip code { background: #f4f5f8; padding: 1px 5px; border-radius: 3px; font-size: 12px; color: #e6a23c; }
.pwd-tip pre { background: #1e2130; color: #c7d0e0; padding: 10px 12px; border-radius: 6px; font-size: 11.5px; overflow-x: auto; margin: 8px 0 10px; line-height: 1.7; }
.pwd-tip .tip-warn { color: #a8abb2; font-size: 11.5px; background: #fafbfd; border-left: 3px solid #e4e7ed; padding: 8px 10px; border-radius: 0 4px 4px 0; }
.pwd-ok { margin-top: 14px; width: 100%; height: 36px; border: 0; border-radius: 6px; background: #409eff; color: #fff; font-size: 13px; cursor: pointer; }
.pwd-ok:hover { background: #3d8bfd; }

/* ---------- 角色权限勾选弹窗 ---------- */
.pm-top { display: flex; align-items: center; gap: 10px; padding: 2px 0 16px; font-size: 12.5px; color: #606266; }
.pm-top .fin { height: 32px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 9px; font-size: 12.5px; color: #606266; }
.pm-hd { background: #f5f6fa; padding: 9px 12px; font-size: 12.5px; color: #606266; border-radius: 3px; margin-bottom: 4px; }
.pm-row { display: flex; gap: 14px; padding: 10px 8px; border-bottom: 1px solid #f4f5f8; align-items: flex-start; }
.pm-row:last-child { border-bottom: 0; }
.pm-mod { width: 96px; flex: 0 0 96px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #303133; cursor: pointer; }
.pm-fs { display: flex; flex-wrap: wrap; gap: 10px 6px; flex: 1; }
.pm-f { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #606266; width: 122px; cursor: pointer; }
.pm input[type=checkbox] { width: 14px; height: 14px; accent-color: #6b7bfa; }
.dlg.wide { width: 860px; }
.dlg.wide .dlg-b { padding: 16px 20px; }

/* ---------- 邀请有礼 · 奖励设置 ---------- */
.ir-opt { padding: 4px 0 12px; }
.ir-tip { font-size: 12px; color: #909399; line-height: 1.7; padding: 3px 0 0 24px; }
.ir-tip .lk { color: #409eff; cursor: pointer; }
.ir-note { font-size: 12px; color: #a8abb2; padding: 4px 0 10px; }

/* 弹窗内部高度分配（长内容可滚动，按钮不被压） */
.dlg > .dlg-h, .dlg > .dlg-f { flex: 0 0 auto; }
.dlg > .dlg-b { flex: 1 1 auto; min-height: 0; }
.dlg.wide .pm-f { width: 108px; }
.dlg.wide .pm-row { padding: 9px 8px; }
/* 广告缩略图占位 */
.thumb { display: inline-block; width: 56px; height: 34px; border-radius: 3px; background: linear-gradient(135deg, #eaf0fd, #dbe6fb); color: #6b7bfa; font-size: 10px; line-height: 34px; text-align: center; }
