/* =========================================================
   知行工坊 · 设计系统
   靛蓝主色 / 中性灰底 / 桌面优先（1366×768 起）
   ========================================================= */

:root {
  --bg: #F4F5F9;
  --panel: #FFFFFF;
  --ink: #191C24;
  --ink-2: #4A5063;
  --mut: #7C8497;
  --line: #E5E8EF;
  --line-2: #F0F2F7;
  --pri: #3B5BDB;
  --pri-d: #2F49B0;
  --pri-soft: #EEF1FD;
  --teal: #0B9B6E;
  --teal-soft: #E6F7F1;
  --amber: #E8590C;
  --amber-soft: #FFF0E6;
  --violet: #6741D9;
  --violet-soft: #F2EEFE;
  --danger: #D64545;
  --gold: #D99A00;
  --shadow-1: 0 1px 2px rgba(20, 24, 40, .05);
  --shadow-2: 0 10px 30px -18px rgba(20, 24, 40, .3);
  --shadow-3: 0 24px 50px -24px rgba(20, 24, 40, .32);
  --r: 14px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "ZCOOL XiaoWei", "Songti SC", "STSong", "PingFang SC", serif;
  --mono: "Cascadia Code", "JetBrains Mono", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 91, 219, .05) 1px, transparent 0);
  background-size: 22px 22px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: #D6DEFB; }
:focus-visible { outline: 2px solid rgba(59, 91, 219, .45); outline-offset: 2px; }

/* 展示字体：标题用衬线，建立杂志感层级 */
h1, h2, h3, h4, .page-title, .section-title, .card-title, .pc-title, .wb-title, .builder-summary h1, .auth-hero h1 {
  font-family: var(--font-display);
}

.ic { flex: none; display: block; }
.muted { color: var(--mut); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; }
.spacer { flex: 1; }

/* ---------- 基础组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 13px; font-weight: 600; border: 1px solid transparent;
  transition: background .16s, border-color .16s, color .16s, transform .1s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--pri); color: #fff; box-shadow: 0 1px 2px rgba(47, 73, 176, .28); }
.btn-pri:hover { background: var(--pri-d); }
.btn-sec { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-sec:hover { border-color: #C8D1E4; color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-white { background: #fff; color: var(--pri-d); }
.btn-white:hover { background: #F2F5FF; }
.btn-danger { background: #fff; border-color: #F1C8C8; color: var(--danger); }
.btn-danger:hover { background: #FDF3F3; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 13.5px; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2); transition: background .15s, color .15s; flex: none;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.chip.indigo { background: var(--pri-soft); color: var(--pri-d); }
.chip.teal { background: var(--teal-soft); color: #077A57; }
.chip.amber { background: var(--amber-soft); color: #B64C0A; }
.chip.violet { background: var(--violet-soft); color: #5331B5; }
.chip.slate { background: #EEF1F5; color: #526071; }
.chip.danger { background: #FDECEC; color: #B83232; }
.chip.white { background: rgba(255,255,255,.16); color: #fff; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; flex: none; letter-spacing: 0;
  user-select: none;
}
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -7px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; }
.ring span {
  position: relative; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

.bar { border-radius: 99px; background: var(--line-2); overflow: hidden; width: 100%; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--pri); transition: width .4s ease; }
.bar-teal i { background: var(--teal); }
.bar-amber i { background: var(--amber); }
.bar-violet i { background: var(--violet); }
.bar-slate i { background: #9AA3B2; }
.bar-white { background: rgba(255,255,255,.22); }
.bar-white i { background: #fff; }

.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; position: relative; flex: none;
  display: inline-block;
}
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7); animation: pulse 1.8s ease-out infinite;
}
.dot-live.green { background: var(--teal); }
.dot-live.green::after { border-color: rgba(11, 155, 110, .5); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px; display: flex; align-items: center; gap: 26px;
  padding: 0 24px;
  /* 原来这里是 rgba(.82) + backdrop-filter: blur(16px)：顶栏压在会动的内容上面，
     滚动或动画时每帧都要重算一遍 16px 模糊，核显的教室机上整页跟着卡。
     底色本身已经接近不透明，毛玻璃几乎看不出来，改成实色即可。 */
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, var(--line) 12%, var(--line) 88%, transparent 100%) 1;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, #2F49B0, #4C6BE8);
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(59, 91, 219, .7);
}
.brand-name { font-size: 14.5px; font-weight: 750; letter-spacing: .02em; line-height: 1.15; }
.brand-sub { font-size: 9.5px; color: var(--mut); letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav-item {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item .ic {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; background: #EEF1F6; color: #6B7385;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #F3F5FA; color: var(--ink); }
.nav-item:hover .ic { background: #E2E7F2; color: var(--ink-2); }
.nav-item.active { background: var(--pri-soft); color: var(--pri-d); font-weight: 600; }
.nav-item.active .ic { background: var(--pri); color: #fff; }
.top-right { display: flex; align-items: center; gap: 14px; flex: none; }
.top-class-select select { max-width: 150px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* 自带 display：原先只写列宽、靠 markup 上的 .cm-row 提供 display:grid，
   而 .cm-row 在 styles-v2.css（后加载）里同样定义了 grid-template-columns，
   同特异性下后者胜出，本页设计的列宽与下面的窄屏规则一直没能生效。 */
.sys-class-row { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr 1fr 80px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); gap: 12px; }
.sys-class-row small, .sys-teacher small { display: block; margin-top: 3px; }
.sys-teacher { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sys-teacher > div { flex: 1; } .sys-teacher .mono { margin-left: 12px; color: var(--mut); }
.sys-log { display: grid; grid-template-columns: 160px 100px 1fr 120px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.sys-backup-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.sys-backup-row > div:first-child { flex: 1; }
.sys-backup-row small { display: block; margin-top: 4px; }
.sys-import { display: flex; align-items: center; gap: 8px; }
.sys-import select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: var(--ink); }
.sys-busy { margin-top: 12px; font-size: 12px; color: var(--mut); }
.role-switch { display: flex; padding: 3px; background: #EFF1F6; border-radius: 10px; }
.role-switch button {
  height: 28px; padding: 0 12px; border-radius: 8px;
  font-size: 12px; color: var(--mut); font-weight: 500;
  transition: .15s;
}
.role-switch button.active {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 24, 40, .1);
}
.account { display: flex; align-items: center; gap: 9px; padding-left: 2px; }
.account-meta { line-height: 1.25; }
.account-name { font-size: 12.5px; font-weight: 600; }
.account-sub { font-size: 10px; color: var(--mut); }

/* ---------- 页面与标题 ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 26px 28px 64px; }
.page.tight { padding-top: 20px; }
.page-hall {
  background: radial-gradient(1100px 380px at 12% -140px, #E9EDFC 0%, rgba(233, 237, 252, 0) 62%);
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--pri); text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: .01em; margin: 0; line-height: 1.3; }
.page-sub { color: var(--mut); font-size: 12.5px; margin-top: 5px; }
.head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.class-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); font-weight: 500;
}
.class-pill .ic { color: var(--mut); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 14px; }
.section-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.section-count { font-size: 11px; color: var(--mut); font-weight: 500; }

/* ---------- 项目大厅 ---------- */
.continue-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 28px;
  padding: 24px 28px; border-radius: 18px;
  background: linear-gradient(118deg, #2B3F9E 0%, #3B5BDB 48%, #4E6DEC 100%);
  color: #fff;
  box-shadow: 0 22px 44px -28px rgba(43, 63, 158, .85);
  margin-bottom: 6px;
}
.cc-deco { position: absolute; right: 150px; top: -20px; opacity: .5; pointer-events: none; }
.cc-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cc-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; opacity: .9; margin-bottom: 9px; }
.cc-title { font-size: 23px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 5px; }
.cc-sub { font-size: 12.5px; opacity: .78; margin: 0; max-width: 640px; }
.cc-steps { display: flex; align-items: center; gap: 0; margin-top: 18px; flex-wrap: wrap; }
.cc-step { display: flex; align-items: center; gap: 7px; font-size: 11.5px; opacity: .55; }
.cc-step.done, .cc-step.current { opacity: 1; }
.cc-step-dot {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.55); font-size: 9.5px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.cc-step.done .cc-step-dot { background: rgba(255,255,255,.9); color: var(--pri-d); border-color: transparent; }
.cc-step.current .cc-step-dot {
  background: #fff; color: var(--pri-d); border-color: transparent;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 0 16px rgba(255,255,255,.35);
  position: relative;
}
/* 原来直接动画 box-shadow：阴影每帧都要重绘，是持续的绘制开销。
   改成伪元素做缩放+淡出，交给合成器，弱显卡上不再持续掉帧。 */
.cc-step.current .cc-step-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  animation: ccPulse 2s ease-out infinite;
}
@keyframes ccPulse {
  0% { transform: scale(.72); opacity: .6; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}
.cc-step-line {
  width: 34px; height: 2px; margin: 0 10px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.4), rgba(255,255,255,.12));
}
.cc-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.cc-pct { font-size: 30px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.cc-pct.cc-pct-count { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.cc-pct-label { font-size: 10.5px; opacity: .65; letter-spacing: .08em; margin-bottom: 6px; }

.hall-filters { display: flex; align-items: center; gap: 6px; }
.filter-chip {
  height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: var(--mut);
  border: 1px solid transparent; transition: .15s; font-weight: 500;
}
.filter-chip:hover { color: var(--ink); background: #F1F3F8; }
.filter-chip.active { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 600; box-shadow: var(--shadow-1); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: #D7DCE8; }
.pc-art { position: relative; height: 128px; overflow: hidden; }
.pc-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,.10) 100%);
}
.pc-art-svg { width: 100%; height: 100%; display: block; }
.pc-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.pc-status {
  display: inline-flex; align-items: center; gap: 6px;
  height: 23px; padding: 0 9px; border-radius: 6px;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
}
.pc-status.live { background: rgba(255,255,255,.95); color: #B64C0A; }
.pc-discipline {
  font-size: 10.5px; color: rgba(255,255,255,.85); font-weight: 500;
  background: rgba(0,0,0,.12); padding: 3px 8px; border-radius: 6px;
}
.pc-body { padding: 16px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.pc-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 7px; }
.pc-q { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-meta span { font-size: 10.5px; color: var(--mut); background: #F6F7FA; padding: 3px 7px; border-radius: 5px; }
.pc-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.pc-bar { flex: 1; }
.pc-pct { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; min-width: 72px; width: auto; text-align: right; white-space: nowrap; }
.pc-open { font-size: 12px; color: var(--pri); font-weight: 600; display: flex; align-items: center; gap: 3px; }

/* ---------- 工作台 ---------- */
.wb { height: calc(100vh - 60px); display: flex; flex-direction: column; overflow: hidden; }
.wb-head {
  flex: none; height: 68px; display: flex; align-items: center; gap: 14px;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.wb-title-wrap { min-width: 0; }
.wb-eyebrow { font-size: 10.5px; color: var(--mut); letter-spacing: .04em; }
.wb-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-lesson { display: flex; align-items: center; gap: 7px; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line); flex: none; }
.wb-lesson .ls { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.wb-lesson .ls-sub { font-size: 10.5px; color: var(--mut); }
.wb-members { display: flex; align-items: center; gap: 8px; flex: none; }
.wb-members .lbl { font-size: 10.5px; color: var(--mut); }
.wb-right-zone { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.wb-prog { display: flex; align-items: center; gap: 8px; }
.wb-prog .txt { font-size: 10.5px; color: var(--mut); line-height: 1.35; }
.wb-prog .txt b { display: block; font-size: 11.5px; color: var(--ink-2); }

.wb-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 268px minmax(0, 1fr) 320px;
  gap: 14px; padding: 14px 18px 16px;
}
.wb-left, .wb-center, .wb-right {
  min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-bottom: 1px solid var(--line-2);
}
.panel-title { font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.panel-title .ic { color: var(--mut); }
.panel-sub { font-size: 10.5px; color: var(--mut); }

.stage-scroll { flex: 1; overflow: auto; padding: 10px 10px 16px; }
.stage-block { margin-bottom: 6px; }
.stage-head {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 8px; border-radius: 9px; cursor: pointer; transition: background .15s;
}
.stage-head:hover { background: #F7F8FC; }
.stage-num {
  width: 23px; height: 23px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: #F0F2F7; color: var(--mut); font-variant-numeric: tabular-nums;
}
.stage-block.active .stage-num { background: var(--pri); color: #fff; }
.stage-block.done .stage-num { background: var(--teal-soft); color: var(--teal); }
.stage-name-wrap { min-width: 0; flex: 1; }
.stage-name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.stage-meta { font-size: 10px; color: var(--mut); }
.stage-lock { color: #B3BAC8; }
.stage-block.locked .stage-name { color: var(--mut); }
.stage-block.locked .stage-num { background: #F5F6F9; }
.stage-tasks { padding: 2px 0 8px 0; }
.task-row {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 8px 8px 10px; border-radius: 8px; cursor: pointer;
  position: relative; transition: background .15s;
}
.task-row:hover { background: #F7F8FC; }
.task-row.active { background: var(--pri-soft); }
.task-row.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px;
  border-radius: 2px; background: var(--pri);
}
.tr-type { color: #99A1B2; margin-top: 2px; }
.task-row.active .tr-type { color: var(--pri); }
.task-row.done .tr-type { color: var(--teal); }
.task-row.locked { opacity: .5; cursor: default; }
.tr-title { flex: 1; font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.task-row.active .tr-title { color: var(--pri-d); font-weight: 600; }
.task-row.done .tr-title { color: var(--ink-2); }
.tr-state { flex: none; margin-top: 2px; color: #B7BECC; }
.task-row.done .tr-state { color: var(--teal); }
.task-row.active .tr-state { color: var(--pri); }

.wb-help {
  flex: none; border-top: 1px solid var(--line-2); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; background: #FBFCFE;
}
.wb-help .txt { flex: 1; min-width: 0; }
.wb-help b { display: block; font-size: 11.5px; font-weight: 600; }
.wb-help span { font-size: 10.5px; color: var(--mut); }

.task-scroll { flex: 1; overflow: auto; }
.task-head { padding: 22px 26px 0; }
.task-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.task-title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.35; }
.task-meta { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--mut); flex-wrap: wrap; }
.task-meta span { display: flex; align-items: center; gap: 5px; }
.task-brief {
  margin: 14px 0 0; padding: 11px 14px; border-radius: 9px;
  background: #F8F9FC; border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.task-body { padding: 18px 26px 40px; }
.task-foot {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-top: 1px solid var(--line);
  background: #fff;
}
.task-foot .grow { flex: 1; }
.task-foot .status-note { font-size: 11.5px; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.task-foot .status-note.done { color: var(--teal); }

.task-success {
  display: flex; align-items: center; gap: 10px; margin: 0 26px 18px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--teal-soft); border: 1px solid #CFEDE1; color: #077A57;
  font-size: 12.5px;
}
.task-success b { font-weight: 700; }

/* 右侧抽屉 */
.drawer-tabs { flex: none; display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line-2); }
.drawer-tab {
  flex: 1; height: 29px; border-radius: 7px; font-size: 11.5px; color: var(--mut); font-weight: 500;
  transition: .15s;
}
.drawer-tab:hover { background: #F6F7FA; color: var(--ink); }
.drawer-tab.active { background: var(--pri-soft); color: var(--pri-d); font-weight: 650; }
.drawer-scroll { flex: 1; overflow: auto; padding: 15px 14px 22px; }
.drawer-block { margin-bottom: 20px; }
.drawer-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--mut);
  text-transform: uppercase; margin-bottom: 9px;
}
.drawer-label a, .drawer-label button { font-size: 10.5px; color: var(--pri); font-weight: 600; letter-spacing: 0; text-transform: none; }
.crit-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  margin-bottom: 9px; background: #FCFCFE;
}
.crit-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.crit-top span { font-size: 10.5px; color: var(--mut); font-weight: 500; }
.crit-desc { font-size: 11.5px; color: var(--mut); line-height: 1.65; margin-top: 5px; }
.stack-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line-2); margin: 9px 0 7px; }
.stack-bar i { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 10px; color: var(--mut); }
.stack-legend span { display: flex; align-items: center; gap: 4px; }
.stack-legend i { width: 6px; height: 6px; border-radius: 2px; display: block; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.6; padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
}
.check-list li:last-child { border-bottom: 0; }
.check-list .ic { color: var(--teal); margin-top: 2px; flex: none; }
.res-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.res-item:hover { background: #F7F8FC; }
.res-ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--pri-soft); color: var(--pri);
}
.res-ic.teal { background: var(--teal-soft); color: var(--teal); }
.res-ic.amber { background: var(--amber-soft); color: var(--amber); }
.res-name { font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.res-meta { font-size: 10.5px; color: var(--mut); }
.peer-item { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.peer-item:last-child { border-bottom: 0; }
.peer-body { min-width: 0; flex: 1; }
.peer-head { font-size: 11px; color: var(--mut); display: flex; gap: 6px; align-items: center; }
.peer-head b { color: var(--ink-2); font-size: 11.5px; }
.peer-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.65; margin-top: 3px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ask-chip {
  font-size: 11px; padding: 5px 9px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--ink-2); background: #fff;
  transition: .15s;
}
.ask-chip:hover { border-color: #C7D1EA; color: var(--pri); }
.ask-area {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px;
  font-size: 12px; resize: vertical; min-height: 72px; background: #FBFCFE;
  outline: none;
}
.ask-area:focus { border-color: #B9C6EE; background: #fff; box-shadow: 0 0 0 3px rgba(59, 91, 219, .08); }
.ask-sent {
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
  background: var(--teal-soft); color: #077A57; font-size: 11.5px; line-height: 1.6;
}

/* ---------- 任务内容：阅读 ---------- */
.prose { max-width: 720px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose .lead { font-size: 15px; color: var(--ink); line-height: 1.85; margin-bottom: 14px; }
.prose h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; letter-spacing: -.01em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--pri);
  background: #F7F8FD; border-radius: 0 8px 8px 0; color: var(--ink); font-size: 13.5px;
}
.quote-card {
  margin: 20px 0; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #F0F3FF, #F8F9FD);
  border: 1px solid #DFE5FB;
}
.quote-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--pri); margin-bottom: 6px; }
.quote-card p { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); line-height: 1.65; }
.need-list { list-style: none; padding: 0; margin: 12px 0; }
.need-list li {
  display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.need-list li:last-child { border-bottom: 0; }
.need-list li span {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--pri);
  padding-top: 4px; flex: none;
}
.callout {
  margin: 18px 0; padding: 13px 15px; border-radius: 10px;
  background: var(--pri-soft); border: 1px solid #DDE4FB;
}
.callout-title { font-size: 11.5px; font-weight: 700; color: var(--pri-d); margin-bottom: 4px; }
.callout p { margin: 0; font-size: 12.5px; line-height: 1.75; }
.callout.warn { background: var(--amber-soft); border-color: #FADFCB; }
.callout.warn .callout-title { color: #B54708; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 12px 0;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.data-table th {
  background: #F8F9FC; text-align: left; font-weight: 650; color: var(--ink-2);
  padding: 8px 11px; border-bottom: 1px solid var(--line); font-size: 11.5px;
}
.data-table td { padding: 8px 11px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code {
  font-family: var(--mono); font-size: 11.5px; background: #F3F5FA;
  padding: 1px 5px; border-radius: 4px; color: var(--pri-d);
}
.mini-note { font-size: 12px; color: var(--mut); line-height: 1.7; }
.chart-hint { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.chart-hint > div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFD; }
.chart-hint b { display: block; font-size: 12px; margin-bottom: 3px; color: var(--ink); }
.chart-hint span { font-size: 11.5px; color: var(--mut); line-height: 1.6; }

/* ---------- 任务内容：小测 ---------- */
.quiz { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; background: #fff; }
.q-title { display: flex; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.7; margin-bottom: 12px; }
.q-num {
  flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--pri);
  background: var(--pri-soft); padding: 2px 6px; border-radius: 5px; height: 20px; margin-top: 2px;
}
.opt {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 7px; cursor: pointer; font-size: 13px; color: var(--ink-2);
  transition: border-color .15s, background .15s; line-height: 1.65;
}
.opt:hover { border-color: #C7D2EE; background: #FAFBFF; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: #F1F3F8; color: var(--mut); margin-top: 1px;
}
.opt.selected { border-color: var(--pri); background: var(--pri-soft); color: var(--pri-d); }
.opt.selected .opt-key { background: var(--pri); color: #fff; }
.opt.correct { border-color: #A8DECB; background: var(--teal-soft); color: #077A57; }
.opt.correct .opt-key { background: var(--teal); color: #fff; }
.opt.wrong { border-color: #F0C2C2; background: #FDF3F3; color: #A83232; }
.opt.wrong .opt-key { background: var(--danger); color: #fff; }
.q-feedback {
  margin-top: 9px; padding: 10px 12px; border-radius: 8px;
  background: #F6F8FB; color: var(--ink-2); font-size: 12px; line-height: 1.75;
}
.q-feedback.good { background: var(--teal-soft); color: #077A57; }
.q-feedback.bad { background: #FDF3F3; color: #A83232; }
.quiz-result {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 10px; background: #F7F9FD; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
}

/* ---------- 任务内容：代码 ---------- */
.code-shell {
  max-width: 780px; border-radius: 12px; overflow: hidden;
  border: 1px solid #232A3A; background: #151922; box-shadow: 0 14px 30px -22px rgba(0,0,0,.6);
}
.code-top {
  height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 13px; background: #1A1F2B; border-bottom: 1px solid #252C3C;
}
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3B4356; display: block; }
.code-file { font-size: 11px; color: #8D97AD; font-family: var(--mono); margin-left: 6px; }
.sandbox-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: #939DB4; border: 1px solid #313A4C;
  padding: 2px 8px; border-radius: 20px;
}
.code-body {
  display: flex; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  background: #151922;
}
.code-lines {
  flex: none; width: 40px; padding: 12px 7px 12px 0; text-align: right;
  color: #4A5368; user-select: none; background: #131720; white-space: pre;
}
.code-area {
  flex: 1; border: 0; background: transparent; color: #D7DDEC;
  padding: 12px 14px 12px 10px; resize: vertical; min-height: 190px;
  outline: none; font-family: inherit; font-size: inherit; line-height: inherit;
  tab-size: 4; white-space: pre; overflow: auto; caret-color: #8EA2FF;
}
.code-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; background: #1A1F2B; border-top: 1px solid #252C3C;
}
.code-run {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px;
  border-radius: 7px; background: #2F49B0; color: #fff; font-size: 11.5px; font-weight: 600;
}
.code-run:hover { background: #3B5BDB; }
.code-hint { margin-left: auto; font-size: 10.5px; color: #7E889E; }
.console {
  max-width: 780px; margin-top: 12px; border-radius: 10px; overflow: hidden;
  border: 1px solid #232A3A; background: #0F131B;
}
.console-head {
  height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  background: #171C27; border-bottom: 1px solid #222937;
  font-size: 10.5px; color: #7F899F; letter-spacing: .04em;
}
.console-body {
  padding: 11px 13px; white-space: pre-wrap; line-height: 1.7;
  font-family: var(--mono); font-size: 12px; color: #C6CEE2; min-height: 46px;
}
.console-body.ok { color: #7FE0A6; }
.console-body.err { color: #FF9B9B; }
.code-ok-note { font-size: 11.5px; color: var(--teal); display: flex; align-items: center; gap: 5px; margin-top: 8px; }

/* ---------- 任务内容：数据表 ---------- */
.table-wrap { max-width: 780px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.data-grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.data-grid th {
  background: #F8F9FC; padding: 8px 10px; font-weight: 650; color: var(--ink-2);
  border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 11.5px;
}
.data-grid td { border-bottom: 1px solid var(--line-2); padding: 0; }
.data-grid tr:last-child td { border-bottom: 0; }
.data-grid input {
  width: 100%; min-width: 64px; border: 0; padding: 8px 10px;
  font: inherit; color: var(--ink); background: transparent; outline: none;
  font-variant-numeric: tabular-nums;
}
.data-grid input:focus { background: #F5F8FF; box-shadow: inset 0 0 0 1px var(--pri); }
.data-grid td.bad { background: #FFF4F4; box-shadow: inset 0 0 0 1px #F1B9B9; }
.table-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 780px; }
.rule-msg { font-size: 12px; color: var(--danger); line-height: 1.6; }
.rule-msg.ok { color: var(--teal); }

/* ---------- 任务内容：上传 ---------- */
.dropzone {
  max-width: 680px; border: 1.5px dashed #C8D2E4; border-radius: 14px;
  background: linear-gradient(180deg, #FBFCFE, #F7F9FC);
  padding: 34px 24px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--pri); background: var(--pri-soft); }
.dz-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  margin: 0 auto 12px; color: var(--pri);
  box-shadow: var(--shadow-1);
}
.dz-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.dz-sub { font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.dz-types { font-size: 10.5px; color: var(--mut); margin-top: 10px; }
.file-row {
  display: flex; align-items: center; gap: 12px; max-width: 680px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.file-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 10.5px; color: var(--mut); }
.req-list { list-style: none; padding: 0; margin: 14px 0 0; max-width: 680px; }
.req-list li { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 5px 0; line-height: 1.65; }
.req-list .ic { color: var(--teal); margin-top: 3px; flex: none; }

/* ---------- 任务内容：讨论 ---------- */
.thread { max-width: 720px; display: flex; flex-direction: column; gap: 11px; }
.post { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.post.mine { border-color: var(--pri); background: rgba(76, 107, 232, .04); }
.post-count { font-size: 10.5px; color: var(--mut); margin-right: 8px; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--mut); }
.post-head b { font-size: 12px; color: var(--ink); font-weight: 600; }
.post-time { margin-left: auto; font-size: 10.5px; color: #A3AABB; }
.post-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin-top: 5px; }
.post-form { max-width: 720px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; }
.post-form textarea {
  width: 100%; border: 0; outline: none; resize: vertical;
  font-size: 12.5px; min-height: 62px; color: var(--ink); background: transparent; line-height: 1.7;
}
.post-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.post-hint { font-size: 10.5px; color: var(--mut); }

/* ---------- 任务内容：反思 ---------- */
.reflect { max-width: 720px; display: flex; flex-direction: column; gap: 15px; }
.reflect-q { padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.reflect-label { display: flex; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.7; }
.reflect-index {
  flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--amber-soft);
  color: #B64C0A; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; margin-top: 1px;
}
.reflect textarea {
  width: 100%; min-height: 82px; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 12.5px; resize: vertical; color: var(--ink);
  background: #FBFCFE; line-height: 1.75; outline: none;
}
.reflect textarea:focus { border-color: #B9C6EE; background: #fff; box-shadow: 0 0 0 3px rgba(59, 91, 219, .08); }
.save-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mut); transition: color .2s; }
.save-state.saved { color: var(--teal); }

/* ---------- 任务内容：成果提交 ---------- */
.submit-card { max-width: 720px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 20px 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.check-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.check-item:last-child { border-bottom: 0; }
.check-item .ic { color: var(--teal); margin-top: 2px; flex: none; }
.submit-zone {
  border: 1.5px dashed #C8D2E4; border-radius: 11px; padding: 22px 18px;
  text-align: center; background: #FAFBFE; cursor: pointer; transition: .18s;
}
.submit-zone:hover { border-color: var(--pri); background: var(--pri-soft); }
.submit-zone b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
.submit-zone span { font-size: 11px; color: var(--mut); }

/* ---------- 展廊 ---------- */
.gal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.gal-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: #D7DCE8; }
.wc-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work-art-svg { width: 100%; height: 100%; display: block; transition: transform .45s ease; }
.work-card:hover .work-art-svg { transform: scale(1.035); }
.wc-badge {
  position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: rgba(255,255,255,.92); color: #B54708;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px;
}
.wc-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.wc-title {
  font-size: 13px; font-weight: 650; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.wc-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--mut); }
.wc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.wc-tags span { font-size: 10px; color: var(--mut); background: #F5F6F9; padding: 2px 6px; border-radius: 4px; }
.wc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 9px; border-top: 1px solid var(--line-2); margin-top: auto;
}
.score { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.score .ic { color: #E9B308; fill: #E9B308; }
.score small { font-size: 10px; color: var(--mut); font-weight: 500; }
.wc-review { font-size: 10.5px; color: var(--mut); display: flex; align-items: center; gap: 4px; }

/* 作品详情 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(14, 18, 28, .48);
  backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center;
  padding: 30px; animation: fade .18s ease;
}
.modal {
  width: min(1000px, 100%); max-height: calc(100vh - 60px);
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.38);
  animation: pop .22s ease;
}
.modal-head {
  flex: none; height: 52px; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid var(--line);
}
.modal-head .mt { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.modal-head .chip { margin-left: 2px; }
.modal-close { margin-left: auto; }
.modal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; }
.modal-art {
  position: relative; background: #10131B; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-art .work-art-svg { position: absolute; inset: -12%; width: 124%; height: 124%; opacity: .42; filter: blur(26px) saturate(1.15); }
.modal-art .work-art-svg.art-main {
  position: relative; inset: auto; width: 86%; height: auto; aspect-ratio: 4 / 3;
  flex: none; opacity: 1; filter: none;
  border-radius: 10px; box-shadow: 0 22px 54px rgba(0, 0, 0, .45);
}
.modal-info { overflow: auto; padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.m-title { font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.45; margin: 0; }
.m-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--mut); }
.m-summary { font-size: 12.5px; color: var(--ink-2); line-height: 1.85; background: #F9FAFD; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.m-section { display: flex; flex-direction: column; gap: 9px; }
.m-section-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; display: flex; justify-content: space-between; }
.sb-row { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.sb-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.comments { display: flex; flex-direction: column; gap: 9px; }
.comment { display: flex; gap: 9px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--mut); }
.comment-head b { color: var(--ink); font-size: 11.5px; }
.comment-text { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }
.review-form { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-row .rl { font-size: 11.5px; color: var(--ink-2); }
.stars { display: flex; gap: 3px; }
.star-btn { color: #D9DEE8; padding: 2px; transition: color .12s, transform .12s; }
.star-btn:hover { transform: scale(1.1); }
.star-btn.on { color: #E9B308; }
.star-btn .ic { fill: currentColor; }
.review-comment {
  width: 100%; min-height: 62px; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 12px; resize: vertical; background: #FBFCFE; outline: none; line-height: 1.7;
}
.review-comment:focus { border-color: #B9C6EE; background: #fff; }
.review-done {
  display: flex; gap: 9px; align-items: center; padding: 11px 13px;
  border-radius: 10px; background: var(--teal-soft); color: #077A57; font-size: 12px;
}

/* ---------- 成长档案 ---------- */
.profile-card {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 18px;
  background-image: radial-gradient(500px 160px at 92% 0%, #EEF2FE 0%, transparent 70%);
}
.profile-main { flex: 1; min-width: 0; }
.profile-name { font-size: 21px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.profile-meta { font-size: 11.5px; color: var(--mut); margin-top: 3px; }
.profile-stats { display: flex; gap: 26px; padding: 0 26px; border-left: 1px solid var(--line); }
.p-stat { text-align: right; }
.p-stat b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.p-stat span { font-size: 10.5px; color: var(--mut); }
.badge-mini {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
}
.growth-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 0; }
.card-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.card-title .ic { color: var(--mut); }
.card-sub { font-size: 10.5px; color: var(--mut); }
.card-body { padding: 14px 18px 18px; }
.radar-wrap { display: flex; justify-content: center; padding: 2px 0 0; }
.radar-svg { max-width: 100%; height: auto; }
.radar-label { font-size: 10.5px; fill: var(--ink-2); font-family: var(--font); }
.radar-value { font-size: 10.5px; fill: var(--pri); font-weight: 700; font-family: var(--font); font-variant-numeric: tabular-nums; }
.k-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.k-row:last-child { border-bottom: 0; }
.k-name { width: 92px; font-size: 12px; color: var(--ink-2); flex: none; }
.k-bar { flex: 1; }
.k-val { width: 32px; text-align: right; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.k-meta { font-size: 10px; color: var(--mut); width: 96px; text-align: right; flex: none; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-item { border: 1px solid var(--line); border-radius: 11px; padding: 12px 10px; text-align: center; background: #FCFCFE; }
.badge-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 7px; }
.badge-ic.indigo { background: var(--pri-soft); color: var(--pri); }
.badge-ic.teal { background: var(--teal-soft); color: var(--teal); }
.badge-ic.amber { background: var(--amber-soft); color: var(--amber); }
.badge-name { font-size: 11.5px; font-weight: 650; }
.badge-desc { font-size: 10px; color: var(--mut); margin-top: 2px; line-height: 1.5; }
.note-card {
  background: linear-gradient(135deg, #FFF9F2, #FFFDFB);
  border: 1px solid #F6E3D2; border-radius: var(--r); padding: 18px;
}
.note-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #B54708; margin-bottom: 7px; }
.note-text { font-size: 12.5px; color: #6B4A32; line-height: 1.85; }
.note-sign { font-size: 11px; color: #A07A5B; margin-top: 10px; text-align: right; }
.timeline { display: flex; flex-direction: column; position: relative; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { width: 26px; flex: none; display: flex; flex-direction: column; align-items: center; position: relative; }
.tl-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); color: var(--mut); z-index: 1; }
.tl-dot.indigo { background: var(--pri-soft); color: var(--pri); }
.tl-dot.teal { background: var(--teal-soft); color: var(--teal); }
.tl-dot.amber { background: var(--amber-soft); color: #B64C0A; }
.tl-line { flex: 1; width: 1.5px; background: var(--line); margin-top: 4px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body { flex: 1; min-width: 0; padding-top: 2px; }
.tl-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.tl-meta { font-size: 10.5px; color: var(--mut); margin-top: 2px; }
.tl-date { font-size: 10.5px; color: #A3AABB; width: 38px; text-align: right; flex: none; font-variant-numeric: tabular-nums; padding-top: 4px; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.history-row:last-child { border-bottom: 0; }
.history-title { font-size: 12px; font-weight: 600; }
.history-meta { font-size: 10.5px; color: var(--mut); }
.history-score { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 教师驾驶舱 ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  background: var(--teal-soft); color: #077A57; font-size: 11.5px; font-weight: 600;
}
.live-pill .dot-live.green { background: var(--teal); }
.timer { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: #077A57; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.stat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri); flex: none; }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.violet { background: var(--violet-soft); color: var(--violet); }
.stat-val { font-size: 21px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-val small { font-size: 11px; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.stat-label { font-size: 10.5px; color: var(--mut); }
.stage-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stage-ctl { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.stage-ctl.current { border-color: #C3CEF5; background: linear-gradient(180deg, #F8FAFF, #fff); }
.stage-ctl.locked { background: #FBFBFD; }
.sc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.sc-num { width: 27px; height: 27px; border-radius: 8px; background: #F0F2F7; color: var(--mut); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.stage-ctl.current .sc-num { background: var(--pri); color: #fff; }
.stage-ctl.done .sc-num { background: var(--teal-soft); color: var(--teal); }
.sc-name { font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.sc-meta { font-size: 10px; color: var(--mut); }
.sc-action { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-progress { font-size: 10.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.student-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-filter { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 11px; color: var(--mut); font-weight: 500; }
.mini-filter:hover { background: #F4F5F9; color: var(--ink); }
.mini-filter.active { background: var(--pri-soft); color: var(--pri-d); font-weight: 600; }
.student-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.student-tile {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s;
  min-width: 0;
}
.student-tile:hover { border-color: #C6D0E7; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.student-tile.attention { border-color: #F4CBA4; background: #FFFCF8; }
.student-tile.offline { opacity: .58; }
.st-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.st-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-status { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; flex: none; }
.st-task { font-size: 9.5px; color: var(--mut); margin: 6px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-foot { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #A3AABB; font-variant-numeric: tabular-nums; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; margin-bottom: 14px; }
.side-title { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.side-title .ic { color: var(--amber); }
.alert-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.alert-item:last-child { border-bottom: 0; }
.alert-num {
  width: 24px; height: 24px; border-radius: 7px; background: var(--amber-soft); color: #B54708;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none;
}
.alert-text { flex: 1; min-width: 0; }
.alert-text b { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.alert-text span { font-size: 10px; color: var(--mut); }
.alert-btn { font-size: 10.5px; color: var(--amber); font-weight: 600; white-space: nowrap; align-self: center; }
.completion-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.completion-name { width: 58px; font-size: 10.5px; color: var(--ink-2); flex: none; }
.completion-bar { flex: 1; }
.completion-pct { width: 30px; text-align: right; font-size: 10px; color: var(--mut); font-variant-numeric: tabular-nums; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 10.5px; color: var(--ink-2); text-align: left; transition: .15s;
  background: #FCFCFE;
}
.quick-btn:hover { border-color: #C6D0E7; background: #fff; }
.quick-btn .ic { color: var(--pri); }

/* 学生详情抽屉 */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(14, 18, 28, .28); z-index: 70;
  animation: fade .16s;
}
.student-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 390px; z-index: 71;
  background: #fff; box-shadow: -24px 0 60px rgba(14, 18, 28, .2);
  display: flex; flex-direction: column; animation: slideIn .24s ease;
}
.sd-head { padding: 17px 18px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 11px; }
.sd-main { flex: 1; min-width: 0; }
.sd-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sd-meta { font-size: 10.5px; color: var(--mut); margin-top: 2px; }
.sd-body { flex: 1; overflow: auto; padding: 16px 18px; }
.sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.sd-stat { background: #F8F9FC; border-radius: 9px; padding: 9px 10px; }
.sd-stat b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.sd-stat span { font-size: 9.5px; color: var(--mut); }
.sd-section { margin-bottom: 18px; }
.sd-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; margin-bottom: 8px; }
.sd-stage { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.sd-stage-name { width: 76px; font-size: 11px; color: var(--ink-2); flex: none; }
.sd-stage-bar { flex: 1; }
.sd-stage-pct { width: 30px; text-align: right; font-size: 10px; color: var(--mut); }
.evidence { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.evidence:last-child { border-bottom: 0; }
.evidence-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.evidence b { display: block; font-size: 11px; font-weight: 600; }
.evidence span { font-size: 10px; color: var(--mut); }
.sd-actions { flex: none; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #FCFCFE; }

/* ---------- 评价中心 ---------- */
.eval-tabs { display: flex; gap: 4px; margin-bottom: 18px; background: #EDEFF5; padding: 4px; border-radius: 10px; width: fit-content; }
.eval-tab { height: 30px; padding: 0 14px; border-radius: 7px; font-size: 12px; color: var(--mut); font-weight: 500; }
.eval-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.eval-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr) 306px; gap: 16px; align-items: start; }
.eval-list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.eval-search { padding: 10px 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 7px; color: var(--mut); }
.eval-search input { flex: 1; border: 0; outline: none; font-size: 11.5px; background: transparent; color: var(--ink); }
.eval-people { max-height: calc(100vh - 290px); overflow: auto; padding: 6px; }
.eval-person { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background .13s; }
.eval-person:hover { background: #F7F8FC; }
.eval-person.active { background: var(--pri-soft); }
.ep-main { flex: 1; min-width: 0; }
.ep-name { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.ep-meta { font-size: 9.5px; color: var(--mut); }
.ep-score { font-size: 11px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eval-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.eval-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.eval-head-main { flex: 1; min-width: 0; }
.eval-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.eval-meta { font-size: 10.5px; color: var(--mut); margin-top: 2px; }
.eval-scores { display: flex; gap: 14px; }
.eval-score { text-align: right; }
.eval-score b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.eval-score span { font-size: 9.5px; color: var(--mut); }
.eval-body { padding: 16px 18px 18px; }
.eval-evidence { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.eval-evidence span { font-size: 10.5px; color: var(--ink-2); background: #F5F7FA; padding: 4px 8px; border-radius: 5px; display: flex; align-items: center; gap: 4px; }
.eval-evidence .ic { color: var(--teal); }
.crit-row { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 10px; }
.crit-head { display: flex; align-items: baseline; gap: 8px; }
.crit-name { font-size: 12.5px; font-weight: 650; }
.crit-weight { font-size: 10px; color: var(--mut); }
.crit-points { margin-left: auto; font-size: 10.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.level-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.level-btn {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 5px;
  font-size: 11px; color: var(--ink-2); background: #fff; transition: .13s;
  text-align: center; line-height: 1.35;
}
.level-btn small { display: block; font-size: 9px; color: var(--mut); font-weight: 400; margin-top: 1px; }
.level-btn:hover { border-color: #C3CDE9; background: #FAFBFF; }
.level-btn.active { border-color: var(--pri); background: var(--pri-soft); color: var(--pri-d); font-weight: 600; }
.level-btn.active small { color: var(--pri); }
.level-desc { margin-top: 8px; font-size: 10.5px; color: var(--mut); background: #F9FAFD; border-radius: 6px; padding: 6px 9px; line-height: 1.6; }
.eval-total {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding: 12px 14px; border-radius: 10px; background: #F7F9FF; border: 1px solid #E2E9FB;
}
.eval-total .big { font-size: 26px; font-weight: 750; letter-spacing: -.03em; color: var(--pri-d); line-height: 1; font-variant-numeric: tabular-nums; }
.eval-total .lbl { font-size: 10.5px; color: var(--mut); line-height: 1.45; }
.eval-total .grow { flex: 1; }
.eval-comment {
  width: 100%; min-height: 66px; margin-top: 12px; border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; font-size: 12px; resize: vertical;
  background: #FBFCFE; outline: none; line-height: 1.7;
}
.eval-comment:focus { border-color: #B9C6EE; background: #fff; }
.eval-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.auto-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 11px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.auto-row:last-child { border-bottom: 0; }
.auto-row b { font-variant-numeric: tabular-nums; }
.auto-bar { width: 80px; }
.auto-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.auto-total b { font-size: 18px; font-weight: 750; color: var(--pri-d); font-variant-numeric: tabular-nums; }
.peer-mini { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.peer-mini:last-child { border-bottom: 0; }
.peer-mini .pn { flex: 1; font-size: 11px; color: var(--ink-2); }
.peer-mini .ps { font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.flag-box {
  margin-top: 14px; padding: 11px 12px; border-radius: 9px;
  background: var(--amber-soft); border: 1px solid #F7DCC4;
}
.flag-box b { font-size: 11px; color: #B54708; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.flag-box p { margin: 0; font-size: 10.5px; color: #8A5A33; line-height: 1.65; }
.review-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.review-table th { text-align: left; padding: 9px 12px; background: #F8F9FC; color: var(--ink-2); font-weight: 600; font-size: 10.5px; border-bottom: 1px solid var(--line); }
.review-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.review-table tr:last-child td { border-bottom: 0; }
.review-table tr.warn-row { background: #FFFBF6; }
.review-table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.eval-overview { display: flex; gap: 22px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.ov-item { display: flex; align-items: center; gap: 9px; }
.ov-item b { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ov-item span { font-size: 10.5px; color: var(--mut); line-height: 1.4; }

/* ---------- 各屏小结构 ---------- */
.empty-state { padding: 60px 20px; text-align: center; color: var(--mut); }
.empty-state .ic { margin: 0 auto 10px; color: #B9C0CE; }
.panel-body { padding: 15px 17px; }
.panel-pad { padding: 15px 17px; }
.wb .panel-head { padding: 12px 14px; }
.wb .panel-body { padding: 12px 14px; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 10px;
  background: #1D2230; color: #fff; font-size: 12.5px; font-weight: 500;
  box-shadow: 0 14px 34px rgba(0,0,0,.28); animation: toastIn .22s ease;
  max-width: 80vw;
}
.toast .ic { color: #7FE0A6; }

@keyframes pulse {
  0% { transform: scale(.85); opacity: .9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes checkPop {
  0% { transform: scale(0.4); opacity: 0; }
  55% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 卡片交错入场：列表内第 n 张依次延迟。
   只在「真的换视图」时播（body.anim-in）：整树重渲染每次都会新建这些节点，
   原来每点一下都重播一次 0.5s 的交错上浮，页面永远在动 = 永远在卡。 */
body.anim-in .proj-card, body.anim-in .project-card, body.anim-in .stage-block {
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.builder-grid .proj-card:nth-child(1) { animation-delay: .02s; }
.builder-grid .proj-card:nth-child(2) { animation-delay: .08s; }
.builder-grid .proj-card:nth-child(3) { animation-delay: .14s; }
.builder-grid .proj-card:nth-child(4) { animation-delay: .20s; }
.builder-grid .proj-card:nth-child(5) { animation-delay: .26s; }
.builder-grid .proj-card:nth-child(6) { animation-delay: .32s; }
.project-grid .project-card:nth-child(1) { animation-delay: .02s; }
.project-grid .project-card:nth-child(2) { animation-delay: .08s; }
.project-grid .project-card:nth-child(3) { animation-delay: .14s; }
.project-grid .project-card:nth-child(4) { animation-delay: .20s; }
.stage-block:nth-child(1) { animation-delay: .03s; }
.stage-block:nth-child(2) { animation-delay: .09s; }
.stage-block:nth-child(3) { animation-delay: .15s; }
.stage-block:nth-child(4) { animation-delay: .21s; }
.stage-block:nth-child(5) { animation-delay: .27s; }

/* 任务完成勾选反馈 */
.task-row.done .tr-state { animation: checkPop .35s cubic-bezier(.2, .8, .3, 1.4); }
.cs-item.on { animation: checkPop .3s ease; }
/* 换视图时整页淡入；原地交互（切页签、勾完成标准、发表讨论）不再重播 */
body.anim-in .view-anim { animation: fadeUp .22s ease; }

/* ---------- 自适应 ---------- */
@media (max-width: 1360px) {
  .page { padding-left: 22px; padding-right: 22px; }
  .wb-grid { grid-template-columns: 252px minmax(0, 1fr) 304px; padding: 12px 14px 14px; gap: 12px; }
  .student-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .eval-layout { grid-template-columns: 238px minmax(0, 1fr) 280px; gap: 13px; }
}
/* 顶栏导航：admin 9 个页签带文字实测需 1531px 视口（页签 926 + 品牌 112
   + 右侧控件 367 + 内边距 48 + 段间距 78），教师 8 个需 ~1428px。
   原先 1220 才收起文字，1366 笔记本上已经溢出并压到班级选择器上。
   只动导航相关规则，同断点下的其他布局仍留在 1220 块里。 */
@media (max-width: 1540px) {
  .nav-item { padding: 0 9px; }
  .nav-item span { display: none; }
  .nav-item .ic { margin: 0; }
}
@media (max-width: 1220px) {
  .wb-grid { grid-template-columns: 240px minmax(0, 1fr) 286px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .growth-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .stat-card { padding: 13px 14px; }
}
@media (max-width: 1100px) {
  /* 顶栏压缩提前到 1100：9 个页签纯图标也要 392px，原先只在 900 以下压缩，
     901–1100 这段导航会溢出压到班级选择器上。 */
  .topbar { gap: 12px; }
  .top-class-select select { max-width: 100px; }
  .brand-sub { display: none; }
  .account-meta { display: none; }
  .wb-grid { grid-template-columns: 232px minmax(0, 1fr); }
  .wb-right { display: none; }
  .eval-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .eval-side { display: none; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sys-class-row { grid-template-columns: 1fr 1fr 1fr; }
  .sys-class-row > *:nth-child(4), .sys-class-row > *:nth-child(5) { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stage-strip { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: repeat(3, 1fr); }
  .growth-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-art { max-height: 280px; }
  .modal-art .work-art-svg.art-main { width: auto; height: 84%; }
  .page-title { font-size: 22px; }
  .continue-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cc-right { align-items: flex-start; }
}
