﻿/* ==========================================================================
   PMS 惠数电力用电管理系统 · 界面样式
   参照 TCMR 六区布局：banner / 菜单条 / 左树 / 页签工作区
   ========================================================================== */
:root {
  --navy: #17365d;
  --navy-2: #1f4f86;
  --blue: #1e62a8;
  --blue-l: #eaf2fb;
  --line: #dbe4ef;
  --ink: #26303c;
  --muted: #7b8899;
  --bg: #f2f5f9;
  --ok: #1f8a5f;
  --warn: #c8801a;
  --danger: #c0392b;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(21, 45, 78, .08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 13px/1.6 "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
input, select, textarea, button { font-family: inherit; font-size: 13px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c3cedd; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------- 框架布局 */
.shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.banner {
  height: 56px; flex: 0 0 56px; display: flex; align-items: center; padding: 0 18px;
  background: linear-gradient(100deg, #123055 0%, #1b4a80 55%, #24608f 100%);
  color: #fff; box-shadow: 0 2px 8px rgba(12, 32, 56, .25); z-index: 20; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 26px; height: 26px; }
.brand b { font-size: 17px; letter-spacing: .5px; }
.brand span { font-size: 12px; opacity: .68; margin-left: 6px; }
.modules { margin-left: auto; display: flex; gap: 4px; }
.module {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: var(--radius); color: #dce8f5; cursor: pointer; font-size: 13px;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.module:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.module.active { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .22); }
.module.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0px; height: 2px; background: #f0b429;
}

.menubar {
  height: 38px; flex: 0 0 38px; display: flex; align-items: center; padding: 0 12px;
  background: #e9f0f8; border-bottom: 1px solid var(--line); position: relative; z-index: 15;
}
.quick { display: flex; align-items: center; gap: 6px; color: #33506f; font-size: 13px; padding-right: 12px; border-right: 1px solid #cfdcea; }
.menu { display: flex; align-items: stretch; height: 38px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; line-height: 38px; padding: 0 15px; color: #2b445f; font-size: 13px;
}
.menu > li > a:hover { color: var(--blue); background: #f4f8fd; }
.menu > li.parent > ul {
  display: none; position: absolute; top: 38px; left: 0; min-width: 168px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 20px rgba(20, 45, 75, .12); list-style: none; margin: 0; z-index: 30;
}
.menu > li.parent:hover > ul { display: block; }
.menu > li.parent > ul > li > a {
  display: block; padding: 7px 10px; border-radius: 3px; color: #33485f; white-space: nowrap;
}
.menu > li.parent > ul > li > a:hover { background: var(--blue-l); color: var(--blue); }
.menu .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #9fb3c9; margin-right: 7px; vertical-align: middle; }
.userbar { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #45607d; font-size: 12.5px; }
.userbar a { color: #45607d; }
.userbar a:hover { color: var(--blue); }
.userbar .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: #cfe0f2; color: #1e4f7d;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}

.work { flex: 1; display: flex; min-height: 0; }

/* 左侧采集点树 */
.left {
  width: 280px; flex: 0 0 280px; background: #fbfcfe; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; transition: margin-left .18s ease;
}
.left.collapsed { margin-left: -280px; }
.left .panel-title {
  height: 34px; display: flex; align-items: center; padding: 0 10px; font-weight: 700; color: var(--navy);
  background: #e4edf8; border-bottom: 1px solid var(--line); font-size: 13px;
}
.left .panel-title .toggle { margin-left: auto; cursor: pointer; color: #5b7899; font-weight: 400; }
.tree-search { padding: 8px; border-bottom: 1px dashed #e3eaf3; }
.tree-search input {
  width: 100%; height: 28px; padding: 0 8px; border: 1px solid #cfdbe9; border-radius: 3px; background: #fff;
}
.tree-filter { display: flex; gap: 8px; padding: 6px 10px; color: #58708c; font-size: 12px; border-bottom: 1px solid #eef3f9; flex-wrap: wrap; }
.tree-filter label { display: flex; align-items: center; gap: 3px; cursor: pointer; }
.tree { flex: 1; overflow: auto; padding: 6px 4px 16px; }
.tree ul { list-style: none; margin: 0; padding-left: 14px; }
.tree > ul { padding-left: 4px; }
.tree li > .node {
  display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 3px; cursor: pointer;
  color: #33485f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tree li > .node:hover { background: #eef4fb; }
.tree li > .node.active { background: #dcebfa; color: #14406c; font-weight: 700; }
.tree .caret { width: 12px; text-align: center; color: #8aa1b8; font-size: 10px; }
.tree .ico { width: 13px; height: 13px; }
.tree li.closed > ul { display: none; }

/* 页签区 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #eef2f7; }
.tabs {
  height: 36px; flex: 0 0 36px; display: flex; align-items: flex-end; gap: 3px; padding: 0 8px;
  background: linear-gradient(#eaf0f7, #dfe8f2); border-bottom: 1px solid var(--line); overflow-x: auto;
}
.tab {
  display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 12px; cursor: pointer;
  background: #d9e4f0; color: #3a5573; border: 1px solid #ccd9e8; border-bottom: 0;
  border-radius: 4px 4px 0 0; font-size: 12.5px; white-space: nowrap;
}
.tab.active { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 -2px 0 var(--blue) inset; }
.tab .x { color: #8b9cb0; font-size: 13px; padding: 0 2px; border-radius: 2px; }
.tab .x:hover { background: #f3d6d2; color: var(--danger); }
.frames { flex: 1; position: relative; min-height: 0; }
.frames iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.frames iframe.hidden { display: none; }

/* --------------------------------------------------------------- 页面内 */
.page { padding: 10px 12px 14px; }
.page-head { display: flex; align-items: center; margin-bottom: 10px; }
.page-head h3 { font-size: 15px; color: var(--navy); }
.page-head .crumbs { margin-left: auto; color: var(--muted); font-size: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 10px; }

.query { padding: 10px 12px 4px; }
.query .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.query .field { display: flex; align-items: center; gap: 6px; }
.query label { color: #4d627a; font-size: 12.5px; white-space: nowrap; }
.query input[type=text], .query input[type=date], .query select {
  height: 28px; padding: 0 8px; border: 1px solid #cfdbe9; border-radius: 3px; background: #fff; color: var(--ink);
  min-width: 130px;
}
.query input:focus, .query select:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(30, 98, 168, .12); }
.query .actions { margin-left: auto; display: flex; gap: 8px; padding-bottom: 6px; }

.btn {
  height: 28px; padding: 0 14px; border-radius: 3px; border: 1px solid #c7d5e5; background: #fff; color: #34506c;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.btn:hover { border-color: #9db9d8; color: var(--blue); background: #f7fbff; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1a569a; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn.sm { height: 24px; padding: 0 9px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef2f8; }
.toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.toolbar .right { margin-left: auto; color: var(--muted); font-size: 12px; }

/* 数据表格（jqGrid 风格） */
.grid-wrap { overflow: auto; max-height: calc(100vh - 250px); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.grid thead th {
  height: 32px; position: sticky; top: 0; z-index: 2; background: #e8f0f9; color: #22456b; font-weight: 700;
  text-align: left; padding: 7px 9px; border-bottom: 1px solid #cfdcea; border-right: 1px solid #e4ecf5;
  white-space: nowrap; cursor: pointer; user-select: none;
}
table.grid thead th:hover { background: #dde9f6; }
table.grid thead th .arrow { color: #8fa9c4; font-size: 10px; margin-left: 3px; }
table.grid tbody td {
  padding: 6px 9px; height: 32px; vertical-align: middle; border-bottom: 1px solid #f0f4f9; border-right: 1px solid #f6f9fc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
table.grid tbody tr:nth-child(even) { background: #fafcfe; }
table.grid tbody tr:hover { background: #eef6ff; }
table.grid tbody tr.selected { background: #dcecff; }
table.grid td.center { text-align: center; }
table.grid td.right { text-align: right; font-variant-numeric: tabular-nums; }
table.grid .empty { text-align: center; color: var(--muted); padding: 28px 0; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; line-height: 18px; }
.tag.on { background: #e3f5ec; color: var(--ok); }
.tag.off { background: #f1f3f6; color: #7b8899; }
.tag.warn { background: #fdf1de; color: var(--warn); }
.tag.err { background: #fbe6e3; color: var(--danger); }
.tag.info { background: #e6f0fb; color: var(--blue); }

.pager { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #55697f; font-size: 12.5px; border-top: 1px solid #eef2f8; }
.pager .pages { display: flex; gap: 3px; margin-left: auto; }
.pager .pg {
  min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid #d3dfec; background: #fff; border-radius: 3px;
  cursor: pointer; color: #40586f;
}
.pager .pg.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager select { height: 26px; border: 1px solid #d3dfec; border-radius: 3px; background: #fff; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 30, 50, .45); display: none; z-index: 100; }
.modal-mask.show { display: block; }
.modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 640px; max-width: 94vw; max-height: 86vh; background: #fff; border-radius: 6px;
  box-shadow: 0 18px 50px rgba(10, 28, 50, .35); display: flex; flex-direction: column; overflow: hidden;
}
.modal .m-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal .m-head b { color: var(--navy); font-size: 14px; }
.modal .m-head .x { margin-left: auto; cursor: pointer; color: #93a4b8; font-size: 16px; }
.modal .m-body { padding: 14px 16px; overflow: auto; }
.modal .m-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafcfe; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.form .full { grid-column: 1 / -1; }
.form .f { display: flex; flex-direction: column; gap: 4px; }
.form label { color: #4d627a; font-size: 12.5px; }
.form label .req { color: var(--danger); margin-left: 3px; }
.form input, .form select, .form textarea {
  height: 30px; padding: 0 8px; border: 1px solid #cfdbe9; border-radius: 3px; background: #fff;
}
.form textarea { height: 64px; padding: 6px 8px; resize: vertical; }
.form .hint { color: var(--muted); font-size: 11.5px; }

/* 提示 */
#toast { position: fixed; top: 66px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast {
  min-width: 200px; max-width: 380px; padding: 9px 14px; border-radius: 4px; background: #26364a; color: #fff;
  box-shadow: 0 6px 20px rgba(15, 30, 50, .25); font-size: 12.5px; animation: slideIn .18s ease;
}
.toast.ok { background: #1f7a57; }
.toast.err { background: #a93226; }
.toast.warn { background: #a86412; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* 指标卡 / 仪表盘 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--blue-l); }
.kpi .k-label { color: #5c7288; font-size: 12.5px; }
.kpi .k-value { font-size: 26px; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-value small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.kpi .k-foot { margin-top: 6px; color: var(--muted); font-size: 12px; }
.kpi.accent .k-value { color: var(--blue); }
.kpi.warn .k-value { color: var(--warn); }
.kpi.danger .k-value { color: var(--danger); }

.panels { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.panel .p-head { padding: 10px 14px; border-bottom: 1px solid #eef2f8; display: flex; align-items: center; }
.panel .p-head b { color: var(--navy); font-size: 13.5px; }
.panel .p-head .sub { margin-left: auto; color: var(--muted); font-size: 12px; }
.panel .p-body { padding: 12px 14px; }

.list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.list th { text-align: left; color: #5c7288; font-weight: 400; padding: 6px 8px; border-bottom: 1px solid #eef2f8; }
.list td { padding: 6px 8px; border-bottom: 1px solid #f5f8fb; }
.list tr:last-child td { border-bottom: 0; }

.chart { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* 登录页 */
.login-body {
  margin: 0; height: 100vh; display: flex; align-items: center; justify-content: flex-end;
  background: radial-gradient(1200px 600px at 15% 10%, #2c6ba8 0%, #14375f 45%, #0b1f38 100%);
  padding-right: 12%; overflow: hidden; position: relative;
}
.login-body::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(600px) rotateX(58deg) scale(1.6) translateY(12%);
  transform-origin: bottom;
}
.login-hero {
  position: absolute; left: 7%; top: 50%; transform: translateY(-50%);
  max-width: 520px; color: #fff; z-index: 2;
}
.login-hero .kicker { font-size: 12px; letter-spacing: 3px; color: #8fc0ea; text-transform: uppercase; }
.login-hero h2 { font-size: 34px; line-height: 1.45; margin: 14px 0 16px; font-weight: 700; letter-spacing: 1px; }
.login-hero p { color: rgba(226, 238, 250, .8); font-size: 13.5px; line-height: 1.9; margin: 0 0 22px; max-width: 440px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 430px; }
.hero-points li { position: relative; padding-left: 18px; color: #cfe2f5; font-size: 13px; }
.hero-points li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: #f0b429; box-shadow: 0 0 0 3px rgba(240, 180, 41, .18);
}
@media (max-width: 1100px) { .login-hero { display: none; } }

.login-card {
  position: relative; width: 400px; padding: 34px 34px 28px; border-radius: 10px;
  background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px rgba(4, 16, 32, .5);
}
.login-card h1 { font-size: 21px; color: var(--navy); letter-spacing: 1px; }
.login-card .sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 22px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; color: #4d627a; font-size: 12.5px; margin-bottom: 5px; }
.login-field input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #cfdbe9; border-radius: 4px; background: #fbfdff;
}
.login-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 98, 168, .12); }
.login-btn {
  width: 100%; height: 40px; margin-top: 8px; border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, #1e62a8, #2b7bc9); color: #fff; font-size: 14px; letter-spacing: 2px;
}
.login-btn:hover { filter: brightness(1.06); }
.login-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 10px; }
.login-foot { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .55); font-size: 12px; }
.login-tips { margin-top: 14px; color: #93a4b8; font-size: 12px; line-height: 1.7; }

/* 空状态 */
.empty-state { padding: 40px; text-align: center; color: var(--muted); }

/* 数据大屏入口 */
.module.screen {
  border-color: rgba(240, 180, 41, .45); color: #ffd97a; background: rgba(240, 180, 41, .1);
}
.module.screen:hover { background: rgba(240, 180, 41, .2); color: #fff3cf; }
.login-hint { margin-top: 10px; color: #8b9cb0; font-size: 12px; line-height: 1.6; }

/* 弹窗复选框（如现金缴费） */
.form .chk {
  display: flex; align-items: center; gap: 8px; height: 30px; cursor: pointer;
  color: #33485f; font-size: 13px;
}
.form .chk input[type=checkbox] { width: 16px; height: 16px; accent-color: #1e62a8; cursor: pointer; }
.form .chk + .hint { margin-top: 2px; }
/* ==========================================================================
   移动端适配（≤ 900px）：抽屉式左树、单列表单、横向滚动表格
   ========================================================================== */
.m-nav { display: none; }
.left-mask {
  display: none; position: fixed; inset: 0; background: rgba(10, 24, 44, .45);
  z-index: 55; opacity: 0; transition: opacity .2s;
}
.left-mask.show { display: block; opacity: 1; }

@media (max-width: 900px) {
  .shell { height: 100dvh; }

  /* 顶栏 */
  .banner { height: auto; min-height: 52px; flex: 0 0 auto; flex-wrap: wrap; padding: 6px 10px; gap: 4px 8px; }
  .brand b { font-size: 15px; }
  .brand span { display: none; }
  .brand .logo { width: 20px; height: 20px; }
  .m-nav {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 28px; margin-right: 6px; border-radius: 4px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px;
  }
  .modules {
    order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .modules::-webkit-scrollbar { height: 0; }
  .module { flex: 0 0 auto; padding: 5px 9px; font-size: 12px; height: 28px; }
  .module.screen { order: -1; }

  /* 菜单条 */
  .menubar { overflow-x: auto; padding: 0 8px; -webkit-overflow-scrolling: touch; }
  .menubar::-webkit-scrollbar { height: 0; }
  .quick { display: none; }
  .menu { margin-left: 0; }
  .menu > li > a { padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
  .userbar { display: none; }

  /* 左侧树改抽屉 */
  .left {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: 82vw; max-width: 320px;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 4px 0 24px rgba(10, 24, 44, .25);
  }
  .left.open { transform: none; }
  .left.collapsed { margin-left: 0; }
  .main { width: 100%; }

  /* 页签与页面 */
  .tabs { overflow-x: auto; padding: 0 6px; }
  .tabs::-webkit-scrollbar { height: 0; }
  .tab { flex: 0 0 auto; font-size: 12px; padding: 0 10px; }
  .page { padding: 8px 8px 14px; }
  .page-head h3 { font-size: 14px; }
  .page-head .crumbs { display: none; }

  /* 查询区 / 工具栏：单列堆叠 */
  .query { padding: 10px; }
  .query .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .query .field { width: 100%; }
  .query .field label { flex: 0 0 72px; }
  .query input[type=text], .query input[type=date], .query select { flex: 1; width: 100%; min-width: 0; }
  .query .actions { margin-left: 0; justify-content: flex-end; }
  .toolbar { flex-wrap: wrap; gap: 6px; }
  .toolbar .right { width: 100%; margin-left: 0; }

  /* 表格横向滚动 */
  .grid-wrap { max-height: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.grid { min-width: 760px; }
  .pager { flex-wrap: wrap; gap: 6px; }
  .pager .pages { margin-left: 0; }

  /* 弹窗与表单 */
  .modal { width: 94vw !important; max-height: 88vh; }
  .modal .m-body { padding: 12px; }
  .form { grid-template-columns: 1fr; gap: 10px; }

  /* 首页看板 */
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .k-value { font-size: 20px; }
  .panels { grid-template-columns: 1fr; gap: 10px; }

  /* 登录页 */
  .login-body { justify-content: center; padding: 16px; }
  .login-hero { display: none; }
  .login-card { width: 100%; max-width: 420px; padding: 24px 20px; }
  .login-card h1 { font-size: 18px; }
}
/* 导入弹窗 */
.imp-tip { font-size: 12.5px; color: #5b6b7f; line-height: 1.8; background: #f6f9fd; border: 1px solid #e3ebf5; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.imp-tip code { background: #eaf2fb; color: #1e62a8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.imp-tip .imp-tpl { display: inline-block; margin-left: 8px; color: #1e62a8; text-decoration: underline; }
.imp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.imp-row label { flex: 0 0 84px; color: #5b6b7f; }
.imp-row input[type=file] { flex: 1; font-size: 12.5px; }
.imp-row select { flex: 1; height: 34px; border: 1px solid #dbe3ee; border-radius: 6px; padding: 0 8px; font-size: 13px; }
.imp-preview { font-size: 12.5px; color: #5b6b7f; padding: 8px 10px; background: #fafcff; border: 1px dashed #dbe3ee; border-radius: 6px; }
.imp-preview b { color: #1e62a8; }
.imp-result { margin-top: 12px; font-size: 13px; }
.imp-sum { padding: 8px 10px; background: #f2f9f4; border: 1px solid #cfe9d8; border-radius: 6px; color: #2c6b45; }
.imp-sum b { margin: 0 2px; }
.imp-sum .ok { color: #12a15c; }
.imp-sum .bad { color: #d24334; }
.imp-fail { margin-top: 10px; max-height: 220px; overflow: auto; }
.imp-fail .h { font-size: 12.5px; color: #7a8797; margin-bottom: 6px; }
.imp-fail table.grid { min-width: 0; width: 100%; font-size: 12.5px; }
.imp-fail th, .imp-fail td { padding: 6px 8px; }