/* ==========================================================================
   服务案例 /content/fuwuanli
   ========================================================================== */
.case-section {
    padding: 22px 0 52px;
}

.case-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 36px 38px;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f5132 0%, #187a4d 54%, #2fa86a 100%);
}

.case-hero::before,
.case-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.case-hero::before {
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
}

.case-hero::after {
    bottom: -150px;
    left: 190px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, .04);
}

.case-hero > * {
    position: relative;
    z-index: 1;
}

.case-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.case-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
}

.case-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.85;
}

.case-count {
    flex-shrink: 0;
    min-width: 118px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
}

.case-count strong {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.case-count span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.case-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0 18px;
    padding: 17px 20px;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
    border: 1px solid #e8f1eb;
    border-radius: 12px;
    background: #f8fbf9;
}

.case-intro strong {
    color: #187a4d;
    font-weight: 600;
}

.case-intro a {
    flex-shrink: 0;
    color: #187a4d;
}

.case-intro a:hover {
    text-decoration: underline;
}

.case-gallery {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.case-item {
    position: relative;
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 30px -28px rgba(16, 24, 40, .35);
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.case-item:hover {
    transform: translateY(-2px);
    border-color: #d4ebde;
    box-shadow: 0 18px 34px -28px rgba(16, 24, 40, .45);
}

.case-item img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.case-index {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(15, 81, 50, .78);
    backdrop-filter: blur(4px);
}

.case-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(16, 24, 40, .62);
    opacity: 0;
    transition: opacity .2s ease;
}

.case-item:hover .case-zoom {
    opacity: 1;
}

.case-empty {
    padding: 34px;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    background: #fff;
}

.case-empty img {
    max-width: 100%;
    height: auto;
}

.case-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 900px;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 23px 28px;
    border: 1px solid #e4f1e9;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3fcf7, #eaf8f0);
}

.case-cta h2 {
    margin: 0 0 5px;
    color: #1b2a3a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.case-cta p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.case-cta-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    color: #fff;
    font-size: 13px;
    border-radius: 9px;
    background: #187a4d;
    transition: background .18s ease;
}

.case-btn:hover {
    color: #fff;
    background: #0f5132;
}

.case-btn--ghost {
    color: #475467;
    border: 1px solid #d8e9df;
    background: #fff;
}

.case-btn--ghost:hover {
    color: #187a4d;
    background: #f7fbf9;
}

/* 图片查看器 */
.case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(10, 20, 16, .88);
}

.case-lightbox.is-open {
    display: flex;
}

.case-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.case-lightbox-close,
.case-lightbox-prev,
.case-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: background .18s ease;
}

.case-lightbox-close:hover,
.case-lightbox-prev:hover,
.case-lightbox-next:hover {
    background: rgba(255, 255, 255, .22);
}

.case-lightbox-close {
    top: 22px;
    right: 24px;
}

.case-lightbox-prev {
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
}

.case-lightbox-next {
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
}

.case-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    transform: translateX(-50%);
}

@media (max-width: 1000px) {
    .section.case-section {
        width: auto;
        min-width: 0;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }

    .case-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-count {
        min-width: 110px;
    }
}

@media (max-width: 700px) {
    .case-hero {
        padding: 26px 22px;
    }

    .case-hero h1 {
        font-size: 25px;
    }

    .case-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .case-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .case-cta-actions {
        width: 100%;
    }

    .case-btn {
        flex: 1;
    }

    .case-lightbox {
        padding: 54px 12px;
    }

    .case-lightbox-prev {
        left: 8px;
    }

    .case-lightbox-next {
        right: 8px;
    }

    .case-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 560px) {
    .section.case-section {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- 左侧栏目导航 ---------- */
.case-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.case-sidebar {
    flex: 0 0 220px;
    width: 220px;
}

.case-main {
    flex: 1;
    min-width: 0;
    padding: 22px 22px 26px;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(23, 50, 42, .05);
}

.case-side-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    background: #fff;
}

.case-side-title {
    position: relative;
    margin: 0;
    padding: 15px 16px 15px 25px;
    color: #1b2a3a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    border-bottom: 1px solid #eef2f6;
    background: #fbfdfc;
}

.case-side-title::before {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 4px;
    height: 16px;
    content: "";
    border-radius: 2px;
    background: #2fa86a;
    transform: translateY(-50%);
}

.case-side-nav {
    margin: 0;
    padding: 8px;
    list-style: none;
}

.case-side-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
    transition: color .18s ease, background .18s ease;
}

.case-side-nav li a::after {
    flex-shrink: 0;
    color: #c0c8d2;
    content: "›";
    font-size: 15px;
}

.case-side-nav li a:hover {
    color: #187a4d;
    background: #eef8f2;
}

.case-side-nav li a:hover::after {
    color: #187a4d;
}

.case-side-help {
    padding: 18px 16px;
}

.case-side-help h3 {
    margin: 0 0 6px;
    color: #1b2a3a;
    font-size: 15px;
    font-weight: 600;
}

.case-side-help p {
    margin: 0 0 14px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.7;
}

.case-side-tel {
    padding: 11px 12px;
    margin-bottom: 12px;
    border-radius: 9px;
    background: #f3fcf7;
}

.case-side-tel span {
    display: block;
    color: #5f7b6c;
    font-size: 11px;
}

.case-side-tel strong {
    display: block;
    margin-top: 2px;
    color: #0f5132;
    font-size: 16px;
    font-weight: 600;
}

.case-side-help > a {
    color: #187a4d;
    font-size: 13px;
}

.case-side-help > a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .case-layout {
        display: block;
    }

    .case-sidebar {
        width: auto;
        margin-bottom: 16px;
    }

    .case-side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
    }

    .case-side-card {
        margin-bottom: 14px;
    }
}

@media (max-width: 560px) {
    .case-side-nav {
        grid-template-columns: 1fr;
    }

    .case-main {
        padding: 14px 14px 18px;
    }
}
