数据统计页:多机 KPI 对比与余额曲线采样。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 02:59:20 +08:00
parent 16f32fec2a
commit 36fbcc2d1b
11 changed files with 1036 additions and 48 deletions
+135
View File
@@ -795,3 +795,138 @@ input.readonly {
.cond-st.st-open { color: var(--ok); background: rgba(52, 211, 153, 0.12); }
.cond-st.st-done { color: var(--muted); background: rgba(138, 160, 184, 0.12); }
.cond-table-wrap { margin-top: 0; }
/* —— 数据统计 —— */
.stats-head {
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 4px;
}
.stats-window-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.stats-win-btn {
margin: 0;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--line);
background: rgba(8, 14, 24, 0.7);
color: var(--muted);
font-weight: 600;
box-shadow: none;
}
.stats-win-btn.is-active {
color: #041018;
border-color: transparent;
background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
#stats-status.err { color: var(--bad); }
.stats-kpi-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
}
.stats-kpi-card {
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(56, 189, 248, 0.14);
background: rgba(5, 12, 22, 0.55);
}
.stats-kpi-label {
font-size: 0.75rem;
color: var(--muted);
margin-bottom: 6px;
}
.stats-kpi-value {
font-size: 1.15rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.stats-card-head-inline {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 12px;
}
.stats-card-head-inline h2 {
margin: 0 0 4px;
font-family: var(--font-display);
font-size: 1.05rem;
letter-spacing: 0.04em;
}
.stats-card-head-inline .muted {
margin: 0;
max-width: 640px;
line-height: 1.45;
}
.stats-curve-toggle {
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
color: var(--muted);
font-size: 0.86rem;
}
.stats-curve-toggle input { width: auto; margin: 0; }
.stats-chart-wrap {
position: relative;
width: 100%;
min-height: 320px;
border-radius: 12px;
border: 1px solid rgba(56, 189, 248, 0.12);
background: rgba(4, 10, 18, 0.65);
overflow: hidden;
}
#stats-curve-canvas {
display: block;
width: 100%;
height: 320px;
}
.stats-chart-empty {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.stats-legend {
display: flex;
flex-wrap: wrap;
gap: 10px 14px;
margin-top: 10px;
}
.stats-legend-item {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
color: var(--muted);
}
.stats-legend-item i {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.stats-table th,
.stats-table td {
text-align: center;
vertical-align: middle;
}
.stats-table td:first-child,
.stats-table th:first-child {
text-align: left;
}
.stats-err-tip {
margin-top: 4px;
font-size: 0.75rem;
}
body.page-stats .main {
max-width: 1400px;
}