/* ============================================================
   VPP-OS 虚拟电厂操作系统 · 视觉样式
   ============================================================ */
:root {
  --navy: #0d1f3a;
  --navy-2: #142c50;
  --navy-3: #1c3a66;
  --primary: #1677ff;
  --primary-d: #0b5fd0;
  --primary-l: #e8f1ff;
  --green: #00b96b;
  --orange: #fa8c16;
  --red: #f5222d;
  --purple: #722ed1;
  --cyan: #13c2c2;
  --bg: #f2f5fa;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7c93;
  --muted-2: #93a1b3;
  --border: #e6ebf2;
  --border-2: #eef2f7;
  --shadow: 0 1px 2px rgba(16, 37, 66, .04), 0 8px 24px rgba(16, 37, 66, .06);
  --radius: 12px;
  --sidebar-w: 258px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d4e2; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab9cb; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }

/* ---------------- 通用控件 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; font-size: 13px;
  transition: all .16s; white-space: nowrap;
}
.btn:hover { border-color: #c5d2e3; background: #fafcff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-danger { color: var(--red); border-color: #ffd6d6; background: #fff5f5; }
.btn-danger:hover { background: #ffecec; border-color: #ffbcbc; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f2f6fc; color: var(--text); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.input, .select, textarea.input {
  height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); outline: none; transition: border-color .16s, box-shadow .16s;
  width: 100%;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}
textarea.input { height: auto; padding: 8px 11px; resize: vertical; min-height: 66px; line-height: 1.6; }
.input[readonly] { background: #f7f9fc; color: var(--muted); }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11px;
  background: var(--primary-l); color: var(--primary); line-height: 18px;
}
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; background: #f1f4f9; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------------- 登录 / 注册 / 找回 ---------------- */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-brand {
  flex: 1.1; position: relative; overflow: hidden; padding: 56px 60px; color: #fff;
  background: radial-gradient(1200px 600px at 15% 10%, #1b3f78 0%, #0d1f3a 55%, #081426 100%);
  display: flex; flex-direction: column;
}
.auth-brand:before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent);
}
.auth-brand .brand-row { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-logo {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f8bff, #00d0a0); font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 22px rgba(47, 139, 255, .35);
}
.auth-brand h1 { font-size: 21px; margin: 0; letter-spacing: .5px; }
.auth-brand .sub { font-size: 12px; color: #9fb6d6; margin-top: 3px; letter-spacing: 2px; }
.auth-brand .hero { margin-top: auto; position: relative; }
.auth-brand .hero h2 { font-size: 32px; line-height: 1.35; margin: 0 0 16px; font-weight: 700; }
.auth-brand .hero p { color: #b8c9e2; font-size: 14px; line-height: 1.9; max-width: 460px; margin: 0; }
.auth-brand .features { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.auth-brand .features div { font-size: 12px; color: #9fb6d6; }
.auth-brand .features b { display: block; font-size: 22px; color: #fff; margin-bottom: 4px; font-weight: 700; }

.auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h3 { font-size: 24px; margin: 0 0 6px; }
.auth-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tabs a { padding: 0 0 12px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.auth-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #40506a; margin-bottom: 7px; }
.field .req { color: var(--red); margin-left: 3px; }
.field .desc { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.input-icon { position: relative; }
.input-icon .input { padding-left: 38px; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa7b8; }
.sms-row { display: flex; gap: 10px; }
.sms-row .btn { height: 34px; flex: 0 0 118px; }

.pwd-meter { display: flex; gap: 5px; margin-top: 8px; }
.pwd-meter i { height: 4px; flex: 1; border-radius: 3px; background: #edf1f7; transition: background .2s; }
.pwd-meter i.on1 { background: #ff4d4f; } .pwd-meter i.on2 { background: #fa8c16; }
.pwd-meter i.on3 { background: #52c41a; } .pwd-meter i.on4 { background: #00b96b; }

.auth-submit { width: 100%; height: 42px; font-size: 15px; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 14px; color: var(--muted); }
.auth-links a { color: var(--primary); cursor: pointer; }
.auth-links a:hover { text-decoration: underline; }
.auth-err { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-note { margin-top: 18px; padding: 10px 12px; background: #f7f9fd; border-radius: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; }
.checkbox-row input { margin-top: 3px; }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; color: var(--muted-2); }
.steps .st { display: flex; align-items: center; gap: 6px; }
.steps .num { width: 20px; height: 20px; border-radius: 50%; background: #edf1f7; display: grid; place-items: center; font-size: 11px; }
.steps .st.active { color: var(--primary); }
.steps .st.active .num { background: var(--primary); color: #fff; }
.steps .line { flex: 1; height: 1px; background: var(--border); }

/* ---------------- 应用框架 ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--navy); color: #c7d6ea;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sb-head { padding: 18px 18px 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sb-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2f8bff, #00d0a0); font-weight: 800; font-size: 14px; color: #fff; }
.sb-title b { display: block; font-size: 14px; color: #fff; letter-spacing: .3px; }
.sb-title span { font-size: 10px; color: #7d95b8; letter-spacing: 1.6px; }
.sb-search { padding: 12px 14px 8px; }
.sb-search input {
  width: 100%; height: 32px; border-radius: 7px; border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06); color: #e6eefb; padding: 0 10px; outline: none; font-size: 12.5px;
}
.sb-search input::placeholder { color: #7d95b8; }
.sb-search input:focus { border-color: #3d7dd8; background: rgba(255,255,255,.1); }
.nav-scroll { overflow-y: auto; padding: 4px 10px 22px; flex: 1; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: #b9c9df; cursor: pointer; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(47,139,255,.28), rgba(47,139,255,.06)); color: #fff; font-weight: 600; }
.nav-item.active:before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: #4ea1ff; }
.nav-item .ic { width: 15px; height: 15px; flex: 0 0 15px; opacity: .8; }
.nav-item .code { margin-left: auto; font-size: 10px; color: #6f88ab; font-weight: 400; }
.nav-item.active .code { color: #8fb8ee; }
.sec-title {
  display: flex; align-items: center; gap: 7px; padding: 11px 10px 6px; font-size: 11.5px;
  color: #7791b5; letter-spacing: .4px; cursor: pointer; user-select: none;
}
.sec-title:hover { color: #a9c1e0; }
.sec-title .caret { transition: transform .18s; font-size: 9px; }
.sec-title.collapsed .caret { transform: rotate(-90deg); }
.grp-title { padding: 7px 10px 2px; font-size: 10.5px; color: #5f789c; letter-spacing: .3px; }
.sec-body.collapsed { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.tb-menu { display: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb b { color: var(--text); font-size: 15px; }
.crumb .sep { color: #c6d1e0; }
.crumb .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tb-clock { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.tb-btn:hover { background: #f7f9fd; color: var(--text); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 30px; cursor: pointer; }
.user-chip:hover { background: #f5f8fd; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #1677ff, #13c2c2); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.user-chip .nm { font-size: 13px; line-height: 1.2; }
.user-chip .nm small { display: block; color: var(--muted); font-size: 10.5px; }
.menu-pop {
  position: absolute; right: 18px; top: 54px; width: 190px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
.menu-pop a { display: block; padding: 9px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; color: #3b4a60; }
.menu-pop a:hover { background: #f4f8ff; color: var(--primary); }
.menu-pop .split { height: 1px; background: var(--border-2); margin: 5px 0; }

.content { padding: 20px 22px 40px; flex: 1; }

/* ---------------- 卡片 ---------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 15px 18px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 12px; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }

/* 页面头 */
.page-head { margin-bottom: 16px; }
.page-head h2 { margin: 0 0 6px; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.page-head .desc { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 1080px; }
.page-head .desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-more { color: var(--primary); cursor: pointer; font-size: 12px; }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi-card:after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--k, #1677ff); opacity: .06; }
.kpi-card .lab { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi-card .val { font-size: 27px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-card .val small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi-card .hint { font-size: 11px; color: var(--muted-2); }

.charts-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 16px; }
.charts-grid.two { grid-template-columns: 1fr 1fr; }
.chart-canvas { width: 100%; height: 280px; display: block; }
.chart-canvas.sm { height: 220px; }

/* ---------------- 表格 ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.toolbar .grow { margin-left: auto; }
.toolbar .search { width: 220px; }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-2); }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; padding: 11px 14px; background: #f7f9fd; color: #5b6b7c;
  font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tb td { padding: 11px 14px; border-bottom: 1px solid var(--border-2); color: #33415c; vertical-align: middle; }
table.tb tr:last-child td { border-bottom: none; }
table.tb tbody tr:hover td { background: #fafcff; }
table.tb .num { font-variant-numeric: tabular-nums; }
table.tb .muted { color: var(--muted-2); }
table.tb .ops { white-space: nowrap; }
table.tb .ops a { color: var(--primary); cursor: pointer; font-size: 12.5px; margin-right: 12px; }
table.tb .ops a.del { color: var(--red); }
table.tb .ops a:hover { text-decoration: underline; }
.empty-row { text-align: center; color: var(--muted-2); padding: 46px 0 !important; }

.bar-track { height: 6px; background: #eef2f8; border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar-track i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 13px 2px 0; font-size: 12px; color: var(--muted); }
.pager button { min-width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--muted); }
.pager button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------- 弹窗表单 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(13, 26, 45, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 46px 20px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 760px; box-shadow: 0 24px 60px rgba(10, 25, 50, .25); animation: pop .18s ease; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { padding: 17px 22px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.modal-body { padding: 20px 22px; max-height: 64vh; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border-2); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 14px; }
.form-grid .field label { font-weight: 500; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 4px; }
.opt-list label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400 !important; color: #3b4a60; margin: 0; cursor: pointer; font-size: 13px; }
.curve24 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.curve24 input { height: 30px; padding: 0 6px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; width: 100%; }
.curve24 .ch { grid-column: 1 / -1; font-size: 11px; color: var(--muted-2); }

/* ---------------- 协议中心 ---------------- */
.proto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.proto-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.proto-top { padding: 16px 18px; background: linear-gradient(135deg, #0f2b52, #163c6e); color: #fff; }
.proto-top h3 { margin: 0 0 5px; font-size: 15px; }
.proto-top .cp { font-size: 11.5px; color: #a9c3e6; }
.proto-body { padding: 14px 18px 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 11px; padding: 2px 9px; border-radius: 20px; background: #eef4ff; color: #2f6fd0; }
.chip.g { background: #eafaf3; color: #0a8f56; }
.chip.o { background: #fff5e9; color: #c56b00; }
.perf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.perf-grid div { background: #f7f9fd; border-radius: 8px; padding: 8px 11px; font-size: 11.5px; color: var(--muted); }
.perf-grid b { display: block; color: var(--text); font-size: 13px; margin-top: 2px; }
.ep { border: 1px solid var(--border-2); border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.ep-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: #fbfcfe; cursor: pointer; }
.ep-head .m { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #e8f1ff; color: #1677ff; }
.ep-head .m.get { background: #eafaf3; color: #0a8f56; }
.ep-head .m.sub { background: #fff5e9; color: #c56b00; }
.ep-head .p { font-family: Consolas, Menlo, monospace; font-size: 11.5px; color: #3b4a60; }
.ep-head .nm { margin-left: auto; font-size: 11px; color: var(--muted); }
.ep-body { padding: 12px; border-top: 1px solid var(--border-2); }
.ep-body .fld { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.code-block { position: relative; background: #0f1c2e; border-radius: 8px; padding: 11px 13px; overflow-x: auto; margin-bottom: 8px; }
.code-block pre { margin: 0; color: #cfe3ff; font-family: Consolas, Menlo, monospace; font-size: 11.5px; line-height: 1.65; white-space: pre; }
.code-block .cp-btn { position: absolute; right: 8px; top: 8px; font-size: 10.5px; color: #8fb8ee; background: rgba(255,255,255,.08); border: none; border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.code-block .cp-btn:hover { background: rgba(255,255,255,.16); }
.ep-label { font-size: 10.5px; color: var(--muted-2); margin: 0 0 4px 2px; }

/* ---------------- 列表 / 时间线 ---------------- */
.ops-list { display: flex; flex-direction: column; }
.ops-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--border-2); font-size: 12.5px; }
.ops-item:last-child { border-bottom: none; }
.ops-item .t { color: var(--muted-2); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-item .a { color: var(--text); }
.ops-item .u { color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick { border: 1px solid var(--border-2); border-radius: 10px; padding: 13px; cursor: pointer; transition: all .15s; background: #fff; }
.quick:hover { border-color: #b9d3ff; background: #f8fbff; transform: translateY(-1px); }
.quick b { display: block; font-size: 13px; margin-bottom: 3px; }
.quick span { font-size: 11px; color: var(--muted); }

/* toast */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1f2d3d; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 10px 28px rgba(10,25,50,.25); animation: pop .2s; }
.toast.ok { background: #0a8f56; } .toast.err { background: #cf1322; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, #f0f3f8 25%, #e8eef6 37%, #f0f3f8 63%); background-size: 400% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 响应式 */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid, .charts-grid.two { grid-template-columns: 1fr; }
  .proto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .auth-brand { display: none; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open { transform: none; }
  .tb-menu { display: grid; place-items: center; }
  .content { padding: 15px 13px 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .curve24 { grid-template-columns: repeat(6, 1fr); }
  .kpi-card .val { font-size: 23px; }
  .tb-clock { display: none; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 12px 13px; }
  .kpi-card .val { font-size: 20px; }
  .toolbar .search { width: 100%; }
  .page-head h2 { font-size: 18px; }
  .curve24 { grid-template-columns: repeat(4, 1fr); }
  .user-chip .nm { display: none; }
  .crumb .sep, .crumb .ell { display: none; }
  .topbar { padding: 0 12px; gap: 8px; }
}

/* ==================== 数据防泄露：全屏溯源水印 ==================== */
.wm-layer {
  position: fixed; inset: 0; z-index: 5; pointer-events: none; user-select: none;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px;
  align-content: space-around; opacity: .16; overflow: hidden;
}
.wm-layer span {
  color: #4a5b70; font-size: 12px; letter-spacing: .5px; white-space: nowrap;
  transform: rotate(-24deg); transform-origin: center; text-align: center;
}
@media (max-width: 720px) { .wm-layer { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; } }

/* ==================== 授权横幅与激活引导 ==================== */
.lic-banner { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 12.5px; line-height: 1.7; border-bottom: 1px solid var(--border); background: #f6faff; }
.lic-banner .lic-ico { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.lic-banner .lic-act { margin-left: auto; flex: none; }
.lic-banner.demo { background: #fff7e6; border-bottom-color: #ffd591; color: #ad4e00; }
.lic-banner.demo .lic-ico { background: var(--orange); }
.lic-banner.trial { background: #fffbe6; border-bottom-color: #ffe58f; color: #874d00; }
.lic-banner.trial .lic-ico { background: #faad14; }
.lic-banner.ok { background: #f6ffed; border-bottom-color: #b7eb8f; color: #135200; }
.lic-banner.ok .lic-ico { background: var(--green); }
@media (max-width: 720px) { .lic-banner { padding: 8px 12px; font-size: 12px; } .lic-banner .lic-act { margin-left: 0; } }
.auth-lic { margin-top: 10px; padding: 9px 12px; background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; font-size: 11.5px; color: #ad4e00; line-height: 1.7; }
.lic-mc { font-family: Consolas, Menlo, monospace; background: #f2f6fc; border: 1px dashed #c5d2e3; border-radius: 6px; padding: 7px 10px; letter-spacing: 1.5px; font-size: 13px; color: var(--text); user-select: all; }

/* ---------------- 网站页脚 / ICP 备案号悬挂 ---------------- */
/* 固定底部栏，全站常驻（SPA 路由切换也始终可见），合规要求备案号须链接到工信部备案系统 */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 280;
  height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(13, 31, 58, .92); color: #c9d4e2; font-size: 12px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer a { color: #c9d4e2; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
/* 给主体内容留出页脚高度，避免被固定栏遮挡 */
body { padding-bottom: 34px; }
@media (max-width: 720px) { .site-footer { font-size: 11px; } }
