 /* ??? */

body {
    display: flex;
    justify-content: center; /* 居中显示 */
    height: 100vh;
    align-items: center; /* 垂直居中 */
}

#聊天容器 {
    width: 400px;
    height: 600px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
    background-color: #fff; /* 背景颜色 */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* 阴影效果 */
}

#聊天框 {
    height: 450px;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.user, .assistant {
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    max-width: 80%;
    word-break: break-word; /* 防止长单词/URL破坏布局 */
}

.user {
    background-color: #D2E5FF;
    align-self: flex-end; /* 用户消息右对齐 */
    margin-left: 20%;
}

.assistant {
    background-color: #F1F0F0;
    align-self: flex-start; /* 助手消息左对齐 */
}

#状态栏 {
    color: red;
    height: 20px;
}

#用户输入, #发送按钮 {
    margin-top: 5px;
}

#用户输入 {
    width: 70%;
    padding: 5px;
}

#发送按钮 {
    width: 28%;
    padding: 5px;
}