/**
 * 站点信息统计组件样式
 * 基于 AeroCore 主题变量
 */

.site-stats {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    padding: 20px;
    margin-bottom: 20px;
}

.site-stats__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.site-stats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.site-stats__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--border-radius, 10px);
    transition: all 0.3s ease;
}

.site-stats__item:hover {
    background: var(--bg-hover, #f1f5f9);
    transform: translateX(4px);
}

.site-stats__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stats-icon-color, #3b82f6);
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.site-stats__item:hover .site-stats__icon {
    transform: scale(1.1);
}

.site-stats__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.site-stats__number {
    font-size: 18px;
    font-weight: 700;
    color: var(--stats-number-color, #1e293b);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.site-stats__label {
    font-size: 12px;
    color: var(--stats-label-color, #64748b);
    line-height: 1.4;
}

/* 运行时间特殊样式 */
.site-stats__runtime {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-stats__time-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.site-stats__time-value {
    font-weight: 700;
}

.site-stats__time-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--stats-label-color, #64748b);
}

/* 日期时间特殊样式 */
.site-stats__datetime {
    font-size: 14px;
    font-weight: 600;
}

/* 数字动画效果 */
.site-stats__number[data-count] {
    opacity: 0;
    animation: stats-fade-in 0.5s ease forwards;
}

@keyframes stats-fade-in {
    to {
        opacity: 1;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .site-stats {
        padding: 16px;
    }
    
    .site-stats__item {
        padding: 10px;
    }
    
    .site-stats__icon {
        width: 36px;
        height: 36px;
    }
    
    .site-stats__number {
        font-size: 16px;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .site-stats {
        background: var(--bg-card-dark, #1e293b);
        border-color: var(--border-primary-dark, #334155);
    }
    
    .site-stats__title {
        color: var(--text-primary-dark, #f1f5f9);
        border-bottom-color: var(--border-light-dark, #334155);
    }
    
    .site-stats__item {
        background: var(--bg-secondary-dark, #0f172a);
    }
    
    .site-stats__item:hover {
        background: var(--bg-hover-dark, #1e293b);
    }
    
    .site-stats__number {
        color: var(--stats-number-color, #f1f5f9);
    }
    
    .site-stats__label {
        color: var(--stats-label-color, #94a3b8);
    }
}
