/* 遮罩层 - 确保全屏居中 */
.modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 弹窗内容 - 居中显示 */
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    margin: auto;
    text-align: center;
}

/* 弹窗标题 */
.modal-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

/* 二维码容器 */
.qrcode-box {
    margin: 20px 0;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-box img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.qrcode-box p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* 描述文字 */
.modal-desc {
    margin: 16px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 关闭按钮 */
.close-btn {
    margin-top: 16px;
    padding: 10px 40px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #4096ff;
}

/* 加载状态 */
.wechat-qr-loading {
    padding: 40px 20px;
    text-align: center;
}

.wechat-qr-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式适配 */
@media (max-width: 480px) {
    .modal-content {
        max-width: 320px;
        padding: 20px;
    }
    
    .qrcode-box img {
        width: 180px;
        height: 180px;
    }
}