/**
 * Zibpay QR Code Enhance - 二维码弹窗样式
 */

/* 弹窗遮罩层 */
#zqce-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    animation: zqceFadeIn 0.3s ease-out;
}

/* 弹窗显示时使用flex布局居中 */
#zqce-modal-overlay.show {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

@keyframes zqceFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹窗容器 */
#zqce-modal-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    animation: zqceSlideIn 0.3s ease-out;
}

@keyframes zqceSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
#zqce-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#zqce-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* 关闭按钮 */
#zqce-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

#zqce-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 弹窗内容 */
#zqce-modal-body {
    background: #ffffff;
    padding: 30px;
    text-align: center;
}

/* 二维码容器 */
#zqce-qrcode-container {
    min-height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

#zqce-qrcode-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #667eea;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* URL文本 */
#zqce-url-text {
    font-size: 13px;
    color: #666666;
    word-break: break-all;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* 提示信息 */
#zqce-modal-hint {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

#zqce-modal-hint strong {
    font-weight: 700;
    text-decoration: underline;
}

/* 错误提示 */
.zqce-error {
    color: #dc3545;
    font-size: 14px;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #zqce-modal-container {
        max-width: 95%;
        margin: 20px;
    }

    #zqce-modal-header {
        padding: 16px 20px;
    }

    #zqce-modal-title {
        font-size: 18px;
    }

    #zqce-modal-body {
        padding: 20px;
    }

    #zqce-qrcode-container {
        min-height: 200px;
        padding: 15px;
    }

    #zqce-url-text {
        font-size: 12px;
        padding: 10px 12px;
    }

    #zqce-modal-hint {
        font-size: 13px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    #zqce-modal-container {
        width: 98%;
        margin: 10px;
    }

    #zqce-modal-title {
        font-size: 16px;
    }

    #zqce-qrcode-container {
        min-height: 180px;
        padding: 10px;
    }

    #zqce-modal-body {
        padding: 16px;
    }
}