/* 排课页面样式 */ .schedule-page { min-height: 100vh; background: #f5f7fa; padding-bottom: 40px; } /* 页面头部 */ .page-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px; background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%); } .page-title { font-size: 18px; font-weight: 600; color: #ffffff; } .header-actions { display: flex; align-items: center; gap: 12px; } .add-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; } /* 日历区域 */ .calendar-section { background: #ffffff; margin: 12px; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #ffffff; } .calendar-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #1f2937; } .expand-icon { font-size: 12px; color: #9ca3af; } .calendar-content { padding: 0 12px 16px; } /* 星期标题 */ .calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; } .weekday-cell { display: flex; align-items: center; justify-content: center; padding: 8px 0; } .weekday-text { font-size: 12px; color: #9ca3af; font-weight: 500; } /* 日期网格 */ .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .day-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; min-height: 48px; border-radius: 12px; position: relative; } .day-cell.empty { background: transparent; } .day-cell.selected { background: #3B82F6; } .day-cell.today { border: 2px solid #3B82F6; box-sizing: border-box; } .day-text { font-size: 14px; color: #1f2937; font-weight: 500; } .day-cell.selected .day-text { color: #ffffff; } .schedule-dots { display: flex; align-items: center; gap: 2px; margin-top: 4px; height: 12px; } .dot { width: 4px; height: 4px; border-radius: 50%; background: #3B82F6; } .day-cell.selected .dot { background: #ffffff; } .dots-text { font-size: 8px; color: #3B82F6; font-weight: 600; } .day-cell.selected .dots-text { color: #ffffff; } /* 月份导航 */ .month-nav { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; } .nav-btn { display: flex; align-items: center; gap: 4px; padding: 8px 16px; font-size: 14px; color: #3B82F6; } /* 排课列表区域 */ .schedule-list-section { background: #ffffff; margin: 12px; border-radius: 16px; padding: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .section-title { font-size: 16px; font-weight: 600; color: #1f2937; } .schedule-count { font-size: 13px; color: #64748b; background: #f3f4f6; padding: 4px 10px; border-radius: 12px; } /* 排课卡片 */ .schedule-list { display: flex; flex-direction: column; gap: 12px; } .schedule-card { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: #f9fafb; border-radius: 12px; border-left: 4px solid #3B82F6; } .card-left { display: flex; align-items: center; gap: 12px; } .card-indicator { width: 8px; height: 8px; border-radius: 50%; background: #3B82F6; } .card-info { display: flex; flex-direction: column; gap: 4px; } .student-name { font-size: 15px; font-weight: 600; color: #1f2937; } .time-range { display: flex; align-items: center; gap: 6px; } .time-text { font-size: 13px; color: #64748b; } .card-actions { display: flex; align-items: center; gap: 8px; } .action-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #ffffff; } .action-btn.edit { border: 1px solid #e5e7eb; } .action-btn.delete { border: 1px solid #fee2e2; } /* 空状态 */ .empty-state { display: flex; flex-direction: column; align-items: center; padding: 24px; } .empty-text { font-size: 14px; color: #9ca3af; margin-bottom: 16px; } .add-first-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: #eff6ff; border-radius: 20px; font-size: 14px; color: #3B82F6; } /* Dialog 样式 */ .dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; } .dialog-title { font-size: 17px; font-weight: 600; color: #1f2937; } .close-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .dialog-form { padding: 20px; } .form-item { margin-bottom: 24px; } .form-item-label { font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 10px; display: block; } .form-input-wrapper { width: 100%; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden; } .form-input-wrapper:focus-within { border-color: #3B82F6; } .date-display { display: flex; align-items: center; gap: 10px; padding: 14px 16px; } .date-text { font-size: 15px; color: #1f2937; } .picker-trigger { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; min-height: 50px; } .picker-value { font-size: 15px; color: #1f2937; } .picker-placeholder { font-size: 15px; color: #9ca3af; } .picker-arrow { font-size: 12px; color: #9ca3af; } .dialog-footer { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid #f3f4f6; } .cancel-btn { flex: 1; padding: 14px; background: #f3f4f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #4b5563; } .confirm-btn { flex: 1; padding: 14px; background: #3B82F6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #ffffff; font-weight: 500; } .delete-confirm-btn { flex: 1; padding: 14px; background: #EF4444; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #ffffff; font-weight: 500; } /* 删除确认内容 */ .delete-content { padding: 24px 20px; text-align: center; } .delete-message { font-size: 15px; color: #1f2937; margin-bottom: 8px; } .delete-detail { font-size: 13px; color: #64748b; } /* 时间冲突弹窗 */ .conflict-dialog { background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); } .conflict-header { display: flex; align-items: center; gap: 12px; padding: 20px; background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); } .conflict-icon { font-size: 32px; } .conflict-title { font-size: 18px; font-weight: 600; color: #ffffff; } .conflict-content { padding: 20px; background: #ffffff; } .new-schedule-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 16px; } .new-schedule-label { font-size: 13px; color: #64748b; margin-bottom: 6px; } .new-schedule-value { font-size: 15px; color: #1f2937; font-weight: 500; } .conflict-divider { height: 1px; background: #e2e8f0; margin: 16px 0; } .existing-label { font-size: 14px; color: #374151; font-weight: 500; margin-bottom: 12px; } .existing-schedules { display: flex; flex-direction: column; gap: 12px; } .existing-schedule-item { display: flex; align-items: center; gap: 12px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; } .existing-icon { font-size: 24px; } .existing-info { display: flex; flex-direction: column; gap: 4px; } .existing-student { font-size: 15px; color: #1f2937; font-weight: 500; } .existing-time { font-size: 13px; color: #64748b; } .conflict-tip { margin-top: 16px; padding: 12px 16px; background: #ffffff; border-radius: 8px; border: 1px solid #e5e7eb; } .tip-text { font-size: 13px; color: #64748b; text-align: center; } .conflict-footer { padding: 16px 20px; padding-top: 0; background: #ffffff; } .conflict-confirm-btn { width: 100%; padding: 16px; background: #3B82F6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #ffffff; font-weight: 500; }