/* AI问答浮动按钮样式 - 新版设计 */
.ai-chat-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: move;
    box-shadow:
            0 8px 32px rgba(139, 92, 246, 0.3),
            0 4px 16px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    animation: pulseScale 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-chat-button::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F59E0B);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(2px);
}

.ai-chat-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

.ai-chat-button:hover::before {
    opacity: 1;
}

.ai-chat-button:active {
    transform: scale(0.98);
}

.ai-chat-text {
    color: white;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.ai-chat-subtitle {
    color: white;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 按钮变大变小闪动动画 */
@keyframes pulseScale {
    0% {
        transform: translateY(-50%) scale(1);
    }
    25% {
        transform: translateY(-50%) scale(1.1);
    }
    50% {
        transform: translateY(-50%) scale(0.9);
    }
    75% {
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* 悬停时暂停动画 */
.ai-chat-button:hover {
    animation-play-state: paused;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
    cursor: pointer;
}

/* 拖拽时暂停动画 */
.ai-chat-button.dragging {
    animation-play-state: paused;
    cursor: grabbing;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.5);
    transition: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-chat-button {
        width: 45px;
        height: 45px;
        right: 20px;
    }

    .ai-chat-text {
        font-size: 16px;
    }

    .ai-chat-subtitle {
        font-size: 6px;
    }
}

@media (max-width: 480px) {
    .ai-chat-button {
        width: 35px;
        height: 35px;
        right: 15px;
    }

    .ai-chat-text {
        font-size: 14px;
    }

    .ai-chat-subtitle {
        font-size: 5px;
    }
}