
/* 用户评价横向滚动样式 */
.testimonials-container {
    position: relative;
    overflow: visible;
    margin: 0 auto;
    max-width: 1200px;
}

.testimonials-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonials-scroll::-moz-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    width: max-content;
    animation: autoScroll 25s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.testimonial-card {
    flex: 0 0 350px;
    max-width: 350px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    opacity: 1;
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-btn-left {
    left: 0;
}

.testimonial-btn-right {
    right: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonials-track {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .testimonial-btn {
        display: none;
    }
}
