/* ============================================
   CAIE 能力账户弹窗样式
   独立文件，不影响现有 zhengshu 页面样式
   ============================================ */

/* --- 入口链接 --- */
.ability-account-link {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #0d57d5;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    text-decoration: none;
    transition: color 0.2s;
}
.ability-account-link:hover {
    color: #0a46b0;
    text-decoration: underline;
}

/* --- 弹窗遮罩 --- */
.aa-modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.aa-modal-mask.show {
    display: flex;
}

/* --- 弹窗容器 --- */
.aa-modal {
    background: #fff;
    border-radius: 16px;
    width: 900px;
    max-width: 92vw;
    max-height: 88vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: aaSlideUp 0.3s ease;
}
@keyframes aaSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 关闭按钮 --- */
.aa-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
}
.aa-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* --- 弹窗主体：左右分栏（左二维码，右示例） --- */
.aa-modal-body {
    display: flex;
    height: 75vh;
    max-height: 75vh;
}

/* --- 左侧：二维码区 --- */
.aa-qrcode-area {
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.aa-qrcode-area h4 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.5;
}
.aa-qrcode-area .aa-qr-img {
    width: 170px;
    height: 170px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.aa-qrcode-area .aa-qr-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* --- 右侧：能力账户示例预览区（iframe） --- */
.aa-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f172a;
    min-width: 0;
}
.aa-preview-title {
    padding: 14px 20px;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.aa-preview-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #0f172a;
}

/* ===== H5 响应式适配 ===== */
@media screen and (max-width: 768px) {
    .aa-modal {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .aa-modal-body {
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
    }
    .aa-qrcode-area {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
        flex-shrink: 0;
    }
    .aa-qrcode-area h4 { font-size: 15px; margin-bottom: 14px; }
    .aa-qrcode-area .aa-qr-img { width: 130px; height: 130px; }
    .aa-preview {
        flex: 1;
        min-height: 0;
    }
}
