/* ========================================
   合作案例页面专用样式
   ======================================== */

.hezuo-main {
    padding: 40px 0;
    background: #fff;
}

.hezuo-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hezuo-content {
    flex: 1;
    min-width: 260px;
}

.hezuo-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 页面头部 */
.page-header {
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 32px;
    color: #1e5a99;
    margin-bottom: 10px;
}
.page-header p {
    color: #4a5568;
    font-size: 16px;
}

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* 图片容器 - 支持点击放大 */
.case-img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f4f9;
}
.case-img-wrapper .case-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.case-card:hover .case-img-wrapper .case-img {
    transform: scale(1.05);
}

/* 放大镜图标 */
.img-magnify-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.case-img-wrapper:hover .img-magnify-icon {
    opacity: 1;
}

/* 案例信息 */
.case-info {
    padding: 18px;
}
.case-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.case-info h3 a {
    color: #1e5a99;
    text-decoration: none;
    transition: color 0.2s;
}
.case-info h3 a:hover {
    color: #f59e0b;
}
.case-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}
.case-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 12px;
}
.case-link {
    display: inline-block;
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.case-link:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover,
.pagination a.active {
    background: #1e5a99;
    color: #fff;
    border-color: #1e5a99;
}

/* 侧边栏卡片（复用全局样式，补充） */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
    display: inline-block;
}

/* 搜索框 */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
}
.btn-search {
    background: #1e5a99;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-search:hover {
    background: #0e3d6b;
}

/* 推荐新闻列表 */
.recommend-news-list {
    list-style: none;
    padding: 0;
}
.recommend-news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.recommend-news-list li a {
    color: #2d3748;
    text-decoration: none;
}
.recommend-news-list li a:hover {
    color: #f59e0b;
}

/* FAQ侧边栏 */
.faq-list-sidebar {
    margin-bottom: 15px;
}
.faq-item-sidebar {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f4f9;
}
.faq-question-sidebar {
    font-weight: 600;
    color: #1e5a99;
    font-size: 14px;
    margin-bottom: 4px;
}
.faq-answer-sidebar {
    font-size: 13px;
    color: #4a5568;
    padding-left: 10px;
}
.more-faq {
    display: inline-block;
    font-size: 13px;
    color: #f59e0b;
    text-decoration: none;
}

/* 快速联系卡片 */
.quick-contact-card {
    background: linear-gradient(135deg, #1e5a99, #0e3d6b);
    color: #fff;
    text-align: center;
}
.quick-contact-card h3 {
    color: #fff;
    border-bottom-color: #f59e0b;
}
.quick-contact-card .urgent-tel {
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}
.quick-contact-card .urgent-tel a {
    color: #f59e0b;
    text-decoration: none;
}
.quick-contact-card .btn-light {
    background: #fff;
    color: #1e5a99;
}

/* 灯箱（图片放大） */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.show {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
}
.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
.close-lightbox:hover {
    color: #f59e0b;
}

/* 响应式 */
@media (max-width: 992px) {
    .hezuo-layout {
        flex-direction: column;
    }
    .hezuo-sidebar {
        width: 100%;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 24px;
    }
    .case-info h3 {
        font-size: 16px;
    }
    .case-img-wrapper .case-img {
        height: 180px;
    }
}