/* =========================================================
   宏哥专用导航 HonggeNav · 后台管理样式
   ========================================================= */

body { min-height: 100vh; }

.admin-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,11,.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
[data-theme="light"] .admin-top { background: rgba(242,241,238,.82); }
.admin-top .brand-mark { width: 34px; height: 34px; }
.admin-top .brand-mark svg { width: 23px; height: 23px; }
.admin-top .brand-text b { font-size: 14px; }
.top-chip { margin-left: 2px; }
.admin-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.admin-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 20px auto 60px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* ---------- 侧栏 ---------- */
.side { position: sticky; top: 88px; padding: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px; color: var(--muted);
  text-align: left;
  transition: .2s var(--ease);
}
.side-nav button i {
  font-style: normal; width: 18px; text-align: center;
  color: var(--dim); font-size: 12px;
}
.side-nav button:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.side-nav button.on {
  color: var(--ink);
  background: linear-gradient(100deg, rgba(126,233,238,.12), rgba(156,140,255,.08));
  border: 1px solid rgba(126,233,238,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.side-nav button.on i { color: var(--accent); }
.side-tip {
  margin-top: 16px; padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.025);
}
.side-tip b { font-size: 11.5px; color: var(--accent-3); letter-spacing: .08em; }
.side-tip p { margin-top: 6px; font-size: 11px; color: var(--dim); line-height: 1.65; }

/* ---------- 工作区 ---------- */
.work { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 2px 2px 0; }
.view-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.view-head p { margin-top: 5px; font-size: 12px; color: var(--dim); }
.view-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card-pad { padding: 18px 18px 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 600;
  transition: .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); color: var(--ink); transform: translateY(-1px); }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -14px var(--glow);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff8f9e; border-color: rgba(255,112,130,.3); background: rgba(255,112,130,.06); }
.btn.danger:hover { background: rgba(255,112,130,.12); color: #ffb0bb; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.btn.block { width: 100%; height: 42px; }
.btn:disabled { opacity: .55; pointer-events: none; }

.icon-act {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 8px; color: var(--dim); border: 1px solid transparent;
  transition: .2s var(--ease);
}
.icon-act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-act:hover { color: var(--ink); background: rgba(255,255,255,.06); border-color: var(--line); }
.icon-act.del:hover { color: #ff8f9e; background: rgba(255,112,130,.1); border-color: rgba(255,112,130,.3); }

/* ---------- 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-tile { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.stat-tile .k { font-size: 10.5px; letter-spacing: .12em; color: var(--dim); }
.stat-tile .v { margin-top: 6px; font: 700 28px/1.1 var(--mono); letter-spacing: -.04em; background: linear-gradient(120deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-tile .s { margin-top: 4px; font-size: 10.5px; color: var(--dim); }

/* ---------- 仪表盘 ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 12px; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row span { color: var(--dim); }
.info-row b { font-weight: 600; color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.quick { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12px; transition: .2s var(--ease); }
.quick:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.quick i { font-style: normal; color: var(--accent); }
.quick b { font-weight: 600; }
.quick small { color: var(--dim); font-size: 10px; }

.tips { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.tips li { list-style: none; display: flex; gap: 8px; }
.tips li::before { content: "·"; color: var(--accent); font-weight: 700; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.search-inp {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  min-width: 200px;
}
.search-inp input { border: 0; background: none; outline: none; font-size: 12px; width: 100%; }
.search-inp svg { width: 14px; height: 14px; stroke: var(--dim); fill: none; stroke-width: 1.7; }
.sel {
  height: 34px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-solid);
  font-size: 12px;
  outline: none;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; vertical-align: middle; }
th {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  color: var(--dim); text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { font-size: 12.5px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
tbody tr { transition: background .18s; }
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody tr:last-child td { border-bottom: 0; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-main .tile {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.cell-main .tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cell-main .txt { min-width: 0; }
.cell-main .txt b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-main .txt span { display: block; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ops { display: flex; gap: 3px; justify-content: flex-end; }
.muted { color: var(--dim); }
.dim-link { font-size: 11px; color: var(--dim); word-break: break-all; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.on { color: #7ce3b8; border-color: rgba(124,227,184,.28); background: rgba(124,227,184,.08); }
.badge.off { color: var(--dim); }
.badge.slot-banner { color: var(--accent-3); border-color: rgba(255,158,203,.28); background: rgba(255,158,203,.08); }
.badge.slot-grid { color: var(--accent); border-color: rgba(126,233,238,.28); background: rgba(126,233,238,.08); }
.badge.slot-sidebar { color: var(--accent-2); border-color: rgba(156,140,255,.3); background: rgba(156,140,255,.1); }

.empty-row { padding: 34px 16px; text-align: center; color: var(--dim); font-size: 12px; }

/* ---------- 广告预览卡 ---------- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 16px; }
.ad-item {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.03);
  transition: .25s var(--ease);
}
.ad-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ad-item .media { height: 124px; background: var(--panel-solid); overflow: hidden; }
.ad-item .media img { width: 100%; height: 100%; object-fit: cover; }
.ad-item .body { padding: 11px 12px 12px; }
.ad-item .top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ad-item .t { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-item .p { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.ad-item .p b { font: 700 14px var(--mono); color: var(--accent-3); }
.ad-item .p s { font-size: 10px; color: var(--dim); }
.ad-item .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.note-box {
  margin: 0 16px 16px; padding: 13px 14px;
  border-radius: 12px; border: 1px dashed rgba(126,233,238,.25);
  background: rgba(126,233,238,.05);
  font-size: 11.5px; color: var(--muted); line-height: 1.8;
}
.note-box b { color: var(--accent); font-weight: 600; }
.note-box ol { margin: 6px 0 0; padding-left: 18px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.field > span b { color: var(--accent-3); font-weight: 600; }
.inp, .txa, select.inp {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
[data-theme="light"] .inp, [data-theme="light"] .txa, [data-theme="light"] select.inp { background: #fff; }
.inp:focus, .txa:focus, select.inp:focus { border-color: rgba(126,233,238,.45); box-shadow: 0 0 0 3px rgba(126,233,238,.1); }
.txa { min-height: 92px; resize: vertical; line-height: 1.65; }
.inp::placeholder, .txa::placeholder { color: var(--dim); }
.hint { font-size: 10.5px; color: var(--dim); line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 2px 0; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 40px; height: 22px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  position: relative; transition: .25s;
}
.switch .track::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: .25s var(--ease);
}
.switch input:checked + .track { background: rgba(126,233,238,.25); border-color: rgba(126,233,238,.4); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.switch span { font-size: 12px; color: var(--ink-2); }

.img-field { display: flex; gap: 8px; align-items: center; }
.img-field .inp { flex: 1; }
.img-preview {
  width: 54px; height: 54px; flex: none;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  overflow: hidden; display: grid; place-items: center;
  font-size: 18px; color: var(--dim);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 登录 ---------- */
.login-wrap {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(5,6,9,.55);
  backdrop-filter: blur(6px);
}
.login-wrap[hidden] { display: none; }
.login-card { width: min(390px, 100%); padding: 30px 28px 26px; }
.login-brand { text-align: center; margin-bottom: 22px; }
.brand-mark.lg { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; }
.brand-mark.lg svg { width: 38px; height: 38px; }
.login-brand h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.login-brand p { margin-top: 6px; font-size: 11.5px; color: var(--dim); }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-err { font-size: 11.5px; color: #ff8f9e; }
.login-hint { text-align: center; font-size: 10.5px; color: var(--dim); }
.login-hint b { color: var(--ink-2); font-family: var(--mono); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(4,5,8,.66); backdrop-filter: blur(8px); }
.modal-box {
  position: relative;
  width: min(660px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: mpop .28s var(--ease);
}
@keyframes mpop { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; font-weight: 650; }
#mForm { display: flex; flex-direction: column; min-height: 0; }
.modal-body { padding: 18px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-body .span-2 { grid-column: span 2; }
.modal-err { padding: 0 18px; font-size: 11.5px; color: #ff8f9e; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }

/* ---------- 提示条 ---------- */
.toast { z-index: 95; }


/* ---------- 访问统计 ---------- */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 13.5px; font-weight: 650; letter-spacing: .01em; }
.card-head .sub { display: block; margin-top: 4px; font-size: 10.5px; color: var(--dim); font-weight: 400; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); flex: none; }
.seg button { padding: 5px 10px; border-radius: 7px; font-size: 10.5px; color: var(--dim); transition: .18s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--accent); background: rgba(126,233,238,.1); }
.traffic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.traffic-tile { padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.traffic-tile span { font-size: 10px; letter-spacing: .1em; color: var(--dim); }
.traffic-tile b { display: block; margin-top: 5px; font: 700 25px/1.05 var(--mono); letter-spacing: -.04em; color: var(--ink); }
.traffic-tile i { display: block; margin-top: 5px; font-style: normal; font-size: 10px; color: var(--dim); line-height: 1.45; }
.trend-legend { display: flex; gap: 16px; margin: 16px 0 2px; font-size: 10.5px; color: var(--dim); }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.trend-legend i.pv { background: var(--accent); }
.trend-legend i.uv { background: #a78bfa; }
.trend-bars { display: flex; align-items: stretch; gap: 2px; height: 152px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.tbar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.tbar .tbars { flex: 1; display: flex; align-items: flex-end; gap: 2px; min-height: 0; }
.tbar .tbars i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; }
.tbar .tbars i.pv { background: linear-gradient(180deg, var(--accent), rgba(126,233,238,.35)); box-shadow: 0 0 10px -2px rgba(126,233,238,.5); }
.tbar .tbars i.uv { background: linear-gradient(180deg, #b7a4ff, rgba(167,139,250,.28)); }
.tbar > span { height: 15px; margin-top: 5px; font-size: 8px; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .rk { font: 600 10px var(--mono); color: var(--dim); width: 16px; flex: none; }
.rank-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 10px -1px currentColor; }
.rank-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rank-main b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main span { font-size: 9.5px; color: var(--dim); }
.rank-bar { width: 64px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); flex: none; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; opacity: .8; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.kw { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.035); font-size: 11px; color: var(--ink-2); }
.kw b { font: 600 9px var(--mono); color: var(--accent); }
.device-row { display: grid; grid-template-columns: 54px 1fr 36px; align-items: center; gap: 10px; padding: 8px 0; font-size: 11px; color: var(--muted); }
.device-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.device-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #a78bfa); }
.device-row b { font: 600 10px var(--mono); color: var(--dim); text-align: right; }
.dash-empty { padding: 18px 2px 8px; font-size: 11px; color: var(--dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .traffic-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .admin-shell { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .side { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-nav button { width: auto; flex: none; white-space: nowrap; }
  .side-tip { display: none; }
  .admin-top { padding: 0 14px; gap: 8px; }
  .admin-top .brand-text { display: none; }
  .top-chip { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .traffic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .traffic-tile b { font-size: 21px; }
  .trend-bars { height: 120px; }
  .rank-bar { width: 46px; }
  .card-head { flex-direction: column; }
  .seg { align-self: flex-start; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body .span-2 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}

/* ---------- 站点巡检 ---------- */
.health-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 7px;
  font-size: 10px; font-weight: 600;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.health-chip i {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; background: currentColor;
  box-shadow: 0 0 8px -1px currentColor;
}
.health-chip.hp-online { color: #7ce3b8; border-color: rgba(124,227,184,.28); background: rgba(124,227,184,.08); }
.health-chip.hp-limited { color: #ffc46b; border-color: rgba(255,196,107,.28); background: rgba(255,196,107,.08); }
.health-chip.hp-down { color: #ff8f9e; border-color: rgba(255,143,158,.3); background: rgba(255,143,158,.09); }
.health-chip.hp-unknown { color: var(--dim); background: rgba(255,255,255,.02); }
.traffic-tile b small { font: 500 11px var(--mono); color: var(--dim); letter-spacing: 0; }
.health-note { max-width: 230px; font-size: 10.5px; color: var(--dim); line-height: 1.45; }
.health-note:empty::after { content: '—'; }

/* ============================================================
   浅色（白天）主题补丁：把深色专用的半透明白层换成墨色层
   ============================================================ */
[data-theme="light"] .side-nav button:hover,
[data-theme="light"] .side-nav button.on { background: rgba(20, 24, 34, .05); }
[data-theme="light"] .side-nav button.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
[data-theme="light"] .side-tip { background: rgba(20, 24, 34, .025); }
[data-theme="light"] .btn:hover { background: rgba(20, 24, 34, .05); }
[data-theme="light"] .icon-act:hover { background: rgba(20, 24, 34, .05); }
[data-theme="light"] .stat-tile { background: rgba(255, 255, 255, .62); }
[data-theme="light"] .quick { background: rgba(255, 255, 255, .55); }
[data-theme="light"] .quick:hover { background: #fff; }
[data-theme="light"] .list-row,
[data-theme="light"] .ad-item,
[data-theme="light"] .traffic-tile,
[data-theme="light"] .seg,
[data-theme="light"] .kw { background: rgba(20, 24, 34, .028); }
[data-theme="light"] tbody tr:hover { background: rgba(20, 24, 34, .035); }
[data-theme="light"] .rank-bar,
[data-theme="light"] .device-bar { background: rgba(20, 24, 34, .08); }
[data-theme="light"] .modal-foot { background: rgba(20, 24, 34, .025); }
[data-theme="light"] .img-preview { background: rgba(20, 24, 34, .04); }
[data-theme="light"] .switch i { background: rgba(20, 24, 34, .16); }
[data-theme="light"] .health-chip.hp-unknown { background: rgba(20, 24, 34, .04); }
[data-theme="light"] .modal-mask { background: rgba(28, 32, 40, .38); }
[data-theme="light"] .login-wrap { background: radial-gradient(120% 90% at 50% 0%, #ffffff, #f2f1ee 60%, #e9e8e4); }
[data-theme="light"] .toast { background: rgba(255, 255, 255, .96); color: var(--ink); border-color: var(--line); }

/* 浅色下加强语义色的对比度 */
[data-theme="light"] .health-chip.hp-online { color: #0a7d63; background: rgba(16, 185, 129, .12); }
[data-theme="light"] .health-chip.hp-limited { color: #9a5a05; background: rgba(245, 158, 11, .16); }
[data-theme="light"] .health-chip.hp-down { color: #b3202f; background: rgba(239, 68, 68, .13); }
[data-theme="light"] .badge.on { color: #0a7d63; background: rgba(16, 185, 129, .12); }
[data-theme="light"] .badge.off { color: #6c7385; background: rgba(20, 24, 34, .06); }
[data-theme="light"] .btn.danger { color: #b3202f; border-color: rgba(179, 32, 47, .3); }
[data-theme="light"] .btn.danger:hover { background: rgba(179, 32, 47, .08); }
[data-theme="light"] .delta.up { color: #0a7d63; }
[data-theme="light"] .delta.down { color: #b3202f; }

/* 巡检勾选与批量操作 */
th.pick, td.pick { width: 34px; padding-right: 0; }
.chk { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
tbody tr.is-picked { background: rgba(110, 231, 255, .055); }
[data-theme="light"] tbody tr.is-picked { background: rgba(15, 143, 150, .07); }
.sel-bar { display: flex; align-items: center; gap: 8px; }
.sel-bar .btn { height: 28px; padding: 0 10px; font-size: 11.5px; }
.sel-info { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .02em; }
.sel-info b { color: var(--ink); }
.btn.danger { color: #ff8f9e; border-color: rgba(255, 143, 158, .32); }
.btn.danger:hover { background: rgba(255, 143, 158, .1); border-color: rgba(255, 143, 158, .5); }
.btn:disabled, .btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.confirm-msg { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }

/* 巡检表 9 列，收紧横向间距避免溢出 */
table.health-table th, table.health-table td { padding: 11px 9px; }
table.health-table th.pick, table.health-table td.pick { padding-right: 2px; }
table.health-table .health-note { max-width: 170px; }
table.health-table .cell-main .txt b { font-size: 12px; }
table.health-table .health-chip { white-space: nowrap; }
.sel-bar { margin-left: 8px; }
.sel-extra { color: var(--dim); font-size: 10.5px; }
