/* ====================== 爱马仕橙奶油风配色 ====================== */
:root {
  --bg: #FAF6F0;             /* 奶油背景 */
  --panel: #FFFFFF;          /* 白色卡片 */
  --panel-warm: #FFFCF7;    /* 暖白 */
  --line: #E8DDD0;           /* 暖色边框 */
  --line-soft: #F2EBE0;     /* 柔和边框 */
  --text: #3D3027;          /* 暖深色文字 */
  --muted: #9B8B7A;         /* 暖灰文字 */
  --primary: #E27D2E;       /* 爱马仕橙 */
  --primary-d: #C66A1F;     /* 深橙 */
  --primary-l: #FBF0E2;     /* 浅橙底色 */
  --sidebar-bg: #F5EDE0;    /* 暖沙色侧边栏 */
  --sidebar-text: #6B5A48;  /* 侧边栏文字 */
  --sidebar-hover: #EFE5D5; /* 侧边栏悬停 */
  --sidebar-active-bg: #FBF0E2; /* 选中项底色 */
  --sidebar-active-text: #C66A1F; /* 选中项文字 */
  --sidebar-active-border: #E27D2E; /* 选中项左边框 */
  --sidebar-foot: #A89888;  /* 侧边栏底部 */
  --danger: #C7553A;        /* 暖红 */
  --ok: #7A9B5C;            /* 鼠尾草绿 */
  --warn: #D4A24E;          /* 暖琥珀 */
  --shadow: 0 1px 3px rgba(61, 48, 39, .06), 0 1px 2px rgba(61, 48, 39, .04);
  --shadow-lg: 0 8px 24px rgba(61, 48, 39, .08);
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.app { display: flex; min-height: 100vh; }

/* ====================== 侧边栏 ====================== */
.sidebar {
  width: 200px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}

/* 品牌区 Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-logo {
  flex-shrink: 0;
}
.brand-text {
  font-family: "Fredoka", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.sidebar nav { display: flex; flex-direction: column; gap: 1px; flex: 1; padding: 8px 0; }
.nav-item {
  padding: 10px 18px;
  cursor: pointer;
  color: var(--sidebar-text);
  border-left: 3px solid transparent;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-item svg { flex-shrink: 0; opacity: .7; }
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-active-border);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--primary); }

.side-foot {
  padding: 14px 18px;
  font-size: 12px;
  color: var(--sidebar-foot);
  border-top: 1px solid var(--line-soft);
}

/* ====================== 主区 ====================== */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; color: var(--text); }
.content { padding: 22px 24px; overflow: auto; }

/* ====================== 按钮 ====================== */
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: .15s;
  font-family: inherit;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--panel); color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.ok { color: var(--ok); border-color: var(--ok); }
.btn.ok:hover { background: #F0F5EB; }
.btn.warn { color: var(--warn); border-color: var(--warn); }
.btn.warn:hover { background: #FBF5EA; }
.icon-btn { border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }

/* ====================== 工具条 ====================== */
.toolbar { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar-left select, .toolbar-left input { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; }
.toolbar-right { display: flex; gap: 8px; }
.hint { color: var(--muted); background: var(--primary-l); border: 1px solid #F0DCC0; padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 16px; }

/* ====================== 概览卡片 ====================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat .lbl { color: var(--muted); margin-top: 4px; }

/* ====================== 表格 ====================== */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--panel-warm); color: var(--muted); font-weight: 600; font-size: 13px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .ops { white-space: nowrap; }
.tbl .ops .btn { margin-right: 6px; }

.empty { text-align: center; color: var(--muted); padding: 50px 0; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ====================== 表单弹窗 ====================== */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(61, 48, 39, .25); backdrop-filter: blur(2px); }
.modal-card { position: relative; width: 440px; max-width: 92vw; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.modal-card.large { width: 94vw; max-width: 1280px; height: 90vh; }
.modal-card.large .modal-body { flex: 1; max-height: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal-foot .spacer { flex: 1; }

.form { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 13px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--panel); color: var(--text);
  transition: border-color .15s;
}
.fld textarea { min-height: 70px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); }

/* ====================== 排课网格 ====================== */
.grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.sched { border-collapse: collapse; width: 100%; min-width: 880px; }
table.sched th, table.sched td { border: 1px solid var(--line); }
table.sched thead th { background: var(--panel-warm); padding: 10px; text-align: center; font-size: 13px; color: var(--muted); }
table.sched .corner { width: 64px; }
table.sched .tlabel { width: 64px; text-align: center; background: var(--panel-warm); color: var(--muted); font-weight: 600; }
table.sched .cell { height: 56px; vertical-align: top; padding: 4px; cursor: pointer; transition: background .12s; }
table.sched .cell:hover { background: var(--primary-l); }
.card { background: var(--primary-l); border: 1px solid #F0DCC0; border-radius: 7px; padding: 6px 8px; margin-bottom: 4px; box-shadow: var(--shadow); }
.card .c-stu { font-weight: 600; font-size: 13px; }
.card .c-meta { font-size: 11px; color: #8A6D4A; margin-top: 2px; }

/* ====================== 提示 toast ====================== */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.toast { background: #3D3027; color: #FFFCF7; padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 14px; animation: pop .2s ease; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rdot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ====================== 操作日志 ====================== */
.ops-log { display: flex; flex-direction: column; gap: 8px; }
.op-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; box-shadow: var(--shadow); }
.op-row.is-undone { opacity: .6; }
.op-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.op-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.op-badge.create { background: #EBF2E5; color: var(--ok); }
.op-badge.update { background: var(--primary-l); color: var(--primary-d); }
.op-badge.delete { background: #F8E8E3; color: var(--danger); }
.op-entity { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.op-label { font-weight: 600; }
.op-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.op-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.op-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.op-tag.undone { background: #F8E8E3; color: var(--danger); }
.op-tag.redone { background: #EBF2E5; color: var(--ok); }

/* 只读表单字段 */
.fld-value { display: block; padding: 8px 12px; color: #6B5A48; font-size: 14px; }

/* 课时明细弹窗 */
.detail-overlay { position: fixed; inset: 0; background: rgba(61, 48, 39, .25); backdrop-filter: blur(2px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.detail-card { background: var(--panel); border-radius: var(--radius); padding: 28px 32px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); width: 100%; }
.detail-card h3 { margin: 0 0 4px; font-size: 19px; }
.detail-card h4 { margin: 0; font-size: 14px; color: #6B5A48; }

/* 排课卡片内消课按钮 */
.consume-btn { margin-left: auto; font-size: 11px; padding: 2px 8px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.consume-btn:hover { background: var(--ok); color: #fff; border-color: var(--ok); }

/* 续费按钮 */
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid transparent; }
.btn.ghost:hover { background: rgba(226, 125, 46, .06); }

/* 学生报名——多课程动态行 */
.fld-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld-block > span { font-size: 13px; font-weight: 600; color: #6B5A48; }
.course-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.course-row select, .course-row input { font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.course-row select:first-child { flex: 1; min-width: 0; }
.course-row .cr-hours { width: 72px; }
.course-row .cr-type { width: 72px; }
.cr-remove { flex-shrink: 0; font-size: 13px; padding: 4px 8px; }
.op-side .btn:disabled { opacity: .4; cursor: not-allowed; }

/* ====================== 学习计划 ====================== */

.plans-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.plans-month-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  min-width: 130px;
  text-align: center;
}
.plans-topbar .spacer { flex: 1; }

/* === 总览：学生卡片网格 === */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.plan-student-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel-warm);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s;
}
.card-header:hover { background: var(--primary-l); }

.card-stu-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.card-stats {
  font-size: 12px;
  color: var(--ok);
  background: #EBF2E5;
  padding: 2px 10px;
  border-radius: 12px;
}
.card-stats.empty {
  color: var(--muted);
  background: var(--bg);
}

/* === 卡片内迷你日历 === */
.card-calendar {
  padding: 8px 10px 10px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0 2px;
}
.cal-weekdays .we { color: var(--danger); }

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background .12s;
  min-height: 30px;
}
.cal-day:hover { background: var(--primary-l); }
.cal-day.empty { cursor: default; background: transparent; }
.cal-day.we { background: #FCF7F0; }

.cal-day-num {
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
}

.cal-dot {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  margin-top: 1px;
  font-weight: 600;
}
.cal-dot.all-done { background: var(--ok); }
.cal-dot.partial { background: var(--warn); }

/* 督导待办（【督导老师提醒】标签）：橙色小点 = 该日含督导待办 */
.cal-todo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E27D2E;
  margin-left: 4px;
  vertical-align: 2px;
}
.todo-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FBF0E2;
  color: #C66A1F;
  border: 1px solid #EFC9A3;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.todo-flag.red { background: #FCEBEB; color: #C7553A; border-color: #F0B7AC; }
.cal-task-chip.todo { outline: 1.5px solid #E27D2E; }
.day-todo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted, #6B5A48);
}
.day-todo-row input[type="time"] {
  padding: 4px 6px;
  border: 1px solid var(--line, #E8DDD0);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text, #3D3027);
  background: #FFFFFF;
}
.day-todo-row label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.day-todo-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #E27D2E; cursor: pointer; }

/* === 学生详情：大日历 === */
.plan-detail-calendar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.cal-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--panel-warm);
  border-bottom: 1px solid var(--line);
}
.cal-info-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.cal-info-month {
  font-size: 14px;
  color: var(--muted);
}

.cal-weekdays-lg {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 4px 6px;
  background: var(--panel-warm);
  border-bottom: 1px solid var(--line);
}
.cal-weekdays-lg .we { color: var(--danger); }

.cal-week-lg {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}
.cal-week-lg:last-child { border-bottom: none; }

.cal-day-lg {
  min-width: 0;
  min-height: 90px;
  padding: 6px;
  border-right: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .12s;
  display: flex;
  flex-direction: column;
}
.cal-day-lg:last-child { border-right: none; }
.cal-day-lg:hover { background: var(--primary-l); }
.cal-day-lg.empty { cursor: default; background: var(--panel-warm); }
.cal-day-lg.we { background: #FCF7F0; }

.cal-day-lg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cal-day-num-lg {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cal-progress {
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
}

.cal-day-lg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-task-chip {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}
.cal-task-chip.done {
  opacity: 0.5;
  text-decoration: line-through;
}
.cal-add-hint {
  font-size: 16px;
  color: var(--line);
  text-align: center;
  margin: auto;
  display: block;
  line-height: 1;
}

/* === 日详情弹窗 === */
.day-detail-card {
  max-width: 720px;
  width: 100%;
}
.day-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.day-detail-head h3 {
  margin: 0;
  font-size: 17px;
}
.day-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
}
.day-item-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--panel-warm);
}
.day-item-card.completed {
  background: #F5F8F0;
  border-color: #D8E5CC;
}
.day-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.day-item-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.day-item-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--ok);
}
.day-item-name {
  font-weight: 600;
  font-size: 14px;
}
.day-item-time {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 12px;
}
.day-item-notes, .day-item-custom {
  font-size: 13px;
  color: #6B5A48;
  margin: 4px 0;
  line-height: 1.5;
}
.day-item-notes strong, .day-item-custom strong {
  color: var(--text);
}
.day-item-files {
  font-size: 12px;
  margin-top: 4px;
}
.day-item-files strong { color: #6B5A48; }
.file-tag {
  display: inline-block;
  background: var(--primary-l);
  color: var(--primary-d);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
  font-size: 11px;
}
.day-item-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

/* === 添加任务区域 === */
.day-add-section {
  margin-top: 16px;
  padding: 14px;
  background: var(--panel-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.day-add-section h4 { margin: 0 0 10px; font-size: 14px; }
.day-add-row { display: flex; align-items: center; gap: 8px; }
.day-add-select {
  flex: 1; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px; background: var(--panel);
}

/* === 任务包管理 === */
.pkg-item-row {
  display: flex; align-items: center; gap: 6px; padding: 4px 0;
}
.pkg-item-row select {
  flex: 1; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px;
}
.pkg-item-offset {
  padding: 6px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px; width: 50px;
}
.pkg-offset-label { font-size: 12px; color: var(--muted); }
.pkg-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; background: var(--panel);
}
.pkg-card-head { display: flex; align-items: center; justify-content: space-between; }
.pkg-card-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pkg-card-items { font-size: 12px; color: var(--primary); margin-top: 6px; }

/* === 日历排课视图 === */
.cal-week-sched {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.cal-week-sched:last-child { border-bottom: none; }

.cal-day-sched {
  min-height: 120px;
  padding: 4px;
  border-right: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .12s;
}
.cal-day-sched:last-child { border-right: none; }
.cal-day-sched:hover { background: var(--primary-l); }
.cal-day-sched.empty { cursor: default; background: var(--panel-warm); }
.cal-day-sched.we { background: #FCF7F0; }

.cal-day-sched-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  padding: 0 2px;
}

.cal-day-sched-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sched-card {
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid rgba(61, 48, 39, .06);
  font-size: 11px;
  transition: transform .1s;
}
.sched-card:hover { transform: scale(1.02); }
.sched-card.cancelled { opacity: .5; }
.sched-card.completed { opacity: .75; }

.sc-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}
.sc-time {
  font-weight: 600;
  color: #6B5A48;
  font-size: 10px;
}
.sc-att {
  font-size: 10px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
}
.sc-att.att-ok { background: #EBF2E5; color: var(--ok); }
.sc-att.att-bad { background: #F8E8E3; color: var(--danger); }
.sc-att.att-warn { background: #FBF5EA; color: var(--warn); }
.sc-hw { font-size: 10px; }

.sc-stu {
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
}
.sc-course {
  color: var(--muted);
  font-size: 10px;
}

/* 排课详情弹窗 */
.sched-detail-info {
  margin-bottom: 14px;
}
.sdi-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.sdi-label {
  color: var(--muted);
  font-size: 13px;
  min-width: 50px;
}

.sched-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sched-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}
.sched-att-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ====== 排课筛选栏 ====== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  min-width: 100px;
}

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

.filter-select.active {
  border-color: var(--primary);
  background: var(--primary-l);
  color: var(--primary-d);
  font-weight: 600;
}

/* 可搜索下拉组件 */
.search-select {
  position: relative;
  display: inline-block;
  user-select: none;
}
.ss-trigger {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  min-width: 110px;
  white-space: nowrap;
  position: relative;
  transition: border-color .15s;
}
.ss-trigger::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}
.ss-trigger.open::after {
  border-top-color: transparent;
  border-bottom-color: var(--muted);
  transform: translateY(-75%);
}
.ss-trigger.active {
  border-color: var(--primary);
  background: var(--primary-l);
  color: var(--primary-d);
  font-weight: 600;
}
.search-select.open .ss-trigger {
  border-color: var(--primary);
}
.ss-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  display: none;
}
.search-select.open .ss-dropdown {
  display: block;
}
.ss-search-input {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: var(--panel-warm);
}
.ss-search-input::placeholder {
  color: #C4B5A5;
}
.ss-options {
  max-height: 220px;
  overflow-y: auto;
}
.ss-option {
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.ss-option:hover {
  background: var(--primary-l);
}
.ss-option.selected {
  background: var(--primary-l);
  color: var(--primary-d);
  font-weight: 600;
}
.ss-option.no-result {
  color: #C4B5A5;
  cursor: default;
  text-align: center;
  padding: 16px;
}

.filter-view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.filter-view-btn {
  padding: 6px 14px;
  border: none;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  border-right: 1px solid var(--line);
}

.filter-view-btn:last-child {
  border-right: none;
}

.filter-view-btn:hover {
  background: var(--primary-l);
}

.filter-view-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.filter-spacer {
  flex: 1;
}

.filter-week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ====== 周课表视图 ====== */

.week-schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.week-schedule-table th,
.week-schedule-table td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

.week-schedule-table thead th {
  background: var(--panel-warm);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 10px 8px;
}

.week-schedule-table thead th.we {
  color: var(--danger);
}

.week-schedule-table .time-col {
  width: 70px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-warm);
  padding: 10px 6px;
}

.week-schedule-table .ws-cell {
  min-height: 48px;
  cursor: pointer;
  transition: background .12s;
}

.week-schedule-table .ws-cell:hover {
  background: var(--primary-l);
}

.week-schedule-table .ws-cell.empty-cell {
  cursor: default;
  background: var(--panel-warm);
}

/* ====== 日历排课选择器 ====== */
.cal-picker-wrap {
  margin-top: 4px;
}
.cal-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cal-picker-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 110px;
  text-align: center;
}
.cal-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 0;
}
.cal-picker-weekdays .we { color: var(--danger); }
.cal-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 2px;
}
.cal-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .12s;
  min-height: 32px;
  color: var(--text);
  font-weight: 500;
  position: relative;
}
.cal-picker-day:hover {
  background: var(--primary-l);
  border-color: #F0DCC0;
}
.cal-picker-day.empty {
  cursor: default;
  background: transparent;
}
.cal-picker-day.today {
  border-color: var(--primary);
  font-weight: 700;
}
.cal-picker-day.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-d);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(226, 125, 46, .3);
}
.cal-picker-day.selected:hover {
  background: var(--primary-d);
}
.cal-picker-day.we { color: var(--danger); }
.cal-picker-day.we.selected { color: #fff; }
.cal-picker-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--panel-warm);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.cal-picker-summary .count {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}
.cal-picker-summary .selected-dates {
  color: var(--muted);
  font-size: 12px;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-picker-clear {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.cal-picker-clear:hover { color: var(--danger); }

/* 日历排课弹窗特殊扩展宽度 */
.modal-card.cal-modal {
  width: 560px;
  max-width: 96vw;
}
/* 双月并排日历 */
.cal-picker-dual {
  display: flex;
  gap: 24px;
}
.cal-picker-dual .cal-picker-wrap {
  flex: 1;
  min-width: 0;
}

/* ===== 冲突确认弹窗 ===== */
.conflict-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 39, 0.2);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.conflict-dialog {
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 560px;
  max-width: 94vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.conflict-dialog .cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.conflict-dialog .cd-head h3 { font-size: 16px; margin: 0; }
.conflict-dialog .cd-head .cd-close {
  width: 28px; height: 28px;
  border: none; background: none;
  font-size: 20px; cursor: pointer;
  border-radius: var(--radius-sm); color: var(--muted);
}
.conflict-dialog .cd-body { padding: 16px 20px; }
.conflict-dialog .cd-group { margin-bottom: 14px; }
.conflict-dialog .cd-group-title {
  font-size: 13px; font-weight: 600;
  color: var(--danger); margin-bottom: 6px;
  padding: 4px 8px; background: #F8E8E3;
  border-radius: var(--radius-sm); display: inline-block;
}
.conflict-dialog .cd-group:last-child { margin-bottom: 0; }
.conflict-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
}
.conflict-pair:last-child { margin-bottom: 0; }
.conflict-pair .cp-icon { color: var(--danger); font-size: 16px; flex-shrink: 0; }
.conflict-pair .cp-new { color: var(--primary); font-weight: 600; }
.conflict-pair .cp-existing { color: var(--muted); }
.conflict-pair .cp-name { color: var(--text); font-weight: 500; }
.conflict-dialog .cd-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.conflict-dialog .cd-footer .btn.ghost { background: var(--bg); }
.conflict-dialog .cd-count {
  font-size: 13px; color: var(--muted);
  margin-bottom: 10px;
}

/* 筛选标签 */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary-l);
  color: var(--primary-d);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.filter-tag .ft-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.6;
}

.filter-tag .ft-remove:hover {
  opacity: 1;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .plan-cards-grid { grid-template-columns: 1fr; }
  .cal-day-lg { min-height: 70px; }
  .cal-day-sched { min-height: 100px; }
}

/* 学生详情弹窗 */
.detail-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(61, 48, 39, 0.25); backdrop-filter: blur(2px); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.detail-card {
  background: var(--panel); border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow-lg);
  min-width: 360px; max-width: 90vw;
}

/* ====== 作业系统 ====== */

.loading { text-align:center; padding:40px; color:var(--muted); }

/* Badge */
.badge {
  display:inline-block; background:var(--primary); color:#fff; font-size:10px;
  min-width:16px; height:16px; line-height:16px; text-align:center;
  border-radius:999px; padding:0 4px; margin-left:4px;
}
.badge.hidden { display:none; }

/* 数据表 */
.data-table { width:100%; border-collapse:collapse; background:var(--panel); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.data-table th, .data-table td {
  padding:10px 12px; text-align:left; border-bottom:1px solid var(--line); font-size:13px;
}
.data-table th { background:var(--panel-warm); font-weight:600; font-size:12px; color:var(--muted); }
.data-table tr:last-child td { border-bottom:none; }

/* 题目选择区域 */
.q-select-box {
  border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px;
  max-height:200px; overflow-y:auto; margin-bottom:8px;
}

/* 题目卡片 */
.q-card {
  border:1px solid var(--line); border-radius:var(--radius); padding:10px 14px;
  margin-bottom:8px; background:var(--panel-warm);
}
.q-num { font-size:13px; font-weight:600; }
.q-opts { margin:4px 0; display:flex; flex-wrap:wrap; gap:4px; }
.q-opt {
  display:inline-block; padding:2px 8px; background:var(--bg);
  border-radius:4px; font-size:12px; color:#6B5A48;
}

/* Checkbox & Radio items */
.checkbox-item, .radio-item {
  display:inline-block; padding:2px 0; font-size:13px; cursor:pointer;
}
.checkbox-item input, .radio-item input { margin-right:4px; cursor:pointer; }

/* 题目列表 */
.question-list { max-height:400px; overflow-y:auto; }

/* 分类树 */
.tree-list { max-height:300px; overflow-y:auto; }
.tree-item {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 12px; border-bottom:1px solid var(--line-soft);
}
.tree-ops { display:flex; gap:4px; }

/* 通知列表 */
.notif-list { }
.notif-item {
  padding:12px 16px; border-bottom:1px solid var(--line); cursor:pointer;
  transition: background .12s;
}
.notif-item:hover { background:var(--panel-warm); }
.notif-dot {
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background:var(--primary); margin-right:8px;
}

/* 选项行（题目编辑） */
.opt-row {
  display:flex; align-items:center; gap:8px;
}
.opt-row .opt-input {
  flex:1; padding:7px 10px; border:1px solid var(--line);
  border-radius:var(--radius-sm); font-size:13px;
}
.opt-check {
  display:flex; align-items:center; gap:4px; min-width:40px;
  font-size:13px; font-weight:600; cursor:pointer;
}
.opt-check input { cursor:pointer; }

/* ===== 雅思套题库 · 层级切换淡入（公开题库→雅思套题库各层级） ===== */
@keyframes pbFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.pb-fade { animation: pbFade .22s ease; }

/* ====================== 语法答题界面（试做 / 判分结果） ====================== */
.trial-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 18px;
}
.trial-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFF7EF, #FBF0E2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  flex-shrink: 0;
}
.trial-progress { flex: 1; min-width: 0; }
.trial-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.trial-progress-label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.trial-progress-count { font-size: 14px; color: var(--text); }
.trial-progress-count b { color: var(--primary); font-size: 20px; font-weight: 700; }
.trial-progress-bar {
  height: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.trial-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #F2A25C);
  border-radius: 999px;
  transition: width .35s ease;
}
.trial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}
.trial-meta span { white-space: nowrap; }

.trial-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  padding: 2px 4px 8px 2px;
}

.trial-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.trial-card:hover {
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(61, 48, 39, .08);
}

.trial-qhead {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.trial-qnum {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  font-family: 'Fredoka', -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(226, 125, 46, .25);
}
.trial-qstem-wrap { flex: 1; min-width: 0; }
.trial-qstem {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}

.trial-qtags {
  display: flex;
  gap: 8px;
  margin: 0 0 18px 56px;
}
.trial-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-text);
  background: var(--primary-l);
  border-radius: 999px;
  padding: 4px 12px;
}
.trial-tag-points {
  background: #FFF3E8;
  color: var(--primary-d);
}

.trial-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 56px;
}
.trial-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  box-sizing: border-box;
}
.trial-opt:hover {
  border-color: var(--primary);
  background: #FFF8F1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 125, 46, .12);
}
.trial-opt-input { display: none; }
.trial-opt-letter {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-l);
  color: var(--primary-d);
  font-family: 'Fredoka', -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
}
.trial-opt-letter:empty { display: none; }
.trial-opt-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.trial-opt-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
}
.trial-opt input[type="checkbox"] ~ .trial-opt-check { border-radius: 5px; }

.trial-opt:has(input:checked) {
  border-color: var(--primary);
  background: #FFF3E8;
  box-shadow: 0 0 0 3px rgba(226, 125, 46, .12);
}
.trial-opt:has(input:checked) .trial-opt-letter {
  background: var(--primary);
  color: #fff;
}
.trial-opt:has(input:checked) .trial-opt-check {
  background: var(--primary);
  border-color: var(--primary);
}

.trial-input {
  width: 100%;
  margin-left: 56px;
  padding: 16px 18px;
  font-size: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: all .18s ease;
  box-sizing: border-box;
}
.trial-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(226, 125, 46, .12);
  background: #FFFCF7;
}

.trial-unsupported {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 0 56px;
}

.trial-footnote {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}

/* 判分结果 */
.trial-result-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 4px 8px 2px;
}
.trial-result-hero {
  background: linear-gradient(135deg, #FFF7EF, #FBF0E2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.trial-result-score {
  font-family: 'Fredoka', -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}
.trial-result-score span { font-size: 24px; font-weight: 600; }
.trial-result-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}
.trial-result-sub b { color: var(--text); font-size: 17px; }
.trial-result-msg { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 8px; }
.trial-result-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 20px;
  border-left: 4px solid var(--line);
  background: #fff;
}
.trial-result-item.ok { border-left-color: var(--ok); }
.trial-result-item.bad { border-left-color: var(--danger); }
.trial-result-item-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.trial-result-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.trial-result-item.ok .trial-result-mark { background: var(--ok); }
.trial-result-item.bad .trial-result-mark { background: var(--danger); }
.trial-result-q { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.6; word-break: break-word; }
.trial-result-answer { font-size: 14.5px; color: var(--muted); margin: 4px 0 0 36px; }
.trial-result-answer .ok-text { color: var(--ok); font-weight: 600; }
.trial-result-answer .bad-text { color: var(--danger); font-weight: 600; }

/* 二次确认弹窗（退出/提交等关键操作） */
#confirmModal .modal-card {
  width: 420px;
  max-width: 92vw;
}
#confirmModal .modal-body {
  padding: 26px 28px 6px;
}
