/* =========================================================
   招生小狮子 · 视口右下角
   ========================================================= */

.lion-eye {
    position: fixed;
    right: 16px;
    bottom: 28px;
    z-index: 10060;
    width: 88px;
    cursor: grab;
    cursor: -webkit-grab;
    border: 0;
    background: transparent;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
}

.lion-eye.is-placed {
    position: fixed;
    z-index: 10060;
}

.lion-eye.is-dragging,
.lion-eye.is-dragging .lion-eye__base {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* 底图（狮子本体） */
.lion-eye__base {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
    filter: brightness(1.22) saturate(1.1) contrast(1.04) drop-shadow(0 5px 7px rgba(0, 0, 0, .16));
}

/* 悬停气泡 */
.lion-eye__bubble {
    position: absolute;
    right: 76px;
    bottom: 46px;
    white-space: nowrap;
    background: #fff;
    color: #0f3f78;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 12px 12px 2px 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.lion-eye__bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 8px;
    border: 6px solid transparent;
    border-left-color: #fff;
    border-bottom: 0;
}

.lion-eye:hover .lion-eye__bubble {
    opacity: 1;
}

.lion-eye.is-entering {
    animation: zs-lion-enter 0.7s ease-out;
}

@keyframes zs-lion-enter {
    from {
        transform: translateX(160%);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

/* 手机端略放大便于点按；气泡改为常显短文案位可点区域外隐藏避免挡内容 */
@media (max-width:768px) {
    .lion-eye {
        width: 80px;
        right: 10px;
    }

    .lion-eye__bubble {
        right: 8px;
        bottom: calc(100% + 6px);
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 10px;
        opacity: 1;
        white-space: normal;
        max-width: 140px;
        text-align: center;
        line-height: 1.35;
    }

    .lion-eye__bubble::after {
        right: 18px;
        bottom: -5px;
        border: 5px solid transparent;
        border-top-color: #fff;
        border-left-color: transparent;
        border-bottom: 0;
    }
}
