body {
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center; 
}

.content {
    text-align: left;      
    max-width: 700px;     
    width: 100%;           
}

/* 内容包装器样式 */
.content-wrapper {
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    border-radius: 20px;     /* 圆角效果 */
    padding: 20px;           /* 内边距 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    max-width: 700px;        /* 最大宽度 */
    width: 100%;             /* 宽度自适应 */
    text-align: left;        /* 内容左对齐 */
}

#chatbox {
    width: 97%;
    height: 50px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#sendButton {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
#sendButton:hover {
    background-color: #0056b3;
}
#dialogue {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
}
.message {
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    width: fit-content;
    max-width: 70%;
    clear: both;
}
.user {
    background-color: #d1e7dd;
    align-self: flex-end;
    margin-left: auto;
}
.assistant {
    background-color: #f8d7da;
    align-self: flex-start;
    margin-right: auto;
}
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.scroll {
    flex: 1;
    overflow-y: auto;
}

.background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8; /* 设置背景透明度 */
    background-image: url('fd.jpg'); 
    background-size: cover; /* 填充形式 */
    z-index: -1; 
}

/* ... (之前的 CSS 样式) */

/* 代码块样式 */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    border-radius: 0.3em;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #f5f2f0;
    background: none;
    text-shadow: 0 1px rgba(0, 0, 0, .3);
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* 数学公式样式 */
.math {
    display: inline-block; /* 或 block */
    text-align: center;
    margin: 5px 0; /* 根据需要调整 */
}