/* ==================== 工程案例页面样式 ==================== */

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1a5fa8 0%, #2d7dd2 100%);
    color: white;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-header .en-title {
    font-size: 16px;
    opacity: 0.9;
    font-family: Arial;
}

/* 案例筛选 */
.cases-filter {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: #1a5fa8;
    color: white;
    border-color: #1a5fa8;
}

/* 案例网格 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 案例卡片 */
.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.case-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 168, 0.15);
    transform: translateY(-3px);
}

.case-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-image .placeholder {
    font-size: 80px;
    color: #1a5fa8;
    opacity: 0.3;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 95, 168, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

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

.view-btn {
    padding: 10px 20px;
    background: white;
    color: #1a5fa8;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.case-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1a5fa8;
    flex-wrap: wrap;
}

.case-specs span {
    background: #f0f7ff;
    padding: 3px 8px;
    border-radius: 3px;
}

.case-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

.case-tags .tag {
    font-size: 12px;
    padding: 3px 8px;
    background: #f0f7ff;
    color: #1a5fa8;
    border-radius: 3px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
}

.page-btn {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #1a5fa8;
    color: white;
    border-color: #1a5fa8;
}

.page-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 10px;
    }

    .page-header {
        padding: 20px 10px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 8px 15px;
        font-size: 13px;
    }

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

    .case-image {
        height: 180px;
    }

    .case-info {
        padding: 15px;
    }

    .case-info h3 {
        font-size: 16px;
    }

    .case-meta {
        flex-direction: column;
        gap: 5px;
    }
}