/* 悬浮窗样式 */
.wechat-float-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wechat-float-close {
    width: 12px;
    height: 12px;
    color: #4f90e5;
    position: absolute;
    top: -28px;
    right: 0;
}

.wechat-float-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 56px;
    height: 64px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 8px 4px 4px 4px;
    border-radius: 4px;
}

.wechat-float-button:hover {
    background-color: #458ae5;
}

.wechat-float-button-img {
    width: 30px;
    height: 30px;
    background-image: url(../../img/Icon-wechat-blue.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wechat-float-button:hover .wechat-float-button-img {
    background-image: url(../../img/Icon-wechat-white.png);
}

/* 默认状态文字 */
.wechat-float-text {
    width: 48px;
    height: 28px;
    font-size: 12px;
    text-align: center;
    color: #333333;
    line-height: 14px;
    margin-top: 8px;
}

.wechat-float-button:hover .wechat-float-text {
    color: #ffffff;
}

/* Hover状态下的二维码弹窗 */
.wechat-float-container .wechat-qrcode {
    position: absolute;
    left: -188px; /* 调整二维码位置 */
    top: 88px;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
    display: none;
}

.wechat-float-container:hover .wechat-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.triangle-right {
    position: absolute;
    right: -10px;
    top: 16px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent; /* 上边框 */
    border-bottom: 10px solid transparent; /* 下边框 */
    border-left: 10px solid #ffffff; /* 左边框，颜色决定三角形颜色 */
}

.wechat-qrcode img {
    width: 150px;
    height: 150px;
}

.wechat-qrcode-text {
    width: 150px;
    height: 36px;
    font-size: 13px;
    color: #333333;
    text-align: center;
    line-height: 1.4;
}