/* 案例展示页样式 - Cases Styles */

/* 筛选区域 */
.filter-section {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-section h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 8px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 案例列表 */
.cases-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.case-item-img {
    height: 240px;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    position: relative;
    overflow: hidden;
}

.case-item-img .category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.case-item-img .zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.case-item:hover .case-item-img .zoom {
    transform: translate(-50%, -50%) scale(1);
}

.case-item-content {
    padding: 20px;
}

.case-item-content h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.case-item-content .client-type {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.case-item-content .desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-item-content .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    padding: 0 15px;
    white-space: nowrap;
}

.pagination a {
    background: var(--bg-white);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
    .cases-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-list {
        grid-template-columns: 1fr;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 6px 15px;
        font-size: 13px;
    }
}
