.banner {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: white;
}

/* Banner button links */
.banner-content .btn {
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.categories {
    padding: 80px 0;
}

.categories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1a365d;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 确保分类卡片链接无下划线 */
.category-grid a {
    text-decoration: none !important;
    color: inherit !important;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 18px;
    color: #1a365d;
}

.products {
    padding: 80px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1a365d;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 确保产品卡片链接无下划线 */
.product-grid a {
    text-decoration: none !important;
    color: inherit !important;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a365d;
}

.product-info p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
    color: #333;
}

.services {
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a365d;
}

.service-card p {
    color: #64748b;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .categories h2,
    .products h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 60px 0;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}