.yingfang-past-cases {
    padding: 20px 0 50px 0;
}
.yingfang-past-cases .past-cases-title{
    color: var(--color-primary);
    font-family: var(--title-font-family);
    font-size: var(--font-32);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}


.yingfang-past-cases .past-cases-list{
    margin-top: 50px;
    position: relative;
}
.past-cases-list .swiper-slide{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.past-cases-list .swiper-slide img{
    width: 100%;
    aspect-ratio: 101/121;
    object-fit: cover;
}
.past-cases-list .case-list-content{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 40%;
    background: linear-gradient(351deg, #484848 6.69%, rgba(58, 58, 58, 0.00) 93.2%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: max-height 0.5s ease, height 0.5s ease;
}
.case-list-content .case-content-title{
    color: #FFF;
    font-family: var(--medium-font-family);
    font-size: var(--font-22);
    font-style: normal;
    font-weight: 500;
    line-height: 1.36; /* 136.364% */
    position: relative;
}
.case-list-content .case-content-title::after{
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 86px;
    height: 3px;
    background: var(--color-primary);
}
.case-list-content .case-content-desc{
    color: #FFF;
    font-family: var(--font-family);
    font-size: var(--font-20);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5; /* 150% */
    margin-top: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.case-list-content .case-content-desc-wrap{
    display: none;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
    /* flex: 1;
    overflow: scroll; */
}
.case-list-content .case-content-desc-wrap::-webkit-scrollbar{
    display: none;
}
.case-content-desc-wrap .case-content-desc-item{
    color: #FFF;
    font-family: var(--font-family);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}
.case-content-desc-wrap .case-content-desc-title{
    font-family: var(--title-font-family);
    font-weight: 700;
}
.case-list-content a{
    border-radius: 6px;
    border: 1px solid #FFF;
    width: 150px;
    height: 42px;
    display: none;
    justify-content: center;
    align-items: center;
    color: #FFF;
    text-align: center;
    font-family: var(--font-family);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 35px;
    margin-left: auto;
}
.case-list-content a i{
    font-size: 20px;
    line-height: normal;
}

.past-cases-list .swiper-slide:hover .case-list-content{
    max-height: 100%;
    height: 100%;
}
.past-cases-list .swiper-slide:hover .case-content-desc-wrap,
.past-cases-list .swiper-slide:hover .case-list-content a{
    display: flex;
}
.past-cases-list .swiper-slide:hover .case-content-desc{
    display: none;
}

.past-cases-list .yingfang-button-prev,
.past-cases-list .yingfang-button-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.past-cases-list .yingfang-button-prev{
    left: -100px;
}
.past-cases-list .yingfang-button-next{
    right: -100px;
}


@media screen and (max-width: 1800px) {
    .past-cases-list .yingfang-button-prev{
        left: -60px;
    }
    .past-cases-list .yingfang-button-next{
        right: -60px;
    }
}
@media screen and (max-width: 1500px) {
    .case-list-content .case-content-desc-wrap{
        flex: 1;
        overflow: scroll;
        gap: 20px;
        margin-top: 30px;
    }
    .case-list-content a{
        margin-top: 30px;
    }
}
@media screen and (max-width: 1200px) {
    .yingfang-past-cases {
        padding: 20px 0;
    }
    .past-cases-list .yingfang-button-prev,
    .past-cases-list .yingfang-button-next{
        display: none;
    }
}