@media only screen and (min-width: 996px) {
    .ml_mbbot {
        display: none;
    }
    .ml_sidebar {
        position: fixed;
        bottom: 50%;
        right: 0px;
        z-index: 99999;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
    }
    .ml_sidebar ul li {
        width: 65px;
        height: 65px;
        background-color: var(--main-color);
        text-align: center;
        color: #fff;
        border-bottom: 1px solid #fff;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        transition: all .2s ease;
    }
    .ml_sidebar ul li i {
        font-size: 26px !important;
        margin-bottom: 4px;
    }
    .ml_sidebar ul li span {
        font-size: 12px !important;
    }
    .ml_sidebar ul li:hover{
        transform: translateX(-4px);
        background-color: #173b7b;
    }
    .ml_sidebar ul li:nth-child(1){ background: linear-gradient(180deg,#1a73e8,#1252b3); }
    .ml_sidebar ul li:nth-child(2){ background: linear-gradient(180deg,#f39c12,#d97706); }
    .ml_sidebar ul li:nth-child(3){ background: linear-gradient(180deg,#10b981,#059669); }
    .ml_sidebar ul li:nth-child(4){ background: linear-gradient(180deg,#6b7280,#4b5563); }
    .ml_sidebar_pos {
        transition: all ease 0.4s;
        height: 65px;
        min-width: 180px;
        max-width: 240px;
        position: absolute;
        background-color: var(--main-color);
        color: #fff;
        right: 100%;
        top: 0;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        transform: rotateX(90deg);
        border-bottom: 1px solid var(--main-color);
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        padding: 0 10px;
        text-align: center;
    }
    .ml_sidebar_pos_code {
        width: 150px !important;
        height: 150px !important;
        padding: 10px;
    }
    .ml_sidebar_pos_code img {
        width: 100%;
    }
    .ml_sidebar ul li:hover .ml_sidebar_pos {
        transform: rotateX(0deg);
    }
    .backtotop {
        border-bottom: none !important;
        transition: var(--main-transition);
        opacity: 0;
        visibility: hidden;
    }
    .ml_sidebar_show1 {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media only screen and (max-width: 996px) {
    .ml_sidebar { display: none; }
    body { padding-bottom: 60px; }
    .ml_mbbot {
        z-index: 99999;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #012684;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid rgba(255,255,255,.4);
    }
    .ml_mbbot li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-right: 1px solid rgba(255,255,255,.4);
    }
    .ml_mbbot li:last-child { border-right: none; }
    .ml_mbbot li i { font-size: 20px !important; color: #fff; }
    .ml_mbbot li p { font-size: 14px; color: #fff; margin: 2px 0 0; }
}
