/**
 * GMG 动态客户评价系统样式
 * 版本: 1.0.0
 */

/* 评价容器 */
.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    border-radius: 24px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 评价滑动项 */
.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    display: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

/* 动态评价卡片 */
.testimonial-card-dynamic {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card-dynamic:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 星级评分 */
.testimonial-card-dynamic .stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-card-dynamic .stars i {
    margin-right: 0.25rem;
}

/* 评价文字 */
.testimonial-card-dynamic .testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gmg-primary);
}

/* 作者信息 */
.testimonial-card-dynamic .testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-card-dynamic .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card-dynamic .testimonial-info h5 {
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-card-dynamic .testimonial-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.testimonial-card-dynamic .testimonial-industry {
    display: inline-block;
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 元信息 */
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.testimonial-source {
    color: #10b981;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.testimonial-source i {
    font-size: 1rem;
}

.testimonial-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* 控制按钮 */
.testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.testimonial-btn:hover {
    background: var(--gmg-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

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

/* 指示器 */
.testimonials-indicators {
    display: flex;
    gap: 0.75rem;
}

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

.indicator.active {
    background: var(--gmg-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* 加载指示器 */
.testimonials-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gmg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 多卡片布局（桌面端） */
@media (min-width: 992px) {
    .testimonials-track.multi-slide {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-track.multi-slide .testimonial-slide {
        min-width: auto;
        display: block;
        opacity: 1;
        transform: none;
        padding: 0;
    }
    
    .testimonials-track.multi-slide .testimonial-slide.active {
        transform: none;
    }
}

/* 双卡片布局（平板） */
@media (min-width: 768px) and (max-width: 991.98px) {
    .testimonials-track.multi-slide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-track.multi-slide .testimonial-slide {
        min-width: auto;
        display: block;
        opacity: 1;
        transform: none;
        padding: 0;
    }
}

/* 刷新按钮 */
.testimonials-refresh {
    text-align: center;
    margin-top: 2rem;
}

.btn-refresh {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    background: var(--gmg-gradient);
    border-color: transparent;
}

.btn-refresh i {
    transition: transform 0.3s ease;
}

.btn-refresh:hover i {
    transform: rotate(180deg);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 统计信息 */
.testimonials-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
}

/* 域名标识 */
.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .testimonial-card-dynamic {
        padding: 1.5rem;
    }
    
    .testimonial-card-dynamic .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonials-controls {
        gap: 1rem;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonials-stats {
        gap: 1rem;
    }
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-slide.active .testimonial-card-dynamic {
    animation: fadeInUp 0.5s ease;
}

/* 新内容提示 */
.new-content-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
