/* CCBONLINE 首页客户评价与案例展示优化样式 */

/* 评价区域变量 */
:root {
    --testimonials-bg: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --testimonials-accent: #3b82f6;
    --testimonials-gold: #f59e0b;
    --testimonials-success: #10b981;
    --testimonials-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --testimonials-card-bg: #ffffff;
}

/* 客户评价区域 */
.testimonials-section {
    background: var(--testimonials-bg);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* 容器 */
.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* 区域标题 */
.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--testimonials-success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.testimonials-badge i {
    animation: pulse 2s infinite;
}

.testimonials-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 评价网格 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 评价卡片 */
.testimonial-card {
    background: var(--testimonials-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--testimonials-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.8s ease-out;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--testimonials-accent);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--testimonials-accent);
}

/* 星级评分 */
.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--testimonials-gold);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.1);
}

/* 评价内容 */
.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

/* 客户信息 */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--testimonials-accent) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-title {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.author-company {
    color: var(--testimonials-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* 案例标签 */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.case-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-tag.success {
    background: #ecfdf5;
    color: #065f46;
}

.case-tag.featured {
    background: #eff6ff;
    color: #1e40af;
}

/* 案例成果展示 */
.case-results {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--testimonials-success);
}

.case-results h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.results-list li i {
    color: var(--testimonials-success);
    font-size: 0.8rem;
    width: 14px;
    flex-shrink: 0;
}

/* 数据统计行 */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--testimonials-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* CTA区域 */
.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.testimonials-cta-text {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 2rem;
    font-weight: 500;
}

.testimonials-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.testimonials-btn-primary {
    background: linear-gradient(135deg, var(--testimonials-accent) 0%, #1e40af 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.testimonials-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.testimonials-btn-secondary {
    background: transparent;
    color: var(--testimonials-accent);
    padding: 1rem 2.5rem;
    border: 2px solid var(--testimonials-accent);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.testimonials-btn-secondary:hover {
    background: var(--testimonials-accent);
    color: white;
    transform: translateY(-2px);
}

/* 动画延迟 */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonials-section .container {
        padding: 0 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonials-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonials-btn-primary,
    .testimonials-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .testimonials-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonials-header,
    .testimonials-cta,
    .stat-item,
    .testimonials-badge i,
    .testimonials-rating i {
        animation: none;
        transition: none;
    }
    
    .testimonial-card:hover,
    .testimonials-btn-primary:hover,
    .testimonials-btn-secondary:hover {
        transform: none;
    }
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .testimonial-card {
        border-width: 2px;
    }
    
    .case-results {
        border-left-width: 6px;
    }
}