:root {
  --bg: #eef3fb;
  --panel: #ffffff;
  --panel-2: #f4f8fd;
  --line: #e4ecf6;
  --line-2: #d4e0f0;
  --text: #1d2c3f;
  --muted: #67788f;
  --dim: #93a3b8;
  --red: #f5493d;
  --amber: #f7a325;
  --green: #22b573;
  --blue: #2b7cf7;
  --blue-deep: #1d63e0;
  --violet: #7c5cf0;
  --radius: 16px;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 2px 12px rgba(45, 90, 170, .07);
  --shadow-lg: 0 10px 34px rgba(45, 90, 170, .13);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

::selection { background: rgba(43, 124, 247, .18); }

/* ---------- 侧栏 ---------- */
.sidebar {
  width: 218px;
  flex: 0 0 218px;
  background: linear-gradient(180deg, #3080f7 0%, #2166ec 58%, #1c58d6 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 4px 0 22px rgba(38, 96, 210, .22);
}

.brand {
  padding: 24px 20px 18px;
}
.brand-mark {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 750; letter-spacing: .5px;
  color: #fff;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ffd45e;
  box-shadow: 0 0 0 4px rgba(255, 212, 94, .28);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,212,94,.25); }
  50% { box-shadow: 0 0 0 8px rgba(255,212,94,.08); }
}
.brand-sub {
  margin-top: 5px; font-size: 10.5px; color: rgba(255,255,255,.62);
  letter-spacing: 2px; text-transform: uppercase;
}

.nav { padding: 10px 12px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 10.5px; color: rgba(255,255,255,.55); letter-spacing: 2px;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 520;
  transition: all .16s;
  user-select: none;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.13); color: #fff; }
.nav-item.active {
  background: #fff; color: var(--blue-deep);
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(13, 50, 130, .28);
}
.nav-item .nav-ico { font-size: 15px; width: 20px; text-align: center; flex: 0 0 20px; }
.nav-badge {
  margin-left: auto; font-size: 10px; font-family: var(--mono);
  background: rgba(245, 73, 61, .92); color: #fff;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}

.sidebar-foot {
  padding: 15px 18px; font-size: 11px; color: rgba(255,255,255,.66); line-height: 1.75;
}
.dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #7dffb8; margin-right: 5px;
  box-shadow: 0 0 7px rgba(125,255,184,.9);
}

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  padding: 22px 28px 4px;
  display: flex; align-items: flex-start; gap: 16px;
}
.page-title { font-size: 24px; font-weight: 750; letter-spacing: .3px; color: #16273e; }
.page-desc { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-top: 8px; }

.pill {
  font-size: 12px; padding: 6px 13px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--mono); white-space: nowrap;
  box-shadow: var(--shadow);
}
.pill.green { color: var(--green); border-color: rgba(34,181,115,.3); background: rgba(34,181,115,.07); }
.pill.red { color: var(--red); border-color: rgba(245,73,61,.3); background: rgba(245,73,61,.06); }
.pill.amber { color: #d98324; border-color: rgba(247,163,37,.35); background: rgba(247,163,37,.08); }

.content { padding: 14px 28px 60px; max-width: 1500px; width: 100%; }

/* 顶部横幅（参考每日计划风格） */
.banner {
  background: linear-gradient(120deg, #4c96ff 0%, #2b7cf7 46%, #1a5fe8 100%);
  border-radius: 18px; padding: 22px 26px;
  display: flex; align-items: center; gap: 16px;
  color: #fff; box-shadow: 0 10px 28px rgba(38, 105, 220, .3);
  position: relative; overflow: hidden;
}
.banner::after {
  content: "🔔"; position: absolute; right: 150px; top: 50%; transform: translateY(-50%);
  font-size: 64px; opacity: .16; filter: grayscale(.2);
}
.banner-hi { font-size: 20px; font-weight: 750; letter-spacing: .3px; }
.banner-sub { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 5px; }
.banner .btn {
  margin-left: auto; background: #fff; color: var(--blue-deep);
  border-color: transparent; font-weight: 650;
  box-shadow: 0 4px 14px rgba(10, 40, 110, .25); z-index: 1;
}
.banner .btn:hover { color: #1a5fe8; transform: translateY(-1px); }

.m-ico { margin-right: 6px; font-size: 13px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--panel); border: 1px solid rgba(228, 236, 246, .8);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.card-head {
  padding: 15px 20px;
  display: flex; align-items: center; gap: 10px;
}
.card-title { font-size: 15px; font-weight: 680; letter-spacing: .2px; color: #16273e; }
.card-sub { font-size: 12px; color: var(--dim); }
.card-body { padding: 18px 20px; }

.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 780px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }

/* 指标卡 */
.metric {
  background: var(--panel); border: 1px solid rgba(228,236,246,.8);
  border-radius: var(--radius); padding: 16px 18px; position: relative;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.metric-label { font-size: 12px; color: var(--muted); letter-spacing: .5px; font-weight: 550; }
.metric-value {
  font-size: 28px; font-weight: 750; font-family: var(--mono);
  letter-spacing: -1px; margin-top: 6px; font-variant-numeric: tabular-nums;
  color: #16273e;
}
.metric-unit { font-size: 12px; color: var(--dim); margin-left: 4px; font-family: inherit; font-weight: 500; }
.metric-foot { font-size: 11.5px; color: var(--dim); margin-top: 7px; }
.metric-foot b { color: var(--muted); font-weight: 550; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-size: 11.5px; letter-spacing: .8px; color: var(--dim);
  font-weight: 600;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--panel-2);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(43, 124, 247, .035); }
tbody tr:last-child td { border-bottom: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block; font-size: 11.5px; padding: 2.5px 9px;
  border-radius: 6px; font-weight: 600; white-space: nowrap;
}
.tag.l1 { background: rgba(245,73,61,.1); color: #e03e33; border: 1px solid rgba(245,73,61,.25); }
.tag.l2 { background: rgba(247,163,37,.12); color: #d98324; border: 1px solid rgba(247,163,37,.3); }
.tag.l3 { background: rgba(43,124,247,.09); color: #1d63e0; border: 1px solid rgba(43,124,247,.24); }
.tag.ok { background: rgba(34,181,115,.1); color: #189257; border: 1px solid rgba(34,181,115,.25); }
.tag.gray { background: #f0f4fa; color: var(--muted); border: 1px solid var(--line-2); }
.tag.warn { background: rgba(247,163,37,.12); color: #d98324; border: 1px solid rgba(247,163,37,.3); }
.tag.err { background: rgba(245,73,61,.1); color: #e03e33; border: 1px solid rgba(245,73,61,.25); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 11px; font-size: 13px; font-weight: 570;
  border: 1px solid var(--line-2); background: #fff; color: var(--text);
  cursor: pointer; transition: all .16s; font-family: inherit; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(45,90,170,.06);
}
.btn:hover { border-color: var(--blue); color: var(--blue-deep); box-shadow: 0 3px 12px rgba(43,124,247,.16); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #3d8bfe, #1f66ea); border-color: transparent;
  color: #fff; box-shadow: 0 5px 16px rgba(43,124,247,.32);
}
.btn.primary:hover { color: #fff; box-shadow: 0 7px 20px rgba(43,124,247,.4); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 5.5px 12px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 表单 ---------- */
label.field { display: block; margin-bottom: 14px; }
.field-label {
  font-size: 12px; color: var(--muted); letter-spacing: .4px;
  margin-bottom: 7px; display: flex; align-items: center; gap: 6px; font-weight: 550;
}
.field-label .req { color: var(--red); }
input[type=text], input[type=search], textarea, select {
  width: 100%; background: #f7fafd; border: 1.5px solid var(--line-2);
  border-radius: 11px; color: var(--text); padding: 10px 13px;
  font-size: 13px; font-family: inherit; outline: none; transition: all .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3.5px rgba(43,124,247,.12);
}
textarea { resize: vertical; min-height: 210px; line-height: 1.75; font-size: 13px; }
select { cursor: pointer; }

/* 选项组 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 10px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 520;
  cursor: pointer; transition: all .14s; user-select: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip.on {
  background: linear-gradient(135deg, #3d8bfe, #1f66ea); border-color: transparent;
  color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(43,124,247,.25);
}
.chip.on.red {
  background: linear-gradient(135deg, #ff5f52, #e03e33);
  box-shadow: 0 3px 10px rgba(245,73,61,.25);
}

/* 分级选择 */
.level-pick { display: flex; gap: 10px; }
.level-card {
  flex: 1; padding: 11px 13px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff; transition: all .15s;
}
.level-card:hover { border-color: var(--blue); }
.level-card.on.l1 { border-color: #f5493d; background: rgba(245,73,61,.06); box-shadow: 0 3px 12px rgba(245,73,61,.14); }
.level-card.on.l2 { border-color: #f7a325; background: rgba(247,163,37,.06); box-shadow: 0 3px 12px rgba(247,163,37,.14); }
.level-card.on.l3 { border-color: #2b7cf7; background: rgba(43,124,247,.06); box-shadow: 0 3px 12px rgba(43,124,247,.14); }
.level-name { font-size: 13.5px; font-weight: 680; }
.level-desc { font-size: 10.5px; color: var(--dim); margin-top: 2px; }

/* ---------- 进度 ---------- */
.bar { height: 7px; background: #e9f0f9; border-radius: 5px; overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #4c96ff, #1f66ea);
  transition: width .5s ease;
}
.bar.green > i { background: linear-gradient(90deg, #34c98a, #18a567); }

/* 号池卡 */
.acc-card {
  background: var(--panel); border: 1px solid rgba(228,236,246,.8);
  border-radius: var(--radius); padding: 16px 17px;
  transition: all .2s; box-shadow: var(--shadow);
}
.acc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.acc-card.banned { border-color: rgba(245,73,61,.4); background: #fff7f6; }
.acc-card.standby { opacity: .92; border-style: dashed; }
.acc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.acc-name { font-size: 14px; font-weight: 680; font-family: var(--mono); color: #16273e; }
.acc-meta { font-size: 11px; color: var(--dim); font-family: var(--mono); margin-bottom: 11px; }
.acc-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 5px; }
.acc-row b { color: #16273e; font-family: var(--mono); font-weight: 570; }

.led { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.led.online { background: #22c07d; box-shadow: 0 0 6px rgba(34,192,125,.65); }
.led.resting { background: #f7a325; box-shadow: 0 0 6px rgba(247,163,37,.6); }
.led.standby { background: #5b9cf8; opacity: .75; }
.led.banned { background: #f5493d; box-shadow: 0 0 8px rgba(245,73,61,.8); }

/* 日志 */
.log-list { font-family: var(--mono); font-size: 11.8px; line-height: 1.9; max-height: 340px; overflow-y: auto; }
.log-row { display: flex; gap: 10px; padding: 3.5px 0; border-bottom: 1px dashed var(--line); }
.log-time { color: var(--dim); flex: 0 0 64px; }
.log-mod { color: var(--violet); flex: 0 0 44px; font-weight: 570; }
.log-msg { color: #3d4f66; flex: 1; word-break: break-all; }
.log-row.success .log-msg { color: #189257; }
.log-row.warn .log-msg { color: #d98324; }
.log-row.error .log-msg { color: #e03e33; }

/* 空状态 */
.empty { text-align: center; padding: 36px 20px; color: var(--dim); font-size: 13px; }

/* 分隔 */
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.small { font-size: 11.8px; }

/* 提示条 */
.notice {
  border-radius: 12px; padding: 11px 15px; font-size: 12.5px;
  border: 1px solid; display: flex; gap: 9px; align-items: flex-start; line-height: 1.65;
}
.notice.info { background: rgba(43,124,247,.06); border-color: rgba(43,124,247,.2); color: #1d63e0; }
.notice.warn { background: rgba(247,163,37,.07); border-color: rgba(247,163,37,.28); color: #b06f12; }
.notice.err { background: rgba(245,73,61,.06); border-color: rgba(245,73,61,.24); color: #e03e33; }

/* 弹层 */
.mask {
  position: fixed; inset: 0; background: rgba(23, 48, 92, .35);
  backdrop-filter: blur(4px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 620px;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15, 45, 100, .3);
}
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-body { padding: 22px; }
.modal-foot {
  padding: 15px 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 9px;
}

/* 进度大环 */
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: #e9f0f9; }
.ring .fg { stroke: url(#grad); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }

/* 迷你柱图 */
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 80px; }
.mini-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mini-bar i {
  width: 58%; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #6aa9ff, #2b7cf7);
  min-height: 3px; transition: height .4s;
}
.mini-bar span { font-size: 10px; color: var(--dim); font-family: var(--mono); }

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

/* 动画 */
.fade { animation: fade .32s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.spin {
  width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: sp .7s linear infinite; display: inline-block;
}
@keyframes sp { to { transform: rotate(360deg); } }


/* ---------------- 通道选择 ---------------- */
.chan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.chan-card {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px;
  border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer;
  background: var(--panel-2); transition: all .18s;
}
.chan-card:hover { border-color: #b9d3fb; transform: translateY(-1px); }
.chan-card.on {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f2f7ff, #eaf2ff);
  box-shadow: 0 4px 14px rgba(43, 124, 247, .13);
}
.chan-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #e8f1fe; font-size: 15px;
}
.chan-body { min-width: 0; }
.chan-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; }
.chan-sub { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.chan-dot { margin-left: auto; color: var(--blue); font-size: 15px; }

.pad-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.pad-form .btn { height: 38px; }
.steps > div {
  padding: 7px 0; font-size: 12.5px; line-height: 1.75;
  color: var(--text-2, #3d4f66); border-bottom: 1px dashed var(--line);
}
.steps > div:last-child { border-bottom: none; }

/* ---------------- 扫码弹窗 ---------------- */
.qr-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 48, 92, .42); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qr-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 360px;
  box-shadow: 0 30px 80px rgba(15, 45, 100, .32); overflow: hidden;
}
.qr-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 14px;
}
.qr-x { cursor: pointer; font-size: 20px; color: var(--muted); line-height: 1; }
.qr-body { padding: 20px; text-align: center; }
.qr-img { width: 210px; height: 210px; border-radius: 10px; border: 1px solid var(--line); }
.qr-status { margin-top: 13px; font-size: 12.5px; color: var(--text-2, #3d4f66); }
.qr-foot { padding: 12px 18px 15px; text-align: center; line-height: 1.6; }
.dot-pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); animation: dotpulse 1.2s infinite; margin-right: 4px;
}
@keyframes dotpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ==================== 响应式 / 移动端 ==================== */

.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px; border: 1px solid var(--line-2);
  background: #fff; color: var(--blue-deep);
  cursor: pointer; box-shadow: var(--shadow);
}
.menu-btn:active { transform: scale(.96); }

.backdrop {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(23, 48, 92, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.title-wrap { min-width: 0; }

/* 页面网格（桌面） */
.publish-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: start; }
.task-grid { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }

.filter-bar { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-ctl { width: 130px; padding: 6px 10px; font-size: 12px; }
.filter-ctl.wide { width: 180px; }

/* ---------- 平板 / 手机：抽屉式侧栏 ---------- */
@media (max-width: 960px) {
  body { display: block; }
  body.drawer-open { overflow: hidden; }

  .sidebar {
    position: fixed; left: 0; top: 0;
    height: 100vh; height: 100dvh;
    width: 254px; flex: none;
    z-index: 70;
    transform: translateX(-102%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 10px 0 34px rgba(15, 45, 100, .32);
    overflow-y: auto;
  }
  .sidebar.open { transform: none; }
  .backdrop.show { opacity: 1; pointer-events: auto; }

  .main { width: 100%; }
  .menu-btn { display: inline-flex; }

  .topbar {
    padding: 13px 15px 8px;
    position: sticky; top: 0; z-index: 30;
    background: rgba(238, 243, 251, .94);
    backdrop-filter: blur(10px);
    align-items: center;
    border-bottom: 1px solid rgba(228, 236, 246, .7);
  }
  .page-title { font-size: 18.5px; }
  .page-desc { font-size: 11.5px; margin-top: 1px; }
  .topbar-right { gap: 6px; padding-top: 0; }
  .topbar-right .pill:not(:last-child) { display: none; }

  .content { padding: 12px 14px 50px; }

  .publish-grid, .task-grid { grid-template-columns: 1fr; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: 1fr; }

  .card-head { padding: 13px 16px; flex-wrap: wrap; }
  .card-body { padding: 15px 16px; }
  .card-title { font-size: 14px; }

  .filter-bar { margin-left: 0; width: 100%; }
  .filter-ctl, .filter-ctl.wide { width: 100%; }

  /* 表格横向滚动，不撑破卡片 */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }
  th, td { padding: 10px 12px; }

  .banner { flex-wrap: wrap; padding: 17px 19px; gap: 12px; }
  .banner-hi { font-size: 17px; }
  .banner-sub { font-size: 11.5px; line-height: 1.6; }
  .banner::after { display: none; }
  .banner .btn { margin-left: 0; width: 100%; justify-content: center; }

  .notice { font-size: 12px; }
}

/* ---------- 窄屏手机 ---------- */
@media (max-width: 560px) {
  .grid.g4 { grid-template-columns: 1fr; }
  .metric { padding: 14px 16px; }
  .metric-value { font-size: 23px; }
  .page-desc { display: none; }
  .content { padding: 10px 12px 44px; }

  .log-list { font-size: 10.8px; line-height: 1.8; }
  .log-time { flex: 0 0 54px; }
  .log-mod { flex: 0 0 34px; }

  .level-pick { flex-direction: column; gap: 8px; }
  .level-card { width: 100%; }

  textarea { min-height: 168px; }
  .btn { padding: 9px 15px; }
  .chip { padding: 8px 13px; }

  .card-body { padding: 14px; }
  .acc-card { padding: 14px 15px; }
}

/* 通道/表单单列适配 */
@media (max-width: 960px) {
  .chan-grid { grid-template-columns: 1fr; }
  .pad-form { grid-template-columns: 1fr; }
  .qr-img { width: 180px; height: 180px; }
}
