/* =====================================================================
   抖音 AI 智能截流工具 · 设计系统
   视觉规范与设计效果图保持一致：深蓝黑侧边导航 + 浅色内容区 + 品牌红强调色
   图标统一使用 SVG 线性图标，不使用 emoji
   ===================================================================== */

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

:root {
  --bg: #F4F6FA;
  --ink: #131A2B;
  --ink-2: #5C6678;
  --ink-3: #8A93A6;
  --ink-4: #A8B0C0;
  --line: #E8ECF3;
  --line-2: #EDF1F7;
  --card: #FFFFFF;
  --brand: #FE2C55;
  --brand-2: #FF6B4A;
  --nav-bg-1: #121834;
  --nav-bg-2: #0B1020;
  --nav-ink: #94A0BC;
  --green: #128A66;
  --green-soft: #EAFBF5;
  --amber: #B26A00;
  --amber-soft: #FFF3E4;
  --purple: #7B61FF;
  --cyan: #00A9B5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(19, 26, 43, .035);
  --shadow-lg: 0 12px 32px rgba(19, 26, 43, .12);
}

html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 13px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D5DBE6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C2C9D6; }
::-webkit-scrollbar-track { background: transparent; }

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

/* --------- 侧边栏 --------- */
.side {
  width: 224px; flex: 0 0 224px;
  background: linear-gradient(180deg, var(--nav-bg-1) 0%, var(--nav-bg-2) 100%);
  display: flex; flex-direction: column; padding: 0 12px 14px;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
  overflow-y: auto;
}
.side::-webkit-scrollbar { width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 8px 18px; }
.logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(254, 44, 85, .42); flex: 0 0 32px;
}
.brand-txt { line-height: 1.15; }
.brand-txt b { display: block; font-size: 15.5px; color: #fff; letter-spacing: .5px; font-weight: 600; }
.brand-txt span { display: block; font-size: 9.5px; color: #5B6684; letter-spacing: 2.4px; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--nav-ink); font-size: 13.5px; position: relative;
  transition: background .16s, color .16s;
}
.nav a svg { flex: 0 0 18px; opacity: .85; }
.nav a:hover { color: #E2E7F3; background: rgba(255, 255, 255, .04); }
.nav a.on { background: linear-gradient(90deg, rgba(254, 44, 85, .20), rgba(254, 44, 85, .03)); color: #fff; font-weight: 600; }
.nav a.on svg { opacity: 1; stroke: var(--brand); }
.nav a.on::before {
  content: ""; position: absolute; left: -12px; top: 11px; width: 3px; height: 20px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.nav .badge {
  margin-left: auto; background: var(--brand); color: #fff; font-size: 10.5px;
  line-height: 16px; padding: 0 6px; border-radius: 8px; font-weight: 600;
}
.nav .badge.soft { background: rgba(255, 255, 255, .12); color: #AEB8CE; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .06); margin: 8px 4px; }
.side-foot { margin-top: auto; padding-top: 14px; }
.guard {
  background: rgba(43, 214, 168, .09); border: 1px solid rgba(43, 214, 168, .22);
  border-radius: 11px; padding: 11px 12px; margin-bottom: 12px;
}
.guard .t { display: flex; align-items: center; gap: 6px; color: #2BD6A8; font-size: 12px; font-weight: 600; }
.guard .d { color: #66738F; font-size: 10.5px; line-height: 1.6; margin-top: 5px; }
.usr { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); cursor: pointer; }
.usr .av {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: linear-gradient(135deg, #5B6CFF, #9A4BFF); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.usr .n { font-size: 12.5px; color: #E2E7F3; font-weight: 600; }
.usr .r { font-size: 10.5px; color: #5B6684; margin-top: 1px; }

/* --------- 主区 --------- */
.main { flex: 1; min-width: 0; margin-left: 224px; display: flex; flex-direction: column; }
.top {
  height: 68px; flex: 0 0 68px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.top h1 { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.top .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.top .sub i { font-style: normal; color: #C2C9D6; margin: 0 6px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.pill {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px;
  background: var(--green-soft); border: 1px solid #B9EEDC; color: var(--green); font-size: 12px; font-weight: 600;
}
.pill.warn { background: var(--amber-soft); border-color: #FFE6BF; color: var(--amber); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #2BD6A8; box-shadow: 0 0 0 3px rgba(43, 214, 168, .2); }
.bell {
  position: relative; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer;
}
.bell em {
  position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--brand); border: 1.5px solid #fff;
  color: #fff; font-size: 9.5px; font-style: normal; line-height: 12px; text-align: center; font-weight: 600;
}
.bell em.hide { display: none; }
.vline { width: 1px; height: 26px; background: var(--line); }
.who { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.who .av {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), #FF7A45); color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.who .n { font-size: 13px; font-weight: 600; line-height: 1.2; }
.who .r { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

.content { flex: 1; padding: 22px 28px 32px; display: flex; flex-direction: column; gap: 16px; }

/* ===================== 卡片与栅格 ===================== */
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0;
}
.card.tight { padding: 0; overflow: hidden; }
.ch { display: flex; align-items: center; gap: 10px; }
.ch h3 { font-size: 14.5px; font-weight: 600; }
.ch .tag { font-size: 10.5px; color: var(--ink-3); background: #F3F6FA; border-radius: 7px; padding: 2px 7px; }
.ch .r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lg { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6B7688; }
.lg i { width: 8px; height: 8px; border-radius: 3px; display: block; }
.row { display: flex; gap: 16px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.kpi .ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.kpi .lb { font-size: 12.5px; color: var(--ink-3); }
.kpi .vl { font-size: 27px; font-weight: 700; letter-spacing: -.5px; margin-top: 3px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .dt { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; margin-top: 6px; padding: 2px 7px; border-radius: 9px; }
.up { background: #FFEDF1; color: #D81E45; }
.down { background: #EAFBF5; color: var(--green); }
.mut { background: #F0F3F8; color: #7C879B; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600;
  transition: filter .16s, box-shadow .16s, background .16s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 12px rgba(254, 44, 85, .26); }
.btn-pri:hover { filter: brightness(1.06); }
.btn-gh { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-gh:hover { background: #F7F9FC; color: var(--ink); }
.btn-slate { background: #EEF1F7; color: #55607A; }
.btn-slate:hover { background: #E4E9F1; }
.btn-danger { background: #fff; color: #D81E45; border: 1px solid #FFC9D4; }
.btn-danger:hover { background: #FFF5F7; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-link { font-size: 12.5px; font-weight: 600; color: var(--brand); padding: 0 2px; height: auto; }
.btn-link.slate { color: var(--ink-2); }

/* ===================== 表单 ===================== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field .hint { font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.field .hint.warn { color: var(--amber); }
.inp, .sel, .txa {
  height: 36px; border: 1px solid #E4E9F1; border-radius: var(--radius-sm); padding: 0 12px;
  background: #FCFDFE; color: var(--ink); outline: none; transition: border-color .16s, box-shadow .16s; width: 100%;
}
.txa { height: auto; min-height: 76px; padding: 9px 12px; line-height: 1.65; resize: vertical; }
.inp:focus, .sel:focus, .txa:focus { border-color: #FFB3C2; box-shadow: 0 0 0 3px rgba(254, 44, 85, .09); background: #fff; }
.inp::placeholder, .txa::placeholder { color: #B9C1CE; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8B0C0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* 类型选择卡 */
.ty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ty {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E8ECF3;
  border-radius: var(--radius-sm); background: #FCFDFE; cursor: pointer; transition: all .16s;
}
.ty:hover { border-color: #FFC9D4; background: #FFFBFD; }
.ty.on { border-color: var(--brand); background: #FFF5F7; box-shadow: 0 0 0 3px rgba(254, 44, 85, .08); }
.ty .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.ty .t1 { font-size: 12.5px; font-weight: 600; }
.ty .t2 { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* 开关 */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: #F8FAFD; border: 1px solid #EEF2F8; }
.sw .t1 { font-size: 12.5px; font-weight: 600; }
.sw .t2 { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.toggle { position: relative; width: 40px; height: 22px; flex: 0 0 40px; border-radius: 11px; background: #D5DBE6; transition: background .18s; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.toggle.on { background: var(--brand); }
.toggle.on::after { transform: translateX(18px); }

/* 分段控件 */
.seg { display: inline-flex; background: #F3F6FA; border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg > div {
  padding: 0 13px; height: 28px; line-height: 28px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-weight: 500; transition: all .16s;
}
.seg > div.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(19, 26, 43, .1); }

/* 筛选芯片 */
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px;
  background: #F5F7FB; font-size: 12.5px; color: var(--ink-2); font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .16s; white-space: nowrap;
}
.chip:hover { background: #EEF2F8; }
.chip.on { background: #FFF0F4; color: #D81E45; border-color: #FFC9D4; font-weight: 600; }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.on b { color: #D81E45; }
.srch { display: flex; align-items: center; gap: 8px; height: 34px; width: 230px; border: 1px solid #E4E9F1; border-radius: 9px; padding: 0 12px; background: #FAFBFD; }
.srch input { border: none; background: none; outline: none; flex: 1; min-width: 0; font-size: 12.5px; }

/* ===================== 表格 ===================== */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl thead th {
  height: 40px; padding: 0 12px; background: #F8FAFD; font-size: 11.5px; color: var(--ink-3);
  font-weight: 600; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.tbl thead th.right { text-align: right; }
table.tbl thead th.center { text-align: center; }
table.tbl tbody td { height: 58px; padding: 8px 12px; border-bottom: 1px solid #F4F6FA; font-size: 12.5px; vertical-align: middle; }
table.tbl tbody tr:hover { background: #FBFCFE; }
table.tbl tbody tr.expanded { background: #FFFBFD; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.right { text-align: right; }
table.tbl td.center { text-align: center; }
table.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.pager { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
}
.pager button:hover:not(:disabled) { background: #F7F9FC; }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 表格内元素 */
.av-sm { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--radius-sm); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .nm { font-size: 12.5px; font-weight: 600; }
.cell-user .cm { font-size: 12px; color: #79839A; margin-top: 3px; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagz { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.t-hi { background: #FFEDF1; color: #D81E45; }
.t-md { background: #FFF3E4; color: #B26A00; }
.t-lo { background: #EEF1F7; color: #6B7688; }
.t-nv { background: #F2F5F9; color: #A0A9B8; }
.t-ok { background: #EAFBF5; color: var(--green); }
.t-run { background: #EAFBF5; color: var(--green); }
.t-wait { background: #F0F3F8; color: #7C879B; }
.t-err { background: #FFEDF1; color: #D81E45; }
.t-pause { background: #F5F7FB; color: #8A93A6; }
.t-dead { background: #F2F5F9; color: #A0A9B8; }
.src-tag { font-size: 10px; font-weight: 500; color: #9AA3B4; background: #F3F6FA; border-radius: 6px; padding: 1px 6px; }
.tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tag-mini { font-size: 10.5px; color: #6B7688; background: #F3F6FA; border-radius: 6px; padding: 2px 7px; }
.bar { height: 6px; border-radius: 3px; background: #F0F3F8; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }

/* 空状态 / 加载 */
.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.empty svg { margin-bottom: 12px; opacity: .5; }
.loading { padding: 40px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid #E4E9F1; border-top-color: var(--brand); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -3px; margin-right: 7px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ===================== 提示 / 弹层 ===================== */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 11px;
  background: #fff; box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-2); min-width: 220px; animation: tin .22s ease;
}
.toast.ok { border-color: #B9EEDC; }
.toast.err { border-color: #FFC9D4; }
.toast.warn { border-color: #FFE6BF; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

.mask { position: fixed; inset: 0; background: rgba(19, 26, 43, .42); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fin .18s; }
@keyframes fin { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 560px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { width: 860px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 15.5px; font-weight: 600; }
.modal-h .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.modal-h .x:hover { background: #F3F6FA; color: var(--ink); }
.modal-b { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; background: #FCFDFE; }
.modal-f .r { margin-left: auto; display: flex; gap: 10px; }

/* 抽屉（详情） */
.drawer-mask { position: fixed; inset: 0; background: rgba(19, 26, 43, .38); z-index: 200; animation: fin .18s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 96vw; background: #fff;
  z-index: 201; display: flex; flex-direction: column; box-shadow: -14px 0 40px rgba(19, 26, 43, .14);
  animation: din .24s cubic-bezier(.22, .8, .3, 1);
}
@keyframes din { from { transform: translateX(28px); opacity: .4; } }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.drawer-h h3 { font-size: 15.5px; font-weight: 600; }
.drawer-b { padding: 20px 22px 28px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; background: #FCFDFE; }

/* 详情区块 */
.sec { margin-bottom: 18px; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.quote { background: #FBFCFE; border: 1px solid #EDF1F7; border-radius: 11px; padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: #3D4759; }
.kv-list { display: flex; flex-direction: column; gap: 9px; }
.kv-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; }
.kv-row .k { flex: 0 0 84px; color: var(--ink-3); }
.kv-row .v { flex: 1; color: var(--ink); line-height: 1.65; word-break: break-word; }
.note { display: flex; gap: 8px; background: #FFF8EC; border: 1px solid #FFE6BF; border-radius: var(--radius-sm); padding: 10px 12px; }
.note.ok { background: var(--green-soft); border-color: #B9EEDC; }
.note.err { background: #FFF5F7; border-color: #FFC9D4; }
.note p { font-size: 11px; color: #9A6A16; line-height: 1.65; }
.note.ok p { color: var(--green); }
.note.err p { color: #C4173B; }

/* 分层校验结果 */
.layer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #FBFCFE; }
.layer.pass { background: #F4FDF9; border-color: #CDF1E3; }
.layer.fail { background: #FFF6F8; border-color: #FFD5DE; }
.layer .n { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: #EEF1F7; color: #6B7688; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.layer.pass .n { background: #D8F5EA; color: var(--green); }
.layer.fail .n { background: #FFE1E8; color: #D81E45; }
.layer .t1 { font-size: 12.5px; font-weight: 600; }
.layer .t2 { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.layer .st { margin-left: auto; font-size: 11.5px; font-weight: 600; }
.layer.pass .st { color: var(--green); }
.layer.fail .st { color: #D81E45; }

/* 话术三段 */
.seg-block { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.seg-block .sh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #F8FAFD; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.seg-block .sh em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.seg-block .sb { padding: 13px 14px; font-size: 12.5px; line-height: 1.75; color: #3D4759; }
.seg-block + .seg-block { margin-top: 10px; }

/* 图表区 */
.chart-box { width: 100%; overflow: hidden; }
.chart-box svg { display: block; width: 100%; height: auto; }
.legend-list { display: flex; flex-direction: column; gap: 4px; }
.legend-row { display: flex; align-items: center; gap: 8px; height: 28px; }
.legend-row i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.legend-row span { font-size: 12.5px; color: var(--ink-2); flex: 1; }
.legend-row b { font-size: 13px; font-variant-numeric: tabular-nums; }
.legend-foot { margin-top: 9px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--ink-3); line-height: 1.65; }

/* 实时流 */
.feed { display: flex; flex-direction: column; }
.fd { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #EFF2F7; }
.fd:last-child { border-bottom: none; }
.fd .txt { flex: 1; min-width: 0; }
.fd .nm { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.fd .cm { font-size: 12px; color: #79839A; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm { font-size: 11px; color: var(--ink-4); flex: 0 0 62px; text-align: right; }

/* 监控源状态 */
.src { display: flex; flex-direction: column; gap: 9px; }
.sc { display: flex; align-items: center; gap: 11px; background: #F8FAFD; border: 1px solid #EEF2F8; border-radius: 11px; padding: 10px 12px; }
.sc .si { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.sc .sl { font-size: 12.5px; font-weight: 600; }
.sc .sd { font-size: 10.5px; color: #98A1B2; margin-top: 3px; }
.sc .sr { margin-left: auto; text-align: right; }
.sc .sv { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc .ss { font-size: 10.5px; margin-top: 3px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; color: var(--green); font-weight: 600; }
.sc .ss.idle { color: #98A1B2; }

/* 事件流 */
.evt { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #EFF2F7; font-size: 12px; }
.evt:last-child { border-bottom: none; }
.evt .b { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; margin-top: 5px; background: #C2C9D6; }
.evt.high .b { background: var(--brand); }
.evt.mid .b { background: #FF9500; }
.evt.low .b { background: #2BD6A8; }
.evt .c { flex: 1; min-width: 0; }
.evt .c1 { color: var(--ink); line-height: 1.6; }
.evt .c2 { color: var(--ink-4); font-size: 11px; margin-top: 3px; }

/* 通知下拉 */
.pop { position: absolute; top: 54px; right: 0; width: 380px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.pop-h { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.pop-h .r { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.pop-b { max-height: 380px; overflow-y: auto; padding: 6px 16px 12px; }

/* 合规横幅 */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--radius);
  background: linear-gradient(100deg, #F0FDF8 0%, #F7FEFB 100%); border: 1px solid #CDF1E3;
}
.banner .ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: #D8F5EA; display: flex; align-items: center; justify-content: center; }
.banner .t1 { font-size: 13px; font-weight: 600; color: #0F7A5B; }
.banner .t2 { font-size: 11.5px; color: #3F8C74; margin-top: 3px; line-height: 1.6; }
.banner .r { margin-left: auto; }

/* 用量条 */
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .mh { display: flex; align-items: center; font-size: 12px; }
.meter .mh span { color: var(--ink-2); }
.meter .mh b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0B1020 0%, #121834 55%, #1B1236 100%); padding: 24px; }
.login-box { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .34); }
.login-hero { background: linear-gradient(160deg, #121834 0%, #0B1020 100%); padding: 44px 40px; color: #fff; display: flex; flex-direction: column; }
.login-hero .bd { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.login-hero h2 { font-size: 25px; font-weight: 700; letter-spacing: .4px; line-height: 1.42; }
.login-hero h2 em { font-style: normal; color: var(--brand); }
.login-hero .desc { font-size: 13px; color: #8E99B5; line-height: 1.85; margin-top: 14px; }
.login-hero .feats { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.login-hero .feat { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #AEB8CE; }
.login-hero .feat i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: rgba(43, 214, 168, .14); display: flex; align-items: center; justify-content: center; }
.login-form { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { font-size: 19px; font-weight: 700; }
.login-form .st { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.login-form form { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.login-form .btn { height: 42px; font-size: 14px; border-radius: 11px; margin-top: 4px; }
.acct-list { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.acct-list .t { font-size: 11.5px; color: var(--ink-3); margin-bottom: 9px; }
.acct { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: #F8FAFD; font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; cursor: pointer; border: 1px solid transparent; }
.acct:hover { border-color: #FFC9D4; background: #FFFBFD; }
.acct b { color: var(--ink); font-weight: 600; }
.acct .rl { margin-left: auto; color: var(--ink-3); font-size: 10.5px; }

/* 工具类 */
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.mb10 { margin-bottom: 10px; } .mb14 { margin-bottom: 14px; } .mb18 { margin-bottom: 18px; }
.gap6 { gap: 6px; } .gap10 { gap: 10px; } .gap14 { gap: 14px; }
.flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--ink-3); }
.small { font-size: 11.5px; }
.strong { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.grow1 { flex: 1; min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.split { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .grid3, .grid2, .form-grid { grid-template-columns: 1fr; }
  .login-box { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}

/* --------- 顶栏页面动作区（各页效果图右上角按钮） --------- */
.top .pageacts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .pageacts + .top-r { margin-left: 14px; }

/* --------- 应用外壳：视口锁定 + 内容区独立滚动 ---------
   让 .content 高度严格等于视口减去顶栏，页面布局与设计效果图 1440x900 完全一致；
   内容超出时在内容区内滚动，而不是整页滚动。 */
body.shell { overflow: hidden; }
body.shell .app { height: 100vh; min-height: 0; }
body.shell .main { height: 100vh; overflow: hidden; }
body.shell .content { overflow-y: auto; overflow-x: hidden; }
body.shell .content::-webkit-scrollbar { width: 8px; }
body.shell .content::-webkit-scrollbar-thumb { background: #D8DEE8; border-radius: 4px; }
body.shell .content::-webkit-scrollbar-track { background: transparent; }
