#xueba-ai-icon {
    position: fixed;
    right: 25px;
    bottom: 80px;
    width: 65px;
    height: 65px;
    cursor: pointer;
    z-index: 99999;
    animation: float 2s ease-in-out infinite;
}

#xueba-ai-icon img { width: 100%; height: 100%; }

#xueba-ai-chat {
    position: fixed;
    right: 25px;
    bottom: 170px;
    width: 380px;
    height: 560px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 100000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: "Microsoft YaHei", sans-serif;
}

.chat-header {
    background: #00ccff;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat { cursor: pointer; font-size: 22px; }

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
}

.message.bot {
    background: #e3f2fd;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: #00ccff;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
}

#send-btn {
    margin-left: 8px;
    background: #00ccff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}