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

/* 页面标题 */
.page-header {
    height: 250px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 案例筛选 */
.cases-filter {
    padding: 50px 0 30px;
    background-color: #fff;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-label {
    font-size: 1.2rem;
    color: #333;
    font-weight: 300;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 案例展示 */
.cases-showcase {
    padding: 30px 0 70px;
    background-color: #fff;
}

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

.case-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.case-image {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

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

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

.case-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.case-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    font-weight: 600;
}

.case-overlay p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.btn-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #fff;
    color: #333;
}

/* 查看更多 */
.cases-more {
    padding: 30px 0 70px;
    background-color: #fff;
    text-align: center;
}

/* 客户评价 */
.cases-testimonials {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.testimonials-slider {
    max-width: 900px;
    margin: 50px auto 0;
}

.testimonial-item {
    padding: 0 20px;
}

.testimonial-content {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: #df1f29;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 30px;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.author-info p {
    font-size: 0.9rem;
    color: #999;
}

/* 联系我们 */
.cases-contact {
    padding: 100px 0;
    background-color: #222;
    color: #fff;
    text-align: center;
}

.cases-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.cases-contact p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.cases-contact .btn {
    background-color: transparent;
    border: 2px solid #fff;
}

.cases-contact .btn:hover {
    background-color: #fff;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cases-contact h2 {
        font-size: 2rem;
    }
    
    .testimonial-content {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
} 