.roles-tab {
    display: flex;
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 99999;
}

.roles-tab i {
    width:  1.49333rem;
    width: 1.49333rem;
    height: .53333rem;
    line-height: .53333rem;
    background-size: 100% 100%;
    text-align: center;
    font-size: .34667rem;
    font-style: normal;
    color: #C08D47;
    cursor: pointer;
}
.roles-tab .active {
    background: url(../images/r-label_e4a6027.png) no-repeat center 0;
    width: 1.49333rem;
    height: .53333rem;
    line-height: .53333rem;
    background-size: 100% 100%;
    text-align: center;
    font-size: .34667rem;
    font-style: normal;
    color: #f6f6f6;
}

.leo2,.leo3 {
    display: none;
}

.custom-service {
    position: fixed;
    right: 0;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 微信图标样式 */
.service-icon {
    width: 50px;
    height: 50px;
    background-color: #07C160; /* 微信绿色 */
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
    cursor: pointer;
    z-index: 2;
    padding-left: 5px; /* 图标稍微左移，避免贴边 */
}

.wechat-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* 二维码面板样式 */
.service-panel {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.panel-content {
    background-color: #ffffff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-right: 5px;
}

.qr-code img {
    width: 100px;
    height: 100px;
    display: block;
    border: 1px solid #f0f0f0;
    padding: 5px;
}

.panel-text {
    margin: 10px 0 0;
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* hover展开效果 */
.custom-service:hover .service-panel {
    width: 130px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .service-icon {
        width: 44px;
        height: 44px;
    }
    
    .wechat-icon-img {
        width: 26px;
        height: 26px;
    }
    
    .custom-service:hover .service-panel {
        width: 110px;
    }
    
    .qr-code img {
        width: 80px;
        height: 80px;
    }
    
    .panel-text {
        font-size: 12px;
    }
}