﻿/* ===== 浮动框容器 ===== */
.float-wrapper {
    position: fixed;
    bottom: 40px;
    right: 5px;
    z-index: 9999;
    animation: floatIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* ===== 主浮动框 ===== */
.wechat-float {
    width: 135px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(11, 43, 74, 0.18), 0 8px 24px rgba(11, 43, 74, 0.06);
    border: 1px solid rgba(11, 43, 74, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .wechat-float:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 72px rgba(11, 43, 74, 0.22), 0 10px 32px rgba(11, 43, 74, 0.08);
    }

/* ===== 头部：深蓝背景 ===== */
.float-header {
    background: #0b2b4a;
    padding: 5px 10px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

    .float-header .icon-circle {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        backdrop-filter: blur(2px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

        .float-header .icon-circle i {
            font-size: 20px;
            color: #fff;
        }

    .float-header .header-text {
        flex: 1;
    }

        .float-header .header-text h4 {
            color: #ffffff;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            line-height: 0.01;
        }

        .float-header .header-text p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.5rem;
            font-weight: 400;
            letter-spacing: 0.3px;
            color: #cacaca;
        }

/* ===== 关闭按钮 ===== */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: rotate(90deg);
    }

/* ===== 二维码主体 ===== */
.qr-body {
    padding: 5px 5px 10px;
    text-align: center;
}

    .qr-body .qr-image-wrap {
        position: relative;
        width: 100px;
        height: 225px;
        margin: 0 auto 5px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(11, 43, 74, 0.08);
        border: 2px solid #f0f4f9;
        transition: border-color 0.3s;
    }

.wechat-float:hover .qr-image-wrap {
    border-color: #dce5ef;
}

.qr-body .qr-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #ffffff;
}

/* 二维码底部小标签 */
.qr-body .qr-label {
    font-size: 0.75rem;
    color: #2a4055;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.qr-body .qr-sub {
    font-size: 0.7rem;
    color: #7a8fa3;
    letter-spacing: 0.3px;
}
