/* Navigation behavior refinements for the WeChat Apple theme. */

body.wechat-apple .footer_nav {
    transition: transform .24s ease, opacity .2s ease !important;
    will-change: transform, opacity;
}

body.wechat-apple .footer_menu .center .mobile_edit {
    background: #1fbd68 !important;
    color: #fff !important;
}

body.wechat-apple .footer_menu .center .mobile_edit i {
    color: #fff !important;
}

body.wechat-apple .go_top_box {
    z-index: 1002;
}

body.wechat-apple .footer_tool .top_tool a,
body.wechat-apple a.go_top {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    border: 1px solid rgba(15, 23, 42, .06) !important;
    border-radius: 8px !important;
    background: #dfe6f0 !important;
    color: #40506a !important;
    box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .4) !important;
}

body.wechat-apple .footer_tool .top_tool a i,
body.wechat-apple a.go_top i {
    margin: 0 !important;
    color: currentColor !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

body.wechat-apple .footer_tool .top_tool a:hover {
    background: #cfd9e7 !important;
    color: #172033 !important;
}

body.wechat-apple a.go_top {
    background: #1fbd68 !important;
    color: #fff !important;
}

body.wechat-apple .footer_tool .t_dark,
body.wechat-apple .footer_tool .t_music {
    margin-bottom: 8px;
}

body.wechat-apple .footer_tool .t_music a.is-playing {
    background: #1fbd68 !important;
    color: #fff !important;
}

body.wechat-apple .footer_tool {
    transition: bottom .24s ease;
}

@media (max-width: 640px) {
    body.wechat-apple .footer_tool {
        right: 14px !important;
        bottom: 124px !important;
    }

    body.wechat-apple a.go_top {
        display: flex !important;
        right: 14px !important;
        bottom: 94px !important;
    }

    body.wechat-apple.music-player-open .footer_tool {
        bottom: 186px !important;
    }

    body.wechat-apple.music-player-open a.go_top {
        bottom: 156px !important;
    }
}

@media (min-width: 641px) {
    body.wechat-apple .go_top_box,
    body.wechat-apple.lbc .go_top_box {
        left: 50% !important;
        right: auto !important;
        width: 100% !important;
        max-width: 760px !important;
        transform: translateX(-50%);
    }

    body.wechat-apple .footer_tool {
        position: absolute !important;
        right: -45px !important;
        bottom: 70px !important;
    }

    body.wechat-apple a.go_top {
        position: absolute !important;
        right: -45px !important;
        bottom: 40px !important;
    }
}

body.wechat-apple .footer_nav.is-music-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) !important;
}

body.wechat-apple a.bg_music.is-playing i {
    animation: private-space-music-spin 3.8s linear infinite;
}

@keyframes private-space-music-spin {
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 640px) {
    body.wechat-apple .footer_nav.is-scroll-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, calc(100% + 42px)) !important;
    }

    body.wechat-apple .footer_nav.is-music-active,
    body.wechat-apple .footer_nav.is-music-active.is-scroll-hidden {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(-50%) !important;
    }
}

@media (min-width: 961px) {
    body.wechat-apple {
        overflow: visible;
    }

    body.wechat-apple .go_top_box,
    body.wechat-apple.lbc .go_top_box {
        max-width: 900px !important;
    }

    body.wechat-apple .left_nav {
        align-self: stretch;
        overflow: visible;
        background: var(--apple-panel);
        border-right: 1px solid var(--apple-line);
        border-radius: 14px 0 0 14px;
    }

    body.wechat-apple .left_nav_inner {
        position: sticky !important;
        top: 0;
        align-self: flex-start;
        height: auto !important;
        min-height: 434px;
        z-index: 20;
        background: transparent;
        border-right: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.wechat-apple .left_nav_sticky {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wechat-apple .footer_nav {
        transition-duration: .01ms !important;
    }
}
