/* ==================== 悬浮客服样式 ==================== */

/* 悬浮客服 */
.service-float {
    position: fixed;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: #fff; */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 15px 10px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.service-float .service-items {
    background-color: #fff;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);padding: 15px 10px; gap: 20px;border-radius: 10px; display: flex;flex-direction: column;
    align-items: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-icon {
    width: 30px;
    height: 25px;
    /* background-color: #ff7a45; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    position: relative;
}

.service-text {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.service-online {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #52c41a;
    border: 2px solid #fff;
    z-index: 1;
}

/* 悬浮弹窗 */
.contact-popup {
    position: absolute;
    bottom: 0;
    right: 70px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.contact-popup::after {
    content: '';
    position: absolute;
    bottom: 26px;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

/* 电话按钮和弹窗交互 */
.service-item:has(.phone-btn:hover) .phone-popup,
.phone-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 微信按钮和弹窗交互 */
.service-item:has(.wechat-btn:hover) .wechat-popup,
.wechat-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}