/* ============================================================
   在线题库考试系统 - 全局样式
   设计语言：玻璃拟态 + 渐变主色 + 明暗双主题
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #eef2ff 0%, transparent 60%),
             radial-gradient(1000px 500px at 100% 0%, #fdf2ff 0%, transparent 55%);
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #36cfc9;
  --border: #e6e8ef;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-brd: rgba(255, 255, 255, 0.7);
  --shadow: 0 12px 32px rgba(31, 41, 55, 0.10);
  --radius: 16px;
  --ok: #16a34a;
  --bad: #ef4444;
}
[data-theme="dark"] {
  --bg: #0b1020;
  --bg-grad: radial-gradient(1000px 500px at 0% 0%, #131a35 0%, transparent 60%),
             radial-gradient(900px 500px at 100% 0%, #1a1030 0%, transparent 55%);
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #36cfc9;
  --primary-2: #597ef7;
  --accent: #36cfc9;
  --border: rgba(148, 163, 184, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-brd: rgba(148, 163, 184, 0.22);
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 700; letter-spacing: .3px; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: var(--glass); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.topnav { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-link { padding: 6px 10px; border-radius: 10px; color: var(--muted); }
.nav-link:hover { background: var(--glass); color: var(--text); }
.nav-user { color: var(--muted); font-size: 14px; }
.theme-toggle {
  margin-left: 8px; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--glass); cursor: pointer; font-size: 18px;
}
.container { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }

/* ---------- 备案页脚（工信部悬挂，强制全站显示） ---------- */
.site-footer {
  margin-top: 40px;
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer .beian-link {
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
}
.site-footer .beian-link:hover { color: var(--primary); }

/* ---------- 通用组件 ---------- */
.glass {
  background: var(--glass); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px;
  font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: none; box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
}
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad); color: #fff; border: none; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 12px; }
.badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--glass); border: 1px solid var(--border); }
.badge-draft { color: var(--muted); }
.badge-ongoing { color: var(--accent); border-color: var(--accent); }
.badge-ended { color: var(--bad); }
.badge-ready { color: #b45309; background: #fef3c7; }

/* flash 提示 */
.flash-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 14px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form input[type=file] { width: auto; }
.check { display: flex; align-items: center; gap: 6px; color: var(--text); }
.check input { width: auto; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.data-table tr:hover td { background: var(--glass); }
.qcell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* ---------- 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.auth-card { width: 380px; padding: 30px; }
.auth-title { font-size: 26px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); margin-top: -6px; }
.tabs { display: flex; gap: 8px; margin: 18px 0; }
.tab { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--muted); font-weight: 600; }
.tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; }
.auth-form label { color: var(--text); }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.hidden { display: none !important; }

/* ---------- 等待室 ---------- */
.waiting-wrap { display: flex; justify-content: center; padding-top: 4vh; }
.waiting-card { width: 460px; text-align: center; padding: 36px; }
.waiting-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); font-weight: 700; }
.waiting-badge.ready { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; }
.waiting-title { font-size: 24px; margin: 14px 0; }
.waiting-info { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; color: var(--muted); }
.countdown { display: flex; justify-content: center; gap: 14px; margin: 22px 0 10px; }
.cd-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; min-width: 70px; }
.cd-item span { font-size: 30px; font-weight: 800; display: block; }
.cd-item i { font-size: 12px; color: var(--muted); font-style: normal; }
.waiting-tip { color: var(--muted); }

/* ---------- 学生答题 ---------- */
.exam-shell { max-width: 1080px; margin: 0 auto; }
.exam-top { display: flex; align-items: center; gap: 18px; padding: 14px 20px; margin-bottom: 16px; position: sticky; top: 76px; z-index: 20; }
.exam-title { font-weight: 700; flex: 1; }
.exam-timer { font-weight: 700; font-size: 18px; }
.exam-timer.urgent { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.exam-progress { color: var(--muted); }
.exam-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.exam-question { min-height: 320px; }
.q-type { color: var(--primary); font-weight: 700; }
.q-content { font-size: 19px; font-weight: 600; margin: 8px 0 18px; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--primary); background: var(--glass); }
.opt input { width: auto; }
.opt-key { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; background: var(--glass); border: 1px solid var(--border); font-weight: 700; }
.fill-input { font-size: 16px; }
.exam-card { position: sticky; top: 150px; }
.card-h { font-size: 15px; color: var(--muted); }
.ans-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.ans-cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; }
.ans-cell.done { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; }
.ans-cell.todo { color: var(--muted); }
.ans-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot.done { background: var(--primary); }
.dot.todo { background: var(--border); }
.exam-nav { display: flex; gap: 8px; margin-bottom: 8px; }
.exam-nav .btn { flex: 1; }

/* ---------- 成绩 ---------- */
.result-wrap { max-width: 920px; margin: 0 auto; }
.result-hero { display: flex; gap: 28px; align-items: center; margin-bottom: 18px; }
.score-circle { width: 130px; height: 130px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--primary) var(--p, 0%), var(--border) 0); position: relative; }
.score-circle::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-num { position: relative; z-index: 1; font-size: 40px; font-weight: 800; }
.score-unit { position: relative; z-index: 1; color: var(--muted); }
.result-meta h1 { font-size: 22px; }
.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.rank-list li.me { background: var(--glass); border: 1px solid var(--primary); }
.rank-no { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--glass); font-weight: 800; }
.rank-name { flex: 1; }
.rank-score { font-weight: 800; color: var(--primary); }
.my-rank { margin-top: 12px; font-weight: 600; }
.wrong-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; }
.wrong-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.wrong-q { font-weight: 600; margin-bottom: 4px; }
.wrong-a { font-size: 13px; }
.bad { color: var(--bad); } .good { color: var(--ok); }

/* ---------- 管理员布局 ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.admin-side { padding: 18px; position: sticky; top: 90px; }
.side-title { font-weight: 800; margin-bottom: 12px; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.admin-side nav a:hover { background: var(--surface); color: var(--text); }
.admin-main { min-width: 0; }
.page-title { font-size: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { margin: 22px 0 12px; font-size: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { padding: 20px; text-align: center; }
.stat-num { font-size: 34px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 13px; }
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-row { display: flex; align-items: center; gap: 16px; }
.er-main { flex: 1; }
.er-title { font-weight: 700; font-size: 16px; }
.er-meta { color: var(--muted); font-size: 13px; }
.er-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 140px; }
.add-panel { margin-bottom: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.team-card { padding: 18px; }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-name { font-weight: 800; font-size: 17px; }
.team-code { color: var(--muted); font-size: 13px; }
.team-meta { color: var(--muted); font-size: 13px; margin: 8px 0; }
.team-actions { display: flex; flex-direction: column; gap: 10px; }
.team-bind { display: flex; gap: 8px; align-items: center; }
.team-bind select { flex: 1; min-width: 0; width: auto; }
.team-import { display: flex; flex-direction: column; gap: 6px; }
.team-import input[type=file] { width: 100%; }
.team-tip { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; color: var(--muted); }
.bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.activity-list { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.activity-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.monitor-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

/* ---------- 大屏选择 ---------- */
.dash-index { max-width: 1000px; margin: 0 auto; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.exam-card { display: block; transition: transform .2s; }
.exam-card:hover { transform: translateY(-3px); }
.open-big { margin-top: 10px; color: var(--primary); font-weight: 700; }

/* ============================================================
   实时大屏（强制深色）
   ============================================================ */
.bigscreen {
  max-width: 100%; padding: 18px 22px 22px; min-height: 100vh; color: #e5e7eb;
  background: radial-gradient(1200px 600px at 0% 0%, #131a35 0%, #0b1020 60%);
}
.bs-top { display: flex; align-items: center; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(148,163,184,.2); }
.bs-title { font-size: 22px; font-weight: 800; }
.bs-clock { font-variant-numeric: tabular-nums; font-size: 18px; color: #94a3b8; }
.bs-stats { margin-left: auto; display: flex; gap: 26px; }
.bs-stat { text-align: center; }
.bs-stat span { font-size: 26px; font-weight: 800; display: block; background: linear-gradient(135deg, #36cfc9, #597ef7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bs-stat i { font-style: normal; font-size: 12px; color: #94a3b8; }
.bs-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 16px 0; }
.bs-panel { padding: 16px; height: 360px; display: flex; flex-direction: column; }
.bs-h { font-size: 15px; color: #cbd5e1; margin-bottom: 8px; }
.bs-panel canvas { flex: 1; }
.bs-q-content { font-weight: 600; margin-bottom: 10px; max-height: 90px; overflow: auto; }
.bs-q-rate { margin-top: 8px; color: #36cfc9; font-weight: 700; font-size: 13px; }
.bs-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.bs-activity-list { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow: hidden; }
.bs-activity-list li { padding: 7px 0; border-bottom: 1px solid rgba(148,163,184,.12); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot-dot { width: 8px; height: 8px; border-radius: 50%; background: #36cfc9; flex: none; }
.bs-progress { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.prog-row { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.prog-name { color: #cbd5e1; }
.prog-bar { height: 10px; background: rgba(148,163,184,.2); border-radius: 999px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #36cfc9, #597ef7); transition: width .6s ease; }
.prog-pct { text-align: right; color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .exam-body { grid-template-columns: 1fr; }
  .exam-card { position: static; }
  .result-cols, .monitor-cols, .bs-bottom { grid-template-columns: 1fr; }
  .bs-main { grid-template-columns: 1fr; }
  .bs-panel { height: 300px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}

/* ---------- 惩罚任务大屏 ---------- */
.penalty-grid { grid-template-columns: 1fr; }
.penalty-board { display: flex; flex-direction: column; gap: 10px; max-height: 64vh; overflow: hidden; }
.penalty-row-item {
  display: grid; grid-template-columns: 1.2fr 2fr 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 12px; background: rgba(148,163,184,.08);
  border-left: 5px solid #597ef7; font-size: 15px;
}
.penalty-row-item.st-pass { border-left-color: #73d13d; background: rgba(115,209,61,.12); }
.penalty-row-item.st-unmet { border-left-color: #ff7875; background: rgba(255,120,117,.12); }
.penalty-row-item.st-pending { border-left-color: #ffa940; }
.pr-name { font-weight: 700; color: #f1f5f9; }
.pr-meta { color: #94a3b8; font-size: 13px; }
.pr-rate { color: #cbd5e1; text-align: right; }
.pr-badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pr-badge.st-pass { background: rgba(115,209,61,.25); color: #b7eb8f; }
.pr-badge.st-unmet { background: rgba(255,120,117,.25); color: #ffccc7; }
.pr-badge.st-pending { background: rgba(255,169,64,.22); color: #ffd591; }

/* ---------- 两级竞赛榜（班级总榜 / 班级内小组）---------- */
.bs-rank-panel { flex-direction: column; }
.bs-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.bs-tab { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid rgba(148,163,184,.25); background: rgba(148,163,184,.08); color: #cbd5e1; font-weight: 700; cursor: pointer; font-size: 15px; transition: all .2s; }
.bs-tab:hover { background: rgba(148,163,184,.16); }
.bs-tab.active { background: linear-gradient(135deg, #36cfc9, #597ef7); color: #0b1020; border-color: transparent; }
.bs-board { flex: 1; overflow: auto; padding-right: 4px; }
.bs-class-select { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bs-class-select select { width: auto; min-width: 160px; background: rgba(15,23,42,.6); color: #e5e7eb; border-color: rgba(148,163,184,.3); }
.bs-team-class-info { font-size: 13px; color: #94a3b8; }

/* 领奖台 Top3 */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.pod { background: linear-gradient(180deg, rgba(148,163,184,.18), rgba(148,163,184,.06)); border: 1px solid rgba(148,163,184,.22); border-radius: 14px 14px 10px 10px; padding: 14px 8px 12px; text-align: center; }
.pod-1 { background: linear-gradient(180deg, rgba(255,214,102,.35), rgba(255,214,102,.08)); border-color: rgba(255,214,102,.5); transform: translateY(-10px); }
.pod-2 { background: linear-gradient(180deg, rgba(192,200,214,.30), rgba(192,200,214,.06)); border-color: rgba(203,213,225,.45); }
.pod-3 { background: linear-gradient(180deg, rgba(205,127,80,.28), rgba(205,127,80,.06)); border-color: rgba(205,127,80,.42); }
.pod-empty { visibility: hidden; }
.pod-medal { font-size: 30px; line-height: 1; }
.pod-name { font-weight: 800; font-size: 16px; margin-top: 4px; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-score { font-size: 24px; font-weight: 800; color: #FFD666; margin-top: 2px; }
.pod-sub { font-size: 11px; color: #94a3b8; }

/* 排名列表 */
.rank-list-lg { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-item { display: grid; grid-template-columns: 30px 30px 1fr auto 120px 60px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(148,163,184,.08); font-size: 14px; transition: background .3s; }
.rk-item.is-first { background: rgba(255,214,102,.14); border: 1px solid rgba(255,214,102,.35); }
.rk-no { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(148,163,184,.22); font-weight: 800; color: #e5e7eb; }
.rk-item.is-first .rk-no { background: linear-gradient(135deg, #FFD666, #ffa940); color: #0b1020; }
.rk-up { color: #73d13d; font-weight: 800; font-size: 13px; }
.rk-down { color: #ff7875; font-weight: 800; font-size: 13px; }
.rk-same { color: #64748b; }
.rk-name { font-weight: 700; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-meta { color: #94a3b8; font-size: 12px; }
.rk-bar { height: 8px; background: rgba(148,163,184,.2); border-radius: 999px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #36cfc9, #597ef7); transition: width .6s ease; }
.rk-score { text-align: right; font-weight: 800; color: #36cfc9; font-size: 16px; }

/* ---------- 学生端：我的惩罚任务 ---------- */
.penalty-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.penalty-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pr-main { flex: 1; }
.pr-title { font-weight: 700; font-size: 16px; }
.pr-meta { color: #64748b; font-size: 13px; margin: 4px 0; }
.pr-status { font-size: 14px; font-weight: 600; }
.pr-status.status-passed { color: #16a34a; }
.pr-status.status-unmet { color: #dc2626; }
.pr-status.status-pending { color: #d97706; }
.student-multi { width: 100%; }
.full { grid-column: 1 / -1; }
