:root {
    --primary: #D4A574;
    --primary-light: #FDF5EE;
    --primary-dark: #C4956A;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --sidebar-width: 340px;
    --sidebar-collapsed: 0px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 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); color: var(--text); min-height: 100vh; display: flex;
    -webkit-font-smoothing: antialiased;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100vh;
    background: var(--card-bg); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; transition: all var(--transition);
    position: sticky; top: 0; z-index: 50; overflow: hidden;
}
.sidebar.collapsed { width: 0; min-width: 0; border-right: none; }
.sidebar-brand { padding: 20px 20px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.brand-icon { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-muted); }
.sidebar-toggle {
    margin-left: auto; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border);
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.15s; flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg); color: var(--text); }

/* 统计卡片 */
.stats-area { display: flex; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.stat-item {
    flex: 1; padding: 12px 8px; border-radius: var(--radius); text-align: center;
    transition: transform 0.15s; cursor: pointer;
}
.stat-item:hover { transform: translateY(-1px); }
.stat-total { background: var(--primary-light); }
.stat-pending { background: var(--warning-light); }
.stat-done { background: var(--success-light); }
.stat-num { font-size: 24px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 11px; margin-top: 4px; color: var(--text-secondary); }
.stat-total .stat-num { color: var(--primary); }
.stat-pending .stat-num { color: var(--warning); }
.stat-done .stat-num { color: var(--success); }

/* 筛选标签 */
.filter-tabs {
    display: flex; gap: 4px; padding: 12px 20px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.filter-tab {
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
    cursor: pointer; border: none; background: transparent; color: var(--text-secondary);
    transition: all 0.15s; font-family: inherit; white-space: nowrap;
}
.filter-tab:hover { background: var(--bg); color: var(--text); }
.filter-tab.active { background: var(--primary); color: #fff; }

/* 任务列表 */
.task-list-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.task-list-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-icon {
    width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--bg);
    cursor: pointer; font-size: 16px; color: var(--text-secondary); display: flex;
    align-items: center; justify-content: center; transition: all 0.15s; font-weight: 600;
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary); }

.task-list { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }

/* ===== 任务分区标题 ===== */
.task-section {
    margin-bottom: 8px;
}
.section-title {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 6px 6px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); letter-spacing: 0.3px;
    position: sticky; top: 0; background: var(--card-bg);
    z-index: 5; border-bottom: 1px solid var(--border);
}
.section-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.active-dot { background: var(--primary); }
.completed-dot { background: var(--success); }
.section-count {
    margin-left: auto; font-size: 11px; color: var(--text-muted);
    background: var(--bg); padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.section-empty {
    text-align: center; padding: 16px; color: var(--text-muted);
    font-size: 12px;
}
.section-tasks {
    /* Sortable 容器 */
}

/* ===== 年月折叠分组 ===== */
.month-group {
    margin: 2px 0;
}
.month-group-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-radius: 6px;
    cursor: pointer; user-select: none;
    transition: background 0.15s;
    font-size: 12px; color: var(--text-secondary);
}
.month-group-header:hover {
    background: var(--bg);
}
.month-arrow {
    display: inline-block; transition: transform 0.2s;
    font-size: 9px; color: var(--text-muted);
}
.month-group-header.expanded .month-arrow {
    transform: rotate(90deg);
}
.month-label {
    font-weight: 600; color: var(--text);
}
.month-count {
    margin-left: auto; font-size: 11px; color: var(--text-muted);
    background: var(--bg); padding: 1px 8px; border-radius: 8px;
}
.month-group-tasks {
    display: none;
}
.month-group-tasks.show {
    display: block;
}

/* 任务颜色长条 */
.task-color-bar {
    width: 4px; align-self: stretch; flex-shrink: 0;
    border-radius: 2px 0 0 2px;
}
.task-card {
    display: flex; align-items: center; gap: 12px; padding: 0;
    margin-bottom: 4px; border-radius: var(--radius); cursor: pointer;
    transition: all 0.15s; border: 1.5px solid transparent; position: relative;
    background: var(--card-bg); overflow: hidden;
}
.task-card:hover { background: var(--bg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.task-card.selected { border-color: var(--primary); background: var(--primary-light); }
.task-card.completed-card { opacity: 0.65; }
.task-card.completed-card:hover { opacity: 0.85; }
.task-card .drag-handle {
    cursor: grab; color: var(--text-muted); font-size: 14px; user-select: none;
    padding: 2px; flex-shrink: 0; line-height: 1; touch-action: none;
    margin: 12px 0 12px 10px;
}
.task-card .drag-handle:active { cursor: grabbing; }

/* 完成勾选框 */
.checkbox-wrap { flex-shrink: 0; position: relative; }
.task-checkbox {
    display: none;
}
.checkbox-custom {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; cursor: pointer; flex-shrink: 0;
    margin: 12px 0;
}
.checkbox-custom:hover { border-color: var(--success); background: var(--success-light); }
.task-card.completed-card .checkbox-custom {
    background: var(--success); border-color: var(--success);
}
.task-card.completed-card .checkbox-custom::after {
    content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
}

.task-card .task-info { flex: 1; min-width: 0; padding: 12px 0; }
.task-card .task-name-row {
    display: flex; align-items: center; gap: 8px;
}
.task-card .task-name {
    font-size: 14px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}
.task-card.completed-card .task-name { text-decoration: line-through; color: var(--text-muted); }

/* 进度百分比徽章 */
.progress-badge {
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
    white-space: nowrap; flex-shrink: 0; line-height: 1.4;
}
.progress-badge.in-progress {
    background: var(--primary-light); color: var(--primary);
}
.progress-badge.completed {
    background: var(--success-light); color: var(--success);
}
.task-card .task-meta {
    display: flex; align-items: center; gap: 8px; margin-top: 4px;
    font-size: 11px; color: var(--text-muted);
}
.task-card .task-meta .dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.dot-high { background: var(--danger); }
.dot-medium { background: var(--warning); }
.dot-low { background: var(--success); }

.task-card .task-actions {
    display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s;
    margin: 12px 14px 12px 0;
}
.task-card:hover .task-actions { opacity: 1; }
.task-card .btn-task-action {
    width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
    cursor: pointer; font-size: 13px; color: var(--text-muted); display: flex;
    align-items: center; justify-content: center; transition: all 0.15s;
}
.task-card .btn-task-action:hover { background: var(--danger-light); color: var(--danger); }
.task-card .btn-task-action.btn-restore:hover { background: var(--primary-light); color: var(--primary); }

.sortable-ghost { opacity: 0.4; background: var(--primary-light) !important; border: 2px dashed var(--primary) !important; }
.sortable-chosen { box-shadow: var(--shadow-md) !important; }

/* 空状态 */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 8px; }
.empty-state p { font-size: 13px; }
.empty-state .hint { font-size: 11px; margin-top: 4px; }
.empty-state.small { padding: 24px; }

/* 侧边栏底部 */
.sidebar-footer {
    padding: 10px 20px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-muted); text-align: center;
}

/* ===== 主内容区 ===== */
.main-area {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
    height: 100vh; overflow-y: auto;
}

.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 24px; background: var(--card-bg); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 40;
}
.mobile-menu-btn { display: none; }
.page-title { font-size: 18px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; gap: 8px; }

/* 按钮 */
.btn {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.15s; display: inline-flex;
    align-items: center; gap: 6px; font-family: inherit; line-height: 1;
}
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-danger:hover { background: var(--danger-light); }

/* ===== FullCalendar 覆盖 ===== */
.calendar-wrapper {
    padding: 20px 24px; background: var(--card-bg);
    margin: 16px 24px 0; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.fc { font-family: inherit !important; }
.fc .fc-toolbar-title { font-size: 1.2em !important; font-weight: 700 !important; }
.fc .fc-button {
    font-family: inherit !important; font-size: 0.85em !important; font-weight: 500 !important;
    padding: 6px 14px !important; border-radius: 8px !important; border: 1px solid var(--border) !important;
    background: #fff !important; color: var(--text) !important; text-transform: none !important;
    box-shadow: none !important; transition: all 0.15s !important;
}
.fc .fc-button:hover { background: var(--bg) !important; border-color: var(--primary) !important; color: var(--primary) !important; }
.fc .fc-button-primary { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.fc .fc-button-primary:hover { background: var(--primary-dark) !important; }
.fc .fc-button-active { background: var(--primary-light) !important; color: var(--primary) !important; border-color: var(--primary) !important; }
.fc .fc-daygrid-day.fc-day-today { background: var(--primary-light) !important; }
.fc .fc-daygrid-day-number { font-size: 0.85em !important; font-weight: 500 !important; padding: 6px 8px !important; }
.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--primary) !important; color: #fff !important;
    border-radius: 50% !important; width: 26px !important; height: 26px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    margin: 4px !important;
}
.fc .fc-daygrid-event { border-radius: 5px !important; font-size: 0.8em !important; padding: 2px 6px !important; margin: 1px 3px !important; border: none !important; cursor: pointer !important; font-weight: 500 !important; }
.fc .fc-daygrid-event:hover { filter: brightness(0.95); }
.fc .fc-scrollgrid { border-color: var(--border) !important; }
.fc th { padding: 8px 0 !important; font-size: 0.8em !important; font-weight: 600 !important; color: var(--text-secondary) !important; border-color: var(--border) !important; }
.fc .fc-daygrid-day-frame { min-height: 80px !important; }
.fc .fc-more-link { font-size: 0.75em !important; color: var(--primary) !important; font-weight: 500 !important; }
.fc .fc-highlight { background: var(--primary-light) !important; }

/* 事件颜色 */
.fc-event-pending { background: var(--warning) !important; color: #fff !important; }
.fc-event-progress { background: var(--primary) !important; color: #fff !important; }
.fc-event-completed { background: var(--success) !important; color: #fff !important; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px); z-index: 200; display: none;
    align-items: center; justify-content: center; animation: fadeIn 0.2s;
}
.modal {
    background: #fff; border-radius: var(--radius-lg); width: 480px;
    max-width: 90vw; box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.25s; max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--bg); cursor: pointer; font-size: 14px; color: var(--text-muted); }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group .required { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: inherit; transition: all 0.15s; background: #fff;
    color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.progress-input-group { display: flex; align-items: center; gap: 12px; }
.progress-input-group input[type="range"] {
    flex: 1; height: 6px; -webkit-appearance: none; background: #e5e7eb;
    border-radius: 3px; outline: none; padding: 0; border: none;
}
.progress-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); cursor: pointer; border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.progress-value { font-weight: 700; font-size: 15px; min-width: 40px; text-align: right; }

/* 颜色选择器 */
.color-picker-row {
    display: flex; align-items: center; gap: 10px;
}
.color-picker-row input[type="color"] {
    width: 36px; height: 36px; border: 2px solid var(--border);
    border-radius: 8px; padding: 2px; cursor: pointer; flex-shrink: 0;
}
.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-picker-row input[type="color"]::-webkit-color-swatch {
    border: none; border-radius: 4px;
}
.color-presets {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.color-dot {
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; border: 2px solid transparent;
    transition: all 0.15s; flex-shrink: 0;
}
.color-dot:hover {
    transform: scale(1.15);
    border-color: var(--text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 完成时间提示 */
.completed-time {
    font-size: 11px; color: var(--success); margin-top: 4px;
    display: flex; align-items: center; gap: 4px;
}

/* ===== 进度日志（弹窗内） ===== */
.progress-hint {
    font-weight: 400; text-transform: none; letter-spacing: 0;
    color: var(--text-muted); font-size: 11px;
}
.progress-log-list {
    max-height: 160px; overflow-y: auto; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: 8px; padding: 4px;
}
.log-empty {
    text-align: center; padding: 16px; color: var(--text-muted);
    font-size: 13px;
}
.log-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 10px; border-radius: 6px; transition: background 0.15s;
    font-size: 13px;
}
.log-item:hover { background: var(--bg); }
.log-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.log-item .log-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.log-dot.log-pending { background: #94a3b8; }
.log-dot.log-progress { background: var(--primary); }
.log-dot.log-done { background: var(--success); }
.log-item .log-body { flex: 1; min-width: 0; }
.log-item .log-content { line-height: 1.4; word-break: break-all; }
.log-item .log-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.log-item .log-delete {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px;
    border: none; background: transparent; cursor: pointer; font-size: 12px;
    color: var(--text-muted); transition: all 0.15s; display: flex;
    align-items: center; justify-content: center; margin-top: 2px;
}
.log-item .log-delete:hover { background: var(--danger-light); color: var(--danger); }
.progress-log-add {
    border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
    background: var(--bg);
}
.progress-log-add input[type="text"] {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px; font-family: inherit;
    margin-bottom: 8px; background: #fff;
}
.progress-log-add input[type="text"]:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}
.log-add-row {
    display: flex; align-items: center; gap: 8px;
}
.log-progress-label {
    font-size: 11px; color: var(--text-secondary); font-weight: 500;
    white-space: nowrap;
}
.progress-steps {
    display: flex; gap: 4px; flex: 1;
}
.progress-step {
    flex: 1; padding: 5px 0; border-radius: 6px; border: 1px solid var(--border);
    background: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.15s; font-family: inherit; color: var(--text-secondary);
    text-align: center;
}
.progress-step:hover:not(.disabled) {
    border-color: var(--primary); color: var(--primary);
    background: rgba(99,102,241,0.05);
}
.progress-step.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.progress-step.disabled {
    background: #f3f4f6; color: #cbd5e1; border-color: #e5e7eb;
    cursor: not-allowed; opacity: 0.6;
}
.log-progress-val {
    font-weight: 600; font-size: 13px; min-width: 32px; text-align: right;
    color: var(--primary);
}

/* ===== 任务卡片内的折叠进度日志 ===== */
.task-card .log-toggle {
    display: flex; align-items: center; gap: 4px;
    margin-top: 6px; font-size: 11px; color: var(--primary);
    cursor: pointer; user-select: none; font-weight: 500;
    padding: 2px 0;
}
.task-card .log-toggle:hover { color: var(--primary-dark); }
.task-card .log-toggle .arrow {
    display: inline-block; transition: transform 0.2s; font-size: 10px;
}
.task-card .log-toggle.expanded .arrow { transform: rotate(90deg); }
.task-card .task-logs {
    display: none; margin-top: 6px; padding: 6px 8px;
    background: var(--bg); border-radius: 6px; max-height: 140px;
    overflow-y: auto; border: 1px solid var(--border);
}
.task-card .task-logs.show { display: block; }
.task-card .task-logs .log-mini {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 0; font-size: 11px; color: var(--text-secondary);
}
.task-card .task-logs .log-mini:not(:last-child) {
    border-bottom: 1px dashed var(--border); padding-bottom: 4px; margin-bottom: 3px;
}
.task-card .task-logs .log-mini .mini-dot {
    width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; color: #fff; font-weight: 700;
}
.mini-dot.mini-pending { background: #94a3b8; }
.mini-dot.mini-progress { background: var(--primary); }
.mini-dot.mini-done { background: var(--success); }
.task-card .task-logs .log-mini .mini-text { flex: 1; line-height: 1.3; }
.task-card .task-logs .log-mini .mini-time { color: var(--text-muted); font-size: 10px; white-space: nowrap; }

/* Toast 提示 */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 10px 24px; border-radius: 20px; font-size: 13px; font-weight: 600;
    z-index: 999; animation: toastIn 0.3s; box-shadow: var(--shadow-lg);
    pointer-events: none;
}
.toast-success { background: var(--success); color: #fff; }
.toast-info { background: var(--primary); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes checkPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* 响应式 */
@media (max-width: 768px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 100; box-shadow: var(--shadow-lg); }
    .sidebar.collapsed { left: calc(-1 * var(--sidebar-width)); width: var(--sidebar-width); min-width: var(--sidebar-width); }
    .mobile-menu-btn { display: flex; }
    .calendar-wrapper { margin: 8px 12px; padding: 12px; }
    .topbar { padding: 10px 16px; }
    .fc .fc-toolbar { flex-direction: column; gap: 8px; }
    .fc .fc-toolbar-title { font-size: 1em !important; }
}
