/* 客服组件 */
.customer-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;  /* 增加组件的宽度 */
    background-color: #FFA500; /* 橙色背景 */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 0;
}

/* 每个部分（确保 LOGO 居中） */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* 每个部分的高度，确保居中 */
    width: 100%;
}

/* 分割线 */
.divider {
    width: 80%;
    height: 1px;
    background: black;
    display: block;
}

/* 图片容器 */
.image-container {
    width: 38px;  /* 增加图片容器的宽度 */
    height: 38px; /* 增加图片容器的高度 */
    transition: transform 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 悬停放大 */
.logo-container:hover .image-container,
.back-to-top:hover .image-container {
    transform: scale(1.2);
}

/* 气泡（默认隐藏） */
.tooltip {
    visibility: hidden; /* 让它默认隐藏 */
    opacity: 0;
    position: absolute;
    right: 60px; /* 控制气泡在logo右侧 */
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 5px;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* 气泡图片 */
.tooltip img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* 鼠标悬停时显示气泡 */
.logo-container:hover .tooltip {
    visibility: visible; /* 让它显示 */
    opacity: 1;
}
