/* 首页特有样式 */

/* 轮播图 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

    .slide.active {
        opacity: 1;
    }

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

    .slide-content h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        animation: fadeInDown 1s ease;
    }

    .slide-content p {
        font-size: 1.5rem;
        margin-bottom: 30px;
        animation: fadeInUp 1s ease;
    }

    .slide-content .btn {
        animation: fadeIn 1.5s ease;
    }

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

    .slider-controls button {
        background: rgba(255, 255, 255, 0.3);
        border: none;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .slider-controls button:hover {
            background: rgba(255, 255, 255, 0.5);
        }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

    .slider-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .slider-dots .dot.active {
            background: white;
            transform: scale(1.2);
        }

/* 特色服务 */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.feature-item h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 产品展示 */
.products-preview {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all {
    color: var(--primary-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

    .view-all:hover {
        color: var(--dark-blue);
        text-decoration: underline;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.product-image {
    height: 700px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.product-category {
    color: var(--secondary-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 新闻动态 */
.news-preview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.news-date {
    color: var(--secondary-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.news-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

    .read-more:hover {
        color: var(--dark-blue);
        text-decoration: underline;
    }

/* 合作伙伴 */
.partners {
    padding: 80px 0;
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.partner-logo {
    flex: 0 0 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .partner-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .features-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo {
        flex: 0 0 120px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
