/* ============================================
   PC Web - Quick快排班 / 考拉学习 v3
   设计语言：与移动端小程序统一
   ============================================ */

/* Global Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* -------- Design Tokens --------
   主色:     #4F6EF7
   主色浅:   #EEF0FF
   文字主:   #1A1A1A
   文字次:   #6B7280
   文字弱:   #9CA3AF / #8E8E93
   背景:     #F5F6FA
   卡片:     #FFFFFF
   边框:     #F3F4F6 / #E5E7EB
   圆角卡片: 16px
   圆角按钮: 14px
   圆角pill: 32px
   阴影卡片: 0 2px 12px rgba(0,0,0,0.04)
   阴影按钮: 0 4px 16px rgba(79,110,247,0.25)
   --------------------------------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  background: #F5F6FA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Layout
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   Sidebar (PC专属暗色侧边栏)
   ============================================ */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.sidebar-logo-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px auto;
  border-radius: 14px;
}

.sidebar-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  margin: 2px 12px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 10px;
  border-left: none;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(79,110,247,0.3);
  font-weight: 600;
}

.nav-icon {
  margin-right: 14px;
  font-size: 20px;
  width: 24px;
  height: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

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

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  max-height: 100vh;
  background: #F5F6FA;
  min-width: 0;
}

.page {
  display: none;
  animation: fadeSlideIn 0.25s ease;
  max-width: 100%;
}

.page.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Page Titles (mobile style)
   ============================================ */
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-subtitle {
  font-size: 14px;
  color: #9CA3AF;
  font-style: italic;
  margin-bottom: 24px;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  overflow-x: auto;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Filter Bar & Chips
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 32px;
  border: 1.5px solid #E5E7EB;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  user-select: none;
  font-weight: 500;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: #4F6EF7;
  color: #4F6EF7;
}

.filter-chip.active {
  background: #4F6EF7;
  border-color: #4F6EF7;
  color: #fff;
  font-weight: 600;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Department Dropdown
   ============================================ */
.dept-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-height: 300px;
  min-width: 200px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dept-dropdown-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 240px;
}

.dept-dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  color: #1A1A1A;
  transition: background 0.15s;
}

.dept-dropdown-item:hover { background: #F3F4F6; }

.dept-dropdown-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background: #F9FAFB;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  border-radius: 12px 12px 0 0;
}

.dept-dropdown-search:focus {
  border-bottom-color: #4F6EF7;
  background: #fff;
}

.dept-dropdown-btn {
  font-family: inherit;
}

.dept-dropdown-btn:hover { border-color: #4F6EF7 !important; }

/* ============================================
   Search Input
   ============================================ */
.search-input {
  width: 260px;
  height: 40px;
  background: #F3F4F6;
  border: none;
  border-radius: 32px;
  padding: 0 20px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(79,110,247,0.15);
}

.search-input::placeholder { color: #9CA3AF; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  user-select: none;
  font-family: inherit;
}

.btn-primary {
  background: #4F6EF7;
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,110,247,0.25);
}

.btn-primary:hover {
  background: #6366F1;
  box-shadow: 0 6px 20px rgba(79,110,247,0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79,110,247,0.2);
}

.btn-danger {
  background: #EF4444;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: #F87171;
  box-shadow: 0 6px 16px rgba(239,68,68,0.3);
}

.btn-default {
  background: #F3F4F6;
  color: #1F2937;
}

.btn-default:hover {
  background: #E5E7EB;
}

.btn-success {
  background: #10B981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}

.btn-success:hover {
  background: #34D399;
}

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 10px; }

.btn-block { width: 100%; }

/* ============================================
   Calendar
   ============================================ */
.calendar {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4F6EF7, #7C5CFC);
  color: #fff;
}

.calendar-header .arrow {
  font-size: 24px;
  cursor: pointer;
  padding: 0 20px;
  color: rgba(255,255,255,0.7);
  user-select: none;
  transition: color 0.15s;
}

.calendar-header .arrow:hover { color: #fff; }

.month-title {
  font-size: 17px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
}

.week-cell {
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #9CA3AF;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.date-cell {
  min-height: 100px;
  padding: 8px;
  border-bottom: 1px solid #F3F4F6;
  border-right: 1px solid #F3F4F6;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}

.date-cell:nth-child(7n) { border-right: none; }

.date-cell:hover { background: #F9FAFB; }

.date-cell:active { background: #EEF0FF; transform: scale(0.97); }

.date-cell.dimmed { opacity: 0.3; }

.date-cell.dimmed:hover { opacity: 0.5; }

.date-cell.today {
  background: linear-gradient(180deg, #EEF0FF 0%, #FFFFFF 100%);
}

.date-cell.today .day-num {
  color: #4F6EF7;
  font-weight: 800;
  background: #EEF0FF;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.date-cell.selected {
  background: #EEF0FF;
}

.date-cell.selected .day-num {
  color: #fff;
  font-weight: 800;
  background: #4F6EF7;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.date-cell.weekend { background: #FAFAFA; }

.day-num {
  font-size: 14px;
  color: #1A1A1A;
  margin-bottom: 4px;
  flex-shrink: 0;
  font-weight: 500;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.weekend-text { color: #EF4444 !important; }

.holiday-tag {
  font-size: 10px;
  color: #EF4444;
  background: #FEF2F2;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.4;
  font-weight: 500;
}

.shift-bars {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shift-bar {
  padding: 3px 6px;
  border-radius: 4px;
}

.shift-label {
  font-size: 11px;
  color: #fff;
  display: block;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.name-list {
  margin-top: auto;
  padding: 2px;
}

.name-text {
  font-size: 10px;
  color: #6B7280;
  line-height: 1.4;
  word-break: break-all;
}

/* ============================================
   Day Detail
   ============================================ */
.day-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}

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

.day-schedule-user { display: flex; flex-direction: column; min-width: 100px; }

.day-schedule-name {
  font-size: 15px;
  font-weight: 600;
  color: #4F6EF7;
  cursor: pointer;
}

.day-schedule-name:hover { text-decoration: underline; }

.day-schedule-dept { font-size: 12px; color: #9CA3AF; margin-top: 2px; }

/* ============================================
   Shift Tag
   ============================================ */
.shift-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.shift-tag-time {
  font-size: 11px;
  opacity: 0.85;
  margin-left: 8px;
}

/* ============================================
   Duty Card (总值班)
   ============================================ */
.duty-card {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(239,68,68,0.25);
}

.duty-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.duty-icon { font-size: 28px; margin-right: 10px; }

.duty-title { font-size: 17px; opacity: 0.9; font-weight: 600; }

.duty-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.duty-person:last-of-type { margin-bottom: 0; }

.duty-person-info { display: flex; align-items: center; gap: 12px; }

.duty-call-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  color: #fff;
  flex-shrink: 0;
  margin-right: 10px;
  transition: background 0.15s;
}

.duty-call-btn:hover { background: rgba(255,255,255,0.35); }

.duty-name {
  font-size: 22px;
  font-weight: 800;
  margin-right: 12px;
  cursor: pointer;
  text-decoration: none;
}

.duty-dept { font-size: 13px; opacity: 0.7; }

.duty-person-countdown { text-align: right; }

.countdown-label { font-size: 11px; opacity: 0.6; display: block; }

.countdown-time { font-size: 20px; font-weight: 800; }

/* ============================================
   Quick Actions
   ============================================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: #F9FAFB;
}

.quick-action:hover {
  background: #EEF0FF;
  transform: translateY(-2px);
}

.action-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.action-text {
  font-size: 13px;
  color: #6B7280;
  font-weight: 600;
}

/* ============================================
   Panel Overlay (底部弹出面板)
   ============================================ */
.panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.panel-container {
  width: 520px;
  max-height: 75%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #F3F4F6;
}

.panel-date { font-size: 17px; font-weight: 700; color: #1A1A1A; }

.panel-close {
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px 8px;
}
.panel-close:hover { color: #1A1A1A; }

.panel-section { padding: 20px 24px; border-bottom: 1px solid #F3F4F6; }

.panel-label {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 14px;
  font-weight: 500;
}

.panel-btn {
  margin: 20px 24px;
  height: 48px;
  width: calc(100% - 48px);
  font-size: 16px;
  border-radius: 14px;
}

/* ============================================
   Shift Option
   ============================================ */
.shift-option {
  padding: 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  margin-right: 12px;
  margin-bottom: 8px;
  display: inline-block;
  transition: all 0.15s;
}

.shift-option:hover { border-color: #C7D2FE; }

.shift-option.active {
  border-color: #4F6EF7;
  background: #EEF0FF;
}

/* ============================================
   Member Tag
   ============================================ */
.member-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #EEF0FF;
  color: #4F6EF7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 10px;
  margin-bottom: 8px;
}

.member-tag.add-tag {
  background: #fff;
  border: 2px dashed #4F6EF7;
  cursor: pointer;
}

.remove-icon {
  margin-left: 8px;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.remove-icon:hover { color: #EF4444; }

/* ============================================
   Picker Modal
   ============================================ */
.picker-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-panel {
  width: 540px;
  max-height: 70%;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #F3F4F6;
}

.picker-title { font-size: 17px; font-weight: 700; color: #1A1A1A; }

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

.picker-footer {
  padding: 14px 24px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.picker-search { margin-bottom: 14px; }

.picker-search .search-input { width: 100%; }

.picker-user {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.picker-user:hover { background: #F9FAFB; }

.picker-user.selected { background: #EEF0FF; }

.picker-check {
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 6px;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.15s;
}

.picker-user.selected .picker-check {
  background: #4F6EF7;
  border-color: #4F6EF7;
}

.picker-user-name { font-size: 14px; font-weight: 500; color: #1A1A1A; flex: 1; }

.picker-user-dept { font-size: 12px; color: #9CA3AF; }

/* ============================================
   Tabs
   ============================================ */
.tabs {
  display: flex;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.tab:hover { color: #4F6EF7; }

.tab.active {
  color: #4F6EF7;
  font-weight: 700;
  border-bottom-color: #4F6EF7;
}

/* ============================================
   Statistics
   ============================================ */
.stat-item {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.stat-row:hover { background: #F9FAFB; }

.stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
}

.stat-name { font-size: 15px; font-weight: 500; color: #1A1A1A; flex: 1; }

.stat-dept { font-size: 12px; color: #9CA3AF; margin-right: 12px; }

.stat-count {
  font-size: 15px;
  font-weight: 700;
  color: #4F6EF7;
  margin-right: 10px;
}

.stat-arrow {
  font-size: 18px;
  color: #D1D5DB;
  transition: transform 0.2s;
}

.stat-arrow.expanded { transform: rotate(90deg); }

.stat-detail {
  padding: 0 20px 18px;
  border-top: 1px solid #F3F4F6;
}

.detail-section-title {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
  padding: 16px 0 10px;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F9FAFB;
}

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

.detail-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }

.detail-date { font-size: 13px; color: #1A1A1A; min-width: 120px; }

.detail-user { font-size: 13px; color: #6B7280; }

.detail-name { font-size: 13px; color: #1A1A1A; font-weight: 500; flex: 1; }

.detail-count { font-size: 13px; color: #4F6EF7; font-weight: 600; }

.detail-item-tappable { cursor: pointer; border-radius: 6px; padding: 8px 6px; }
.detail-item-tappable:hover { background: #F9FAFB; }

.stat-arrow-small {
  font-size: 14px;
  color: #D1D5DB;
  margin-left: 6px;
  transition: transform 0.2s;
}

.stat-arrow-small.expanded { transform: rotate(90deg); }

.shift-dates { padding: 6px 0 12px 20px; }

.dates-grid { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }

.date-tag {
  font-size: 12px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.date-tag-festival {
  color: #EF4444;
  background: #FEF2F2;
  font-weight: 600;
}

.festival-badge {
  font-size: 11px;
  color: #EF4444;
  background: #FEF2F2;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 10px;
  font-weight: 600;
}

.festival-mark {
  font-size: 10px;
  color: #EF4444;
  background: #FEF2F2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}

.detail-date-festival { color: #EF4444; font-weight: 600; }

/* ============================================
   Swap Page
   ============================================ */
.swap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

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

.swap-info { flex: 1; }

.swap-dates { font-size: 14px; font-weight: 500; color: #1A1A1A; margin-bottom: 4px; }

.swap-users { font-size: 13px; color: #6B7280; }

.swap-status {
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.swap-status.pending { background: #FEF3C7; color: #D97706; }
.swap-status.approved { background: #D1FAE5; color: #059669; }
.swap-status.rejected { background: #FEF2F2; color: #DC2626; }

.swap-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
}

.swap-tag.sub { background: #8B5CF6; }
.swap-tag.swp { background: #4F6EF7; }

/* ============================================
   Shift List Page
   ============================================ */
.shift-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

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

/* ============================================
   Mine Page
   ============================================ */
.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4F6EF7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 12px;
}

.mine-menu-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.mine-menu-item:hover { background: #F9FAFB; }

.mine-menu-item:active { background: #F3F4F6; }

/* ============================================
   Mine Schedule Cards (移动端风格)
   ============================================ */

/* 今日排班渐变卡片 */
.mine-today-card {
  background: linear-gradient(135deg, #4F6EF7, #7C5CFC);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(79,110,247,0.25);
  color: #fff;
}

.mine-today-card.rest {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  box-shadow: 0 4px 16px rgba(107,114,128,0.2);
}

.mine-today-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.mine-today-shift {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.mine-today-time {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-left: 12px;
  font-weight: 500;
}

.mine-today-empty {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  padding: 6px 0;
  font-weight: 500;
}

.mine-today-bar {
  width: 5px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 10px;
  align-self: center;
  opacity: 0.9;
}

.mine-today-row {
  display: flex;
  align-items: baseline;
  margin-top: 4px;
}

/* 排班项 */
.ms-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

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

.ms-empty { opacity: 0.7; }

/* 日期区块 */
.ms-date {
  width: 52px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ms-date-num {
  font-size: 26px;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1;
}

.ms-date-num.today { color: #4F6EF7; }

.ms-date-month {
  font-size: 11px;
  color: #8E8E93;
  margin-top: 2px;
}

/* 彩色指示条 */
.ms-dot {
  width: 6px;
  height: 30px;
  border-radius: 3px;
  margin: 0 12px;
  flex-shrink: 0;
}

/* 班次信息 */
.ms-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ms-shift {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
}

.ms-time {
  font-size: 12px;
  color: #8E8E93;
}

/* 总值班徽标 */
.ms-duty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF3E0;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #E65100;
  font-weight: 600;
  margin-top: 4px;
  width: fit-content;
}

.ms-empty-text {
  font-size: 14px;
  color: #9CA3AF;
  flex: 1;
  padding-left: 200px;
}

.ms-day-en {
  font-size: 12px;
  color: #8E8E93;
  font-style: italic;
  flex-shrink: 0;
  margin-left: auto;
}

/* 兼容旧样式 */
.mine-schedule-day {
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}

.mine-schedule-day:last-child { border-bottom: none; }

.mine-day-row {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.mine-day-date {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 600;
  min-width: 130px;
  flex-shrink: 0;
}

.mine-day-empty { font-size: 13px; color: #9CA3AF; }

/* ============================================
   Toast
   ============================================ */
.toast {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(31,41,55,0.9);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  animation: toastIn 0.25s ease;
  backdrop-filter: blur(8px);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   Phone Modal
   ============================================ */
.phone-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: toastIn 0.2s ease;
}

.phone-modal {
  background: #fff;
  border-radius: 16px;
  width: 320px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  overflow: hidden;
}

.phone-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid #F3F4F6;
}

.phone-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.phone-modal-close:hover { color: #1A1A1A; }

.phone-modal-body {
  padding: 24px 20px;
  text-align: center;
}

.phone-modal-number {
  font-size: 28px;
  font-weight: 800;
  color: #4F6EF7;
  letter-spacing: 1px;
}

/* ============================================
   Login Overlay
   ============================================ */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F5F6FA;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: #fff;
  padding: 48px 40px;
  border-radius: 20px;
  width: 420px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.login-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 8px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 48px 0;
  color: #9CA3AF;
  font-size: 14px;
}

/* ============================================
   General Table (考试端用)
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
  word-break: break-all;
}

th {
  background: #F9FAFB;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #6B7280;
  border-bottom: 2px solid #F3F4F6;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  color: #1A1A1A;
}

tr:hover td { background: #F9FAFB; }

/* ============================================
   Form Elements
   ============================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #4F6EF7;
  box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
}

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

/* ============================================
   Badges (考试端用)
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.bg-draft { background: #F3F4F6; color: #6B7280; }
.bg-published { background: #EEF0FF; color: #4F6EF7; }
.bg-ended { background: #FEF3C7; color: #D97706; }
.bg-success { background: #D1FAE5; color: #059669; }

/* ============================================
   Modal (考试端用)
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 850px;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ============================================
   Stats Cards (考试端用)
   ============================================ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}

.stat-label {
  color: #9CA3AF;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================
   Exam Related (考试端用)
   ============================================ */
.option-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  gap: 12px;
  transition: all 0.15s;
}

.option-card:hover { border-color: #C7D2FE; }

.option-card.selected {
  border-color: #4F6EF7;
  background: #EEF0FF;
}

.option-card.correct {
  border-color: #10B981;
  background: #ECFDF5;
}

.option-card.wrong {
  border-color: #EF4444;
  background: #FEF2F2;
}

.option-label {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.option-card.selected .option-label { background: #4F6EF7; color: #fff; }
.option-card.correct .option-label { background: #10B981; color: #fff; }
.option-card.wrong .option-label { background: #EF4444; color: #fff; }

.option-text { flex: 1; font-size: 14px; color: #1A1A1A; }

.question-box {
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  background: #fff;
}

.score-big { font-size: 72px; font-weight: 800; text-align: center; letter-spacing: -2px; }

.timer {
  font-size: 28px;
  font-weight: 800;
  color: #4F6EF7;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-logo { font-size: 0; padding: 16px 10px; }
  .sidebar-logo-icon { width: 36px; height: 36px; }
  .sidebar-subtitle { display: none; }
  .nav-item { padding: 14px 10px; justify-content: center; margin: 2px 6px; }
  .nav-item span:not(.nav-icon) { display: none; }
  .nav-icon { margin-right: 0; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 16px; }
  .picker-panel { width: 90%; max-height: 80%; }
  .panel-container { width: 100%; }
}
