/*
 * AUD Gaming - 统计卡片样式
 * 用于平台实时统计数据展示
 */

/* 统计区块容器 */
.live-statistics-section {
    position: relative;
    padding: 60px 0;
    margin-bottom: 40px;
    background: var(--primary-gradient);
    overflow: hidden;
    border-radius: 0;
}

.live-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/><rect fill="rgba(255,255,255,0.05)" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 20px;
    opacity: 0.3;
    z-index: 0;
}

.live-statistics-section .section-title {
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    font-size: 32px;
    font-weight: 700;
    z-index: 1;
}

.live-statistics-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #ff9d2f, #ff6126);
    border-radius: 3px;
}

/* 统计卡片网格 */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 四列等宽网格 */
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* 统计卡片 */
.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #d6dce2;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 统计卡片图标 */
.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 24px;
}

/* 统计数字 */
.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    line-height: 1.2;
    height: 50px; /* 固定高度确保一致性 */
    display: flex;
    align-items: center;
    justify-content: center; /* 居中显示 */
}

/* 统计标签 */
.stat-label {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 0;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .statistics-grid {
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 32px;
        height: 45px; /* 调整响应式下的高度 */
    }
}

@media (max-width: 992px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板设备改为两列 */
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 28px;
        height: 40px; /* 调整响应式下的高度 */
    }
    
    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .live-statistics-section {
        padding: 45px 0;
    }
    
    .live-statistics-section .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr; /* 移动设备改为单列 */
        max-width: 400px; /* 限制宽度 */
        margin: 0 auto; /* 居中显示 */
    }
    
    .stat-card {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .live-statistics-section {
        padding: 40px 0;
    }
    
    .live-statistics-section .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .statistics-grid {
        gap: 20px;
        max-width: 320px; /* 小屏幕设备进一步限制宽度 */
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .live-statistics-section .section-title::after {
        width: 60px;
        bottom: -12px;
    }
} 
