/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --sidebar-width: 240px;
    --topbar-height: 60px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 登录页 ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 30%, #3b82f6 60%, #f59e0b 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-container {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-logo {
    margin-bottom: 24px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(245,158,11,0.4);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 32px;
}

.login-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.btn-success {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.lang-switch {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lang-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.login-tips {
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border-radius: var(--radius);
    font-size: 12px;
    color: #92400e;
}

/* ===== 主界面 ===== */
.main-page {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-mini {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    color: rgba(255,255,255,0.8);
    gap: 12px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.menu-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 500;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.badge {
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

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

.icon-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-color);
    border-radius: 24px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-detail {
    line-height: 1.2;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

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

.content-area {
    padding: 24px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.stat-card.gold::before { background: var(--accent-gold); }
.stat-card.green::before { background: var(--accent-green); }
.stat-card.red::before { background: var(--accent-red); }
.stat-card.blue::before { background: var(--primary-light); }

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

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

.stat-trend.up { color: var(--accent-green); }
.stat-trend.down { color: var(--accent-red); }

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

.data-table th {
    background: var(--bg-color);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.data-table tr:hover {
    background: #f9fafb;
}

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

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.success { background: #d1fae5; color: #065f46; }
.status-tag.warning { background: #fef3c7; color: #92400e; }
.status-tag.danger { background: #fee2e2; color: #991b1b; }
.status-tag.info { background: #dbeafe; color: #1e40af; }
.status-tag.default { background: #f3f4f6; color: #4b5563; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

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

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

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

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

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

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #1f2937;
    color: white;
    border-radius: var(--radius);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--accent-green); }
.toast.error { background: var(--accent-red); }
.toast.warning { background: var(--accent-gold); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== 组织架构树 ===== */
.org-tree {
    padding: 20px;
}

.org-node {
    margin-left: 24px;
    position: relative;
}

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

.org-node:last-child::before {
    height: 20px;
}

.org-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.org-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--border-color);
}

.org-item:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
}

.org-item.level-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.org-item.level-2 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
    font-weight: 500;
}

.org-item.level-3 {
    background: #f0fdf4;
    border-color: #86efac;
}

.org-icon {
    margin-right: 8px;
    font-size: 16px;
}

.org-name {
    flex: 1;
}

.org-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== 考勤打卡 ===== */
.checkin-card {
    text-align: center;
    padding: 40px;
}

.checkin-time {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.checkin-date {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.checkin-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.checkin-btn.work {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 30px rgba(16,185,129,0.4);
}

.checkin-btn.off {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 10px 30px rgba(245,158,11,0.4);
}

.checkin-btn:hover {
    transform: scale(1.05);
}

.checkin-btn:active {
    transform: scale(0.98);
}

.checkin-btn span {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

/* ===== 聊天 ===== */
.chat-container {
    display: flex;
    height: calc(100vh - 140px);
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.chat-item:hover {
    background: var(--bg-color);
}

.chat-item.active {
    background: #eff6ff;
    border-left: 3px solid var(--primary-color);
}

.chat-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.chat-item-last {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

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

.message {
    margin-bottom: 16px;
    max-width: 70%;
}

.message.other {
    margin-right: auto;
}

.message.self {
    margin-left: auto;
}

.message-sender {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.5;
}

.message.other .message-bubble {
    background: white;
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.message.self .message-bubble {
    background: var(--primary-color);
    color: white;
    border-top-right-radius: 4px;
}

.message-translation {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.message.other .message-translation {
    border-top-color: var(--border-color);
    color: var(--text-secondary);
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input:focus {
    border-color: var(--primary-light);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 进度条 ===== */
.progress-bar {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s;
}

/* ===== 审批流程 ===== */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.step-circle.done {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.step-circle.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

.step-name {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 -20px;
    margin-top: -28px;
}

.step-line.done {
    background: var(--accent-green);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.text-warning { color: var(--accent-gold); }
.text-primary { color: var(--primary-color); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

.p-16 { padding: 16px; }
.p-20 { padding: 20px; }

.font-bold { font-weight: 600; }
.font-sm { font-size: 12px; }
.font-lg { font-size: 16px; }
.font-xl { font-size: 20px; }

/* ===== 页面头部 ===== */
.page-header {
    margin-bottom: 20px;
}
.page-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Tabs 标签页 ===== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    background: white;
    padding: 0 16px;
    border-radius: 8px 8px 0 0;
}
.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}
.tab:hover {
    color: var(--primary-color);
}
.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== 统计卡片 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-card.success .stat-value { color: var(--accent-green); }
.stat-card.warning .stat-value { color: var(--accent-gold); }
.stat-card.danger .stat-value { color: var(--accent-red); }
.stat-card.income .stat-value { color: var(--accent-green); }
.stat-card.expense .stat-value { color: var(--accent-red); }
.stat-card.balance .stat-value { color: var(--primary-color); }
.stat-card.profit .stat-value { color: var(--accent-gold); }

/* ===== 卡片 ===== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.card-body {
    padding: 20px;
}

/* ===== 数据表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid #e5e7eb;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: var(--text-primary);
}
.data-table tr:hover {
    background: #f9fafb;
}
.data-table .total-row {
    background: #f9fafb;
    font-weight: 600;
}

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge.primary { background: #dbeafe; color: #1e40af; }
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badge.info { background: #e0e7ff; color: #3730a3; }

/* ===== 按钮 ===== */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background: #eff6ff;
}
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}
.btn-block {
    width: 100%;
}

/* ===== 表单 ===== */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    flex: 1;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ===== 资产负债表 ===== */
.balance-sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
}
.balance-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.balance-section {
    margin-bottom: 20px;
}
.balance-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}
.balance-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-primary);
}
.balance-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.balance-grand-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 700;
    font-size: 16px;
    border-top: 2px solid var(--primary-color);
    margin-top: 16px;
    color: var(--primary-color);
}

/* ===== 现金流量表 ===== */
.cashflow-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.cashflow-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.cashflow-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.cashflow-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.cashflow-grand-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    background: #f9fafb;
    border-top: 2px solid var(--primary-color);
}

/* ===== 成本核算 ===== */
.cost-breakdown {
    padding: 20px;
}
.cost-item {
    margin-bottom: 24px;
}
.cost-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}
.cost-sub {
    padding-left: 20px;
}
.cost-sub-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== PPN计算器 ===== */
.ppn-calculator {
    padding: 20px;
}
.ppn-result {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.result-item.highlight {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 4px;
}

/* ===== 计算器 ===== */
.calculator {
    padding: 20px;
}
.calc-result {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

/* ===== BPJS说明 ===== */
.bpjs-note {
    margin-top: 20px;
    padding: 16px;
    background: #fffbeb;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}
.bpjs-note p {
    font-weight: 600;
    margin-bottom: 8px;
}
.bpjs-note ul {
    padding-left: 20px;
}
.bpjs-note li {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== TKA要求 ===== */
.tka-requirements {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.req-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}
.req-icon {
    font-size: 24px;
}
.req-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.req-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 假日月份 ===== */
.holiday-month {
    margin-bottom: 24px;
}
.holiday-month h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .balance-sheet {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        flex-direction: column;
    }
    .tabs {
        overflow-x: auto;
    }
}
.font-2xl { font-size: 24px; }

/* ===== 组织架构图 ===== */
.org-chart-node {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.org-chart-node:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.org-chart-node.level-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
}

.org-chart-node.level-2 {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #7dd3fc;
}

.org-chart-node.level-3 {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

.org-chart-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.org-chart-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.org-chart-type {
    font-size: 11px;
    opacity: 0.7;
}

.org-chart-connector {
    width: 2px;
    height: 20px;
    background: var(--border-color);
    margin: 0 auto;
}

.org-chart-connector-up {
    width: 2px;
    height: 20px;
    background: var(--border-color);
    margin: 0 auto;
}

/* ===== 公告通知 ===== */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.announcement-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.announcement-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.announcement-icon.company {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.announcement-icon.hr {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.announcement-icon.safety {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.announcement-icon.system {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

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

.announcement-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.announcement-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge-top {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-new {
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: var(--bg-secondary);
}

.category-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.category-count {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item.active .category-count {
    background: var(--primary-color);
    color: white;
}

/* ===== 日历 ===== */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    min-height: 80px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--bg-secondary);
}

.calendar-day.today {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.calendar-day.today .calendar-day-number {
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.calendar-event.meeting {
    background: #3b82f6;
}

.calendar-event.work {
    background: #f59e0b;
}

.calendar-event.training {
    background: #8b5cf6;
}

.calendar-event.holiday {
    background: #10b981;
}

.calendar-event-more {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.event-item:hover {
    background: var(--bg-secondary);
}

.event-time {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    min-width: 60px;
}

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

.event-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.event-location {
    font-size: 12px;
    color: var(--text-secondary);
}

.event-date-badge {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-day {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-date-month {
    font-size: 10px;
    color: var(--primary-color);
    margin-top: 2px;
}

.event-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 帮助中心 ===== */
.help-search {
    margin-bottom: 16px;
}

.help-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.help-category:hover {
    background: var(--bg-secondary);
}

.help-category.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.help-category-icon {
    font-size: 20px;
}

.help-category-name {
    font-size: 14px;
}

.help-section {
    margin-bottom: 32px;
}

.help-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.help-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    margin-top: 24px;
}

.help-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-step {
    display: flex;
    gap: 16px;
}

.help-step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.help-step-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.help-step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.help-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.help-feature {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-align: center;
}

.help-feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.help-feature-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.help-feature-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.help-list {
    padding-left: 20px;
    line-height: 2;
    color: var(--text-secondary);
}

.help-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-toggle {
    font-size: 18px;
    color: var(--text-secondary);
}

.faq-answer {
    display: none;
    padding: 0 16px 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 工作台 ===== */
.workbench-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    padding: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.workbench-welcome h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.workbench-welcome p {
    opacity: 0.9;
    font-size: 14px;
}

.workbench-stats {
    display: flex;
    gap: 40px;
}

.workbench-stat-item {
    text-align: center;
}

.workbench-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.workbench-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.app-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.app-icon.attendance {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.app-icon.approval {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.app-icon.announcement {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.app-icon.chat {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.app-icon.calendar {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.app-icon.finance {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
}

.app-icon.org {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.app-icon.compliance {
    background: linear-gradient(135deg, #f0fdf4, #86efac);
}

.app-icon.employee {
    background: linear-gradient(135deg, #f3e8ff, #d8b4fe);
}

.app-icon.subcontract {
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.app-icon.hse {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
}

.app-icon.salary {
    background: linear-gradient(135deg, #fef9c3, #fde047);
}

.app-icon.leave {
    background: linear-gradient(135deg, #cffafe, #67e8f9);
}

.app-icon.reimbursement {
    background: linear-gradient(135deg, #ede9fe, #a78bfa);
}

.app-icon.training {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
}

.app-icon.production {
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.app-icon.equipment {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

.app-icon.material {
    background: linear-gradient(135deg, #d1fae5, #6ee7b7);
}

.app-icon.quality {
    background: linear-gradient(135deg, #bfdbfe, #60a5fa);
}

.app-icon.logistics {
    background: linear-gradient(135deg, #fecaca, #f87171);
}

.app-icon.safety {
    background: linear-gradient(135deg, #fef08a, #facc15);
}

.app-icon.environment {
    background: linear-gradient(135deg, #bbf7d0, #4ade80);
}

.app-icon.help {
    background: linear-gradient(135deg, #e0e7ff, #818cf8);
}

.app-icon.download {
    background: linear-gradient(135deg, #fce7f3, #f472b6);
}

.app-icon.settings {
    background: linear-gradient(135deg, #e5e7eb, #6b7280);
}

.app-icon.about {
    background: linear-gradient(135deg, #cffafe, #22d3ee);
}

.app-icon.more {
    background: linear-gradient(135deg, #f3f4f6, #d1d5db);
}

.app-name {
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
}

.app-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===== 移动端底部导航 ===== */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tabbar-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
}

.mobile-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    transition: all 0.2s;
    flex: 1;
    position: relative;
}

.mobile-tabbar-item.active {
    color: var(--primary-color);
}

.mobile-tabbar-item .tab-icon {
    font-size: 22px;
}

.mobile-tabbar-item .tab-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(16px);
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* ===== 响应式补充 ===== */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    /* 隐藏侧边栏 */
    .sidebar {
        display: none;
    }
    
    /* 主内容占满全屏 */
    .main-content {
        margin-left: 0;
    }
    
    /* 底部留出导航栏空间 */
    .main-content {
        padding-bottom: 70px;
    }
    
    /* 显示底部导航 */
    .mobile-tabbar {
        display: block;
    }
    
    /* 顶部栏优化 */
    .topbar {
        padding: 0 12px;
        height: 52px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .user-detail {
        display: none;
    }
    
    /* 工作台横幅优化 */
    .workbench-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
        margin: 12px;
    }
    
    .workbench-welcome h2 {
        font-size: 20px;
    }
    
    .workbench-stats {
        gap: 32px;
    }
    
    .workbench-stat-value {
        font-size: 24px;
    }
    
    /* 应用图标4列 */
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .app-item {
        padding: 12px 4px;
    }
    
    .app-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .app-name {
        font-size: 12px;
    }
    
    /* 卡片优化 */
    .card {
        margin: 12px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 12px 16px;
    }
    
    /* 帮助中心 */
    .help-features {
        grid-template-columns: 1fr;
    }
    
    /* 日历优化 */
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .calendar-day-number {
        font-size: 12px;
    }
    
    .calendar-event {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    /* 组织架构图 */
    .org-chart-node {
        min-width: 80px;
        padding: 8px 12px;
    }
    
    .org-chart-name {
        font-size: 12px;
    }
    
    .org-chart-type {
        font-size: 10px;
    }
    
    /* 表格横向滚动 */
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 公告列表 */
    .announcement-item {
        padding: 12px;
    }
    
    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* 弹窗优化 */
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    /* 登录页优化 */
    .login-container {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .workbench-stats {
        gap: 20px;
    }
}

