/**
 * 全局浮动联系框样式
 * 网约向导静态页面生成系统
 */

/* 浮动框容器 */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 浮动按钮通用样式 */
.float-contact .float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: none;
}

.float-contact .float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.float-contact .float-btn svg {
    width: 24px;
    height: 24px;
}

/* 微信按钮 */
.float-contact .btn-wechat svg {
    fill: #07c160;
}

/* 客服按钮 */
.float-contact .btn-service svg {
    fill: #00b4d8;
}

/* 电话按钮 */
.float-contact .btn-phone svg {
    fill: #ff6b35;
}

/* 返回顶部按钮 */
.float-contact .btn-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.float-contact .btn-top.show {
    opacity: 1;
    visibility: visible;
}

.float-contact .btn-top svg {
    fill: #666;
}

/* 弹出面板通用样式 */
.float-contact .float-panel {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    white-space: nowrap;
}

.float-contact .float-btn:hover .float-panel,
.float-contact .float-panel:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 面板小三角 */
.float-contact .float-panel::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 16px;
    border: 8px solid transparent;
    border-left-color: #fff;
    border-right: none;
}

/* 微信面板 */
.float-contact .wechat-panel {
    text-align: center;
    min-width: 160px;
}

.float-contact .wechat-panel .title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.float-contact .wechat-panel .qrcode {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.float-contact .wechat-panel .qrcode-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 客服面板 */
.float-contact .service-panel {
    min-width: 140px;
}

.float-contact .service-panel .title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.float-contact .service-panel .wechat-id {
    font-size: 15px;
    color: #00b4d8;
    font-weight: 600;
    margin: 0;
}

/* 电话面板 */
.float-contact .phone-panel {
    min-width: 140px;
}

.float-contact .phone-panel .title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.float-contact .phone-panel .phone-number {
    font-size: 16px;
    color: #ff6b35;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
    display: block;
}

.float-contact .phone-panel .phone-number:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .float-contact {
        right: 12px;
        bottom: 80px;
    }
    
    .float-contact .float-btn {
        width: 44px;
        height: 44px;
    }
    
    .float-contact .float-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .float-contact .float-panel {
        right: 54px;
    }
    
    .float-contact .wechat-panel .qrcode {
        width: 120px;
        height: 120px;
    }
}
