* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
}

.support-wrap {
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

.flex-5{
    flex: 5;
}

.flex-3{
    flex: 3;
}

.relative{
    position: relative;
}

.support-a {
    position: relative;
    height: calc(var(--vh, 1vh) * 100);
}

.support-a .img {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.support-a .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .6s cubic-bezier(.36, .69, .24, 1);
}

.support-a .img video {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* 菜单主体 */
.support-b {
    background: #fff;
    padding: 60px 48px;
    max-height: 100vh;
    position: relative;
    overflow-y: scroll;
    z-index: 80;
    transform: translateX(100%);
    transition: all .6s cubic-bezier(.36, .69, .24, 1);
}

/* 展开后，菜单和内容整体向左移动 */
.support-wrap.is-open .support-b {
    transform: translateX(0)
}

.support-wrap.is-open .support-cate{
    transform: translateX(-40vw);  
}

.support-cate {
    position: fixed;
    padding: 5.2083vw 1.1625vw 5.2083vw 3.7292vw;
    width: 18.4896vw;
    right: 0;
    bottom: 18%;
    background-color: #fff;
    transition: all .6s cubic-bezier(.36, .69, .24, 1);
}

.support-cate h2 {
    margin: 0 0 60px;
    font-size: 30px;
    font-weight: bold;
    color: #000000;
}

.support-cate ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-cate li + li {
    margin-top: 26px;
}

.support-item {
    position: relative;
    display: inline-block;
    color: rgba(0,0,0,.5);
    font-size: 20px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .3s ease;
}

.support-item:hover,
.support-item.is-active {
    color: #000;
}

/* 内容区默认位于菜单右侧，即屏幕外 */
.support-content {
    max-height: 80vh;
    position: absolute;
    left: 0%;
    bottom: 0px;
    height: 100%;
    width: 100%;
    padding: 0 48px 60px;
    overflow-y: auto;
    background-color: #fff;
    border-left: 1px solid #f0f0f0;
}

.support-panel {
    display: none;
}

.support-panel.is-active {
    display: block;
}

.support-panel h3 {
    margin: 0 0 38px;
    color: #111;
    font-size: 20px;
    font-weight: 500;
}

.support-text {
    color: #222;
    font-size: 15px;
    line-height: 2;
}

.support-text p {
    margin: 0;
}

.support-close {
    position: absolute;
    top: 0px;
    right: 26px;

    width: 32px;
    height: 32px;
    padding: 0;

    color: #777;
    font-size: 26px;
    line-height: 28px;
    cursor: pointer;
    border: 0;
    background: transparent;
    transition: color .3s ease;
}

.support-close:hover {
    color: #111;
}

@keyframes supportPanelIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ========================================
   平板适配
======================================== */

@media screen and (max-width: 1024px) {
    .support-wrap {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .support-a {
        height: 100vh;
        height: 100dvh;
    }

    .support-b {
        flex: 0 0 42%;
        width: 42%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: 0;
        overflow: hidden;
    }

    .support-cate {
        right: 0;
        bottom: 12%;
        width: 310px;
        padding: 60px 30px 60px 70px;
    }

    .support-wrap.is-open .support-cate {
        transform: translateX(-42vw);
    }

    .support-content {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 70px 35px 45px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   手机端
======================================== */

@media screen and (max-width: 767px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .support-wrap {
        display: block;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    /* 背景区域 */
    .support-a {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .support-a .img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .support-a .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 手机端菜单卡片 */
    .support-cate {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 25px;

        width: auto;
        max-height: calc(100dvh - 100px);
        padding: 28px 24px;

        overflow-x: hidden;
        overflow-y: auto;
        background-color: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

        transform: translateX(0);
        transition:
            opacity 0.4s ease,
            transform 0.5s cubic-bezier(.36, .69, .24, 1);
    }

    .support-cate h2 {
        margin: 0 0 22px;
        font-size: 25px;
        line-height: 1.3;
    }

    .support-cate li + li {
        margin-top: 15px;
    }

    .support-item {
        font-size: 15px;
        line-height: 1.5;
    }

    /*
     * 内容打开后隐藏菜单。
     * 注意：is-open是在support-wrap上。
     */
    .support-wrap.is-open .support-cate {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-40px);
    }

    /* 手机端内容作为全屏抽屉 */
    .support-b {
        position: fixed;
        inset: 0;
        z-index: 999;

        display: block;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: 0;

        overflow: hidden;
        background-color: #fff;

        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);

        transition:
            visibility 0s linear 0.5s,
            opacity 0.35s ease,
            transform 0.5s cubic-bezier(.36, .69, .24, 1);
    }

    /* 正确的展开选择器 */
    .support-wrap.is-open .support-b {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);

        transition:
            visibility 0s linear 0s,
            opacity 0.35s ease,
            transform 0.5s cubic-bezier(.36, .69, .24, 1);
    }

    /* 内容区域 */
    .support-content {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;

        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        padding: 65px 20px 35px;

        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        border-left: 0;
        background-color: #fff;
    }

    .support-panel h3 {
        margin: 0 45px 25px 0;
        font-size: 22px;
        line-height: 1.4;
    }

    .support-text {
        font-size: 14px;
        line-height: 1.85;
    }

    .support-text p {
        margin: 0 0 15px;
    }

    .support-text img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    /* 关闭按钮 */
    .support-close {
        position: fixed;
        top: 86px;
        right: 16px;
        z-index: 10;

        width: 38px;
        height: 38px;

        color: #333;
        font-size: 30px;
        line-height: 36px;

        border-radius: 50%;
        background-color: #f2f2f2;
    }
}

/* ========================================
   小屏手机
======================================== */

@media screen and (max-width: 480px) {
    .support-cate {
        left: 15px;
        right: 15px;
        bottom: 18px;
        bottom: 88px;
        padding: 24px 20px;
    }

    .support-cate h2 {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .support-cate li + li {
        margin-top: 13px;
    }

    .support-item {
        font-size: 14px;
    }

    .support-content {
        padding: 80px 16px 30px;
    }

    .support-panel h3 {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .support-text {
        font-size: 14px;
        line-height: 1.8;
    }
}