/**pop弹窗**/

@keyframes tx-pop-open {
    0% {
        opacity: 0;
        -webkit-transform: scale3d(0, 0, 1);
        transform: scale3d(0, 0, 1);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes tx-pop-close {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        -webkit-transform: scale3d(0.5, 0.5, 1);
        transform: scale3d(0.5, 0.5, 1);
    }
}

@keyframes tx-pop-gotop {
    0% {
        opacity: 0;
        bottom: -110%;
    }

    100% {
        opacity: 1;
        bottom: 0;
    }
}

@keyframes tx-pop-gobottom {
    0% {
        opacity: 1;
        bottom: 0;
    }

    100% {
        opacity: 0;
        bottom: -110%;
    }
}


@keyframes tx-pop-load {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0px);
        opacity: 0;
    }
}

.tx-pop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease 0s;
}

.tx-pop-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.tx-pop-out,
.tx-pop-out .tx-pop-close {
    opacity: 0;
    visibility: hidden;
}

.tx-pop-txt {
    min-width: 320px;
    max-width: 680px;
    background-color: #fff;
    position: relative;
    z-index: 10;
    border-radius: 4px;
    animation: tx-pop-open 0.4s ease 1;
}

.tx-pop-out .tx-pop-txt {
    animation: tx-pop-close 0.4s ease 1;
}

.tx-pop-info {
    padding: 1em 2em;
}

.tx-pop-txt>h2 {
    font-size: 1.2em;
    font-weight: 700;
    height: 2.8em;
    display: flex;
    padding: 0 1em;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.tx-pop-off {
    font-size: 0.8em;
    font-weight: 200;
    position: absolute;
    right: 0;
    top: 0;
    width: 4.2em;
    height: 4.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tx-pop-off::before,
.tx-pop-off::after {
    content: "";
    width: 1px;
    height: 1.2em;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.35s ease 0s;
}

.tx-pop-off:hover::before,
.tx-pop-off:hover::after {
    background-color: rgba(0, 0, 0, 0.9);
}

.tx-pop-off::before {
    transform: rotate(45deg);
}

.tx-pop-off::after {
    transform: rotate(-45deg);
}

.tx-pop-style-error .tx-pop-txt,
.tx-pop-style-toast .tx-pop-txt,
.tx-pop-style-load .tx-pop-txt {
    background-color: rgba(0, 0, 0, 0.7);
    color: #555;
    min-width: auto;
    text-align: center;
    padding: 1em 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.tx-pop-style-confirm {
    text-align: center;
}

.tx-pop-bottom {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
}

.tx-pop-bottom>* {
    display: inline-flex;
    height: 2.6em;
    align-items: center;
    justify-content: center;
    width: 50%;
    flex: none;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.35s ease 0s;
}

.tx-pop-bottom>.tx-pop-confirm {
    opacity: 0.9;
    background-color: #f1f1f1;
    color: #222;
}

.tx-pop-bottom> :first-child {
    border-right: 1px solid #eee;
}

.tx-pop-bottom> :hover {
    background-color: #f1f1f1
}

/* 加载 (load) == */

.tx-pop-style-load-img {
    display: flex;
    align-items: center;
    padding-top: 10px;
    margin: 15px 0;
    justify-content: center;
}

.tx-pop-style-load-img i {
    width: 6px;
    animation: tx-pop-load 1s ease infinite;
    transform: translateY(10px);
    animation-delay: 0.1s;
    margin: 0 5px;
    height: 6px;
    opacity: 0;
    border-radius: 6px;
    background: #fff;
}

.tx-pop-style-load-img i:nth-child(2) {
    animation-delay: 0.2s;
}

.tx-pop-style-load-img i:nth-child(3) {
    animation-delay: 0.3s;
}


/* 图标通用容器 */
.tx-pop-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
}

/* 成功 (Success) == */
.tx-pop-style-toast .tx-pop-toast-icon {
    background-color: #2e7d32;
}

.tx-pop-success-checkmark {
    width: 20px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    margin-bottom: 2px;
    margin-left: 2px;
}

/* 失败 (Error) == */
.tx-pop-style-error .tx-pop-toast-icon {
    background-color: #d32f2f;
}

.tx-pop-error-cross {
    position: relative;
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

/* 使用伪元素创建第二根线条 */
.tx-pop-error-cross::before,
.tx-pop-error-cross::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
}

.tx-pop-error-cross::before {
    transform: rotate(45deg);
}

.tx-pop-error-cross::after {
    transform: rotate(-45deg);
}