/* ========================================
   cases.css - 典型案例页面样式
   ======================================== */

/* ---------- Banner 区域 ---------- */
.cases-banner {
    background-image: url('../static/cases/典型案例.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 130px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.cases-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cases-banner-title {
    font-size: 60px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 分类导航 Tabs ---------- */
.cases-tabs-section {
    background: #fff;
}

.cases-tabs {
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
}

.cases-tabs .nav-item {
    margin: 0 28px;
}

.cases-tabs .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    padding: 12px 4px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    transition: color 0.3s ease;
}

.cases-tabs .nav-link:hover {
    color: #005BAC;
    background: transparent;
    border-bottom-color: transparent;
}

.cases-tabs .nav-link.active {
    color: #005BAC;
    font-weight: 600;
    border-bottom-color: #005BAC;
    background: transparent;
}

/* ---------- 案例卡片列表 ---------- */
.cases-list-section {
    padding: 56px 0;
    background: #f8fafc;
}

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

.cases-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cases-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.cases-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cases-card:hover .cases-card-img img {
    transform: scale(1.05);
}

.cases-card-body {
    padding: 28px 32px 32px;
}

.cases-card-tag {
    display: inline-block;
    font-size: 13px;
    color: #005BAC;
    background: rgba(0, 91, 172, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.cases-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.4;
}

.cases-card-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cases-card-link {
    font-size: 14px;
    font-weight: 500;
    color: #005BAC;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.cases-card-link:hover {
    color: #0A2E5C;
}

/* ---------- 分页 ---------- */
.news-pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
}

.news-pagination .pagination {
    gap: 6px;
}

.news-pagination .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px !important;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    padding: 0;
    transition: all 0.3s ease;
}

.news-pagination .page-link:hover {
    border-color: #005BAC;
    color: #005BAC;
    background: #EFF6FF;
}

.news-pagination .page-item.active .page-link {
    background: #005BAC;
    border-color: #005BAC;
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    color: #D1D5DB;
    pointer-events: none;
}

/* ---------- CTA 区域 ---------- */
.cases-cta {
    background-image: url('../static/cases/准备好开启.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 72px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.cases-cta .container {
    position: relative;
    z-index: 1;
}

.cases-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 36px;
    color: #fff;
}

.cases-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cases-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.cases-cta-btn-primary {
    background: #fff;
    color: #005BAC;
}

.cases-cta-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cases-cta-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cases-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ---------- 粘性页脚：内容不足一屏时，CTA 与页脚一起贴底 ---------- */
main {
    display: flex;
    flex-direction: column;
}

.cases-list-section {
    flex: 1 0 auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .cases-banner-title {
        font-size: 44px;
    }

    .cases-tabs .nav-item {
        margin: 0 16px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cases-cta-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .cases-banner {
        padding: 110px 0;
    }

    .cases-banner-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .cases-tabs-section {
    }

    .cases-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cases-tabs::-webkit-scrollbar {
        display: none;
    }

    .cases-tabs .nav-item {
        margin: 0 4px;
    }

    .cases-tabs .nav-link {
        font-size: 14px;
        white-space: nowrap;
        padding: 10px 12px;
    }

    .cases-list-section {
        padding: 32px 0;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cases-card-img {
        height: 120px;
    }

    .cases-card-body {
        padding: 12px 14px 16px;
    }

    .cases-card-tag {
        font-size: 11px;
        padding: 2px 8px;
        margin-bottom: 10px;
    }

    .cases-card-title {
        font-size: 15px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .cases-card-desc {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .cases-card-link {
        font-size: 12px;
    }

    .cases-cta {
        padding: 48px 0;
    }

    .cases-cta-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .cases-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cases-cta-btn {
        width: 100%;
        max-width: 280px;
    }
}