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

/* 页面标题区域 */
.page-header-section {
    background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%);
    padding: 40px 0;
    text-align: center;
}

.page-header-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(20, 20, 20, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* 工程案例展示区域 */
.cases-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.cases-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

/* 案例卡片链接 */
.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 案例卡片 */
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.case-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 20px;
    font-weight: bold;
    color: #0a1628;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #f7931e;
}

/* 大图卡片样式 */
.case-card:nth-child(2n) {
    grid-column: span 2;
}

.case-card:nth-child(2n) .case-image-wrapper {
    height: 280px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-card:nth-child(2n) {
        grid-column: span 1;
    }
    
    .case-card:nth-child(2n) .case-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .cases-section {
        padding: 40px 15px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-title {
        font-size: 18px;
    }
}