.stats-page-main { max-width: 1120px; }
.stats-hero { padding: 25px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.stats-kicker { color:var(--blue); font-size:11px; font-weight:800; letter-spacing:1.3px; margin-bottom:5px; }
.stats-hero h1 { margin:0; font-size:28px; line-height:1.2; }
.stats-hero p { margin:7px 0 0; color:var(--muted); font-size:14px; }
.stats-refresh { border:1px solid var(--line); padding:10px 17px; border-radius:12px; cursor:pointer; font-weight:700; white-space:nowrap; }
.window-switch { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:12px; }
.window-switch button { height:48px; border:1px solid var(--line); border-radius:13px; background:var(--card); color:var(--muted); font-size:16px; font-weight:700; cursor:pointer; }
.window-switch button.active { background:var(--blue); color:#fff; border-color:var(--blue); box-shadow:0 6px 16px rgba(47,107,234,.18); }

.custom-window { margin-top:8px; padding:10px 12px; display:flex; align-items:center; gap:9px; background:var(--card); border:1px solid var(--line); border-radius:13px; box-shadow:var(--shadow); }
.custom-window span { color:var(--muted); font-size:13px; font-weight:700; }
.custom-window input { width:92px; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--text); font-size:14px; outline:none; }
.custom-window button { height:38px; padding:0 14px; border:0; border-radius:9px; background:var(--blue); color:#fff; font-weight:700; cursor:pointer; }
.stats-root { margin-top:14px; }
.stat-section { margin-bottom:15px; padding:20px 22px 18px; background:var(--card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); }
.stat-section-title { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:13px; }
.stat-section-title h2 { margin:0; font-size:19px; }
.stat-section-title span { color:var(--muted); font-size:12px; }
.stat-items { display:grid; gap:9px; }
.stat-item { display:grid; grid-template-columns:72px minmax(0,1fr) 52px; align-items:center; gap:14px; min-height:68px; padding:9px 11px; border:1px solid var(--line); border-radius:15px; background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(247,249,252,.55)); }
body.dark .stat-item { background:rgba(255,255,255,.02); }
.stat-label { width:60px; height:60px; border-radius:15px; display:grid; place-items:center; color:#fff; font-size:21px; font-weight:850; box-shadow:0 4px 12px rgba(35,55,85,.08); }
.label-red{background:linear-gradient(145deg,#ef5356,#df3438)} .label-blue{background:linear-gradient(145deg,#3c82ee,#2862d7)} .label-green{background:linear-gradient(145deg,#2bb68a,#15956d)} .label-orange{background:linear-gradient(145deg,#eea348,#d67a16)} .label-gray{background:linear-gradient(145deg,#9aa9bd,#718096)}
.stat-copy { color:var(--muted); font-size:14px; line-height:1.5; }
.stat-copy b { color:var(--text); font-size:20px; margin:0 2px; }
.stat-track { height:8px; margin-top:8px; background:#e9edf4; border-radius:8px; overflow:hidden; }
body.dark .stat-track { background:#293244; }
.stat-fill { height:100%; border-radius:inherit; transition:width .35s ease; background:var(--green); }
.stat-fill.is-hot { background:var(--red); } .stat-fill.is-cold { background:#2f6bea; } .stat-fill.is-normal { background:var(--green); }
.stat-state { font-size:15px; font-weight:800; text-align:right; white-space:nowrap; }
.stat-state.is-hot { color:var(--red); } .stat-state.is-cold { color:var(--blue); } .stat-state.is-normal { color:var(--green); }
.stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.stat-section-compact .stat-item { min-height:62px; }
.stat-section-compact .stat-label { width:54px; height:54px; border-radius:14px; font-size:18px; }
.stat-section-compact .stat-item { grid-template-columns:62px minmax(0,1fr) 48px; }
.stats-loading { padding:45px 20px; text-align:center; color:var(--muted); background:var(--card); border:1px solid var(--line); border-radius:20px; }
.stats-error { color:var(--red); }
@media (max-width:760px){
 .stats-hero{padding:17px 14px;border-radius:17px}.stats-hero h1{font-size:22px}.stats-hero p{font-size:12px}.stats-refresh{padding:8px 11px;font-size:12px}
 .window-switch{gap:6px}.window-switch button{height:42px;font-size:13px;border-radius:10px}
 .stat-section{padding:14px 10px 12px;border-radius:16px}.stat-section-title{margin:0 4px 8px}.stat-section-title h2{font-size:16px}
 .stat-item{grid-template-columns:49px minmax(0,1fr) 38px;gap:8px;min-height:58px;padding:6px 7px;border-radius:12px}
 .stat-label{width:46px;height:46px;border-radius:11px;font-size:17px}.stat-copy{font-size:11px}.stat-copy b{font-size:16px}.stat-track{height:6px;margin-top:6px}.stat-state{font-size:12px}
 .custom-window{padding:8px 9px}.custom-window input{width:78px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.stat-section-compact .stat-item{grid-template-columns:44px minmax(0,1fr) 34px;gap:6px;min-height:54px}
 .stat-section-compact .stat-label{width:42px;height:42px;border-radius:10px;font-size:15px}
 .stat-section-compact .stat-copy{font-size:10px}.stat-section-compact .stat-copy b{font-size:14px}.stat-section-compact .stat-state{font-size:10px}
}
.custom-window[hidden]{display:none!important}
/* 自定义期数默认隐藏，仅点击“自定义”后展开 */
.custom-window[hidden]{display:none!important}
