@charset "utf-8";

.message-pair {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.message-user,
.message-assistant {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-user {
    background: #e1ffc7;
    align-self: flex-end;
    margin-bottom: 10px;
}

.message-assistant {
    background: #ffffff;
    border-left: 3px solid #007bff;
    align-self: flex-start;
}

.chat-container {
    max-width: 100%;
    margin: 20px auto;
    margin-left: -15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: auto;
}

.chat-messages {
	display:none;
    flex: 0; 
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.chat-example-container{
	max-width: 100%;
    margin: 20px auto;
    margin-left: -15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.chat-input {
	flex: 0 0 auto;
    padding: 15px;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    display: block; /* 确保始终显示 */
}

.btn-send {
    margin-top: 10px;
    float: right;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.markdown-body {
    margin-top: 0;
    line-height: 1.6;
}