/* 第二屏 - 数据统计展示（参考阿里巴巴官网风格） */
.section-statistics {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    /* 添加淡雅的圆点矩阵背景 */
    background-image: radial-gradient(#e1e4e8 1.5px, transparent 1.5px), radial-gradient(#e1e4e8 1.5px, #ffffff 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.statistics-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.statistics-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
}

.statistics-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #999;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
}

/* 核心数据展示 - 阿里巴巴风格 */
.statistics-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6a00;
    margin-bottom: 8px;
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.stat-number::after {
    content: '+';
    font-size: 1.8rem;
    margin-left: 3px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* 服务类别展示 - 现代化卡片矩阵 */
.service-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
}

/* 依次延迟显示动画，配合JS使用，这里仅定义初始状态 */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.25s; }
.service-card:nth-child(5) { transition-delay: 0.3s; }
.service-card:nth-child(6) { transition-delay: 0.35s; }
.service-card:nth-child(7) { transition-delay: 0.4s; }
.service-card:nth-child(8) { transition-delay: 0.45s; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    /* 保留背景图逻辑，但建议使用纯字体图标更现代化 */
    background-size: 36px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 适配背景图 - 如果需要继续使用图片 */
.service-card:nth-child(1) .card-icon-wrapper { background-image: url('../image/报名1.png'); }
.service-card:nth-child(2) .card-icon-wrapper { background-image: url('../image/证书.png'); }
.service-card:nth-child(3) .card-icon-wrapper { background-image: url('../image/资讯中心.png'); }
.service-card:nth-child(4) .card-icon-wrapper { background-image: url('../image/人才库.png'); }
.service-card:nth-child(5) .card-icon-wrapper { background-image: url('../image/设备.png'); }
.service-card:nth-child(6) .card-icon-wrapper { background-image: url('../image/实验室房间.png'); }
.service-card:nth-child(7) .card-icon-wrapper { background-image: url('../image/报名查询.png'); }
.service-card:nth-child(8) .card-icon-wrapper { background-image: url('../image/Partners.png'); }

/* 覆盖 iconfont 样式，使其在有背景图时隐藏，或作为备选 */
.card-icon-wrapper .iconfont {
    font-size: 28px;
    color: #666;
    opacity: 0; /* 默认隐藏字体图标，优先显示背景图 */
    transition: all 0.3s ease;
}

/* 如果图片加载失败或不存在，可以考虑显示iconfont，这里简化处理 */

.service-card:hover .card-icon-wrapper {
    background-color: #fff5f0; /* 浅橙色背景 */
    transform: scale(1.1);
}

.card-content {
    text-align: center;
    z-index: 2;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.service-card:hover .card-title {
    color: #ff6a00;
}

.card-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover .card-desc {
    color: #666;
}

/* 底部悬停线条动画 */
.card-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6a00, #ffac38);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.service-card:hover .card-hover-line {
    transform: scaleX(1);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .service-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .statistics-grid {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 45%;
    }
}

/* 动画类，JS添加 active 类时触发 */
.section-statistics.active .service-card {
    opacity: 1;
    transform: translateY(0);
}
.section-statistics.active .service-card:hover {
    transform: translateY(-8px); /* 保持悬停效果 */
}

/* 数字动画效果 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.counting {
    animation: countUp 0.6s ease-out;
}
