/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* 弹窗显示时的样式 */
.modal-overlay.show {
    opacity: 1;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-container {
    background-color: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(26, 115, 232, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(26, 115, 232, 0.3);
    letter-spacing: 0.5px;
}

.modal-content {
    margin-bottom: 20px;
}

.modal-content img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.2);
}

.modal-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.4);
}

/* 添加二维码脉动效果 */
.modal-overlay.show .modal-content img {
    animation: qrPulse 2s infinite alternate ease-in-out;
}

@keyframes qrPulse {
    0% {
        box-shadow: 0 0 15px rgba(26, 115, 232, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(26, 115, 232, 0.6);
    }
}

.modal-message {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1.05em;
    padding: 5px 10px;
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-message {
    animation: messageAppear 0.5s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #1557b0;
}