/* ───────────────────────────────────────────────
   POLARIS Office — 深色科技风主题
   配色: #0a1628 深蓝背景, #2563eb→#7c3aed 渐变强调
   ─────────────────────────────────────────────── */

/* ═══ CSS 变量 ═══ */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3a;
    --bg-card: rgba(15, 31, 58, 0.7);
    --bg-card-hover: rgba(20, 40, 70, 0.85);
    --bg-input: rgba(10, 22, 40, 0.6);
    --bg-sidebar: #080f1c;
    --bg-topbar: rgba(10, 22, 40, 0.85);

    --border-color: rgba(51, 65, 85, 0.5);
    --border-light: rgba(71, 85, 105, 0.3);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --accent-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);

    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --topbar-height: 56px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ 基础重置 ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
}

a {
    color: var(--info);
    text-decoration: none;
}

/* ═══ 滚动条 ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ════════════════════════════════════════════
   APP LAYOUT - 侧边栏 + 顶部栏 + 内容
   ════════════════════════════════════════════ */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── 侧边栏 ─── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 100;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.logo-icon {
    font-size: 28px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .user-detail,
.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar.collapsed .sidebar-header { justify-content: center; padding: 12px; }
.sidebar.collapsed .logo-icon { font-size: 24px; }

/* ─── 导航菜单 ─── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.15));
    color: var(--text-primary);
    box-shadow: inset 3px 0 0 var(--accent-blue);
}

.nav-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* ─── 导航分组 ─── */
.nav-group {
    margin-bottom: 8px;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #64748b);
    padding: 8px 12px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.nav-group-icon {
    margin-right: 4px;
}

.sidebar.collapsed .nav-group-title {
    padding: 10px 0 2px;
    text-align: center;
}
.sidebar.collapsed .nav-group-icon {
    font-size: 16px;
}
.sidebar.collapsed .nav-group-label {
    display: none;
}

.sidebar.collapsed .nav-group {
    margin-bottom: 2px;
}

/* ─── 侧边栏底部 ─── */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}

.user-info:hover { opacity: 0.85; }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user-detail {
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── 主区域 ─── */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ═══ 顶部栏 ═══ */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item { color: var(--text-primary); font-weight: 500; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-search .search-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    width: 200px;
    outline: none;
    transition: all var(--transition);
}

.topbar-search .search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--accent-glow);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: color var(--transition);
}

.icon-btn:hover { color: var(--text-primary); }

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ─── 搜索下拉 ─── */
.topbar-search {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 8px;
}

.search-group {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
    font-weight: 600;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition);
}

.search-item:hover {
    background: var(--bg-card-hover);
}

.search-item-icon { font-size: 18px; }

.search-item-body { flex: 1; min-width: 0; }

.search-item-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── 通知面板 ─── */
.notif-wrap {
    position: relative;
}

.notif-panel {
    position: absolute;
    top: 42px;
    right: 0;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.notif-list {
    padding: 4px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition);
}

.notif-item:hover {
    background: var(--bg-card-hover);
}

.notif-item.unread {
    background: rgba(37, 99, 235, 0.08);
}

.notif-item.unread::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}

.notif-icon { font-size: 18px; flex-shrink: 0; }

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

.notif-title {
    font-size: 13px;
    font-weight: 500;
}

.notif-content {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══ 内容区 ═══ */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* ════════════════════════════════════════════
   通用组件
   ════════════════════════════════════════════ */

/* ─── 卡片 ─── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 16px 20px;
}

/* ─── 按钮 ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 8px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.btn-danger {
    padding: 8px 16px;
    background: rgba(239,68,68,0.15);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }

/* ─── 表单 ─── */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input, .filter-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}

.form-input:focus, .filter-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

select.form-input, select.filter-select {
    cursor: pointer;
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.required { color: var(--danger); }

/* ─── 标签/徽章 ─── */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-high { background: rgba(239,68,68,0.15); color: #ef4444; }
.tag-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.tag-low { background: rgba(59,130,246,0.15); color: #3b82f6; }

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending { color: #f59e0b; background: rgba(245,158,11,0.1); }
.status-in_progress { color: #3b82f6; background: rgba(59,130,246,0.1); }
.status-completed { color: #10b981; background: rgba(16,185,129,0.1); }
.status-cancelled { color: #94a3b8; background: rgba(148,163,184,0.1); }

/* ─── 空状态 ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── 文字链接 ─── */
.text-link {
    font-size: 13px;
    color: var(--accent-blue);
}

.text-link:hover { text-decoration: underline; }

.text-muted { color: var(--text-muted); font-size: 13px; }

/* ═══ 弹窗 ═══ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ════════════════════════════════════════════
   登录页
   ════════════════════════════════════════════ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

.login-container {
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 400px;
    box-shadow: var(--shadow-lg);
}

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

.login-logo {
    font-size: 48px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-form .form-group label {
    font-size: 13px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    min-height: 20px;
    text-align: center;
    margin: 8px 0;
}

.login-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.demo-accounts {
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: 8px;
}

.demo-accounts-title {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.demo-account {
    margin-top: 4px;
    font-size: 12px;
}

.demo-account code {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ════════════════════════════════════════════
   仪表盘
   ════════════════════════════════════════════ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-title {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-card-trend {
    font-size: 12px;
    margin-top: 4px;
}

.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

.skeleton .stat-card-icon {
    background: rgba(255,255,255,0.05) !important;
}

/* 紧凑统计卡片（页面内嵌） */
.stat-cards-sm .stat-card {
    padding: 14px 16px;
    gap: 12px;
}

.stat-cards-sm .stat-card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.stat-cards-sm .stat-card-value {
    font-size: 22px;
}

.stat-cards-sm {
    margin-bottom: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
}

/* ─── 活动列表 ─── */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.done { background: var(--success); }
.activity-dot.progress { background: var(--info); }

.activity-avatar {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-content { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; }
.activity-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.activity-status { font-size: 12px; flex-shrink: 0; }

/* ─── 快捷入口 ─── */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 22px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.quick-action-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-action-item span {
    font-size: 12px;
}

/* ─── Agent 迷你列表 ─── */
.agent-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.agent-mini-item:last-child { border-bottom: none; }

.agent-mini-icon { font-size: 18px; }
.agent-mini-name { flex: 1; }
.agent-mini-status { font-size: 11px; }

.agent-mini-status.active { color: var(--success); }
.agent-mini-status.inactive { color: var(--text-muted); }

/* ════════════════════════════════════════════
   任务中心
   ════════════════════════════════════════════ */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    width: auto;
    min-width: 120px;
    padding: 7px 12px;
}

.toolbar-search .search-input-sm {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    width: 180px;
    outline: none;
    transition: all var(--transition);
}

.toolbar-search .search-input-sm:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.tasks-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 16px;
    height: calc(100vh - 160px);
}

.tasks-list {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ─── 分页控件 ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.page-info {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.task-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
}

.task-item:hover { background: var(--bg-card-hover); }
.task-item.selected { background: rgba(37,99,235,0.1); border-left: 3px solid var(--accent-blue); }
.task-item:last-child { border-bottom: none; }

.task-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.task-item-title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tasks-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow-y: auto;
    padding: 20px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-actions select {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-field {
    font-size: 13px;
}

.detail-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.detail-desc {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
}

.detail-desc h4 {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.detail-comments h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.comments-list {
    margin-bottom: 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-author {
    font-weight: 500;
    margin-bottom: 4px;
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 8px;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form textarea { flex: 1; }

/* ════════════════════════════════════════════
   AI 助手
   ════════════════════════════════════════════ */
.ai-page {
    height: calc(100vh - 100px);
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    font-size: 32px;
}

.ai-chat-title h3 {
    font-size: 16px;
    font-weight: 600;
}

.ai-status {
    font-size: 12px;
    color: var(--success);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.chat-welcome h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.chat-welcome p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggestion-chip {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.suggestion-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.chat-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-assistant {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-user .message-content {
    background: var(--accent-gradient);
    color: white;
}

.chat-assistant .message-content {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.ai-chat-input {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 120px;
    transition: all var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.chat-input-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ════════════════════════════════════════════
   Agent 中心
   ════════════════════════════════════════════ */
.filter-chip {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover { border-color: var(--accent-blue); color: var(--text-primary); }
.filter-chip.active { background: var(--accent-gradient); border-color: transparent; color: white; }

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.agent-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.agent-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.agent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.agent-card-icon {
    font-size: 36px;
}

.agent-card-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.agent-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.agent-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.agent-status-badge {
    font-size: 12px;
}

.agent-status-badge.active { color: var(--success); }
.agent-status-badge.inactive { color: var(--text-muted); }

.agent-version {
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── 开关按钮 ─── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-gradient);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ─── 数据表格 ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
}

.data-table td {
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ════════════════════════════════════════════
   骨架页
   ════════════════════════════════════════════ */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.placeholder-page h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.placeholder-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.placeholder-progress {
    width: 200px;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ════════════════════════════════════════════
   骨架页
   ════════════════════════════════════════════ */

/* ─── 管理待办（老板视角）─── */
.manager-card {
    border-color: rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.05)), var(--bg-card);
}

.manager-todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.manager-todo-item:last-child {
    border-bottom: none;
}

.manager-todo-item:hover {
    background: var(--bg-card-hover);
}

.manager-todo-item.urgent .mt-text {
    color: var(--warning);
    font-weight: 500;
}

.mt-icon { font-size: 16px; flex-shrink: 0; }
.mt-text { flex: 1; min-width: 0; }
.mt-arrow { color: var(--text-muted); font-size: 12px; }

/* ─── 今日打卡提醒（仪表盘）─── */
.att-remind {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.att-remind.urgent {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.att-remind.ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.att-remind-icon { font-size: 22px; flex-shrink: 0; }
.att-remind-text { line-height: 1.4; }
.att-remind-sub { font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* ════════════════════════════════════════════
   考勤打卡
   ════════════════════════════════════════════ */
.attendance-card {
    border-color: rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.04)), var(--bg-card);
}

.attendance-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 12px;
}

.attendance-time {
    font-size: 48px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.attendance-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.attendance-status.ok {
    color: var(--success);
}

.attendance-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-lg {
    padding: 10px 24px;
    font-size: 15px;
}

.attendance-tip {
    font-size: 12px;
    margin-top: 4px;
}

/* ════════════════════════════════════════════
   团队动态墙
   ════════════════════════════════════════════ */
.team-page {
    max-width: 760px;
    margin: 0 auto;
}

.post-composer .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.composer-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.post-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    padding: 10px 14px;
    resize: vertical;
    outline: none;
    min-height: 60px;
    transition: border var(--transition);
}

.post-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 52px;
}

.post-card {
    padding: 16px 20px;
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.post-name {
    font-size: 14px;
    font-weight: 600;
}

.post-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.post-content {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
}

.post-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.post-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.post-action.liked {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(37,99,235,0.1);
}

.post-comments {
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
    padding-top: 10px;
}

.comments-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.comment-row {
    font-size: 13px;
    line-height: 1.5;
}

.comment-row strong {
    margin-right: 6px;
    color: var(--text-secondary);
}

.comment-input-row {
    display: flex;
    gap: 8px;
}

.comment-input-row .form-input {
    flex: 1;
    padding: 6px 12px;
}

/* ════════════════════════════════════════════
   个人中心
   ════════════════════════════════════════════ */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.profile-avatar {
    margin-bottom: 16px;
}

.profile-avatar-img {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: var(--accent-glow);
}

.profile-avatar h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-avatar .tag {
    margin-right: 4px;
}

.profile-avatar .text-muted {
    display: block;
    margin-top: 4px;
}

.profile-info {
    text-align: left;
    padding: 16px 0 0;
    border-top: 1px solid var(--border-light);
    display: grid;
    gap: 12px;
}

.profile-forms {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .profile-layout { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   错误页
   ════════════════════════════════════════════ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.error-container {
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}

.error-container h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ════════════════════════════════════════════
   响应式
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .tasks-layout { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .agent-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

    .sidebar:not(.collapsed) {
        transform: translateX(0);
        width: var(--sidebar-width);
    }

    .menu-btn { display: block; }
    .stat-cards { grid-template-columns: 1fr; }
    .topbar-search { display: none; }
    .login-card { width: 90vw; padding: 24px; }
}

/* ════════════════════════════════════════════
   状态徽章（表格内联使用）
   ════════════════════════════════════════════ */
.badge.badge-success,
.badge.badge-warning,
.badge.badge-info,
.badge.badge-muted {
    position: static;
    display: inline-block;
    min-width: 0;
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.badge.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge.badge-info    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge.badge-muted   { background: rgba(148,163,184,0.12); color: var(--text-muted); }

/* ════════════════════════════════════════════
   员工关怀（生日 / 入职周年）
   ════════════════════════════════════════════ */
.care-list {
    margin-top: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
}

.care-list-title {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0 4px;
    font-weight: 600;
}

.care-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-top: 1px solid var(--border-light);
}

.care-row:first-of-type { border-top: none; }
.care-days { color: var(--warning); font-size: 12px; flex-shrink: 0; margin-left: 12px; }

.care-today-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(236,72,153,0.1));
    border: 1px solid rgba(245,158,11,0.25);
    font-size: 14px;
    color: var(--text-primary);
}

.care-today-icon {
    font-size: 36px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
   建议箱
   ════════════════════════════════════════════ */
.suggestion-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.suggestion-card:hover { border-color: var(--border-color); }

.suggestion-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.suggestion-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.suggestion-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.suggestion-reply {
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--accent-blue);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.suggestion-reply-head {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.suggestion-reply-body {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════
   个人待办清单
   ════════════════════════════════════════════ */
.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.todo-item:hover { background: var(--bg-card-hover); }
.todo-item:last-child { border-bottom: none; }

.todo-check {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; color: var(--text-primary); word-break: break-all; }
.todo-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.todo-due { font-size: 12px; color: var(--text-muted); }
.todo-due-overdue { color: var(--danger); font-weight: 500; }
.todo-done .todo-title { text-decoration: line-through; color: var(--text-muted); }
.todo-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ════════════════════════════════════════════
   会议室预定
   ════════════════════════════════════════════ */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.room-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--bg-card);
    transition: border-color var(--transition), transform var(--transition);
}

.room-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
.room-card.room-maintenance { opacity: 0.6; }

.room-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-card-head strong { font-size: 15px; }
.room-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.room-card-meta strong { color: var(--warning); }

/* ════════════════════════════════════════════
   通讯录
   ════════════════════════════════════════════ */
.dir-groups { display: flex; flex-direction: column; gap: 14px; }
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.dir-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.dir-card:hover { border-color: var(--accent-blue); }

.dir-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dir-info { min-width: 0; }
.dir-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.dir-pos { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.dir-contact { font-size: 12px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════════════════
   移动端适配增强
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .topbar { padding: 0 12px; }
    .main-area { padding: 12px; }
    .page-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-group { flex-wrap: wrap; }
    .card-body { padding: 14px; }
    .data-table-wrap { overflow-x: auto; }

    /* 表格横向滚动容器 */
    .card-body[style*="padding:0"] { overflow-x: auto; }
    .data-table { min-width: 640px; }
    .data-table th, .data-table td { white-space: nowrap; }

    .dashboard-grid { grid-template-columns: 1fr; }
    .room-grid, .dir-grid { grid-template-columns: 1fr 1fr; }
    .attendance-time { font-size: 36px; }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .topbar-actions .icon-btn, .topbar-user .icon-btn { font-size: 15px; }
}

@media (max-width: 480px) {
    .room-grid, .dir-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .breadcrumb { font-size: 13px; }
    .attendance-actions { flex-direction: column; }
    .btn-lg { width: 100%; }
}

/* ════════════════════════════════════════════
   OKR 绩效
   ════════════════════════════════════════════ */
.okr-card { margin-bottom: 14px; }
.okr-title-wrap { display: flex; align-items: center; gap: 10px; }
.okr-title-wrap h3 { font-size: 15px; }
.okr-head-actions { display: flex; align-items: center; gap: 8px; }
.okr-progress { font-size: 12px; color: var(--accent-blue); font-weight: 600; }

.kr-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--bg-card);
}

.kr-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

.kr-value { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

.kr-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.kr-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ─── 项目协作 ─── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.project-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.project-title-wrap {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-owner {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.proj-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    white-space: nowrap;
}

.proj-badge.owner-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.project-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.project-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.proj-meta-item {
    font-size: 12px;
    color: var(--text-muted);
}

.project-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.proj-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--card-bg);
    margin-left: -6px;
    flex-shrink: 0;
}

.proj-avatar:first-child { margin-left: 0; }

.proj-avatar-more {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid var(--card-bg);
}

.proj-last {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-input);
    border-radius: 8px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-last.muted { color: var(--text-muted); }

/* ─── 项目详情 ─── */
.project-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
}

.project-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.project-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.project-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-detail-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.detail-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}

.detail-tab:hover { color: var(--text-primary); }

.detail-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.detail-panel { margin-top: 12px; }

.detail-panel-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.proj-member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.proj-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
}

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

.proj-member-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.proj-member-dept {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.proj-file-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.proj-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.proj-file-item:last-child { border-bottom: none; }

.proj-file-icon {
    font-size: 22px;
    flex-shrink: 0;
}

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

.proj-file-name {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
}

.proj-file-name:hover { text-decoration: underline; }

.proj-file-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.proj-dyn-list { display: flex; flex-direction: column; gap: 12px; }

.proj-dyn-item {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.proj-dyn-body { flex: 1; min-width: 0; }

.proj-dyn-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.proj-dyn-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.proj-dyn-time {
    font-size: 12px;
    color: var(--text-muted);
}

.proj-dyn-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.dyn-send-box {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.dyn-send-box .form-input { flex: 1; }

.member-picker {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.member-dept-group { margin-bottom: 10px; }

.member-dept-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.member-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.member-check-item:hover { background: var(--bg-input); }

.member-check-item input { accent-color: var(--accent); }

.muted { color: var(--text-muted); }

/* ─── 任务看板 ─── */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

.kanban-col {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    min-height: 120px;
}

.kanban-col-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 6px 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-count {
    font-size: 12px;
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 2px 10px;
}

.kanban-col-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 24px 0;
}

.kanban-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.kanban-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.kanban-prio {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
}

.kanban-prio.prio-high { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.kanban-prio.prio-medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.kanban-prio.prio-low { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.kanban-due {
    font-size: 12px;
    color: var(--text-muted);
}

.kanban-due.overdue {
    color: #ef4444;
    font-weight: 600;
}

.kanban-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-unassigned {
    font-size: 12px;
    color: var(--text-muted);
}

.kanban-actions {
    display: flex;
    gap: 6px;
}

.kanban-move {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-move:hover { background: rgba(59, 130, 246, 0.15); color: var(--accent); }

.kanban-move.del:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ─── 图片预览 ─── */
.preview-modal-content { max-width: 640px; }

.preview-modal-body {
    padding: 8px 20px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 12px 12px;
}

/* ─── 组织架构 ─── */
.org-tree { margin-top: 4px; }

.org-node { position: relative; padding-bottom: 14px; }

.org-node::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.org-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.org-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.org-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.org-dept-icon {
    font-size: 22px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.org-card-info { min-width: 0; }

.org-dept-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.org-sub-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.org-dept-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.org-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.org-members {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-left: 4px;
}

.org-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--card-bg);
    margin-left: -6px;
    flex-shrink: 0;
}

.org-avatar:first-child { margin-left: 0; }

.org-avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid var(--card-bg);
}

.org-children { margin-top: 12px; }

.transfer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
}

.transfer-row:last-child { border-bottom: none; }

.transfer-info { flex: 1; min-width: 0; font-size: 14px; color: var(--text-primary); }

.transfer-select { width: 180px; flex-shrink: 0; }

/* ─── 费用报销 ─── */
.table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
    margin-top: 12px;
}

.reimburse-desc {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-preview img {
    max-height: 120px;
    border-radius: 8px;
    margin-top: 8px;
}

.review-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.op-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.kanban-cancelled {
    opacity: 0.55;
    border-style: dashed;
}

.kanban-cancelled .kanban-card-title { text-decoration: line-through; }

/* ─── 客户跟进 ─── */
.fu-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.fu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 14px 0 4px;
}

.fu-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.6;
}

.fu-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.fu-item-content {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.fu-item-date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── 部门维度汇总 ─── */
.rate-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 48px;
    text-align: center;
}

.rate-good { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.rate-mid { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.rate-bad { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.text-danger { color: #ef4444; font-weight: 600; }

/* ════════════════════════════════════════════
   移动端 App 体验（底部导航 + 抽屉遮罩 + 弹窗全屏）
   ════════════════════════════════════════════ */
.sidebar-overlay { display: none; }

.mobile-tabbar { display: none; }

@media (max-width: 768px) {
    /* 侧边栏抽屉遮罩 */
    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 90;
    }
    .sidebar { z-index: 100; }

    /* 底部导航栏 */
    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 56px;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    }

    .mtab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10px;
        color: var(--text-muted);
        text-decoration: none;
        position: relative;
        padding: 4px 0 6px;
        -webkit-tap-highlight-color: transparent;
    }

    .mtab span { font-size: 21px; line-height: 1; }
    .mtab label { line-height: 1; }
    .mtab.active { color: var(--accent); }

    .mtab .badge {
        position: absolute;
        top: 3px;
        right: calc(50% - 20px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 8px;
        font-size: 10px;
        line-height: 16px;
        text-align: center;
    }

    /* 内容底部留白（防底部导航遮挡） */
    .main-area { padding-bottom: 64px; }

    /* 弹窗全屏化 */
    .modal-content {
        width: 94%;
        max-width: 100% !important;
        max-height: 84vh;
        overflow-y: auto;
        margin: 8% auto;
    }

    /* 顶栏精简 */
    .breadcrumb {
        max-width: 50vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 触控友好 */
    .filter-chip { padding: 7px 12px; font-size: 13px; }
    .btn-primary, .btn-secondary { padding: 9px 14px; }
    .icon-btn { width: 34px; height: 34px; }
    .nav-item { padding: 12px 14px; font-size: 15px; }
    .sidebar { width: 280px; }
    .sidebar:not(.collapsed) { width: 280px; }
}

/* ─── 首页快捷操作 ─── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    font-size: inherit;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.quick-action-btn span {
    font-size: 26px;
    line-height: 1;
}

.quick-action-btn label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .quick-action-btn { padding: 12px 6px; }
    .quick-action-btn span { font-size: 24px; }
}

.transfer-row:last-child { border-bottom: none; }

.transfer-info { flex: 1; min-width: 0; font-size: 14px; color: var(--text-primary); }

.transfer-select { width: 180px; flex-shrink: 0; }




.kr-actions { display: flex; align-items: center; gap: 6px; }
.kr-input { width: 70px; padding: 4px 8px; font-size: 12px; }

.kr-add {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.team-obj {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-card);
}

.team-obj-title { font-size: 13px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

.review-block {
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 6px;
}

.review-title { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.review-result { font-size: 13px; color: var(--text-primary); }

/* ════════════════════════════════════════════
   请假余额
   ════════════════════════════════════════════ */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.balance-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--bg-card);
}

.balance-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.balance-num { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.balance-num strong { font-size: 22px; color: var(--accent-blue); margin-right: 4px; }
.balance-detail { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ════════════════════════════════════════════
   消息中心
   ════════════════════════════════════════════ */
.msg-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
}

.msg-item:hover { background: var(--bg-card-hover); }
.msg-item:last-child { border-bottom: none; }
.msg-item.msg-unread { background: rgba(37, 99, 235, 0.04); }

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.msg-head strong { font-size: 14px; }
.msg-content { font-size: 13px; color: var(--text-secondary); line-height: 1.5; word-break: break-all; }

.msg-link { position: relative; }

/* ─── 消息附件（图片/文件/语音）─── */
.msg-body { margin-top: 4px; }
.msg-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; word-break: break-all; }
.msg-image {
    max-width: 220px;
    max-height: 220px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: block;
    transition: transform var(--transition);
}
.msg-image:hover { transform: scale(1.02); }
.msg-audio { width: 240px; max-width: 100%; height: 38px; display: block; }
.msg-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
    max-width: 100%;
}
.msg-file:hover { border-color: var(--accent-blue); background: var(--bg-card-hover); }
.msg-file-icon { font-size: 24px; flex-shrink: 0; }
.msg-file-info { display: flex; flex-direction: column; min-width: 0; }
.msg-file-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.msg-file-action { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── 发消息工具栏 ─── */
.msg-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.msg-tool-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}
.msg-tool-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.msg-tool-btn.recording {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.attach-preview {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 12px;
}

/* ════════════════════════════════════════════
   群聊
   ════════════════════════════════════════════ */
.group-chat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 14px;
    min-height: 480px;
}

.group-list .card-body { overflow-y: auto; max-height: 520px; }
.group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.group-item:hover { background: var(--bg-card-hover); }
.group-item.active { background: rgba(37, 99, 235, 0.1); }
.group-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.group-item-info { min-width: 0; }
.group-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.group-item-last {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-chat { display: flex; flex-direction: column; }
.group-chat-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}
.group-chat-body {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-secondary);
}
.group-chat-input {
    border-top: 1px solid var(--border-color);
    padding: 10px 14px;
}
.group-chat-input textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    padding: 8px 12px;
    resize: vertical;
    outline: none;
    margin-bottom: 8px;
}
.group-input-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.group-msg { display: flex; gap: 10px; }
.group-msg.mine { flex-direction: row-reverse; }
.group-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.group-msg-main { max-width: 72%; min-width: 0; }
.group-msg.mine .group-msg-main { text-align: right; }
.group-msg-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.group-msg.mine .group-msg-meta { justify-content: flex-end; }
.group-msg-bubble {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    text-align: left;
    max-width: 100%;
}
.group-msg.mine .group-msg-bubble { background: rgba(37, 99, 235, 0.15); border-color: rgba(37, 99, 235, 0.25); }
.group-msg-bubble .msg-content { color: var(--text-primary); }
.group-msg-bubble .msg-image { max-width: 180px; max-height: 180px; }
.group-msg-bubble .msg-audio { width: 200px; }

/* ════════════════════════════════════════════
   数据报表
   ════════════════════════════════════════════ */
.analytics-summary {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 8px 0 0;
    flex-wrap: wrap;
}

.analytics-stat {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.analytics-stat strong {
    font-size: 18px;
    color: var(--accent-blue);
    margin-right: 4px;
}

/* ════════════════════════════════════════════
   工资条
   ════════════════════════════════════════════ */
.payroll-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    background: var(--bg-card);
}

.payroll-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

.payroll-month { font-size: 16px; font-weight: 700; }
.payroll-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.payroll-net { font-size: 14px; color: var(--text-secondary); }
.payroll-net strong { font-size: 22px; color: #10b981; margin-left: 6px; }

.payroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.payroll-cell {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: var(--bg-secondary);
}

.payroll-cell span { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.payroll-cell strong { font-size: 14px; color: var(--text-primary); }

/* ════════════════════════════════════════════
   审批中心
   ════════════════════════════════════════════ */
.approval-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.approval-card:hover { border-color: var(--border-color); }

.approval-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.approval-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.approval-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.approval-reason {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-top: 10px;
}

.approval-actions { display: flex; gap: 8px; margin-top: 10px; }

.detail-step {
    border-left: 2px solid var(--border-color);
    padding: 6px 0 6px 14px;
    margin-bottom: 8px;
}

.detail-step-name { font-size: 13px; color: var(--text-primary); }
.detail-step-comment { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
