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); 
}

#apiKeyContainer {
    margin-bottom: 20px;
}

#apiKey {
    width: 97%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#submitKeyButton {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    margin-left: 5px;
}

#submitKeyButton:hover {
    background-color: #0056b3;
}

#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('/images/fd.jpg'); 
    background-size: cover; 
    z-index: -1; 
}

/* 代码块样式 */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    border-radius: 0.3em;
}