/* 右侧浮动客服组件 */
.customer-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-service-item {
    width: 65px;
    height: 65px;
    background: #0066ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
    text-decoration: none;
    color: white;
    position: relative;
}

.customer-service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
    background: #0022ff;
}

.customer-service-item svg {
    width: 22px;
    height: 22px;
    fill: white;
    margin-bottom: 3px;
}

.customer-service-item .text {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.customer-service-item .divider {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.customer-service-item:last-child .divider {
    display: none;
}

/* 提示框样式 */
.customer-service-item .tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
    white-space: nowrap;
}

.customer-service-item .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.customer-service-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 电话提示框 */
.phone-tooltip {
    font-size: 16px;
    font-weight: bold;
    color: #0052cc;
}

/* 微信二维码提示框 */
.wechat-tooltip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wechat-tooltip img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.wechat-tooltip .wechat-hint {
    font-size: 12px;
    color: #666;
}

/* 返回顶部按钮 */
.customer-service-item.back-to-top-btn {
    height: 50px;
    margin-top: 10px;
}

/* 手机端隐藏 */
@media (max-width: 768px) {
    .customer-service {
        display: none;
    }
}