/* ============================================================
   视频号达人建联业务系统 · 设计系统
   墨绿主色 / 暖白工作区 / 高密度 B端信息architecture
   ============================================================ */

:root {
  /* 主色：墨绿，呼应视频号生态但避开俗艳亮绿 */
  --brand-900: #062f21;
  --brand-800: #0a4632;
  --brand-700: #0f6e4e;
  --brand-600: #14855e;
  --brand-500: #1a9d6f;
  --brand-100: #dff0e8;
  --brand-50: #f0f8f4;

  /* 中性色：暖调灰，长时间注视不疲劳 */
  --ink-900: #101a16;
  --ink-800: #1c2a24;
  --ink-700: #33453c;
  --ink-600: #4d6157;
  --ink-500: #6c7f75;
  --ink-400: #93a49b;
  --ink-300: #bcc7c1;
  --ink-200: #dde3df;
  --ink-100: #ecf0ed;
  --ink-50: #f5f7f5;

  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #fafbfa;
  --line: #e4e9e5;
  --line-strong: #d3dbd6;

  /* 语义色 */
  --info: #2563eb;
  --info-bg: #e8f0fe;
  --ok: #10794f;
  --ok-bg: #e2f3ea;
  --warn: #b45309;
  --warn-bg: #fdf1de;
  --danger: #c0342a;
  --danger-bg: #fdeceb;
  --violet: #6d3fc4;
  --violet-bg: #f0e9fc;
  --cyan: #0e7490;
  --cyan-bg: #e0f3f7;
  --amber: #a16207;
  --amber-bg: #fdf5e0;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 14px;

  --shadow-xs: 0 1px 2px rgba(16, 26, 22, .05);
  --shadow-sm: 0 1px 3px rgba(16, 26, 22, .07), 0 1px 2px rgba(16, 26, 22, .04);
  --shadow-md: 0 4px 16px rgba(16, 26, 22, .09), 0 1px 3px rgba(16, 26, 22, .05);
  --shadow-lg: 0 18px 48px rgba(16, 26, 22, .16), 0 4px 12px rgba(16, 26, 22, .08);

  --sidebar-w: 226px;
  --topbar-h: 56px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-900); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); background-clip: content-box; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }

/* ============================ 骨架布局 ============================ */

.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(178deg, var(--brand-900) 0%, #08251a 62%, #061c14 100%);
  color: #cfe0d8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 220px at -10% 0%, rgba(26,157,111,.22), transparent 70%);
  pointer-events: none;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative; z-index: 1;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(26,157,111,.35);
}
.brand-mark svg { width: 15px; height: 15px; fill: #fff; }
.brand-text strong { display: block; font-size: 13.5px; color: #fff; letter-spacing: -.01em; line-height: 1.3; }
.brand-text span { display: block; font-size: 11px; color: rgba(230,242,236,.82); letter-spacing: .01em; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; position: relative; z-index: 1; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); background-clip: content-box; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 2px; }
.nav-label {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(207,224,216,.38); padding: 0 8px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7.5px 9px; border-radius: 7px; cursor: pointer;
  color: rgba(207,224,216,.82); font-size: 13px;
  transition: background .14s, color .14s; position: relative;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item svg { width: 15px; height: 15px; flex: 0 0 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(26,157,111,.2); color: #fff; font-weight: 500; }
.nav-item.active svg { opacity: 1; color: var(--brand-500); }
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; background: var(--brand-500); border-radius: 0 3px 3px 0;
}
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.nav-badge.mute { background: rgba(255,255,255,.13); color: rgba(255,255,255,.72); }

.sidebar-foot {
  padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.07);
  position: relative; z-index: 1;
}
.sidebar-copy { margin-top: 9px; padding: 0 6px; font-size: 10.5px; color: rgba(207,224,216,.42); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: relative; z-index: 20;
}
.topbar h1 { font-size: 15px; font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.topbar .sub { font-size: 11.5px; color: var(--ink-500); margin-left: -8px; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.topbar-spacer { flex: 1; }

.content { flex: 1; overflow-y: auto; padding: 18px 20px 44px; scroll-behavior: smooth; }
.content:focus { outline: none; }

.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head-text h2 { font-size: 17px; color: var(--ink-900); }
.page-head-text p { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; max-width: 780px; }
.page-head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ============================ 原子组件 ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-700);
  font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .13s, border-color .13s, color .13s, box-shadow .13s, transform .08s;
  box-shadow: var(--shadow-xs);
}
.btn:hover:not(:disabled) { background: var(--ink-50); border-color: var(--ink-300); color: var(--ink-900); }
.btn:active:not(:disabled) { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: 0 1px 2px rgba(15,110,78,.28); }
.btn-primary:hover:not(:disabled) { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a12a22; border-color: #a12a22; color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 1px 2px rgba(16,121,79,.28); }
.btn-success:hover:not(:disabled) { background: #0c5c3b; border-color: #0c5c3b; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--ink-100); }
.btn-sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 5px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn-icon { width: 32px; padding: 0; }
.btn-icon.btn-sm { width: 26px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 11.5px; font-weight: 500; color: var(--ink-600); }
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  height: 32px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-900);
  font-size: 12.5px; width: 100%; transition: border-color .13s, box-shadow .13s;
}
.textarea { height: auto; padding: 7px 10px; line-height: 1.65; resize: vertical; min-height: 68px; font-family: inherit; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(20,133,94,.11);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.select { appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7f75' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; }
.hint { font-size: 11px; color: var(--ink-500); line-height: 1.55; }

/* textarea 即使复用通用 .input 类，也不能被 height:32px 压扁 */
textarea.input, textarea.textarea {
  height: auto; min-height: 68px; padding: 7px 10px;
  line-height: 1.65; resize: vertical; font-family: inherit;
}
textarea.mono, input.mono { font-family: var(--mono); font-size: 12px; }
.grow { flex: 1; min-width: 0; }

/* 表单行：标签在上、控件在下 */
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.form-row:last-child { margin-bottom: 0; }
.form-row > label { font-size: 11.5px; font-weight: 500; color: var(--ink-600); }
.form-row > label .req { color: var(--danger); margin-left: 2px; }
.form-row.inline { flex-direction: row; align-items: center; gap: 10px; }
.form-row.inline > label { flex: 0 0 86px; margin: 0; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .form-grid2 { grid-template-columns: 1fr; } }

.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 9px; width: 14px; height: 14px; stroke: var(--ink-400); fill: none; stroke-width: 1.9; pointer-events: none; }
.search .input { padding-left: 29px; }

.switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12.5px; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 32px; height: 18px; border-radius: 10px; background: var(--ink-300);
  position: relative; transition: background .16s; flex: 0 0 32px;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: transform .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--brand-600); }
.switch input:checked + .track::after { transform: translateX(14px); }

.chk { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12.5px; user-select: none; }
.chk input { width: 15px; height: 15px; accent-color: var(--brand-700); cursor: pointer; margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); max-height: 188px; overflow: auto; }
.check-grid .chk { margin: 0; padding: 3px 4px; border-radius: 6px; transition: background .12s; }
.check-grid .chk:hover { background: rgba(0,0,0,.04); }
.check-grid input:checked + span { color: var(--brand-700); font-weight: 600; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-list .chk-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 12.5px; user-select: none; transition: background .12s; }
.check-list .chk-row:hover { background: var(--bg-soft); }
.check-list .chk-row input { width: 15px; height: 15px; accent-color: var(--brand-700); margin: 0; flex: none; }
.check-list .chk-row:has(input:checked) { background: var(--brand-50); }
.as-head { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 13px; color: var(--ink-900); }
.card-head .sub { font-size: 11.5px; color: var(--ink-500); }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-ic { width: 14px; height: 14px; flex: 0 0 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.card-body { padding: 14px; }
.card-body.tight { padding: 0; }

/* 徽标 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 4px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  background: var(--ink-100); color: var(--ink-600); border: 1px solid transparent;
}
.tag-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }
.tag.slate { background: var(--ink-100); color: var(--ink-600); }
.tag.green { background: var(--ok-bg); color: var(--ok); }
.tag.blue { background: var(--info-bg); color: var(--info); }
.tag.cyan { background: var(--cyan-bg); color: var(--cyan); }
.tag.violet { background: var(--violet-bg); color: var(--violet); }
.tag.indigo { background: #e8e9fd; color: #4338ca; }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.orange { background: #fdeee0; color: #c2410c; }
.tag.red { background: var(--danger-bg); color: var(--danger); }
.tag.teal { background: #ddf3f0; color: #0f766e; }
.tag.solid-red { background: var(--danger); color: #fff; }
.tag.solid-green { background: var(--brand-700); color: #fff; }
.tag.lg { height: 23px; font-size: 11.5px; padding: 0 9px; }

.tier-badge {
  width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; flex: 0 0 22px; letter-spacing: -.02em;
}
.tier-S { background: linear-gradient(135deg, #12805a, #0a5b3f); }
.tier-A { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.tier-B { background: linear-gradient(135deg, #d97706, #b45309); }
.tier-BLACK { background: linear-gradient(135deg, #3f3f46, #18181b); }

/* 头像 */
.av {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--brand-700); letter-spacing: -.02em;
}
.av-sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; flex: 0 0 22px; }
.av-lg { width: 46px; height: 46px; border-radius: 11px; font-size: 18px; flex: 0 0 46px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.tbl th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-500);
  padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr { transition: background .1s; }
table.tbl tbody tr:hover { background: var(--brand-50); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl .r { text-align: right; }
table.tbl .c { text-align: center; }
.cell-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cell-main .t { min-width: 0; }
.cell-main .t b { display: block; font-weight: 500; color: var(--ink-900); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.cell-main .t span { display: block; font-size: 11px; color: var(--ink-500); }

/* 键值信息组 */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px 14px; }
.kv-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kv-item > span { font-size: 11px; color: var(--ink-500); }
.kv-item > b { font-size: 12.5px; font-weight: 500; color: var(--ink-900); word-break: break-all; }

/* 表格行内操作区 / 勾选框 */
.row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; white-space: nowrap; }
table.tbl input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--brand-600); cursor: pointer; vertical-align: middle; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 13px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.kpi.link { cursor: pointer; }
.kpi.link:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--line-strong); }
.kpi-label { font-size: 11.5px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.kpi-label svg { width: 14px; height: 14px; flex: 0 0 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.kpi-value { font-size: 23px; font-weight: 650; color: var(--ink-900); margin-top: 4px; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--ink-500); margin-left: 2px; }
.kpi-foot { font-size: 11px; color: var(--ink-500); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.kpi-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }

/* BD 商务业绩看板：KPI 图标改为右上角小圆角色块徽标（仅本页作用域） */
.bd-kpi-page .kpi { padding-right: 38px; }
.bd-kpi-page .kpi-accent { display: none; }
.bd-kpi-page .kpi-label { gap: 6px; }
.bd-kpi-page .kpi-badge {
  position: absolute; top: 11px; right: 11px;
  width: 28px; height: 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kpi-accent, var(--brand-700));
  background: color-mix(in srgb, currentColor 13%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, #fff);
}
.bd-kpi-page .kpi-badge svg { width: 15px; height: 15px; display: block; }

/* 进度条 */
.bar { height: 5px; border-radius: 3px; background: var(--ink-100); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--brand-600); transition: width .4s cubic-bezier(.2,.8,.3,1); }
.bar.warn > i { background: var(--warn); }
.bar.danger > i { background: var(--danger); }

/* 空状态 */
.empty { padding: 42px 20px; text-align: center; color: var(--ink-500); }
.empty svg { width: 34px; height: 34px; stroke: var(--ink-300); fill: none; stroke-width: 1.4; margin-bottom: 9px; }
.empty b { display: block; color: var(--ink-700); font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.empty p { font-size: 12px; max-width: 380px; margin: 0 auto; line-height: 1.6; }

/* 分段控件 */
.seg { display: inline-flex; background: var(--ink-100); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button {
  height: 28px; padding: 0 13px; border: none; background: transparent; border-radius: 5px;
  font-size: 12.5px; color: var(--ink-600); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; position: relative;
}
.seg button:hover:not(.active) { color: var(--ink-900); background: rgba(255,255,255,.55); }
.seg button.active {
  background: linear-gradient(180deg, var(--brand-500) 0%, #188f64 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(26,157,111,.32), 0 1px 2px rgba(16,26,22,.08);
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.seg button.active:hover { background: linear-gradient(180deg, #1faa78 0%, #157f59 100%); }
.seg button .n { font-size: 10.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.seg button.active .n { color: #fff; opacity: .9; }

/* 工具条 */
.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-xs);
}
.toolbar .grow { flex: 1; min-width: 130px; }
.toolbar .sep { width: 1px; height: 20px; background: var(--line); }

/* 分页控件 */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.pager-info { font-size: 12.5px; color: var(--ink-600); }
.pager-info b { color: var(--ink-900); }
.pager-ctrls { display: flex; align-items: center; gap: 8px; }
.pager-size { font-size: 12.5px; color: var(--ink-600); display: inline-flex; align-items: center; gap: 5px; }
.pager-size .input-sm { width: auto; height: 28px; padding: 0 8px; font-size: 12.5px; }

/* 看板 */
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.board-col {
  flex: 0 0 258px; width: 258px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
  max-height: calc(100vh - 210px);
}
.board-col-head {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0; z-index: 1;
}
.board-col-head .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.board-col-head b { font-size: 12.5px; color: var(--ink-800); font-weight: 500; }
.board-col-head .n { margin-left: auto; font-size: 11px; color: var(--ink-500); background: var(--ink-100); padding: 1px 6px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.board-col-body { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 7px; }

.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  cursor: pointer; transition: box-shadow .14s, border-color .14s, transform .12s;
}
.tcard:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-1px); }
.tcard-top { display: flex; align-items: center; gap: 7px; }
.tcard-top b { font-size: 12.5px; color: var(--ink-900); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tcard-foot {
  display: flex; align-items: center; gap: 6px; margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-500);
}

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -17px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink-300);
}
.tl-item.sys::before { border-color: var(--brand-600); }
.tl-item.warn::before { border-color: var(--warn); }
.tl-item.danger::before { border-color: var(--danger); }
.tl-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-head b { font-size: 12.5px; color: var(--ink-900); font-weight: 500; }
.tl-head time { font-size: 11px; color: var(--ink-400); margin-left: auto; font-variant-numeric: tabular-nums; }
.tl-body { font-size: 12.5px; color: var(--ink-600); margin-top: 3px; line-height: 1.65; }

/* 聊天 */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface-2); border-radius: var(--radius); max-height: 340px; overflow-y: auto; }
.msg { display: flex; gap: 8px; max-width: 82%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble {
  padding: 7px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.65;
  background: #fff; border: 1px solid var(--line); color: var(--ink-800); white-space: pre-wrap; word-break: break-word;
}
.msg.me .msg-bubble { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.msg-meta { font-size: 10.5px; color: var(--ink-400); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.msg.me .msg-meta { justify-content: flex-end; }

/* 抽屉 */
.drawer-mask, .modal-mask {
  position: fixed; inset: 0; background: rgba(16,26,22,.34);
  backdrop-filter: blur(1.5px); z-index: 100; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 94vw);
  background: var(--bg); z-index: 101; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slidein .22s cubic-bezier(.22,.9,.28,1);
}
.drawer.wide { width: min(1020px, 96vw); }
@keyframes slidein { from { transform: translateX(28px); opacity: .5 } to { transform: none; opacity: 1 } }
.drawer-head {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
.drawer-foot {
  padding: 10px 18px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center; flex: 0 0 auto;
}

/* 弹窗 */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(540px, 94vw); max-height: 88vh; background: var(--surface);
  border-radius: var(--radius-lg); z-index: 101; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: pop .18s cubic-bezier(.22,.9,.28,1);
}
.modal.lg { width: min(760px, 95vw); }
.modal.wide { width: min(820px, 96vw); }
@keyframes pop { from { transform: translate(-50%, -47%) scale(.97); opacity: 0 } to { transform: translate(-50%,-50%) scale(1); opacity: 1 } }
.modal-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 14.5px; }
.modal-head p { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 11px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Toast */
.toast-root { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--ink-900); color: #fff; font-size: 12.5px; box-shadow: var(--shadow-lg);
  animation: toastin .2s cubic-bezier(.2,.9,.3,1); max-width: 500px; pointer-events: auto; line-height: 1.55;
}
@keyframes toastin { from { transform: translateY(-10px); opacity: 0 } to { transform: none; opacity: 1 } }
.toast.ok { background: #0d5c40; }
.toast.err { background: #9c2b23; }
.toast.warn { background: #92500a; }
.toast svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 提示条 */
.alert {
  display: flex; gap: 9px; padding: 10px 12px; border-radius: var(--radius);
  font-size: 12.5px; line-height: 1.6; border: 1px solid transparent;
}
.alert svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.alert b { font-weight: 600; }
.alert.info { background: var(--info-bg); color: #1e40af; border-color: #c7dbfd; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3d1; }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: #f5dcb0; }
.alert.danger { background: var(--danger-bg); color: var(--danger); border-color: #f6cdc9; }

/* 描述列表 */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px 16px; }
.dl > div > dt { font-size: 11px; color: var(--ink-500); margin-bottom: 2px; }
.dl > div > dd { margin: 0; font-size: 12.5px; color: var(--ink-900); font-weight: 500; word-break: break-word; }

/* 粉丝画像（带货画像 + 粉丝特征） */
.profile-block + .profile-block { margin-top: 16px; }
.profile-title { font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 10px; }
.profile-row { display: grid; grid-template-columns: 86px 110px 1fr 56px; align-items: center; gap: 10px; margin-bottom: 8px; }
.profile-row:last-child { margin-bottom: 0; }
.profile-lb { font-size: 11.5px; color: var(--ink-500); }
.profile-vl { font-size: 13px; font-weight: 600; color: var(--ink-900); word-break: break-all; }
.profile-pct { font-size: 11.5px; color: var(--ink-500); text-align: right; font-variant-numeric: tabular-nums; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.aud-cell { padding: 4px 0; min-width: 0; }
.aud-lb { font-size: 11px; color: var(--ink-500); margin-bottom: 3px; }
.aud-vl { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; word-break: break-all; }
.aud-pct { font-size: 11px; color: var(--ink-500); }
@media (max-width: 720px) {
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-row { grid-template-columns: 76px 1fr 56px; }
  .profile-row .bar { display: none; }
}

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 2px 0; }
.step { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.step-node {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 600; background: var(--ink-100); color: var(--ink-500); flex: 0 0 20px;
}
.step.done .step-node { background: var(--brand-100); color: var(--brand-700); }
.step.active .step-node { background: var(--brand-700); color: #fff; box-shadow: 0 0 0 3px rgba(15,110,78,.15); }
.step span { font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.step.active span { color: var(--ink-900); font-weight: 550; }
.step.done span { color: var(--ink-700); }
.step-line { width: 22px; height: 1.5px; background: var(--line-strong); margin: 0 5px; flex: 0 0 22px; }
.step.done + .step-line, .step-line.done { background: var(--brand-500); }

/* 网格 */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
@media (max-width: 1180px) { .g-main, .g-side, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .g2 { grid-template-columns: 1fr; } }

.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.muted { color: var(--ink-500); }
.small { font-size: 11.5px; }
.strong { font-weight: 600; color: var(--ink-900); }
.nowrap { white-space: nowrap; }
.mt6{margin-top:6px}.mt10{margin-top:10px}.mt14{margin-top:14px}.mt18{margin-top:18px}
.mb6{margin-bottom:6px}.mb10{margin-bottom:10px}.mb14{margin-bottom:14px}

/* 迷你图表 */
.spark { display: block; width: 100%; height: 46px; }
.chart-svg { display: block; width: 100%; overflow: visible; }
.chart-svg .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .axis-text { font-size: 10px; fill: var(--ink-400); font-family: var(--font); }
.chart-svg .bar-rect { transition: opacity .15s; }
.chart-svg .bar-rect:hover { opacity: .78; }

/* 漏斗 */
.funnel { display: flex; flex-direction: column; gap: 5px; }
.funnel-row { display: flex; align-items: center; gap: 10px; }
.funnel-row .lb { width: 88px; font-size: 11.5px; color: var(--ink-600); text-align: right; flex: 0 0 88px; }
.funnel-row .track { flex: 1; height: 24px; background: var(--ink-50); border-radius: 5px; overflow: hidden; position: relative; }
.funnel-row .fill { height: 100%; border-radius: 5px; display: flex; align-items: center; padding-left: 8px; color: #fff; font-size: 11.5px; font-weight: 600; transition: width .5s cubic-bezier(.2,.8,.3,1); font-variant-numeric: tabular-nums; }
.funnel-row .rate { width: 46px; font-size: 11px; color: var(--ink-500); text-align: right; flex: 0 0 46px; font-variant-numeric: tabular-nums; }

/* 评分 */
.rate-input { display: inline-flex; gap: 3px; }
.rate-input button {
  width: 24px; height: 24px; border: 1px solid var(--line-strong); background: #fff; border-radius: 5px;
  cursor: pointer; font-size: 11.5px; color: var(--ink-500); transition: all .12s; font-variant-numeric: tabular-nums;
}
.rate-input button:hover { border-color: var(--brand-600); color: var(--brand-700); }
.rate-input button.on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }

/* 启动遮罩 */
.boot {
  position: fixed; inset: 0; background: var(--bg); z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--ink-500); font-size: 12.5px; transition: opacity .3s;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  animation: pulse 1.15s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.86); opacity: .6 } }

.skeleton { background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 50%, var(--ink-100) 75%); background-size: 200% 100%; animation: shim 1.3s infinite; border-radius: 5px; }
@keyframes shim { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* 通知面板 */
.pop {
  position: absolute; top: calc(100% + 6px); right: 0; width: 330px; max-height: 400px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 60; animation: pop2 .14s ease;
}
@keyframes pop2 { from { transform: translateY(-5px); opacity: 0 } to { transform: none; opacity: 1 } }
.pop-item { padding: 10px 13px; border-bottom: 1px solid var(--line); display: flex; gap: 9px; }
.pop-item:last-child { border-bottom: none; }
.pop-item .ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 24px; }
.pop-item b { font-size: 12.5px; display: block; color: var(--ink-900); font-weight: 500; }
.pop-item p { font-size: 11.5px; color: var(--ink-500); line-height: 1.55; margin-top: 1px; }
.pop-item time { font-size: 10.5px; color: var(--ink-400); }

.dropdown { position: relative; }

/* 品牌切换条（达人详情：按品牌隔离进度/样品） */
.brand-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 13px; }
.brand-bar.single { margin-bottom: 13px; }
.brand-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--ink-700);
  transition: border-color .15s, background .15s, color .15s;
}
.brand-pill:hover { border-color: var(--brand-500); }
.brand-pill.active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.brand-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-400); flex: 0 0 8px; }
.brand-pill .bp-name { font-weight: 500; }
.brand-bar.single b { font-size: 13px; color: var(--brand-800); }

/* 达人详情头 */
.talent-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.hero-top { display: flex; gap: 12px; align-items: flex-start; }
.hero-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-name h2 { font-size: 17px; }
.hero-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: var(--ink-500); }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px; }
.metric { background: #fff; padding: 8px 10px; }
.metric dt { font-size: 10.5px; color: var(--ink-500); }
.metric dd { margin: 1px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric dd small { font-size: 11px; font-weight: 500; color: var(--ink-500); }

/* 标签页 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button {
  padding: 8px 12px; border: none; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--ink-500); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: color .13s, border-color .13s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs button:hover { color: var(--ink-800); }
.tabs button.active { color: var(--brand-700); border-bottom-color: var(--brand-700); font-weight: 550; }
.tabs button .n { font-size: 10.5px; background: var(--ink-100); padding: 0 5px; border-radius: 8px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.tabs button.active .n { background: var(--brand-100); color: var(--brand-700); }

/* 风控面板 */
.risk-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.risk-head { padding: 10px 12px; display: flex; align-items: center; gap: 9px; }
.risk-head.pass { background: var(--ok-bg); color: var(--ok); }
.risk-head.blocked { background: var(--danger-bg); color: var(--danger); }
.risk-list { padding: 4px 0; background: #fff; }
.risk-item { padding: 7px 12px; display: flex; gap: 8px; font-size: 12px; line-height: 1.55; }
.risk-item b { flex: 0 0 auto; }
.risk-item.block b { color: var(--danger); }
.risk-item.warn b { color: var(--warn); }

/* 物流 */
.trace { position: relative; padding-left: 16px; }
.trace::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.trace-item { position: relative; padding: 0 0 11px; font-size: 12px; }
.trace-item::before { content: ''; position: absolute; left: -15px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); }
.trace-item:first-child::before { background: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.trace-item:first-child { color: var(--ink-900); font-weight: 500; }
.trace-item time { display: block; font-size: 10.5px; color: var(--ink-400); margin-top: 1px; font-variant-numeric: tabular-nums; }

.list-plain > li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.list-plain > li:last-child { border-bottom: none; }

.stat-line { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 0; }
.stat-line .lb { color: var(--ink-500); flex: 0 0 74px; }
.stat-line .vl { font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }
.divider-text { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 11px; color: var(--ink-400); }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 860px) {
  :root { --sidebar-w: 60px; }
  .brand-text, .nav-label, .nav-item span, .who-info { display: none; }
  .nav-item { justify-content: center; }
  .content { padding: 14px 12px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ 登录屏 ============ */
.login-screen { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b3d2e 0%, #0f6e4e 55%, #0f766e 100%); padding: 20px; }
.login-card { width: 360px; max-width: 100%; background: #fff; border-radius: 16px; padding: 28px 26px 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32); animation: pop2 .18s ease; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.login-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); display: grid; place-items: center; flex: 0 0 38px; }
.login-brand .brand-mark svg { width: 20px; height: 20px; fill: #fff; }
.login-brand b { font-size: 15px; display: block; color: var(--ink-900); }
.login-brand span { font-size: 11.5px; color: var(--ink-500); }
.login-card h2 { font-size: 18px; margin-bottom: 16px; color: var(--ink-900); }
.login-card form label { display: block; font-size: 12px; color: var(--ink-600); margin: 12px 0 5px; font-weight: 500; }
.login-card .input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font-size: 14px; background: var(--ink-50); transition: border-color .15s, box-shadow .15s; }
.login-card .input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); background: #fff; }
.login-err { display: none; margin-top: 10px; font-size: 12.5px; color: var(--danger); background: var(--danger-bg); padding: 8px 10px; border-radius: 8px; }
.login-card .btn-block { margin-top: 18px; height: 44px; font-size: 15px; letter-spacing: 2px; }
.login-hint { margin-top: 14px; font-size: 11.5px; color: var(--ink-400); text-align: center; line-height: 1.6; }
@keyframes pop2 { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============ 用户管理 ============ */
.users-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.users-table th, .users-table td { padding: 11px 13px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.users-table th { background: var(--ink-50); color: var(--ink-600); font-weight: 600; font-size: 12px; white-space: nowrap; }
.users-table tr:last-child td { border-bottom: none; }
.users-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.user-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.user-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.user-status.on .dot { background: var(--ok); }
.user-status.off .dot { background: var(--ink-300); }
.flex-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ============ 插件下载页 ============ */
.dl-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.dl-card { padding: 18px; }
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-logo { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); display: grid; place-items: center; flex: 0 0 44px; }
.dl-logo svg { width: 22px; height: 22px; fill: #fff; }
.dl-name { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.dl-sub { margin-top: 2px; }
.dl-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 4px; }
.dl-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; }
.dl-meta-row span { color: var(--ink-500); }
.dl-meta-row b { color: var(--ink-900); font-weight: 600; }
.btn-lg { height: 46px; font-size: 15px; }
.dl-tip { margin-top: 10px; font-size: 12px; color: var(--ink-500); line-height: 1.6; text-align: center; }
.dl-steps { padding: 18px 20px; }
.dl-steps-title { font-size: 14px; margin-bottom: 14px; color: var(--ink-900); }
.dl-ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.dl-ol li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dl-ol li:last-child { border-bottom: none; }
.dl-num { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.dl-ol b { font-size: 13.5px; color: var(--ink-900); display: block; margin-bottom: 3px; }
.dl-ol p { font-size: 12.5px; color: var(--ink-600); line-height: 1.65; margin: 0; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }
