/* Evolink Tracker Portal — 企业管理系统样式 */
:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --nav: #0b1220;
  --nav-2: #111d33;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e6f6f4;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }

/* ---------------------------------------------------------------- 框架 */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
  color: #cbd5e1;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.brand .logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-2), #0ea5e9);
  color: #04231f;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 15px;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #f8fafc; }
.brand-sub { font-size: 10px; letter-spacing: 2.4px; color: #7dd3c8; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 3px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #b6c2d4;
  font-size: 12.8px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(20, 184, 166, 0.12); color: #f1f5f9; text-decoration: none; }
.nav-link.active { background: rgba(20, 184, 166, 0.2); color: #fff; box-shadow: inset 2px 0 0 var(--accent-2); }
.nav-code {
  flex: 0 0 40px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10.5px;
  color: #6ee7d7;
  opacity: 0.9;
}
.nav-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-ico { flex: 0 0 18px; font-size: 12px; opacity: 0.8; }
.nav-title {
  padding: 14px 10px 5px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #5f708a;
  text-transform: uppercase;
}
.tag-mini { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.badge-count {
  min-width: 20px; text-align: center;
  background: var(--danger); color: #fff;
  border-radius: 10px; font-size: 10.5px; padding: 1px 6px;
}

.sidebar-foot {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 18px 16px;
  font-size: 12px;
}
.sidebar-foot .me { color: #f8fafc; font-weight: 600; }
.sidebar-foot .me-role { color: #7c8ba1; font-size: 11px; margin: 2px 0 10px; word-break: break-all; }
.link-btn {
  background: none; border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1; border-radius: 7px; padding: 5px 12px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.link-btn:hover { border-color: var(--accent-2); color: #fff; }

.main { flex: 1; min-width: 0; padding: 20px 26px 60px; max-width: 1560px; }

.topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.crumb { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 2px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 15px; cursor: pointer;
}

/* ---------------------------------------------------------------- 通用块 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.section-title {
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  letter-spacing: 0.4px; margin: 8px 0 8px;
}
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
.meta-line { margin-top: 12px; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 4px; font-size: 13px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.grid-2 > .card { margin-bottom: 0; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.stack-col { display: flex; flex-direction: column; gap: 18px; }
.stack-col > .card { margin-bottom: 0; }

/* ---------------------------------------------------------------- KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  opacity: 0.7;
}
.kpi.danger::after { background: linear-gradient(90deg, var(--danger), transparent); }
.kpi-label { font-size: 11.5px; letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0 2px; }
.kpi-value .unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.kpi-foot { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 14px; font-size: 13px; font-weight: 550;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0d6b63; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #b91c1c; }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; padding: 10px; font-size: 14px; }

/* ---------------------------------------------------------------- 胶囊与标签 */
.pill {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 4px 12px; font-size: 11.5px;
}
.pill.ghost { background: transparent; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 550; line-height: 1.6;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid transparent; white-space: nowrap;
}
.chip.success { background: var(--ok-soft); color: var(--ok); }
.chip.warning { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.ghost { background: #f1f5f9; color: var(--muted); }
.chip:hover { text-decoration: none; }
.level-tag {
  display: inline-block; margin-left: 5px; padding: 0 6px;
  border-radius: 4px; background: #fef3c7; color: #92400e;
  font-size: 10px; font-weight: 600; vertical-align: 1px;
}
.flash {
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 13px; border: 1px solid transparent;
}
.flash.ok { background: var(--ok-soft); color: #166534; border-color: #bbf7d0; }
.flash.err { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.flash.warn { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { overflow: auto; max-height: 680px; border: 1px solid var(--line-soft); border-radius: 10px; }
.table-wrap.scroll-360 { max-height: 360px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  position: sticky; top: 0; z-index: 2;
  background: #f8fafc; color: var(--muted);
  font-size: 11px; font-weight: 650; letter-spacing: 0.3px;
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:hover { background: #fbfdff; }
.table tbody tr:last-child td { border-bottom: none; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table .col-site { width: 130px; }
.table .col-action { width: 72px; text-align: right; }
.table td.masked { color: #94a3b8; letter-spacing: 1px; }
.table tr.selected { background: #ecfdf5; }
.table.matrix th, .table.matrix td { text-align: center; }
.table.matrix td:first-child, .table.matrix th:first-child { text-align: left; }
.table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; font-size: 12px; gap: 10px; flex-wrap: wrap;
}
.pager-links { display: flex; gap: 8px; }
.pager.top { margin-top: 0; margin-bottom: 10px; }
.table .col-check { width: 40px; text-align: center; }

/* ---------------------------------------------------------------- 过滤与表单 */
.filters {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.filters .input { width: auto; min-width: 130px; }
.filters input[type="search"] { flex: 1 1 260px; }
/* 带标题的筛选控件（级别 / 规则类型等），标题在控件上方，便于区分多个下拉 */
.filter-field { display: inline-flex; flex-direction: column; gap: 3px; }
.filter-field > span { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filters-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.filters-meta .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.input {
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; font-size: 13px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}
textarea.input { resize: vertical; min-height: 64px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 14px;
}
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.field > span { font-weight: 600; font-size: 12px; color: var(--ink-2); }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; margin-left: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- 模块与详情 */
.intro-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.intro-card p { margin: 6px 0 0; max-width: 880px; font-size: 12.8px; }
.intro-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.module-en { font-size: 11.5px; color: var(--muted); letter-spacing: 0.3px; }
.module-section { margin-bottom: 18px; }
.module-section:last-child { margin-bottom: 0; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 12px;
}
.module-card {
  display: block; border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; background: #fff; color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.module-card:hover {
  border-color: var(--accent-2); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 118, 110, 0.1);
}
.module-card.reserved { background: #fbfbfc; }
.module-top { display: flex; justify-content: space-between; align-items: center; }
.module-code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px; color: var(--accent); background: var(--accent-soft);
  padding: 1px 7px; border-radius: 5px;
}
.module-count { font-size: 17px; font-weight: 700; }
.module-name { font-weight: 600; margin-top: 7px; }
.module-foot { margin-top: 8px; display: flex; gap: 6px; align-items: center; }

.detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.detail-id .big { font-size: 20px; font-weight: 700; }
.detail-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0; }
.detail-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.detail-actions form { margin: 0; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.field-item {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  min-height: 64px;
}
.field-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.field-value { font-size: 13px; word-break: break-word; }
.field-value.masked { color: #94a3b8; letter-spacing: 2px; }
.field-item.is-masked { background: #fcfcfd; }

/* ---------------------------------------------------------------- 时间线 */
.timeline { list-style: none; margin: 0; padding: 4px 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 1px dashed #cbd5e1; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -4.5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline-title { font-size: 12.8px; font-weight: 600; }
.timeline-meta { font-size: 11.5px; color: var(--muted); }
.timeline-note { font-size: 12px; color: var(--ink-2); margin-top: 3px; background: #f8fafc; padding: 5px 8px; border-radius: 6px; }

/* ---------------------------------------------------------------- 图表 */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-label { flex: 0 0 120px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label.wide { flex: 0 0 172px; }
.bar-track { flex: 1; height: 9px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), #0ea5e9); }
.bar-fill.money { background: linear-gradient(90deg, #f59e0b, #f97316); }
.bar-value { flex: 0 0 96px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.chart { display: flex; gap: 14px; align-items: flex-end; height: 200px; padding: 10px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bars { display: flex; gap: 3px; align-items: flex-end; height: 160px; width: 100%; justify-content: center; }
.chart-bar { width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-bar.plan { background: #cbd5e1; }
.chart-bar.actual { background: var(--accent-2); }
.chart-label { font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.chart-numbers { font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.swatch.plan { background: #cbd5e1; }
.swatch.actual { background: var(--accent-2); }

.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.health-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.health-title { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.health-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding: 2px 0; }

.tenant-row { display: flex; gap: 10px; margin-top: 12px; }
.tenant {
  flex: 1; background: #f8fafc; border-radius: 10px; padding: 9px 12px;
  display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted);
}
.tenant strong { font-size: 19px; color: var(--ink); }
.tenant small { font-size: 10.5px; }

.alert-list { display: flex; flex-direction: column; gap: 2px; }
.alert-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 8px; border-radius: 8px; color: inherit;
}
.alert-item:hover { background: #f8fafc; text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 8px; background: var(--warn); }
.dot.danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.alert-title { font-size: 12.8px; font-weight: 600; }
.alert-meta { font-size: 11px; color: var(--muted); }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 2px; border-bottom: 1px dashed var(--line-soft);
  font-size: 12.5px;
}
.plain-list li:last-child { border-bottom: none; }

.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rule-grid > div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; }
.rule-grid strong { font-size: 12.5px; }
.rule-grid p { margin: 4px 0 0; font-size: 11.8px; color: var(--muted); }

.level-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.level-row .chip { padding: 4px 12px; font-size: 12px; cursor: pointer; }

.tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 9px; }
.tab { padding: 5px 14px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); font-weight: 600; }
.tab-count {
  display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.07); font-size: 11px; font-weight: 600; color: var(--muted);
}
.tab.active .tab-count { background: var(--accent-soft, #e6f2ef); color: var(--accent); }

.center-card { text-align: center; padding: 40px 20px; }
.error-mark {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--warn-soft); color: var(--warn);
  font-size: 22px; font-weight: 800;
}

/* ---------------------------------------------------------------- 登录页 */
.login-body { background: #0b1220; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px);
}
.login-hero {
  padding: 54px 56px;
  color: #dbe4f0;
  background:
    radial-gradient(900px 480px at -10% 10%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(14, 165, 233, 0.16), transparent 60%),
    linear-gradient(160deg, #0b1220, #0f1e36);
  display: flex; flex-direction: column; justify-content: center;
}
.brand.large { border: none; padding: 0 0 28px; }
.brand.large .logo { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; }
.brand.large .brand-name { font-size: 21px; }
.brand.large .brand-sub { font-size: 11px; }
.login-hero h1 { font-size: 32px; line-height: 1.3; margin-bottom: 6px; color: #f8fafc; }
.hero-sub { color: #7dd3c8; font-size: 12.5px; letter-spacing: 1px; margin: 0 0 28px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; max-width: 600px; }
.hero-points li {
  font-size: 13px; color: #b6c2d4; padding-left: 18px; position: relative; line-height: 1.6;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent-2);
}
.hero-points strong { color: #f1f5f9; font-weight: 600; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats span { font-size: 26px; font-weight: 700; color: #fff; }
.hero-stats small { font-size: 11px; color: #7c8ba1; letter-spacing: 0.5px; }

.login-card {
  background: #f8fafc;
  padding: 54px 46px;
  display: flex; flex-direction: column; justify-content: center;
}
.login-card h2 { font-size: 21px; }
.login-card > p { margin: 4px 0 20px; font-size: 12.5px; }
.login-card .field { margin-bottom: 2px; }
.demo-box { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-box summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; }
.mini-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 4px 6px; border-bottom: 1px dashed var(--line-soft); }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-2.wide-left { grid-template-columns: minmax(0, 1fr); }
  .login-wrap { grid-template-columns: minmax(0, 1fr); }
  .login-hero { padding: 40px 32px; }
  .login-card { padding: 36px 32px; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform 0.2s ease; box-shadow: 0 12px 40px rgba(2, 6, 23, 0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 16px 14px 50px; }
  .icon-btn { display: inline-block; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: span 1; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-head { flex-direction: column; }
  .intro-card { flex-direction: column; }
  .bar-label, .bar-label.wide { flex-basis: 90px; }
  .chart { gap: 6px; }
}

/* ------------------------------------------------------------ 语言切换 */
.login-lang {
  position: fixed; top: 20px; right: 24px; z-index: 10;
  text-decoration: none; backdrop-filter: blur(6px);
}

/* ------------------------------------------------ 分页条（表格上下一致） */
.pager .pager-index {
  font-size: 11.5px; color: var(--muted);
  padding: 4px 8px; border-radius: 7px; background: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.btn.disabled { opacity: 0.45; pointer-events: none; }
.filters .link.right { margin-left: auto; font-size: 12px; }

/* ------------------------------------------------ 表单分区与多选下拉 */
.field-group {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px 14px; margin: 4px 0 6px;
  background: #fcfdff;
}
.field-group > legend {
  font-size: 12px; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); padding: 2px 10px; border-radius: 999px;
  margin-left: 2px;
}
.field-group:nth-of-type(2) { background: #fbfdff; }
.field-group:nth-of-type(3) { background: #fffdfb; }
.field-group:nth-of-type(4) { background: #fbfbff; }
.field-group .form-grid { margin-top: 8px; }

.input.readonly { background: #f8fafc; color: var(--muted); }

.multi { display: flex; flex-direction: column; gap: 8px; }
.multi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.selectable {
  cursor: pointer; border: 1px dashed var(--line); background: #fff; color: var(--muted);
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.chip.selectable:hover { border-color: var(--accent-2); color: var(--accent); }
.chip.selectable.on {
  border-style: solid; border-color: var(--accent-2);
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.multi-extra { font-size: 12px; padding: 6px 10px; max-width: 260px; }

/* ------------------------------------------------ 站点 360 全景表 */
.table .col-module { width: 190px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.kv-inline em { font-style: normal; color: var(--muted); margin-right: 3px; }
.kpi-grid.tight { margin: 0; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi-foot.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.conflict-item { display: inline-block; margin: 0 10px; font-size: 12.5px; }
.conflict-item em { font-style: normal; font-weight: 600; }
.detail-group-title {
  font-size: 12px; font-weight: 650; color: var(--accent);
  margin: 14px 0 0; padding: 6px 10px; background: var(--accent-soft);
  border-radius: 8px 8px 0 0;
}

/* ------------------------------------------------ 后台显示设置 */
.settings-form .column-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px 14px; margin-top: 10px;
}
.column-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 7px 10px;
  background: #fff; cursor: pointer;
}
.column-item:hover { border-color: var(--accent-2); }
.column-item input { width: 15px; height: 15px; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg a { padding: 5px 12px; font-size: 12px; color: var(--muted); }
.seg a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ------------------------------------------- 站点 360 全景表（定宽防溢出） */
.table.table-360 { table-layout: fixed; }
.table.table-360 th, .table.table-360 td { white-space: normal; word-break: break-word; vertical-align: top; }
.table.table-360 .col-module { width: 168px; }
.table.table-360 .col-status { width: 132px; }
.table.table-360 .col-amount { width: 104px; text-align: right; }
.table.table-360 .col-action { width: 62px; }
.table.table-360 .kv-inline { gap: 3px 12px; }
.section-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* 导入问题明细：长文本列只占一行，超出用省略号，避免表格被撑变形 */
.table .cell-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
