:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --line: #d2d2d7;
  --line-soft: rgba(0,0,0,0.06);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --primary: #0071e3;
  --primary-d: #0077ed;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9f0a;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.18);
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航（苹果风毛玻璃） ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 100;
}
.brand {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
  background: linear-gradient(90deg, #0071e3, #42a5f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }

/* ===== 按钮 ===== */
.btn {
  border: 1px solid transparent; background: #e8e8ed; color: var(--text);
  padding: 7px 15px; border-radius: 980px; cursor: pointer; font-size: 13px;
  font-family: inherit; font-weight: 500; transition: .18s ease; line-height: 1.2;
}
.btn:hover { background: #dededf; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0,113,227,.3); }
.btn.primary:hover { background: var(--primary-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.btn.danger { color: var(--red); background: #fff; border-color: rgba(255,59,48,.3); }
.btn.danger:hover { background: #fff0ef; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 980px; }

/* ===== 主容器 ===== */
.container { max-width: 1480px; margin: 0 auto; padding: 28px 24px 48px; }

/* ===== 统计卡片 ===== */
.stat-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.09); }
.stat .num { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: 1px; font-weight: 500; }

/* ===== 面板 ===== */
.panel {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px; background: #fafafc; border-bottom: 1px solid var(--line-soft);
}
.filter-bar label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.filter-bar select {
  padding: 8px 12px; border: 1px solid #e0e0e5; border-radius: 9px; font-size: 13px;
  font-family: inherit; min-width: 140px; background: #fff; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.filter-bar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.filter-bar .btn.sm { padding: 8px 14px; font-size: 12.5px; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  background: #fafafc;
  border-bottom: 1px solid #e4e4e9;
}
td:last-child, th:last-child { border-right: none; }
tbody tr:nth-child(even) td { background: #fbfbfd; }
tbody tr:hover td { background: #f0f6ff; }
tbody tr:last-child td { border-bottom: none; }
td a { color: var(--primary); text-decoration: none; }
td a:hover { text-decoration: underline; }
.url-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-cell { max-width: 150px; white-space: normal !important; overflow: visible; text-overflow: clip; padding: 10px 12px; }
.status-cell .t { color: #e5484d; font-size: 11px; margin-top: 4px; line-height: 1.4; word-break: break-all; white-space: normal; }
.empty { text-align: center; color: var(--muted); padding: 44px; font-size: 14px; }
.empty.stats-err { padding: 28px 18px; color: var(--text); }
.empty.stats-err button { margin-top: 8px; }

/* ===== 状态徽标（柔和苹果色） ===== */
.badge { display: inline-block; padding: 3px 11px; border-radius: 980px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.badge.ok { background: #e8f9ee; color: #1d8a4d; }
.badge.changed { background: #fff4e5; color: #b25000; }
.badge.error { background: #ffeceb; color: #d70015; }
.badge.pending { background: #f2f2f7; color: var(--muted); }
.badge.compact { background: #e8f9ee; color: #1d8a4d; }
.badge.api { background: #efe7ff; color: #6a35d6; }
.badge.browser { background: #e3f2fd; color: #1565c0; }
.badge.direct { background: #e0f2f1; color: #00796b; }
.badge.group { background: #e8f9ee; color: #1d8a4d; }
.badge.no-group { background: #ffeceb; color: #d70015; }
.badge.group-def { background: #f2f2f7; color: var(--muted); }

/* ===== 分组通知机器人卡片 ===== */
.sb-list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 12px; }
.sb-item { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; background: #fbfbfd; transition: box-shadow .2s; }
.sb-item:hover { box-shadow: var(--shadow); }
.sb-item.new { background: #f0f6ff; border-style: dashed; border-color: #b9d2ff; }
.sb-item.legacy-import { background: #fffbeb; border-color: #f5c518; }
.sb-fields { display: grid; grid-template-columns: 1.4fr 1.4fr 1.4fr 1.4fr; gap: 10px 14px; }
.sb-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.sb-fields input { width: 100%; padding: 8px 11px; border: 1px solid #e0e0e5; border-radius: 9px; font-size: 13px; font-family: inherit; background: #fff; transition: border-color .18s, box-shadow .18s; }
.sb-fields input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sb-status { font-size: 12.5px; color: var(--muted); }
.mode-select { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 18px; margin: 4px 0 10px; background: #fbfbfd; }
.mode-select legend { font-weight: 600; color: var(--muted); padding: 0 6px; font-size: 13px; }
.mode-select .radio { display: block; margin: 9px 0; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.mode-select .radio input { margin-right: 8px; accent-color: var(--primary); }

/* ===== 接口模式字段 ===== */
#api-fields textarea { width: 100%; padding: 9px 11px; border: 1px solid #e0e0e5; border-radius: 9px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; box-sizing: border-box; background: #fff; transition: border-color .18s, box-shadow .18s; }
#api-fields textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.api-filter { border: 1px dashed #d9d9de; border-radius: var(--radius); padding: 12px 16px 16px; margin: 8px 0 2px; background: #fbfbfd; }
.api-filter legend { font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.api-filter .row { margin-top: 10px; }
.table-wrap table { width: 100%; }
.table-wrap th:nth-child(1), .table-wrap td:nth-child(1) { width: 12%; }
.table-wrap th:nth-child(2), .table-wrap td:nth-child(2) { width: 17%; }
.table-wrap th:nth-child(3), .table-wrap td:nth-child(3) { width: 9%; }
.table-wrap th:nth-child(4), .table-wrap td:nth-child(4) { width: 8%; }
.table-wrap th:nth-child(5), .table-wrap td:nth-child(5) { width: 5%; }
.table-wrap th:nth-child(6), .table-wrap td:nth-child(6) { width: 8%; }
.table-wrap th:nth-child(7), .table-wrap td:nth-child(7) { width: 6%; }
.table-wrap th:nth-child(8), .table-wrap td:nth-child(8) { width: 7%; }
.table-wrap th:nth-child(9), .table-wrap td:nth-child(9) { width: 10%; }
.table-wrap th:nth-child(10), .table-wrap td:nth-child(10) { width: 10%; }
.table-wrap th:nth-child(11), .table-wrap td:nth-child(11) { width: auto; min-width: 130px; overflow: visible; }

.ops { display: flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }

/* ===== 弹窗（毛玻璃背景 + 白色圆角卡） ===== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card); border-radius: 20px; width: 480px; max-width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: modalPop .25s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes modalPop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-card.wide { width: 640px; }
.modal-card.monitor-card { width: 600px; }
/* 全局设置弹窗加宽 */
#settingsModal .modal-card { width: 720px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.modal-head .x { border: none; background: #e8e8ed; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: .15s; line-height: 1; }
.modal-head .x:hover { background: #dcdce1; color: var(--text); }
.modal-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-body hr { border: none; border-top: 1px solid var(--line-soft); margin: 4px 0; }
.modal-body h4 { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select {
  padding: 10px 12px; border: 1px solid #e0e0e5; border-radius: 10px; font-size: 13.5px;
  font-family: inherit; background: #fff; color: var(--text); transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.row { display: flex; gap: 14px; }
.row label { flex: 1; }
.tip { font-size: 12.5px; color: var(--muted); background: #f5f5f7; padding: 10px 13px; border-radius: 10px; margin: 0; line-height: 1.6; }

/* ===== 选择器测试 ===== */
.selector-row { display: flex; gap: 10px; align-items: center; }
.selector-row input { flex: 1; }
.test-result { margin-top: 4px; padding: 14px; border-radius: 12px; font-size: 13px; max-height: 300px; overflow-y: auto; line-height: 1.6; }
.test-result.ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.test-result.err { background: #fef2f2; border: 1px solid #fecaca; }
.test-result .tr-header { font-weight: 700; margin-bottom: 8px; color: var(--text); }
.test-result .tr-item { padding: 5px 0; border-bottom: 1px dashed #e2e8f0; }
.test-result .tr-item:last-child { border-bottom: none; }
.test-result .tr-title { color: var(--text); word-break: break-all; }
.test-result .tr-href { color: var(--primary); font-size: 11.5px; word-break: break-all; opacity: .8; }
.test-result .tr-diag { font-size: 12px; background: #fffbeb; border-radius: 6px; padding: 7px 9px; margin-top: 3px; }
.test-result .tr-diag code { background: #fef3c7; padding: 1px 5px; border-radius: 3px; font-size: 11.5px; }
.test-result .tr-rawhtml { margin-top: 3px; background: #1e293b; border-radius: 6px; overflow: hidden; }
.test-result .tr-rawhtml summary { padding: 7px 11px; cursor: pointer; font-size: 11.5px; color: #94a3b8; user-select: none; }
.test-result .tr-rawhtml pre { padding: 9px 11px; margin: 0; font-size: 11px; color: #e2e8f0; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; }
.test-result .tr-empty { color: var(--muted); font-style: italic; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(29,29,31,0.92); backdrop-filter: blur(10px); color: #fff;
  padding: 12px 22px; border-radius: 980px; font-size: 13.5px; z-index: 999;
  box-shadow: 0 8px 28px rgba(0,0,0,.3); font-weight: 500;
}
.toast[hidden] { display: none; }
.toast.err { background: rgba(255,59,48,0.95); }
.toast.ok { background: rgba(52,199,89,0.95); }

/* ===== 历史弹窗 ===== */
.hist-item { border-left: 3px solid var(--primary); padding: 10px 14px; margin-bottom: 12px; background: #fbfbfd; border-radius: 0 12px 12px 0; }
.hist-item .t { font-size: 12.5px; color: var(--muted); }
.hist-item .c { margin-top: 5px; line-height: 1.5; }
.hist-item ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }

/* ===== 分页栏 ===== */
.pager {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line-soft);
  background: #fafafc; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.pager .spacer { flex: 1; }
.pager label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }
.pager select { padding: 6px 10px; border: 1px solid #e0e0e5; border-radius: 9px; font-family: inherit; background: #fff; }
.pager select:focus { outline: none; border-color: var(--primary); }

/* ===== 批量添加 ===== */
.batch-card { width: 940px; max-width: 95vw; }
.batch-defaults {
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 16px; background: #fbfbfd;
}
.batch-defaults legend { font-size: 13px; font-weight: 600; color: var(--primary); padding: 0 6px; }
.batch-defaults .row label { min-width: 0; }
.batch-table-wrap {
  overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius);
  max-height: 45vh; overflow-y: auto;
}
.batch-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.batch-table th {
  position: sticky; top: 0; z-index: 2;
  background: #f5f5f7; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 11px 8px; border-bottom: 1px solid #e0e0e5; white-space: nowrap;
}
.batch-table td { padding: 5px 6px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
.batch-table .b-in {
  width: 100%; padding: 8px 9px; border: 1px solid #e0e0e5; border-radius: 8px;
  font-size: 12.5px; font-family: inherit; background: #fff; transition: .15s;
}
.batch-table .b-in:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.col-name { width: 22%; }
.col-url { width: 26%; }
.col-r1, .col-r2, .col-r3 { width: 11%; }
.col-sel { width: 20%; }
.col-op { width: 36px; text-align: center; }
.col-op .btn { padding: 5px 9px; font-size: 12px; line-height: 1; }

.batch-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.batch-hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ===== 设置弹窗 Tab ===== */
.settings-tabs {
  display: flex; gap: 4px; padding: 16px 24px 0;
  border-bottom: 1px solid var(--line-soft); background: #fafafc;
}
.settings-tabs .tab {
  border: 1px solid transparent; border-bottom: none;
  background: transparent; color: var(--muted);
  padding: 10px 18px; border-radius: 10px 10px 0 0; cursor: pointer;
  font-size: 13.5px; font-weight: 600; transition: .15s; margin-bottom: -1px; font-family: inherit;
}
.settings-tabs .tab:hover { color: var(--text); }
.settings-tabs .tab.active {
  background: var(--card); color: var(--primary);
  border-color: var(--line-soft); border-bottom: 1px solid var(--card);
}
.tab-panel { }
.tab-panel[hidden] { display: none; }

/* ===== 主题切换按钮 / Logo ===== */
.logo-dot { display:inline-block; width:18px; height:18px; border-radius:6px; background:linear-gradient(135deg,var(--primary),#42a5f5); margin-right:8px; vertical-align:-3px; }
.btn.ghost.active { color: var(--primary); background: rgba(0,113,227,.1); }

/* ===== 深色模式 token 覆盖 ===== */
[data-theme="dark"] {
  --bg: #1c1c1e;
  --card: #2c2c2e;
  --line: #3a3a3c;
  --line-soft: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --primary: #0a84ff;
  --primary-d: #409cff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.6);
}
[data-theme="dark"] .topbar { background: rgba(28,28,30,0.72); border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background:#3a3a3c; color:var(--text); border-color:#48484a; }
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus { border-color:var(--primary); }
[data-theme="dark"] .filter-bar,
[data-theme="dark"] .pager,
[data-theme="dark"] th,
[data-theme="dark"] .settings-tabs { background:#232325; }
[data-theme="dark"] tbody tr:nth-child(even) td { background:#262628; }
[data-theme="dark"] tbody tr:hover td { background:#2f3a4a; }
[data-theme="dark"] .tip { background:#2c2c2e; color:var(--muted); }
[data-theme="dark"] .sb-item,
[data-theme="dark"] .batch-defaults,
[data-theme="dark"] .mode-select,
[data-theme="dark"] .api-filter { background:#2a2a2c; }
[data-theme="dark"] .test-result.ok { background:#16331f; border-color:#1f5e34; }
[data-theme="dark"] .test-result.err { background:#3a1d1d; border-color:#7a2b2b; }
[data-theme="dark"] .toast { background: rgba(0,0,0,0.85); }
[data-theme="dark"] .modal-card,
[data-theme="dark"] .modal-head,
[data-theme="dark"] .modal-foot { background: var(--card); }

/* ===== 搜索框 ===== */
.search-label { min-width: 220px; }
.search-label input { width: 100%; }

/* ===== 实时更新条 ===== */
.live-bar { display:flex; align-items:center; gap:10px; margin:-6px 0 12px; font-size:12.5px; color:var(--muted); }
.live-dot { width:9px; height:9px; border-radius:50%; background:var(--green); animation:pulse 2s infinite; }
.live-dot.paused { background:var(--muted); animation:none; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,199,89,.5);} 70%{box-shadow:0 0 0 6px rgba(52,199,89,0);} 100%{box-shadow:0 0 0 0 rgba(52,199,89,0);} }
.live-bar .live-sub { margin-left:2px; }
.live-bar #btn-pause { margin-left:auto; }

/* ===== 仪表盘栅格 ===== */
.dash-grid { display:grid; grid-template-columns: 1.6fr 1fr; gap:12px; margin-bottom:16px; }
@media (max-width: 920px) { .dash-grid { grid-template-columns:1fr; } }

/* ===== 实时动态 feed ===== */
.feed-list { display:flex; flex-direction:column; max-height:300px; overflow-y:auto; padding:4px 0; }
.feed-item { display:grid; grid-template-columns:60px 1fr auto; gap:10px; align-items:center; padding:8px 16px; border-bottom:1px solid var(--line-soft); cursor:pointer; transition:background .15s; }
.feed-item:last-child { border-bottom:none; }
.feed-item:hover { background:rgba(0,113,227,.06); }
.feed-time { font-size:12px; color:var(--muted); }
.feed-name { font-size:13.5px; font-weight:500; color:var(--text); }
.feed-msg { font-size:12.5px; color:var(--muted); margin-top:2px; }

/* ===== 状态分布 ===== */
.status-dist { padding:12px 16px; }
.sd-bar { display:flex; height:14px; border-radius:7px; overflow:hidden; background:var(--line-soft); }
.sd-seg { height:100%; }
.sd-legend { display:flex; flex-wrap:wrap; gap:10px 12px; margin-top:10px; font-size:12px; color:var(--muted); }
.sd-leg { display:flex; align-items:center; gap:6px; }
.sd-leg i { width:10px; height:10px; border-radius:3px; display:inline-block; }
.panel-head.sub { border-top:1px solid var(--line-soft); }
.trend-chart { padding:4px 12px 12px; }

/* ===== KPI 卡片已精简：无图标、无 sparkline ===== */

/* ===== 推送预览（企微风格）===== */
.preview-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.preview-note { font-size:12px; color:var(--muted); }
.wecom-preview { margin-top:2px; }
.wecom-card { border:1px solid var(--line-soft); border-radius:12px; overflow:hidden; background:#f7f7f8; }
[data-theme="dark"] .wecom-card { background:#1f1f21; }
.wecom-head { font-size:12px; color:var(--muted); padding:8px 12px; background:rgba(0,0,0,.04); border-bottom:1px solid var(--line-soft); }
.wecom-bubble { padding:12px 14px; font-size:13.5px; line-height:1.7; color:var(--text); }
.wecom-bubble ul { margin:6px 0 0; padding-left:18px; }
.wecom-bubble .md-h { font-weight:600; margin:6px 0 2px; }
.wecom-bubble .md-p { margin:2px 0; }
.wecom-bubble.err { color:var(--red); }
.wecom-bubble.loading { color:var(--muted); }
.wecom-bubble a { color:var(--primary); }

/* ===== 空状态引导 ===== */
.guide-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:22px; }
@media (max-width:760px) { .guide-steps { grid-template-columns:1fr; } }
.guide-step { display:flex; gap:12px; }
.gs-num { flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; }
.guide-step b { font-size:14px; }
.guide-step p { margin:4px 0 0; font-size:12.5px; color:var(--muted); line-height:1.6; }
.guide-cta { grid-column:1/-1; padding:0 22px 22px; }

/* ===== 响应式：窄屏表格转卡片 ===== */
@media (max-width: 760px) {
  #monitorTable, #monitorTable thead, #monitorTable tbody, #monitorTable tr, #monitorTable td { display:block; width:100% !important; }
  #monitorTable thead { display:none; }
  #monitorTable tr { border:1px solid var(--line-soft); border-radius:12px; margin-bottom:12px; padding:6px 4px; background:var(--card); }
  #monitorTable td { border:none; padding:8px 14px; display:flex; justify-content:space-between; gap:12px; white-space:normal; text-align:right; }
  #monitorTable td::before { content:attr(data-label); color:var(--muted); font-size:12px; font-weight:600; text-align:left; }
  #monitorTable td .ops { justify-content:flex-end; }
  .filter-bar select { min-width:120px; }
  .container { padding:20px 14px 40px; }
}

