/* 成功案例页面特有样式 */

/* 顶部Banner */
.cases-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/office.jpg') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.cases-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cases-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 案例筛选区 */
.cases-filter {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-tabs,
.filter-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.filter-tab,
.service-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover,
.service-tab:hover {
    background-color: #f0f0f0;
}

.filter-tab.active,
.service-tab.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* 案例展示区 */
.cases-showcase {
    padding: 0 20px 60px;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.school-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    object-fit: contain;
}

.case-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.case-stats span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.case-stats i {
    margin-right: 5px;
    color: #1a73e8;
}

.case-details {
    padding: 20px;
}

.case-details p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.view-details {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.view-details:hover {
    background: #0d5bba;
}

.load-more {
    display: block;
    margin: 0 auto;
    background: white;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more:hover {
    background: #1a73e8;
    color: white;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.carousel-controls button {
    background: #1a73e8;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-controls button:hover {
    background: #0d5bba;
}

/* 底部CTA */
.cases-cta {
    background: #1a73e8;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cases-cta h2 {
    margin-bottom: 20px;
}

.cases-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.download-btn {
    background: white;
    color: #1a73e8;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.download-btn i {
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-banner {
        height: 300px;
    }

    .cases-banner h1 {
        font-size: 2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs,
    .filter-services {
        gap: 8px;
    }

    .filter-tab,
    .service-tab {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cases-banner {
        height: 250px;
    }

    .cases-banner h1 {
        font-size: 1.8rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}