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

:root {
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --primary-light: #7dd3fc;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==================== 登录页面 ==================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: bgMove 30s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.2);
    width: 420px;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

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

.login-header h1 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.login-header h2 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--bg-main);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

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

.login-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ==================== 主应用容器 ==================== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==================== 顶部标题栏 ==================== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.month-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.month-select:hover {
    border-color: var(--primary);
}

.month-select option {
    background: white;
    color: #333;
}

.current-user {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.btn-logout {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 导航栏 ==================== */
.nav-bar {
    background: white;
    padding: 0 32px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.nav-btn {
    padding: 16px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--primary);
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
}

.nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ==================== 主内容区域 ==================== */
.main-content {
    flex: 1;
    padding: 24px 32px;
    overflow: auto;
    background: var(--bg-main);
}

/* ==================== 页脚 ==================== */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 32px;
    color: var(--text-muted);
    font-size: 12px;
}

.page { display: none; }
.page.active { display: block; }

/* ==================== 页面标题 ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 6px;
}

/* ==================== Dashboard样式 ==================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card-green::before { background: linear-gradient(90deg, #10b981, #34d399); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-card-blue .stat-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.stat-card-orange .stat-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.stat-card-green .stat-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }

.stat-info { flex: 1; }

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.panel-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -24px -24px 16px -24px;
}

.panel-header-row .panel-title {
    margin: 0;
    margin-bottom: 0;
}

.panel-badge {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ==================== 待处理列表 ==================== */
.pending-list {
    max-height: 420px;
    overflow-y: auto;
}

.pending-list::-webkit-scrollbar {
    width: 6px;
}

.pending-list::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 3px;
}

.pending-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: all 0.2s ease;
    background: var(--bg-main);
}

.pending-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.pending-info { flex: 1; }

.pending-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.pending-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* ==================== 迷你日历 ==================== */
.calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mini-weekday {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px 0;
    font-weight: 600;
}

.mini-day {
    text-align: center;
    padding: 10px 4px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mini-day:hover {
    background: var(--bg-main);
    transform: scale(1.1);
}

.mini-day.today {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mini-day.has-activity {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: var(--primary-dark);
    font-weight: 600;
}

.mini-day.other-month {
    color: var(--border);
}

.month-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-main);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-nav-btn:hover {
    background: var(--primary);
    color: white;
}

/* ==================== 表格样式 ==================== */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: var(--bg-main);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.03), transparent);
}

.data-table td:hover {
    overflow: visible;
    white-space: normal;
}

/* ==================== 标签页 ==================== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== 状态标签 ==================== */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-pending {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-confirmed {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #6ee7b7;
}

.status-completed {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-cancelled {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
    border-color: #fca5a5;
}

.status-active {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #6ee7b7;
}

.status-locked {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #4b5563;
    border-color: #d1d5db;
}

.status-inactive {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
    border-color: #fca5a5;
}

.status-draft {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

/* 预约申请页面状态样式 - 统一使用标准色系 */
.status-pending-decompose {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-decomposed {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-partial-decompose {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: #fcd34d;
}

.status-pending-schedule {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-scheduled {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #6ee7b7;
}

.status-pending-decompose {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

/* 批次表格中的状态样式 - 按状态值命名 */
.status-pending_primary_decomposition {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-primary_decomposed {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-partial_primary_decomposed {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: #fcd34d;
}

.status-pending_scheduling {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-pending_confirmation {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: #fcd34d;
}

.status-scheduled {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
    border-color: #4ade80;
}

.status-completed {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #6ee7b7;
}

.status-cancelled {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #6b7280;
    border-color: #d1d5db;
}

.status-pending {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border-color: #fb923c;
}

.status-confirmed {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
    border-color: #4ade80;
}

/* 二次分解状态 */
.status-pending_secondary_decomposition {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

.status-decomposed {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #6ee7b7;
}

.status-partial_decomposed {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: #fcd34d;
}

.status-partial_scheduled {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: #fcd34d;
}

.status-scheduling_failed {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border-color: #fca5a5;
}

/* ==================== 模态框 ==================== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container.hidden { display: none; }

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ==================== 取消活动预览表格 ==================== */
.cancel-preview {
    margin-top: 16px;
    max-height: 350px;
    overflow-y: auto;
    background: #fafafa;
    border-radius: var(--radius);
    padding: 12px;
}

.cancel-summary {
    padding: 10px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: var(--radius);
    margin-bottom: 12px;
    color: #1d4ed8;
    font-size: 14px;
}

.cancel-table-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cancel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
}

.cancel-table thead {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
}

.cancel-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.cancel-table th.th-checkbox {
    width: 40px;
    text-align: center;
}

.cancel-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.cancel-table td.td-checkbox {
    text-align: center;
}

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

.cancel-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.cancel-table tbody tr:nth-child(even):hover {
    background: #f3f4f6;
}

.cancel-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.empty-tip {
    text-align: center;
    color: #9ca3af;
    padding: 30px;
    font-size: 14px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
}

/* ==================== 表单样式 ==================== */
.form-group { margin-bottom: 16px; }

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ==================== 快捷标签 ==================== */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border: none;
}

.quick-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ==================== 数据中心 ==================== */
.data-section {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.data-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== 筛选组 ==================== */
.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ==================== 可用时段日历 ==================== */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.availability-header {
    background: var(--bg-main);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.availability-cell {
    background: white;
    padding: 12px 8px;
    min-height: 70px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.availability-cell:hover {
    background: var(--bg-main);
}

.availability-cell.available {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.availability-cell.occupied {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.availability-cell.partial {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* ==================== 时间段列表 ==================== */
.time-slot-list { margin-top: 12px; }

.time-slot-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}

.time-slot-item.available {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
}

.time-slot-item.occupied {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

/* ==================== 多选列表样式 ==================== */
.multi-select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-main);
    min-height: 60px;
}

.multi-select-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.multi-select-item:hover {
    border-color: var(--primary);
    background: white;
}

.multi-select-item input { margin-right: 8px; }

.multi-select-item:has(input:checked) {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

/* ==================== 日历样式 ==================== */
.calendar-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border);
}

.calendar-header h2 {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 700;
}

.calendar-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    overflow: hidden;
}

.calendar-weekday {
    background: var(--bg-main);
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.calendar-day {
    border: 1px solid var(--border);
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 90px;
}

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

.calendar-day.other-month {
    background: var(--bg-main);
    color: var(--border);
}

.calendar-day.today {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #e0e7ff, #f0f4ff);
}

.calendar-day.has-activity {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
}

.day-number {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-count {
    font-size: 11px;
    color: #be185d;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}

.activity-preview {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 物料显示样式 ==================== */
.material-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.material-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
}

.material-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

/* ==================== 部门活动清单卡片 ==================== */
.department-activity-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.department-activity-card h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.department-activity-card .activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-main);
}

.department-activity-card .activity-item:last-child {
    margin-bottom: 0;
}

/* ==================== 活动清单状态 ==================== */
.activity-list-status {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.status-summary {
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
}

.status-summary.pending {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
}

.status-summary.approved {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
}

.status-summary.rejected {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

/* ==================== 审核操作区 ==================== */
.review-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-bar {
        overflow-x: auto;
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .calendar-container {
        height: auto;
        min-height: 500px;
    }

    .modal-content {
        padding: 24px;
        margin: 16px;
    }
}

/* ==================== 排期操作页面样式 ==================== */
.page-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.scheduling-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-value.highlight {
    color: var(--primary);
}

.info-unit {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== 排期状态页面样式 ==================== */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== 执行情况筛选栏样式 ==================== */
.execution-filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.execution-filter-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.execution-filter-bar .filter-group:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

.execution-filter-bar .filter-group label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.execution-filter-bar .filter-group input {
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    min-width: 100px;
    color: var(--text-primary);
}

.execution-filter-bar .filter-group input::placeholder {
    color: #94a3b8;
}

.execution-filter-bar .filter-group span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.execution-filter-bar .btn-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.execution-filter-bar .btn-primary,
.execution-filter-bar .btn-export {
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.execution-filter-bar .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.execution-filter-bar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.execution-filter-bar .btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.execution-filter-bar .btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.execution-filter-bar .btn-secondary {
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.execution-filter-bar .btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

#scheduleCalendarContainer {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
}

/* 日历活动详情弹窗 */
.day-detail-modal {
    max-width: 700px;
}

.day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.day-detail-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.day-detail-count {
    padding: 6px 12px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
}

.booking-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-time {
    min-width: 80px;
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.booking-info {
    flex: 1;
}

.booking-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.booking-title .class-name {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 8px;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.booking-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
}

.booking-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 排期操作按钮组 */
.action-btn-group {
    display: flex;
    gap: 8px;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
}

/* ==================== 排期结果区域样式 ==================== */
.schedule-result-area {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 24px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e0f7ff, #f0f9ff);
    border-bottom: 1px solid var(--border);
}

.result-header h3 {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 700;
}

.result-content {
    padding: 24px;
}

.result-booking-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.result-item {
    text-align: center;
}

.result-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-success {
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: var(--radius);
    border-left: 4px solid var(--success);
}

.result-success h4 {
    color: #047857;
    margin-bottom: 12px;
    font-size: 15px;
}

.result-fail {
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
}

.result-fail h4 {
    color: #dc2626;
    margin-bottom: 12px;
    font-size: 15px;
}

.result-detail-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.result-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.result-detail-item strong {
    color: var(--text-primary);
}

/* ==================== 错误提示模态框 ==================== */
.error-modal {
    max-width: 500px;
}

.error-modal h3 {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-modal h3::before {
    content: "⚠️";
}

.error-content {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #991b1b;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    border-left: 4px solid var(--danger);
}
/* ==================== 分解功能样式 ==================== */
.decompose-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.decompose-info .info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.decompose-info .info-row.full-width {
    display: block;
}

.decompose-info .info-item {
    flex: 1;
    font-size: 14px;
    color: #334155;
}

.decompose-info p {
    margin: 4px 0;
    font-size: 14px;
}

.decompose-items {
    max-height: 400px;
    overflow-y: auto;
}

.decompose-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.decompose-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

.decompose-summary {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 14px 20px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid #90caf9;
}

.decompose-summary p {
    margin: 0;
    font-size: 15px;
    color: #0d47a1;
    font-weight: 500;
}

/* ==================== 资源状态日历样式 ==================== */
.calendar-day.status-free {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.calendar-day.status-occupied {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.calendar-day.status-partial {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.schedule-count {
    font-size: 11px;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    margin-top: 4px;
}

/* 日历汇总栏 */
.calendar-summary {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-top: 1px solid var(--border);
    justify-content: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-item.summary-free .summary-value {
    color: var(--success);
}

.summary-item.summary-occupied .summary-value {
    color: var(--danger);
}

/* 不可用日期样式 */
.calendar-day.status-unavailable {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: var(--text-muted);
}

.unavailable-label {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
    margin-top: 4px;
}

/* ==================== 单选组样式 ==================== */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 12px;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ==================== 链接按钮样式 ==================== */
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0 0 0 12px;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* ==================== 排期操作标签页样式 ==================== */
.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.tab-nav .tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-nav .tab-btn:hover {
    color: var(--primary);
}

.tab-nav .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ==================== 数据上传状态样式 ==================== */
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-imported {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 按钮样式补充 */
.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* 修改密码表单样式 */
.form-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-container .form-group {
    margin-bottom: 16px;
}

.form-container .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-container .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-container .form-actions {
    margin-top: 24px;
    text-align: left;
}

/* ==================== 批次卡片样式 ==================== */
.batches-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.batch-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

/* 卡片右上角状态图标 */
.batch-card-status-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    opacity: 0.8;
    z-index: 1;
}

/* 卡片状态边框颜色 */
.batch-card-pending_primary_decomposition {
    border-left: 4px solid #f97316;
}

.batch-card-primary_decomposed {
    border-left: 4px solid #3b82f6;
}

.batch-card-partial_primary_decomposed {
    border-left: 4px solid #eab308;
}

.batch-card-pending_scheduling {
    border-left: 4px solid #eab308;
}

.batch-card-scheduled {
    border-left: 4px solid #22c55e;
}

.batch-card-completed {
    border-left: 4px solid #10b981;
}

.batch-card-cancelled {
    border-left: 4px solid #9ca3af;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}

.batch-client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.batch-client-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.batch-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.batch-status {
    font-size: 14px;
}

.batch-contact {
    padding: 10px 20px;
    background: #fafafa;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.batch-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.batch-table thead {
    background: #f5f5f5;
}

.batch-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.batch-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

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

.batch-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 批量取消预览样式 */
.preview-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.preview-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.preview-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.preview-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

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

.preview-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.preview-client {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
}

.preview-course {
    color: var(--text-secondary);
    min-width: 80px;
}

.preview-date {
    color: var(--text-primary);
    min-width: 150px;
}

.preview-space, .preview-teacher {
    color: var(--text-secondary);
    min-width: 70px;
}

.modal-desc {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 资源影响提示样式 */
.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.alert-warning p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

.impact-schedule-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

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

.impact-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.impact-client {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
}

.impact-course {
    color: var(--text-secondary);
    min-width: 80px;
}

.impact-date {
    color: var(--text-primary);
    min-width: 150px;
}

.text-success {
    color: #166534;
    font-weight: 500;
}

.text-error {
    color: #dc2626;
    font-weight: 500;
}

/* 活动安排表多活动显示样式 */
#arrangementTableBody .activity-item {
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
    line-height: 1.4;
}

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