/* ============================================================
 * 询盘按钮组小部件
 * ============================================================ */
.qing-ib {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.qing-ib-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 26px;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
}
.qing-ib-btn1 {
    background: #d9480f;
    color: #fff;
    border: none;
}
.qing-ib-btn1:hover { opacity: .92; }
.qing-ib-btn2 {
    background: #fff;
    color: #222;
    border: 1px solid #222;
}
.qing-ib-btn2:hover { background: #f5f5f5; }

/* ── 询盘弹窗 ── */
.qing-ib-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qing-ib-modal[hidden] { display: none; }
.qing-ib-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.qing-ib-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    width: 92%;
    max-width: 720px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.qing-ib-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    font-size: 28px; line-height: 1;
    color: #999; cursor: pointer;
    z-index: 2;
}
.qing-ib-close:hover { color: #333; }

.qing-ib-inner {
    display: flex;
    gap: 24px;
    padding: 28px;
}

/* 左：产品 */
.qing-ib-product {
    flex: 0 0 42%;
    text-align: center;
}
.qing-ib-product img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: #f7f7f7;
}
.qing-ib-pname {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 右：表单 */
.qing-ib-formwrap { flex: 1; min-width: 0; }
.qing-ib-modal-title { margin: 0 0 16px; font-size: 20px; color: #222; }
.qing-ib-form { display: flex; flex-direction: column; gap: 12px; }
.qing-ib-row { display: flex; gap: 12px; }
.qing-ib-row input { flex: 1; }
.qing-ib-form input,
.qing-ib-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.qing-ib-form textarea { resize: vertical; }
.qing-ib-form button[type=submit] {
    padding: 13px;
    background: #d9480f;
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.qing-ib-form button[type=submit]:hover { opacity: .92; }
.qing-ib-form button[type=submit]:disabled { opacity: .6; cursor: default; }
.qing-ib-msg { margin: 6px 0 0; font-size: 14px; }

/* 文件上传（选填） */
.qing-ib-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}
.qing-ib-upload:hover { border-color: #d9480f; background: rgba(217,72,15,.04); }
.qing-ib-upload svg { width: 20px; height: 20px; flex-shrink: 0; color: #d9480f; }
.qing-ib-upload-text { word-break: break-all; }

/* WhatsApp 复选框 */
.qing-ib-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.qing-ib-form .qing-ib-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #25D366;
}

/* 响应式 */
@media (max-width: 640px) {
    .qing-ib-inner { flex-direction: column; padding: 22px; }
    .qing-ib-product { flex: none; }
    .qing-ib-row { flex-direction: column; }
}
