:root {
    --van-font-size-md: 18px;
    --van-primary-color: @prim;
    --van-tabbar-item-active-background-color: transparent;
    --van-tabbar-background-color: @bg;
    --van-nav-bar-background-color: #201B15;
    --van-popover-dark-background-color: #201B15;
    --van-cell-background-color: @bg;
    --van-text-color: #fff;
    --van-gray-6: @text3;
    --van-gray-3: @bg3;
    --van-tabbar-item-active-color: @textP;
    --van-button-plain-background-color: transparent;
    --van-grid-item-content-background-color: transparent;
    --van-button-mini-height: 26px;
    --van-button-mini-font-size: 14px;
    --van-tabs-nav-background-color: @bg;
    --van-tabs-default-color: @prim;
    --van-tabs-bottom-bar-color: @prim;
    --van-tab-active-text-color: @prim;
    --van-tab-disabled-text-color: #fff;
    --van-cell-border-color: #979797;
    --van-cell-background-color: transparent;
    --van-cell-group-background-color: transparent;
    --van-font-size-lg: 14px;
    --van-divider-border-color: #939599;
    --van-divider-text-color: @tabBorder;
    --van-divider-margin: 0;
    --van-field-error-message-color: #fc2f55;
    --van-action-sheet-item-text-color: #000;
    --van-uploader-upload-active-color: transparent;
    --van-uploader-upload-background-color: transparent;
    --van-uploader-file-background-color: transparent;
    --van-active-color: @bg3;
    --van-image-placeholder-background-color: @bg2;
    --van-search-background-color: @bg;
    --van-search-content-background-color: @bg3;
    // --van-picker-background-color: @bg;
    --van-button-default-height: 50px;
    --van-dialog-has-title-message-text-color: #000;
    --van-field-label-color: #aaabad;
    --van-search-action-padding: 0 16px;
    --van-dialog-background-color: #2F2519;
    --van-button-default-background-color: transparent;
    --van-dialog-message-font-size: 17px;
    --van-dialog-has-title-message-text-color: #fff;
    --van-button-border-radius: 8px;
    --van-popover-action-font-size: 14px;
    --van-cell-font-size: 12px;
    --sat: env(safe-area-inset-top);
    --sar: env(safe-area-inset-right);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
}

[contenteditable='true'],
input,
textarea {
    -webkit-user-select: auto !important;
    -khtml-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    -o-user-select: auto !important;
    user-select: auto !important;
}

.van-divider::after,
.van-divider::before {
    height: 5px;
}
body {
    font-family: BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', miui,
        'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
}
body {
    -webkit-text-size-adjust: none;
}
html,
body,
#app,
.scroll-wrapper {
    padding: 0;
    margin: 0;
    height: var(--app-height);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
}
.scroll-wrapper {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
::-webkit-scrollbar {
    display: none;
    opacity: 0;
}
body {
    font-size: 14px;
    color: var(--van-text-color);
}

input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px @bg inset;
    -webkit-text-fill-color: @text0;
}

.van-dialog {
    color: #ffffff;
    font-size: 17px;
}

.flex1 {
    flex-grow: 1;
}
.van-dialog {
    border-radius: 8px;
    .van-dialog__header {
        font-size: 16px;
        font-weight: bold;
        padding-top: 20px;
    }
    .van-hairline--left::after {
        border-color: #97979720;
    }
    .van-hairline--top::after {
        border-color: #97979720;
    }

    .van-dialog__message--has-title {
        padding: 20px 40px 30px;
    }
}
.van-dialog__footer {
    .van-button--default {
        font-size: 17px;
        color: #ffffff;
    }
    .van-dialog__confirm {
        .van-button__text {
            font-size: 17px;
            color: rgba(254, 44, 85, 0.8);
        }
    }
}

.tabbar-placeholder {
    height: 50px;
    padding-bottom: env(safe-area-inset-bottom);
}

.van-empty__image {
    width: 171px;
    height: 171px;
}

.van-empty {
    .van-empty__description {
        font-size: 16px;
        color: #ffffff;
        line-height: 22px;
        margin: 24px 0 0;
    }

    .van-empty__bottom {
        margin-top: 8px;
        .empty-tips {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.3);
            line-height: 20px;
        }
    }
}

.van-tab {
    color: @text3;
    font-size: 17px;
    &.van-tab--active {
        color: #fff;
        font-weight: bold;
    }
    // padding: 0 0 !important;
    // flex-shrink: 0 !important;
    // flex-grow: 0 !important;
    // margin-right: 50px;
    word-break: keep-all;
}
.van-tabs__nav--line.van-tabs__nav--complete {
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-top: 1px solid #202122;
    background-color: transparent;
}
.van-tabs__line {
    bottom: 20px;
}
.van-sticky--fixed {
    background-color: @bg;
}
.van-tab--active {
    .tab {
        .van-icon-arrow-up {
            color: #646566;
        }
    }
    &.asc {
        .tab {
            .van-icon-arrow-up {
                color: @prim;
            }
            .van-icon-arrow-down {
                color: #646566;
            }
        }
    }
}

.van-button--primary {
    // background: linear-gradient(135deg, @prim 0%, #ff8f3e 100%);
    border-width: 0;
    color: #503a1e;
}

.popup-content {
    border-radius: 12px 12px 0px 0px;
}

.barTop {
    // padding-top: var(--safe-top);
}

.van-nav-bar.dark {
    background-color: #181818;
}
.van-nav-bar--fixed {
    // top: var(--safe-top);
}

.page-detail img {
    width: 100% !important;
    height: auto !important;
}

.filter-bg {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(5px);
    // background-position: center;
    // background-size: content;
    // background-attachment: fixed;
}
.van-key--blue {
    background-color: @prim!important;
    font-size: 16px;
}
.splash-screen {
    position: fixed;
    width: 100vw;
    height: var(--app-height);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.activeAvatar {
    overflow: initial !important;
    img {
        border-radius: 100px;
        // border: 4px solid;
        // border-image: linear-gradient(
        //         140deg,
        //         rgba(78, 251, 30, 1),
        //         rgba(239, 255, 236, 1),
        //         rgba(79, 251, 31, 1),
        //         rgba(232, 255, 230, 1),
        //         rgba(78, 251, 30, 1)
        //     )
        //     4 4;
        box-sizing: border-box;
        // box-shadow: 0px 0px 6px 0px rgba(38, 245, 13, 0.6);
    }
    position: relative;
    &::after {
        content: '';
        background-image: url(https://nanjingnft.oss-cn-hangzhou.aliyuncs.com/font/png-touxiangkuang.png);
        background-size: 100% 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 124%;
        height: 124%;
    }
}
.padding-safe-top {
    padding-top: var(--safe-top);
}