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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f0f0;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 防止iOS橡皮筋效果 */
html {
    height: 100%;
    overflow: hidden;
}

/* 优化触摸体验 */
* {
    -webkit-tap-highlight-color: transparent;
}

button, .chat-item, .nav-tab, .toolbar-btn {
    -webkit-touch-callout: none;
}

/* ===== 界面切换 ===== */
.screen {
    display: none;
    height: 100vh;
}
.screen.active {
    display: flex;
}

/* ===== 登录界面 ===== */
#login-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #999;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #07C160;
    border-bottom-color: #07C160;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #07C160;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.auth-error {
    color: #f44336;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

.login-tips {
    margin-top: 20px;
    text-align: center;
}

.login-tips p {
    color: #999;
    font-size: 12px;
}

/* ===== 主界面 ===== */
#main-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 左侧边栏 ===== */
.sidebar {
    width: 60px;
    background: #2e2e2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #07C160;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.username {
    color: #ccc;
    font-size: 11px;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-tab {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 20px;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.2);
}

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

/* ===== 列表面板 ===== */
.list-panel {
    width: 280px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #e9e9e9;
}

.search-bar {
    padding: 20px 12px 12px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #d6d6d6;
    font-size: 13px;
    outline: none;
}

.search-bar input:focus {
    background: #fff;
}

.list-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.list-content.active {
    display: block;
}

.list-content::-webkit-scrollbar {
    width: 6px;
}

.list-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.list-toolbar {
    padding: 12px;
}

.toolbar-btn {
    width: 100%;
    padding: 8px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* ===== 聊天项 ===== */
.chat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.chat-item:hover {
    background: #d9d9d9;
}

.chat-item.active {
    background: #c9c9c9;
}

.chat-item .chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #07C160;
    border: 2px solid #e9e9e9;
}

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

.chat-item .chat-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item .chat-preview {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item .chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

.chat-item .chat-time {
    font-size: 11px;
    color: #999;
}

.unread-badge {
    background: #f44336;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}

/* ===== 空状态 ===== */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #999;
    font-size: 14px;
}

/* ===== 聊天面板 ===== */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 防止 flex 子元素溢出 */
}

.chat-header {
    padding: 16px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.chat-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

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

/* ===== 24小时提示条 ===== */
.chat-notice {
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    padding: 6px 16px;
    text-align: center;
    border-bottom: 1px solid #ffc107;
    flex-shrink: 0;
}

/* ===== 消息区域 ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    min-height: 0; /* 防止 flex 子元素溢出 */
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.message-row {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.message-row:not(.self) .message-avatar {
    margin-right: 10px;
}

.message-row.self .message-avatar {
    margin-left: 10px;
}

.message-content {
    max-width: 60%;
}

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

.message-row.self .message-sender {
    text-align: right;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-row:not(.self) .message-bubble {
    background: #fff;
    color: #333;
}

.message-row.self .message-bubble {
    background: #95EC69;
    color: #333;
}

.message-bubble.image-bubble {
    padding: 0;
    background: transparent;
}

.message-time-divider {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-bottom: 16px;
}

/* ===== 输入区域 ===== */
.chat-input-area {
    border-top: 1px solid #e0e0e0;
    background: #f5f5f5;
    padding: 8px 20px calc(16px + env(safe-area-inset-bottom));
    position: relative;
    overflow: visible;
}

.input-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
}

.tool-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.tool-btn:hover {
    background: #e0e0e0;
}

/* 表情选择器 */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 320px;
    max-height: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    overflow-y: auto;
    z-index: 10;
    margin-bottom: 4px;
}

.emoji-picker .emoji-item {
    font-size: 22px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    border: none;
    background: none;
}

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

#message-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    background: #fff;
}

#message-input:focus {
    border-color: #07C160;
}

.btn-send {
    float: right;
    margin-top: 8px;
    padding: 6px 20px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    font-size: 16px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

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

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

.btn-cancel {
    padding: 8px 20px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-confirm {
    padding: 8px 20px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

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

.member-select-list {
    max-height: 200px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.member-item:hover {
    background: #f0f0f0;
}

.member-item input[type="checkbox"] {
    margin-right: 12px;
}

.member-item .member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

.member-item .member-name {
    font-size: 14px;
    color: #333;
}

/* ===== 个人信息面板 ===== */
.profile-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-right: 16px;
}

.profile-details {
    flex: 1;
}

.profile-nickname {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.profile-username {
    font-size: 13px;
    color: #999;
}

.invite-code-section {
    padding: 16px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e3ff;
}

.invite-code-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.invite-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.invite-code-display span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.btn-small {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #fff;
    border-color: #07C160;
}

.btn-refresh {
    width: 100%;
    padding: 8px;
    background: #fff;
    color: #07C160;
    border: 1px solid #07C160;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #07C160;
    color: #fff;
}

.invite-code-tips {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    line-height: 1.5;
}

/* ===== 「我的」页面 ===== */
.profile-page {
    padding: 0;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    color: #fff;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
}

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

.profile-card-nickname {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-card-username {
    font-size: 13px;
    opacity: 0.8;
}

.profile-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 功能菜单 */
.profile-menu {
    background: #fff;
    margin-top: 1px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu-item:hover {
    background: #f9f9f9;
}

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

.menu-icon {
    font-size: 20px;
    margin-right: 14px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.menu-arrow {
    font-size: 20px;
    color: #ccc;
}

/* 头像选择器 */
.avatar-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover,
.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
}

.avatar-preview {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.preview-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* 邀请码大显示 */
.invite-code-display-large {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-copy-code {
    width: 100%;
    padding: 12px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.btn-copy-code:hover {
    background: #06ad56;
}

.btn-refresh-code {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh-code:hover {
    background: #f5f5f5;
    border-color: #999;
}

.invite-code-tips-large {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 16px;
    line-height: 1.8;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    #main-screen {
        padding: 0;
    }

    .main-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
        position: relative;
    }

    /* 侧边栏 - 改为底部导航 */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(56px + env(safe-area-inset-bottom));
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 0 env(safe-area-inset-bottom) 0;
        z-index: 100;
        border-top: 1px solid #444;
    }

    .user-info {
        display: none;
    }

    .nav-tabs {
        flex-direction: row;
        flex: 1;
        justify-content: space-around;
        gap: 0;
    }

    .nav-tab {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .sidebar-bottom {
        display: none;
    }

    /* 列表面板 - 全屏 */
    .list-panel {
        width: 100%;
        height: calc(100vh - 56px);
        margin-bottom: 56px;
    }

    /* 聊天面板 - 全屏覆盖 */
    .chat-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .chat-panel.active {
        transform: translateX(0);
    }

    /* 聊天头部 - 添加返回按钮 */
    .chat-header {
        position: relative;
        padding-left: 60px;
    }

    .chat-back-btn {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        color: #333;
        cursor: pointer;
        padding: 16px 12px;
        background: none;
        border: none;
        display: none;
        z-index: 10;
        line-height: 1;
        min-width: 48px;
        min-height: 48px;
    }

    .chat-back-btn:active {
        opacity: 0.6;
    }

    /* 移动端显示返回按钮 */
    @media (max-width: 768px) {
        .chat-back-btn {
            display: block;
        }
    }

    /* PWA 独立模式下始终显示返回按钮 */
    .pwa-standalone .chat-back-btn {
        display: block;
    }

    /* PWA 独立模式适配 iOS 安全区域 */
    .pwa-standalone .sidebar {
        padding-top: env(safe-area-inset-top);
    }

    .pwa-standalone .chat-header {
        padding-top: calc(16px + env(safe-area-inset-top));
    }

    .pwa-standalone .search-bar {
        padding-top: calc(20px + env(safe-area-inset-top));
    }

    /* 消息区域 */
    .chat-messages {
        padding: 12px;
    }

    .message-content {
        max-width: 75%;
    }

    /* 输入区域 */
    .chat-input-area {
        padding: 8px 12px 12px;
    }

    /* 表情选择器移动端适配 */
    .emoji-picker {
        width: 280px;
        max-height: 180px;
        grid-template-columns: repeat(7, 1fr);
    }

    #message-input {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    .btn-send {
        padding: 8px 16px;
    }

    /* 登录界面 */
    .login-container {
        width: 90%;
        max-width: 360px;
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    /* 模态框 */
    .modal-content {
        width: 90%;
        max-width: 360px;
    }

    /* 触摸优化 */
    .chat-item {
        padding: 14px 12px;
        min-height: 70px;
    }

    .toolbar-btn {
        padding: 12px;
        font-size: 14px;
    }

    .tool-btn {
        font-size: 24px;
        padding: 8px 12px;
    }
}

/* 超小屏幕（iPhone SE等） */
@media (max-width: 375px) {
    .nav-tab {
        font-size: 20px;
    }

    .chat-item .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .chat-item .chat-name {
        font-size: 13px;
    }

    .chat-item .chat-preview {
        font-size: 11px;
    }
}

/* 横屏模式 */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 48px;
    }

    .list-panel {
        height: calc(100vh - 48px);
        margin-bottom: 48px;
    }

    .nav-tab {
        height: 44px;
    }
}
