/* ===== 今日课程页 ===== */
:root {
    --ink: #2c3e50; --muted: #7a8699; --line: #e6eaf3;
    --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
* { box-sizing: border-box; }
body {
    margin: 0; background: #f4f6fb; color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
#app { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.head-right { display: flex; gap: 10px; }
.btn-ghost {
    background: #fff; color: #667eea; border: 1px solid #d9dff0; padding: 9px 16px;
    border-radius: 12px; font-size: 14px; text-decoration: none; transition: all .15s;
}
.btn-ghost:hover { border-color: #667eea; background: #f4f6ff; }

.panel { background: #fff; border-radius: 16px; padding: 16px 18px 20px; box-shadow: 0 6px 22px rgba(44, 62, 80, .07); }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.date-input {
    padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; font-size: 14px; color: var(--ink); outline: none;
}
.date-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, .14); }
.btn-step {
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    padding: 8px 14px; border-radius: 12px; font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.btn-step:hover { border-color: #667eea; color: #667eea; background: #f4f6ff; }
.today-btn { background: var(--grad); color: #fff; border-color: transparent; }
.today-btn:hover { color: #fff; background: var(--grad); filter: brightness(1.05); }
.hint { color: var(--muted); font-size: 13px; }
.hint.loading { color: #667eea; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #f8f9ff; border: 1px solid #e8ecfa; border-radius: 14px; padding: 12px 14px; }
.stat-num { font-size: 22px; font-weight: 700; color: #5b6ee1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.courses { display: flex; flex-direction: column; gap: 10px; }
.course { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.course-main { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; }
.course-time { min-width: 132px; }
.course-time b { display: block; font-size: 15px; color: #4a5ad0; }
.course-time span { font-size: 12px; color: var(--muted); }
.course-info { flex: 1; min-width: 0; }
.course-name { font-size: 15px; font-weight: 600; }
.course-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.course-att { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.course-actions { display: flex; gap: 8px; }

.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #eef1f8; color: #5a6478; white-space: nowrap; }
.chip.ok { background: #e6f7ec; color: #1f9254; }
.chip.bad { background: #fdeaea; color: #c0392b; }
.chip.warn { background: #fff4e5; color: #b9761b; }

.btn-rollcall {
    background: var(--grad); color: #fff; text-decoration: none; padding: 8px 14px;
    border-radius: 12px; font-size: 13px; white-space: nowrap; transition: all .15s;
}
.btn-rollcall:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(102, 126, 234, .3); }

.course-students {
    border-top: 1px dashed var(--line); background: #fcfdff;
    padding: 10px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.stu {
    background: #f2f5ff; color: #465073; border: 1px solid #e2e8fb;
    border-radius: 999px; padding: 3px 12px; font-size: 12.5px;
}
.stu em { color: var(--muted); font-style: normal; }
.course-students .empty { color: var(--muted); font-size: 12.5px; }

.empty-box { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
    .course-main { flex-wrap: wrap; gap: 10px; }
    .course-time { min-width: 0; }
    .course-info { flex: 1 1 200px; }
    .course-sub { gap: 8px; }
    .course-att { justify-content: flex-start; }
    .course-actions { margin-left: auto; }
}
