/* 成功案例页面样式 */

/* 案例主横幅 */
.cases-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.cases-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cases-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* 案例统计 */
.cases-stats {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* 典型案例 */
.typical-cases {
    padding: 80px 0;
    background: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-item {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.case-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.case-industry {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-content {
    padding: 1.5rem 2rem;
}

.case-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.case-content strong {
    color: #333;
}

.case-result {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-badge.success {
    background: #dcfce7;
    color: #166534;
}

.result-time {
    color: #666;
    font-size: 0.9rem;
}

/* 行业分布 */
.industry-distribution {
    padding: 80px 0;
    background: white;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.industry-item:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.industry-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.industry-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.industry-count {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 客户评价 */
.client-testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #fbbf24;
}

.testimonial-rating i {
    margin-right: 0.2rem;
}

/* 咨询CTA */
.consultation-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.consultation-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.consultation-cta h2::after {
    background: rgba(255, 255, 255, 0.3);
    margin: 1rem auto;
}

.consultation-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-hero {
        padding: 100px 0 60px;
    }
    
    .cases-hero h1 {
        font-size: 2.5rem;
    }
    
    .cases-hero p {
        font-size: 1.1rem;
    }
    
    .cases-stats,
    .typical-cases,
    .industry-distribution,
    .client-testimonials,
    .consultation-cta {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .cases-hero h1 {
        font-size: 2rem;
    }
    
    .cases-hero p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item,
    .case-item,
    .industry-item,
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .stat-icon,
    .case-icon,
    .industry-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 成功案例样式 */
.success-cases {
    padding: 80px 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-left-color: #764ba2;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-header h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.case-tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-content p {
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.case-content p:last-child {
    margin-bottom: 0;
}

.case-content strong {
    color: #333;
    font-weight: 600;
}

/* 成功案例统计（已在 services.css 中定义，这里补充样式） */
.cases-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cases-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 案例详情页面样式 */
.case-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.case-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.case-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.case-filters {
    padding: 60px 0 40px;
    background: #f8f9fa;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.cases-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.case-detail {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.case-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.case-detail h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.case-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1rem;
}

.info-text h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-text p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.case-highlights {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.case-highlights h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.case-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-highlights li {
    color: #666;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.case-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .case-header h3 {
        min-width: auto;
    }
    
    .cases-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .case-hero h1 {
        font-size: 2.5rem;
    }
    
    .case-hero p {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .case-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .case-detail {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .cases-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* 添加客户评价星级 */
.case-content::after {
    content: '★★★★★';
    display: block;
    color: #ffd700;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
} 