/* AI客服基础样式 */

/* 浮动按钮 */
#ai-stable-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999999;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#ai-stable-toggle:hover {
    transform: scale(1.1);
}

/* 聊天窗口 */
#ai-stable-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* 消息区域 */
.ai-stable-message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.ai-stable-user {
    background: #667eea;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-stable-ai {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    #ai-stable-chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
        height: 70vh;
    }
    
    #ai-stable-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}