/* Popup styles */
.ai-popup {
    max-width: 500px;
    padding: 30px;
    background: #1e1e2f;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.popup-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00d4ff;
}

.popup-header p {
    font-size: 16px;
    margin-bottom: 20px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-animation .circle {
    width: 15px;
    height: 15px;
    background: #00d4ff;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.loading-animation .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-animation .circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.popup-footer {
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(45deg, #00d4ff, #007bff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.download-btn:hover {
    background: linear-gradient(45deg, #007bff, #00d4ff);
}

/* Center the content */
.mfp-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    max-width: 90%;
    height: inherit;
    margin: 0 auto;
    /* Center the popup horizontally */
}

/* Make sure the background layer covers the full viewport */
.mfp-bg {
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.bottom-menu {
    background-color: transparent;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    padding: 8px 0 0 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
}

.bottom-menu:after {
    clear: both;
    content: " ";
    display: block;
}

.bottom-menu ul li {
    list-style: none;
    text-align: center;
    font-size: 0.65em;
    line-height: 1;
    margin-bottom: 8px;
}

.bottom-menu ul li img {
    display: block;
    max-width: 64px;
    margin: 0 auto 4px;
    line-height: 1;
}

.bottom-menu ul li .fa {
    display: block;
    font-size: 18px;
    vertical-align: middle;
    margin: 0 0 4px 0;
}

.bottom-menu ul li a {
    display: block;
}

@keyframes jump {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.fix_container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #452FF4;
    border-radius: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
    animation: jump 1s ease infinite;
    /* 增加动画时长 */
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 2s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
    animation-duration: 2s;
    animation-fill-mode: both;
}