#message-display {
    margin-top: 20px;
    border: 1px solid #ddd;  /* 添加边框 */
    padding: 10px;           /* 可选：增加内边距，使内容与边框之间有间距 */
    border-radius: 5px;      /* 可选：圆角边框 */
    width: 80%;              /* 宽度设置为页面的80% */
    max-width: 800px;        /* 最大宽度设置为800px，防止过大 */
    height: 400px;           /* 高度设置为400px */
    overflow-y: auto;        /* 如果内容超出高度，显示滚动条 */
    background-color: #f5f5f5; /* 灰白背景颜色 */
    margin-left: auto;       /* 水平居中 */
    margin-right: auto;      /* 水平居中 */
    position: relative;      /* 使子元素可以相对于此容器定位 */
}

#toggle-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#messages-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.message-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    word-wrap: break-word; /* 确保内容超过显示边距时自动换行 */
}

.message-section {
    margin-bottom: 10px;
}

.message-section strong {
    color: #333;
    font-weight: bold;
}

