/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 群聊列表样式 */
.group-list {
    display: grid;
    gap: 12px;
}

.group-item {
    background-color: white;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #12B7F5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.group-info {
    flex-grow: 1;
    min-width: 0;
}

.group-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-preview {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-meta {
    text-align: right;
    margin-left: 10px;
    flex-shrink: 0;
}

.group-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

/* 聊天内容样式 */
.chat-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.message:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sender {
    font-weight: 500;
    color: #12B7F5;
}

.time {
    font-size: 12px;
    color: #999;
}

.message-content {
    font-size: 15px;
    line-height: 1.5;
}

/* 按钮和交互元素 */
.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    color: #12B7F5;
}

.spacer {
    flex-grow: 1;
}

/* 加载和空状态 */
.loading, .empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}