
/** 整个聊天界面容器 */
.content .chat-container {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.125),
        -2px -2px 4px rgba(0, 0, 0, 0.125);
    margin: 5px 5px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /*
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    */
    border-radius: 8px;
    box-sizing: content-box;
    position: relative;
    overflow: auto;
    backdrop-filter: blur(3px);
}

/** 消息窗口 */
.message-container {
    width: calc(100% - 20px);
    height: calc(100% - 100px);
    position: relative;
    margin: 0 4px;
    padding: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    border-radius: 8px;
    box-sizing: content-box;
    overflow: auto;
}

/** 消息输入框容器 */
.input-container {
    width: calc(100% - 20px);
    height: 100px; 
    position: relative;
    margin: 10px 4px;
    padding: 5px;
    align-items: center;
    vertical-align: middle;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    border-radius: 8px;
    box-sizing: content-box;
}

/** 输入选项 */
.input-menu {
    width: 100%;
    height: 40px;
}

/** 输入框和发送按钮包装 */
.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    border-radius: 8px;
    box-sizing: content-box;
}

/** 输入框 */
.chat-input-wrapper > textarea {
    width: calc(100% - 50px);
    height: 100% !important;
    padding: 0 0 0 5px;
    background-color: rgba(0, 0, 0, 0.125);
    color: #e5e7eb;
    border: none;
    outline: none;
    resize: none; 
    font-size: 1em;
}

/** 发送按钮 */
.chat-input-wrapper .send-button {
    background: rgb(146, 149, 147);
    color: #fff;
    padding: 16px 15px;
    appearance: none; /* 移除浏览器默认样式 */
    outline: none; /* 取消:focus时的轮廓线 */
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    font-size: 1.6em;
}

/** 输出框表单 */
.input-container form {
    width: 100%;
}

/* 自适应布局，媒体查询当宽度大于528像素时 */
@media (max-width: 528px) {
    .content .chat-container {
        width: 80%;
    }
}

/* 自适应布局，媒体查询当宽度大于528像素时 */
@media (max-width: 768px) {
    .content .chat-container {
        width: 100%;
    }
}

.message-list {
    margin: 10px;
    border-radius: 8px;
}

.time-remark-wrapper {
    display: flex;
    flex-direction: column;
}

.mr10 {
    margin-right: 10px;
}

.time {
    color: rgba(180, 187, 196);
    font-size: 12px;
    margin-bottom: 5px;
}

.title {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    padding: 15px;

}

.flex-right .time-remark-wrapper {
    align-items: flex-end;
}

.message {
    display: inline-block;
    border-radius: 8px;
}

.user-message {
    background-color: rgba(210, 249, 209, 0.2);
    text-align: right;
    margin-bottom: 20px;
    padding: 10px 15px;
    color: #e5e7eb;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.flex-right {
    display: flex;
    justify-content: end;
}

.flex-left {
    display: flex;
    justify-content: start;
}

.bot-message {
    background-color: rgba(244, 246, 248, 0.2);
    margin-bottom: 20px;
    padding: 10px 15px;
    color: #e5e7eb;
}

.hljs {
    background: #fff;
    border-radius: 8px;
}

code {
    display: block;
}
