/* 典型案例页面样式 */

.cases_page {
    padding-top: 81px;
}

/* 应用场景banner */
.cases_banner_section {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.cases_banner_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cases_banner_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cases_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.cases_banner_content {
    position: relative;
    z-index: 1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cases_banner_content h1 {
    font-size: 56px;
    font-weight: bold;
    color: #fff;
}

/* 场景Tab区域 */
.cases_scene_tabs_section {
    padding: 60px 0 80px;
}

.scene_section_title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

/* Swiper轮播图容器 */
.scene_swiper_container {
    position: relative;
    margin-bottom: 40px;
    margin-top: 20px;
    overflow: hidden;
}

.scene-carousel {
    padding: 20px 0;
}

/* 轮播项 */
.scene_slide_item {
    position: relative;
    height: 500px;
    /* border-radius: 12px; */
    overflow: hidden;
    transition: all .4s;
}

.swiper-slide-active .scene_slide_item {
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); */
}

.scene_slide_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene_slide_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
}

.scene_slide_overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.scene_slide_overlay p {
    font-size: 16px;
    opacity: 0.9;
}

/* 左右白色模糊遮罩 */
.scene_blur_mask {
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.scene_blur_left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.scene_blur_right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

/* Tab导航 */
.scene_tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.scene_tab {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    transition: all .3s;
}

.scene_tab:hover {
    color: #333;
}

.scene_tab.active {
    color: #333;
    border-bottom-color: #333;
}

/* 典型案例列表 */
.cases_list_section {
    padding: 80px 0;
    /* background: #fafbfc; */
}

.section_header {
    text-align: center;
    margin-bottom: 60px;
}

.section_title {
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* 案例分类Tab */
.case_category_tabs {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.case_category_item {
    text-align: center;
    cursor: pointer;
    transition: all .3s;
}
.case_category_item img {
    width: 100px;
}

.case_category_item:hover .case_icon {
    background: #54acd7;
    color: #fff;
}

.case_icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all .3s;
}

.case_icon .iconfont {
    font-size: 36px;
    color: #666;
}

.case_category_item:hover .case_icon .iconfont {
    color: #fff;
}

.case_category_item p {
    font-size: 16px;
    color: #333;
}

/* 案例分组 */
.case_section {
    margin-bottom: 60px;
}

.case_section_title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.cases_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 案例轮播容器 */
.case_carousel_wrap {
    position: relative;
}

.case_swiper,
.office_swiper,
.school_swiper,
.park_swiper {
    padding: 10px 0;
}

.case_item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all .3s;
    cursor: pointer;
    height: 100%;
}

.case_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.case_image {
    position: relative;
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
}

.case_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .5s;
}

.case_item:hover .case_image img {
    transform: scale(1.05);
}

.case_info {
    padding: 20px;
}
.case_info p {
     font-size: 15px;
    color: #000;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case_desc {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 导航按钮 */
.case_nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.case_prev,
.case_next,
.office_prev,
.office_next,
.school_prev,
.school_next,
.park_prev,
.park_next {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    color: #666;
}

.case_prev:hover,
.case_next:hover,
.office_prev:hover,
.office_next:hover,
.school_prev:hover,
.school_next:hover,
.park_prev:hover,
.park_next:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.case_prev.swiper-button-disabled,
.case_next.swiper-button-disabled,
.office_prev.swiper-button-disabled,
.office_next.swiper-button-disabled,
.school_prev.swiper-button-disabled,
.school_next.swiper-button-disabled,
.park_prev.swiper-button-disabled,
.park_next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 合作伙伴 */
.partner_section {
    padding: 60px 0;
    background: #f8f9fa;
}

.partner_content {
    margin-top: 60px;
}

.partner_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.partner_li {
    width: calc((100% - 150px) / 6);
}

.partner_li_item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s;
}

.partner_li_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner_li_border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.partner_li_after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.partner_li_img {
    position: relative;
    width: 100%;
    padding-top: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner_li_img img {
    position: absolute;
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all .3s;
}

.partner_li_item:hover .partner_li_img img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 响应式 */
@media screen and (max-width: 980px) {
    .scene_swiper_container {
        height: 450px;
    }

    .scene_content h2 {
        font-size: 42px;
    }

    .scene_content p {
        font-size: 18px;
    }

    .cases_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .partner_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .section_title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .scene_swiper_container {
        height: 350px;
    }

    .scene_content {
        padding: 50px 20px;
    }

    .scene_content h2 {
        font-size: 32px;
    }

    .scene_content p {
        font-size: 16px;
    }

    .cases_list_section,
    .partner_section {
        padding: 60px 0;
    }

    .cases_grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case_image {
        height: 220px;
    }

    .partner_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .partner_item {
        padding: 20px;
    }

    .section_title {
        font-size: 28px;
    }
}
