/* 数据统计区域样式 */
.stats-section {
    padding: 30px 0;
    background: transparent;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    padding: 15px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: rgba(0,0,0,0.1);
    transition: height 0.3s ease;
}

.stat-item:last-child::after {
    display: none;
}

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

.stat-item:hover::after {
    height: 60%;
}

.stat-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: #ff8533;
}

.stat-number {
    font-size: 2.4em; /* 修改：增大数字字体大小，原来是1.8em */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.stat-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.stat-number:not(.sales-number) {
    animation: numberAnimation 2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    opacity: 0;
}

.sales-number {
    display: inline-block;
    min-width: 80px;
}

.stat-suffix {
    font-size: 1em;
    color: #2c3e50;
    opacity: 0.7;
    display: inline-block;
    margin-left: 2px;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.stat-item:hover .stat-label {
    color: var(--primary-color);
}

/* 数字动画 */
@keyframes numberAnimation {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 为每个数字设置不同的动画延迟 */
.stat-item:nth-child(1) .stat-number {
    animation-delay: 0.1s;
}
.stat-item:nth-child(3) .stat-number {
    animation-delay: 0.5s;
}
.stat-item:nth-child(4) .stat-number {
    animation-delay: 0.7s;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .stats-section {
        padding: 25px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-icon {
        font-size: 1.8em;
    }
    
    .stat-number {
        font-size: 2.2em; /* 修改：增大数字字体大小，原来是1.6em */
    }
    
    .stat-suffix {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px 8px;
    }
    
    .stat-icon {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 2em; /* 修改：增大数字字体大小，原来是1.4em */
        margin-bottom: 2px;
    }
    
    .stat-suffix {
        font-size: 1em;
    }
    
    .stat-label {
        font-size: 0.85em;
    }
}