/* 案例页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 案例分类筛选 */
.case-categories {
    padding: 40px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #9b59b6;
    color: #9b59b6;
}

.filter-btn.active {
    background-color: #9b59b6;
    border-color: #9b59b6;
    color: white;
}

/* 案例展示网格 */
.cases-gallery {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.case-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.case-info {
    padding: 20px;
}

.case-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.case-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tags span {
    background-color: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

/* 客户评价 */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: #9b59b6;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .case-info {
        padding: 15px;
    }
    
    .case-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}