/* 基础样式 */
.real-stats-widget {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* 浅色主题 */
.real-stats-widget.light {
    background-color: #ffffff;
    color: #333333;
}

/* 深色主题 */
.real-stats-widget.dark {
    background-color: #2d3748;
    color: #e2e8f0;
}

.widget-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.title-flow {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-card {
    padding: 10px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.real-stats-widget.light .stat-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.real-stats-widget.dark .stat-card {
    background-color: #4a5568;
    border: 1px solid #718096;
}

.stat-content {
    text-align: center;
}

.counter-label {
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
    color: #64748b;
}

.real-stats-widget.dark .counter-label {
    color: #a0aec0;
}

.counter-value {
    font-size: 20px;
    font-weight: bold;
    transition: all 0.5s ease;
}

.counter-suffix {
    font-size: 11px;
    display: block;
    margin-top: 3px;
    color: #64748b;
}

.real-stats-widget.dark .counter-suffix {
    color: #a0aec0;
}

.online-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stats-footer {
    font-size: 12px;
}

.footer-row {
    margin-bottom: 8px;
    text-align: center;
}

.footer-peak {
    font-weight: bold;
}

.footer-rule {
    font-size: 11px;
    color: #64748b;
}

.real-stats-widget.dark .footer-rule {
    color: #a0aec0;
}

.footer-refresh {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.uniform-btn {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.uniform-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.real-stats-widget.light .uniform-btn {
    background-color: #3b82f6;
    color: white;
}

.real-stats-widget.dark .uniform-btn {
    background-color: #4f46e5;
    color: white;
}

.uniform-btn.non-interactive {
    cursor: default;
    opacity: 0.7;
}

.uniform-btn.non-interactive:hover {
    transform: none;
}

.stats-tabs {
    display: flex;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    font-size: 14px;
    transition: all 0.3s ease;
}

.real-stats-widget.light .tab-btn {
    color: #475569;
}

.real-stats-widget.dark .tab-btn {
    color: #cbd5e1;
}

.tab-btn.active {
    font-weight: bold;
    border-bottom: 2px solid #3b82f6;
}

.tab-content {
    width: 100%;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-refresh, .footer-buttons {
        flex-direction: column;
    }
    
    .uniform-btn {
        width: 100%;
        justify-content: center;
    }
}
    