/* ==========================================================
   动环云平台 - 样式表
   设计基调：深色工业监控风，浅色主题下依然保持清晰可读
   ========================================================== */

:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;

  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #0891b2;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-hover: 0 4px 14px rgba(15, 23, 42, .10);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ───────── 顶栏 ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  margin-left: 4px;
  letter-spacing: 0;
}

.topbar-spacer { flex: 1; }

.conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.conn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.conn-badge.live { border-color: #bbf7d0; background: var(--success-soft); color: var(--success); }
.conn-badge.live .conn-dot { background: var(--success); animation: pulse 1.8s ease-in-out infinite; }
.conn-badge.down { border-color: #fecaca; background: var(--danger-soft); color: var(--danger); }
.conn-badge.down .conn-dot { background: var(--danger); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.clock { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────── 用户菜单 ───────── */
.user-menu { position: relative; }

.user-btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 10px 0 5px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--panel);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.user-btn:hover { border-color: var(--border-strong); background: var(--panel-2); }

.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
  flex: none;
}
.user-name { font-size: 13px; color: var(--text-2); font-weight: 500; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { font-size: 9px; color: var(--text-3); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 186px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 5px;
  display: none;
  z-index: 150;
  animation: drop-in .16s ease-out;
}
.user-dropdown.show { display: block; }

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ud-head {
  padding: 9px 11px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.ud-name { font-size: 13px; font-weight: 700; }
.ud-role { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.ud-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.ud-item:hover { background: var(--panel-2); color: var(--text); }
.ud-item.ud-danger { color: var(--danger); }
.ud-item.ud-danger:hover { background: var(--danger-soft); }
.ud-sep { height: 1px; background: var(--border); margin: 5px 0; }

/* ───────── 弹窗（通用） ───────── */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(2px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }

.modal {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: modal-in .2s cubic-bezier(.22,.61,.36,1);
}
.modal.wide { max-width: 800px; }
@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.modal-title { font-size: 15px; font-weight: 700; }
.modal-spacer { flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  flex: none;
}

/* 表单 */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input, .form-row select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

.btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); background: var(--panel-2); color: var(--text); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

.form-err {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 12.5px;
  display: none;
}
.form-err.show { display: block; }

/* 用户表头操作格 */
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }

/* 日志查看 */
.log-view {
  background: #0f172a;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  max-height: 52vh;
  overflow: auto;
  white-space: pre;
}
.log-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* ───────── 布局 ───────── */
.wrap { max-width: 1480px; margin: 0 auto; padding: 20px 22px 60px; }

/* ───────── 统计卡 ───────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--border-strong);
}
.stat-card.s-primary::after { background: var(--primary); }
.stat-card.s-success::after { background: var(--success); }
.stat-card.s-danger::after  { background: var(--danger); }
.stat-card.s-info::after    { background: var(--info); }

.stat-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.stat-value {
  font-size: 24px; font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat-card.s-danger .stat-value { color: var(--danger); }
.stat-card.s-success .stat-value { color: var(--success); }

/* ───────── 区块标题 ───────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px;
}
.section-title { font-size: 15px; font-weight: 700; }
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -1px;
}
.section-count {
  font-size: 12px; color: var(--text-3);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 100px;
}
.section-spacer { flex: 1; }

/* ───────── 工具栏 ───────── */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-input {
  flex: 1; min-width: 180px; max-width: 280px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.filter-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }

.chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* ───────── 机柜卡片网格 ───────── */
.cab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.cab-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  position: relative;
  overflow: hidden;
}
.cab-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}
.cab-card.st-alarm {
  border-color: #fca5a5;
  background: linear-gradient(180deg, var(--danger-soft) 0%, #fff 42%);
  animation: alarm-glow 2.2s ease-in-out infinite;
}
.cab-card.st-offline { opacity: .62; }

@keyframes alarm-glow {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(220,38,38,.22); }
  50%      { box-shadow: var(--shadow), 0 0 0 6px rgba(220,38,38,0); }
}

.cab-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
}
.cab-icon {
  width: 34px; height: 42px;
  flex: none;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background:
    repeating-linear-gradient(180deg,
      #f1f5f9 0px, #f1f5f9 3px,
      transparent 3px, transparent 6px);
  position: relative;
}
.cab-icon::after {
  content: '';
  position: absolute; left: 6px; right: 6px; top: 6px;
  height: 3px;
  background: var(--success);
  border-radius: 2px;
  transition: background .2s;
}
.cab-card.st-alarm .cab-icon::after { background: var(--danger); }
.cab-card.st-offline .cab-icon::after { background: var(--text-3); }

.cab-title-wrap { flex: 1; min-width: 0; }
.cab-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cab-loc { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.status-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.status-tag.normal  { background: var(--success-soft); color: var(--success); }
.status-tag.alarm   { background: var(--danger-soft);  color: var(--danger); }
.status-tag.offline { background: #f1f5f9; color: var(--text-3); }
.status-tag.warning { background: var(--warning-soft); color: var(--warning); }
.status-tag.unknown { background: #f1f5f9; color: var(--text-3); }

/* 传感器读数 */
.sensor-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sensor-chip {
  flex: 1;
  min-width: 84px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
}
.sensor-chip.bad {
  background: var(--danger-soft);
  border-color: #fecaca;
}
.sensor-chip-label {
  font-size: 10px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sensor-chip-value {
  font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.sensor-chip-value small { font-size: 10px; font-weight: 400; color: var(--text-3); }
.sensor-chip.bad .sensor-chip-value { color: var(--danger); }

.cab-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-3);
  padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.leak-badge {
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 100px;
}
.leak-badge.ok  { background: var(--success-soft); color: var(--success); }
.leak-badge.bad { background: var(--danger); color: #fff; animation: blink 1s step-end infinite; }

@keyframes blink { 50% { opacity: .35; } }

/* ───────── 表格 ───────── */
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-2);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfd; }
tbody tr.row-alarm td { background: #fffafa; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ───────── 弹窗 / 抽屉 ───────── */
.mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity .2s;
}
.mask.show { display: block; opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(760px, 100%);
  background: var(--bg);
  z-index: 201;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
}
.drawer.show { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.drawer-title { font-size: 16px; font-weight: 700; }
.drawer-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.drawer-spacer { flex: 1; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--border-strong); color: var(--text); }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }

/* 图表容器 */
.chart-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.chart-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.chart-title { font-size: 13px; font-weight: 600; }
.chart-legend { display: flex; gap: 14px; margin-left: auto; font-size: 11px; color: var(--text-3); }
.chart-legend i {
  display: inline-block; width: 9px; height: 3px;
  border-radius: 2px; margin-right: 5px; vertical-align: 2px;
}
.chart-canvas-wrap { position: relative; width: 100%; height: 150px; }
.chart-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

/* 传感器明细表 */
.detail-section { margin-top: 18px; }

/* 空状态 */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-3);
}
.empty-icon { font-size: 34px; opacity: .35; margin-bottom: 8px; }

/* 提示条 */
.toast-wrap {
  position: fixed;
  top: 74px; right: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px 13px;
  font-size: 12.5px;
  animation: slide-in .22s ease-out;
  pointer-events: auto;
}
.toast.recover { border-left-color: var(--success); }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-time { font-size: 11px; color: var(--text-3); }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 页脚提示 */
.foot-note {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.9;
}
.foot-note code {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-2);
}

/* ───────── 网站页脚（含备案信息） ───────── */
.site-footer {
  margin-top: 34px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 22px 22px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* 网站名称 */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .22);
}
.footer-site-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.4;
}
.footer-site-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

/* 信息项 */
.footer-info {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-info-label {
  font-size: 11.5px;
  color: var(--text-3);
}
.footer-info-value {
  font-size: 12.5px;
  color: var(--text-2);
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0 16px;
}

/* 版权 + 备案号 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 12.5px;
  color: var(--text-3);
}

.footer-icp {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ⚠️ 备案号样式：保证清晰可见（工信部核查要求） */
.icp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-2);
  text-decoration: none;
  font-size: 12.5px;
  transition: color .16s, border-color .16s, background .16s;
  white-space: nowrap;
}
.icp-link:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: var(--primary-soft);
}
.icp-icon {
  width: 13px; height: 13px;
  flex: none;
  opacity: .7;
}
.icp-link:hover .icp-icon { opacity: 1; }

@media (max-width: 820px) {
  .footer-inner { padding: 22px 14px 18px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-info { gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer { margin-top: 26px; }
}

/* ───────── 响应式 ───────── */
@media (max-width: 820px) {
  .topbar { padding: 0 14px; height: 54px; gap: 10px; }
  .brand-sub, .clock { display: none; }
  .wrap { padding: 14px 14px 50px; }
  .cab-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .toast-wrap { right: 12px; left: 12px; max-width: none; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 560px; }
}
