/* 小黑屋 Pro · 前台视觉（参照原站紧凑信息密度，重做细节） */
/* 全局兜底变量：弹窗/toast 可能被挂载到 .xhw-container 之外（如短代码、主题接管），
   必须自带变量，否则 var(--xhw-*) 全部失效导致面板透明、图标塌陷 */
:root {
    --xhw-bg: #eef1f7;
    --xhw-card: #ffffff;
    --xhw-text: #323b4f;
    --xhw-muted: #9099ab;
    --xhw-line: #e8ebf2;
    --xhw-head-bg: #f8f9fd;
    --xhw-blue: #5b8ff9;
    --xhw-blue-soft: #e9f1ff;
    --xhw-green: #35a878;
    --xhw-green-soft: #e8f7f0;
    --xhw-red: #ee5565;
    --xhw-red-soft: #fdecef;
    --xhw-purple: #8b7cf6;
    --xhw-purple-soft: #f0edff;
    --xhw-orange: #e8903b;
    --xhw-orange-soft: #fff3e6;
    --xhw-shadow: 0 6px 22px rgba(54, 72, 110, .06);
}
.xhw-container {
    --xhw-bg: #eef1f7;
    --xhw-card: #ffffff;
    --xhw-text: #323b4f;
    --xhw-muted: #9099ab;
    --xhw-line: #e8ebf2;
    --xhw-head-bg: #f8f9fd;
    --xhw-blue: #5b8ff9;
    --xhw-blue-soft: #e9f1ff;
    --xhw-green: #35a878;
    --xhw-green-soft: #e8f7f0;
    --xhw-red: #ee5565;
    --xhw-red-soft: #fdecef;
    --xhw-purple: #8b7cf6;
    --xhw-purple-soft: #f0edff;
    --xhw-orange: #e8903b;
    --xhw-orange-soft: #fff3e6;
    --xhw-shadow: 0 6px 22px rgba(54, 72, 110, .06);
    position: relative;
    min-height: 70vh;
    padding: 26px 18px 34px;
    color: var(--xhw-text);
    font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(760px 340px at 8% -6%, rgba(139, 124, 246, .10), transparent 65%),
        radial-gradient(680px 300px at 96% 0%, rgba(91, 143, 249, .10), transparent 62%),
        var(--xhw-bg);
    isolation: isolate;
}
.xhw-container *, .xhw-container *::before, .xhw-container *::after,
.xhw-modal *, .xhw-modal *::before, .xhw-modal *::after { box-sizing: border-box; }
.xhw-container .xhw-icon,
.xhw-modal .xhw-icon,
.xhw-toast .xhw-icon { width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.xhw-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .28; }
.xhw-shell { max-width: 1180px; margin: auto; }
.xhw-container[data-mode="dark"], .xhw-container[data-theme="dark"] {
    --xhw-bg: #141822;
    --xhw-card: #1e2430;
    --xhw-text: #e6ebf5;
    --xhw-muted: #939db1;
    --xhw-line: #303848;
    --xhw-head-bg: #242b39;
    --xhw-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

/* Hero */
.xhw-hero {
    position: relative;
    height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--xhw-card);
    border: 1px solid var(--xhw-line);
    border-radius: 14px;
    box-shadow: var(--xhw-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}
.xhw-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(91,143,249,.3), transparent); }
.xhw-hero__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: #3d465e; z-index: 1; }
.xhw-hero__badge .xhw-icon { width: 28px; height: 28px; color: var(--xhw-blue); }
.xhw-hero__sub { margin: 7px 0 0; color: var(--xhw-muted); font-size: 12px; z-index: 1; }
.xhw-hero__decor { position: absolute; color: #b9cdf5; opacity: .3; pointer-events: none; }
.xhw-hero__decor .xhw-icon { width: 100%; height: 100%; stroke-width: 1.1; }
.xhw-hero__decor--a { left: 5.5%; top: 18px; width: 82px; height: 82px; transform: rotate(-18deg); }
.xhw-hero__decor--b { right: 7%; top: 20px; width: 62px; height: 62px; opacity: .22; }
.xhw-hero__decor--c { right: 4%; bottom: -46px; width: 130px; height: 130px; border: 16px solid rgba(139,124,246,.16); border-radius: 50%; }
.xhw-container[data-theme="dark"] .xhw-hero__badge { color: #e6ebf5; }

/* 通用卡片 */
.xhw-panel, .xhw-chart-card {
    background: var(--xhw-card);
    border: 1px solid var(--xhw-line);
    border-radius: 14px;
    box-shadow: var(--xhw-shadow);
    margin-bottom: 14px;
}
.xhw-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--xhw-line); }
.xhw-panel__head h2 { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.xhw-panel__head p { margin: 4px 0 0; color: var(--xhw-muted); font-size: 12px; }

/* 列表面板 */
.xhw-list-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.xhw-list-panel__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.xhw-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.xhw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.xhw-chip--blue { background: var(--xhw-blue-soft); color: #4a7fe0; }
.xhw-chip--green { background: var(--xhw-green-soft); color: var(--xhw-green); }
.xhw-chip b { font-size: 12px; }
.xhw-announce { display: flex; align-items: baseline; gap: 10px; margin: 0 16px 12px; padding: 8px 12px; background: #fafbfe; border: 1px solid var(--xhw-line); border-radius: 8px; font-size: 11px; color: #788298; }
.xhw-announce b { color: #5b8ff9; white-space: nowrap; }
.xhw-container[data-theme="dark"] .xhw-announce { background: #242b39; }

.xhw-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; }
.xhw-search { display: flex; align-items: center; gap: 6px; height: 32px; min-width: 218px; padding: 0 4px 0 10px; border: 1px solid #dfe4ee; border-radius: 7px; background: var(--xhw-card); color: var(--xhw-muted); }
.xhw-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--xhw-text); font: inherit; font-size: 12px; }
.xhw-search input::placeholder { color: #a8afbd; }
.xhw-search button { height: 25px; padding: 0 11px; border: 0; border-radius: 5px; background: #7ba4f7; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.xhw-search button:hover { background: #5b8ff9; }
.xhw-toolbar select { height: 32px; min-width: 92px; padding: 0 8px; border: 1px solid #dfe4ee; border-radius: 7px; background: var(--xhw-card); color: #646e82; font: inherit; font-size: 12px; cursor: pointer; }
.xhw-icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #dfe4ee; border-radius: 7px; background: var(--xhw-card); color: #7f8aa0; font-size: 17px; cursor: pointer; flex: none; }
.xhw-icon-btn:hover { color: var(--xhw-blue); border-color: #bfd2fb; }
.xhw-icon-btn .xhw-icon { width: 16px; height: 16px; vertical-align: middle; }
.xhw-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--xhw-green); font-size: 11px; white-space: nowrap; }
.xhw-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--xhw-green); box-shadow: 0 0 0 3px rgba(53,168,120,.15); }
.xhw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; font: 700 11px/1 inherit; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.xhw-btn:hover { transform: translateY(-1px); }
.xhw-btn--outline { border: 1px solid #dfe4ee; background: var(--xhw-card); color: #5f6a80; }
.xhw-btn--outline:hover { border-color: #bfd2fb; color: var(--xhw-blue); }
.xhw-btn--primary { border: 1px solid transparent; background: var(--xhw-blue); color: #fff; }
.xhw-btn--hot { border: 1px solid transparent; background: linear-gradient(135deg, #ff6f91, #f74369); color: #fff; box-shadow: 0 4px 12px rgba(247,67,105,.22); }
.xhw-btn--ghost { border: 1px solid #dfe4ee; background: var(--xhw-card); color: var(--xhw-blue); }

/* 表格 */
.xhw-table-scroll { width: 100%; overflow-x: auto; }
.xhw-p-table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: auto; }
.xhw-p-table th { padding: 9px 10px; text-align: left; background: var(--xhw-head-bg); border-top: 1px solid var(--xhw-line); border-bottom: 1px solid var(--xhw-line); color: #8b94a6; font-size: 11px; font-weight: 700; white-space: nowrap; }
.xhw-sort { color: var(--xhw-blue); font-size: 9px; margin-left: 2px; }
.xhw-p-table td { padding: 10px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; font-size: 12px; white-space: nowrap; }
.xhw-container[data-theme="dark"] .xhw-p-table td { border-bottom-color: var(--xhw-line); }
.xhw-p-table tbody tr:last-child td { border-bottom: 0; }
.xhw-p-table tbody tr:hover { background: #fafcff; }
.xhw-container[data-theme="dark"] .xhw-p-table tbody tr:hover { background: #242b39; }
.xhw-num { color: #8c95a7; font-variant-numeric: tabular-nums; }
.xhw-user-cell { display: flex; align-items: center; gap: 8px; }
.xhw-user-cell img { width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--xhw-line); }
.xhw-user-cell strong { display: block; font-size: 12px; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xhw-user-cell small { display: block; color: #a0a8b8; font-size: 10px; line-height: 1.2; }
.xhw-user-badges { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; }
.xhw-user-badges img, .xhw-user-badges .xhw-user-level, .xhw-user-badges [class*="level"] { height: 15px; max-width: 46px; vertical-align: middle; }
.xhw-ip-badge { display: inline-block; padding: 1px 5px; border-radius: 4px; background: var(--xhw-blue-soft); color: #5b8ff9; font-size: 9px; font-weight: 600; }
.xhw-level { display: inline-block; padding: 2px 6px; border-radius: 4px; background: linear-gradient(135deg, #ffd76e, #f0a53b); color: #7a4a10; font-size: 10px; font-weight: 800; }
.xhw-role { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--xhw-blue-soft); color: #5b8ff9; font-size: 11px; }
.xhw-time { color: #8c95a7; font-size: 11px; }
.xhw-tag { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.xhw-tag--red { background: var(--xhw-red-soft); color: var(--xhw-red); }
.xhw-tag--purple { background: var(--xhw-purple-soft); color: var(--xhw-purple); }
.xhw-dur { display: inline-block; margin-right: 5px; padding: 2px 8px; border-radius: 5px; background: var(--xhw-blue-soft); color: #5b8ff9; font-size: 11px; font-weight: 700; }
.xhw-dur--forever { background: #f2f3f6; color: #7d8698; }
.xhw-mini { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.xhw-mini--blue { background: var(--xhw-blue-soft); color: #5b8ff9; }
.xhw-mini--gray { background: #f2f3f6; color: #9aa2b1; }
.xhw-reason-tag { display: inline-block; max-width: 150px; padding: 2px 9px; border: 0; border-radius: 5px; background: var(--xhw-orange-soft); color: #d9862c; font-size: 11px; overflow: hidden; text-overflow: ellipsis; font-family: inherit; }
.xhw-reason-tags .xhw-reason-tag { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.xhw-reason-tags .xhw-reason-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(232,144,59,.2); }
/* 蓝色标签必须泛蓝光：上面 hover 的橙色阴影是写死的，蓝标签会透出黄晕 */
.xhw-reason-tags .xhw-reason-tag--blue:hover { box-shadow: 0 4px 10px rgba(91,143,249,.22); }
.xhw-reason-tags .xhw-reason-tag:focus { outline: none; box-shadow: 0 0 0 3px rgba(232,144,59,.18); }
.xhw-reason-tags .xhw-reason-tag--blue:focus { box-shadow: 0 0 0 3px rgba(91,143,249,.2); }
.xhw-note { display: inline-block; max-width: 130px; color: #9aa2b1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.xhw-loading-row { text-align: center; color: var(--xhw-muted); padding: 38px !important; }
.xhw-p-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; font-size: 11px; color: #8c95a7; }
.xhw-p-pagination button { min-width: 25px; height: 25px; padding: 0 7px; border: 1px solid #e2e6ef; border-radius: 5px; background: var(--xhw-card); color: #788298; cursor: pointer; }
.xhw-p-pagination button.is-active { background: #5b8ff9; border-color: #5b8ff9; color: #fff; font-weight: 700; }
.xhw-p-pagination select, .xhw-p-pagination input { height: 25px; padding: 0 6px; border: 1px solid #e2e6ef; border-radius: 5px; background: var(--xhw-card); color: #788298; font: inherit; font-size: 11px; }
.xhw-p-pagination input { width: 38px; text-align: center; }

/* 温馨提示 */
.xhw-warning { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 14px; border: 1px solid #ffe2a0; border-radius: 8px; background: #fff8e4; color: #a37b24; font-size: 11px; }
.xhw-warning[hidden] { display: none; }
.xhw-warning__close { margin-left: auto; border: 0; background: transparent; color: #c69b3e; font-size: 17px; line-height: 1; cursor: pointer; }

/* 统计三卡 */
.xhw-charts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.xhw-chart-card { margin-bottom: 12px; overflow: hidden; }
.xhw-chart-card__head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--xhw-line); background: linear-gradient(180deg, #fdfdff, var(--xhw-card)); }
.xhw-chart-card__head h3 { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.xhw-chart-card__head .xhw-icon { color: var(--xhw-blue); }
.xhw-chart-card__body { height: 168px; padding: 10px 12px; }
.xhw-chart-card__body svg { width: 100%; height: 100%; overflow: visible; }
.xhw-grid { stroke: #e9edf5; stroke-width: 1; }
.xhw-axis { fill: #a2aabb; font-size: 10px; }
.xhw-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 5px; background: #eef1f7; }
.xhw-seg__btn { border: 0; border-radius: 4px; padding: 3px 9px; background: transparent; color: #8b94a6; font: 700 10px/1.4 inherit; cursor: pointer; }
.xhw-seg__btn.is-active { background: #5b8ff9; color: #fff; }
.xhw-type-body { display: flex; align-items: center; justify-content: center; gap: 26px; }
.xhw-donut { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.xhw-donut span { width: 72px; height: 72px; border-radius: 50%; background: var(--xhw-card); }
.xhw-donut__center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.xhw-donut__center b { font-size: 22px; line-height: 1.1; color: var(--xhw-text); }
.xhw-donut__center small { font-size: 9px; color: var(--xhw-muted); }
.xhw-type-legend { list-style: none; margin: 0; padding: 0; }
.xhw-type-legend li { display: flex; align-items: center; gap: 7px; margin: 10px 0; color: #788298; font-size: 11px; }
.xhw-type-legend b { color: var(--xhw-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--purple { background: var(--xhw-purple); }
.dot--red { background: var(--xhw-red); }
.xhw-reason-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding-top: 16px; }
.xhw-reason-tag { max-width: none; font-size: 12px; padding: 5px 11px; }
.xhw-reason-tag--blue { background: var(--xhw-blue-soft); color: #5b8ff9; }
.xhw-empty-note { color: var(--xhw-muted); font-size: 12px; }
.xhw-footer { text-align: center; color: #a6adbc; font-size: 11px; padding: 8px 0 0; }

/* 申诉 / 弹窗 */
.xhw-appeal-box { padding: 14px 16px; }
.xhw-appeal-body textarea { width: 100%; border: 1px solid #dfe4ee; border-radius: 8px; padding: 10px; resize: vertical; background: var(--xhw-card); color: var(--xhw-text); font: inherit; margin-bottom: 10px; }
.xhw-hint { color: var(--xhw-muted); font-size: 12px; line-height: 1.7; margin: 0 0 12px; }
.xhw-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 18px; }
.xhw-modal[hidden] { display: none; }
.xhw-modal__mask { position: absolute; inset: 0; background: rgba(16,22,36,.5); backdrop-filter: blur(3px); }
.xhw-modal__panel { position: relative; width: min(460px, 96vw); max-height: 86vh; overflow: auto; background: var(--xhw-card); border: 1px solid var(--xhw-line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.26); animation: xhw-pop .18s ease-out; }
.xhw-modal__panel--wide { width: min(600px, 96vw); }
@keyframes xhw-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.xhw-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--xhw-line); }
.xhw-modal__head h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.xhw-modal__head .xhw-icon { color: var(--xhw-blue); }
.xhw-modal__body { padding: 18px; }
.xhw-modal__body .xhw-search { background: #f6f8fc; }
.xhw-type-content p { margin: 0 0 10px; color: #5f6a80; font-size: 13px; line-height: 1.8; }
#xhw-credit-result { margin-top: 16px; }
.xhw-credit-card { border: 1px solid var(--xhw-line); border-radius: 10px; padding: 15px; background: #fafbfe; }
.xhw-credit-card__score { display: flex; align-items: baseline; gap: 9px; }
.xhw-credit-card__score strong { font-size: 34px; color: var(--xhw-blue); line-height: 1; }
.xhw-credit-card__score span { font-size: 12px; color: var(--xhw-muted); }
.xhw-credit-card__level { margin-left: auto; padding: 3px 11px; border-radius: 20px; background: var(--xhw-blue-soft); color: var(--xhw-blue); font-size: 11px; font-weight: 700; }
.xhw-credit-card__details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.xhw-credit-card__details span { background: var(--xhw-card); border-radius: 6px; padding: 4px 8px; font-size: 11px; color: #6f798c; }
.xhw-warn-line { margin-top: 10px; padding: 8px 11px; border-radius: 7px; background: var(--xhw-red-soft); color: #c74452; font-size: 12px; }
.xhw-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 1000000; padding: 11px 18px; border-radius: 10px; background: rgba(28,35,50,.94); color: #fff; font-size: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.28); max-width: 90vw; text-align: center; }
.xhw-toast[hidden] { display: none; }
.xhw-toast.is-error { background: #c74452; }
.xhw-inline-stats { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; background: #fff; color: #7b8497; font-size: 12px; }
.xhw-inline-stats b { color: var(--xhw-blue); font-size: 17px; }
.xhw-mark { display: inline-block; padding: 1px 6px; margin-right: 5px; border-radius: 4px; background: var(--xhw-red-soft); color: var(--xhw-red); font-size: 10px; }
.xhw-content-notice { padding: 9px 12px; border-radius: 7px; background: var(--xhw-red-soft); color: #c74452; font-size: 12px; margin-bottom: 10px; }

/* 小工具 */
.xhw-widget__count { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--xhw-line); }
.xhw-widget__count strong { font-size: 26px; color: var(--xhw-blue); }
.xhw-widget__count span { color: var(--xhw-muted); font-size: 12px; }
.xhw-widget__list { list-style: none; margin: 9px 0; padding: 0; }
.xhw-widget__list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--xhw-line); font-size: 12px; }
.xhw-widget__avatar img { border-radius: 50%; }
.xhw-widget__name { font-weight: 700; }
.xhw-widget__reason { margin-left: auto; color: var(--xhw-muted); max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xhw-widget__empty { color: var(--xhw-muted); font-size: 12px; }
.xhw-widget__link { display: inline-block; margin-top: 9px; color: var(--xhw-blue); font-size: 12px; text-decoration: none; }
.xhw-maintenance { display: grid; place-content: center; text-align: center; gap: 12px; }
.xhw-maintenance .xhw-icon { width: 40px; height: 40px; color: var(--xhw-blue); margin: auto; }
.xhw-maintenance h2 { font-size: 18px; margin: 0; }

@media (max-width: 1000px) {
    .xhw-charts { grid-template-columns: 1fr 1fr; }
    .xhw-charts .xhw-chart-card:first-child { grid-column: 1 / -1; }
    .xhw-status { margin-left: 0; }
}
@media (max-width: 720px) {
    .xhw-container { padding: 14px 10px 24px; }
    .xhw-hero { height: 116px; }
    .xhw-hero__decor--a { width: 56px; height: 56px; left: 3%; }
    .xhw-hero__decor--c { width: 90px; height: 90px; border-width: 11px; }
    .xhw-list-panel__head { padding: 12px 12px 8px; align-items: flex-start; flex-wrap: wrap; }
    .xhw-announce { margin: 0 12px 10px; }
    .xhw-toolbar { padding: 0 12px 12px; }
    .xhw-search { flex: 1 1 100%; }
    .xhw-toolbar select { flex: 1 1 46%; }
    .xhw-btn { flex: 1 1 auto; }
    .xhw-charts { grid-template-columns: 1fr; }
    .xhw-charts .xhw-chart-card:first-child { grid-column: auto; }
    .xhw-chart-card__body { height: 150px; }
    .xhw-type-body { gap: 18px; }
    .xhw-donut { width: 100px; height: 100px; }
    .xhw-donut span { width: 60px; height: 60px; }
}

/* 页面标题图标：支持 FontAwesome / 子比内置 SVG / 自定义 SVG 三种格式 */
.xhw-hero__badge > i { font-size: 26px; line-height: 1; color: var(--xhw-blue); font-style: normal; }
.xhw-hero__badge > svg { width: 28px; height: 28px; flex: none; color: var(--xhw-blue); }
.xhw-hero__badge > img { width: 28px; height: 28px; flex: none; border-radius: 7px; object-fit: contain; }
.xhw-container[data-theme="dark"] .xhw-hero__badge > i,
.xhw-container[data-theme="dark"] .xhw-hero__badge > svg { color: #8fb3ff; }

/* ------------------------------------------------------------------
   列表分页条（表格下方）
   ------------------------------------------------------------------ */
.xhw-p-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border-top: 1px solid var(--xhw-line);
    font-size: 12px;
    color: #7b8496;
}
.xhw-p-pagination .xhw-p-total b { color: var(--xhw-blue); font-weight: 700; }
.xhw-p-pagination .xhw-p-single { color: #9aa2b1; }
.xhw-p-pagination .xhw-p-pages { display: inline-flex; align-items: center; gap: 5px; }
.xhw-p-pagination .xhw-p-gap { padding: 0 2px; color: #b3bbc9; }
.xhw-p-pagination button {
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid #e3e8f2;
    border-radius: 7px;
    background: var(--xhw-card);
    color: #6b7688;
    font: 600 12px/1 inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.xhw-p-pagination button:hover:not(:disabled) { border-color: #bcd0f7; color: var(--xhw-blue); }
.xhw-p-pagination button.is-active {
    background: var(--xhw-blue);
    border-color: var(--xhw-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(91, 143, 249, .28);
}
.xhw-p-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.xhw-p-pagination .xhw-p-jumpbox { display: inline-flex; align-items: center; gap: 5px; }
.xhw-p-pagination select,
.xhw-p-pagination input {
    height: 28px;
    padding: 0 7px;
    border: 1px solid #e3e8f2;
    border-radius: 7px;
    background: var(--xhw-card);
    color: #6b7688;
    font: inherit;
    font-size: 12px;
}
.xhw-p-pagination input { width: 44px; text-align: center; }
.xhw-p-pagination select:focus,
.xhw-p-pagination input:focus { outline: none; border-color: #bcd0f7; }

.xhw-container[data-theme="dark"] .xhw-p-pagination { color: #94a3b8; }
.xhw-container[data-theme="dark"] .xhw-p-pagination button,
.xhw-container[data-theme="dark"] .xhw-p-pagination select,
.xhw-container[data-theme="dark"] .xhw-p-pagination input {
    background: #1f2733; border-color: #38425180; color: #cbd5e1;
}
.xhw-container[data-theme="dark"] .xhw-p-pagination button.is-active { background: var(--xhw-blue); border-color: var(--xhw-blue); color: #fff; }

/* 表头排序：可点击 + 箭头状态 */
.xhw-table th.sortable { cursor: pointer; user-select: none; }
.xhw-table th.sortable:hover { color: var(--xhw-blue); }
.xhw-table th.sortable .sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #c3cad8;
}
.xhw-table th.sortable.is-asc .sort-icon { border-top: 0; border-bottom: 5px solid var(--xhw-blue); }
.xhw-table th.sortable.is-desc .sort-icon { border-top-color: var(--xhw-blue); }

/* 标题图标：放大并加浅色圆角底座，比纯文字图标更醒目 */
.xhw-hero__badge .xhw-hero__icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(91, 143, 249, .10);
    color: var(--xhw-blue);
    font-size: 22px;
    line-height: 1;
    stroke-width: 1.95;
}
.xhw-hero__badge > svg.xhw-hero__icon { width: 40px; height: 40px; }
.xhw-hero__badge > img.xhw-hero__icon { width: 40px; height: 40px; padding: 4px; border-radius: 12px; background: rgba(91, 143, 249, .10); }
.xhw-container[data-theme="dark"] .xhw-hero__badge .xhw-hero__icon { background: rgba(91, 143, 249, .18); color: #8fb3ff; }
