/* Testimonials Section */
.testimonials-section {
    margin: 2rem 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px; /* 为箭头留出空间 */
    overflow: visible; /* 确保箭头可见 */
    touch-action: pan-x;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.testimonial-item.active {
    display: block;
    opacity: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 1rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonial-dots {
    margin-top: 1.5rem;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.testimonial-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-nav.prev {
    left: 10px;
}

.testimonial-nav.next {
    right: 10px;
}

.testimonial-nav i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Science-Backed Methodology Section */
.methodology-section {
    margin: 2rem 0;
}

.methodology-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.methodology-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.method-item {
    text-align: center;
    padding: 1.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.method-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: center;
}

.method-desc {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: center;
}

/* Mobile Responsive for Testimonials and Methodology */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-dots {
        margin-top: 1rem;
        line-height: 1.2;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav.prev {
        left: 5px;
    }
    
    .testimonial-nav.next {
        right: 5px;
    }
    
    .testimonials-carousel {
        padding: 0 50px; /* 移动端稍微减少padding */
    }
    
    .testimonial-nav i {
        font-size: 16px;
    }
    
    .methodology-card {
        padding: 1.5rem;
    }
    
    .method-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .method-icon {
        font-size: 2rem;
    }
    
    .method-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .method-desc {
        font-size: 0.75rem;
    }
}