.agent_widget {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    cursor: pointer;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    animation: float 3s ease-in-out infinite;
}

.agent_widget_inner {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2196f3, #9c27b0);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.agent_widget_icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.agent_widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .agent_widget {
        right: 15px;
        bottom: 70px;
    }
    
    .agent_widget_inner {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .agent_widget_icon {
        width: 20px;
        height: 20px;
    }
}
