/* ============================================================
   收到请回复 · SaaS 管理后台
   视觉体系：政务蓝白（Government Blue & White）+ Vue / Element 组件风格
   v1.1.0
   ============================================================ */
:root {
  /* ---- 政务蓝主色 ---- */
  --gov-900: #0B2C5E;
  --gov-800: #123E7C;
  --gov-700: #1B4F9C;
  --gov-600: #2E7BD6;
  --gov-500: #4A93E0;
  --gov-300: #8FB9E4;
  --gov-100: #DCE8F7;
  --gov-50:  #EEF4FC;

  /* ---- 辅助色 ---- */
  --teal:    #00A89C;
  --teal-50: #E4F6F4;
  --gold:    #E0951B;
  --gold-50: #FDF4E3;
  --red:     #D64545;
  --red-50:  #FBEBEB;
  --purple:  #6C5CE7;
  --purple-50:#EFEDFD;
  --green:   #2FA84F;
  --green-50:#E9F6EC;

  /* ---- 中性 ---- */
  --bg:      #F2F5FA;
  --panel:   #FFFFFF;
  --text:    #1A2A3A;
  --text-2:  #54657A;
  --muted:   #8A9AAE;
  --line:    #E3E9F2;
  --line-2:  #EDF1F7;

  --radius:   10px;
  --radius-sm:6px;
  --shadow:    0 1px 3px rgba(16, 42, 80, .06), 0 1px 2px rgba(16, 42, 80, .04);
  --shadow-md: 0 4px 14px rgba(16, 42, 80, .09);
  --shadow-lg: 0 12px 34px rgba(16, 42, 80, .16);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gov-700); text-decoration: none; }
a:hover { color: var(--gov-600); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C7D2E2; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #A9B8CE; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ SVG 图标 ============ */
.svg-ico { display: block; flex-shrink: 0; vertical-align: middle; }
.btn .svg-ico, .tag .svg-ico, .s-tag .svg-ico { display: inline-block; }
.with-ico { display: inline-flex; align-items: center; gap: 5px; }
.empty.with-ico {
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

/* ============ 启动 / 登录 ============ */
.boot {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, #0B2C5E 0%, #1B4F9C 45%, #2E7BD6 100%);
  color: #fff;
}
.boot .card { color: var(--text); }
.boot-text { color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: .5px; }
.boot-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.login-brand .seal {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gov-700), var(--gov-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; overflow: hidden;
}
.login-brand .seal img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 布局 ============ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(180deg, #123E7C 0%, #0B2C5E 100%);
  color: #CFDEF4; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(74,147,224,.28), transparent 70%);
}
.brand {
  display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10); position: relative; z-index: 1;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: #fff; color: var(--gov-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.brand-sub { color: rgba(207,222,244,.7); font-size: 11px; letter-spacing: .6px; }

.nav { flex: 1; padding: 10px 10px 16px; overflow-y: auto; position: relative; z-index: 1; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }
.nav-group {
  font-size: 11px; color: rgba(207,222,244,.55); letter-spacing: 1.4px;
  padding: 16px 12px 6px; font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13.5px; color: rgba(220,232,248,.86);
  transition: background .16s, color .16s; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.16); color: #fff; font-weight: 600;
  box-shadow: inset 3px 0 0 #fff;
}
.nav-item .ico {
  width: 18px; display: inline-flex; align-items: center; justify-content: center;
  opacity: .92; flex-shrink: 0;
}
.nav-item .badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 11px; padding: 0 6px; border-radius: 9px; line-height: 17px; min-width: 18px; text-align: center;
}
.sidebar-foot {
  padding: 12px 18px; font-size: 11px; color: rgba(207,222,244,.5);
  border-top: 1px solid rgba(255,255,255,.10); position: relative; z-index: 1;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; color: var(--text); }
.topbar h1::before {
  content: ''; display: inline-block; width: 3px; height: 14px;
  background: var(--gov-700); border-radius: 2px; margin-right: 9px; vertical-align: -2px;
}
.topbar .right { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gov-700), var(--gov-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.content { padding: 18px 22px 40px; flex: 1; }

/* ============ 卡片 ============ */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D5DEEB; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 3px; height: 13px; background: var(--gov-700); border-radius: 2px; }
.card-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-foot {
  margin: 14px -20px -18px; padding: 12px 20px;
  border-top: 1px solid var(--line-2); background: #FAFCFF;
  border-radius: 0 0 var(--radius) var(--radius);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ============ 指标卡 ============ */
.stat {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gov-700);
}
.stat.blue::before   { background: var(--gov-700); }
.stat.teal::before   { background: var(--teal); }
.stat.gold::before   { background: var(--gold); }
.stat.red::before    { background: var(--red); }
.stat.purple::before { background: var(--purple); }
.stat.green::before  { background: var(--green); }
.stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value {
  font-size: 26px; font-weight: 700; letter-spacing: -.4px;
  margin: 6px 0 3px; color: var(--text); font-variant-numeric: tabular-nums;
}
.stat-value .unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stat-ico {
  position: absolute; right: 14px; top: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .2; color: var(--gov-700);
}
.stat.teal .stat-ico   { color: var(--teal); }
.stat.gold .stat-ico   { color: var(--gold); }
.stat.red .stat-ico    { color: var(--red); }
.stat.purple .stat-ico { color: var(--purple); }
.stat.green .stat-ico  { color: var(--green); }
.stat-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--red); }

/* 迷你指标块（大屏/侧栏用） */
.mini-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.mini-stat .k { font-size: 12px; color: var(--muted); }
.mini-stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ 图表 ============ */
.chart-box { width: 100%; }
.chart-box svg { width: 100%; display: block; overflow: visible; }
.chart-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px;
  font-size: 12px; color: var(--text-2);
}
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.chart-empty { text-align: center; color: var(--muted); padding: 34px 0; font-size: 13px; }

.cap-bar { height: 7px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.cap-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--gov-600); transition: width .5s; }
.cap-bar.warn > i { background: var(--gold); }
.cap-bar.danger > i { background: var(--red); }

.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.funnel-bar { flex: 1; height: 26px; background: var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.funnel-bar > i {
  display: block; height: 100%; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--gov-700), var(--gov-500)); transition: width .6s;
}

/* ============ 排行榜 ============ */
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-2);
}
.rank-item:last-child { border-bottom: none; }
.rank-no {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--line-2); color: var(--text-2);
}
.rank-no.top1 { background: var(--gold); color: #fff; }
.rank-no.top2 { background: #B9C4D4; color: #fff; }
.rank-no.top3 { background: #C89B6A; color: #fff; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: 11.5px; color: var(--muted); }
.rank-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gov-700); }
.rank-bar { height: 5px; background: var(--line-2); border-radius: 999px; margin-top: 5px; overflow: hidden; }
.rank-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gov-700), var(--gov-300)); border-radius: 999px; }

/* ============ 表格 ============ */
.tbl-wrap { overflow-x: auto; margin: 0 -20px -18px; padding: 0 20px 18px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.tbl th {
  text-align: left; color: var(--text-2); font-weight: 600; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #F7FAFD; font-size: 12.5px;
}
table.tbl th:first-child { border-top-left-radius: var(--radius-sm); }
table.tbl th:last-child { border-top-right-radius: var(--radius-sm); }
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr:hover td { background: #F5F9FE; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl .num { font-variant-numeric: tabular-nums; }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px;
  border-radius: 4px; font-size: 12px; line-height: 18px; white-space: nowrap;
  background: var(--gov-50); color: var(--gov-700); border: 1px solid #D3E2F5;
}
.tag.green  { background: var(--green-50); color: var(--green); border-color: #CBE8D3; }
.tag.gold   { background: var(--gold-50); color: #B77612; border-color: #F3E0BC; }
.tag.red    { background: var(--red-50); color: var(--red); border-color: #F3CFCE; }
.tag.gray   { background: #F1F4F8; color: var(--muted); border-color: #E3E9F2; }
.tag.purple { background: var(--purple-50); color: var(--purple); border-color: #DDD8FA; }
.tag.teal   { background: var(--teal-50); color: var(--teal); border-color: #C6EAE7; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--gov-700); background: var(--gov-700); color: #fff;
  font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn:hover { background: var(--gov-600); border-color: var(--gov-600); }
.btn:active { background: var(--gov-800); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--text-2); border-color: #D5DEEB; }
.btn.ghost:hover { color: var(--gov-700); border-color: var(--gov-500); background: var(--gov-50); }
.btn.ghost.active { color: var(--gov-700); border-color: var(--gov-700); background: var(--gov-50); font-weight: 600; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #C03A3A; border-color: #C03A3A; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: #C98416; border-color: #C98416; }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 40px; padding: 0 24px; font-size: 14.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn-link { background: none; border: none; color: var(--gov-700); cursor: pointer; padding: 0; font-size: 13px; font-family: inherit; }
.btn-link:hover { color: var(--gov-600); text-decoration: underline; }
.btn-link.danger { color: var(--red); }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px 16px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.input, .select, textarea.textarea {
  width: 100%; height: 34px; padding: 0 11px; border: 1px solid #D5DEEB;
  border-radius: var(--radius-sm); font-size: 13.5px; font-family: inherit;
  color: var(--text); background: #fff; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
textarea.textarea { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, textarea.textarea:focus {
  border-color: var(--gov-600); box-shadow: 0 0 0 3px rgba(46,123,214,.13);
}
.input::placeholder, textarea.textarea::placeholder { color: #B3BECB; }
.input.mono { font-family: "SFMono-Regular", Consolas, Menlo, monospace; letter-spacing: .5px; }
.select.sm { height: 27px; font-size: 12px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.switch input { display: none; }
.switch .track {
  width: 38px; height: 20px; border-radius: 999px; background: #C7D2E2;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--gov-700); }
.switch input:checked + .track::after { transform: translateX(18px); }
.check-line { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: var(--gov-700); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 44, 94, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  animation: fade .18s; backdrop-filter: blur(2px);
}
.modal {
  width: 560px; max-width: calc(100vw - 32px); max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: pop .2s;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.modal-body { padding: 20px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--line); background: #FAFCFF;
  border-radius: 0 0 var(--radius) var(--radius);
}
.close-x { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.close-x:hover { color: var(--text); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }

/* ============ Toast ============ */
.toasts {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  padding: 9px 16px; border-radius: var(--radius-sm); background: #fff;
  box-shadow: var(--shadow-md); font-size: 13px; display: flex; align-items: center; gap: 8px;
  animation: pop .18s; border: 1px solid var(--line);
}
.toast.success { color: var(--green); border-color: #CBE8D3; }
.toast.error { color: var(--red); border-color: #F3CFCE; }
.toast.info { color: var(--gov-700); border-color: #D3E2F5; }

/* ============ 其他通用 ============ */
.tabs { display: flex; gap: 3px; background: #EDF1F7; padding: 3px; border-radius: 8px; margin-bottom: 16px; width: fit-content; flex-wrap: wrap; }
.tabs .tab {
  padding: 6px 15px; border-radius: 6px; font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all .16s; white-space: nowrap;
}
.tabs .tab:hover { color: var(--gov-700); }
.tabs .tab.active { background: #fff; color: var(--gov-700); font-weight: 600; box-shadow: var(--shadow); }

.seg { display: inline-flex; border: 1px solid #D5DEEB; border-radius: var(--radius-sm); overflow: hidden; }
.seg > span { padding: 5px 13px; font-size: 12.5px; cursor: pointer; color: var(--text-2); background: #fff; transition: all .16s; }
.seg > span + span { border-left: 1px solid #D5DEEB; }
.seg > span.active { background: var(--gov-700); color: #fff; font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.skeleton {
  background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FD 37%, #EEF2F8 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.row-flex { display: flex; align-items: center; gap: 10px; }
.col-flex { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.b { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

/* 提示条 */
.notice {
  display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.6; border: 1px solid;
}
.notice.info { background: var(--gov-50); border-color: #D3E2F5; color: #1B4F9C; }
.notice.warn { background: var(--gold-50); border-color: #F3E0BC; color: #8A6100; }
.notice.error { background: var(--red-50); border-color: #F3CFCE; color: #A83A3A; }
.notice.ok { background: var(--green-50); border-color: #CBE8D3; color: #22713A; }

/* 键值信息表 */
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

/* 图片预览 */
.img-preview {
  width: 90px; height: 90px; border-radius: 8px; border: 1px dashed #CFD9E6;
  object-fit: cover; background: #F7FAFD; display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; flex-shrink: 0;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.share-preview {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px; display: flex; gap: 13px; background: #FAFCFF;
}
.share-preview .thumb { width: 84px; height: 84px; border-radius: 6px; background: var(--line-2); object-fit: cover; flex-shrink: 0; }

/* 激活码展示 */
.code-box {
  background: #F7FAFD; border: 1px dashed #C3D5EC; border-radius: var(--radius-sm);
  padding: 12px 14px; max-height: 300px; overflow-y: auto;
}
.code-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 0; border-bottom: 1px solid #EFF3F9; font-size: 13px;
}
.code-line:last-child { border-bottom: none; }
.code-text {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 13.5px; letter-spacing: 1px; color: var(--gov-800); font-weight: 600;
}

/* 状态点 */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--green); }
.dot.off { background: #C7D2E2; }
.dot.warn { background: var(--gold); }
.dot.err { background: var(--red); }

/* ============ 运营驾驶舱大屏 ============ */
.screen {
  position: fixed; inset: 0; overflow-y: auto; z-index: 500;
  background: radial-gradient(120% 90% at 50% 0%, #123E7C 0%, #0A2350 45%, #061733 100%);
  color: #DCE8F7; padding: 18px 22px 26px;
  font-variant-numeric: tabular-nums;
}
.screen::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    radial-gradient(60% 40% at 50% 0%, rgba(74,147,224,.18), transparent 70%);
}
.screen > * { position: relative; z-index: 1; }
.screen-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid rgba(143,185,228,.28); margin-bottom: 16px;
}
.screen-title {
  font-size: 26px; font-weight: 700; letter-spacing: 3px; color: #fff;
  text-shadow: 0 0 22px rgba(74,147,224,.65);
}
.screen-title small { display: block; font-size: 12px; letter-spacing: 2px; color: rgba(220,232,247,.6); font-weight: 400; margin-top: 3px; }
.screen-time { font-size: 13px; color: rgba(220,232,247,.75); text-align: right; }
.screen-exit {
  position: absolute; right: 22px; top: 76px; z-index: 10;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.24);
  color: #fff; border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.screen-exit:hover { background: rgba(255,255,255,.2); }

.s-panel {
  background: linear-gradient(180deg, rgba(27,79,156,.30), rgba(10,35,80,.22));
  border: 1px solid rgba(143,185,228,.26); border-radius: 8px; padding: 14px 16px;
  backdrop-filter: blur(3px); position: relative; overflow: hidden;
}
.s-panel::before, .s-panel::after {
  content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid rgba(120,180,240,.75);
}
.s-panel::before { left: 4px; top: 4px; border-right: 0; border-bottom: 0; }
.s-panel::after { right: 4px; bottom: 4px; border-left: 0; border-top: 0; }
.s-panel-title {
  font-size: 13.5px; font-weight: 600; color: #EAF2FD; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; letter-spacing: .5px;
}
.s-panel-title::before { content: ''; width: 3px; height: 12px; background: #5AA9E6; border-radius: 2px; }

.s-kpi {
  background: linear-gradient(135deg, rgba(46,123,214,.34), rgba(11,44,94,.20));
  border: 1px solid rgba(143,185,228,.30); border-radius: 8px;
  padding: 13px 15px; position: relative; overflow: hidden;
}
.s-kpi::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 74px; height: 74px;
  border-radius: 50%; background: rgba(90,169,230,.20);
}
.s-kpi .k { font-size: 12px; color: rgba(220,232,247,.72); position: relative; z-index: 1; }
.s-kpi .v {
  font-size: 30px; font-weight: 700; color: #fff; margin: 4px 0 2px;
  position: relative; z-index: 1; text-shadow: 0 0 16px rgba(90,169,230,.5);
}
.s-kpi .v small { font-size: 13px; font-weight: 500; color: rgba(220,232,247,.7); margin-left: 3px; }
.s-kpi .s { font-size: 11.5px; color: rgba(160,200,240,.8); position: relative; z-index: 1; }
.s-kpi.teal { background: linear-gradient(135deg, rgba(0,168,156,.30), rgba(11,44,94,.20)); }
.s-kpi.teal .v { text-shadow: 0 0 16px rgba(0,168,156,.5); }
.s-kpi.gold { background: linear-gradient(135deg, rgba(224,149,27,.28), rgba(11,44,94,.20)); }
.s-kpi.gold .v { text-shadow: 0 0 16px rgba(224,149,27,.45); }
.s-kpi.red { background: linear-gradient(135deg, rgba(214,69,69,.28), rgba(11,44,94,.20)); }

.s-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px dashed rgba(143,185,228,.16); font-size: 12.5px;
}
.s-row:last-child { border-bottom: none; }
.s-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: rgba(220,232,247,.8); }
.s-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.s-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border-radius: 4px; font-size: 11px;
  background: rgba(90,169,230,.20); color: #BBD8F5; border: 1px solid rgba(143,185,228,.3);
}
.s-tag.red { background: rgba(214,69,69,.22); color: #F3B8B8; border-color: rgba(214,69,69,.4); }
.s-tag.gold { background: rgba(224,149,27,.22); color: #F5D9A8; border-color: rgba(224,149,27,.4); }
.s-grid { display: grid; gap: 14px; }
.s-scroll { max-height: 250px; overflow-y: auto; }
.s-scroll::-webkit-scrollbar-thumb { background: rgba(143,185,228,.35); }
@keyframes s-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.s-panel, .s-kpi { animation: s-fade-up .45s ease both; }

/* ============ 响应式 ============ */
@media (max-width: 1400px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; }
  .brand, .sidebar-foot, .nav-group { display: none; }
  .nav { display: flex; padding: 8px; }
  .nav-item { white-space: nowrap; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .content, .topbar { padding-left: 14px; padding-right: 14px; }
  .screen { padding: 14px; }
  .screen-title { font-size: 19px; letter-spacing: 1.5px; }
}
