/* =========================================================
   components/modals.css —— 弹窗样式（商务咨询/免费试用/系统演示）
   ========================================================= */
/* ===== 弹窗样式 ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-mask.show {
    display: flex;
}
.modal-wrap {
    width: calc(100% - 32px);
    max-width: 540px;
    background: #fff;
    border-radius: 16px;
    max-height: 85vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-wrap.modal-demo {
    max-width: 860px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
}
.modal-close-btn {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}
.modal-close-btn:hover {
    color: #000;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
}
.modal-body p {
    margin-bottom: 16px;
}
.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
    text-align: center;
    flex-shrink: 0;
}
.qrcode-placeholder {
    width: 140px;
    height: 140px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin: 16px auto 16px;
}
.text-center {
    text-align: center;
}
.btn-blue-hollow {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: transparent;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.btn-blue-hollow:hover {
    background: #f8fafc;
}
.demo-card-box {
    border: 1px solid #e8edf7;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(40, 80, 220, 0.08);
    border-top: 3px solid #3A70EE;
    margin-bottom: 28px;
}
.demo-data-table {
    width: 100%;
    border-collapse: collapse;
}
.demo-data-table th {
    text-align: left;
    padding: 12px 8px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}
.demo-data-table td {
    padding: 14px 8px;
    color: rgba(0, 0, 0, 0.65);
    border-bottom: 1px solid #f1f5f9;
}
.demo-qrcode-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.demo-qrcode-item {
    text-align: center;
}
.qrcode-box {
    width: 130px;
    height: 130px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin: 0 auto 12px;
}
.qrcode-label {
    font-size: 14px;
    color: #666;
}

/* ===== 弹窗移动端优化 ===== */
@media (max-width: 640px) {
    .modal-wrap {
        width: calc(100% - 24px);
        max-height: 88vh;
        border-radius: 14px;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .modal-header h3 {
        font-size: clamp(1rem, 4.5vw, 1.15rem);
    }
    .modal-body {
        padding: 18px;
    }
    .modal-footer {
        padding: 14px 18px 18px;
    }
    /* 演示弹窗：表格可横向滚动，二维码换行居中 */
    .demo-card-box {
        padding: 14px;
        overflow-x: auto;
    }
    .demo-data-table {
        min-width: 480px;
        font-size: 13px;
    }
    .demo-qrcode-row {
        gap: 18px;
    }
    .qrcode-box {
        width: 108px;
        height: 108px;
    }
}
