.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 255, 0.5); /* 蓝色透明 */
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 999999;
}
/** 移动端不显示客服组件 **/
@media screen and (max-width: 768px) {
    #rightkefu {
        display: none;
    }
}
/* 浮动客服组件 */
#rightkefu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

/* 外层容器 */
.kefu-container {
    background-color: #007bff;
    border-radius: 30px;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: width 0.3s;
    position: relative;
    padding-top: 40px;
}

/* 头像 */
.kefu-avatar {
    position: absolute;
    top: -70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 5px;
    width: 120px;
}

.kefu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮项 */
.kefu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.kefu-item:hover {
    background-color: #0056b3;
}

/* 按钮图标 */
.kefu-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.kefu-icon img {
    width: 100%;
    height: 100%;
}

/* 关闭按钮 */
.kefu-close {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

.kefu-close img {
    width: 16px;
    height: 16px;
}

/* 二维码弹出框 */
.kefu-popup {
    position: absolute;
    left: -220px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: none;
}

.kefu-popup::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* 二维码内容 */
.popup-content {
    text-align: left;
    background: #eeeeee;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.popup-content p {
    font-size: 14px;
    color: #333;
    line-height: 24px;
    padding-top: 10px;
    padding-left: 10px;
    margin-bottom: 10px;
}

/* 当鼠标悬停在微信咨询按钮上时显示二维码 */
.kefu-item:hover .kefu-popup {
    display: block;
}