/* 源启家政 · 管理后台样式（科技蓝 / 深色导航 / 浅色数据区） */
body.admin-body { background: var(--canvas); min-height: 100vh; }
.adm { display: flex; min-height: 100vh; }

/* ===== 侧边栏 ===== */
.adm-side {
  width: var(--admin-rail); flex: 0 0 var(--admin-rail); position: fixed; inset: 0 auto 0 0; z-index: 50;
  background: radial-gradient(600px 300px at 20% -5%, rgba(47,111,237,.35), transparent 60%), linear-gradient(180deg, #0B1220 0%, #0C1526 55%, #0A1120 100%);
  color: #97A3B8; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06);
}
.adm-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 42%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; position: relative; z-index: 1; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#3E7CFF,#12B5C9); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 18px rgba(47,111,237,.4); }
.brand .mark .ico { width: 20px; height: 20px; }
.brand-txt b { display: block; color: #fff; font-size: 15px; letter-spacing: .04em; }
.brand-txt span { font-size: 10px; color: #7C8AA3; letter-spacing: .06em; }
.adm-nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; position: relative; z-index: 1; }
.adm-nav::-webkit-scrollbar { width: 4px; }
.adm-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
.nav-group { margin-top: 14px; }
.nav-group > .g { font-size: 10px; color: #5F6C84; letter-spacing: .12em; padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; color: #A9B4C8; font-size: 13px; margin-bottom: 2px; transition: all var(--dur-2); position: relative; }
.nav-item .ico { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #E6ECF7; }
.nav-item.on { background: linear-gradient(90deg, rgba(47,111,237,.28), rgba(47,111,237,.08)); color: #fff; box-shadow: inset 0 0 0 1px rgba(91,146,255,.24); }
.nav-item.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #5B92FF; box-shadow: 0 0 12px #2F6FED; }
.nav-item .badge-n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(226,75,75,.18); color: #FF9B9B; font-size: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); }
.side-user { position: relative; z-index: 1; padding: 12px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; }
.side-user .avatar { width: 32px; height: 32px; font-size: 11px; }
.side-user b { color: #E6ECF7; font-size: 12px; display: block; }
.side-user span { font-size: 10px; color: #6E7B92; }

/* ===== 主区 ===== */
.adm-main { flex: 1; margin-left: var(--admin-rail); min-width: 0; display: flex; flex-direction: column; }
.adm-top { height: var(--admin-top); position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line); }
.crumb { font-size: 12px; color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.crumb b { color: var(--ink-800); font-weight: 600; font-size: 13px; }
.top-search { margin-left: auto; width: 260px; }
.top-search .input { height: 34px; font-size: 12px; background: var(--surface-2); border-color: transparent; }
.top-act { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-500); position: relative; }
.top-act:hover { background: var(--canvas-2); color: var(--ink-800); }
.top-act .dot-live { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; }
.demo-tag { font-size: 10px; color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-100); height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.adm-content { padding: 22px 24px 40px; max-width: 1560px; width: 100%; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pagehead h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.pagehead p { font-size: 12px; color: var(--ink-400); margin-top: 4px; }
.pagehead .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 卡片 ===== */
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,33,66,.03); }
.a-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.a-card-h h3 { font-size: 14px; font-weight: 600; }
.a-card-h .sub { font-size: 11px; color: var(--ink-400); font-weight: 400; margin-left: 8px; }
.a-card-b { padding: 16px 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-32 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.grid-23 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-32, .grid-23 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .adm-side { display: none; } .adm-main { margin-left: 0; } .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== KPI ===== */
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-label { font-size: 12px; color: var(--ink-400); }
.kpi .k-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.kpi .k-val { font-family: var(--font-num); font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.kpi .k-val small { font-size: 13px; font-weight: 500; color: var(--ink-400); margin-left: 3px; }
.kpi .k-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--ink-400); }
.kpi .up { color: var(--success); font-weight: 600; } .kpi .down { color: var(--danger); font-weight: 600; }
.kpi .k-spark { position: absolute; right: 12px; bottom: 10px; opacity: .7; }
.kpi::after { content: ""; position: absolute; right: -40px; top: -60px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(47,111,237,.06), transparent 70%); }

/* ===== 工具条 ===== */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { height: 34px; font-size: 12px; width: auto; min-width: 132px; }
.toolbar .spacer { flex: 1; }
.a-tabs { display: flex; gap: 2px; padding: 3px; background: var(--canvas-2); border-radius: 9px; overflow-x: auto; }
.a-tabs button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.a-tabs button.on { background: #fff; color: var(--ink-900); font-weight: 600; box-shadow: var(--sh-xs); }
.a-tabs button .n { font-family: var(--font-num); margin-left: 4px; color: var(--ink-400); }
.a-tabs button.on .n { color: var(--brand-600); }

/* ===== 表格 ===== */
.a-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.a-table th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-400); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table td { padding: 12px 14px; border-bottom: 1px solid #F0F3F9; color: var(--ink-700); vertical-align: middle; }
.a-table tbody tr { transition: background var(--dur-1); cursor: pointer; }
.a-table tbody tr:hover { background: #F8FAFF; }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table .tnum { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.a-table .mono { font-family: var(--font-num); font-size: 11.5px; color: var(--ink-500); letter-spacing: .01em; }
.a-table .strong { color: var(--ink-900); font-weight: 500; }
.a-table .sub { color: var(--ink-400); font-size: 11px; }
.a-table-wrap { overflow-x: auto; }
.a-table tfoot td { background: var(--surface-2); font-weight: 600; color: var(--ink-900); border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-400); }
.pager .pages { display: flex; gap: 4px; }
.pager .pg { min-width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-500); background: #fff; }
.pager .pg.on { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }

/* ===== 状态点 ===== */
.s-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.s-dot i { width: 6px; height: 6px; border-radius: 50%; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 11px; background: var(--canvas-2); color: var(--ink-600); white-space: nowrap; }
.chip.blue { background: var(--brand-50); color: var(--brand-600); }
.chip.green { background: var(--success-bg); color: var(--success); }
.chip.orange { background: var(--warning-bg); color: var(--warning); }
.chip.red { background: var(--danger-bg); color: var(--danger); }
.chip.cyan { background: var(--cyan-50); color: #0A93A4; }

/* ===== 抽屉 ===== */
.drawer-mask { position: fixed; inset: 0; background: rgba(11,19,34,.36); backdrop-filter: blur(2px); z-index: 80; animation: fadeIn .18s both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); background: #fff; z-index: 81; box-shadow: -20px 0 60px rgba(11,19,34,.18); display: flex; flex-direction: column; animation: drawerIn .26s var(--ease-out) both; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { font-size: 15px; font-weight: 650; }
.drawer-b { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 24px; }
.drawer-f { position: relative; z-index: 2; padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); flex: 0 0 auto; }

/* ===== 其它 ===== */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 12.5px; }
.kv + .kv { border-top: 1px dashed #F0F3F9; }
.kv .k { color: var(--ink-400); flex: 0 0 auto; }
.kv .v { color: var(--ink-800); text-align: right; }
.kv .v.num { font-family: var(--font-num); }
.sec-t { font-size: 11px; font-weight: 600; color: var(--ink-400); letter-spacing: .08em; margin: 18px 0 8px; text-transform: uppercase; }
.note { font-size: 11.5px; color: var(--ink-400); line-height: 1.7; }
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 12px; line-height: 1.65; }
.alert.blue { background: var(--brand-50); color: #17419C; border: 1px solid var(--brand-100); }
.alert.orange { background: var(--warning-bg); color: #8A5A00; border: 1px solid var(--warning-line); }
.alert.red { background: var(--danger-bg); color: #9B2C2C; border: 1px solid var(--danger-line); }
.alert.green { background: var(--success-bg); color: #0E6B45; border: 1px solid var(--success-line); }
.mini-kpi { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-kpi .ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand-600); flex: 0 0 auto; }
.mini-kpi b { display: block; font-family: var(--font-num); font-size: 18px; }
.mini-kpi span { font-size: 11px; color: var(--ink-400); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-500); }
.hbar-label { width: 84px; flex: 0 0 84px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--canvas-2); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 4px; animation: growX .5s var(--ease-out) both; }
.hbar-value { width: 64px; text-align: right; font-family: var(--font-num); color: var(--ink-800); }
@keyframes growX { from { transform: scaleX(0); transform-origin: left; } to { transform: none; } }
.bar-anim { transform-origin: bottom; animation: growY .55s var(--ease-out) both; }
@keyframes growY { from { transform: scaleY(0); } to { transform: none; } }
.donut-wrap { display: flex; align-items: center; justify-content: center; }
.legend-list { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.legend-list .lg { display: flex; align-items: center; gap: 8px; }
.legend-list i { width: 8px; height: 8px; border-radius: 2px; }
.legend-list .v { margin-left: auto; font-family: var(--font-num); color: var(--ink-800); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.matrix th { background: var(--surface-2); font-weight: 500; color: var(--ink-500); font-size: 11.5px; }
table.matrix td.c { text-align: center; color: var(--ink-500); }
table.matrix td.y { text-align: center; color: var(--success); }
table.matrix td.n { text-align: center; color: var(--ink-300); }
.timeline-mini { position: relative; padding-left: 18px; }
.timeline-mini::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-mini .ti { position: relative; padding-bottom: 14px; }
.timeline-mini .ti:last-child { padding-bottom: 0; }
.timeline-mini .ti::before { content: ""; position: absolute; left: -18px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-400); }
.timeline-mini .ti .t { font-size: 12px; color: var(--ink-800); }
.timeline-mini .ti .d { font-size: 11px; color: var(--ink-400); margin-top: 2px; }
.timeline-mini .ti .tm { font-size: 10.5px; color: var(--ink-300); font-family: var(--font-num); margin-top: 2px; }

/* ===== 登录 ===== */
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 500px at 15% 10%, #E3EDFF, transparent 55%), radial-gradient(700px 400px at 90% 90%, #E3FAFD, transparent 55%), #F3F6FC; }
.login-box { width: 380px; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 24px 60px rgba(16,33,66,.12); }
.login-box .brand { padding: 0 0 18px; }
.login-box .brand-txt b { color: var(--ink-900); }
.login-box .brand-txt span { color: var(--ink-400); }

/* ===== HTML 漏斗 ===== */
.fnl { display: flex; flex-direction: column; gap: 10px; }
.fnl-row { display: flex; align-items: center; gap: 10px; }
.fnl-label { width: 64px; flex: 0 0 64px; font-size: 11.5px; color: var(--ink-500); }
.fnl-track { flex: 1; height: 26px; border-radius: 7px; background: var(--surface-2); position: relative; overflow: hidden; border: 1px solid #F0F3F9; }
.fnl-track i { display: block; height: 100%; border-radius: 6px; animation: growX .6s var(--ease-out) both; }
.fnl-val { position: absolute; right: 8px; top: 0; line-height: 26px; font-family: var(--font-num); font-size: 11px; color: var(--ink-800); font-weight: 600; }
.fnl-conv { width: 44px; flex: 0 0 44px; text-align: right; font-family: var(--font-num); font-size: 10.5px; color: var(--ink-400); }
