/* 客服工具整体样式 */
#web-kefu {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 公共圆形按钮样式 */
.kefu-btn {
    width: 60px;
    height: 60px;
    background-color: #136C55;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    font-size: 24px;
}

.kefu-btn:hover {
    background-color: #0f5546;
}

/* 微信二维码弹出 */
.kefu-wechat .wechat-qrcode {
    display: none;
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.kefu-wechat:hover .wechat-qrcode {
    display: block;
}

.kefu-wechat .wechat-qrcode img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

/* 电话提示弹出，自适应文本长度 */
.kefu-phone .phone-tooltip {
    display: none;
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    white-space: nowrap; /* 防止换行，使长度自适应 */
}

.kefu-phone:hover .phone-tooltip {
    display: block;
}

/* 返回顶部按钮始终显示 */
.kefu-top {
    font-size: 20px;
    line-height: 1;
    text-align: center;
}
