/* 右下角悬浮入口 - AI助手、公众号、帮手群（除首页、智能客服外通用） */
.index-float-panel {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.index-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.index-float-btn svg {
    width: 20px;
    height: 20px;
}

.index-float-btn:hover {
    color: #fff;
    background: #11D6BB;
    box-shadow: 0 4px 16px rgba(17, 214, 187, 0.4);
    transform: scale(1.05);
}

.index-float-ai {
    background: #11D6BB;
    color: #fff;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(17, 214, 187, 0.4);
}

.index-float-ai svg {
    width: 22px;
    height: 22px;
}

.index-float-ai:hover {
    background: #0eb89e;
    color: #fff;
    box-shadow: 0 6px 24px rgba(17, 214, 187, 0.5);
}

.index-float-ai-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    padding: 6px 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
}

.index-float-ai-tip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1a1a1a;
}

.index-float-ai:hover .index-float-ai-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.index-float-qr {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    width: 140px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
}

.index-float-popup:hover .index-float-qr {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.index-float-qr::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}

.index-float-qr img {
    width: 116px;
    height: 116px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.index-float-qr p {
    margin: 8px 0 0;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

@media (min-width: 769px) {
    .index-float-panel {
        right: 24px;
        bottom: 100px;
        gap: 8px;
    }

    .index-float-btn {
        width: 48px;
        height: 48px;
    }

    .index-float-btn svg {
        width: 22px;
        height: 22px;
    }

    .index-float-ai {
        width: 54px;
        height: 54px;
    }

    .index-float-ai svg {
        width: 24px;
        height: 24px;
    }

    .index-float-ai-tip {
        right: calc(100% + 12px);
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .index-float-qr {
        right: calc(100% + 12px);
        width: 150px;
        padding: 16px;
        border-radius: 12px;
    }

    .index-float-qr img {
        width: 118px;
        height: 118px;
    }

    .index-float-qr p {
        margin: 10px 0 0;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .index-float-panel {
        right: 12px;
        bottom: 70px;
        gap: 6px;
    }

    .index-float-btn {
        width: 42px;
        height: 42px;
    }

    .index-float-btn svg {
        width: 20px;
        height: 20px;
    }

    .index-float-ai {
        width: 46px;
        height: 46px;
    }

    .index-float-ai svg {
        width: 22px;
        height: 22px;
    }

    .index-float-qr {
        right: 50%;
        left: auto;
        top: auto;
        bottom: calc(100% + 16px);
        transform: translateX(50%) translateY(4px);
        width: 130px;
        padding: 12px;
    }

    .index-float-qr::after {
        right: 50%;
        left: auto;
        top: auto;
        bottom: -6px;
        transform: translateX(50%);
        border-left-color: transparent;
        border-top-color: #fff;
    }

    .index-float-popup:hover .index-float-qr {
        transform: translateX(50%) translateY(0);
    }

    .index-float-qr img {
        width: 106px;
        height: 106px;
    }

    .index-float-qr p {
        margin: 6px 0 0;
        font-size: 11px;
    }

    .index-float-ai-tip {
        right: 50%;
        left: auto;
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(50%) translateY(4px);
    }

    .index-float-ai-tip::after {
        right: 50%;
        left: auto;
        top: auto;
        bottom: -5px;
        transform: translateX(50%);
        border-left-color: transparent;
        border-top-color: #1a1a1a;
    }

    .index-float-ai:hover .index-float-ai-tip {
        transform: translateX(50%) translateY(0);
    }

    .index-float-popup .index-float-qr {
        display: none;
    }
}

/* 移动端二维码弹层 */
.qr-modal,
.qr-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.qr-modal.active,
.qr-zoom.active {
    display: block;
}

.qr-modal-mask,
.qr-zoom-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.qr-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
}

.qr-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.qr-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.qr-modal-img-wrap {
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.qr-modal-img-wrap img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.qr-modal-hint {
    margin-top: 12px;
    font-size: 14px;
    color: #11D6BB;
    font-weight: 500;
}

.qr-modal-hint-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.qr-zoom img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

@media (min-width: 769px) {
    .qr-modal,
    .qr-zoom {
        display: none !important;
    }
}
