/* ===== Search ===== */
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  height: 56px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative; /* 引擎面板的定位锚点 */
  z-index: 30; /* 引擎面板不被后方的日历/课表面板盖住（自身 backdrop-filter 会创建层叠上下文） */
}

.search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.20);
}

#search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  color: rgb(var(--color-t1));
  font-size: 16px;
  padding: 0 10px;
}

#search-input::placeholder {
  color: rgb(var(--color-t1));
  opacity: 0.45;
}

.search-box button {
  height: 44px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-box button:hover {
  background: var(--accent-hover);
}

/* 放大镜=引擎面板开关（最左侧，透明融入输入框，hover/开启时高亮） */
.search-box .engine-toggle {
  height: 44px;
  width: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgb(var(--color-t1));
  font-size: 19px;
  cursor: pointer;
  opacity: 0.75;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.search-box .engine-toggle:hover,
.search-box .engine-toggle.active {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

/* 集成搜索：引擎开关面板（站内锁定必开，其余可关；锚定放大镜按钮正下方） */
.engine-panel {
  display: none;
  position: absolute;
  z-index: 50;
  top: 60px;
  left: 6px;
  min-width: 210px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  color: #333;
}

.engine-panel.active {
  display: block;
}

.engine-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  font: var(--font-small);
  cursor: pointer;
}

.engine-item input {
  accent-color: var(--accent);
}

.engine-item input:disabled + span,
.engine-item input:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.engine-hint {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font: var(--font-small);
  color: #9ca3af;
}

/* ===== Icon tiles (tools & courses) — 正方形圆角图标 =====
   去掉整格半透明方框；图标本身为正方形圆角色块，透明格子，一行可放 10-12 个 */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 18px 14px;
  justify-items: center;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 84px;
  min-height: 84px;
  padding: 0;
  border-radius: 20px;
  background: none;
  border: none;
  text-decoration: none;
  color: rgb(var(--color-t1));
  text-shadow: var(--text-shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-tile:hover {
  transform: translateY(-3px) scale(1.05);
  opacity: 0.92;
}

/* 正方形圆角图标块 */
.icon-tile .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 32px;
  line-height: 1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-tile .icon-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.icon-tile:hover .icon {
  background: #f5f5f5;
}

.icon-tile .label {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 84px;
}

.icon-tile .desc {
  display: none;
}

/* ===== Calendar ===== */
.calendar-detail {
  font: var(--font-small);
}

/* 课表面板：纯白填充，去掉毛玻璃（与校历一致） */
.timetable-panel {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.12);
  color: #333;
  display: flex;
  flex-direction: column;
}

.timetable-panel .panel-header {
  border-bottom: 1px solid #eceef2;
  text-shadow: none;
  color: #333;
  flex-shrink: 0;
}

.timetable-panel .panel-body {
  color: #333;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 左右 12px（原 18）：给课表控件行腾单行空间 */
  padding: 16px 12px;
}

/* 校历面板：纯白填充，去掉毛玻璃 */
.calendar-panel {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.12);
  color: #333;
  display: flex;
  flex-direction: column;
}

.calendar-panel .panel-header {
  border-bottom: 1px solid #eceef2;
  text-shadow: none;
  color: #333;
  flex-shrink: 0;
  padding: 8px 14px;
}

.calendar-panel .cal-title-info {
  color: #666;
  text-shadow: none;
}

.calendar-panel .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 14px;
}

.calendar-panel .cal-table-wrap {
  border: 1px solid #eceef2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cal-title-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  max-width: 55%;
  font: var(--font-small);
  font-size: 11px;
  color: rgb(var(--color-t2));
  opacity: 0.85;
  text-shadow: var(--text-shadow-sm);
  text-align: right;
  gap: 2px;
}

.cal-title-info .cal-name {
  font-weight: 600;
  white-space: nowrap;
}

.cal-title-info .cal-term {
  opacity: 0.9;
  white-space: normal;
  line-height: 1.4;
}

.cal-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 纵向校历：月份 | 星期一~星期日 | 教学周（跨月周拆行，月份/教学周合并） */
.cal-table.cal-v {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font: var(--font-small);
  font-size: 11px;
  background: #fff;
  color: #333;
  border-radius: 8px;
}

.cal-table.cal-v th {
  padding: 4px 3px;
  text-align: center;
  background: #f5f6fa;
  font-weight: 600;
  font-size: 10px;
  color: #555;
  border-right: 1px solid #eceef2;
  white-space: nowrap;
}
.cal-table.cal-v th:first-child {
  border-right: none;
}
.cal-table.cal-v th:nth-child(2) {
  border-left: 1px solid #eceef2;
}
.cal-table.cal-v th:last-child {
  border-right: none;
}

.cal-table.cal-v th.weekend {
  color: #e02424;
}

.cal-table.cal-v td {
  padding: 2px 2px;
  text-align: center;
  border-top: 1px solid #f0f1f4;
  border-right: 1px solid #eceef2;
  white-space: nowrap;
  color: #333;
  line-height: 1.4;
}
.cal-table.cal-v td.cw-month {
  border-right: none;
}
.cal-table.cal-v td.cw-week {
  border-right: none;
}
.cal-table.cal-v td.cw-day-first {
  border-left: 1px solid #eceef2;
}

.cal-table.cal-v .cw-month {
  font-weight: 600;
  font-size: 10px;
  color: #555;
  min-width: 40px;
  background: #f8f9fb;
}

.cal-table.cal-v .cw-month .month-year {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #888;
  line-height: 1.2;
}

.cal-table.cal-v .cw-month .month-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.cal-table.cal-v .cw-month.odd {
  background: #eceff4;
}

.cal-table.cal-v .cw-week {
  position: relative;
  font-weight: 600;
  font-size: 11px;
  color: #555;
  min-width: 48px;
  background: #f8f9fb;
}

.cal-table.cal-v .cw-week.exam {
  font-weight: 700;
}

/* 考试周：仅周一至周五有天的格子着色（周末、空白单元格不着色） */
.cal-table.cal-v tr.exam-week .cw-day:not(.weekend):not(.empty) {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}
.cal-table.cal-v .cw-day {
  position: relative;
  font-size: 8.5px;
  min-width: 30px;
  padding: 2px;
  color: #333;
}

.cal-table.cal-v .cw-day.weekend {
  color: #e02424;
  font-weight: 600;
}

.cal-table.cal-v .cw-day.empty {
  background: #fff;
}

.cal-table.cal-v .cw-day.holiday {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
}

/* 校历事件标注：新生上课/补课/运动会（蓝色调，区别于节假日黄） */
.cal-table.cal-v .cw-day.event {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

/* 当前天：橙色背景 + 白色文字 + 加粗 */
.cal-table.cal-v .cw-day.today {
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(10, 132, 255, 0.35);
}
.cal-table.cal-v tr.current-week .cw-week {
  background: #cfe2ff;
  color: #1a5fd0;
  border-left: 3px solid #1a5fd0;
}

/* 当前教学周：整周外围蓝色细边框（跨月周拆行时内部边框不变） */
.cal-table.cal-v tr.current-week .cw-day.cw-cur-top {
  border-top: 1px solid #1a5fd0;
}
.cal-table.cal-v tr.current-week .cw-day.cw-cur-bottom {
  border-bottom: 1px solid #1a5fd0;
}
.cal-table.cal-v tr.current-week .cw-day.cw-cur-left {
  border-left: 1px solid #1a5fd0;
}
.cal-table.cal-v tr.current-week .cw-day.cw-cur-right {
  border-right: none;
}
.cal-table.cal-v tr.after-current .cw-day {
  border-top: none;
}

.cal-table.cal-v .cw-exam-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  color: #d97706;
  pointer-events: none;
}

.cal-legend {
  margin-top: 8px;
  font-size: 11px;
  color: #666;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-legend .legend-weekend {
  color: #e02424;
}

.cal-legend .legend-holiday {
  color: #b45309;
}

.cal-legend .legend-exam {
  color: #15803d;
}

.cal-legend .legend-event {
  color: #1d4ed8;
}

.cal-tooltip {
  position: fixed;
  z-index: 9999;
  padding: 5px 10px;
  background: rgba(30, 30, 50, 0.95);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 被拦截引擎的提示条 + 直达链接徽章（琥珀色，与周次提示同系） */
.search-blocked {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 12px;
  font: var(--font-small);
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.sb-link {
  padding: 2px 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 6px;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.sb-link:hover {
  filter: brightness(1.12);
}

/* ===== Timetable ===== */
.timetable-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.tt-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1e40af;
  white-space: nowrap;
  line-height: 1;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  flex-shrink: 0;
}

.timetable-controls select {
  height: 32px;
  flex: 1 1 96px;
  min-width: 0;
  padding: 0 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #333;
  font: var(--font-small);
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
}

/* 三个下拉按内容宽分配 basis：机房最短(X-103)、教学周/班级中等，保证窄面板也单行 */
.timetable-controls #room-select {
  flex: 1 1 62px;
}

.timetable-controls #week-select {
  flex: 1 1 104px;
}

.timetable-controls #class-select {
  flex: 1 1 98px;
}

.timetable-controls select:focus {
  border-color: var(--accent);
}

.timetable-controls select option {
  background: #fff;
  color: #333;
}

/* 非本周查看提示条（琥珀色，与蓝色"当前课"区分语义） */
.week-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 5px 12px;
  font: var(--font-small);
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.week-hint-btn {
  height: 24px;
  padding: 0 10px;
  font: var(--font-small);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.week-hint-btn:hover {
  filter: brightness(1.12);
}

/* 当前作息状态条（真实作息状态机） */
.now-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  font: var(--font-small);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 100%;
  line-height: 1.5;
}
.now-status.live {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}
/* 上课中且有课：详情高亮（课程/教师/班级/人数/周次/机房） */
.now-status.live.detail {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  animation: now-status-pulse 2s ease-in-out infinite;
}
@keyframes now-status-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 2px 16px rgba(37, 99, 235, 0.55); }
}
.now-status.break {
  color: #b45309;
  background: rgba(253, 230, 138, 0.9);
}
.now-status.idle {
  color: #3730a3;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-color: rgba(99, 102, 241, 0.35);
}

.timetable-grid {
  display: grid;
  grid-template-columns: 60px repeat(5, minmax(0, 1fr));
  grid-template-rows: auto repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #e5e7eb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  font: var(--font-small);
  flex: 1;
}

.timetable-grid .th {
  padding: 5px 4px;
  text-align: center;
  background: #f5f6fa;
  font-weight: 600;
  color: #555;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timetable-grid .td {
  padding: 6px 4px;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  word-break: break-all;
  font-size: 13px;
  color: #333;
}

.timetable-grid .td .c-name {
  line-height: 1.25;
  font-weight: 600;
}

.timetable-grid .td .c-room {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 0 5px;
  line-height: 1.4;
}

/* 能力培养老师徽标：暖色区分于机房灰徽标 */
.timetable-grid .td .c-teacher {
  font-size: 11px;
  color: #92400e;
  font-weight: 500;
  background: #fef3c7;
  border-radius: 6px;
  padding: 0 5px;
  line-height: 1.4;
}

.timetable-grid .td.current-class {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: 2px solid #1e40af;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 3px 12px rgba(37, 99, 235, 0.4);
  z-index: 1;
}

.timetable-grid .td.empty::after {
  content: "-";
  color: #c0c4cc;
}

@media (max-width: 560px) {
  .search-box {
    height: 50px;
  }

  .search-box button {
    height: 40px;
    padding: 0 18px;
  }

  .timetable-grid {
    grid-template-columns: 58px repeat(5, minmax(0, 1fr));
    font-size: 11px;
  }
}

/* ===== Wallpaper picker modal ===== */
.modal.modal-wide {
  width: 640px;
  max-width: calc(100vw - 32px);
}

/* ===== 公告弹窗（announcements.json 驱动，倒计时自动关 + 手动关） ===== */
.modal-notice {
  width: 480px;
  max-width: calc(100vw - 32px);
  position: relative;
}

/* 公告标题比通用弹窗标题大两号（17→20px） */
.modal-notice h3 {
  font-size: 20px;
}

.notice-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: rgb(var(--color-t2));
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notice-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.notice-body {
  /* 正文 15px（原 14px 再加 1 号），仍小于标题 20px */
  font: 400 15px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: rgb(var(--color-t2));
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow-y: auto;
}

/* 公告核心标题列表（announcements.json items 驱动） */
.notice-list {
  margin: 0;
  padding-left: 20px;
}

.notice-list li {
  margin: 6px 0;
  line-height: 1.7;
}

.notice-countdown {
  margin-top: 16px;
  font: var(--font-small);
  opacity: 0.55;
  text-align: right;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.wallpaper-tile {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wallpaper-tile:hover {
  transform: scale(1.02);
}

.wallpaper-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.4);
}

/* 毛玻璃滑块 */
.glass-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
}

.glass-control label {
  margin: 0;
  white-space: nowrap;
}

.glass-control input[type="range"] {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  accent-color: var(--accent);
}

.glass-control .glass-value {
  min-width: 36px;
  text-align: right;
  font: var(--font-small);
  color: rgb(var(--color-t2));
  opacity: 0.85;
}

/* ===== 补考安排 ===== */
.btn-makeup {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.btn-makeup:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}
.btn-makeup:active {
  transform: translateY(0);
}

/* 补考模态窗口：浅色主题，覆盖 base.css 暗色 */
.modal-makeup {
  max-width: 780px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  color: #333;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal-makeup h3 {
  color: #333;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #eceef2;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}

#makeup-modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.makeup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
}
.makeup-close:hover {
  color: #333;
}

.makeup-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid #eceef2;
  overflow-x: auto;
}
.makeup-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
}
.makeup-tab:hover {
  color: #333;
  background: #f8f9fb;
}
.makeup-tab.active {
  color: #15803d;
  border-bottom-color: #15803d;
  position: relative;
  z-index: 1;
}
.makeup-tab.today {
  background: #16a34a;
  color: #fff;
  border-radius: 6px 6px 0 0;
  border-bottom-color: #16a34a;
}
.makeup-tab.today .tab-time {
  color: #dcfce7;
}
.makeup-tab.today.active {
  background: #15803d;
  color: #fff;
  border-bottom-color: #15803d;
}
.makeup-tab .tab-time {
  font-size: 9px;
  font-weight: 400;
  color: #999;
}

.makeup-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.makeup-time {
  font-size: 12px;
  color: #d97706;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #fffbeb;
  border-radius: 4px;
  border-left: 3px solid #f59e0b;
}
.makeup-table-wrap {
  overflow-x: auto;
}
.makeup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.makeup-table th {
  background: #f8f9fb;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eceef2;
  position: sticky;
  top: 0;
}
.makeup-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #333;
}
.makeup-table tr:hover td {
  background: #f9fafb;
}
.makeup-table .room-cell {
  font-weight: 600;
  color: #2563eb;
}

/* ===== 技能证书考试 ===== */
.btn-skillcert {
  margin-left: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-skillcert:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.btn-skillcert:active {
  transform: translateY(0);
}

.modal-skillcert {
  max-width: 780px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  color: #333;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal-skillcert h3 {
  color: #333;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #eceef2;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}
#skillcert-modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.skillcert-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
}
.skillcert-close:hover {
  color: #333;
}
.skillcert-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid #eceef2;
  overflow-x: auto;
}
.skillcert-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.skillcert-tab:hover {
  color: #333;
  background: #f8f9fb;
}
.skillcert-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.skillcert-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.skillcert-table-wrap {
  overflow-x: auto;
}
.skillcert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.skillcert-table th {
  background: #f8f9fb;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eceef2;
  position: sticky;
  top: 0;
}
.skillcert-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #333;
}
.skillcert-table tr:hover td {
  background: #f9fafb;
}
.skillcert-table .room-cell {
  font-weight: 600;
  color: #2563eb;
}
.skillcert-staff {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 11px;
  color: #555;
  background: #f8fafb;
  border-radius: 6px;
  border-left: 3px solid #2563eb;
}
.skillcert-staff div {
  margin: 2px 0;
}
.skillcert-staff b {
  color: #333;
}
