/*
////////////////////////////////////////////////////////////////////
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//             佛祖保佑       永无故障     永不修改                   //
////////////////////////////////////////////////////////////////////

DEVELOPED BY poiuasdf163 https://qiues.eu.org/
email: poiuasdf887163@outlook.com

*/

/* 弹窗 */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: linear-gradient(145deg, #fff1e4, #ffffff);
    box-shadow: 10px 10px 20px #edd1d1, -10px -10px 20px #ffffff;
    border-radius: 20px;
    text-align: center;
    padding: 30px;
    z-index: 10;
    /* 确保弹窗在顶层 */
    display: block;
    width: 80%;
    max-width: 400px;
    opacity: 0;
    animation: popup-in 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    overflow: hidden;
}
/* Popup Hidden Class */
.popup.hidden {
    z-index: -10;
    overflow: hidden;
    display: none;
    /* 默认隐藏 */
}

.popup.show {
    animation: popup-in 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    overflow: hidden;
    /* 显示动画 */
}

.popup.hide {
    animation: popup-out 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    overflow: hidden;
    /*
    z-index: -99;
    */
    /* 隐藏动画 */
}

/* Popup Animation */
@keyframes popup-in {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(5deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(-5deg);
        opacity: 0.5;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes popup-out {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
        opacity: 0.8;
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95) rotate(3deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
        opacity: 0;
    }
}

/* Popup Title */

.popup-title {
    font-size: 2rem;
    color: #ff6f61;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.popup-title:hover {
    color: #ff9a9e; /* 悬停时改变颜色 */
    transform: scale(1.05); /* 悬停时略微放大 */
}

.popup-content {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    z-index: 8;
}
.popup-content:hover {
    color: #ff9a9e; /* 悬停时改变颜色 */
    transform: scale(1.05); /* 悬停时略微放大 */
}


.popup-close {
    background: linear-gradient(145deg, #ff9a9e, #fad0c4);
    box-shadow: 5px 5px 10px #d6d6d6, -5px -5px 10px #ffffff;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.popup-close:hover {
    transform: scale(1.05) rotate(-1deg); /* 轻微旋转，方向改为顺时针 */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.7);
    filter: brightness(1.1);
}
