/* 右侧固定边栏优化样式 */
.right-float-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* 优化列表项样式 */
.right-float-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-float-bar li {
    position: relative;
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.right-float-bar li a {
    display: block;
    color: #5C6BC0;
    padding: 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

/* 图标优化 */
.right-float-bar li .iconfont {
    font-size: 22px;
    margin-bottom: 5px;
    display: block;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.right-float-bar li:hover {
    background: linear-gradient(135deg, #5C6BC0, #7986CB);
    transform: translateX(-5px);
}

.right-float-bar li:hover a {
    color: white;
}

.right-float-bar li:hover .iconfont {
    transform: scale(1.2) rotate(5deg);
}

/* 客服弹窗样式优化 */
.right-float-bar li .introduce {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

/* 弹窗箭头 */
.right-float-bar li .introduce::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* 确保客服弹窗在悬停时显示并添加延迟隐藏效果 */
.right-float-bar li.sv-allVip:hover .introduce,
.right-float-bar li.sv-allVip .introduce.show {
    display: block !important;
    animation: fadeInRight 0.3s ease;
}

/* 添加延迟隐藏效果 */
.right-float-bar li.sv-allVip .introduce {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 修复可能的显示问题 */
.service-info {
    position: relative;
    z-index: 1002;
}

/* 客服信息样式优化 */
.service-info {
    text-align: center;
}

.service-info p {
    margin: 8px 0;
    color: #666 !important;
    font-size: 14px !important;
    display: block !important;
    opacity: 1 !important;
}

.service-info p:last-child {
    font-size: 12px !important;
    color: #999 !important;
}

/* 联系按钮样式 */
.kefu-call-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #5C6BC0, #7986CB);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.kefu-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.3);
    color: white;
}

/* 返回顶部按钮优化 */
.return-top-r {
    margin-top: 10px !important;
    background: #f5f5f5;
    border-radius: 0 0 0 8px;
    transition: all 0.3s ease;
}

.return-top-r:hover {
    background: linear-gradient(135deg, #5C6BC0, #7986CB) !important;
    transform: translateX(-5px);
}

/* 动画效果 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* 服务图标样式 */
.sv-allVip {
    position: relative;
    min-height: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .right-float-bar {
        width: 40px;
        padding: 5px 0;
    }
    
    .right-float-bar li a {
        padding: 12px 0;
    }
    
    .right-float-bar li .iconfont {
        font-size: 18px;
    }
    
    .right-float-bar li .introduce {
        width: 200px;
        padding: 15px;
    }
}

/* 确保文字可见 */
.right-float-bar li span {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}
