.container {
    display: flex;
    flex-direction: column;
    // gap: 1rem;
    // margin-top: 1.25rem;
    // margin-bottom: 2rem;

    padding: 0px 15px;
    // padding: 0;

    // padding-top: 5rem;
}

.header {
    position: relative;
    //height:100%;
    height: 3.75rem;
    width: 100%;
    padding: 0px 40px;
    background: var(--widget);
    border-bottom: 1px solid var(--border);
    padding-left: 85px;
    box-shadow: var(--widget-shadow);
    pointer-events: auto;
    transition: padding 0.3s ease;
    &.nav_open {
        //padding-left:270px;
        padding-left: 16.9rem;
    }
    &_mobile {
        position: relative;
        height: 4.64rem;
        // padding: 0px 10px;
        padding: 0;
        // z-index: 2;
        pointer-events: auto;
        width: 100%;
        left: 0;
    }
}

// .user_info {
//     position: relative;
//     justify-content: flex-end;
//     gap: 0.5rem;
//     & .avatar {
//         height: 3rem;
//         width: auto;
//         border-radius: 50%;
//     }
//     & .info {
//         display: flex;
//         flex-direction: column;
//         justify-content: center;
//         align-items: flex-end;
//         & .nick {
//             font-size: 0.875rem;
//             font-weight: 600;
//             color: var(--text);
//         }
//         & .score {
//             font-size: 0.9rem;
//             font-weight: 700;
//             color: #edc349;
//         }
//     }
// }

.userInfo {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    height: 100%;
    .user {
        width: 2.72rem;
        height: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        margin-right: 0.51rem;

        .avatar {
            width: 2.72rem;
            height: 2.72rem;
            margin-top: 0.51rem;
        }

        .vip {
            margin-top: 0.1rem;
            width: 2.32rem;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            .img {
                width: 2.32rem;
                height: 1.1rem;
            }
            .level {
                position: absolute;
                right: 0.05rem;
                color: rgba(85, 78, 78, 1);

                font-family: Roboto;
                font-size: 1.03rem;
                font-weight: 500;
                text-align: center;
                width: 1.4rem;
                height: 1.1rem;
                line-height: 1.1rem;
                font-style: italic;
            }
            .active{
                color: rgba(149, 125, 0, 1);
            }
        }
    }

    .mail {
        width: 2.35rem;
        margin-right: 0.37rem;
        margin-top: 1.54rem;
    }

    .plus {
        width: 1.84rem;
        margin-right: 0.74rem;
        margin-top: 1.32rem;
    }

    .wealth {
        width: 2.72rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        margin-right: 0.88rem;

        .cash {
            color: rgba(255, 255, 255, 1);

            font-family: Roboto;
            font-size: 1.18rem;
            font-weight: 700;
            line-height: 1.18rem;
            letter-spacing: 0rem;
            text-align: left;
            margin-top: 1.4rem;
        }

        .gold {
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            height: 100%;
            margin-top: 0.2rem;

            .bonus {
                // margin-right: 0.3rem;
                margin-top: 0.2rem;
            }

            .num {
                color: rgba(107, 150, 146, 1);

                font-family: Roboto;
                font-size: 1.18rem;
                font-weight: 400;
                line-height: 1.18rem;
                letter-spacing: 0rem;
                text-align: left;
                margin-left: 0.15rem;
            }
        }
    }
}

.withdrawPopup {
    width: 100vw;
    max-width: 510px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    position: absolute;

    // top: 0;
    left: 0;
    bottom: -100vh;
    pointer-events: all;
    touch-action: none;
    margin-top: 4.64rem;
    // padding: 15px;

    .containBox {
        width: 100%;
        height: 5.51rem;
        // background-color: red;

        .top {
            width: 100%;
            height: 1.83rem;
            background-color: #2e3541;
            padding: 0 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;

            span {
                font-size: 1.02rem;
                color: #818e99;
                font-family: Roboto;
                font-weight: 400;
            }

            .icon {
                width: 1.02rem;
            }
        }

        .bottom {
            width: 100%;
            height: 3.67rem;
            background-color: #272d39;
            padding: 0 10px;

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

            .value {
                font-size: 1.76rem;
                font-weight: 700;
                color: rgb(255, 255, 255);
                font-family: Roboto;
            }
            .right {
                display: flex;
                flex-direction: row-reverse;
                justify-content: center;
                align-items: center;

                .withdraw {
                    color: rgb(255, 255, 255);
                    width: 6.6rem;
                    background-color: #444b5c;
                    text-align: center;
                    border-radius: 0.36rem;
                    font-family: Roboto;
                    font-size: 1.02rem;
                }

                .plus {
                    width: 1.8rem;
                    height: 1.8rem;
                    background: linear-gradient(180deg, #f7c61d, #ef9a05 100%);
                    border-radius: 5px;
                    margin-right: 0.3rem;

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

                    .icon {
                        width: 0.88rem;
                        height: 0.88rem;
                        color: #ffffff;
                    }
                }

                .gift {
                    width: 5.07rem;
                    height: 1.39rem;
                    background: #ea8f0d;
                    border-radius: 5px;
                    margin-right: 0.3rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: #ffffff;
                    font-size: 0.955rem;
                    font-weight: 700;
                    position: relative;

                    .icon {
                        width: 0.88rem;
                        height: 0.84rem;
                        color: #ffffff;
                        margin-right: 0.2rem;
                    }

                    &::before {
                        border-bottom: 0.36rem solid transparent;
                        border-left: 0.36rem solid #ea8f0d;
                        border-top: 0.36rem solid transparent;
                        content: "";
                        height: 0;
                        position: absolute;
                        right: -0.25rem;
                        // left: -3rem;
                        top: 50%;
                        transform: translateY(-50%);
                        // width: 5px;
                        // height: 10px;
                    }
                }
            }
        }
    }

    .freeBonus {
        margin-top: 1.1rem;
    }
}

.content {
    background-color: #1b1c26;
    padding: 15px;
    pointer-events: all;
    z-index: inherit;
}

.close {
    background-color: #2e3541;
    width: 1.76rem;
    height: 1.76rem;
    margin: 1.47rem auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;

    .icon {
        width: 1.47rem;
        height: 1.47rem;
        color: #818e99;
        pointer-events: none;
    }
}

/* 弹窗容器滑入动画（从顶部进入） */
.withdrawPopup {
    animation: slideDownIn 0.1s ease-out forwards;
}

/* 弹窗容器滑出动画（滑回顶部） */
.withdrawPopup.closing {
    animation: slideUpOut 0.1s ease-in forwards;
}

/* 从顶部滑入 */
@keyframes slideDownIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 滑出到顶部 */
@keyframes slideUpOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.topArea {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    // z-index: 10;
    width: 100%;
    background-color: #1b1c26;

    max-width: 510px;
    margin: 0 auto;
    flex-shrink: 0;

    // height: 20vh;
}

.centerArea {
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.modulePage {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}
