:root {
    /* ─── 核心背景色 (From Style Guide) ─── */
    --bg-base: #3a3a4a;
    /* 主背景：深灰紫 */
    --bg-overlay: #2e2e3e;
    --bg-card: rgba(80, 80, 100, 0.45);
    /* 卡片玻璃背景 */
    --bg-card-hover: rgba(90, 90, 115, 0.55);
    --bg-input: rgba(60, 60, 78, 0.6);

    /* ─── 环境渐变 ─── */
    --gradient-ambient: linear-gradient(145deg, #b8860b 0%, #c8a030 18%, #3a3a4a 40%, #3a3a4a 100%);

    /* ─── 强调色 ─── */
    --accent-yellow: #f0d45a;
    --accent-yellow-dim: #d4b84a;
    --accent-blue-light: #c8dff5;
    --accent-blue-mid: #7eb8e8;
    --accent-green: #5ecf8e;
    --accent-red: #ff6b6b;
    --accent-purple: #9b59b6;

    /* ─── 头像背景色 ─── */
    --avatar-bg-1: #f0d45a; /* 黄色 */
    --avatar-bg-2: #7eb8e8; /* 蓝色 */
    --avatar-bg-3: #5ecf8e; /* 绿色 */
    --avatar-bg-4: #ff6b6b; /* 红色 */
    --avatar-bg-5: #9b59b6; /* 紫色 */
    --avatar-bg-6: #ff9f43; /* 橙色 */
    --avatar-bg-7: #26d0ce; /* 青色 */
    --avatar-bg-8: #fd79a8; /* 粉色 */
    --avatar-bg-9: #6c5ce7; /* 靛色 */
    --avatar-bg-10: #a29bfe; /* 淡紫色 */
    --avatar-bg-11: #ffeaa7; /* 淡黄色 */
    --avatar-bg-12: #55a3ff; /* 天蓝色 */

    /* ─── 文字色 ─── */
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-muted: #9e9eb0;
    --text-on-yellow: #2a2a1a;
    --text-on-blue: #1a2a3a;

    /* ─── 边界 & 阴影 ─── */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-strong: rgba(255, 255, 255, 0.14);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.35);

    /* ─── 圆角 & 间距 ─── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    /* Pill shape for inputs/buttons */

    --blur-glass: blur(16px);
    /* Adjusted to match style guide */

    /* ─── 光标颜色 ─── */
    --cursor-color: #f0d45a;
    /* Yellow to match accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* 隐藏默认光标 (仅在支持自定义的设备上) */
    cursor: none;
}

body {
    background: var(--bg-base);
    background-image: var(--gradient-ambient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
    /* 确保 body 也隐藏 */
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding: 24px;
    /* --space-lg */
    gap: 24px;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-elevated);
}

/* Sidebar */
.sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    /* Slightly rounded for icon */
    margin-bottom: 40px;
    object-fit: contain;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* --space-md */
    width: 100%;
    align-items: center;
}

.nav-item {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.2s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    /* Highlight style */
    color: var(--text-primary);
}

/* 导航栏角标 */
.nav-item .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.bottom-nav {
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    height: auto;
    min-height: 80px;
}

.greeting h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 15px;
    border-right: 1px solid var(--border-glass);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    /* Pill shape */
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: var(--blur-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.25s;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* 静音按钮样式 */
.sound-toggle {
    font-size: 18px;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    transform: scale(1.1);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.profile-pic {
    width: 36px;
    height: 36px;
    background: var(--accent-yellow-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-on-yellow);
    border: 2px solid var(--bg-base);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    flex: 1;
}

.widget {
    padding: 32px;
    /* --space-xl */
    display: flex;
    flex-direction: column;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.widget-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-widget h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Form Styles */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Pill Shaped Inputs */
input,
select {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    /* Pill! */
    padding: 10px 24px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.25s;
    width: 100%;
    cursor: none;
    /* 输入框也隐藏默认光标，使用自定义光标hover效果 */
}

textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    /* Text area not pill */
    padding: 16px 24px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.25s;
    width: 100%;
    resize: vertical;
    cursor: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-blue-mid);
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b8c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.form-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-upload-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-types-hint {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 8px;
}

/* Buttons */
.submit-btn {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    border: none;
    padding: 10px 32px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(240, 212, 90, 0.3);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--accent-yellow-dim);
    transform: translateY(-1px);
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--border-glass-strong);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
    text-decoration: none;
}

.ghost-btn:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

/* Activity List */
.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bg-yellow {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
}

.bg-purple {
    background: var(--accent-blue-mid);
    color: var(--text-on-blue);
}

.activity-text {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-secondary);
}

.activity-text strong {
    color: var(--text-primary);
}

.time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(94, 207, 142, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
    font-size: 13px;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px;
        justify-content: space-between;
    }

    .sidebar .logo-icon,
    .sidebar .bottom-nav {
        margin: 0;
    }

    .side-nav {
        flex-direction: row;
        width: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* 移动端恢复默认光标，因为没有hover */
    * {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none;
    }

    /* 移动端附件优化 */
    .message-input-container {
        flex-direction: column;
        gap: 8px;
    }

    .input-actions {
        justify-content: flex-end;
    }

    .attachment-preview {
        margin-top: 4px;
    }

    .preview-item {
        padding: 6px;
    }

    .image-attachment {
        max-width: 150px;
        max-height: 150px;
    }

    .attachment-item {
        padding: 6px;
    }
}

/* ──── Custom Cursor Styles ──── */
.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translate3d(0, 0, 0);
    z-index: 2147483647;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s;
}

.custom-cursor.outer {
    transition: transform 0.15s ease-out, opacity 0.25s;
    /* 慢一点的跟随 */
}

/* Outer Ring */
.custom-cursor.outer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-color);
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 0 10px rgba(240, 212, 90, 0.2);
}

/* Inner Dot */
.custom-cursor.inner {
    transition: transform 0s;
    /* 实时跟随 */
}

.custom-cursor.inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--cursor-color);
    border-radius: 50%;
    transition: 0.25s;
}

.custom-cursor.visible {
    visibility: visible;
    opacity: 1;
}

/* Hover States */
.custom-cursor.outer.hovered::before {
    opacity: 0;
    /* 外圈消失 */
}

.custom-cursor.inner.hovered::before {
    transform: translate(-50%, -50%) scale(8);
    /* 内圆放大 */
    opacity: 0.3;
    background: var(--cursor-color);
}

/* ========== 认证页面 ========== */
.auth-page {
    justify-content: center;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.link {
    color: var(--accent-yellow);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

.form-error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6b6b;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.form-options {
    display: flex;
    justify-content: flex-end;
}

/* 验证码 */
.captcha-group .captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-img {
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* 弹窗 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 480px;
    padding: 32px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* 管理员聊天中的结束按钮应该使用ghost-btn样式 */
.chat-actions .close-btn {
    width: auto;
    height: auto;
    padding: 10px 24px;
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* ========== 用户资料页面 ========== */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.my-feedbacks-section {
    grid-column: 1 / -1;
    padding: 32px;
}

.feedback-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.approved {
    color: var(--accent-green);
}

.stat-value.pending {
    color: var(--accent-yellow);
}

.stat-value.rejected {
    color: var(--accent-red);
}

.my-feedbacks-list {
    margin-top: 20px;
}

.feedback-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.feedback-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-yellow);
}

.feedback-main-info {
    flex: 1;
    min-width: 0;
}

.feedback-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.feedback-reply {
    margin-top: 12px;
    padding: 12px;
    background: rgba(126, 184, 232, 0.1);
    border: 1px solid rgba(126, 184, 232, 0.2);
    border-radius: var(--radius-sm);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}

.reply-label {
    color: var(--accent-blue-mid);
    font-weight: 600;
}

.reply-author {
    color: var(--text-secondary);
}

.reply-time {
    color: var(--text-muted);
    margin-left: auto;
}

.reply-content {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

/* 新的回复历史样式 */
.feedback-replies {
    margin-top: 15px;
    border-top: 1px solid rgba(126, 184, 232, 0.2);
    padding-top: 15px;
}

.replies-header {
    margin-bottom: 10px;
}

.replies-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    background: rgba(126, 184, 232, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    border-left: 3px solid var(--accent-blue-mid);
}

.reply-item .reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reply-admin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue-mid);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.admin-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.reply-item .reply-time {
    font-size: 12px;
    color: var(--text-muted);
}

.reply-subject {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-style: italic;
}

.reply-item .reply-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.feedback-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-input);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: 0.2s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    border-color: var(--accent-yellow);
}

.avatar-card {
    text-align: center;
    padding: 32px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.avatar-card .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.profile-card,
.password-card {
    padding: 32px;
}

.profile-card h3,
.password-card h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

.disabled-input {
    opacity: 0.6;
    cursor: not-allowed;
}

.code-send-row {
    display: flex;
    gap: 12px;
}

.code-send-row input {
    flex: 1;
}

/* 增加表单元素间距 */
.profile-card .input-group,
.password-card .input-group {
    margin-bottom: 20px;
}

.profile-card .submit-btn,
.password-card .submit-btn {
    margin-top: 8px;
}

/* ========== 聊天页面 ========== */
.chat-page .main-content {
    overflow: hidden;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.chat-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chat-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.chat-empty h3 {
    margin-bottom: 8px;
}

.chat-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.guest-name-input {
    margin-bottom: 16px;
}

.guest-name-input input {
    width: 240px;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 70%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.other {
    align-self: flex-start;
}

.message.system {
    align-self: center;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    max-width: none;
}

.message.system.restart-message {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    font-size: 14px;
}

.restart-btn {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restart-btn:hover {
    background: var(--accent-yellow-dim);
    transform: translateY(-1px);
}

.message-avatar-container {
    flex-shrink: 0;
    margin-top: 4px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass);
}

.message-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border-glass);
}

.message-content {
    background: var(--bg-input);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    min-width: 0;
    flex: 1;
}

.message.own .message-content {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue-mid);
    margin-bottom: 4px;
}

.message.own .message-sender {
    color: rgba(42, 42, 26, 0.8);
}

.message-text {
    display: block;
    word-break: break-word;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.chat-status {
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
}

.status-badge.waiting {
    background: rgba(126, 184, 232, 0.2);
    color: var(--accent-blue-mid);
}

.status-badge.active {
    background: rgba(94, 207, 142, 0.2);
    color: var(--accent-green);
}

.status-badge.closed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.message-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.message-input-container input {
    flex: 1;
}

.input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.attachment-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.attachment-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.attachment-preview {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 8px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.clear-attachments {
    background: none;
    border: none;
    color: var(--accent-yellow);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.clear-attachments:hover {
    color: var(--accent-yellow-dim);
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.preview-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.preview-item-info {
    flex: 1;
    min-width: 0;
}

.preview-item-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-item-size {
    font-size: 11px;
    color: var(--text-muted);
}

.preview-item-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item-remove:hover {
    background: rgba(255, 100, 100, 0.3);
}

/* 消息中的附件显示 */
.message-attachments {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.attachment-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.attachment-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 10px;
    opacity: 0.7;
}

/* 图片预览 */
.image-attachment {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
}

.image-attachment:hover {
    transform: scale(1.02);
}

.close-chat-btn {
    width: 100%;
    text-align: center;
    position: static;
    margin: 0;
}

/* ========== 管理后台 ========== */
.admin-page .main-content {
    overflow-y: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.stat-icon {
    font-size: 32px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.action-card {
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.action-card h3 {
    margin-bottom: 8px;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

.online-control {
    padding: 24px;
}

.online-control h3 {
    margin-bottom: 8px;
}

.online-control p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 开关样式 */
.switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked+.slider {
    background: var(--accent-green);
}

.switch input:checked+.slider::before {
    transform: translateX(24px);
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.filter-tab {
    padding: 8px 16px !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    color: var(--text-secondary);
    font-size: 13px !important;
    background: var(--bg-input) !important;
    border: 1px solid transparent !important;
    transition: 0.2s;
    white-space: nowrap !important;
    min-width: 60px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    /* 防止文字被截断 */
    overflow: visible !important;
    text-overflow: clip !important;
    /* 确保在所有浏览器中正确显示 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* 防止按钮变形 */
    flex-shrink: 0 !important;
    /* 确保文字居中 */
    line-height: 1 !important;
    vertical-align: middle !important;
    /* 确保宽度和高度不被覆盖 */
    width: auto !important;
    height: auto !important;
    /* 确保内容不被隐藏 */
    position: relative !important;
    z-index: 1 !important;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--text-primary) !important;
    border-color: var(--accent-yellow) !important;
    background: rgba(240, 212, 90, 0.1) !important;
}

.filter-tabs.small .filter-tab {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: 50px !important;
    min-height: 32px !important;
}

/* 反馈列表 */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-item {
    padding: 20px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-user .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.feedback-user .name {
    font-weight: 600;
}

.feedback-user .email {
    color: var(--text-muted);
    font-size: 12px;
}

.feedback-time {
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-body {
    margin-bottom: 16px;
}

.feedback-subject {
    font-size: 15px;
    margin-bottom: 8px;
}

.feedback-content {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.feedback-attachments {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 附件预览样式 ========== */
.file-upload-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
}

.file-upload-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-types-hint {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 4px;
}

.attachments-preview {
    margin-bottom: 16px;
    display: none;
}

.attachments-preview.has-files {
    display: block;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-yellow);
}

.attachment-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.attachment-icon.image {
    background: var(--accent-blue-mid);
}

.attachment-icon.document {
    background: var(--accent-red);
}

.attachment-icon.archive {
    background: var(--accent-purple);
}

.attachment-icon.other {
    background: var(--text-muted);
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    word-break: break-all;
}

.attachment-size {
    font-size: 11px;
    color: var(--text-muted);
}

.attachment-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attachment-remove:hover {
    background: var(--accent-red);
    color: #fff;
}

.attachment-image-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.file-count {
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.feedback-actions .delete-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.feedback-actions .reply-btn:hover {
    background: rgba(126, 184, 232, 0.1);
    color: var(--accent-blue-mid);
    border-color: var(--accent-blue-mid);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.status-badge.approved {
    background: rgba(94, 207, 142, 0.2);
    color: var(--accent-green);
}

.status-badge.rejected {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}

.status-badge.pending {
    background: rgba(240, 212, 90, 0.2);
    color: var(--accent-yellow);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
    padding: 0 8px;
}

.page-btn:hover:not(.disabled) {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    border-color: var(--accent-yellow);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--accent-yellow);
    color: var(--text-on-yellow);
    border-color: var(--accent-yellow);
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    font-size: 18px;
    font-weight: 600;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 13px;
}

/* 管理员聊天 */
.admin-chat-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.session-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.session-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.session-list-header h3 {
    margin-bottom: 12px;
}

.sessions {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-glass);
    transition: 0.2s;
    position: relative;
}

.session-item:hover,
.session-item.selected {
    background: rgba(255, 255, 255, 0.05);
}

/* 未读消息标记 */
.session-item .unread-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* 有未读消息的会话高亮 */
.session-item.has-unread {
    background: rgba(240, 212, 90, 0.05);
    border-left: 3px solid var(--accent-yellow);
}

.session-item.has-unread:hover {
    background: rgba(240, 212, 90, 0.1);
}

/* 新消息闪烁动画 */
.session-item.new-message-flash {
    animation: messageFlash 2s ease-in-out;
}

@keyframes messageFlash {
    0%, 100% {
        background: rgba(255, 255, 255, 0.05);
    }
    25%, 75% {
        background: rgba(240, 212, 90, 0.2);
    }
    50% {
        background: rgba(240, 212, 90, 0.3);
    }
}

.session-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* 移除固定背景色，使用多彩背景色类 */
    /* background: var(--accent-yellow); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-on-yellow);
    overflow: hidden;
}

/* 为没有背景色类的头像提供默认背景色 */
.session-avatar:not([class*="avatar-bg-"]) {
    background: var(--accent-yellow);
}

.session-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.session-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.session-status.waiting {
    background: rgba(240, 212, 90, 0.2);
    color: var(--accent-yellow);
}

.session-status.active {
    background: rgba(94, 207, 142, 0.2);
    color: var(--accent-green);
}

.session-status.closed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.admin-chat-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.chat-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.chat-user-name {
    font-weight: 600;
}

.chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: static;
}

.chat-actions .ghost-btn {
    position: static;
    margin: 0;
    white-space: nowrap;
}

#adminChatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#adminChatForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
}

#adminChatForm .message-input-container input {
    flex: 1;
}

/* 详情弹窗 */
.detail-section {
    margin-bottom: 20px;
}

.detail-section label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-content {
    background: var(--bg-input);
    padding: 16px;
    border-radius: var(--radius-md);
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-link {
    color: var(--accent-blue-mid);
    text-decoration: none;
}

.attachment-link:hover {
    text-decoration: underline;
}

/* 空状态 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state .empty-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state .empty-hint {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* 管理员在线状态点 */
.admin-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.admin-status .dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.admin-status .dot.offline {
    background: var(--text-muted);
}

/* 404 页面 */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    background-image: var(--gradient-ambient);
}

.error-content {
    text-align: center;
    padding: 60px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
}

.error-message {
    color: var(--text-secondary);
    margin: 20px 0 30px;
}

/* 文件上传按钮 */
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 12px;
}

/* Profile 头像容器 */
.profile-pic {
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Toast 样式增强 */
.toast.error {
    background: rgba(255, 100, 100, 0.2);
    border-color: #ff6b6b;
}

.toast.success {
    background: rgba(94, 207, 142, 0.2);
    border-color: var(--accent-green);
}

.toast.info {
    background: rgba(126, 184, 232, 0.2);
    border-color: var(--accent-blue-mid);
}

.toast-icon {
    font-size: 16px;
}

/* 响应式 - 管理后台 */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-chat-container {
        grid-template-columns: 1fr;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    /* 移动端筛选按钮优化 */
    .filter-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-tab {
        font-size: 12px !important;
        padding: 6px 12px !important;
        min-width: 45px !important;
        min-height: 30px !important;
    }

    .filter-tabs.small .filter-tab {
        font-size: 11px !important;
        padding: 5px 10px !important;
        min-width: 40px !important;
        min-height: 28px !important;
    }
}

/* 管理后台回复历史样式 */
.replies-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.reply-history-item {
    background: rgba(126, 184, 232, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    border-left: 3px solid var(--accent-blue-mid);
}

.reply-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reply-admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-avatar-placeholder-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue-mid);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.admin-name-small {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.reply-history-time {
    font-size: 11px;
    color: var(--text-muted);
}

.reply-history-subject {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-style: italic;
}

.reply-history-content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
}
/* 头像背景色类 */
.avatar-bg-1 { background: var(--avatar-bg-1) !important; color: var(--text-on-yellow); }
.avatar-bg-2 { background: var(--avatar-bg-2) !important; color: var(--text-on-blue); }
.avatar-bg-3 { background: var(--avatar-bg-3) !important; color: white; }
.avatar-bg-4 { background: var(--avatar-bg-4) !important; color: white; }
.avatar-bg-5 { background: var(--avatar-bg-5) !important; color: white; }
.avatar-bg-6 { background: var(--avatar-bg-6) !important; color: white; }
.avatar-bg-7 { background: var(--avatar-bg-7) !important; color: white; }
.avatar-bg-8 { background: var(--avatar-bg-8) !important; color: white; }
.avatar-bg-9 { background: var(--avatar-bg-9) !important; color: white; }
.avatar-bg-10 { background: var(--avatar-bg-10) !important; color: white; }
.avatar-bg-11 { background: var(--avatar-bg-11) !important; color: var(--text-on-yellow); }
.avatar-bg-12 { background: var(--avatar-bg-12) !important; color: white; }

/* ========== 用户列表页面 ========== */
.users-list-container {
    padding: 32px;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    border-bottom: 2px solid var(--border-glass);
}

.users-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tbody tr {
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.users-table td {
    padding: 16px;
    font-size: 13px;
    color: var(--text-primary);
}

/* 用户单元格 */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar span {
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-id {
    font-size: 11px;
    color: var(--text-muted);
}

/* 角色徽章 */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.role-badge.admin {
    background: rgba(240, 212, 90, 0.2);
    color: var(--accent-yellow);
}

.role-badge.user {
    background: rgba(126, 184, 232, 0.2);
    color: var(--accent-blue-mid);
}

/* 时间单元格 */
.time-cell {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 数量单元格 */
.count-cell {
    text-align: center;
    font-weight: 600;
    color: var(--accent-yellow);
}

/* 响应式 - 用户列表 */
@media (max-width: 900px) {
    .users-table {
        overflow-x: scroll;
    }
    
    .users-table table {
        min-width: 800px;
    }
}