.yf-home-case-wrap {
    position: relative;
    min-width: 1200px;
    z-index: 1;
    margin: 0 auto;
    /* background-color: #000; */
    background-image: url(../images/yf-home-case-wrap.png);
    background-attachment: fixed; /* 固定背景图片 */
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.yf-home-case-wrap .yf-home-case {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 100px 60px 0;
    z-index: 1;
    padding-bottom: 160px;
}

.yf-home-case-wrap .yf-home-case .yf-home-case-title {
    margin: 0 auto;
    padding-bottom: 50px;

    color: #ffffff;
    text-align: center;
    font-family: "OPPOSans";
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 44px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    position: sticky;
    top: 78px;
}


.yf-home-case-wrap .yf-home-case .yf-home-case-desc {
    display: block;
    margin: 0 auto;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0;
    text-align: center;
    line-height: 24px;
    padding-bottom: 40px
}

.yf-home-case-wrap .yf-home-case .yf-home-case-list {
    width: 100%;
    position: relative;
    /* padding-bottom: 80px */
}

.yf-home-case-wrap .yf-home-case .yf-home-case-item {
    position: sticky;
    top: 60px;
    padding: 56px;
    width: 100%;
    height: 550px;
    background-color: #fff;
    color: #000;
    will-change: transform;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.yf-home-case-wrap .yf-home-case .yf-home-case-item:last-child {
    margin-bottom: 0;
/* 样式规则 */
}

.yf-home-case-wrap .yf-home-case .case-item-left {
    width: 510px;
    aspect-ratio: 16/9;
    will-change: transform;
    background-position: center 100%;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.yf-home-case-wrap .yf-home-case .case-item-right {
    width: calc(100% - 550px);
}

.yf-home-case-wrap .yf-home-case-list .case-item-title {
    color: #1d2129;
    font-family: "OPPOSans";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    
}

.yf-home-case-wrap .yf-home-case-list .case-item-descrip {
    color: #4e5969;
    font-family: "OPPOSans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    margin-top: 24px;
}

.yf-home-case-wrap .yf-home-case-list .case-item-operation {
    margin-top: 24px;
}

.yf-home-case-wrap .yf-home-case-list .case-item-btn {
    background-color: #2603E9;
    padding: 7px 52px;
    width: max-content;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 1439px) {
    .yf-home-case-wrap .yf-home-case .case-item-left .case-title {
        font-size: 28px
    }
}


/* 768以下 */
@media (max-width: 768px) {
    .yf-home-case-wrap{
        width: 100%;
        min-width: initial;
    }

    .yf-home-case-wrap .yf-home-case{
        padding: 100px 20px 0;
    }

    .yf-home-case-wrap .yf-home-case .yf-home-case-item{
        padding: 20px 10px;
        height: 450px;
        flex-direction: column;
    }

    .yf-home-case-wrap .yf-home-case .case-item-left{
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .yf-home-case-wrap .yf-home-case .case-item-right{
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .yf-home-case-wrap .yf-home-case-list .case-item-descrip{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; /* 限制为 3 行 */
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5; /* 建议设置行高，确保高度计算准确 */
        /* 可选：防止单词内部断行 */
        word-break: break-word;
    }
}