.mobile-navigation {
    min-height: 6.2rem;
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #0b0c0e;
    border-top: 1px solid #2b2e32;
    box-shadow: 0 -0.8rem 2.4rem rgba(0, 0, 0, 0.2);
}

.mobile-navigation li {
    min-height: 6.2rem;
    padding: 0.8rem 0.2rem 0.7rem;
    background-color: #0b0c0e;
    border-top: 0;
}

.mobile-navigation li a {
    color: #969ba2;
}

.mobile-navigation li a > i.iconfont {
    height: 2.5rem;
    color: inherit;
    font-size: 2.3rem;
    line-height: 2.5rem;
}

.mobile-navigation li p {
    margin-top: 0.35rem;
    line-height: 1.4;
}

.mobile-navigation li.active a {
    color: #ffffff;
}

.mobile-navigation li.active::before {
    width: 2.8rem;
    height: 0.2rem;
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e9361f;
}

.lingji-floating-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    z-index: 1015;
    transform: translateY(-50%);
}

.lingji-floating-nav-toggle {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.lingji-floating-nav-toggle-button {
    width: 4.6rem;
    height: 4.6rem;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #e9361f;
    border: 1px solid #f15a46;
    border-radius: 3px;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.lingji-floating-nav-items {
    display: flex;
    flex-direction: column;
    border: 1px solid #34373c;
    background-color: #111316;
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
}

.lingji-floating-nav-item {
    width: 7.4rem;
    min-height: 7.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0.5rem;
    color: #d9dce0 !important;
    border-bottom: 1px solid #2b2e32;
    transition: color 160ms ease, background-color 160ms ease;
}

.lingji-floating-nav-item:last-child {
    border-bottom: 0;
}

.lingji-floating-nav-item:hover,
.lingji-floating-nav-item:focus {
    color: #ffffff !important;
    background-color: #22252a;
}

.lingji-floating-nav-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background-color: #2d3035;
    border-radius: 3px;
}

.lingji-floating-nav-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.lingji-floating-nav-label {
    width: 100%;
    overflow: hidden;
    font-size: 1.2rem;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media only screen and (min-width: 641px) {
    .lingji-floating-nav,
    .lingji-floating-nav-panel {
        width: 7.4rem;
    }

}

@media only screen and (max-width: 640px) {
    .lingji-floating-nav {
        top: auto;
        right: 1rem;
        bottom: calc(7.4rem + env(safe-area-inset-bottom));
        transform: none;
    }

    .lingji-floating-nav-toggle-button {
        display: flex;
        margin-left: auto;
    }

    .lingji-floating-nav-toggle:checked ~ .lingji-floating-nav-toggle-button {
        color: #e9361f;
        background-color: #ffffff;
        border-color: #e9361f;
    }

    .lingji-floating-nav-items {
        display: none;
        max-height: calc(100vh - 15rem);
        margin-bottom: 0.6rem;
        overflow-y: auto;
    }

    .lingji-floating-nav-toggle:checked ~ .lingji-floating-nav-items {
        display: flex;
    }

    .lingji-floating-nav-item {
        width: 6.4rem;
        min-height: 6.2rem;
    }
}
