.popup{
    background:#fff;
}
.tabs {
    height: 100vh;
    width: 400px;
    padding: 14px 0 10PX;
    :global {
        .van-tabs{
            height: 100%;
            .van-tabs__wrap{
                display: flex;
                justify-content: center;
                height: 22px;
                .van-tabs__nav--line{
                    padding: 0 50px 0 66px;
                    width: 100%;
                    justify-content: space-between;
                    background-color: initial;
                    .van-tab{
                        text-align: center;
                        width: 74px;
                        flex: initial;
                        line-height: 22px;
                        font-size: 16px;
                        color: #aaa;
                        font-weight: bold;
                        &:nth-child(2){
                            margin: 0 46px;   
                        }
                        &.van-tab--active{
                            color: #000;
                            background: url("./imgs/actiive.png") no-repeat;
                            background-size: 74px 16px;
                            background-position-y: 3px;
                        }
                    }
                }
                .van-tabs__line{
                    display: none;
                }
            }
            .van-tabs__content{
                height: calc(100% - 30px);
                background-color: #fff;
                .van-tab__panel{
                    height: 100%;
                }
            }
        }
    }
}

.wrap {
    height: 100%;
    padding: 18px 16px 0 32px;
    .searchBox{
        display: flex;
        align-items: center;
        height: 34px;
        background: #F6F6F6;
        border-radius: 18px;
        padding: 0 4px 0 16px;
        border: 1px solid transparent;
        &.isFocus{
            border-color: #2DC7AA;
        }
        >img{
            flex-shrink: 0;
            width: 14px;
            height: 14px;
        }
        :global{
            .van-field{
                margin: 0 6px;
                flex-grow: 1;
                padding: 0;
                line-height: initial;
                background: initial;
                &::after{
                    display: none;
                }
                .van-field__control{
                    font-weight: 400;
                    font-size: 13px;
                    color: #131415;
                    caret-color: #01C1B5;
                    &::placeholder{
                        color: #AAAAAA;
                    }
                }
            }
        }
        .searchBtn{
            flex-shrink: 0;
            width: 54px;
            height: 26px; 
            line-height: 26px;
            text-align: center;
            background: #2DC7AA;
            border-radius: 18px;
            font-weight: 500;
            font-size: 13px;
            color: #FFFFFF;
            cursor: pointer;
            &:active{
                opacity: 0.8;
            }
        }
    }
    :global{
        .van-list{
            margin-top: 10px;
            height: calc(100% - 44px);
            overflow-y: auto;
            &::-webkit-scrollbar {
                width: 0;
                display: none;
            }
            .van-loading__circular{
                color: rgba(0,0,0,0.3);
            }
            .van-loading__text{
                color: rgba(0,0,0,0.3);
            }
        }
    }
}

.item {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    &.itemActive, &:active {
        background: #E6F9F8;
        .content .name{
            color: #00B2A7;
        }
    }
    .titleImg {
        width: 51px;
        height: 51px;
        margin-right: 10px;
        border-radius: 9px !important;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        .vipIcon {
            position: absolute;
            right: 0;
            top: 0;
            height: 14px;
            width: auto;
            z-index: 9;
        }
        .lock{
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,.3);
            z-index: 1;
            &::after{
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 13px;
                height: 15px;
                background: url("./imgs/lock.png") no-repeat;
                background-size: 100% 100%;
            }
        }
    }
    .content{
        flex-grow: 1;
        overflow: hidden;
        .name{
            line-height: 20px;
            font-weight: 600;
            font-size: 16px;
            color: #333333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .detail{
            display: flex;
            align-items: center;
            margin-top: 6px;
            .usedNum{
                display: flex;
                align-items: center;
                padding: 0 5px;
                height: 14px;
                background: #FFF8F7;
                border-radius: 4px;
                border: 0.6px solid #FFC5C5;
                font-size: 10px;
                flex-shrink: 0;
                >img{
                    width: 8px;
                    height: 11px;
                }
                >div{
                    margin-left: 3px;
                    font-weight: 400;
                    color: #FF6A6A
                }
            }
            .author {
                margin-left: 5px;
                font-weight: 400;
                font-size: 13px;
                color: rgba(0,0,0,0.5);
                line-height: 14px;
                flex-grow: 1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .freeIcon{
                padding: 0px 3px;
                border-radius: 3px;
                font-weight: 400;
                font-size: 10px;
                color: #01C1B5;
                line-height: 14px;
                border: 1px solid rgba(1,193,181,0.7);
            }
            .lockIcon{
                padding: 0px 3px;
                border-radius: 3px;
                font-weight: 400;
                font-size: 10px;
                color: #D08C24;
                line-height: 14px;
                border: 1px solid rgba(208,140,36,0.7);
            }
        }
    }
}
.empty{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    >img{
        margin-top: -10px;
        width: 198px;
    }
    >span{
        font-size: 14px;
        color: rgba(0,0,0,0.46);
        margin-top: 10px;
    }
}