/* 首页自定义样式 */

/* 通用样式 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

.section-title p {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
}

/* 企业简介区域 */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* 统计数据 */
.stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-item {
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 服务卡片 */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 40px;
    color: #fff;
}

.service-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.service-card ul {
    text-align: left;
    color: #666;
    margin-bottom: 25px;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
}

.service-card ul li:before {
    content: '✓';
    color: #007bff;
    font-weight: bold;
    margin-right: 8px;
}

/* 证书展示 */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.certificate-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.05);
}

.certificate-item h4 {
    margin: 15px 0 10px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.certificate-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 经营理念 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.philosophy-item:hover .philosophy-icon {
    transform: scale(1.1);
}

.philosophy-icon i {
    font-size: 32px;
    color: #fff;
}

.philosophy-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.philosophy-item p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

/* 新闻资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 学习园地 */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.learn-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.learn-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.learn-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.learn-item:hover .learn-icon {
    transform: scale(1.1);
}

.learn-icon i {
    font-size: 32px;
    color: #fff;
}

.learn-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.learn-item p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 联系方式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 32px;
    color: #fff;
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.contact-item p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
    font-size: 16px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

/* 背景色 */
.bg-light {
    background-color: #f8f9fa;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.text-white {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item:not(:last-child):after {
        display: none;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .certificate-grid,
    .philosophy-grid,
    .news-grid,
    .learn-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 24px;
    }
    
    .service-card,
    .philosophy-item,
    .learn-item {
        padding: 20px 15px;
    }
    
    .stats-row {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
} 