/* @🍮 */
/* === 聊天列表 === */

#chat-list-screen .content,
#world-book-screen .content {
    padding: 10px 0 0 0;
}

.list-container {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.list-item:hover {
    background-color: #fdf6f8;
}

.chat-item.pinned {
    background-color: var(--top-pinned-bg);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #eee;
}

.group-avatar {
    border-radius: 10px;
}

.item-details {
    flex-grow: 1;
    overflow: hidden;
}

.item-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.item-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.item-preview {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.pin-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
