/* 浮窗容器 */
.consult-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: height 0.3s ease;
}
/* 表单收起状态 */
.consult-float.collapsed {
    height: 50px;
}
/* 表单展开状态 */
.consult-float.expanded {
    height: 500px;
}
/* 触发按钮 */
.float-toggle {
    width: 100%;
    height: 50px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 表单内容区 */
.form-content {
    padding: 20px;
    height: calc(100% - 50px);
    overflow-y: auto;
}
/* 表单标题 */
.form-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
/* 表单组 */
.form-group {
    margin-bottom: 15px;
}
/* 标签样式 */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}
.form-label.required::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 3px;
}
/* 输入框/下拉框样式 */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
/* 错误状态样式 */
.form-input.error, .form-select.error, .form-textarea.error {
    border-color: #ff4d4f;
}
/* 错误提示 */
.error-tip {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.form-textarea {
    height: 120px;
    resize: none;
}
/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    display: none;
}
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}
.modal-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.modal-success .modal-icon {
    color: #52c41a;
}
.modal-error .modal-icon {
    color: #ff4d4f;
}
.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.modal-desc {
    color: #666;
    margin-bottom: 20px;
}
.modal-btn {
    padding: 8px 20px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}