/* 提示彈層-start */
#tipsPopupRoot {
    display: none;
}

@keyframes tips-icon-arc-left {
    0% {
        opacity: 0;
        transform: translate(-64px, 80px) scale(0.78);
    }
    45% {
        opacity: 0.85;
        transform: translate(14px, -18px) scale(1.04);
    }
    72% {
        opacity: 1;
        transform: translate(-4px, 6px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes tips-icon-arc-right {
    0% {
        opacity: 0;
        transform: translate(64px, 80px) scale(0.78);
    }
    45% {
        opacity: 0.85;
        transform: translate(-14px, -18px) scale(1.04);
    }
    72% {
        opacity: 1;
        transform: translate(4px, 6px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes tips-message-rise {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.layui-layer.tips-popup-layer {
    border: 0;
    border-radius: 16px 16px 60px 60px;
    background: linear-gradient(140deg, #97caf3 0%, #1e8ce6cc 45%, #1e8ce6fc 100%);
    .layui-layer-content {
        padding: 0;
        overflow: visible;
    }

    #tipsPopupRoot,
    .tips-popup {
        display: flex;
    }
}

.tips-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: min(320px, 80vw);
    padding: 28px 32px 24px;
    text-align: center;

    .tips-popup__icons {
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .tips-popup__icon {
        position: absolute;
        display: block;
        top: -66px;
        width: 100px;
        height: 100px;
        opacity: 0;
        will-change: transform, opacity;
    }

    .tips-popup__icon--left {
        left: -60px;
        z-index: 1;
    }

    .tips-popup__icon--right {
        right: -60px;
        z-index: 2;
    }

    .tips-popup__message {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        line-height: 1.5;
        color: #ffffff;
        opacity: 0;
        will-change: transform, opacity;
    }

    &.tips-popup--show {
        .tips-popup__icon--left {
            animation: tips-icon-arc-left 1s cubic-bezier(0.25, 0.9, 0.35, 1) forwards;
        }

        .tips-popup__icon--right {
            animation: tips-icon-arc-right 1s cubic-bezier(0.25, 0.9, 0.35, 1) 0.12s forwards;
        }

        .tips-popup__message {
            animation: tips-message-rise 0.5s ease forwards;
            animation-delay: 0.2s;
        }
    }

    &.tips-popup--success .tips-popup__icon {
        filter: none;
    }

    &.tips-popup--info .tips-popup__icon {
        filter: none;
    }
}
/* 提示彈層-end */
