/* ===== 悬浮按钮容器 ===== */
.biojx-float-group {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.biojx-float-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #e0e0e0;
}
.biojx-float-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}
.biojx-float-btn .icon {
    font-size: 24px;
    line-height: 1;
}
.biojx-float-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.biojx-float-btn:hover::before {
    opacity: 1;
}

/* 微信二维码 */
.wechat-qrcode {
    position: absolute;
    right: 60px;
    bottom: -20px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    width: 88px;
    display: none;
    pointer-events: auto;
    border: 1px solid #eee;
    z-index: 10;
}
.wechat-btn.active .wechat-qrcode {
    display: block;
}
.wechat-qrcode img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 6px;
}
.wechat-qrcode span {
    font-size: 12px;
    color: #666;
}

/* ===== 模态框 ===== */
.biojx-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.biojx-modal-content {
    background: #fff;
    padding: 30px 30px 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
.biojx-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}
.biojx-modal-close:hover {
    color: #007cba;
}

/* ===== 表单通用样式 ===== */
.biojx-contact-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}
.biojx-contact-form .form-group.half {
    flex: 1;
    min-width: 0;
}
.biojx-contact-form .form-group.full {
    width: 100%;
}
.biojx-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}
.biojx-contact-form input,
.biojx-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9f9f9;      /* 淡淡的底色 */
    transition: border-color 0.2s, background-color 0.2s;
}
.biojx-contact-form textarea {
    resize: vertical;
    min-height: 150px;
    height: 150px;
    overflow-y: auto;
}
.biojx-contact-form input:focus,
.biojx-contact-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    background-color: #fff;         /* 聚焦时变为白色，突出显示 */
}
.biojx-contact-form button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px;
    transition: background 0.2s;
}
.biojx-contact-form button:hover {
    background: #005a87;
}
.form-status {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* ===== 内嵌表单容器 ===== */
.biojx-inline-contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 20px;
    box-sizing: border-box;
}
.biojx-inline-contact-form h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: #2c3e50;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .biojx-float-group {
        right: 12px;
        gap: 8px;
    }
    .biojx-float-btn {
        width: 40px;
        height: 40px;
    }
    .biojx-float-btn .icon {
        font-size: 20px;
    }
    .biojx-float-btn[data-tooltip]::before {
        display: none;
    }
    .wechat-qrcode {
        right: 50px;
        bottom: -10px;
    }
    .biojx-modal-content {
        padding: 20px 15px;
        width: 95%;
    }
    .biojx-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .biojx-inline-contact-form {
        padding: 15px 15px;
    }
}

/* ===== Toast 提示 ===== */
.biojx-toast {
    position: fixed;
    padding: 12px 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.biojx-toast.show {
    opacity: 1;
}

/* 联系表单标签字号 */
.biojx-contact-form label {
    font-size: 16px;          /* 更大（14→16px） */
    font-weight: 600;         /* 稍微加粗（500→600） */
    line-height: 1.6;         /* 增加行高，让标签与输入框之间更透气 */
    color: #222;              /* 可调：加深颜色，更醒目 */
    letter-spacing: 0.3px;    /* 可调：字间距，增加精致感 */
    margin-bottom: 6px;       /* 可调：与输入框的间距，原为5px，可微调 */
}