/* 案例展示页面样式 */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 筛选器 */
.filter-section {
    background: white;
    padding: 30px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 20px;
    display: inline-block;
    min-width: 80px;
}

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

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 案例展示 */
.cases-showcase {
    padding: 60px 0;
    background: var(--bg-light);
}

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

.case-card-large {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.case-overlay-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 95, 127, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.case-card-large:hover .case-overlay-large {
    opacity: 1;
}

.btn-view-large {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view-large:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.case-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.case-info-large {
    padding: 25px;
}

.case-info-large h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.case-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 968px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-group label {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-actions {
        flex-direction: column;
    }
}
