/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 桌面端浮动栏 */
.float-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 每个客服项容器 */
.contact-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e8e8e8;
}

/* 图标样式 */
.contact-item svg {
    width: 28px;
    height: 28px;
    color: #666;
}
.whatsapp-ico{
    background: url(../img/side-what.png) no-repeat center;
}
.side-ico {
    background: url(../img/side-tele.png) no-repeat center;
}
.email-ico {
    background: url(../img/icon-mail.png) no-repeat center;
}

.wei-ico {
    background: url(../img/side-ewm.png) no-repeat center;
}

.backtop-ico {
    background: url(../img/side-toTop-item.png) no-repeat center;
}
.icon-whatsapp {
    color: #25d366;
}

/* 电话/WhatsApp 弹出框 */
.contact-popup {
    position: absolute;
    right: 70px;
    /*top: 50%;*/
    transform: translateY(-50%);
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-popup {
    opacity: 1;
    visibility: visible;
}

/* 微信二维码弹出框 */
.qrcode-popup {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-item.active .qrcode-popup {
    opacity: 1;
    visibility: visible;
}

.qrcode-popup img {
    width: 120px;
    height: 120px;
}

/* 回到顶部图标 */
.back-top svg {
    transform: rotate(180deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .float-contact {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        background: #fff;
        padding: 10px 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        gap: 0;
    }

    .contact-item {
        width: 50px;
        height: 50px;
        background: transparent;
        box-shadow: none;
    }

    .contact-popup, .qrcode-popup {
        right: auto;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-top: -100px;
    }

    .qrcode-popup {
        width: 140px;
    }
}