.ai-container{
    width: 100%;
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: #f5f7fa;
}
.ai-box{
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ai-title{
    text-align: center;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    background: #409eff;
    color: #fff;
}
.ai-chat-box{
    flex: 1;
    height: 450px;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
}
.ai-input-box{
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}
#ai-input{
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    height: 50px;
    font-size: 14px;
}
#ai-send{
    width: 80px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.user-msg, .ai-msg{
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 75%;
    word-wrap: break-word;
}
.user-msg{
    background: #409eff;
    color: #fff;
    margin-left: auto;
}
.ai-msg{
    background: #f0f2f5;
    color: #333;
}
/* 移动端自适应 */
@media (max-width: 768px){
    .ai-chat-box{height: 380px;}
    .user-msg, .ai-msg{max-width: 85%;}
}