/* ============================================================
   班主任管理系统 - 全局样式
   设计风格：清新卡片式 + 暗色科技风（可切换）
   ============================================================ */

/* ==================== CSS 变量 ==================== */
:root {
    /* 亮色主题 */
    --bg-primary: #f5f6fa;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --bg-input: #f8f9fc;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --accent: #ec5196;
    --accent-light: #fce4ec;
    --accent-gradient: linear-gradient(135deg, #ec5196, #f48fb1);
    --green: #22c55e;
    --green-light: #dcfce7;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-w: 240px;
}

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-sidebar: #161b22;
    --bg-card: #1c2128;
    --bg-hover: #21262d;
    --bg-input: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --accent: #ec5196;
    --accent-light: #3d2433;
    --accent-gradient: linear-gradient(135deg, #c026d3, #ec5196);
    --green: #22c55e;
    --green-light: #0d3320;
    --orange: #f59e0b;
    --orange-light: #3d2e10;
    --red: #ef4444;
    --red-light: #3d1515;
    --blue: #58a6ff;
    --blue-light: #0d2d4d;
    --border: #30363d;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
}

/* ==================== 全局重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    overflow: hidden;
    height: 100vh;
}

/* ==================== 登录页 ==================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #ec5196 0%, #f48fb1 100%);
}
.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-header { margin-bottom: 32px; }
.login-icon { font-size: 56px; margin-bottom: 12px; }
.login-header h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.login-header p { font-size: 14px; color: var(--text-secondary); }
.login-form .input-group { margin-bottom: 16px; }
.login-form input {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 15px; background: var(--bg-input);
    color: var(--text-primary); transition: border-color 0.2s;
}
.login-form input:focus { outline: none; border-color: var(--accent); }
.login-msg { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.btn-login {
    width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm);
    background: var(--accent-gradient); color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(236,81,150,0.4); }
.login-hint { margin-top: 20px; font-size: 12px; color: var(--text-tertiary); }

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

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-w); background: var(--bg-sidebar); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; overflow-y: auto;
    transition: background 0.3s;
}
.sidebar-header {
    display: flex; align-items: center; gap: 12px; padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}
.sidebar-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.sidebar-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.sidebar-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-group { margin-bottom: 16px; }
.nav-label { font-size: 11px; color: var(--text-tertiary); padding: 4px 12px; margin-bottom: 4px; font-weight: 600; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; color: var(--text-primary); transition: all 0.15s;
    position: relative; text-decoration: none;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-item.active span:first-child { filter: brightness(1.2); }
.nav-badge {
    margin-left: auto; background: var(--red); color: #fff; font-size: 11px;
    border-radius: 10px; padding: 1px 7px; font-weight: 600;
}
.nav-item.active .nav-badge { background: #fff; color: var(--accent); }

.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.sidebar-date { font-size: 12px; color: var(--text-secondary); text-align: center; margin-bottom: 8px; }
.sidebar-buttons { display: flex; gap: 8px; margin-bottom: 8px; }
.btn-side {
    flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary); font-size: 13px; cursor: pointer;
    transition: all 0.15s;
}
.btn-side:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn-logout {
    width: 100%; padding: 8px; border: none; border-radius: var(--radius-sm);
    background: var(--red-light); color: var(--red); font-size: 13px; cursor: pointer;
    transition: all 0.15s;
}
.btn-logout:hover { background: var(--red); color: #fff; }

/* ==================== 内容区 ==================== */
.content { flex: 1; overflow-y: auto; padding: 24px 32px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h2 { font-size: 22px; font-weight: 700; }
.page-actions { display: flex; gap: 10px; }

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-card); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 16px; transition: background 0.3s;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ==================== 统计卡片 ==================== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.stat-icon {
    width: 44px; height: 44px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 22px;
}
.stat-icon.green { background: var(--green-light); }
.stat-icon.yellow { background: var(--orange-light); }
.stat-icon.pink { background: var(--accent-light); }
.stat-icon.blue { background: var(--blue-light); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-sub { font-size: 12px; margin-top: 2px; }
.stat-sub.green { color: var(--green); }
.stat-sub.red { color: var(--red); }

/* ==================== 按钮 ==================== */
.btn {
    padding: 8px 16px; border: none; border-radius: var(--radius-sm); font-size: 14px;
    cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px;
    font-weight: 500; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: var(--bg-input); color: var(--text-primary); transition: border-color 0.2s;
    font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ==================== 表格 ==================== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    background: var(--bg-hover); padding: 10px 12px; text-align: left; font-weight: 600;
    color: var(--text-secondary); border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-primary);
}
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .text-center { text-align: center; }
.data-table .text-right { text-align: right; }

/* ==================== 标签 ==================== */
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.tag-pink { background: var(--accent-light); color: var(--accent); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.tag-red { background: var(--red-light); color: var(--red); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-gray { background: var(--bg-hover); color: var(--text-secondary); }

/* ==================== 模态框 ==================== */
.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; animation: fadeIn 0.2s;
}
.modal-box {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
    width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); animation: slideUp 0.25s;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-tertiary); padding: 0 4px; }
.modal-close:hover { color: var(--red); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== Toast 通知 ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm); color: #fff; font-size: 14px;
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s; max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--blue); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== 课程表 ==================== */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td {
    border: 1px solid var(--border); padding: 10px; text-align: center; font-size: 13px;
    min-width: 100px; background: var(--bg-card);
}
.schedule-table th { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.schedule-cell { cursor: pointer; transition: background 0.15s; min-height: 50px; }
.schedule-cell:hover { background: var(--bg-hover); }
.schedule-cell input {
    width: 100%; border: none; background: transparent; text-align: center;
    font-size: 13px; color: var(--text-primary); padding: 4px;
}
.schedule-cell input:focus { outline: 2px solid var(--accent); border-radius: 4px; }

/* ==================== 座次表 ==================== */
.seating-area { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.podium { text-align: center; padding: 10px 40px; background: var(--accent-light); border: 2px solid var(--accent);
    border-radius: var(--radius-sm); display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--accent); }
.seating-grid { display: grid; gap: 8px; margin-bottom: 16px; }
.seat {
    border: 2px dashed var(--border); border-radius: var(--radius-sm); min-height: 56px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.15s; font-size: 13px; background: var(--bg-input); position: relative;
}
.seat:hover { border-color: var(--accent); }
.seat.occupied { border: 2px solid var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }
.seat .seat-remove { position: absolute; top: 2px; right: 4px; font-size: 14px; color: var(--red); cursor: pointer; display: none; }
.seat.occupied .seat-remove { display: block; }

.unseated-area { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.unseated-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.student-chip {
    padding: 8px 16px; border-radius: var(--radius-sm); background: var(--bg-input);
    border: 1px solid var(--border); cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.student-chip:hover { background: var(--accent-light); border-color: var(--accent); }
.student-chip.seated { opacity: 0.4; pointer-events: none; }

/* ==================== 空状态 ==================== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-tertiary); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; }

/* ==================== 届别选择器 ==================== */
.cohort-selector {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px; background: var(--bg-card);
    border-radius: var(--radius-sm); padding: 8px 12px; box-shadow: var(--shadow);
}
.cohort-selector label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.cohort-selector select {
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px;
    font-size: 13px; background: var(--bg-input); color: var(--text-primary); cursor: pointer;
}
.cohort-add-btn {
    padding: 6px 12px; border: 1px dashed var(--accent); border-radius: var(--radius-sm);
    background: transparent; color: var(--accent); font-size: 13px; cursor: pointer;
}
.cohort-add-btn:hover { background: var(--accent-light); }

/* ==================== 上传区 ==================== */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px;
    text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-card);
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone .upload-icon { font-size: 40px; margin-bottom: 8px; }
.upload-zone .upload-text { font-size: 14px; color: var(--text-secondary); }
.upload-zone .upload-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ==================== 进度条 ==================== */
.progress-bar { height: 20px; border-radius: 10px; background: var(--bg-hover); overflow: hidden; position: relative; }
.progress-fill { height: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end;
    padding-right: 8px; font-size: 12px; color: #fff; font-weight: 600; transition: width 0.5s; }
.progress-fill.green { background: var(--green); }
.progress-fill.blue { background: var(--blue); }
.progress-fill.cyan { background: #06b6d4; }
.progress-fill.red { background: var(--red); }

/* ==================== 倒计时 ==================== */
.countdown-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); margin-bottom: 8px; box-shadow: var(--shadow);
}
.countdown-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.countdown-name { font-size: 14px; font-weight: 600; }
.countdown-date { font-size: 12px; color: var(--text-secondary); }
.countdown-days { margin-left: auto; font-size: 22px; font-weight: 700; }

/* ==================== 图表容器 ==================== */
.chart-container { position: relative; width: 100%; }
.chart-container canvas { max-height: 300px; }

/* ==================== 成绩录入 ==================== */
.score-input {
    width: 60px; border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px;
    text-align: center; font-size: 13px; background: var(--bg-input); color: var(--text-primary);
}
.score-input:focus { outline: none; border-color: var(--accent); }

/* ==================== 响应式 ==================== */

/* 移动端顶部栏（默认隐藏，平板/手机时显示） */
.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 12px);
}
.mobile-menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:active { background: var(--bg-hover); }
.mobile-topbar-title { font-size: 16px; font-weight: 600; }
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s;
}

/* iPad 适配 (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar.open + .sidebar-overlay {
        display: block;
        opacity: 1;
    }
    .content {
        padding: 16px 20px;
        width: 100%;
    }
    .mobile-topbar { display: flex; }
    .content { padding-top: 60px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    /* 触控优化：增大交互区域 */
    .nav-item { padding: 12px 16px; min-height: 48px; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 40px; }
    .form-input, select { min-height: 44px; font-size: 16px; }
    .data-table th, .data-table td { padding: 10px 12px; }
}

/* 手机适配 (<768px) */
@media (max-width: 767px) {
    .content { padding: 12px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; min-width: 0; }
    .stat-value { font-size: 28px; }
    .flex { flex-wrap: wrap; }
    .flex.gap-16 { gap: 12px; }
    .card { padding: 14px; border-radius: 12px; }
    .page-title { font-size: 20px; }
    h1 { font-size: 20px; }
    /* 统计卡片在手机上占满宽度 */
    .flex > .flex-1 { min-width: 100% !important; }
    /* 表格横向滚动 */
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px; white-space: nowrap; }
    /* 模态框适配 */
    .modal-content { max-width: 95% !important; margin: 10px !important; }
    /* 标签和按钮适配 */
    .tag { font-size: 12px; padding: 3px 8px; }
    /* 让按钮在手机上更易点击 */
    .btn { font-size: 14px; padding: 10px 16px; }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-item:active { background: var(--accent-light); }
    .card:active { transform: scale(0.99); transition: transform 0.1s; }
    .btn:active { transform: scale(0.97); }
    /* 防止长按选择文本 */
    .nav-item, .btn, .tag, .stat-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* iPad 横屏优化 */
@media (min-width: 1024px) and (max-width: 1366px) and (pointer: coarse) {
    .sidebar { width: 220px; }
    .content { padding: 20px 24px; }
    .nav-item { padding: 10px 14px; min-height: 44px; }
}

/* 暗色模式适配移动端遮罩 */
[data-theme="dark"] .mobile-topbar { background: var(--bg-sidebar); }

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

/* ==================== 杂项 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.font-bold { font-weight: 700; }
.font-sm { font-size: 13px; }
.font-xs { font-size: 12px; }
.p-12 { padding: 12px; }
.p-20 { padding: 20px; }
.rounded { border-radius: var(--radius); }
.bg-card { background: var(--bg-card); }
.shadow { box-shadow: var(--shadow); }
.border { border: 1px solid var(--border); }
.rounded-sm { border-radius: var(--radius-sm); }

/* ==================== 主题切换按钮 ==================== */
.theme-toggle {
    position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
    border-radius: 50%; border: none; cursor: pointer; font-size: 20px;
    box-shadow: var(--shadow-lg); z-index: 999; transition: transform 0.2s;
    background: var(--bg-card); color: var(--text-primary);
}
.theme-toggle:hover { transform: scale(1.1); }

/* ==================== 首次使用引导 ==================== */
.onboarding-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.onboarding-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 40px 36px; width: 440px; max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
    animation: slideUp 0.4s ease;
}
.onboarding-step .onboarding-emoji { font-size: 48px; margin-bottom: 16px; }
.onboarding-step h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.onboarding-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.onboarding-tip {
    margin-top: 16px; padding: 12px; background: var(--accent-light);
    border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary);
}
.onboarding-nav { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.onboarding-dots { display: flex; gap: 8px; justify-content: center; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.onboarding-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.onboarding-buttons { display: flex; justify-content: space-between; }
.onboarding-skip {
    padding: 10px 20px; border: none; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-tertiary); font-size: 14px; cursor: pointer;
}
.onboarding-skip:hover { color: var(--text-secondary); }
.onboarding-next {
    padding: 10px 28px; border: none; border-radius: var(--radius-sm);
    background: var(--accent-gradient); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.onboarding-next:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(236,81,150,0.4); }

/* ==================== 空状态引导 ==================== */
.empty-state {
    text-align: center; padding: 48px 20px; color: var(--text-tertiary);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state .empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state .empty-state-text { font-size: 14px; color: var(--text-tertiary); }
.empty-state p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 16px; }
.empty-state .empty-btn {
    display: inline-block; padding: 10px 24px; border: none; border-radius: var(--radius-sm);
    background: var(--accent-gradient); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s;
}
.empty-state .empty-btn:hover { transform: translateY(-1px); }

/* ==================== 动画 ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
