/* 在文件开头添加这些样式 */

.container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

input[type="text"], select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0052a3;
}

button:active {
    transform: translateY(1px);
}

/* 保持其他样式不变 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 聊天界面样式 */
.chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.icon-fanhui1 {
    margin-right: 10px;
}

.header-phone-number {
    flex-grow: 1;
    font-weight: bold;
}

.header-icons {
    display: flex;
}

.header-icons .icon {
    margin-left: 15px;
}

/* 聊天消息容器 */
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 20px; /* 增加底部内边距 */
    background-color: #ffffff;
}

/* 日期分隔符 */
.date-separator {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0 10px;
}

/* 消息包装器 */
.message-wrapper-sender,
.message-wrapper-receiver {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
}

.message-wrapper-sender {
    justify-content: flex-end;
}

.message-wrapper-receiver {
    justify-content: flex-start;
}

/* 头像样式 */
.avatar-sender,
.avatar-receiver {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-sender {
    order: 1;
    margin-left: 10px;
}

.avatar-receiver {
    order: 0;
    margin-right: 10px;
}

/* 所有图标的通用样式 */
.icon {
    width: 24px;
    height: 24px;
}

/* 消息内容容器 */
.message-content-sender,
.message-content-receiver {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-content-sender {
    align-items: flex-end;
}

.message-content-receiver {
    align-items: flex-start;
}

/* 消息气泡 */
.message-bubble-sender,
.message-bubble-receiver {
    padding: 10px;
    border-radius: 18px;
    max-width: 100%;
    word-wrap: break-word;
}

.message-bubble-sender {
    background-color: #8A2BE2;
    color: white;
    border-top-right-radius: 4px;
}

.message-bubble-receiver {
    background-color: #E0E0E0;
    color: black;
    border-top-left-radius: 4px;
}

/* 消息时间 */
.message-time-sender,
.message-time-receiver {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.message-time-sender {
    align-self: flex-start;
}

.message-time-receiver {
    align-self: flex-end;
}

/* 保留输入框样式，但移除高度设置 */
.message-input {
    flex-grow: 1;
    max-width: 70%;
    margin: 0 2%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    font-size: 14px;
    resize: none;
}

/* 保留图标样式 */
.chat-input-container .icon {
    width: 36px;
    height: 36px;
    padding: 6px;
    box-sizing: border-box;
    margin: 0 10px;
}

.icon-add, .icon-sim1, .icon-emoji, .icon-mic {
    fill: #666;
}

/* 底部容器样式 */
.chat-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

/* 底部图标样式 */
.bottom-icon {
    width: 30px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-icon svg {
    width: 60px;
    height: 60px;
    fill: #666;
}

/* 输入框样式 */
.message-input {
    flex-grow: 1;
    height: 23px;
    margin: 0 15px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    resize: none;
    display: flex;
    align-items: center;
}

/* 移除之前的媒体查询，因为我们现在有固定大小 */

/* 删除或注释掉之前的 .chat-input-container .icon 相关样式 */

/* ... 保持其他样式不变 ... */

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    padding: 0 10px;
    background-color: #f8f8f8;
    font-size: 12px;
    color: #333;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
}

.status-left .time {
    margin-right: 5px;
}

.status-bar .icon {
    width: 16px;
    height: 16px;
    margin: 0 2px;
}

.status-bar .icon-naozhong {
    width: 15px;
    height: 15px;
}

/* 删除聊天头部的上边距 */
.chat-header {
    margin-top: 0;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

/* ... 保持其他样式不变 ... */
