﻿/* 主要内容区 */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8)), url('../../Image/pic11.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

    .btn:hover {
        background-color: #0088e6;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

    .btn-outline:hover {
        background-color: white;
        color: var(--primary);
    }


/* 模块区样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--secondary);
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--accent);
        }

    .section-title p {
        color: var(--gray);
        max-width: 700px;
        margin: 15px auto 0;
        font-size: 1.1rem;
    }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.feature-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

    .feature-img img {
        height: 200px;
        width: 100%;
        background-size: cover;
        background-position: center;
    }

.feature-content {
    padding: 25px;
}

    .feature-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--secondary);
    }

    .feature-content p {
        color: var(--gray);
        margin-bottom: 20px;
    }

/* 新闻部分 */
.news-section {
    background-color: #f0f5ff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }


.news-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.news-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 产品分类 */
.categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .category-btn.active,
    .category-btn:hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

</style >
