body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    padding: 20px;
}

.name {
    -webkit-user-select: none;
    user-select: none;
}

.message {
    -webkit-user-select: all;
    user-select: all;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center; /* 确保内容居中对齐 */
    margin-bottom: 10px; /* 留出一些空间 */
}

.timestamp {
    -webkit-user-select: none;
    user-select: none;
}

#chat-container {
    max-width: 600px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

#login {
    text-align: center;
}

#login input {
    margin: 10px 0;
    padding: 10px;
    width: 80%;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

#login input::placeholder {
    color: #888;
}

#chat {
    text-align: center;
}

#messages {
    background-color: #2c2c2c;
    padding: 10px;
    height: 300px;
    overflow-y: scroll;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.message {
    text-align: left;
    padding: 5px;
    margin: 5px 0;
    border-bottom: 1px solid #444;
}

.timestamp {
    font-size: 0.8em;
    color: #888;
    text-align: right;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#message-input {
    width: 70%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    resize: vertical;
    min-height: 50px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    margin-right: 10px;
}

#message-input::placeholder {
    color: #888;
}

#send-button,
#login-button,
#upload-button,
#paste-button,
#fetch-now {
    padding: 10px;
    margin: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-button:hover,
#login-button:hover,
#upload-button:hover,
#paste-button:hover,
#fetch-now:hover {
    background-color: #45a049;
}

#file-input {
    margin-top: 10px;
    color: #e0e0e0;
}