/* 网站访问统计看板 */
.stat-page{padding:26px 0 50px}
.stat-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(31,60,79,.06);padding:20px 24px;margin-bottom:16px}
.stat-title-wrap{display:flex;align-items:center;gap:14px;min-width:240px}
.stat-channel-avatar{width:48px;height:48px;border-radius:12px;background:#e6f7f5;display:flex;align-items:center;justify-content:center;flex:none}
.stat-channel-avatar img{width:30px;height:30px}
.stat-title-wrap h1{font-size:22px;margin:0 0 4px;color:#1a2b50;line-height:1.3}
.stat-channel-meta{margin:0;color:#7b8794;font-size:13px;display:flex;gap:14px;flex-wrap:wrap}
.stat-channel-meta b{color:#33475b;font-weight:600}
.stat-online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#28c76f;margin-right:5px;vertical-align:middle}
.stat-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.stat-presets{display:flex;background:#f2f5f7;border-radius:8px;padding:3px}
.stat-presets button{border:0;background:transparent;color:#5c6b7a;font-size:13px;padding:6px 12px;border-radius:6px;cursor:pointer}
.stat-presets button.active{background:#fff;color:#009688;font-weight:600;box-shadow:0 1px 4px rgba(31,60,79,.12)}
.stat-custom-range{display:flex;align-items:center;gap:6px;font-size:13px;color:#8a97a4}
.stat-custom-range input[type=date]{border:1px solid #dfe5ea;border-radius:6px;padding:5px 8px;font-size:13px;color:#33475b;background:#fff}
.stat-head-input{border:1px solid #dfe5ea;border-radius:6px;padding:5px 8px;font-size:13px;color:#33475b;background:#fff;width:160px}
.stat-btn{border:1px solid #dfe5ea;background:#fff;color:#33475b;border-radius:8px;padding:7px 14px;font-size:13px;cursor:pointer}
.stat-btn:hover{border-color:#009688;color:#009688}
.stat-btn.primary{background:#009688;border-color:#009688;color:#fff}
.stat-btn.primary:hover{background:#00806f;border-color:#00806f;color:#fff}
.stat-btn:disabled{opacity:.6;cursor:default}
.stat-notice{background:#fff8e6;border:1px solid #ffe1a8;color:#8a6116;border-radius:10px;padding:14px 18px;margin-bottom:16px;font-size:14px}
.stat-notice.error{background:#fff1f0;border-color:#ffc9c5;color:#c0392b}
.stat-notice a{color:#009688;font-weight:600;margin-left:6px}
.stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.stat-card{background:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(31,60,79,.06);padding:16px 18px}
.stat-card-label{font-size:13px;color:#7b8794;margin-bottom:8px}
.stat-card-value{font-size:26px;font-weight:700;color:#1a2b50;line-height:1.2;font-variant-numeric:tabular-nums}
.stat-card-extra{font-size:12px;color:#8a97a4;margin-top:6px;min-height:16px}
.stat-grid{display:grid;gap:16px;margin-bottom:16px}
.stat-grid.two{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.stat-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat-panel{background:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(31,60,79,.06);padding:18px 20px;min-width:0}
.stat-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.stat-panel h2{font-size:16px;margin:0;color:#1a2b50;font-weight:700}
.stat-panel .stat-sub{font-size:12px;color:#8a97a4}
.stat-chart{width:100%;height:320px}
.stat-split{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap}
.stat-pie{width:46%;min-width:190px;height:300px;flex:none}
.stat-list{flex:1;min-width:170px;display:flex;flex-direction:column;gap:10px;justify-content:center}
.stat-list-item{font-size:13px;color:#33475b}
.stat-list-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}
.stat-list-head span:last-child{color:#8a97a4}
.stat-bar{height:6px;background:#eef2f5;border-radius:4px;overflow:hidden}
.stat-bar i{display:block;height:100%;background:linear-gradient(90deg,#3fd0c0,#009688);border-radius:4px}
.stat-table-wrap{overflow-x:auto}
table.stat-table{width:100%;border-collapse:collapse;font-size:13px;color:#33475b}
table.stat-table th{text-align:left;font-weight:600;color:#7b8794;font-size:12px;padding:8px 10px;border-bottom:1px solid #eef2f5;white-space:nowrap}
table.stat-table td{padding:9px 10px;border-bottom:1px solid #f4f7f9;vertical-align:middle}
table.stat-table tr:last-child td{border-bottom:0}
table.stat-table tr:hover td{background:#fafcfd}
.stat-link{color:#009688;word-break:break-all}
.stat-link:hover{text-decoration:underline}
.stat-muted{color:#8a97a4;font-size:12px}
.stat-ellipsis{display:inline-block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.stat-empty{text-align:center;color:#a6b1bc;font-size:13px;padding:26px 0}
.stat-table-wide{min-width:820px}
.stat-nowrap{white-space:nowrap}
.stat-badge{display:inline-block;font-size:11px;line-height:1;padding:4px 7px;border-radius:20px;background:#eef2f5;color:#5c6b7a;white-space:nowrap}
.stat-badge.new{background:#e6f7f5;color:#009688}
.stat-badge.admin{background:#fff2e0;color:#c47d17}
.stat-badge.blocked{background:#ffeceb;color:#d64541}
.stat-tabs{display:flex;gap:6px;border-bottom:1px solid #eef2f5;margin-bottom:14px}
.stat-tabs button{border:0;background:transparent;padding:9px 14px;font-size:14px;color:#7b8794;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.stat-tabs button.active{color:#009688;border-bottom-color:#009688;font-weight:600}
.stat-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.stat-filters input,.stat-filters select{border:1px solid #dfe5ea;border-radius:7px;padding:6px 10px;font-size:13px;color:#33475b;background:#fff;min-width:120px}
.stat-filters input[type=text]{min-width:180px}
.stat-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;font-size:13px;color:#7b8794}
.stat-pager button{border:1px solid #dfe5ea;background:#fff;border-radius:6px;padding:5px 12px;font-size:13px;color:#33475b;cursor:pointer}
.stat-pager button:disabled{opacity:.45;cursor:default}
.stat-loading{text-align:center;color:#8a97a4;font-size:14px;padding:70px 0}
.stat-loading:before{content:"";display:inline-block;width:14px;height:14px;border:2px solid #cfe7e3;border-top-color:#009688;border-radius:50%;margin-right:8px;vertical-align:-2px;animation:stat-spin .8s linear infinite}
@keyframes stat-spin{to{transform:rotate(360deg)}}
.stat-subpanel-title{font-size:12px;color:#8a97a4;margin:0 0 8px;font-weight:600}
.stat-mini-empty{color:#a6b1bc;font-size:12px;padding:14px 0}
@media (max-width:991px){.stat-grid.two,.stat-grid.three{grid-template-columns:1fr}.stat-pie{width:100%;height:260px}.stat-ellipsis{max-width:200px}}
@media (max-width:575px){.stat-page{padding:14px 0 34px}.stat-header{padding:16px}.stat-title-wrap h1{font-size:19px}.stat-card-value{font-size:22px}.stat-chart{height:260px}}
