* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.chat-container {
    width: 90%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    height: 50px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 以下保持原有样式不变 */
.header-left {
    display: flex;
    align-items: center;
}

.back-icon {
    margin-right: 15px;
    color: #07c160;
    cursor: pointer;
}

.avatar {
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.header-right {
    color: #999;
    cursor: pointer;
}

.message-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #e8e8e8;
}

.message-item {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 70%;
    word-break: break-word;
}

.message-item.user-b {
    background: #fff;
    margin-left: auto;
}

.message-item.user-a {
    background: #9eea6a;
    margin-right: auto;
}

.system {
    text-align: center;
    color: #999;
    font-size: 12px;
}

.input-area {
    height: 50px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
    padding: 5px 15px;
    display: flex;
}

#messageInput {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

#sendButton {
    margin-left: 10px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
}