
/* 联系方式悬浮框样式 */
.contact-floater {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.contact-floater-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background-color: #fff;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #243883;
    color: white;
    font-size: 20px;
}

.contact-item.wechat {
    align-items: flex-start;    
}

.contact-item.wechat .content {
    height: auto;
}

.contact-item .content {
    padding: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    background-color: white;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
}

.contact-floater-inner:hover .content {
    padding: 15px;
    width: 200px;
    opacity: 1;
}

.contact-item.qq .icon {
    background-color: #12B7F5;
}

.contact-item.phone .icon {
    background-color: #2ecc71;
}

.contact-item.wechat .icon {
    background-color: #09BB07;
}

.contact-item .qrcode {
    display: none;
    width: 180px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border: 1px solid #e5e7eb;
}

.contact-item .qrcode-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.contact-item .qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-item.wechat .content {
    flex-direction: column;
    align-items: flex-start;
}

/* 修改二维码显示逻辑，悬浮到联系方式最外层就展示 */
.contact-floater-inner:hover .contact-item.wechat .qrcode {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
