/* ========================================
   产品咨询悬浮表单样式
   主色：#0086F1
   ======================================== */

/* 悬浮按钮容器 */
.consult-float-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* 主咨询按钮 */
.consult-trigger-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0086F1 0%, #0056B3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,134,241,0.4);
    transition: all 0.3s ease;
    position: relative;
}

.consult-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,134,241,0.5);
}

.consult-trigger-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* 悬浮按钮文字提示 */
.consult-btn-label {
    position: absolute;
    right: 70px;
    background: #0086F1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consult-trigger-btn:hover .consult-btn-label {
    opacity: 1;
    visibility: visible;
}

/* 返回顶部按钮 */
.consult-gotop-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0086F1 0%, #0056B3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,134,241,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.consult-gotop-btn.show {
    opacity: 1;
    visibility: visible;
}

.consult-gotop-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,134,241,0.4);
}

.consult-gotop-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    margin: auto;
}

/* ===== 弹出表单 ===== */
.consult-form-modal {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.consult-form-modal.open {
    right: 0;
}

/* 表单头部 */
.consult-form-header {
    background: linear-gradient(135deg, #0086F1 0%, #0056B3 100%);
    padding: 30px 25px;
    color: #fff;
    position: relative;
}

.consult-form-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.consult-form-header p {
    font-size: 14px;
    opacity: 0.9;
}

.consult-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consult-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.consult-close-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
}

/* 表单内容 */
.consult-form-body {
    padding: 30px 25px;
}

/* 产品信息显示 */
.consult-product-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.consult-product-info .product-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.consult-product-info .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #0086F1;
}

/* 表单字段 */
.consult-form-group {
    margin-bottom: 20px;
}

.consult-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.consult-form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.consult-form-group input,
.consult-form-group textarea,
.consult-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.consult-form-group input:focus,
.consult-form-group textarea:focus,
.consult-form-group select:focus {
    border-color: #0086F1;
    box-shadow: 0 0 0 3px rgba(0,134,241,0.1);
    outline: none;
}

.consult-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 提交按钮 */
.consult-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0086F1 0%, #0056B3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consult-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,134,241,0.3);
}

.consult-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 成功提示 */
.consult-success-msg {
    text-align: center;
    padding: 40px 20px;
}

.consult-success-msg .success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.consult-success-msg .success-icon svg {
    width: 40px;
    height: 40px;
    fill: #4caf50;
}

.consult-success-msg h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.consult-success-msg p {
    font-size: 14px;
    color: #666;
}

/* 联系信息 */
.consult-contact-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.consult-contact-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.consult-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.consult-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: #0086F1;
    stroke-width: 2;
    fill: none;
}

/* 遮罩层 */
.consult-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consult-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .consult-float-btn {
        right: 10px;
    }
    
    .consult-trigger-btn {
        width: 50px;
        height: 50px;
    }
    
    .consult-trigger-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .consult-form-modal {
        width: 100%;
        right: -100%;
    }
    
    .consult-btn-label {
        display: none;
    }
}