/* ---------- 应用页通用布局（在 design.css 之上） ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 0 20px; }
.page-head h1 { font-size: 25px; letter-spacing: .5px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.head-side { display: flex; align-items: center; gap: 10px; }

.layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.layout.wide-left { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

/* 今日课程 */
.today { border: 1px solid var(--steel-800); background: var(--steel-900); color: #fff; position: relative; overflow: hidden; }
.today::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.today > * { position: relative; z-index: 2; }
.today .th { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.today .tb2 { display: flex; align-items: center; gap: 22px; padding: 22px 20px; flex-wrap: wrap; }
.today .slot { text-align: center; border-right: 1px solid rgba(255,255,255,.14); padding-right: 22px; flex: none; }
.today .slot .d { font-family: var(--mono); font-size: 11px; color: var(--amber); letter-spacing: 1px; }
.today .slot .h { font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1.2; }
.today .slot .w { font-size: 11px; color: var(--steel-400); }
.today .info { flex: 1; min-width: 200px; }
.today .info h3 { font-size: 19px; }
.today .info .m { display: flex; gap: 16px; margin-top: 7px; font-size: 12px; color: #b9cade; flex-wrap: wrap; }

/* 列表行 */
.hw { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hw:last-child { border-bottom: 0; }
.hw .ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; color: var(--steel-700); background: #f8fafc; }
.hw .g { flex: 1; min-width: 0; }
.hw .t { font-size: 13.5px; font-weight: 600; }
.hw .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 进度 */
.prog > div { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.prog > div:last-child { border-bottom: 0; }
.prog .nm { width: 140px; flex: none; font-size: 12.5px; }
.prog .nm i { font-family: var(--mono); font-style: normal; color: var(--steel-400); font-size: 11px; margin-right: 6px; }
.prog .bar { flex: 1; }
.prog .v { width: 38px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.input, select.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); font-family: var(--sans); font-size: 14px; color: var(--text); background: #fff; outline: none; }
.input:focus { border-color: var(--steel-700); box-shadow: 0 0 0 3px rgba(27,75,122,.1); }
.input.mono { font-family: var(--mono); letter-spacing: 1px; }

/* 题目块 */
.q-block { border-bottom: 1px solid var(--line); }
.q-block:last-child { border-bottom: 0; }
.q-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.q-head .qn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--steel-900); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.q-head .qt { font-size: 13.5px; font-weight: 700; }
.q-head .qs { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.q-body { padding: 16px 18px; }
.stem { font-size: 13.5px; line-height: 1.95; }
.given { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; padding: 11px 13px; background: #f7f9fc; border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; }

textarea.steps {
  width: 100%; min-height: 120px; resize: vertical; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--text); background: #fcfdfe; outline: none;
}
textarea.steps:focus { border-color: var(--steel-700); background: #fff; }
.result-row { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }

/* 选项 */
.opt-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; cursor: pointer; }
.opt-row:hover { border-color: var(--steel-600); }
.opt-row input { margin-top: 4px; accent-color: var(--steel-700); }
.opt-row .k { width: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex: none; }
.opt-row .x { font-size: 13.2px; line-height: 1.7; }

/* 评分点 */
.pt-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-row .dot { width: 9px; height: 9px; flex: none; margin-top: 6px; border: 1px solid var(--line-strong); background: #fff; }
.pt-row.hit .dot { background: var(--green); border-color: var(--green); }
.pt-row.miss .dot { border-color: var(--red); }
.pt-row .g { flex: 1; }
.pt-row .t { font-size: 12.6px; font-weight: 600; }
.pt-row .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.pt-row .sc { width: 46px; height: 30px; text-align: center; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12.5px; border-radius: 2px; }

.total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; background: #f7f9fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.total .n { font-family: var(--mono); font-size: 30px; font-weight: 700; }
.total .n small { font-size: 13px; color: var(--muted); font-weight: 400; }

/* 表格 */
table.tb2 { width: 100%; border-collapse: collapse; font-size: 12.8px; }
table.tb2 th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; padding: 10px 14px; background: #f7f9fc; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.tb2 td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.tb2 tr:last-child td { border-bottom: 0; }
table.tb2 .num { font-family: var(--mono); }

.empty { padding: 34px; text-align: center; color: var(--muted); font-size: 13px; }

.msg { padding: 9px 13px; font-size: 12.8px; margin-bottom: 14px; border: 1px solid #a8d8c1; background: #eefaf3; color: #146b45; }
.msg.error { border-color: #e8b4ae; background: #fdf1f0; color: #8c3b32; }

/* 浮动提示：不占布局，登录页/改密页也不受影响 */
.toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: grid; gap: 8px; width: min(620px, 92vw);
}
.toast {
  padding: 11px 16px; font-size: 13px; line-height: 1.6;
  border: 1px solid #a8d8c1; background: #eefaf3; color: #146b45;
  box-shadow: 0 10px 26px -14px rgba(8,24,42,.45);
}
.toast.error { border-color: #e8b4ae; background: #fdf1f0; color: #8c3b32; }
.toast.info { border-color: var(--steel-200); background: #f2f7fc; color: var(--steel-800); }
.toast.warning { border-color: #efd08f; background: #fffaf0; color: #7a5600; }

@media (max-width: 980px) {
  .layout, .layout.wide-left { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .prog .nm { width: 104px; }
}
