/* 微信登录弹窗修复样式 */
.qrcode-html {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mpweixin-qrcode-popup {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    max-width: 350px !important;
    width: 90% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.mpweixin-qrcode-popup img {
    max-width: 240px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    border: 1px solid #e5e5e5 !important;
    margin-bottom: 15px !important;
}

.mpweixin-qrcode-popup-text {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-top: 15px !important;
}

/* 关闭按钮 */
.qrcode-html::before {
    content: "×" !important;
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    color: #ffffff !important;
    font-size: 30px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s !important;
}

.qrcode-html::before:hover {
    opacity: 1 !important;
}

/* 动画效果 */
.qrcode-html-animation .mpweixin-qrcode-popup {
    animation: popupSlideIn 0.3s ease-out !important;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 响应式适配 */
@media (max-width: 480px) {
    .mpweixin-qrcode-popup {
        padding: 20px !important;
        max-width: 300px !important;
    }
    
    .mpweixin-qrcode-popup img {
        max-width: 200px !important;
    }
    
    .mpweixin-qrcode-popup-text {
        font-size: 14px !important;
    }
}

/* 点击遮罩关闭 */
.qrcode-html {
    cursor: pointer;
}

.mpweixin-qrcode-popup {
    cursor: default;
} 