/* 右侧悬浮客服工具栏 */

.service-wrap {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    background: #FFFFFF;
    box-shadow: 0px 3px 10px 0px #BEC3D4;
    border-radius: 8px;
    padding: 0 8px;
}

.service_item {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
}

.service_item--action {
    cursor: pointer;
}

.service_item-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
    transition: color 0.25s ease;
}

.service_item-main img {
    width: 24px;
    height: 24px;
    transition: filter 0.25s ease;
}

.service_item-main span {
    font-size: 12px;
    color: #666666;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.service_item:hover .service_item-main span,
.service_item--action:hover .service_item-main span {
    color: #4671FE;
}

.service_item:hover .service_item-main img,
.service_item--action:hover .service_item-main img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(98%) saturate(1752%) hue-rotate(214deg) brightness(99%) contrast(97%);
}

.service_popover {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #FFFFFF;
    box-shadow: 0px 3px 10px 0px #BEC3D4;
    border-radius: 8px;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.service_item:hover .service_popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.service_popover--phone {
    padding: 14px 24px;
    white-space: nowrap;
}

.service_popover--phone a {
    font-size: 18px;
    font-weight: 600;
    color: #4671FE;
    text-decoration: none;
}

.service_popover--phone a:hover {
    opacity: 0.85;
}

.service_popover--wx {
    padding: 12px 14px;
    text-align: center;
}

.service_popover--wx p {
    font-size: 14px;
    color: #4671FE;
    margin-bottom: 8px;
    line-height: 1.4;
}

.service_popover--wx img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.service_top {
    padding: 16px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service_top img {
    width: 24px;
    height: 24px;
    transition: filter 0.25s ease;
}

.service_top:hover img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(98%) saturate(1752%) hue-rotate(214deg) brightness(99%) contrast(97%);
}

@media (max-width: 768px) {
    .service-wrap {
        right: 10px;
        width: 64px;
        padding: 0 6px;
    }

    .service_item-main {
        padding: 12px 0;
    }

    .service_item-main span {
        font-size: 11px;
    }

    .service_popover--wx img {
        width: 100px;
        height: 100px;
    }
}
