/* ===== 微信风格样式补充 ===== */

/* 会话列表 */
#wxConversationList {
    padding: 0 8px;
}

.wx-conv {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
}

.wx-conv:hover,
.wx-conv:active {
    background: #ededed;
}

.wx-conv-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.wx-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fa5151;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
}

.wx-conv-body {
    flex: 1;
    min-width: 0;
}

.wx-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wx-conv-name {
    font-size: 14px;
    color: #191919;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.wx-conv-time {
    font-size: 11px;
    color: #b2b2b2;
    flex-shrink: 0;
    margin-left: 8px;
}

.wx-conv-preview {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-empty {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 18px 0;
}

/* 好友申请 */
#wxFriendRequests {
    padding: 0 8px;
}

.wx-request {
    display: flex;
    align-items: center;
    padding: 9px 8px;
    border-radius: 8px;
}

.wx-request .wx-conv-body {
    flex: 1;
    min-width: 0;
}

.wx-req-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wx-accept-btn,
.wx-reject-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
}

.wx-accept-btn {
    background: #07C160;
    color: #fff;
    border-color: #07C160;
}

.wx-reject-btn {
    background: #fff;
    color: #666;
    border-color: #dcdfe6;
}

.wx-req-status {
    flex-shrink: 0;
    font-size: 12px;
    color: #b2b2b2;
    margin-left: 8px;
}

.wx-req-badge {
    display: none;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fa5151;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* 撤回按钮（悬停显示） */
.wx-recall-btn {
    opacity: 0;
    margin-right: 8px;
    padding: 0;
    font-size: 11px;
    color: #576b95;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
}

.message:hover .wx-recall-btn {
    opacity: 1;
}

.wx-recall-btn:hover {
    text-decoration: underline;
}

/* 撤回菜单 */
.wx-recall-menu {
    position: fixed;
    z-index: 4000;
    background: #4c4c4c;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.wx-recall-menu button {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.wx-recall-menu button:hover {
    background: #5f5f5f;
}

.wx-recall-hint {
    justify-content: center;
}

/* 微信式气泡覆盖 */
.chat-content,
.private-chat-content {
    background: #ededed;
}

.message.self .message-bubble {
    background: #95ec69 !important;
    color: #111 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.message.other .message-bubble {
    background: #ffffff !important;
    color: #111 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.message .avatar {
    border-radius: 6px !important;
}

.message.self {
    flex-direction: row-reverse;
}

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

.message.self .message-meta {
    justify-content: flex-end;
}

.message.self .message-header {
    display: none;
}

/* 侧边栏更接近微信 */
.sidebar {
    background: #ededed;
}

.chat-tabs {
    background: transparent;
}

.chat-tab.active {
    background: #07C160;
    color: #fff;
}

.chat-tab {
    border-radius: 6px;
}
