/* 磐石CDN 控制台 —— 设计约定（2026-11 改版，详见 docs/UI-规范.md）
   取向：国际 SaaS 控制台的质感 —— 浅色为主、留白充足、字号层级分明、细边框配柔和阴影。
   品牌色取自 logo：蓝 --accent（按钮、链接、选中态）、藏青 --ink（正文与登录页品牌区）。
   不用多色渐变、光晕、毛玻璃、渐变文字；数字用无衬线等宽数字，技术字符串（IP、CNAME、哈希）才用等宽字体。 */
/* 主题：light 浅色（默认）/ graphite 深色 / dark 纯黑。所有颜色走变量，切换主题只改这里 */
:root, [data-theme="light"] {
  --bg: #f6f8fa; --bg-2: #fafbfc; --panel: #ffffff; --panel-2: #f6f8fa; --hover: #f0f3f6; --row-hover: #f8fafc;
  --line: #e8ebef; --line-2: #d9dee5; --line-3: #b9c1cc;
  --text: #0f1f38; --text-2: #3f4d63; --dim: #66748a; --faint: #9aa6b6;
  --ok: #0b7a4b; --warn: #9a5b00; --crit: #c5303c; --info: #1a6fd4; --rx: #1a6fd4; --tx: #c2600a;
  --accent: #1a6fd4; --accent-soft: rgba(26, 111, 212, .08); --accent-line: rgba(26, 111, 212, .4);
  --primary: #1a6fd4; --on-primary: #ffffff; --primary-hover: #155fb9;
  --focus: #1a6fd4; --inp-focus: #ffffff; --sel: #1a6fd4; --track: #dfe3e9; --selection: #c8defa;
  --code-bg: #f6f8fa; --code-fg: #22304a; --mask: rgba(15, 31, 56, .36);
  --ok-line: #bfe5d3; --ok-bg: #e7f6ee; --ok-soft: #0a5c39;
  --warn-line: #f0d9a4; --warn-bg: #fdf4de; --warn-soft: #7a4700;
  --crit-line: #f4c9cd; --crit-bg: #fdecee; --crit-soft: #9c1d28;
  --info-line: #bfd8f5; --info-bg: #e8f1fc;
  --side: #ffffff; --side-text: #3f4d63; --side-dim: #8a96a8; --side-strong: #0f1f38; --side-hover: #f0f3f6; --side-on: rgba(26, 111, 212, .09); --side-on-text: #1a6fd4; --side-line: #e8ebef; --logo-k: #0a2150;
  --s1: #1a6fd4; --s2: #e07b1a; --s3: #0b9a63;
  --shadow: 0 1px 2px rgba(15, 31, 56, .04), 0 1px 1px rgba(15, 31, 56, .03); --shadow-md: 0 6px 20px -4px rgba(15, 31, 56, .12), 0 0 0 1px rgba(15, 31, 56, .05); --shadow-lg: 0 24px 48px -12px rgba(15, 31, 56, .22), 0 0 0 1px rgba(15, 31, 56, .05);
  color-scheme: light;
}
[data-theme="graphite"] {
  --bg: #17191d; --bg-2: #1b1e22; --panel: #1f2227; --panel-2: #262a30; --hover: #2a2e35; --row-hover: #23272c;
  --line: #2e333a; --line-2: #3a4049; --line-3: #4c535e;
  --text: #e6e9ed; --text-2: #b6bdc7; --dim: #8a929e; --faint: #666e7a;
  --ok: #4cc38a; --warn: #e0b04c; --crit: #f0665d; --info: #6aaaf5; --rx: #6aaaf5; --tx: #e5b05a;
  --accent: #6aaaf5; --accent-soft: rgba(106, 170, 245, .13); --accent-line: rgba(106, 170, 245, .45);
  --primary: #2f7fdc; --on-primary: #ffffff; --primary-hover: #428fe8;
  --focus: #6aaaf5; --inp-focus: #191c20; --sel: #6aaaf5; --track: #383e47; --selection: #2f5287;
  --code-bg: #15171a; --code-fg: #c4ccd6; --mask: rgba(8, 10, 13, .6);
  --ok-line: #24523c; --ok-bg: #1a2b24; --ok-soft: #a3dcc0;
  --warn-line: #5a4820; --warn-bg: #2b2517; --warn-soft: #e6cd95;
  --crit-line: #65302c; --crit-bg: #2e1d1c; --crit-soft: #f4b0a9;
  --info-line: #2b4a78; --info-bg: #1b2738;
  --side: #1b1e22; --side-text: #b6bdc7; --side-dim: #666e7a; --side-strong: #ffffff; --side-hover: #262a30; --side-on: rgba(106, 170, 245, .13); --side-on-text: #8cbcf7; --side-line: #2e333a; --logo-k: #e3ecfa;
  --s1: #6aaaf5; --s2: #e39a4c; --s3: #4cc38a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2); --shadow-md: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .04); --shadow-lg: 0 24px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}
[data-theme="dark"] {
  --bg: #0a0b0d; --bg-2: #0e1013; --panel: #121418; --panel-2: #181b20; --hover: #1c2026; --row-hover: #15181c;
  --line: #1f2329; --line-2: #2a2f37; --line-3: #3a404a;
  --text: #e1e4e8; --text-2: #a6adb7; --dim: #78808c; --faint: #555c67;
  --ok: #3fb97f; --warn: #d6a034; --crit: #f0574c; --info: #5b9dff; --rx: #5b9dff; --tx: #e0a84a;
  --accent: #6aaaf5; --accent-soft: rgba(106, 170, 245, .12); --accent-line: rgba(106, 170, 245, .45);
  --primary: #2f7fdc; --on-primary: #ffffff; --primary-hover: #428fe8;
  --focus: #6aaaf5; --inp-focus: #0c0e10; --sel: #6aaaf5; --track: #292e36; --selection: #2b4a7a;
  --code-bg: #08090b; --code-fg: #c9d1d9; --mask: rgba(0, 0, 0, .68);
  --ok-line: #1d4532; --ok-bg: #0e1c15; --ok-soft: #9ad3b5;
  --warn-line: #4a3a17; --warn-bg: #1d170a; --warn-soft: #d9bf86;
  --crit-line: #522522; --crit-bg: #1f0f0e; --crit-soft: #f0a49d;
  --info-line: #1f3556; --info-bg: #0d1626;
  --side: #0e1013; --side-text: #a6adb7; --side-dim: #555c67; --side-strong: #ffffff; --side-hover: #181b20; --side-on: rgba(106, 170, 245, .12); --side-on-text: #8cbcf7; --side-line: #1f2329; --logo-k: #e3ecfa;
  --s1: #6aaaf5; --s2: #e39a4c; --s3: #3fb97f;
  --shadow: none; --shadow-md: 0 8px 24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05); --shadow-lg: 0 24px 48px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  color-scheme: dark;
}
:root {
  --mono: "JetBrains Mono", "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --r: 10px; --rc: 7px; --ink: #0a2150;
}
svg[viewBox="0 0 24 24"] { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--selection); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--track); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .t2 { color: var(--text-2); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .crit { color: var(--crit); } .info { color: var(--info); }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 8px; }
.sp { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.small { font-size: 12px; } .tiny { font-size: 11px; }
.hide { display: none !important; }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 196px 1fr; height: 100vh; }
.app.collapsed { grid-template-columns: 56px 1fr; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; }
.nav { padding: 8px 0; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 18px; color: var(--text-2); position: relative; white-space: nowrap; }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--panel-2); }
.nav a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--text); }
.nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav .badge { margin-left: auto; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 14px; }
.side-foot { border-top: 1px solid var(--line); padding: 10px 16px; font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.collapsed .nav a span, .collapsed .brand span, .collapsed .side-foot span { display: none; }
.collapsed .nav a { padding: 0 20px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.top h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .02em; }
.top .crumb { color: var(--dim); }
.content { flex: 1; overflow: auto; padding: 18px 20px 40px; }
.content.flush { padding: 0; }

/* ---------- 面板 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.panel-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.panel-h .sub { color: var(--dim); font-size: 12px; }
.panel-b { padding: 14px; }
.panel-b.tight { padding: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-title { font-size: 12px; color: var(--dim); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 按钮与表单 ---------- */
.btn { height: 30px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: var(--line-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--crit); border-color: var(--crit-line); background: transparent; }
.btn.danger:hover { background: var(--crit-bg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn.xs { height: 22px; padding: 0 7px; font-size: 12px; border-radius: 4px; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn.icon { width: 30px; padding: 0; justify-content: center; }
.btn.sm.icon { width: 26px; }
.spin { width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field .help { font-size: 12px; color: var(--dim); line-height: 1.55; }
.inp, select.inp, textarea.inp { width: 100%; height: 32px; padding: 0 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px; color: var(--text); font: inherit; outline: none; transition: border-color .12s; }
textarea.inp { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.55; }
.inp:focus { border-color: var(--focus); background: var(--inp-focus); }
.inp.mono { font-family: var(--mono); font-size: 12.5px; }
.inp::placeholder { color: var(--faint); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.inp.sm { height: 28px; font-size: 12px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; background: var(--bg-2); }
.seg button { height: 28px; padding: 0 12px; background: transparent; border: 0; color: var(--text-2); font: inherit; cursor: pointer; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.seg button:hover:not(.on) { color: var(--text); }

.switch { position: relative; width: 32px; height: 18px; flex: none; cursor: pointer; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--track); border-radius: 9px; transition: .15s; }
.switch i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--dim); border-radius: 50%; transition: .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text-2); }
.check input { accent-color: var(--primary); }

/* 选项卡片（单选） */
.opts { display: grid; gap: 8px; }
.opt { border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; cursor: pointer; background: var(--bg-2); transition: border-color .12s, background .12s; position: relative; }
.opt:hover { border-color: var(--line-3); }
.opt.on { border-color: var(--sel); background: var(--panel-2); }
.opt .t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.opt .d { color: var(--dim); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.opt .tag { font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text-2); }
.opt.on::after { content: ""; position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--row-hover); }
.tbl tr.click { cursor: pointer; }
.tbl .acts { white-space: nowrap; text-align: right; }
.tbl .acts .btn { margin-left: 4px; }
.tbl td.num, .tbl th.num { text-align: right; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }
.empty b { display: block; color: var(--text-2); font-weight: 500; margin-bottom: 4px; font-size: 14px; }

/* ---------- 状态 ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); } .dot.info { background: var(--info); }
.dot.pulse { box-shadow: 0 0 0 0 rgba(240, 87, 76, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(240, 87, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 87, 76, 0); } }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11.5px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.badge.warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.badge.crit { color: var(--crit); border-color: var(--crit-line); background: var(--crit-bg); }
.badge.info { color: var(--info); border-color: var(--info-line); background: var(--info-bg); }
.badge.solid { background: var(--panel-2); }
.vendor { display: inline-grid; place-items: center; min-width: 34px; height: 20px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 3px; font: 600 10.5px var(--mono); color: var(--text-2); letter-spacing: .03em; background: var(--bg-2); flex: none; }
.vendor.aliyun { color: #ff8a3d; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.tencent { color: #4ea1ff; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.huawei { color: #ff5a5f; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.aws { color: #f5a623; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.cloudflare { color: #f6821f; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.godaddy { color: #2bc5b4; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.dnspod { color: #3d8bff; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.vendor.wangsu { color: #a88bff; border-color: color-mix(in srgb, currentColor 38%, transparent); }
.days { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 56px; display: inline-block; }

/* 进度条 */
.bar { height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--dim); border-radius: 2px; transition: width .4s; }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.crit > i { background: var(--crit); }
.meter { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.meter .l { color: var(--dim); } .meter .v { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 标签页 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 0 14px; height: 36px; display: flex; align-items: center; gap: 6px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.tabs .cnt { font: 11px var(--mono); color: var(--dim); }

/* 工具栏 */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .inp { width: auto; }
.search { position: relative; }
.search .inp { padding-left: 30px; width: 240px; }
.search svg { position: absolute; left: 9px; top: 8px; width: 15px; height: 15px; stroke: var(--dim); fill: none; stroke-width: 1.8; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip .n { font-family: var(--mono); opacity: .7; }

/* ---------- 抽屉 / 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: var(--mask); z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--panel); border-left: 1px solid var(--line-2); z-index: 51; display: flex; flex-direction: column; animation: slide .18s ease-out; }
.drawer.wide { width: 760px; } .drawer.xwide { width: 980px; }
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
.drawer-h { height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-f { flex: none; display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.modal { position: fixed; left: 50%; top: 18vh; transform: translateX(-50%); width: 420px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; z-index: 61; animation: pop .14s ease-out; }
.modal-mask { z-index: 60; }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } }
.modal-b { padding: 20px 20px 8px; }
.modal-b h3 { margin: 0 0 8px; font-size: 15px; }
.modal-b p { margin: 0 0 14px; color: var(--text-2); line-height: 1.6; white-space: pre-line; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; }

.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 6px; display: flex; align-items: center; gap: 9px; max-width: 560px; white-space: pre-line; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); animation: pop2 .16s; pointer-events: auto; }
@keyframes pop2 { from { transform: translateY(-6px); opacity: 0; } }

/* 代码块 */
.code { font: 12px/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: 10px 72px 10px 12px; color: var(--code-fg); white-space: pre-wrap; word-break: break-all; position: relative; }
.code .copy { position: absolute; top: 6px; right: 6px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; font-size: 13px; }
.kv > dt { color: var(--dim); } .kv > dd { margin: 0; min-width: 0; word-break: break-all; }
.note { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 6px; padding: 10px 12px; color: var(--text-2); font-size: 12.5px; line-height: 1.65; }
.note.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-soft); }
.note.crit { border-color: var(--crit-line); background: var(--crit-bg); color: var(--crit-soft); }
.note.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-soft); }
.note b { color: var(--text); }
.note ol, .note ul { margin: 6px 0 0; padding-left: 18px; }
.note li { margin: 2px 0; }
kbd { font: 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; color: var(--text-2); }

/* ---------- 总览大屏 ---------- */
.ov { display: grid; gap: 14px; }
.kpi { min-width: 0; cursor: default; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.kpi.link { cursor: pointer; } .kpi.link:hover { background: var(--row-hover); }
.kpi .k { color: var(--dim); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .v { font: 500 26px/1.25 var(--mono); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 13px; color: var(--dim); margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.kpi .s { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-mid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; }
.ov-bot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.chart { width: 100%; height: 240px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }
.bwnow { display: flex; gap: 22px; padding: 2px 0 6px; }
.bwnow .x { font: 500 18px var(--mono); font-variant-numeric: tabular-nums; }
.bwnow .x small { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: 3px; }
.bwnow .lbl { font-size: 12px; color: var(--dim); }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .bar-v { width: 3px; height: 26px; border-radius: 2px; background: var(--faint); }
.tl .nm { min-width: 0; }
.tl .nm b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl .nm span { font-size: 12px; color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl .d { font: 500 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.tl .d small { display: block; color: var(--dim); font-size: 11px; font-weight: 400; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; padding: 12px; }
.srv { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--bg-2); cursor: pointer; position: relative; transition: border-color .12s; }
.srv:hover { border-color: var(--line-2); }
.srv.offline { border-color: var(--crit-line); background: var(--crit-bg); }
.srv.offline::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--crit); border-radius: 6px 0 0 6px; }
.srv.waiting, .srv.manual { opacity: .7; }
.srv .h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.srv .h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.srv .h .ip { font: 11px var(--mono); color: var(--dim); }
.srv .meters { display: grid; gap: 5px; }
.srv .net { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
.srv .net .u { color: var(--tx); } .srv .net .d { color: var(--rx); }
.srv .off-msg { color: var(--crit); font-size: 12px; padding: 14px 0 6px; }

.acc-list { display: grid; }
.acc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
.acc-row .bal { font: 500 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.acc-row .bal small { color: var(--dim); font-weight: 400; margin-left: 3px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 44px 8px 1fr; gap: 10px; align-items: baseline; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .t { font: 11.5px var(--mono); color: var(--dim); }
.feed .dot { transform: translateY(-1px); }
.feed .msg { min-width: 0; }
.feed .msg b { font-weight: 500; }
.feed .msg span { display: block; color: var(--dim); font-size: 12px; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.clock { font: 13px var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.bigscreen .side { display: none; }
.bigscreen.app { grid-template-columns: 1fr; }
.bigscreen .content { padding: 14px; }
.bigscreen .chart { height: 280px; }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.steps .st { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.steps .st i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 11px var(--mono); font-style: normal; }
.steps .st.on { color: var(--text); } .steps .st.on i { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.steps .st.done { color: var(--text-2); } .steps .st.done i { border-color: var(--ok); color: var(--ok); }
.steps .ln { flex: 1; height: 1px; background: var(--line-2); margin: 0 12px; min-width: 20px; }

/* 进度时间线（证书签发） */
.prog { list-style: none; margin: 0; padding: 0; }
.prog li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 0 0 14px; position: relative; color: var(--dim); }
.prog li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line-2); }
.prog li:last-child::before { display: none; }
.prog li .ic { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--panel); position: relative; z-index: 1; }
.prog li.done { color: var(--text-2); } .prog li.done .ic { border-color: var(--ok); color: var(--ok); }
.prog li.cur { color: var(--text); } .prog li.cur .ic { border-color: var(--text); }
.prog li.err { color: var(--crit); } .prog li.err .ic { border-color: var(--crit); }
.prog li .ic svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.logbox { font: 12px/1.7 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; height: 260px; overflow-y: auto; color: var(--code-fg); white-space: pre-wrap; word-break: break-all; }
.logbox .e { color: var(--crit); }

.domain-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; min-height: 44px; cursor: text; }
.domain-chips:focus-within { border-color: var(--focus); }
.domain-chips .dc { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line-2); font: 12.5px var(--mono); }
.domain-chips .dc.bad { border-color: var(--crit-line); color: var(--crit); }
.domain-chips .dc button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.domain-chips .dc button:hover { color: var(--text); }
.domain-chips input { flex: 1; min-width: 180px; background: transparent; border: 0; outline: none; color: var(--text); font: 13px var(--mono); height: 28px; padding: 0 4px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pc { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.pc:last-child { border-bottom: 0; }

.vendor-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vt { border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 10px; text-align: center; cursor: pointer; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.vt:hover { border-color: var(--line-3); }
.vt.on { border-color: var(--sel); background: var(--panel-2); }
.vt .nm { font-size: 12.5px; }

.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: 100%; }
.zone-list { overflow-y: auto; }
.zone-item { padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.zone-item:hover { background: var(--hover); }
.zone-item.on { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--text); }
.zone-item b { font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-item span { font-size: 12px; color: var(--dim); }

.wallet-card .bal { font: 500 28px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wallet-card .bal small { font-size: 13px; color: var(--dim); margin-left: 4px; font-weight: 400; }

@media (max-width: 1280px) {
  .ov-mid, .ov-bot { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .g2, .g3, .g4, .frow, .frow3, .split { grid-template-columns: 1fr; }
  .drawer, .drawer.wide, .drawer.xwide { width: 100vw; }
}

/* 堆叠条（CPU 时间分布、内存构成） */
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--track); }
.stack > i { display: block; height: 100%; transition: width .4s; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--dim); }
.stack-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; border: 1px solid var(--line-2); }
.stack-legend b { color: var(--text); font-weight: 500; margin-left: 2px; }
[data-theme="light"] .panel, [data-theme="light"] .kpis { box-shadow: 0 1px 2px rgba(31, 35, 40, .04); }
[data-theme="light"] .tbl th { background: var(--panel); }
.ipc { cursor: copy; border-bottom: 1px dashed transparent; }
.ipc:hover { color: var(--text); border-bottom-color: var(--dim); }
.ipc-wrap { word-break: break-all; }
.batch-bar { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--panel-2); }
.batch-bar .chip:disabled { opacity: .45; cursor: not-allowed; }
.batch-bar .chip .dot { width: 6px; height: 6px; }
.zone-item input[type=checkbox] { accent-color: var(--primary); }
.view-sw { padding: 8px 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.view-sw select { width: 100%; }
.view-banner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 16px; font-size: 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--warn); }
.view-banner a { margin-left: auto; }

/* ---------- 磐石CDN 补充 ---------- */
.content > .page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.content > .page-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.panel + .panel, .panel + .grid, .grid + .panel, .grid + .grid, .kpis + .panel, .kpis + .grid, .note + .panel, .toolbar + .note { margin-top: 14px; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; }
.dtl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: start; }
.dtl-nav { position: sticky; top: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 0; }
.dtl-nav a { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; color: var(--text-2); position: relative; }
.dtl-nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.dtl-nav a.on { color: var(--text); background: var(--panel-2); }
.dtl-nav a.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; background: var(--text); }
.dtl-nav svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.dtl-nav .grp { padding: 10px 14px 4px; font-size: 11px; color: var(--faint); }
.opt-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.opt-row:first-child { padding-top: 2px; } .opt-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.opt-row .ot { flex: 1; min-width: 0; }
.opt-row .ot b { font-weight: 500; display: block; }
.opt-row .ot > span { color: var(--dim); font-size: 12px; display: block; margin-top: 2px; line-height: 1.6; }
.opt-row .oc { flex: none; display: flex; align-items: center; gap: 8px; }
.opt-sub { margin-top: 10px; }
.list-edit .le { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.list-edit .le .inp { flex: 1; }
.hdr-cname { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; flex-wrap: wrap; }
.hdr-cname h2 { margin: 0; font-size: 16px; font-weight: 600; }
.sel { width: 16px; } .tbl tr.on td { background: var(--panel-2); }
.price { font: 600 26px var(--mono); } .price small { font-size: 13px; color: var(--dim); font-weight: 400; }
.cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pcard.cur { border-color: var(--text-2); }
.pcard ul { margin: 0; padding-left: 16px; color: var(--text-2); font-size: 12.5px; line-height: 1.9; }
.msg-item { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.msg-item:last-child { border-bottom: 0; }
.msg-item.unread b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--info); margin-right: 7px; vertical-align: 2px; }
.msg-item .b { color: var(--dim); font-size: 12.5px; margin-top: 3px; white-space: pre-line; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .m { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--bg-2); }
.chat .m.staff { border-color: var(--info-line); background: var(--info-bg); }
.chat .m .h { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.chat .m .t { white-space: pre-wrap; word-break: break-word; }
.nav .cnt { margin-left: auto; font: 11px var(--mono); color: var(--on-primary); background: var(--crit); border-radius: 8px; padding: 0 5px; line-height: 16px; }
.rule-desc { color: var(--dim); font-size: 12px; max-width: 460px; }
.bigv { font: 500 22px var(--mono); font-variant-numeric: tabular-nums; }
.opt-row .oc { flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
/* 说明提示 */
span.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-3); color: var(--dim); font: 600 10px/1 var(--mono); cursor: help; margin-left: 5px; vertical-align: 1px; flex: none; }
.tip:hover { color: var(--text); border-color: var(--text-2); }
.tip-float { position: fixed; z-index: 200; width: max-content; max-width: min(360px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 9px 11px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); font: 400 12.5px/1.65 var(--sans); white-space: pre-line; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
.explain { margin-top: 6px; padding: 8px 10px; border-left: 2px solid var(--line-3); background: var(--bg-2); color: var(--text-2); font-size: 12.5px; line-height: 1.65; border-radius: 0 4px 4px 0; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.rule-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg2, rgba(255,255,255,.02)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid2 > .panel { min-width: 0; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }
.bar-row { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; margin: 10px 0; font-size: 13px; }
.bar-row .lbl { color: var(--text-2); } .bar-row .bar { height: 8px; } .bar-row .bar > i { background: var(--s1, #3987e5); }

/* 智能客服浮窗 */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ai-fab:hover { background: var(--primary-hover); }
.ai-fab svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.ai-fab .cnt { position: absolute; top: -3px; right: -3px; background: var(--crit); color: #fff; border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.ai-panel { position: fixed; right: 22px; bottom: 80px; z-index: 45; width: 420px; max-width: calc(100vw - 24px); height: 620px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.35); overflow: hidden; }
.ai-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ai-body, .ai-list { flex: 1; overflow-y: auto; padding: 12px; }
.ai-conv { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 6px; cursor: pointer; }
.ai-conv:hover, .ai-conv.on { background: var(--hover); }
.ai-empty p { color: var(--text-2); line-height: 1.7; margin: 4px 0 12px; }
.ai-sug { display: block; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--text-2); }
.ai-sug:hover { background: var(--hover); color: var(--text); }
.ai-msg { margin-bottom: 12px; display: flex; flex-direction: column; }
.ai-msg.user { align-items: flex-end; }
.ai-msg.user .ai-text { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px 10px 2px 10px; padding: 8px 11px; max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.ai-md { line-height: 1.7; word-break: break-word; }
.ai-md p { margin: 0 0 8px; } .ai-md ul, .ai-md ol { margin: 0 0 8px; padding-left: 20px; } .ai-md h4 { margin: 10px 0 6px; font-size: 14px; }
.ai-md code { background: var(--code-bg); color: var(--code-fg); padding: 1px 5px; border-radius: 4px; font-family: var(--mono, monospace); font-size: 12px; }
.ai-md pre { background: var(--code-bg); color: var(--code-fg); padding: 8px 10px; border-radius: 6px; overflow-x: auto; font-size: 12px; margin: 0 0 8px; }
.ai-md table { border-collapse: collapse; margin: 0 0 8px; font-size: 12px; display: block; overflow-x: auto; }
.ai-md th, .ai-md td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; white-space: nowrap; }
.ai-calls { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; }
.ai-chip svg { fill: none; stroke: var(--ok); stroke-width: 2; }
.ai-act { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 8px; padding: 9px 11px; margin: 4px 0 8px; }
.ai-typing { display: flex; gap: 4px; padding: 6px 0; } .ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: aiblink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aiblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-in { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.ai-in textarea { flex: 1; resize: none; }
.ai-foot { font-size: 11px; text-align: center; padding: 2px 0 8px; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .btn.xs { min-width: 28px; justify-content: center; }
.update-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--info-bg); border-bottom: 1px solid var(--info-line); color: var(--text); font-size: 13px; }

/* 概览公告横幅：一行，不占卡片 */
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 6px; background: var(--bg-2); font-size: 13px; min-width: 0; }
.notice-bar.warn { border-left-color: var(--warn, #d97706); }
.notice-bar.crit { border-left-color: var(--crit, #dc2626); background: var(--crit-bg); }
.notice-bar .nb-tag { flex: none; font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: var(--bg-3, rgba(127,127,127,.15)); color: var(--text-2); }
.notice-bar.warn .nb-tag { color: var(--warn-soft); background: var(--warn-bg); }
.notice-bar.crit .nb-tag { color: var(--crit-soft); background: transparent; border: 1px solid var(--crit-line); }
.notice-bar .nb-title { color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.notice-bar .nb-title:hover { text-decoration: underline; }
.notice-bar .nb-date { flex: none; color: var(--text-3, var(--text-2)); font-size: 12px; }
.notice-bar .nb-more { flex: none; font-size: 12px; cursor: pointer; color: var(--text-2); }
.notice-bar .nb-x { flex: none; border: 0; background: none; color: var(--text-3, var(--text-2)); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.notice-bar .nb-x:hover { color: var(--text); }
.notice-bar .sp { flex: 1; }
@media (max-width: 640px) { .notice-bar .nb-date { display: none; } }
/* 网格里的面板不需要「相邻面板」的上边距（否则同一行的卡片上下错位） */
.grid > .panel + .panel, .grid > .panel + .grid, .grid > .grid + .panel { margin-top: 0; }

/* CC 防护：执行顺序提示 + 子页切换 + 折叠块 */
.protect-order { margin: 0 0 10px; line-height: 1.7; }
.protect-order b { font-weight: 500; color: var(--text-2); }
.seg-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-tabs .cnt { margin-left: 6px; font-size: 11px; padding: 0 5px; border-radius: 8px; background: rgba(127,127,127,.18); }
.seg-tabs .cnt.ok { color: var(--ok); }
details.fold > summary { cursor: pointer; font-size: 12.5px; color: var(--text-2); user-select: none; }
details.fold > summary:hover { color: var(--text); }
/* 手机：指标卡两列，避免数字被截断 */
@media (max-width: 640px) { .kpis, .kpis.k5, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 缓存规则：文件类型勾选 */
.ctype-group { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.ctype-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 6px; }
.ctype-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ctype-list .chk { font-size: 12px; padding: 2px 7px; }

/* 访问日志 */
.log-search { display: flex; align-items: center; gap: 6px; flex: 1 1 280px; max-width: 420px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text-2); }
.log-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.log-search .x { border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 15px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 14px; padding: 2px 11px; font-size: 12.5px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.on { border-color: var(--text-2); }
.btn .dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--info); margin-left: 6px; vertical-align: middle; }
.log-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.log-stats > div { display: flex; align-items: baseline; gap: 5px; }
.log-stats > div b { font-size: 16px; font-weight: 600; font-family: var(--mono, monospace); }
.log-stats > div b small { font-size: 11px; font-weight: 400; margin-left: 1px; }
.log-stats > div span { font-size: 12px; color: var(--text-2); }
.log-stats > div.crit b { color: var(--crit); }
.log-wrap { max-height: calc(100vh - 300px); overflow: auto; }
.log-wrap thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.tbl.logs .meth { display: inline-block; min-width: 34px; margin-right: 6px; font-size: 10.5px; color: var(--text-2); }
.tbl.logs .meth.POST { color: var(--warn); }
.tbl.logs td.warn { color: var(--warn); }

/* 管理概览 */
.todo-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 6px; background: var(--bg-2); font-size: 13px; }
.todo-bar.ok { border-left-color: var(--ok); }
.todo-bar > b { margin-right: 6px; }
.todo-bar .todo { cursor: pointer; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); }
.todo-bar .todo:hover { border-color: var(--text-2); }
.todo-bar .todo .n { font-family: var(--mono, monospace); font-weight: 600; margin-right: 4px; }
.todo-bar .todo.crit .n { color: var(--crit); }
.todo-bar .todo.warn .n { color: var(--warn); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.ov-grid > .panel + .panel { margin-top: 0; }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } }
/* 可点击元素一律显示手型（tr.link 原来没设置，<a> 没有 href 时浏览器默认显示文字光标） */
a, .link, tr.link, .tbl tr.link td, .msg-item, .chip, .todo, [role="button"], summary, label.chk, .seg-tabs .btn { cursor: pointer; }
tr.link td .mono, tr.link td span, tr.click td span { cursor: inherit; }

/* 线路选择器 */
.lp { position: relative; }
.lp-v { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 32px; cursor: pointer; height: auto; padding: 4px 8px; }
.lp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 7px; border-radius: 4px; background: rgba(127,127,127,.16); }
.lp-tag b { cursor: pointer; font-weight: 400; color: var(--text-2); }
.lp-pop { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: 420px; max-width: 90vw; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 8px; }
.lp-cats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 2px; font-size: 12.5px; }
.lp-cats a { cursor: pointer; color: var(--text-2); }
.lp-cats a.on { color: var(--text); font-weight: 600; }
.lp-list { max-height: 300px; overflow: auto; margin-top: 6px; }
.lp-item { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.lp-item > span:first-child { flex: 1; }
.lp-item:hover, .lp-item.on { background: var(--row-hover); }

/* ================= 2026-11 改版（覆盖上面的基础规则；新样式加在这里或 pages-*.css） ================= */
html, body { font-size: 14px; line-height: 1.55; text-rendering: optimizeLegibility; }
.mono, .num { font-size: .93em; letter-spacing: 0; }
a { color: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--track); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }

/* 品牌标记：两块亮蓝 + 一块随底色变化的深色块 */
.logo { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.logo svg { width: 100%; height: 100%; stroke: none; }
.logo .lb { fill: #2a8ae0; } .logo .lk { fill: var(--logo-k); }
.ptag { font: 500 11px/1 var(--sans); font-style: normal; padding: 3px 6px; border-radius: 4px; color: var(--side-dim); background: var(--side-hover); flex: none; }

/* ---------- 侧栏 ---------- */
.app { grid-template-columns: 236px minmax(0, 1fr); }
.app.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.side { background: var(--side); border-right: 1px solid var(--side-line); color: var(--side-text); }
.side-mask { display: none; }
.brand { height: 60px; padding: 0 20px; gap: 10px; border-bottom: 0; font-size: 16px; font-weight: 650; letter-spacing: 0; color: var(--side-strong); }
.brand:hover { text-decoration: none; }
.nav { padding: 4px 12px 16px; }
.nav a { height: 36px; padding: 0 10px; margin: 1px 0; gap: 11px; border-radius: var(--rc); color: var(--side-text); font-weight: 500; }
.nav a svg { color: var(--side-dim); width: 17px; height: 17px; }
.nav a:hover { background: var(--side-hover); color: var(--side-strong); }
.nav a.on { background: var(--side-on); color: var(--side-on-text); font-weight: 600; }
.nav a.on svg { color: var(--side-on-text); }
.nav a.on::before { display: none; }
.nav-grp { padding: 18px 10px 6px; font-size: 12px; font-weight: 500; color: var(--side-dim); white-space: nowrap; overflow: hidden; }
.nav-sep { margin: 8px 6px; background: var(--side-line); }
.nav .cnt { margin-left: auto; min-width: 20px; padding: 0 6px; font: 600 11px/20px var(--sans); text-align: center; border-radius: 10px; color: #fff; background: var(--crit); }
.collapsed .brand { padding: 0; justify-content: center; } .collapsed .brand .logo { display: grid; }
.collapsed .ptag { display: none; }
.collapsed .nav { padding: 4px 10px 16px; }
.collapsed .nav a { padding: 0; justify-content: center; }
.collapsed .nav .cnt { position: absolute; top: 1px; right: 1px; min-width: 15px; line-height: 15px; font-size: 10px; padding: 0 3px; }
.collapsed .nav-grp { height: 1px; padding: 0; margin: 10px 8px; background: var(--side-line); font-size: 0; }

/* ---------- 顶栏 ---------- */
.main { background: var(--bg); }
.top { height: 60px; padding: 0 24px 0 16px; gap: 6px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-ic { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--rc); background: none; color: var(--dim); cursor: pointer; flex: none; }
.top-ic:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.top-ic svg { width: 18px; height: 18px; }
.top-ic .cnt { position: absolute; top: 3px; right: 2px; min-width: 16px; padding: 0 4px; font: 600 10px/16px var(--sans); text-align: center; border-radius: 8px; color: #fff; background: var(--crit); box-shadow: 0 0 0 2px var(--panel); }
.top-lang { width: auto; min-width: 36px; padding: 0 9px; font: 600 12.5px var(--sans); }
.lg-lang { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--rc); background: var(--panel); color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; } .lg-lang:hover { background: var(--hover); color: var(--text); }
.lg-top .sp { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-left: 6px; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.crumbs i { font-style: normal; color: var(--line-3); } .crumbs .cur { color: var(--text); font-weight: 500; }
.top-bal { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-right: 2px; border-radius: var(--rc); color: var(--dim); font-size: 13px; white-space: nowrap; }
.top-bal:hover { text-decoration: none; background: var(--hover); }
.top-bal b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.umenu { position: relative; margin-left: 6px; }
.uchip { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 5px; border: 0; border-radius: 20px; background: none; color: var(--dim); font: inherit; cursor: pointer; }
.uchip:hover, .uchip.on { background: var(--hover); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; color: #fff; background: var(--ink); }
[data-theme="graphite"] .avatar, [data-theme="dark"] .avatar { background: var(--primary); }
.who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; max-width: 140px; }
.who b { color: var(--text); font-weight: 600; font-size: 13px; max-width: 100%; } .who small { color: var(--dim); font-size: 11.5px; }
.upop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 190px; padding: 6px; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow-lg); animation: pop2 .12s ease-out; }
.upop a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--text-2); font-size: 13.5px; }
.upop a:hover { background: var(--hover); color: var(--text); text-decoration: none; } .upop a.on { color: var(--accent); }
.upop a svg { color: var(--dim); } .upop .sep { height: 1px; margin: 6px 4px; background: var(--line); }
.upop a.out:hover { color: var(--crit); } .upop a.out:hover svg { color: var(--crit); }

/* ---------- 内容区与页头 ---------- */
.content { padding: 0; }
.page { max-width: 1480px; margin: 0 auto; padding: 22px 32px 72px; }
.ph { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.ph-t { flex: 1; min-width: 0; }
.ph h1 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.ph p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }
.ph-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
.ph-a:empty { display: none; }
.tabs { gap: 24px; margin: -4px 0 18px; border-bottom: 1px solid var(--line); }
.tabs a { height: 36px; padding: 0; color: var(--dim); font-weight: 500; border-bottom-width: 2px; }
.tabs a:hover { color: var(--text); background: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tabs .cnt { min-width: 18px; padding: 0 6px; font: 600 11px/18px var(--sans); text-align: center; border-radius: 9px; background: var(--panel-2); color: var(--dim); }
.tabs a.on .cnt { background: var(--accent-soft); color: var(--accent); }
.update-bar { padding: 10px 24px; }

/* ---------- 面板 ---------- */
.panel { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel-h { height: 52px; padding: 0 20px; gap: 10px; }
.panel-h h3 { font-size: 15px; font-weight: 600; }
.panel-h .sub { font-size: 13px; }
.panel-b { padding: 20px; }
.grid { gap: 16px; }
.panel + .panel, .panel + .grid, .grid + .panel, .grid + .grid, .kpis + .panel, .kpis + .grid, .note + .panel, .toolbar + .note { margin-top: 16px; }
.grid > .panel + .panel, .grid > .panel + .grid, .grid > .grid + .panel, .ov-grid > .panel + .panel { margin-top: 0; }
.section-title { margin: 28px 0 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.section-title::after { display: none; }
.hdr-cname, .dtl-nav, .pcard { border-radius: var(--r); box-shadow: var(--shadow); }
.pcard { padding: 20px; gap: 10px; } .pcard.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- 指标卡 ---------- */
.kpis { gap: 16px; background: none; border: 0; border-radius: 0; box-shadow: none !important; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.kpi.link:hover { background: var(--panel); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.kpi .k { font-size: 13px; color: var(--dim); font-weight: 500; }
.kpi .v { margin-top: 8px; font: 650 26px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text); }
.kpi .v.crit { color: var(--crit); }
.kpi .v small { margin-left: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.kpi .s { margin-top: 6px; font-size: 12.5px; }
.bigv, .wallet-card .bal, .price { font-family: var(--sans); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis, .kpis.k5, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 14px; } .kpi .v { font-size: 21px; } }

/* ---------- 按钮与表单 ---------- */
.btn { height: 34px; padding: 0 14px; border-radius: var(--rc); border-color: var(--line-2); background: var(--panel); color: var(--text); font-weight: 500; box-shadow: 0 1px 1px rgba(15, 31, 56, .04); }
.btn:hover { background: var(--hover); border-color: var(--line-3); }
.btn.primary { border-color: var(--primary); box-shadow: 0 1px 2px rgba(15, 31, 56, .16), inset 0 1px 0 rgba(255, 255, 255, .14); font-weight: 600; }
.btn.primary:hover { border-color: var(--primary-hover); }
.btn.danger { background: var(--panel); border-color: var(--line-2); color: var(--crit); }
.btn.danger:hover { background: var(--crit-bg); border-color: var(--crit-line); }
.btn.ghost { box-shadow: none; color: var(--dim); } .btn.ghost:hover { color: var(--text); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; } .btn.xs { height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; }
.btn.icon { width: 34px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 26px; padding: 0; justify-content: center; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, .chip:focus-visible, .nav a:focus-visible, .top-ic:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.field { gap: 6px; margin-bottom: 18px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .help { font-size: 12.5px; }
.inp, select.inp, textarea.inp { height: 34px; padding: 0 11px; border-radius: var(--rc); border-color: var(--line-2); background: var(--panel); box-shadow: 0 1px 1px rgba(15, 31, 56, .03); }
textarea.inp { height: auto; padding: 8px 11px; }
.inp:hover { border-color: var(--line-3); }
.inp:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp.sm { height: 30px; font-size: 13px; }
select.inp { background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; }
select.inp.sm { background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; }
.frow, .frow3 { gap: 16px; }
.field > .seg { align-self: flex-start; }
.seg { padding: 2px; gap: 2px; border-radius: var(--rc); border-color: var(--line-2); background: var(--panel-2); overflow: visible; }
.seg button { height: 28px; padding: 0 12px; border-right: 0; border-radius: 5px; font-weight: 500; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(15, 31, 56, .12), 0 0 0 1px rgba(15, 31, 56, .04); font-weight: 600; }
.seg-tabs .btn.primary { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); box-shadow: none; }
.switch { width: 36px; height: 20px; }
.switch i { border-radius: 10px; }
.switch i::after { width: 16px; height: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:disabled + i { opacity: .5; cursor: not-allowed; }
.check input, .zone-item input[type=checkbox], .tbl input[type=checkbox] { accent-color: var(--primary); }
.opt { border-radius: var(--r); padding: 12px 14px; background: var(--panel); }
.opt.on { background: var(--accent-soft); } .opt.on::after { background: var(--accent); }
.vt { border-radius: var(--r); background: var(--panel); } .vt.on { background: var(--accent-soft); }
.domain-chips { border-radius: var(--rc); background: var(--panel); } .domain-chips:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.chk { border-radius: 6px; }

/* ---------- 表格 ---------- */
.tbl th { height: 42px; padding: 0 16px; font-size: 12.5px; font-weight: 500; color: var(--dim); background: var(--panel); }
[data-theme="light"] .tbl th { background: var(--panel); }
.tbl td { padding: 13px 16px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; } .tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.panel-b.tight > .tbl:first-child th:first-child, .panel > .tbl:first-child th:first-child { border-top-left-radius: var(--r); }
.panel-b.tight > .tbl:first-child th:last-child, .panel > .tbl:first-child th:last-child { border-top-right-radius: var(--r); }
.tbl tr.on td { background: var(--accent-soft); }
.tbl .acts .btn { margin-left: 6px; }
.empty { padding: 56px 24px; font-size: 13.5px; }
.empty-ic { width: 44px; height: 44px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 12px; color: var(--dim); background: var(--panel-2); border: 1px solid var(--line); }
.empty-ic svg { width: 20px; height: 20px; }
.empty b { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pager { padding: 12px 20px; }

/* ---------- 状态 ---------- */
.badge { height: 22px; padding: 0 8px; gap: 6px; border-radius: 6px; border-color: transparent; font-size: 12px; font-weight: 500; background: var(--panel-2); color: var(--text-2); }
.badge.ok { color: var(--ok-soft); border-color: transparent; } .badge.warn { color: var(--warn-soft); border-color: transparent; } .badge.crit { color: var(--crit-soft); border-color: transparent; } .badge.info { color: var(--info); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; }
.vendor { border-radius: 5px; }
.bar { height: 6px; border-radius: 3px; } .bar > i { border-radius: 3px; background: var(--accent); }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.crit > i { background: var(--crit); }
.toolbar { gap: 10px; margin-bottom: 16px; }
.chip, .toolbar .chip { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); font-weight: 600; }
.chip .n { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.search .inp { padding-left: 34px; width: 260px; } .search svg { left: 11px; top: 9px; width: 16px; height: 16px; }
.dtl { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.dtl-nav { padding: 8px; }
.dtl-nav a { height: 34px; padding: 0 10px; border-radius: 6px; font-weight: 500; }
.dtl-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dtl-nav a.on::before { display: none; }
.dtl-nav .grp { padding: 12px 10px 4px; font-size: 12px; color: var(--dim); }
.hdr-cname { padding: 16px 20px; margin-bottom: 20px; } .hdr-cname h2 { font-size: 18px; font-weight: 650; }
.opt-row { padding: 16px 0; } .opt-row .ot b { font-weight: 600; } .opt-row .ot > span { font-size: 13px; }
.zone-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.steps .st.on i { box-shadow: 0 0 0 4px var(--accent-soft); }
.prog li.cur .ic { border-color: var(--accent); color: var(--accent); }
.note { border-radius: var(--rc); padding: 12px 14px; font-size: 13px; background: var(--panel-2); border-color: var(--line); }
.note.warn { border-color: var(--warn-line); background: var(--warn-bg); } .note.crit { border-color: var(--crit-line); background: var(--crit-bg); } .note.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.explain { border-radius: 0 var(--rc) var(--rc) 0; font-size: 13px; }
.code, .logbox { border-radius: var(--rc); }
.notice-bar, .todo-bar { border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); padding: 12px 16px; }
.notice-bar { border-left-color: var(--accent); margin-bottom: 16px; }
.todo-bar { margin: 16px 0; } .todo-bar .todo { background: var(--panel); } .todo-bar .todo:hover { border-color: var(--accent-line); text-decoration: none; }
.srv { border-radius: var(--r); background: var(--panel); } .srv:hover { border-color: var(--line-3); box-shadow: var(--shadow); }
.tl li { padding: 11px 20px; } .feed li { padding: 10px 20px; } .acc-row { padding: 11px 20px; }
.msg-item { padding: 14px 20px; } .msg-item:hover { background: var(--row-hover); } .msg-item.unread b::before { background: var(--accent); }
.rule-card, .ctype-group, .batch-bar { border-radius: var(--r); }
.log-search { height: 34px; border-radius: var(--rc); background: var(--panel); border-color: var(--line-2); }
.log-wrap thead th { background: var(--panel); }
.kv { gap: 9px 16px; }
.chart { height: 250px; }

/* ---------- 页面排版原子类（见 docs/UI-规范.md） ---------- */
.cell-main { font-weight: 600; color: var(--text); } a.cell-main:hover { color: var(--accent); text-decoration: none; }
.cell-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--dim); }
.tbl td .row-acts, .row-acts { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.form-sec { margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); }
.form-sec:first-child { margin-top: 0; } .form-sec small { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--dim); }
.sec { margin-top: 28px; } .sec:first-child { margin-top: 0; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } .sec-h h2 { margin: 0; font-size: 16px; font-weight: 650; } .sec-h p { margin: 0; font-size: 13px; color: var(--dim); } .sec-h .sp { flex: 1; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 24px; margin: 0; }
.dl > div > dt { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; } .dl > div > dd { margin: 0; font-weight: 500; word-break: break-all; }
.inline-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; } .inline-stats > div { display: flex; align-items: baseline; gap: 6px; } .inline-stats b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; } .inline-stats span { font-size: 12.5px; color: var(--dim); }
.muted-box { padding: 14px 16px; border-radius: var(--rc); background: var(--panel-2); }

/* ---------- 抽屉 / 弹窗 / 提示 ---------- */
.drawer { border-left: 0; box-shadow: var(--shadow-lg); }
.drawer-h { height: 64px; padding: 0 24px; } .drawer-h h2 { font-size: 17px; font-weight: 650; }
.drawer-b { padding: 24px; } .drawer-f { padding: 14px 24px; background: var(--bg-2); }
.modal { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); width: 440px; }
.modal-b { padding: 24px 24px 8px; } .modal-b h3 { font-size: 17px; font-weight: 650; } .modal-f { padding: 14px 24px 20px; }
.toast { border: 0; border-radius: var(--r); padding: 11px 16px; background: var(--panel); box-shadow: var(--shadow-lg); font-weight: 500; }
.tip-float { border: 0; border-radius: var(--rc); box-shadow: var(--shadow-lg); background: var(--ink); color: #e6ecf7; }
[data-theme="graphite"] .tip-float, [data-theme="dark"] .tip-float { background: var(--panel-2); color: var(--text-2); }
.lp-pop { border: 0; border-radius: var(--r); box-shadow: var(--shadow-lg); }

/* ---------- AI 助手浮窗 ---------- */
.ai-fab { width: 50px; height: 50px; border: 0; color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(15, 31, 56, .28); transition: transform .15s; }
.ai-fab:hover { background: var(--ink); transform: translateY(-2px); }
[data-theme="graphite"] .ai-fab, [data-theme="dark"] .ai-fab { background: var(--primary); }
.ai-panel { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); bottom: 84px; }
.ai-h { padding: 14px 16px; } .ai-h b { font-size: 15px; }
.ai-msg.user .ai-text { background: var(--accent-soft); border-color: transparent; }
.ai-sug { border-radius: var(--rc); padding: 10px 12px; } .ai-sug:hover { border-color: var(--accent-line); text-decoration: none; }

/* ---------- 登录：左侧表单 + 右侧藏青品牌区 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 40%) minmax(0, 1fr); background: var(--panel); }
.lg-form { display: flex; flex-direction: column; padding: 32px 48px 28px; min-width: 0; }
.lg-top { display: flex; align-items: center; gap: 12px; }
.lg-name { display: flex; flex-direction: column; line-height: 1.3; } .lg-name b { font-size: 17px; font-weight: 650; color: var(--text); } .lg-name small { font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.login-box { width: 100%; max-width: 368px; margin: auto; padding: 32px 0; }
.login-box h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.login-box .sub { margin: 8px 0 32px; color: var(--dim); font-size: 15px; }
.login-box .field { margin-bottom: 20px; } .login-box .field > label { font-size: 13.5px; }
.lg-inp { position: relative; }
.lg-inp .inp { height: 44px; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.lg-inp .eye { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); }
.lg-inp .eye:hover { color: var(--text-2); } .lg-inp .eye.on { color: var(--accent); }
.login-box .btn.primary { width: 100%; height: 46px; margin-top: 8px; justify-content: center; border-radius: 8px; font-size: 15px; }
.lg-alt { margin-top: 22px; text-align: center; color: var(--dim); } .lg-alt a { margin-left: 4px; font-weight: 500; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--faint); }
.lg-2fa { display: inline-flex; align-items: center; gap: 6px; } .lg-2fa svg { width: 14px; height: 14px; }
.lg-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px 64px; color: #fff; background: radial-gradient(1000px 700px at 85% -10%, #1b4a9c 0%, rgba(27, 74, 156, 0) 62%), #0a2150; }
.lg-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(160deg, #000 0%, transparent 62%); -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 62%); }
.lg-hero-in { position: relative; width: 100%; max-width: 660px; }
.lg-hero h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.25; font-weight: 650; letter-spacing: .01em; }
.lg-hero .lead { margin: 0 0 36px; max-width: 560px; color: #b9c8e2; font-size: 16px; line-height: 1.75; }
.lg-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lgc { padding: 18px 20px; border-radius: 14px; background: #fff; color: #0f1f38; box-shadow: 0 24px 50px -18px rgba(2, 10, 30, .65); }
.lgc-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #3f4d63; }
.lgc-h em { font-style: normal; font-weight: 500; font-size: 12px; color: #8a96a8; } .lgc-h em.ok { color: #0b7a4b; }
.lgc-n { margin-top: 6px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .lgc-n small { margin-left: 6px; font-size: 13px; font-weight: 500; color: #66748a; letter-spacing: 0; }
.lgc-bw { grid-column: 1 / -1; } .lgc-bw svg { display: block; width: 100%; height: 96px; margin-top: 8px; }
.lgc-bw .ln { fill: none; stroke: #1a6fd4; stroke-width: 2; vector-effect: non-scaling-stroke; } .lgc-bw .ar { fill: rgba(26, 111, 212, .1); stroke: none; }
.lgc-sec ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.lgc-sec li { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: #66748a; }
.lgc-sec li i { height: 6px; border-radius: 3px; background: #edf0f4; overflow: hidden; } .lgc-sec li b { display: block; height: 100%; border-radius: 3px; background: #1a6fd4; }
.lgc-ai p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; }
.lgc-ai .q { margin-left: auto; width: fit-content; max-width: 92%; padding: 6px 10px; border-radius: 10px 10px 2px 10px; background: #e8f1fc; color: #164f96; }
.lgc-ai .a { color: #3f4d63; }
.lgc-ai .act { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 7px 8px 7px 10px; border-radius: 8px; border: 1px solid #e8ebef; font-size: 12.5px; color: #0f1f38; }
.lgc-ai .act b { padding: 3px 9px; border-radius: 5px; background: #1a6fd4; color: #fff; font-weight: 600; font-size: 12px; white-space: nowrap; }
.lg-note { margin-top: 10px; text-align: right; font-size: 11.5px; color: #6f82a8; }
.lg-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lg-points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.lg-points svg { width: 16px; height: 16px; margin-top: 3px; color: #6db3f2; stroke-width: 2.2; }
.lg-points b { display: block; font-size: 14px; font-weight: 600; } .lg-points span { display: block; margin-top: 4px; color: #9fb0cf; font-size: 12.5px; line-height: 1.65; }
@media (max-height: 820px) and (min-width: 1001px) { .lg-hero { padding: 36px 56px; } .lg-hero h1 { font-size: 32px; } .lg-hero .lead { margin-bottom: 24px; font-size: 15px; } .lgc-bw svg { height: 70px; } .lg-points span { display: none; } }
@media (max-width: 1000px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .lg-hero { display: none; }
  .lg-form { padding: 24px 22px; min-height: 100vh; }
}

/* ---------- 窄屏：侧栏改为滑出抽屉 ---------- */
@media (max-width: 860px) {
  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .2s ease-out; }
  .app.collapsed .side { width: 64px; }
  .nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .nav-open .side-mask { display: block; position: fixed; inset: 0; z-index: 69; background: var(--mask); }
  .top { padding: 0 10px 0 6px; } .who, .uchip > svg, .top-bal { display: none; } .uchip { padding: 0 5px; }
  .page { padding: 18px 14px 56px; } .ph { flex-direction: column; gap: 12px; } .ph h1 { font-size: 20px; } .ph-a { justify-content: flex-start; }
  .tabs { overflow-x: auto; gap: 20px; } .tabs a { white-space: nowrap; }
  .dtl { grid-template-columns: minmax(0, 1fr); }
}

/* 英文界面：品牌名已是英文，不再重复副标题 */
html:lang(en) .lg-name small { display: none; }
