/* ============================================================
   SiteHub 站群管理 · 浅色专业管理台主题
   主色 emerald #15966c · 背景 #f6f8fa · 文字 #182d29
   ============================================================ */

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --primary: #15966c;
  --primary-strong: #0f7d58;
  --primary-weak: #e7f4ef;
  --primary-weak-2: #f1f9f5;
  --text: #182d29;
  --text-weak: #5c6f6a;
  --text-faint: #8a9a95;
  --border: #e7ebed;
  --border-strong: #d8dee1;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 224px;
  --shadow-sm: 0 1px 2px rgba(24, 45, 41, 0.06);
  --shadow: 0 6px 20px rgba(24, 45, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(24, 45, 41, 0.16);
  --ok: #15966c;
  --warn: #c98a13;
  --bad: #d2533f;
  --info: #2f74c0;
  --warn-weak: #fdf3e0;
  --bad-weak: #fbe9e5;
  --info-weak: #e9f1fb;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.help-inline svg { width: 16px; height: 16px; }
.icon-btn > svg { width: 18px; height: 18px; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-identity { display:flex; align-items:center; gap:11px; min-width:220px; }
.site-logo { width:36px; height:36px; flex:0 0 36px; object-fit:contain; border:1px solid var(--border); border-radius:9px; background:var(--surface); }
.site-url { display:block; font-size:12px; max-width:290px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.view[data-view="seo"] .cell-actions { flex-wrap:wrap; min-width:150px; max-width:220px; }
.view[data-view="seo"] .tbl td { white-space:normal; }
.platform-section { margin:8px 0 24px; }
.platform-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; margin:0 0 12px; }
.platform-heading h2 { font-size:16px; margin:0; }
.platform-heading>span { color:var(--text-weak); font-size:12px; }
.platform-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.platform-card { padding:18px; border:1px solid var(--border); border-radius:12px; background:var(--surface); display:flex; flex-direction:column; align-items:flex-start; }
.platform-title { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.platform-title h3 { font-size:14px; margin:0; }
.platform-title a { color:var(--text); }
.platform-mark { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; background:var(--primary-weak); color:var(--primary-strong); font-size:12px; font-weight:700; }
.platform-card p { font-size:12px; color:var(--text-weak); line-height:1.8; margin:10px 0 16px; flex:1; }
.platform-links { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; font-size:12px; }
.platform-links a { display:inline-flex; gap:4px; align-items:center; }
.platform-links .ico { width:14px; height:14px; }
.evidence-card { padding:14px; margin:10px 0; background:var(--surface-2); border:1px solid var(--border); border-radius:8px; overflow-wrap:anywhere; }
.authorization { display:flex; gap:8px; align-items:flex-start; font-size:13px; margin-top:14px; }
.authorization input { width:auto; }
@media(max-width:1100px) { .platform-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .platform-grid { grid-template-columns:1fr; } }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d4dbde; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c2cbd0; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--text-faint); }

.nav { padding: 10px 10px; overflow-y: auto; flex: 1 1 auto; }
.nav-bottom { flex: 0 0 auto; border-top: 1px solid var(--border); margin-top: auto; }

.nav-group { margin: 4px 0 2px; }
.nav-group-title {
  font-size: 11px; font-weight: 600; letter-spacing: .4px;
  color: var(--text-faint); text-transform: uppercase;
  padding: 10px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text-weak); cursor: pointer;
  font-size: 13.5px; font-weight: 500;
  user-select: none; border: 1px solid transparent;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--primary-weak); color: var(--primary-strong);
  border-color: #d2ebe1;
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-item .nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: var(--primary); color: #fff; border-radius: 10px;
  padding: 1px 7px; min-width: 18px; text-align: center;
}

.sidebar-foot { border-top: 1px solid var(--border); padding: 10px; }
.usr { display: flex; align-items: center; gap: 10px; padding: 4px; }
.usr-avatar {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px;
  background: var(--primary-weak); color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.usr-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.usr-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usr-meta small { font-size: 11px; color: var(--text-faint); }

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

.topbar {
  height: 60px; flex: 0 0 60px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px; position: sticky; top: 0; z-index: 30;
}
.topbar .menu-btn { display: none; }
.view[data-view="dashboard"] .cols-2 > div > .card { height: 100%; margin-top: 0 !important; }
.view[data-view="stats"] .table-wrap { max-height: 460px; overflow: auto; }
.view[data-view="stats"] .tbl thead { position: sticky; top: 0; z-index: 2; }
@media (max-width: 768px) { .topbar .menu-btn { display: inline-flex; } }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-weak); min-width: 0; }
.crumbs .crumb { white-space: nowrap; }
.crumbs .crumb.cur { color: var(--text); font-weight: 600; }
.crumbs .sep { color: var(--border-strong); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 10px; height: 36px; width: 280px;
}
.search:focus-within { border-color: var(--primary); background: #fff; }
.search .ico { width: 16px; height: 16px; color: var(--text-faint); flex: 0 0 16px; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font: inherit; color: var(--text); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--text-weak); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .ico { width: 18px; height: 18px; }
.notif .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }

.avatar-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 2px; cursor: pointer; }
.avatar-btn:hover { border-color: var(--border-strong); }

/* 演示横幅 */
.demo-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--warn-weak); border-bottom: 1px solid #f0d9a8;
  color: #8a5b09; padding: 9px 18px; font-size: 13px;
}
.demo-banner .demo-ico .ico { width: 18px; height: 18px; color: var(--warn); }
.demo-banner .demo-text { flex: 1 1 auto; }
.demo-banner .demo-text strong { color: #6f4a07; }
.demo-close { color: #8a5b09; }

.view { padding: 22px 24px 40px; flex: 1 1 auto; outline: none; max-width: 1440px; width: 100%; }

/* ============ 通用组件 ============ */
.ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 100%; height: 100%; display: block; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .ph-main { min-width: 0; }
.page-head h1 { font-size: 22px; margin: 0 0 2px; font-weight: 700; letter-spacing: .2px; }
.page-head .ph-sub { color: var(--text-weak); font-size: 13px; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.section-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.section-sub { color: var(--text-weak); font-size: 12.5px; margin: 0 0 14px; }
.help-inline { color: var(--text-faint); cursor: help; border: 0; background: transparent; padding: 2px; border-radius: 6px; }
.help-inline:hover { color: var(--primary); background: var(--primary-weak); }
.help-inline .ico { width: 15px; height: 15px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); border-radius: 8px; padding: 8px 14px;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-weak); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: #fff; border-color: #eccac2; color: var(--bad); }
.btn-danger:hover { background: var(--bad-weak); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.card-head .ch-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 网格 */
.grid { display: grid; gap: 16px; }
.kpi-grid { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 1080px) { .cols-2 { grid-template-columns: 1fr; } .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }

/* KPI */
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.kpi .kpi-top { display: flex; align-items: center; gap: 10px; color: var(--text-weak); font-size: 12.5px; font-weight: 600; }
.kpi .kpi-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-weak); color: var(--primary-strong); display: inline-flex; align-items: center; justify-content: center; }
.kpi .kpi-ico .ico { width: 17px; height: 17px; }
.kpi .kpi-val { font-size: 26px; font-weight: 800; margin: 8px 0 2px; letter-spacing: .3px; }
.kpi .kpi-val small { font-size: 13px; font-weight: 600; color: var(--text-weak); margin-left: 3px; }
.kpi .kpi-foot { font-size: 12px; color: var(--text-faint); }
.kpi .kpi-foot .up { color: var(--ok); font-weight: 600; }
.kpi .kpi-foot .down { color: var(--bad); font-weight: 600; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { font-size: 11.5px; font-weight: 600; color: var(--text-weak); text-transform: uppercase; letter-spacing: .3px; background: var(--surface-2); position: sticky; top: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .row-name { font-weight: 600; color: var(--text); }
.tbl .row-sub { color: var(--text-faint); font-size: 11.5px; }
.tbl .cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl .muted { color: var(--text-faint); }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; border: 1px solid transparent; }
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; }
.badge-ok { background: var(--primary-weak); color: var(--primary-strong); }
.badge-ok .bdot { background: var(--ok); }
.badge-warn { background: var(--warn-weak); color: #8a5b09; }
.badge-warn .bdot { background: var(--warn); }
.badge-bad { background: var(--bad-weak); color: var(--bad); }
.badge-bad .bdot { background: var(--bad); }
.badge-neutral { background: var(--surface-2); color: var(--text-weak); border-color: var(--border); }
.badge-neutral .bdot { background: var(--text-faint); }
.badge-info { background: var(--info-weak); color: var(--info); }
.badge-info .bdot { background: var(--info); }

/* 状态徽章（在线/离线/未知） */
.st-online { color: var(--ok); }
.st-offline { color: var(--bad); }
.st-unknown { color: var(--text-faint); }

/* 开关 */
.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: 0 0 38px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #cfd8d4; border-radius: 20px; transition: .15s; }
.switch .track::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(16px); }
.switch input:disabled + .track { opacity: .6; cursor: not-allowed; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-weak); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 9px 11px; background: var(--surface); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.field input[readonly] { background: var(--surface-2); color: var(--text-weak); }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.field .err { color: var(--bad); font-size: 11.5px; margin-top: 5px; display: none; }
.field.invalid input { border-color: var(--bad); }
.field.invalid .err { display: block; }

/* 标签页 / 分段 */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-weak); font: inherit; font-weight: 600; font-size: 12.5px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* 筛选条 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1 1 auto; }
.input, select.input {
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 11px;
  font: inherit; background: var(--surface); outline: none; color: var(--text);
}
.input:focus, select.input:focus { border-color: var(--primary); }

/* 空态 / 加载 */
.empty { text-align: center; padding: 48px 20px; color: var(--text-faint); }
.empty .ico { width: 42px; height: 42px; color: var(--border-strong); margin-bottom: 10px; }
.empty p { margin: 4px 0; }
.empty .empty-title { color: var(--text-weak); font-weight: 600; font-size: 14px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-faint); }
.spin { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
.spin svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 日志 / 活动流 */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 11px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed .f-ico { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-weak); color: var(--primary-strong); }
.feed .f-ico .ico { width: 14px; height: 14px; }
.feed .f-body { min-width: 0; flex: 1; }
.feed .f-body strong { font-weight: 600; }
.feed .f-meta { color: var(--text-faint); font-size: 11.5px; }

/* 圆环图 */
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { flex: 0 0 auto; }
.ring-legend { font-size: 12.5px; color: var(--text-weak); }
.ring-legend .rl-row { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.ring-legend .rl-dot { width: 9px; height: 9px; border-radius: 50%; }
.ring-legend strong { color: var(--text); }

/* 趋势 SVG */
.trend { width: 100%; height: 220px; display: block; }

/* 凭据安全状态 */
.sec-good { color: var(--ok); }
.sec-none { color: var(--text-faint); }

/* 代码块 */
pre.code {
  background: #f0f5f3; color: #203e34; border: 1px solid #dce7e2; border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.6; margin: 0;
}
.code-block-wrap { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; }

/* 说明列表 */
.guide h2 { font-size: 17px; margin: 22px 0 8px; }
.guide h3 { font-size: 14.5px; margin: 16px 0 6px; }
.guide p, .guide li { color: var(--text-weak); font-size: 13.5px; }
.guide ol, .guide ul { padding-left: 20px; }
.guide li { margin: 4px 0; }
.guide .note { border-left: 3px solid var(--warn); background: var(--warn-weak); color: #6f4a07; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 13px; margin: 12px 0; }
.guide .safe { border-left: 3px solid var(--ok); background: var(--primary-weak); color: var(--primary-strong); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 13px; margin: 12px 0; }
.guide .kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13px; margin: 8px 0; }
.guide .kv dt { color: var(--text-faint); }
.guide .kv dd { margin: 0; }

/* 模态 */
.scrim { position: fixed; inset: 0; background: rgba(15, 31, 27, .42); z-index: 60; }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 31, 27, .42); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 70; overflow-y: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  margin: auto; animation: pop .14s ease-out;
}
.modal.lg { max-width: 760px; }
.modal.xl { max-width: 920px; }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* 提示气泡 */
.tooltip-pop { position: fixed; z-index: 90; background: #182d29; color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 7px; max-width: 260px; box-shadow: var(--shadow); pointer-events: none; }

/* toast */
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--text-faint);
  border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px;
  animation: toastin .2s ease-out;
}
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
.toast.info { border-left-color: var(--info); }
.toast .t-ico { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.toast .t-ico.ok { color: var(--ok); }
.toast .t-ico.err { color: var(--bad); }
.toast .t-ico.warn { color: var(--warn); }
.toast .t-ico.info { color: var(--info); }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-title { font-weight: 700; }
.toast .t-msg { color: var(--text-weak); }
.toast .t-close { cursor: pointer; color: var(--text-faint); border: 0; background: transparent; padding: 2px; }

/* 详情抽屉 */
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; }
.detail-list dt { color: var(--text-faint); }
.detail-list dd { margin: 0; word-break: break-all; }

.bar { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .view { padding: 16px 14px 36px; }
  .topbar { padding: 0 12px; }
  .search { width: 150px; }
  .crumbs { display: none; }
  .demo-banner { flex-wrap: wrap; padding: 9px 12px; }
  .demo-banner .demo-text { flex: 1 1 100%; order: 2; }
  .demo-banner .btn { order: 3; }
  .demo-close { order: 1; margin-left: auto; }
  .field-row { flex-direction: column; gap: 0; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 19px; }
}
@media (min-width: 769px) and (max-width: 1366px) {
  .view { max-width: none; }
}
