/* ============================================================
 * 智焕光储充经济测算软件 — 样式
 * 现代卡片化布局 · 渐变点缀 · 精致排版
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-2: #f59e0b;
  --bg: #f0f4fa;
  --panel: #ffffff;
  --border: #e5eaf1;
  --border-soft: #eef2f7;
  --text: #1e293b;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .1);
  --radius: 12px;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(37, 99, 235, .06), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(16, 185, 129, .06), transparent 55%),
    var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo img { height: 100%; width: auto; display: block; }
.brand h1 { font-size: 18px; font-weight: 700; letter-spacing: .3px; color: #0f172a; }
.brand p { font-size: 12px; color: var(--muted-light); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 使用说明下拉 ---------- */
.dropdown { position: relative; }
.dropdown .btn { color: var(--text); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .15);
  padding: 16px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 100;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu .guide-box h3 { margin-top: 12px; font-size: 13px; }
.dropdown-menu .guide-box h3:first-child { margin-top: 0; }
.dropdown-menu .guide-box ul, .dropdown-menu .guide-box ol { margin: 6px 0 0; }
.dropdown-menu .guide-box li { font-size: 12px; line-height: 1.7; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
  color: var(--text);
  white-space: nowrap;
}
.btn:hover { background: #f8fafc; border-color: #dbe3ee; box-shadow: var(--shadow-sm); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 11px 22px; font-size: 14px; border-radius: 11px; }
.select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  min-width: 190px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }

/* 分段选择(单选按钮卡片) */
.opt-group { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 13.5px; color: #475569; transition: all .15s;
  user-select: none;
}
.opt-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-btn .opt-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #cbd5e1; position: relative; flex-shrink: 0;
}
.opt-btn input:checked + .opt-dot { border-color: var(--primary); }
.opt-btn input:checked + .opt-dot::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--primary);
}
.opt-btn:has(input:checked) { border-color: var(--primary); background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.opt-btn:hover:not(:has(input:checked)) { border-color: #93c5fd; }
.opt-sub { display: none; margin-top: 14px; }
.opt-sub.show { display: block; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.price-table th { text-align: left; padding: 8px 10px; background: #f1f5f9; color: #475569; font-weight: 600; font-size: 12.5px; border: 1px solid var(--border); }
.price-table td { padding: 8px 10px; border: 1px solid var(--border); }
.price-table input[type=number] { width: 110px; }
.price-table input[type=text] { width: 220px; }
.auto-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #047857; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: 999px; padding: 4px 12px;
}
.auto-badge-neutral {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #475569; background: #f1f5f9;
  border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 12px;
}
.price-lib-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0; padding: 10px 12px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.price-lib-hint { font-size: 12.5px; color: #9a3412; flex: 1; min-width: 200px; }
.price-lib-has { color: #166534; }
.mkt-result {
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe; font-size: 13.5px; color: #1e3a8a;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.mkt-result b { font-size: 17px; color: #1d4ed8; }

/* 24小时电价曲线网格 */
.h24-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.h24-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe;
}
.h24-cell .h24-label { font-size: 11px; color: #64748b; font-weight: 600; }
.h24-cell input { width: 100%; text-align: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--primary); border-radius: 8px;
  background: #fff; color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-outline:hover { background: #eff6ff; }
.btn-outline.small { padding: 5px 10px; font-size: 12px; }

/* 每小时最终营销价格表 */
.h24-result-wrap { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.h24-result-wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.h24-result-wrap th, .h24-result-wrap td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.h24-result-wrap th { background: #f1f5f9; color: #334155; font-weight: 600; text-align: right; }
.h24-result-wrap th:first-child, .h24-result-wrap td:first-child { text-align: left; }
.h24-result-wrap tr:last-child td { border-bottom: none; }
.h24-result-wrap td.buy { color: #64748b; }
.h24-result-wrap td.final { color: #1d4ed8; font-weight: 700; }
.h24-result-wrap .row-peak td { background: #fef2f2; }
.h24-result-wrap .row-flat td { background: #f8fafc; }
.h24-result-wrap .row-valley td { background: #eff6ff; }
.h24-result-wrap .row-tip td { background: #fee2e2; }
.h24-sum { margin-top: 10px; font-size: 13px; color: #334155; }

/* ---------- 布局 ---------- */
.layout { display: flex; flex: 1; overflow: hidden; }

.sidebar {
  width: 208px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.side-nav {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  padding: 16px 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 9px;
  transition: all .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-item .nav-ico { font-size: 15px; flex-shrink: 0; }
.nav-item .nav-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  flex-shrink: 0;
}
.nav-item.active .nav-num { background: rgba(255,255,255,.22); color: #fff; }
.nav-label { flex: 1; }
.nav-item:hover { background: #f1f5f9; color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, #2563eb, #2563eb);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

.step-panel h2 { font-size: 16px; margin-bottom: 16px; color: #0f172a; font-weight: 700; }

/* ---------- 主内容区 ---------- */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 26px 30px 40px;
  background: transparent;
}
.output-panel { animation: fadeUp .35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 21px;
  color: #0f172a;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.panel-head h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2563eb, #10b981);
}
.panel-badge {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ---------- 章节块 ---------- */
.section-block {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}
.sec-num {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: .5px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
/* 复选框型 label(无输入框)内嵌控件对齐 */
.field label input[type="checkbox"] { margin-right: 6px; vertical-align: -2px; }
.field input, .field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.field input[type="number"] { font-variant-numeric: tabular-nums; }
.hint { display: block; font-size: 11px; color: var(--muted-light); margin-top: 4px; line-height: 1.45; }
/* 紧凑栅格:小数值字段(1-3位整数)用窄列,避免短输入框占满半行造成视觉浪费 */
.row-narrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.row-narrow .field { margin-bottom: 12px; }
.row-narrow .field input { padding: 7px 10px; font-size: 13px; }
@media (max-width: 720px) {
  .row-narrow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .row-narrow { grid-template-columns: 1fr; }
}
/* 开关型 field:仅含 label + hint,无 input,占满 label 行 */
.field-switch { display: flex; flex-direction: column; }
.field-switch label { font-weight: 500; color: var(--text); display: flex; align-items: center; padding: 8px 0 4px; }
.field-switch .hint { margin-top: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
/* 基于内容密度的自适应栅格 —— 长字段(项目名称/地址/公司全称)用更宽列,短字段(类型/日期/经纬度)用紧凑列,避免短字段留白与长字段拥挤 */
.row-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.row-12 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.row-full { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 720px) {
  .row-2, .row-3, .row-21, .row-12 { grid-template-columns: 1fr; }
}
/* 项目基础信息块的提示文字:由 select 右侧下移为独立行,更整洁 */
.form-hint-row {
  margin: -4px 0 14px;
  font-size: 11px;
  color: var(--muted-light);
  line-height: 1.5;
}
.field input[readonly] { background: #f8fafc; color: var(--muted); cursor: not-allowed; }
.tip {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  padding: 7px 11px;
  border-radius: 8px;
  line-height: 1.5;
}

/* ---------- 地图 ---------- */
.map {
  width: 100%; height: 360px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.map-tools { margin-top: 14px; }

/* 图层切换 */
.map-layer-bar {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 0;
}
.map-layer-bar .layer-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.layer-btn {
  padding: 5px 13px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
}
.layer-btn:hover { border-color: var(--primary); color: var(--primary); }
.layer-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.search-box { display: flex; gap: 8px; }
.search-box input {
  flex: 1; padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px; font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.search-box input:focus { border-color: var(--primary); }
.poi-list { margin-top: 8px; max-height: 140px; overflow-y: auto; border: 1px solid var(--border-soft); border-radius: 9px; }
.poi-empty { color: #999; font-size: 12px; text-align: center; }
.poi-item {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background .1s;
}
.poi-item:last-child { border-bottom: none; }
.poi-item:hover { background: #f1f5f9; }
.poi-name { font-size: 13px; font-weight: 600; }
.poi-addr { font-size: 11px; color: var(--muted); }

/* ---------- 设备清单 ---------- */
.equip-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.equip-head, .equip-row {
  display: grid;
  grid-template-columns: 1fr 56px 76px 76px;
  gap: 8px;
  padding: 9px 12px;
  align-items: center;
}
.equip-head { background: linear-gradient(180deg, #f8fafc, #f1f5f9); font-size: 12px; color: var(--muted); font-weight: 600; }
.equip-row { border-top: 1px solid var(--border-soft); font-size: 13px; }
.equip-row .e-name { font-size: 12px; color: var(--text); display: flex; flex-direction: column; line-height: 1.35; }
.equip-row .e-name .e-model { font-size: 11px; color: var(--muted); font-weight: 400; }
.equip-row input {
  width: 100%; padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px; font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.equip-row input:focus { outline: none; border-color: var(--primary); }
.invest-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding: 14px 18px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0;
  border-radius: 11px;
}
.invest-summary span { font-size: 13px; color: #047857; font-weight: 600; }
.invest-summary strong { font-size: 20px; color: #047857; font-variant-numeric: tabular-nums; }
/* 设备清单底部固定费用区(设计费/场地成本/不可预见费/预估合计) */
.equip-fees {
  margin-top: 14px; padding: 14px 18px 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0; border-radius: 11px;
  display: flex; flex-direction: column; gap: 10px;
}
.equip-fees .fee-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.equip-fees .fee-row.total {
  border-top: 1px dashed #86efac; padding-top: 10px;
}
.equip-fees .fee-label { font-size: 13px; color: #047857; font-weight: 600; min-width: 150px; }
.equip-fees .fee-row input {
  width: 220px; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; outline: none;
  font-variant-numeric: tabular-nums;
}
.equip-fees .fee-row input:focus { border-color: var(--primary); }
.equip-fees .fee-row strong { font-size: 20px; color: #047857; font-variant-numeric: tabular-nums; }
.equip-fees .fee-note { font-size: 11px; color: var(--muted); }

/* ---------- 设备行扩展(5列含单位/删除) ---------- */
.equip-head, .equip-row {
  grid-template-columns: 1.6fr 60px 70px 90px 90px 36px;
}
.equip-row .e-unit { font-size: 11px; color: var(--muted); }
.equip-row .e-subtotal { font-size: 13px; color: var(--primary); font-weight: 600; text-align: right; }
.equip-row .e-del {
  width: 26px; height: 26px; border: 1px solid #fecaca; background: #fef2f2;
  color: #dc2626; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.equip-row .e-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ============================================================
 * 步骤底部导航栏(上一项 / 保存 / 下一项)
 * ============================================================ */
.step-nav-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 16px 20px;
  background: linear-gradient(180deg, #fafbff, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.step-nav-spacer { flex: 1; }
.step-nav-bar .btn { min-width: 110px; justify-content: center; }
.step-nav-bar .btn-ghost { color: var(--muted); }
.step-nav-bar .btn-ghost:hover { color: var(--text); background: #f1f5f9; }

/* ============================================================
 * 概览页工具条(新建项目按钮)
 * ============================================================ */
.overview-toolbar { margin-left: auto; display: flex; gap: 8px; }
.overview-toolbar .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

/* ============================================================
 * 概览页表单(项目元数据)
 * ============================================================ */
.overview-form {
  display: flex; flex-direction: column; gap: 4px;
}
.overview-form .row-2 { gap: 14px; }
.overview-form .field input[readonly] { background: #f8fafc; color: var(--muted); }

/* ---------- 指标卡片 ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .3), transparent);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-card .m-label { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.metric-card .m-value { font-size: 23px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.metric-card .m-unit { font-size: 11px; color: var(--muted-light); font-weight: 500; }
.metric-card.highlight {
  background: linear-gradient(135deg, #2563eb, #10b981);
  border: none;
  color: #fff;
}
.metric-card.highlight::before { display: none; }
.metric-card.highlight .m-label, .metric-card.highlight .m-unit { color: rgba(255, 255, 255, .85); }
.metric-card.highlight .m-value { color: #fff; }
.metric-card.highlight:hover { box-shadow: 0 8px 20px rgba(16, 185, 129, .35); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 9px; border: 1px solid var(--border-soft); }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border-soft); }
th { background: #f8fafc; color: var(--muted); font-weight: 600; position: sticky; top: 0; font-size: 11.5px; }
td:first-child, th:first-child { text-align: center; font-weight: 600; color: var(--muted); }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #f8fbff; }
tbody tr:nth-child(even) { background: #fcfdff; }
tbody tr:nth-child(even):hover { background: #f8fbff; }
tfoot td { font-weight: 700; background: #f1f5f9; color: var(--text); }

/* ---------- 图表 ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.chart-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.chart-head {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-head::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.chart-box canvas { width: 100%; height: 240px; }

/* ---------- 敏感性 ---------- */
.sens-row td { text-align: center; }
.sens-row td.sens-var { text-align: left; font-weight: 600; }

/* ---------- 逐年充电量 ---------- */
.daily-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.daily-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.daily-item span {
  color: var(--muted); min-width: 24px;
  font-weight: 600; font-size: 11px;
}
.daily-item input {
  width: 100%; padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px; font-size: 12px;
  outline: none;
  transition: border-color .15s;
}
.daily-item input:focus { border-color: var(--primary); }

/* ---------- 逐年充电量曲线 ---------- */
.chart-wrap { margin-bottom: 14px; }
#dailyChart {
  width: 100%; height: 220px;
  display: block; cursor: crosshair;
  touch-action: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* ---------- 使用说明 ---------- */
.guide-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.guide-box h3 {
  font-size: 13px;
  color: var(--primary);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.guide-box h3:first-child { margin-top: 0; }
.guide-box h3::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--primary);
}
.guide-box ul, .guide-box ol {
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 2;
}
.guide-box b { color: var(--primary); }
.guide-box li::marker { color: var(--primary); }

/* ---------- 投资构成 ---------- */
.breakdown {
  margin: 0 0 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.breakdown-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.breakdown-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-item {
  flex: 1; min-width: 130px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  text-align: center;
  transition: transform .15s;
}
.bd-item:hover { transform: translateY(-2px); }
.bd-name { color: var(--muted); display: block; margin-bottom: 4px; font-size: 11px; }
.bd-val { font-weight: 800; color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.bd-pct { color: var(--primary); font-size: 11px; font-weight: 600; }

/* ---------- 项目概览 ---------- */
.overview-hero {
  text-align: center;
  padding: 44px 20px 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.overview-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at 50% 0%, rgba(37,99,235,.08), transparent 70%);
}
.hero-icon {
  font-size: 46px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  width: 78px; height: 78px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero-title { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 8px; position: relative; z-index: 1; }
.hero-sub { font-size: 13px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.8; position: relative; z-index: 1; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ov-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.ov-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ov-icon { font-size: 22px; margin-bottom: 8px; }
.ov-label { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ov-value { font-size: 15px; font-weight: 700; color: #0f172a; }

/* ---------- 报告生成 ---------- */
.report-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.report-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.report-frame { width: 100%; height: 640px; border: none; display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(30, 41, 59, .92);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 13.5px;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(22, 163, 74, .92); }
.toast.error { background: rgba(220, 38, 38, .92); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar { width: 200px; }
}
@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .sidebar { width: 176px; }
}

/* ============================================================
 * 登录页
 * ============================================================ */
#loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(37, 99, 235, .18), transparent 60%),
    radial-gradient(700px 450px at 0% 100%, rgba(16, 185, 129, .16), transparent 55%),
    linear-gradient(135deg, #0f172a, #1e3a5f);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: 34px 34px 26px;
  animation: fadeUp .4s ease;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .15);
}
.login-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.login-brand h1 { font-size: 20px; color: #0f172a; font-weight: 800; margin-bottom: 6px; }
.login-brand p { font-size: 12.5px; color: var(--muted); }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.login-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fbfcfe;
}
.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background: #fff;
}
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
  transition: all .15s;
  letter-spacing: 2px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .35); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.login-error {
  color: var(--red);
  font-size: 12.5px;
  margin: 0 0 12px;
  min-height: 16px;
  text-align: center;
}
.login-foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--muted-light); line-height: 1.7; }

/* ============================================================
 * 顶部用户区
 * ============================================================ */
.auth-user-area { display: flex; align-items: center; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f1f5f9;
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  padding: 4px 5px 4px 5px;
  box-shadow: var(--shadow-sm);
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; padding-right: 4px; }
.user-name { font-size: 12.5px; font-weight: 600; color: #0f172a; }
.user-role { font-size: 10.5px; color: var(--muted); }
.btn-icon { border-radius: 50%; padding: 6px; width: 30px; height: 30px; justify-content: center; }

/* ---------- 系统管理员下拉(新) ---------- */
.auth-user-area { position: relative; }
.user-dropdown { position: relative; }
.user-chip {
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  transition: all .2s;
}
.user-chip:hover { background: #e0e7ef; }
.user-chip .user-caret {
  margin-left: 4px; color: var(--muted);
  transition: transform .2s;
}
.user-dropdown.open .user-caret { transform: rotate(180deg); }
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .15);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300;
}
.user-dropdown.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-head {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.u-avatar-lg {
  width: 42px; height: 42px; font-size: 16px;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.u-menu-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.u-menu-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.user-menu-list { display: flex; flex-direction: column; gap: 2px; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: none; background: transparent;
  color: #334155; font-size: 13px;
  border-radius: 8px; cursor: pointer;
  transition: all .15s;
  text-align: left; width: 100%;
  font-family: inherit;
}
.user-menu-item:hover { background: #f1f5f9; color: #0f172a; }
.user-menu-item svg { color: var(--muted); flex-shrink: 0; }
.user-menu-item:hover svg { color: var(--primary); }

/* ---------- 顶部栏分组(项目下拉+新建+保存+报告) ---------- */
.topbar-actions { gap: 10px; }
.topbar-group {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px 6px;
}
.topbar-group .select { min-width: 200px; border-color: transparent; background: #fff; }
.topbar-group .btn { padding: 6px 12px; font-size: 13px; }
.topbar-group #btnReport {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.topbar-group #btnReport:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }

/* ============================================================
 * 权限管理页
 * ============================================================ */
.auth-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 18px;
  width: max-content;
}
.auth-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-tab-body { animation: fadeUp .3s ease; }
.auth-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.auth-count { font-size: 12px; color: var(--muted); }
.auth-loading, .auth-no-perm { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.auth-desc b { color: var(--primary); }

.auth-table { box-shadow: var(--shadow-sm); }
.auth-table th, .auth-table td { text-align: left; }
.auth-table th:first-child, .auth-table td:first-child { text-align: left; }
.auth-table .u-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.auth-table .u-name { font-weight: 600; color: #0f172a; }
.auth-table .u-sub { font-size: 11px; color: var(--muted); }
.auth-table .u-actions { white-space: nowrap; }
.auth-table .u-self { font-size: 12px; color: var(--muted); font-style: italic; }
.role-name { font-weight: 700; color: #0f172a; }
.auth-role-table th, .auth-role-table td { text-align: center; }
.auth-role-table th:first-child, .auth-role-table td:first-child { text-align: left; }

.badge-ok {
  display: inline-block; padding: 2px 9px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #dcfce7; color: #16a34a;
}
.badge-off {
  display: inline-block; padding: 2px 9px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #fee2e2; color: #dc2626;
}
.btn-danger { background: #fef2f2; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; color: var(--red); border-color: #fca5a5; }

/* 权限开关 */
.switch { position: relative; display: inline-block; width: 38px; height: 21px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: #cbd5e1;
  border-radius: 21px;
  transition: background .2s;
  cursor: pointer;
}
.switch .slider::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(17px); }
.switch input:disabled + .slider { opacity: .6; cursor: not-allowed; }

/* ============================================================
 * 通用 Modal
 * ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200;
  animation: fadeUp .18s ease;
}
.modal-card {
  width: 92%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp .25s ease;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 { font-size: 15px; font-weight: 700; color: #0f172a; }
.modal-close {
  border: none; background: transparent;
  font-size: 22px; line-height: 1;
  color: var(--muted-light); cursor: pointer;
  padding: 2px 6px; border-radius: 6px;
}
.modal-close:hover { background: #f1f5f9; color: var(--text); }
.modal-body { padding: 18px 20px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  background: #fbfcfe;
}

/* 设备材料库弹窗 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp .18s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-box {
  width: 92%; max-width: 640px;
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; animation: fadeUp .25s ease;
  display: flex; flex-direction: column;
  max-height: 82vh;
}
/* 大弹窗(设备材料库) */
.modal-box.modal-lg { max-width: 1080px; width: 96%; max-height: 90vh; }
.modal-box .modal-head { flex: 0 0 auto; }
.lib-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lib-table th {
  text-align: left; padding: 8px 10px; font-size: 12px; color: var(--muted);
  background: #f8fafc; border-bottom: 1px solid var(--border-soft); font-weight: 600;
  position: sticky; top: 0; z-index: 1;
}
.lib-group-row td {
  background: #f0f9ff; color: #0369a1; font-weight: 700; font-size: 12px;
  letter-spacing: .5px; padding: 6px 10px;
}
.lib-table td select {
  width: 100%; padding: 5px 4px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 12px; outline: none; background: #fff;
}
.lib-table th {
  text-align: left; padding: 8px 10px; font-size: 12px; color: var(--muted);
  background: #f8fafc; border-bottom: 1px solid var(--border-soft); font-weight: 600;
}
.lib-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.lib-table td input {
  width: 100%; padding: 5px 7px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 13px; outline: none;
}
.lib-table td input:focus { border-color: var(--primary); }
.lib-del {
  width: 26px; height: 26px; border: 1px solid #fecaca; background: #fef2f2;
  color: #dc2626; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.lib-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ============================================================
 * 全局紧凑层:在现有基础上整体缩小字号与间距
 * (置于末尾,优先级最高,便于统一微调与回退)
 * ============================================================ */
:root {
  --radius: 10px;
}

/* 基础正文 */
body { font-size: 13px; }
p { margin: 0 0 8px; }

/* 页面容器与标题 */
.step-panel { padding: 20px; }
.step-panel h2 { font-size: 15px; margin-bottom: 12px; }
.section-title { font-size: 13px; }
.section-title .sec-num { width: 20px; height: 20px; font-size: 11px; }
.section-block { padding: 14px; margin-bottom: 14px; }

/* 表单:更紧凑的字号与间距 */
.field { margin-bottom: 10px; }
.field label { font-size: 11.5px; margin-bottom: 4px; }
.field input, .field select {
  padding: 6px 9px;
  font-size: 12.5px;
  border-radius: 7px;
}
.hint { font-size: 10.5px; margin-top: 3px; line-height: 1.4; }
.field-switch label { padding: 5px 0 3px; font-size: 12px; }
.row-narrow .field input { padding: 5px 9px; font-size: 12px; }

/* 提示框与辅助说明 */
.tip { font-size: 11.5px; padding: 6px 10px; margin-bottom: 10px; line-height: 1.45; border-radius: 7px; }
.auto-badge, .auto-badge-neutral { font-size: 11px; padding: 4px 8px; }
.mkt-result b { font-size: 15px; }

/* 表格 */
table { font-size: 11.5px; }
th, td { padding: 6px 8px; }
th { font-size: 11px; }
.price-table { font-size: 12px; }
.price-table th { font-size: 11.5px; padding: 6px 8px; }
.price-table td { padding: 6px 8px; }
.equip-head { font-size: 11px; }
.equip-row { font-size: 12px; }
.equip-row .e-name { font-size: 11px; }
.equip-row .e-name .e-model { font-size: 10px; }

/* 指标卡 */
.metric-grid { gap: 10px; margin-bottom: 14px; }
.metric-card { padding: 12px 10px; border-radius: 11px; }
.metric-card .m-label { font-size: 10.5px; margin-bottom: 4px; }
.metric-card .m-value { font-size: 20px; }

/* 投资构成 */
.breakdown { padding: 12px 14px; }
.breakdown-title { font-size: 12px; margin-bottom: 10px; }
.bd-item { padding: 8px 10px; font-size: 11px; }
.bd-name { font-size: 10.5px; }
.bd-val { font-size: 14px; }
.bd-pct { font-size: 10.5px; }

/* 设备清单费用行 */
.equip-fees .fee-label { font-size: 12px; min-width: 130px; }
.equip-fees .fee-row strong { font-size: 17px; }
.equip-fees .fee-note { font-size: 10.5px; }

/* 图表与逐年充电量 */
.chart-grid { gap: 14px; margin-top: 18px; }
.chart-box { padding: 12px; }
.chart-head { font-size: 13px; margin-bottom: 8px; }
.chart-box canvas { height: 200px; }
.daily-item { font-size: 11px; }
.daily-item input { padding: 4px 6px; font-size: 11px; }
#dailyChart { height: 190px; }

/* 概览页 */
.overview-hero { padding: 30px 18px 24px; margin-bottom: 18px; }
.hero-title { font-size: 21px; }
.hero-sub { font-size: 12px; }
.hero-icon { width: 64px; height: 64px; font-size: 38px; border-radius: 18px; }
.ov-item { padding: 14px; }
.ov-label { font-size: 10.5px; }
.ov-value { font-size: 14px; }
.ov-icon { font-size: 19px; }

/* 报告 */
.report-frame { height: 560px; }

/* 引导/说明 */
.guide-box { padding: 14px; }
.guide-box h3 { font-size: 12px; margin: 12px 0 6px; }
.guide-box ul, .guide-box ol { font-size: 12px; line-height: 1.8; }

/* 小时电价单元格 */
.h24-cell { padding: 5px !important; }
.h24-cell .h24-label { font-size: 10px; }
.h24-cell input { font-size: 11px; padding: 4px; }
.h24-sum { font-size: 12px; margin-top: 8px; }

/* 设备材料库弹窗 */
.lib-table { font-size: 12px; }
.lib-table th { font-size: 11px; padding: 6px 8px; }
.lib-table td { padding: 6px 8px; }
.lib-table td input { font-size: 12px; padding: 4px 6px; }
.lib-table td select { font-size: 11px; padding: 4px; }

/* 栅格间距收紧 */
.row-2 { gap: 10px; }
.row-3 { gap: 10px; }
.row-21, .row-12 { gap: 10px; }
.row-narrow { gap: 10px; }

/* 管理导航分隔 */
.nav-admin { margin-top: 6px; border-top: 1px solid var(--border-soft); border-radius: 0 0 9px 9px; }
