/* Telegram客服浮动按钮 */
.telegram-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.telegram-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
}

.telegram-float-btn i {
    color: white;
    font-size: 30px;
}

.telegram-float-btn .support-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

/* 提示气泡 */
.telegram-float-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.telegram-float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.telegram-float-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 136, 204, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    }
}

/* 跳动动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .telegram-float-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .telegram-float-btn i {
        font-size: 26px;
    }
    
    .telegram-float-btn .tooltip {
        display: none; /* 移动端隐藏提示 */
    }
}

/* Footer中的Telegram按钮悬停效果 */
.telegram-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.telegram-support-btn:active {
    transform: translateY(0);
}

