/* 统计数据最外层包装容器 */
.stats-wrapper {
    width: 100%;
    display: flex;
    height: 221px;
    justify-content: center;
    background-color: #FFC107;  /* 黄色底色 */
    padding: 0 40px; /* 左右边距 */
    margin: 0;
    box-sizing: border-box;
}

/* 统计数据外层容器 */
.stats-section {
    width: 100%;
    max-width: 1200px; /* 设置最大宽度 */
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* 数据容器样式 - 黄色底色，固定高度221px，宽度自适应 */
.stats-container {
    display: flex;
    width: 100%;
    height: 221px;
    background-color: #FFC107;  /* 黄色底色 */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* 单个数据项样式 */
.stat-item {
    flex: 1;  /* 平均分配宽度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding: 20px;
    /* 移除边框线 */
}

/* 数据值样式 */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: #333;  /* 默认深色 */
}

/* 数据标签样式 */
.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;  /* 默认深色 */
}

/* 悬停效果 - 黑色背景，白色文字 */
.stat-item:hover {
    background-color: #000;  /* 黑色背景 */
    color: #fff;
}

.stat-item:hover .stat-value {
    color: #fff;  /* 悬停时数字变白色 */
}

.stat-item:hover .stat-label {
    color: #fff;  /* 悬停时标签变白色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-wrapper {
        padding: 0 20px; /* 移动端减少左右内边距 */
    }
    
    .stats-container {
        flex-wrap: wrap;
        height: auto;  /* 移动端高度自适应 */
    }

    .stat-item {
        flex: 0 0 50%;  /* 两列布局 */
        height: 110px;  /* 每个项目高度为原来的一半 */
        /* 移除所有边框线 */
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-wrapper {
        padding: 0 10px; /* 小屏幕进一步减少内边距 */
    }
    
    .stat-item {
        flex: 0 0 100%;  /* 单列布局 */
        height: 55px;    /* 每个项目高度为原来的1/4 */
        padding: 10px;
        /* 移除所有边框线 */
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

