:root {
  --primary: #1677ff;
  --primary-2: #3f8cff;
  --primary-3: #7fb3ff;
  --primary-bg: #edf4ff;
  --primary-soft: #69a9ff;
  --primary-deep: #125fcc;
  --green: #52c41a;
  --yellow: #f5c542;
  --control-h: 36px;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #8c8c8c;
  --sidebar: #1e1e1e;
  --border: #e8e8e8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", sans-serif; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
.btn, .icon-btn, .text-btn, .dropdown-item, .avatar-btn { transition: all .2s ease; cursor: pointer; }
.btn { border: 1px solid transparent; border-radius: 8px; padding: 0 16px; height: var(--control-h); font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--border); }
.btn-secondary:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn:hover, .avatar-btn:hover, .search-btn:hover, .clear-btn:hover { transform: translateY(-1px); }
.full { width: 100%; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.field input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--primary); }
.checkbox-line { font-size: 13px; user-select: none; }
.form-message { min-height: 20px; color: #cf1322; font-size: 13px; }

.login-page { height: 100vh; overflow: hidden; background: #edf3fb; }
.login-topbar { height: 80px; background: #1e1e1e; display: flex; align-items: center; padding: 0 24px; }
.login-top-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 24px; }
.login-top-icon { width: 40px; height: 40px; border-radius: 4px; background: #3662ec; display: inline-flex; align-items: center; justify-content: center; padding: 5px; }
.login-top-icon svg { width: 100%; height: 100%; }
.login-main { height: calc(100vh - 80px); position: relative; display: grid; justify-items: center; align-content: center; row-gap: 24px; padding: 24px 80px; }
.login-bg-blur { position: absolute; left: 482px; top: 0; width: 1438px; height: 1000px; background: url("../login ui/image.png.png") center/cover no-repeat; opacity: .7; filter: blur(35px); z-index: 0; pointer-events: none; }
.login-shell { position: relative; z-index: 1; width: min(1592px, 92vw); margin: 0; height: min(669px, calc(100vh - 80px - 120px)); display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; }
.login-visual { background: linear-gradient(231deg, #79aef9 -86%, #ffffff 100%); position: relative; display: flex; align-items: center; justify-content: center; }
.visual-shadow { position: absolute; width: 92%; max-width: 700px; opacity: .85; }
.visual-main { position: relative; width: 72%; max-width: 560px; }
.login-form-pane { background: #fff; padding: 78px 52px 42px; display: flex; flex-direction: column; }
.pane-title { margin: 0; color: #376fbc; font-size: 20px; font-weight: 500; }
.pane-sub { margin: 12px 0 36px; color: #636d78; font-size: 18px; }
.login-title { margin: 0 0 18px; font-size: 20px; }
.row-field { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.row-field span { color: #222; font-size: 20px; white-space: nowrap; }
.row-field input { width: 100%; height: 56px; border: 1px solid #e4e7ee; border-radius: 8px; padding: 0 16px; font-size: 16px; outline: none; transition: all .2s; }
.row-field input:focus { border-color: #2f7df6; box-shadow: 0 0 0 2px rgba(47,125,246,.08); }
.row-captcha { display: grid; grid-template-columns: 1fr 152px; align-items: center; gap: 12px; margin-bottom: 8px; }
.row-captcha .row-field { margin-bottom: 0; }
.captcha-btn { height: 56px; border-radius: 8px; border: 1px solid #e7e9ef; background: #faf7ed; color: #d19c3d; font-size: 20px; }
.captcha-btn:hover { border-color: #d6b578; background: #fff8e9; }
.row-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-left: 84px; }
.row-tools .checkbox-line, .agreement { font-size: 14px; color: #6d7682; }
.agreement { display: block; margin-bottom: 26px; padding-left: 84px; }
.agreement a { color: #2e75e6; text-decoration: none; }
.agreement a:hover { text-decoration: underline; }
.login-form-pane .btn-primary { height: 56px; border-radius: 8px; font-size: 18px; }
.login-form-pane .full { width: calc(100% - 84px); margin-left: 84px; }
.login-form-pane .form-message { min-height: 22px; margin: 10px 0 0; padding-left: 84px; font-size: 14px; }
.login-copyright { position: relative; z-index: 1; margin: 0; text-align: center; color: #3d434d; font-size: 14px; line-height: 1.3; flex: 0 0 auto; }
.login-page .text-btn { border: none; background: transparent; color: #7b8591; font-size: 14px; }
.login-page .text-btn:hover { color: var(--primary); text-decoration: underline; }
.login-page .checkbox-line input { margin-right: 6px; vertical-align: middle; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 44px; }
.pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: none; background: transparent; color: #8d96a3; cursor: pointer; }
.pwd-toggle:hover { color: #2f7df6; }
.pwd-toggle svg { width: 100%; height: 100%; }

@media (max-width: 1680px) {
  .login-top-brand { font-size: 22px; }
  .login-main { padding: 14px 56px 12px; }
  .login-shell { width: min(1500px, 94vw); height: min(620px, calc(100vh - 80px - 112px)); }
  .login-form-pane { padding: 52px 42px 28px; }
  .login-copyright { font-size: 14px; }
}
@media (max-width: 1366px) {
  .login-main { padding: 20px 48px; overflow: auto; }
  .login-bg-blur { left: 220px; width: 1120px; height: 760px; }
  .login-shell { height: min(560px, calc(100vh - 80px - 106px)); }
  .pane-sub { margin-bottom: 24px; font-size: 16px; }
  .row-field { grid-template-columns: 66px 1fr; margin-bottom: 12px; }
  .row-field span { font-size: 18px; }
  .row-field input, .captcha-btn, .login-form-pane .btn-primary { height: 46px; font-size: 15px; }
  .row-tools, .agreement, .login-form-pane .full, .login-form-pane .form-message { padding-left: 78px; width: calc(100% - 78px); }
}
@media (max-width: 1200px) {
  .login-page { height: auto; min-height: 100vh; overflow: auto; }
  .login-main { height: auto; min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; row-gap: 14px; }
  .login-shell { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .login-visual { min-height: 320px; }
  .login-form-pane { padding: 30px 24px; }
  .row-field { grid-template-columns: 56px 1fr; }
  .row-tools, .agreement, .login-form-pane .full, .login-form-pane .form-message { padding-left: 68px; margin-left: 0; width: calc(100% - 68px); }
}
@media (max-width: 768px) {
  .login-top-brand { font-size: 18px; }
  .login-main { padding: 16px; row-gap: 12px; }
  .login-bg-blur { left: 16px; top: 0; width: calc(100% - 32px); height: 100%; }
  .row-captcha { grid-template-columns: 1fr; }
  .agreement, .row-tools, .login-form-pane .full, .login-form-pane .form-message { padding-left: 0; width: 100%; }
}
.text-btn { border: none; background: transparent; color: var(--primary); }
.text-btn:hover { text-decoration: underline; }
dialog { border: none; border-radius: 12px; width: 420px; padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.35); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--card); color: var(--text); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--sidebar); color: #fff; padding: 12px; transition: width .2s; position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.sidebar.collapsed { width: 74px; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.brand-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-logo { width: 28px; height: 28px; color: #8cc8ff; }
.brand-name { font-size: 18px; font-weight: 600; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; display: flex; justify-content: center; }
.icon-btn { width: var(--control-h); height: var(--control-h); border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.icon-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { margin-bottom: 6px; }
.menu-btn { width: 100%; border: none; border-radius: 8px; padding: 10px; text-align: left; background: transparent; color: #fff; display: flex; gap: 8px; align-items: center; }
.menu-btn:hover { background: rgba(22,119,255,.25); }
.menu-btn.active { background: var(--primary); }
.sub-menu { display: none; padding: 4px 0 6px 30px; }
.sub-menu.show { display: block; }
.sub-menu-btn { width: 100%; border: none; background: transparent; color: #d9d9d9; text-align: left; border-radius: 6px; padding: 7px 8px; font-size: 13px; }
.sub-menu-btn:hover { background: rgba(22,119,255,.18); color: #fff; }
.sub-menu-btn.active { color: #fff; background: rgba(22,119,255,.45); }
.sidebar.collapsed .menu-text, .sidebar.collapsed .brand-name { display: none; }
.sidebar.collapsed .sub-menu { display: none !important; }
.main-section { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 2; }
.breadcrumb button { border: none; background: transparent; color: var(--muted); padding: 4px; }
.breadcrumb button:hover { color: var(--primary); }
.top-actions { display: flex; gap: 12px; align-items: center; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; }
.avatar-btn:hover { border-color: var(--primary); }
.top-icon-btn { color: var(--text); border-color: var(--border); background: var(--card); }
.top-icon-btn:hover { color: var(--primary); border-color: var(--primary); background: #f4f8ff; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--border); border-radius: 8px; min-width: 130px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.dropdown-item { width: 100%; border: none; padding: 10px; text-align: left; background: #fff; }
.dropdown-item:hover { background: #f4f8ff; color: var(--primary); }
.dropdown-item.danger:hover { color: #cf1322; background: #fff1f0; }
.content-area { padding: 16px 20px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.search-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0 10px; width: 320px; min-width: 320px; max-width: 320px; height: var(--control-h); }
.search-btn { width: 26px; height: 26px; border: none; border-radius: 6px; background: transparent; color: var(--muted); }
.search-btn:hover { color: var(--primary); background: #f0f6ff; }
.icon-svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
#toggleSidebar .icon-svg { width: 20px; height: 20px; }
#toggleSidebar { width: 20px; height: 20px; min-width: 20px; min-height: 20px; padding: 0; border-radius: 4px; }
.brand-logo .icon-svg { width: 28px; height: 28px; }
.search-wrap input { border: none; flex: 1; padding: 0; height: calc(var(--control-h) - 2px); outline: none; font-size: 14px; }
.clear-btn { width: 22px; height: 22px; border: none; border-radius: 50%; background: #f0f0f0; }
.clear-btn::before { content: "×"; }
.clear-btn:hover { background: #ffd6d6; color: #cf1322; }
.list-tools { display: flex; align-items: center; gap: 8px; }
.list-icon-btn { color: var(--primary); border-color: #bfd9ff; background: #eef5ff; }
.list-icon-btn:hover { background: #ddebff; }
.grid { display: grid; gap: 12px; margin-top: 14px; }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.card h4 { margin: 0 0 10px; font-size: 14px; }
.home-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #1f2d4d; }
.metric { font-size: 26px; color: var(--primary); font-weight: 700; }
.metric-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.metric-head .icon-svg { color: var(--primary-soft); }
.chart-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(240px, 1fr)); margin-top: 12px; }
canvas { width: 100%; height: auto; min-height: 220px; display: block; }
.pie-canvas { aspect-ratio: 1 / 1; width: 240px; height: 240px; min-height: 0; margin: 0 auto; max-width: 100%; }
.toolbar { display: flex; gap: 8px; margin-top: 12px; }
.toolbar button { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 6px 10px; }
.toolbar button.active, .toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 0 12px; text-align: left; font-size: 14px; height: 48px; line-height: 48px; vertical-align: middle; white-space: nowrap; }
.table tr:hover td { background: #f8fbff; }
.index-col { width: 72px; color: var(--muted); }
.main-link { color: var(--primary); text-decoration: none; }
.main-data { display: inline-block; max-width: 100%; min-width: 0; vertical-align: middle; }
.cell-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-link:hover { text-decoration: underline; }
.op-icons { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.op-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); flex: 0 0 auto; }
.op-btn:hover { color: var(--primary); border-color: var(--primary-soft); background: #f4f8ff; }
.op-btn.delete:hover { color: #cf1322; border-color: #ffccc7; background: #fff1f0; }
.op-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }
.op-btn.disabled:hover { color: var(--muted); border-color: var(--border); background: #fff; transform: none; }
.status-tag { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 12px; padding: 0 10px; height: 24px; line-height: 24px; }
.status-done { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.status-running { background: #e6f4ff; color: #1677ff; border: 1px solid #91caff; }
.status-pending { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; }
.status-risk { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.pager-right { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-end; }
.table-footer select { width: 128px; min-width: 128px; height: var(--control-h); font-size: 14px; }
.table-footer .btn { height: var(--control-h); }
.total-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.table-scroll { overflow: auto; border-radius: 10px; }
/* 仅许可管理等横向滚动表格使用固定布局，避免影响其它列表页 */
.table-scroll .table { table-layout: fixed; min-width: 1120px; }
.license-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.license-tabs button { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 7px 14px; }
.license-tabs button.active, .license-tabs button:hover { border-color: var(--primary); color: var(--primary); background: #f2f8ff; }
.license-tools { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.license-tools .search-wrap { width: 320px; min-width: 320px; max-width: 320px; }
.license-my { margin-top: 12px; }
.license-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.license-grid label, .license-progress label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.license-grid strong { font-size: 15px; font-weight: 600; }
.license-progress { margin-top: 14px; display: grid; gap: 12px; }
.quota-line { display: flex; align-items: center; gap: 12px; }
.quota-line span { min-width: 110px; color: var(--text); font-size: 13px; }
.license-my .quota-track { width: 1460px; max-width: 100%; flex: none; }
.quota-track { height: 10px; border-radius: 999px; background: #eaf2ff; overflow: hidden; flex: 1; }
.quota-track i { display: block; height: 100%; background: linear-gradient(90deg, #7ab2ff, #2f7df6); }
.license-tip { margin: 14px 0 0; color: #d48806; font-size: 13px; }
.license-actions { margin-top: 12px; }
#licenseFormDialog { width: 600px; height: 540px; padding: 0; overflow: hidden; }
#licenseFormDialog[open] { display: flex; flex-direction: column; }
#licenseFormDialog > h3 { margin: 0; padding: 20px 20px 12px; }
.license-form-body { flex: 1; overflow: auto; padding: 0 20px; }
.license-form-actions { margin-top: 0; padding: 12px 20px 20px; border-top: 1px solid var(--border); background: var(--card); }
.module-cards { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.module-card { border: 1px solid #d7e6ff; border-radius: 10px; background: #f8fbff; padding: 10px 12px; transition: all .2s ease; cursor: pointer; }
.module-card { width: 100%; }
.module-card:hover { border-color: #8fbfff; box-shadow: 0 2px 8px rgba(22,119,255,.12); }
.module-card.selected { border-color: var(--primary); background: #eef5ff; box-shadow: 0 2px 8px rgba(22,119,255,.18); }
.module-card-head { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.module-card-head input[type="checkbox"] { margin: 0; }
.module-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.module-version-group { margin-top: 8px; padding-left: 0; }
.module-version-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.module-version-options { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; min-height: 28px; white-space: nowrap; }
.module-version-options .checkbox-line { display: inline-flex; align-items: center; gap: 6px; margin: 0; line-height: 1; white-space: nowrap; }
.module-version-options .checkbox-line input { margin: 0; vertical-align: middle; }
.module-card.module-disabled .module-version-group { opacity: .45; }
.module-card.module-disabled .module-version-options { pointer-events: none; }
#licenseDetailDialog { width: 760px; max-width: 92vw; max-height: 82vh; overflow: auto; }
.license-detail-body { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.license-detail-item label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.license-detail-item strong { font-size: 14px; }
.license-detail-wide { grid-column: 1 / -1; }
.license-detail-wide > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.license-detail-wide .quota-line span { min-width: 130px; }
#licenseDetailDialog .quota-track { width: 100%; max-width: none; flex: 1; }
#infoDialog { width: 420px; }
.chart-tooltip { position: fixed; pointer-events: none; z-index: 20; background: rgba(20,20,20,.92); color: #fff; padding: 6px 8px; border-radius: 6px; font-size: 12px; }
.empty-tip { color: var(--muted); padding: 16px; }
.button-row { display: flex; gap: 8px; }
.dark { --bg: #141414; --card: #1f1f1f; --text: #f5f5f5; --muted: #bfbfbf; --border: #303030; }
.dark .search-wrap, .dark .table, .dark .topbar, .dark .card, .dark .avatar-btn, .dark .dropdown-item, .dark .dropdown-menu, .dark .op-btn, .dark select, .dark .profile-card, .dark dialog { background: #1f1f1f; color: var(--text); }
.dark .field input { background: #141414; color: #fff; border-color: #434343; }
.dark .list-icon-btn { background: #1d2f4a; border-color: #2b4f7e; color: #8bbcff; }
.dark .table tr:hover td { background: #161f2a; }
.dark .op-btn.disabled { opacity: .45; }
.dark .top-icon-btn { background: #1f1f1f; color: #d9d9d9; border-color: #434343; }
.dark .license-tabs button { background: #1f1f1f; border-color: #3a3a3a; color: #d9d9d9; }
.dark .license-tabs button.active, .dark .license-tabs button:hover { border-color: #5a8de6; color: #9fc2ff; background: #1a2b46; }
.dark .quota-track { background: #273a57; }
.dark .module-card { border-color: #2f4568; background: #1c2634; }
.dark .module-card.selected { border-color: #5a8de6; background: #1a2b46; }
.dark .module-card-title { color: #d9e6ff; }
.dark .home-card h3 { color: #d9e6ff; }
.profile-page { min-height: 100vh; display: grid; place-items: center; }
.profile-card { width: 480px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
@media (max-width: 1200px) { .chart-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 992px) { .sidebar { position: fixed; z-index: 3; } .main-section { margin-left: 240px; } .sidebar.collapsed + .main-section { margin-left: 74px; } .chart-grid { grid-template-columns: 1fr; } .action-bar { flex-wrap: wrap; } }

.period-toggle { display: flex; gap: 8px; margin-top: 4px; margin-bottom: 12px; }
.period-btn { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid #d6e6ff; background: #fff; color: #4b6285; font-size: 13px; cursor: pointer; transition: all .2s ease; }
.period-btn:hover, .period-btn.active { background: linear-gradient(180deg, #4a97ff, #2b77f3); color: #fff; border-color: #3f8cff; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(170px, 1fr)); margin-bottom: 12px; }
.stat-item { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); border: 1px solid #dce9ff; border-radius: 10px; padding: 10px 12px; min-height: 88px; box-shadow: 0 4px 10px rgba(64, 123, 255, 0.08); }
.stat-label { display: flex; align-items: center; gap: 6px; color: #5b7195; font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 28px; line-height: 1; font-weight: 700; color: #1e62d0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.home-card { border-radius: 10px; border: 1px solid var(--home-card-border, #dce8ff); background: linear-gradient(180deg, var(--home-card-top, #fff) 0%, var(--home-card-bottom, #f9fbff) 100%); box-shadow: 0 6px 14px rgba(48, 111, 235, 0.08); }
.home-card canvas { background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%); border-radius: 8px; }
.grid-3 .home-card { height: 318px; display: flex; flex-direction: column; }
.grid-3 .home-card > h3 { flex: 0 0 auto; }
.grid-3 .home-card > canvas,
.grid-3 .home-card > .pie-wrap,
.grid-3 .home-card > .rank-list { flex: 1 1 auto; min-height: 0; }
.pie-wrap { display: grid; grid-template-columns: minmax(160px, 1fr) 140px; align-items: center; gap: 10px; height: 100%; }
.pie-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie-legend li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #5a7092; }
.legend-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
.legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-val { color: #245fb8; font-weight: 600; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.rank-main { flex: 1; min-width: 0; }
.rank-main > div:first-child { color: #2f466b; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; border-radius: 999px; background: #eaf2ff; overflow: hidden; box-shadow: inset 0 0 0 1px #d5e5ff; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8ab8ff, #3a84f6 56%, #2a6fe5); }
.rank-value { font-size: 14px; color: #2d5faf; font-weight: 600; min-width: 28px; text-align: right; }
.dark .home-card, .dark .stat-item { border-color: #2e4468; background: linear-gradient(180deg, #1f2735 0%, #1a2230 100%); }
.dark .stat-label { color: #9cb6db; }
.dark .stat-value { color: #7fb3ff; }
.dark .rank-main > div:first-child { color: #b9ccec; }
.dark .bar { background: #273a57; }
.dark .pie-legend li { color: #9eb5d6; }
.dark .legend-val { color: #9fc2ff; }
.dark .home-card canvas { background: linear-gradient(180deg, #202b3c 0%, #1b2433 100%); }
.list-page .table { margin-top: 20px; }

#pageContent {
  --home-card-border: #dce8ff;
  --home-card-top: #ffffff;
  --home-card-bottom: #f7fbff;
}
