/* ============================================================
   罐罐引擎 · 设计系统
   蓝绿渐变 / 简约 / 微交互
   ============================================================ */

:root {
  /* 品牌色 */
  --blue: #3d7bf5;
  --blue-deep: #2563eb;
  --teal: #12b3a6;
  --green: #18b87a;
  --brand-grad: linear-gradient(135deg, #3d7bf5 0%, #12b3a6 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(61,123,245,.12), rgba(18,179,166,.12));

  /* 侧边栏（深海蓝 → 青绿） */
  --sidebar-grad: linear-gradient(180deg, #0a2140 0%, #0c3554 46%, #0a5b52 100%);

  /* 文本 */
  --ink: #10233f;
  --ink-2: #46607a;
  --ink-3: #7d90a5;
  --line: #e8eef5;
  --line-2: #f1f5fa;

  /* 背景 */
  --bg: #f2f6fa;
  --card: #ffffff;

  /* 语义色 */
  --good: #18b87a;
  --warn: #f5a524;
  --danger: #f04e45;
  --good-bg: #e7f8f1;
  --warn-bg: #fdf4e2;
  --danger-bg: #fdecea;
  --info-bg: #eaf1fe;

  /* 阴影 */
  --sh-card: 0 1px 2px rgba(16,42,72,.05);
  --sh-hover: 0 14px 34px -14px rgba(16,42,72,.22);
  --sh-pop: 0 18px 48px -12px rgba(10,33,64,.28);
  --sh-btn: 0 8px 20px -8px rgba(37,99,235,.55);
  --sh-teal: 0 8px 20px -8px rgba(18,179,166,.5);

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;

  --sidebar-w: 236px;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app { height: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd9e6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a9bccd; }
::-webkit-scrollbar-track { background: transparent; }

.num, td.num, .num * { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.cursor-pointer { cursor: pointer; }

/* ---------------- 动画 ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes growBar { from { width: 0; } }
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.anim-in { animation: fadeUp .45s cubic-bezier(.22,.8,.36,1) both; }

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

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

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-grad);
  color: #cfe0f0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.sidebar::before, .sidebar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.sidebar::before {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(61,123,245,.35), transparent 70%);
  top: -70px; right: -90px;
}
.sidebar::after {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(18,179,166,.28), transparent 70%);
  bottom: -90px; left: -80px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  position: relative; z-index: 1;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 18px -6px rgba(18,179,166,.7);
  flex-shrink: 0;
}
.logo-text { line-height: 1.25; }
.logo-text b { display: block; color: #fff; font-size: 16px; letter-spacing: .5px; }
.logo-text span { font-size: 11px; color: #8fb0c9; letter-spacing: .6px; }

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 20px;
  position: relative; z-index: 1;
}
.nav-group { font-size: 11px; color: #6d8aa6; letter-spacing: 1.4px; padding: 16px 12px 7px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  margin: 3px 0;
  border-radius: var(--r-sm);
  color: #a9c2d8;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color .22s ease, background .22s ease, transform .22s ease;
  user-select: none;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-item.active {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 22px -10px rgba(18,140,180,.85);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #6ea8ff, #2fe0cf);
}
.nav-item .nav-badge {
  margin-left: auto;
  font-size: 10.5px; font-weight: 700;
  background: rgba(240,78,69,.92);
  color: #fff; border-radius: 20px; padding: 1px 7px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.25); }

.sidebar-foot {
  padding: 14px 18px 18px;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11.5px; color: #7d9bb5;
}
.sidebar-foot .dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(24,184,122,.6);
  animation: pulse 1.8s infinite;
}

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

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: 66px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px;
  position: sticky; top: 0; z-index: 40;
}
.topbar-title h1 { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.topbar-title p { font-size: 11.5px; color: var(--ink-3); }
.topbar-spacer { flex: 1; }

.seg {
  display: inline-flex;
  background: #edf2f8;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: none; background: transparent;
  padding: 6px 13px;
  font-size: 12.5px; color: var(--ink-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.seg button:hover { color: var(--blue); }
.seg button.active {
  background: #fff;
  color: var(--blue-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16,42,72,.1);
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .22s ease;
  position: relative;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--blue); border-color: #c8dcff; box-shadow: var(--sh-card); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .red-dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid #fff;
}
.icon-btn.spinning svg { animation: spin 1s linear infinite; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  cursor: pointer;
  transition: all .22s ease;
}
.user-chip:hover { box-shadow: var(--sh-card); border-color: #c8dcff; }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.user-chip .uname { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-chip .urole { font-size: 11px; color: var(--ink-3); }

.dropdown {
  position: absolute; top: 58px; right: 26px;
  width: 190px; background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-pop);
  padding: 6px;
  z-index: 60;
  animation: fadeUp .22s ease both;
}
.dropdown .dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: background .15s;
}
.dropdown .dd-item:hover { background: var(--line-2); color: var(--ink); }
.dropdown .dd-item svg { width: 15px; height: 15px; }
.dropdown hr { border: none; border-top: 1px solid var(--line); margin: 5px 4px; }

/* ---------------- 页面容器 ---------------- */
.page { padding: 26px 28px 40px; }

/* ---------------- 站点底部 ---------------- */
.site-foot {
  padding: 14px 28px 20px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--blue-deep); text-decoration: underline; }
.site-foot .sep { color: #c9d6e3; user-select: none; }
.sb-foot-beian {
  margin-top: 8px;
  line-height: 1.6;
  font-size: 11px;
  color: #5d7a98;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sb-foot-beian a {
  color: inherit;
  text-decoration: none;
}
.sb-foot-beian a:hover { color: var(--blue-deep, #2b6fd9); text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; font-weight: 700; }
.page-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, filter .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--sh-btn);
  background-size: 140% 140%;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgba(28,120,210,.6); }
.btn-ghost {
  background: #fff; color: var(--ink-2); border-color: var(--line);
}
.btn-ghost:hover { color: var(--blue); border-color: #c2d8ff; transform: translateY(-1px); box-shadow: var(--sh-card); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f6d3d0; }
.btn-danger:hover { background: var(--danger-bg); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn svg.spinning { animation: spin 1s linear infinite; }

/* ---------------- 正式平台补充 ---------------- */
img.logo-mark { object-fit: cover; }
.nav-arrow { margin-left: auto; opacity: .6; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #0a2140; color: #eaf4ff; font-size: 13px;
  padding: 11px 22px; border-radius: 11px; z-index: 100;
  box-shadow: 0 18px 40px -12px rgba(10,33,64,.55);
  border: 1px solid rgba(110,168,255,.35);
}
.toast-enter-active, .toast-leave-active { transition: all .28s ease; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, 12px); }

.loading-box, .empty-box {
  display: grid; place-items: center; padding: 54px 0;
  color: var(--ink-3); font-size: 13px; text-align: center;
}
.loading-box .mini-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #dbe7f5; border-top-color: var(--blue);
  animation: spin .8s linear infinite; margin-bottom: 12px;
}
.loading-box { justify-items: center; }
.error-box {
  margin: 10px 0; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--danger-bg); color: var(--danger); font-size: 13px;
}
.muted { color: var(--ink-3); font-size: 12px; }
.data-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 15px; border-radius: var(--r-sm);
  background: #f2f7ff; border: 1px dashed #b9d2f7;
  color: #4a6480; font-size: 12px;
}
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kpi-sub { margin-top: 9px; font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* 通用头像 */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-grad); color: #fff;
  font-size: 13px; font-weight: 700;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

/* 操作人热度 */
.ops-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ops-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm); background: #f6f9fd;
}
.ops-item .ops-name { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-item .ops-count { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--blue-deep); }

/* 排行（序号版） */
.rank-row2 {
  display: grid; grid-template-columns: 26px 1fr 104px;
  align-items: center; gap: 12px; margin-bottom: 14px;
  text-decoration: none; border-radius: 10px; padding: 2px 4px;
  transition: background .18s;
}
.rank-row2:hover { background: #f6f9fd; }
.rank-row2:last-child { margin-bottom: 0; }
.rank-no {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  background: #e7eef7; color: #7388a0;
  font-size: 11.5px; font-weight: 700;
}
.rank-no.top { background: var(--brand-grad); color: #fff; }
.rank-main { min-width: 0; }
.rank-row2 .rank-name { margin-bottom: 5px; }
.rank-row2 .rank-val b { display: block; color: var(--ink); }
.rank-row2 .rank-val small { color: var(--ink-3); font-weight: 400; }

/* 搜索筛选行 */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-box { flex: 0 0 260px; }
.toolbar .spacer { flex: 1; }
.toolbar .range-hint { font-size: 12px; color: var(--ink-3); }

/* 账户/日志表行内标题 */
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.clickable { cursor: pointer; color: var(--blue-deep); }
.clickable:hover { text-decoration: underline; }

/* 表格/通知条内长文本单行截断（防撑破布局） */
.cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbl td .cell-clip { max-width: 460px; }
.notice .cell-clip { max-width: 780px; }

/* 双栏统计 */
.stat-mini { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-mini .sm-item b { font-size: 19px; font-weight: 700; }
.stat-mini .sm-item span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.log-diff { font-size: 11.5px; color: #55708c; }
.log-diff b { color: var(--danger); }
.log-diff em { color: var(--good); font-style: normal; }
.detail-drawer .drawer-body { padding: 18px 22px; overflow-y: auto; }
.kv-list { display: grid; grid-template-columns: 88px 1fr; gap: 10px 12px; font-size: 13px; }
.kv-list .k { color: var(--ink-3); }
.kv-list .v { color: var(--ink); word-break: break-all; }

/* ---------------- 卡片 / 栅格 ---------------- */
.grid { display: grid; gap: 18px; }
.g-12 { grid-template-columns: repeat(12, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card.pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3::before {
  content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: var(--brand-grad);
}
.card-head .sub2 { font-size: 11.5px; color: var(--ink-3); }
.card-body { padding: 18px 20px; }

/* KPI 卡 */
.kpi {
  padding: 19px 20px 16px;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.kpi:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.kpi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-grad-soft);
  color: var(--blue);
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-icon.teal { background: rgba(18,179,166,.12); color: var(--teal); }
.kpi-icon.green { background: var(--good-bg); color: var(--good); }
.kpi-icon.warn { background: var(--warn-bg); color: #d98c0c; }
.kpi-value { font-size: 27px; font-weight: 750; letter-spacing: -.4px; margin: 11px 0 4px; }
.kpi.good .kpi-value { color: var(--good); }
.kpi.warn .kpi-value { color: #d98c0c; }
.kpi.danger .kpi-value { color: var(--danger); }
.kpi-value .unit { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.kpi-foot { display: flex; align-items: center; gap: 8px; padding-right: 110px; }
.delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: var(--danger); }   /* 消耗上升用红（成本视角） */
.delta.down { color: var(--good); }
.delta.neutral { color: var(--ink-3); }
.delta.good-up { color: var(--good); } /* 转化上升用绿 */
.kpi-spark { position: absolute; right: 0; bottom: 0; opacity: .9; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 11px 16px;
  background: #f8fafd;
  white-space: nowrap;
}
.tbl th:first-child { border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
.tbl th.sortable:hover { color: var(--blue); }
.tbl th .sort-arrow { font-size: 12px; color: var(--blue); font-weight: 700; }
.sync-btn { padding: 5px 9px !important; color: var(--blue); }
.sync-btn:disabled { opacity: .6; cursor: wait; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #f6faff; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .strong { font-weight: 650; color: var(--ink); }
.tbl .clickable:hover { color: var(--blue); }

/* 状态 pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-bg); color: #0e9c66; }
.pill.warn { background: var(--warn-bg); color: #c4820a; }
.pill.danger { background: var(--danger-bg); color: #dc3d34; }
.pill.info { background: var(--info-bg); color: var(--blue-deep); }
.pill.gray { background: #eef2f7; color: #71869c; }
.pill.plain::before { display: none; }
.pill.plain { padding: 2px 9px; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600;
  background: var(--info-bg); color: var(--blue-deep);
}
.tag.teal { background: rgba(18,179,166,.12); color: #0c8f85; }
.tag.gray { background: #eef2f7; color: #71869c; }
.tag.warn { background: var(--warn-bg); color: #c4820a; }
.tag.purple { background: #f1ecfe; color: #7c55d8; }
.tag.danger { background: var(--danger-bg); color: #dc3d34; }

/* 健康分环 */
.score-ring {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 750;
  background: conic-gradient(var(--ring-c, var(--good)) calc(var(--s) * 1%), #edf1f6 0);
  flex-shrink: 0;
}
.score-ring::after {
  content: ""; position: absolute;
}
.score-ring span {
  width: 33px; height: 33px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
}
.score-ring.good { --ring-c: var(--good); }
.score-ring.low { --ring-c: #5aa7f0; }
.score-ring.warn { --ring-c: var(--warn); }
.score-ring.danger { --ring-c: var(--danger); }
.score-ring.inactive { --ring-c: #c4d0dd; }

/* ---------------- 表单 ---------------- */
.input, .select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.input:focus, .select:focus { border-color: #9cc0ff; box-shadow: 0 0 0 3px rgba(61,123,245,.12); }
.input::placeholder { color: #a6b6c7; }
.batch-box {
  padding: 12px 14px;
  background: rgba(61,123,245,.045);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.batch-input {
  height: auto;
  padding: 10px 13px;
  resize: vertical;
  line-height: 1.7;
  min-height: 72px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
}

/* 同步进度条 */
.sync-progress .sp-head { display: flex; align-items: baseline; gap: 10px; }
.sync-progress .sp-pct {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sync-progress .sp-track {
  height: 12px; margin: 10px 0 8px;
  background: #eef2f7; border-radius: 99px;
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,40,80,.06);
}
.sync-progress .sp-fill {
  height: 100%; border-radius: 99px; width: 0;
  background: var(--brand-grad);
  background-size: 200% 100%;
  animation: progressShift 2.4s linear infinite;
  transition: width .6s cubic-bezier(.25,.8,.35,1);
}
@keyframes progressShift {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
.sync-progress .sp-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.sync-progress .sp-legend .dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px; vertical-align: 1px;
}
.search-box { position: relative; }
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: #9db0c3; pointer-events: none;
}
.search-box .input { padding-left: 34px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; display: block; }

.filter-tabs { display: inline-flex; gap: 4px; background: #edf2f8; padding: 3px; border-radius: 10px; }
.filter-tabs button {
  border: none; background: transparent; padding: 6px 14px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.filter-tabs button.active { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 2px 8px rgba(16,42,72,.09); }
.filter-tabs button:hover:not(.active) { color: var(--blue); }

/* 分页页码 */
.pager-btn {
  min-width: 30px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12px; color: var(--ink-2); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: all .18s;
}
.pager-btn:hover:not(:disabled):not(.active) { color: var(--blue); border-color: var(--blue); box-shadow: 0 2px 8px rgba(61,123,245,.14); }
.pager-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 650; cursor: default; box-shadow: 0 3px 10px rgba(61,123,245,.28); }
.pager-btn:disabled:not(.active) { opacity: .45; cursor: not-allowed; }
.pager-btn.nav { font-weight: 550; }
.pager-ellipsis { color: #9db0c3; padding: 0 3px; user-select: none; }

/* 进度条（任务中心完成率 / 自运营达标进度） */
.progress-track {
  height: 8px; border-radius: 6px; background: #e9eff6;
  overflow: hidden; min-width: 60px;
}
.progress-bar {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #f0a83c, #e8912a);
  transition: width .5s cubic-bezier(.34,1.2,.64,1);
}
.progress-bar.good { background: var(--brand-grad, linear-gradient(90deg, #1fc2b0, #1285c9)); }
.progress-bar.info { background: linear-gradient(90deg, #5aa7f0, #3d7bf5); }

/* 开关 */
.toggle { width: 40px; height: 22px; border-radius: 22px; background: #d3deea; position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(16,42,72,.25);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.toggle.on { background: var(--brand-grad); }
.toggle.on::after { transform: translateX(18px); }

/* 进度条 */
.progress { height: 7px; border-radius: 10px; background: #edf1f6; overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 10px;
  background: var(--brand-grad);
  animation: growBar .8s cubic-bezier(.22,.8,.36,1) both;
}
.progress.good > i { background: linear-gradient(90deg, #2fd29a, #18b87a); }
.progress.warn > i { background: linear-gradient(90deg, #ffc257, #f5a524); }
.progress.danger > i { background: linear-gradient(90deg, #ff8178, #f04e45); }

/* 水平条形排行 */
.rank-row { display: grid; grid-template-columns: 92px 1fr 58px; align-items: center; gap: 12px; margin-bottom: 14px; }
.rank-row:last-child { margin-bottom: 0; }
.rank-name { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 8px; background: #eef2f7; border-radius: 8px; overflow: hidden; }
.rank-bar > i { display: block; height: 100%; border-radius: 8px; background: var(--brand-grad); animation: growBar .9s cubic-bezier(.22,.8,.36,1) both; transition: width .5s; }
.rank-bar.danger > i { background: linear-gradient(90deg, #ff8a81, #f04e45); }
.rank-val { font-size: 12.5px; font-weight: 700; text-align: right; }

/* ---------------- 抽屉 / 弹层 ---------------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10,28,52,.42);
  backdrop-filter: blur(2px);
  z-index: 90;
  animation: fadeIn .22s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 92vw;
  background: #fff; z-index: 100;
  box-shadow: -24px 0 60px rgba(10,33,64,.22);
  animation: slideInRight .32s cubic-bezier(.22,.8,.36,1);
  display: flex; flex-direction: column;
}
.drawer-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-head h3 { font-size: 16px; font-weight: 700; }
.drawer-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fbfdff; }
.x-btn {
  width: 32px; height: 32px; border-radius: 9px; border: none;
  background: #f1f5fa; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.x-btn:hover { background: #e6edf5; color: var(--danger); transform: rotate(90deg); }
.x-btn svg { width: 15px; height: 15px; }

.modal {
  position: fixed; z-index: 100;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 440px; max-width: 92vw;
  background: #fff; border-radius: 18px;
  box-shadow: var(--sh-pop);
  animation: fadeUp .28s cubic-bezier(.22,.8,.36,1) both;
  padding: 26px;
}
.modal-flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }

/* 启动遮罩 */
.boot-mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink-3); font-size: 13px;
}
/* 移动端侧栏遮罩 */
.sidebar-mask { position: fixed; inset: 0; background: rgba(10,28,52,.4); z-index: 70; }
/* 用户菜单 */
.user-chip { position: relative; }
.user-menu {
  position: absolute; top: 52px; right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-pop); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
}
.user-chip:hover .user-menu, .user-chip:focus-within .user-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.user-menu .dd-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border-radius: 8px; border: none; background: none;
  font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .15s;
}
.user-menu .dd-item:hover { background: var(--line-2); color: var(--ink); }
.user-menu .dd-item svg { width: 15px; height: 15px; }

/* 用户管理页 */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .btn.text-danger { color: var(--danger); }

/* 预警中心 */
.stat-clickable { cursor: pointer; transition: box-shadow .2s, transform .2s; border: 2px solid transparent; }
.stat-clickable:hover { transform: translateY(-2px); }
.stat-clickable.sel { border-color: var(--blue); }
.risk-tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 260px; }
.health-overview { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.health-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hs-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.hs-divider { width: 1px; height: 38px; background: var(--line); }
.hs-risks { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.hs-risk { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  background: var(--line-2); border-radius: 999px; transition: background .15s; }
.hs-risk:hover { background: var(--line); }
.hs-risk .score-ring { position: relative; }
.hs-rname { font-size: 12.5px; font-weight: 600; color: var(--ink); max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-list { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.assign-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: background .15s;
}
.assign-item:hover { background: var(--line-2); }
.assign-item input { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.assign-main { flex: 1; min-width: 0; }

/* 因子列表 */
.factor-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.factor-row:last-child { border-bottom: none; }
.factor-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.factor-ic.good { background: var(--good-bg); color: var(--good); }
.factor-ic.warn { background: var(--warn-bg); color: #d98c0c; }
.factor-ic.danger { background: var(--danger-bg); color: var(--danger); }
.factor-row .f-main { flex: 1; }
.factor-row .f-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.factor-row .f-score { font-weight: 700; font-size: 12.5px; }
.f-score.minus { color: var(--danger); }

/* 预警时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px currentColor;
}
.tl-item.danger { color: var(--danger); }
.tl-item.warn { color: var(--warn); }
.tl-item.good { color: var(--good); }
.tl-item .tl-time { font-size: 11.5px; color: var(--ink-3); }
.tl-item .tl-text { font-size: 13px; color: var(--ink); margin-top: 2px; }

/* 空状态 */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; opacity: .4; margin-bottom: 10px; }

/* 提示条 */
.notice {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: var(--r-md);
  font-size: 12.5px; margin-bottom: 16px;
}
.notice svg { width: 15px; height: 15px; flex-shrink: 0; }
.notice.info { background: var(--info-bg); color: #2d5bbf; }
.notice.warn { background: var(--warn-bg); color: #b57b08; }
.notice.danger { background: var(--danger-bg); color: #cf3a31; }

/* 图表容器 */
.chart { width: 100%; height: 300px; }
.chart.sm { height: 220px; }

/* 指标小卡（同步页） */
.mini-stat { display: flex; flex-direction: column; gap: 5px; }
.mini-stat .v { font-size: 22px; font-weight: 750; }
.mini-stat .l { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   登录页
   ============================================================ */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.login-aside {
  background: var(--sidebar-grad);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px 50px;
  color: #dceafe;
}
.login-aside::before {
  content: ""; position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,132,255,.35), transparent 68%);
  top: -160px; right: -140px;
}
.login-aside::after {
  content: ""; position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,200,180,.28), transparent 68%);
  bottom: -160px; left: -120px;
}
.la-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.la-top .logo-mark { width: 44px; height: 44px; font-size: 22px; }
.la-top b { color: #fff; font-size: 18px; }
.la-top span { display: block; font-size: 11.5px; color: #8fb0c9; }
.la-mid { position: relative; z-index: 1; }
.la-mid h2 { color: #fff; font-size: 32px; line-height: 1.35; font-weight: 750; letter-spacing: .5px; }
.la-mid h2 em { font-style: normal; background: linear-gradient(90deg, #7db4ff, #3fe6d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.la-mid p { margin-top: 14px; color: #9fbbd4; font-size: 13.5px; line-height: 1.9; }
.la-feats { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.la-feats span {
  font-size: 12px; padding: 7px 14px; border-radius: 30px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #cfe4f8;
}
.la-foot { position: relative; z-index: 1; font-size: 11.5px; color: #708faa; }
.la-foot a { color: inherit; text-decoration: none; }
.la-foot a:hover { color: #c5dcf0; text-decoration: underline; }
.la-foot .sep { color: #4c6987; }

.login-panel { display: grid; place-items: center; padding: 30px; background: var(--bg); }
.login-card {
  width: 400px; max-width: 100%;
  background: #fff; border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(16,42,72,.25);
  padding: 38px 36px 30px;
  animation: fadeUp .5s cubic-bezier(.22,.8,.36,1) both;
}
.login-card h3 { font-size: 22px; font-weight: 750; }
.login-card .tip { font-size: 12.5px; color: var(--ink-3); margin: 7px 0 26px; }
.lf-row { margin-bottom: 17px; }
.lf-icon-input { position: relative; }
.lf-icon-input svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9db0c3; }
.lf-icon-input .input { padding-left: 38px; height: 44px; }
.role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 20px; }
.role-opt {
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 6px; text-align: center; cursor: pointer;
  transition: all .22s ease; background: #fff;
}
.role-opt .r-ic { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 6px; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); transition: all .22s; }
.role-opt .r-ic svg { width: 16px; height: 16px; }
.role-opt b { font-size: 12px; display: block; }
.role-opt:hover { border-color: #a9c8ff; transform: translateY(-2px); }
.role-opt.sel { border-color: transparent; background: var(--brand-grad); color: #fff; box-shadow: var(--sh-btn); }
.role-opt.sel .r-ic { background: rgba(255,255,255,.22); color: #fff; }
.login-submit { width: 100%; height: 45px; font-size: 14px; border-radius: 12px; margin-top: 4px; }
.login-hint { text-align: center; font-size: 11.5px; color: #a6b6c7; margin-top: 16px; }

/* ---------------- 工具类 ---------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs11 { font-size: 11px; }
.fw700 { font-weight: 700; }
.text-right { text-align: right; }
.divider-v { width: 1px; height: 20px; background: var(--line); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .span-2 { grid-column: span 4; }
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-5, .span-7 { grid-column: span 12; }
  .span-8, .span-9 { grid-column: span 12; }
}
.mobile-menu-btn { display: none; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: grid; }
  .login-aside { display: none; }
  .sidebar { position: fixed; z-index: 80; transform: translateX(-100%); transition: transform .28s; }
  .sidebar.open { transform: translateX(0); }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 12; }
  .topbar { padding: 0 16px; }
  .seg button { padding: 6px 9px; font-size: 12px; }
  .page { padding: 18px 14px 30px; }
}

/* ============================================================
   账户分配页
   ============================================================ */
.assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.assign-card {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.assign-card:hover { box-shadow: var(--sh-hover); border-color: #d0dfee; }
.assign-card.expanded { border-color: var(--blue); }
.assign-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.assign-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-grad); color: #fff; font-size: 16px; font-weight: 700;
  display: grid; place-items: center;
}
.assign-info { flex: 1; min-width: 0; }
.assign-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.assign-cost { text-align: right; flex-shrink: 0; }
.assign-cost .num-lg { font-size: 18px; font-weight: 750; color: var(--ink); display: block; line-height: 1.2; }
.assign-stats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.assign-stats .pill { font-size: 11px; padding: 2px 8px; }
.assign-actions { padding: 0 16px 12px; }
.assign-account-list { border-top: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.assign-account-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  cursor: pointer; transition: background .12s; font-size: 12.5px;
}
.assign-account-row:hover { background: var(--line-2); }
.assign-account-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-account-cost { color: var(--ink-3); flex-shrink: 0; font-weight: 600; }
.assign-drawer-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.assign-batch { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-end; }
.assign-batch textarea { flex: 1; font-size: 12px; resize: vertical; }
.drawer-lg { width: 680px; max-width: 92vw; }
.pager-inline { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; }

/* 可点击优化师链接 */
.link-cell { color: var(--blue-deep); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.link-cell:hover { text-decoration: underline; }
.pill.sm { font-size: 10px; padding: 1px 6px; }
.slide-enter-active, .slide-leave-active { transition: max-height .25s ease; overflow: hidden; }
.slide-enter-from, .slide-leave-to { max-height: 0; }
.slide-enter-to, .slide-leave-from { max-height: 400px; }

/* ---------------- 做工统计 ---------------- */
.op-filter { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.op-filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 650; color: var(--ink-2);
  padding-top: 6px; white-space: nowrap;
}
.op-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.op-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  background: #fff; border: 1px solid #dbe4ee;
  transition: all .18s ease;
}
.op-chip:hover { border-color: var(--teal, #12b3a6); color: var(--teal, #12b3a6); transform: translateY(-1px); }
.op-chip.active {
  color: #fff; background: var(--brand-grad); border-color: transparent;
  box-shadow: 0 3px 10px rgba(18, 153, 170, .28);
}
.op-chip-cnt {
  font-size: 11px; font-weight: 700; line-height: 1;
  background: #eef3f8; color: #6b7e92;
  border-radius: 999px; padding: 2px 7px;
}
.op-chip.active .op-chip-cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.picker-date { width: 138px; padding: 5px 8px; font-size: 12.5px; }
.filter-tabs .picker-date { margin: 0 2px; }
.chart-loading, .chart-empty {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: center; pointer-events: none;
}
.chart-empty {
  color: #8499ae; font-size: 13px;
  background: rgba(255, 255, 255, .65); padding: 8px 0;
}

/* 近 7 天操作次数表 */
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-table th, .ws-table td {
  padding: 11px 8px; text-align: center;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.ws-table thead th {
  background: #f8fafd; color: var(--ink-3);
  font-size: 12px; font-weight: 600;
}
.ws-table thead th:first-child { border-radius: 10px 0 0 10px; }
.ws-table thead th:last-child { border-radius: 0 10px 10px 0; }
.ws-table .ws-date { font-weight: 650; color: var(--ink-2); line-height: 1.35; }
.ws-table .ws-wk { font-size: 11px; color: #9aabbd; font-weight: 500; }
.ws-table tbody tr { transition: background .15s; }
.ws-table tbody tr:hover td { background: #f6faff; }
.ws-table .ws-op { text-align: left; padding-left: 16px; min-width: 120px; }
.ws-name { font-weight: 650; color: var(--ink); }
.ws-table .ws-num { min-width: 74px; border-radius: 7px; }
.ws-table .ws-sum {
  min-width: 84px; font-weight: 700; color: var(--teal, #12b3a6);
  background: #f2fbfa;
}
.ws-table .ws-today {
  box-shadow: inset 0 0 0 1px rgba(18, 179, 166, .35);
  background: #f2fbfa;
}
.ws-table tfoot td {
  border-bottom: none; border-top: 2px solid #e2e9f2;
  font-weight: 650; color: var(--ink-2); background: #fbfcfe;
}
.ws-table tfoot .ws-sum { color: var(--ink); background: #f1f5fa; }
