/* 产品跑马灯效果专用CSS */
.products-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.products-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.products-marquee-wrapper {
    display: flex;
    width: max-content;
    animation: scroll-products 30s linear infinite;
}

.products-marquee-container:hover .products-marquee-wrapper {
    animation-play-state: paused;
}

.product-card {
    flex: 0 0 auto;
    width: 300px;
    margin: 0 15px;
    background: 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;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 500;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-card .btn {
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.product-card .btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

/* 跑马灯动画关键帧 */
@keyframes scroll-products {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-card {
        width: 250px;
    }

    .products-marquee-wrapper {
        animation-duration: 20s;
    }

    .products-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 250px;
    }

    .products-marquee-wrapper {
        animation-duration: 20s;
    }

    .products-section {
        padding: 60px 0;
    }
    
    .product-img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .product-card {
        width: 220px;
        margin: 0 10px;
    }

    .product-img {
        height: 220px;
    }
}