/* ============================================================
 * 通用样式 - PC端
 * ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

input, button, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
 * 滚动条样式
 * ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================================
 * 布局
 * ============================================================ */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
}

.chat-list-panel,
.requests-list-panel,
.contacts-list-panel,
.groups-list-panel,
.files-list-panel {
    width: 280px;
    height: 100%;
    background-color: #e9e9e9;
    border-right: 1px solid #d6d6d6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================================
 * 侧边栏
 * ============================================================ */
.sidebar {
    width: 60px;
    height: 100%;
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    position: relative;
    z-index: 100;
}

.sidebar-item {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #9e9e9e;
    font-size: 22px;
    transition: all 0.2s;
    position: relative;
    z-index: 101;
    pointer-events: auto;
    user-select: none;
}

.sidebar-item:hover,
.sidebar-item.active {
    background-color: #07c160;
    color: #fff;
}

.request-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #f55;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-bottom {
    margin-top: auto;
    margin-bottom: 20px;
    position: relative;
}

/* ============================================================
 * 会话列表
 * ============================================================ */
.session-list {
    width: 250px;
    height: 100%;
    background-color: #e9e9e9;
    border-right: 1px solid #d6d6d6;
    display: flex;
    flex-direction: column;
}

.session-header {
    height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: none;
    border-radius: 4px;
    background-color: #d3d3d3;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.add-btn {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    position: relative;
}

.add-btn:hover {
    background-color: #d3d3d3;
    border-radius: 4px;
}

.session-header {
    position: relative;
}

.add-menu {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 180px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.add-menu.show {
    display: block;
}

.add-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.add-menu-item:last-child {
    border-bottom: none;
}

.add-menu-item:hover {
    background-color: #f0f0f0;
}

.add-menu-icon {
    font-size: 18px;
    margin-right: 12px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 22px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 22px;
    border-top: 1px solid #e0e0e0;
}

.cancel-btn,
.confirm-btn {
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn {
    background-color: #f0f0f0;
    border: none;
}

.confirm-btn {
    background-color: #07c160;
    color: #fff;
    border: none;
}

.confirm-btn:hover {
    background-color: #06ad56;
}

/* 添加好友样式 */
.search-friend-box {
    display: flex;
    gap: 10px;
}

.search-friend-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.search-friend-box input:focus {
    border-color: #07c160;
}

.search-friend-btn {
    padding: 0 20px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-result {
    margin-top: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
}

.search-result-account {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.add-friend-action-btn {
    padding: 6px 15px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* 好友选择样式 */
.friend-select-list {
    max-height: 250px;
    overflow-y: auto;
}

.friend-select-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.friend-select-item:hover {
    background-color: #f9f9f9;
}

.friend-select-item.selected {
    background-color: #e8f8f0;
}

.friend-select-check {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-select-item.selected .friend-select-check {
    background-color: #07c160;
    border-color: #07c160;
    color: #fff;
}

.friend-select-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    overflow: hidden;
}

.friend-select-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 好友申请样式 */
.request-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.request-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-info {
    flex: 1;
}

.request-name {
    font-size: 14px;
    font-weight: 500;
}

.request-message {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.request-actions {
    display: flex;
    gap: 10px;
}

.accept-btn {
    padding: 6px 16px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.reject-btn {
    padding: 6px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.accept-btn:hover {
    background-color: #06ad56;
}

.reject-btn:hover {
    background-color: #e0e0e0;
}

.request-status {
    font-size: 12px;
    color: #999;
    padding: 6px 10px;
}

/* 笔记模态框 */
.note-modal-content {
    width: 700px;
    height: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.note-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.note-tips {
    font-size: 13px;
    color: #666;
}

.note-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.note-tool-btn {
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.note-tool-btn:hover {
    color: #333;
}

.note-tool-sep {
    width: 1px;
    height: 16px;
    background-color: #e0e0e0;
}

.note-editor {
    flex: 1;
    padding: 20px;
}

.note-input {
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 15px;
    line-height: 1.6;
}

.note-input:empty:before {
    content: attr(placeholder);
    color: #999;
}

.note-close-btn {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    font-weight: bold;
}

.note-close-btn:hover {
    background-color: transparent;
    color: #333;
}

.note-menu-btn {
    position: relative;
}

.note-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 5px 0;
    min-width: 150px;
    z-index: 1001;
    display: none;
    margin-top: 5px;
}

.note-dropdown-menu.show {
    display: block;
}

.note-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-menu-item:hover {
    background-color: #f5f5f5;
}

.session-items {
    flex: 1;
    overflow-y: auto;
}

/* 设置菜单样式 */
.settings-menu {
    position: fixed;
    left: 60px;
    bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 5px 0;
    min-width: 140px;
    z-index: 1000;
    display: none;
}

.settings-menu.show {
    display: block;
}

.settings-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.settings-menu-item:hover {
    background-color: #f5f5f5;
}

/* 个人资料模态框样式 */
.profile-modal-content {
    width: 400px;
}

.profile-section {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="60">👤</text></svg>');
    background-size: cover;
    background-position: center;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #07c160;
    color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}

.profile-avatar-upload-btn:hover {
    background-color: #06ad56;
}

.profile-item {
    margin-bottom: 15px;
}

.profile-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.profile-value {
    font-size: 14px;
    color: #333;
}

.profile-value-readonly {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    color: #666;
}

.profile-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.profile-input:focus {
    border-color: #07c160;
}

.profile-btn {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.profile-btn:hover {
    background-color: #e8e8e8;
}

.session-item {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #d6d6d6;
    transition: background-color 0.2s;
}

.session-item:hover,
.session-item.active {
    background-color: #c9c9c9;
}

.session-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.session-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.session-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

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

.session-last-msg {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #f55;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 好友项样式 */
.friend-item {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #d6d6d6;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background-color: #c9c9c9;
}

.friend-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

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

/* 群组项样式 */
.group-item {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #d6d6d6;
    transition: background-color 0.2s;
}

.group-item:hover {
    background-color: #c9c9c9;
}

.group-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-info {
    flex: 1;
}

.group-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

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

/* 好友请求项样式 */
.friend-request-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #d6d6d6;
    align-items: center;
}

.group-invite-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #d6d6d6;
    align-items: center;
}

.invite-avatar,
.request-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.invite-avatar img,
.request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invite-info,
.request-info {
    flex: 1;
}

.invite-name,
.request-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.invite-group,
.request-message {
    font-size: 12px;
    color: #999;
}

.request-btn,
.invite-btn {
    padding: 6px 14px;
    margin-left: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.request-btn.accept,
.invite-btn.accept {
    background-color: #07c160;
    color: white;
}

.request-btn.reject,
.invite-btn.reject {
    background-color: #f0f0f0;
    color: #666;
}

.panel-header {
    height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d6d6d6;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 500;
}
}

.friend-item:hover,
.group-item:hover {
    background-color: #d9d9d9;
}

.friend-avatar,
.group-avatar {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.friend-avatar img,
.group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.friend-name,
.group-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.friend-account,
.group-count {
    font-size: 12px;
    color: #999;
}

.search-bar {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #d6d6d6;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #d3d3d3;
    font-size: 14px;
}

.add-btn {
    width: 36px;
    height: 36px;
    margin-left: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #d3d3d3;
}

/* ============================================================
 * 聊天区域
 * ============================================================ */
.chat-area {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

.chat-header {
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

.chat-title {
    font-size: 16px;
    font-weight: 500;
}

.chat-tools {
    display: flex;
    gap: 15px;
}

.chat-tool-btn {
    font-size: 18px;
    cursor: pointer;
    color: #606266;
}

.chat-tool-btn:hover {
    color: #07c160;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ============================================================
 * 消息样式
 * ============================================================ */
.message-item {
    display: flex;
    margin-bottom: 15px;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #d3d3d3;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 60%;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
}

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

.message-text {
    padding: 10px 14px;
    border-radius: 4px;
    background-color: #fff;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.message-item.self .message-text {
    background-color: #95ec69;
}

.message-text::before {
    content: "";
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.message-item:not(.self) .message-text::before {
    left: -12px;
    border-right-color: #fff;
}

.message-item.self .message-text::before {
    right: -12px;
    border-left-color: #95ec69;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.message-date {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 15px 0;
}

/* ============================================================
 * 输入区域
 * ============================================================ */
.chat-input-area {
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

.chat-tools-bar {
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-btn {
    font-size: 22px;
    cursor: pointer;
    color: #606266;
}

.tool-btn:hover {
    color: #07c160;
}

.chat-input-box {
    padding: 0 15px 15px;
}

.chat-input-box textarea {
    width: 100%;
    height: 80px;
    border: none;
    resize: none;
    background: transparent;
    outline: none;
}

.chat-input-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 15px 15px;
}

.send-btn {
    padding: 6px 25px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.send-btn:hover {
    background-color: #06ad56;
}

.send-btn:active {
    background-color: #05984c;
}

/* ============================================================
 * 信息面板
 * ============================================================ */
.info-panel {
    width: 280px;
    height: 100%;
    background-color: #f7f7f7;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: none;
}

.info-panel.show {
    display: block;
    animation: slideInFromRight 0.3s ease forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.info-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.info-section-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.info-user {
    display: flex;
    align-items: center;
}

.info-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-color: #d3d3d3;
    margin-right: 15px;
    overflow: hidden;
    cursor: pointer;
}

.info-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-user-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-user-id {
    font-size: 13px;
    color: #999;
}

.info-item {
    margin-bottom: 15px;
}

.info-item-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.info-item-value {
    font-size: 14px;
    color: #333;
}

.info-item-value input,
.info-item-value textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.info-btn {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.info-btn:hover {
    background-color: #f0f0f0;
}

.info-btn.danger-btn {
    color: #f55;
    border-color: #f55;
}

.info-btn.danger-btn:hover {
    background-color: #fff0f0;
}

/* ============================================================
 * 表情面板
 * ============================================================ */
.emoji-panel {
    position: absolute;
    bottom: 160px;
    left: 15px;
    width: 400px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
}

.emoji-panel.show {
    display: block;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 10px;
}

.emoji-item {
    padding: 8px;
    text-align: center;
    font-size: 22px;
    cursor: pointer;
    border-radius: 4px;
}

.emoji-item:hover {
    background-color: #f0f0f0;
}

/* ============================================================
 * 群成员列表样式
 * ============================================================ */
.group-members-section {
    display: none;
}

.group-members-list {
    max-height: 300px;
    overflow-y: auto;
}

.group-member-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.group-member-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #d3d3d3;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

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

.member-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.member-role {
    font-size: 12px;
    color: #07c160;
}

.group-owner .member-role {
    color: #ff6b35;
}

.group-admin .member-role {
    color: #07c160;
}

/* 搜索结果样式 */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #d6d6d6;
    transition: background-color 0.2s;
    position: relative;
}

.search-result-item:hover {
    background-color: #c9c9c9;
}

.search-result-tag {
    position: absolute;
    right: 15px;
    font-size: 12px;
    color: #07c160;
    background-color: #e8f8f0;
    padding: 2px 8px;
    border-radius: 3px;
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1200px) {
    .info-panel {
        display: none !important;
    }
}
