/* 弹窗背景层 */
.imb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 弹窗容器 */
.imb-popup-container {
    background-color: #fff;
    width: 500px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 弹窗头部 */
.imb-popup-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imb-popup-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* 关闭按钮 */
.imb-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.imb-popup-close:hover {
    color: #343a40;
}

/* 表单区域 */
.imb-message-form {
    padding: 20px;
}

.imb-form-group {
    margin-bottom: 15px;
}

.imb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.imb-form-group input,
.imb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.imb-form-group textarea {
    resize: vertical;
}

/* 必填项样式 */
.required {
    color: #dc3545;
    margin-left: 3px;
}

/* 操作按钮 */
.imb-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.imb-submit-button {
    background-color: #6f42c1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.imb-submit-button:hover {
    background-color: #563d7c;
}

.imb-submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 二维码容器 */
.imb-qr-code {
    margin-top: 20px;
    padding: 10px;
    text-align: center; /* 确保内容居中 */
}

/* 二维码图片 */
.imb-qr-code img {
    display: inline-block;
    border: 1px solid #eee;
    padding: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.imb-qr-code img:hover {
    transform: scale(1.05);
}

/* 二维码文字 */
.imb-qr-text {
    border-radius: 4px;
    text-align: center;
    margin-top: 8px;
    padding: 5px 10px;
}