#submenu, .custom-menu-icon {
    position: absolute;
    z-index: 1050
}

/* 平台图标：显示图片本身，方形圆角，不强制圆形 */
.circle-logo {
    width: 1.42rem;
    height: 1.42rem;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 0.08rem;
    padding: 0;

    border: none;
    background: transparent;

    border-radius: 0.22rem;
    overflow: visible;
}

.circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    border-radius: 0.22rem;
}

.custom-menu-icon {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    top: .4rem;
    left: .4rem;
    border-radius: .24rem;
    font-size: 0;
    overflow: visible;
    background: transparent;
    box-sizing: border-box;
    filter: drop-shadow(0 .08rem .12rem rgba(0, 0, 0, .45));
    animation: chestFloat 2.2s ease-in-out infinite;
}

.custom-menu-icon::before {
    content: "";
    position: absolute;
    inset: -.08rem;
    border-radius: .32rem;
    background:
        conic-gradient(
            from 0deg,
            #ffe66d,
            #ff9d00,
            #ffffff,
            #00f0ff,
            #ffe66d
        );
    box-shadow:
        0 0 .12rem rgba(255, 220, 70, .85),
        0 0 .22rem rgba(255, 130, 0, .65),
        0 .08rem .16rem rgba(0, 0, 0, .38);
    z-index: 0;
    animation: chestGlowSpin 3.5s linear infinite;
}

.custom-menu-icon::after {
    content: "";
    position: absolute;
    left: -.85rem;
    top: -.28rem;
    width: .48rem;
    height: 1.55rem;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.85),
        rgba(255,255,255,0)
    );
    transform: rotate(28deg);
    z-index: 4;
    animation: chestShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.custom-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: .20rem;
    background: rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 .04rem .06rem rgba(255,255,255,.45),
        inset 0 -.05rem .08rem rgba(0,0,0,.28),
        0 .04rem .08rem rgba(0,0,0,.35);
}

@keyframes chestFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-.07rem) scale(1.05);
    }
}

@keyframes chestGlowSpin {
    0% {
        transform: rotate(0deg);
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.25);
    }
    100% {
        transform: rotate(360deg);
        filter: brightness(1);
    }
}

@keyframes chestShine {
    0% {
        left: -.85rem;
        opacity: 0;
    }
    35% {
        opacity: .95;
    }
    60% {
        left: 1.25rem;
        opacity: 0;
    }
    100% {
        left: 1.25rem;
        opacity: 0;
    }
}

#submenu .row {
    --bs-gutter-x: 0;
}

#submenu {
    top: 2rem;
    max-height: 14rem;
    min-height: 10rem;
    width: 9.5rem;
    padding: .3rem;
    padding-top: 0;
    box-sizing: border-box;
    font-size: .4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1051;
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow: hidden;
}

#submenu > div {
    max-height: calc(14rem - 1.4rem);
    overflow: scroll;
    overflow-x: hidden;
    /*padding-top: 0.8rem;*/
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

#submenu > div::-webkit-scrollbar {
    display: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

#submenu:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("../img/底框.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: .93;
}

#search-box {
    display: flex;
    align-items: center;
    margin: 0.4rem 0 0.8rem 0;
}
#search-box > input{
    border: 3px solid #f8b500;
    border-radius: 6px;
    flex: 1;
    padding: .1rem .2rem;
}


.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center
}

.menu-item {
    text-align: center;
    margin-bottom: 10px
}

.menu-item a {
    color: #fd3051;
    padding: 0;
    text-decoration: none
}

.circle-logo-container {
    position: relative;
    display: inline-block
}

.badge {
    position: absolute;
    top: -13px;
    right: -13px;
    background-color: red;
    color: #fff;
    border-radius: 20%;
    padding: 4px;
    font-size: 10px
}

.menu-item .nav-link {
    display: block;
    text-align: center
}