:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #2563eb;
  --brand-soft: #eff6ff;
  --warn: #d97706;
  --danger: #dc2626;
  --ok: #059669;
  --sidebar: #0f172a;
  --sidebar-2: #0f172a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

#app { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; flex: 0 0 224px; background: var(--sidebar);
  color: #cbd5e1; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-bottom: 24px;
  border-right: 1px solid #1e293b;
}
.brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand h1 { font-size: 14px; font-weight: 600; color: #f8fafc; margin: 0 0 2px; letter-spacing: .2px; }
.brand p { margin: 0; font-size: 11px; color: #64748b; }
.nav-group { padding: 12px 10px 0; }
.nav-group h3 { font-size: 11px; color: #64748b; margin: 0 0 4px 10px; font-weight: 600; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 8px;
  color: #94a3b8; font-size: 13px; cursor: pointer; margin-bottom: 2px; transition: .12s;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #f8fafc; }
.nav-item.active { background: var(--brand); color: #fff; font-weight: 500; box-shadow: none; }
.nav-item .ico { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; opacity: .9; }
.svg-ico { width: 16px; height: 16px; display: block; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  height: 52px; background: #fff;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.crumb { color: var(--muted); font-size: 13px; }
.crumb b { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; color: var(--ink); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.content { padding: 18px 24px 40px; max-width: 1560px; width: 100%; margin: 0 auto;
  background: transparent; min-height: calc(100vh - 52px); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.btn {
  border: 1px solid var(--line); background: #fff; color: #334155; padding: 6px 13px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: .12s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn.danger { color: var(--danger); border-color: #fecaca; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1280px) { .g5, .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 980px) {
  .g3, .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g23, .g32 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kpi { padding: 10px 12px; }
  .kpi .value { font-size: 20px; }
}

.card { background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; gap: 10px; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.card-h .sub { color: var(--muted); font-size: 12px; }
.card-b { padding: 14px 16px; }
.card-b.tight { padding: 8px 12px; }

/* 紧凑指标条（替代占半屏的大 KPI 卡片） */
.metric-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.metric-strip > .kpi, .metric-strip > .metric-cell {
  border: 0; border-radius: 0; box-shadow: none;
  border-right: 1px solid #f1f5f9; padding: 12px 18px;
}
.metric-strip > *:last-child { border-right: 0; }

.kpi { padding: 12px 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 22px; font-weight: 700; margin: 2px 0; letter-spacing: -.3px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi .foot { font-size: 11.5px; color: #94a3b8; }
.kpi .badge { position: absolute; right: 12px; top: 12px; }
.kpi .bar { height: 4px; border-radius: 4px; background: #f1f5f9; margin-top: 8px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.kpi.blue .value, .kpi.green .value, .kpi.orange .value, .kpi.purple .value { color: var(--ink); }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; background: #f1f5f9; color: #475569; }
.badge.ok, .badge.green { background: #ecfdf5; color: #047857; }
.badge.warn, .badge.orange { background: #fffbeb; color: #b45309; }
.badge.danger { background: #fef2f2; color: #b91c1c; }
.badge.blue, .badge.purple, .badge.gray { background: #f1f5f9; color: #475569; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.input, select.input, textarea.input {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none; min-width: 120px;
}
.input:focus { border-color: #9db4ff; box-shadow: 0 0 0 3px rgba(43,92,255,.12); }
textarea.input { width: 100%; min-height: 90px; resize: vertical; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; background: #f8fafd; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #f0f3f9; vertical-align: top; }
.tbl tr:hover td { background: #fafbff; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pg { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; }
.pg.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg:disabled { opacity: .4; cursor: default; }
.pager.compact { padding: 8px 0 0; font-size: 11px; gap: 8px; }
.pager.compact .pg { min-width: 26px; height: 26px; font-size: 11px; }

/* 产业集群表格：名称列可截断，其余列不换行 */
.tbl.cluster-tbl { min-width: 860px; }
.tbl.cluster-tbl td.cf-name { min-width: 260px; max-width: 420px; }
.tbl.cluster-tbl td.cf-name .ellipsis { max-width: 100%; }

.chart { width: 100%; height: 300px; }
.chart.sm { height: 220px; }
.chart.lg { height: 480px; }
.chart.xl { height: 560px; }

.tabs { display: inline-flex; gap: 4px; padding: 3px; background: #f1f5f9;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 5px 12px; cursor: pointer; color: var(--muted); border-radius: 7px; font-size: 13px; }
.tab.active { color: var(--ink); background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.06); }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #dfe5f1; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; right: 22px; bottom: 22px; background: #0f172a; color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 13px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: .2s fade;
}
.toast.err { background: #b91c1c; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 12px; width: min(980px, 96vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(15,23,42,.22); }
.modal.narrow { width: min(620px, 96vw); }
.modal-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.close { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: 0; }

.tile { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #ffffff; cursor: pointer; transition: .12s; }
.tile:hover { border-color: #cbd5e1; background: #fafcff; }
.tile h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); font-size: 12px; }

.bar-line { height: 5px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bar-line i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.bar-line.warn i { background: #d97706; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 12px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.section-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.section-title .more { font-size: 12px; color: var(--brand); cursor: pointer; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.list-item:last-child { border-bottom: 0; }
.list-item .t { font-size: 13px; color: var(--ink); }
.list-item .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chat { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; background: #fafbff; border: 1px solid var(--line); border-radius: 12px; }
.msg { display: flex; gap: 10px; margin-bottom: 14px; }
.msg .bubble { background: #fff; border: 1px solid var(--line); padding: 9px 13px; border-radius: 12px; max-width: 76%; font-size: 13px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg .who { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: #e8eefc; color: var(--brand); font-size: 12px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input .input { flex: 1; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: #e5eaf5; }
.timeline-item { position: relative; padding: 0 0 14px; }
.timeline-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.heat td { text-align: center; padding: 7px 6px; font-size: 12px; border: 1px solid #fff; color: #fff; border-radius: 3px; }
.heat th { font-size: 11px; padding: 5px; }

.cover-badge { display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.scene {
  height: 420px; border-radius: 12px; background: radial-gradient(circle at 50% 20%, #223155, #0c1220);
  position: relative; overflow: hidden; perspective: 900px;
}
.scene .floor {
  position: absolute; left: 10%; right: 10%; top: 38%; bottom: 8%;
  background-image: linear-gradient(rgba(80,180,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(80,180,255,.22) 1px, transparent 1px);
  background-size: 42px 42px; transform: rotateX(58deg); border: 1px solid rgba(80,180,255,.25);
}
.scene .rack {
  position: absolute; bottom: 22%; width: 54px; height: 76px; background: linear-gradient(180deg, #3d7dff, #1d3f8f);
  border: 1px solid #7fa8ff; border-radius: 4px; box-shadow: 0 0 18px rgba(61,125,255,.45); color: #cfe0ff;
  font-size: 10px; display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.scene .rack:hover { transform: translateY(-6px); box-shadow: 0 0 26px rgba(61,125,255,.8); }
.scene .hint { position: absolute; left: 16px; top: 14px; color: #9fb6e8; font-size: 12px; }
.scene .agv {
  position: absolute; bottom: 12%; left: 20%; width: 40px; height: 22px; border-radius: 5px; background: #14b8a6;
  box-shadow: 0 0 18px rgba(20,184,166,.7); animation: move 7s ease-in-out infinite alternate;
}
@keyframes move { from { left: 12%; } to { left: 76%; } }

/* ---------- 虚拟仿真实训运行时 ---------- */
.hidden { display: none !important; }
.sim-shell {
  --sim-accent: #2b5cff;
  margin: -20px -22px -48px;
  min-height: calc(100vh - 64px);
  background: #eef1f7;
}
.sim-shell.shell-wechat-mp { --sim-accent: #07c160; }
.sim-shell.shell-community-console { --sim-accent: #7c3aed; }
.sim-shell.shell-brand-console { --sim-accent: #2b5cff; }
.sim-topbar {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.sim-platform { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sim-platform::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sim-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sim-accent) 16%, transparent);
}
.sim-topmeta { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.sim-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 330px; gap: 14px; padding: 14px 18px 28px; }
.sim-nav { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; height: fit-content; position: sticky; top: 64px; }
.sim-nav-item { padding: 9px 12px; border-radius: 8px; color: #4b5568; font-size: 13px; cursor: default; }
.sim-nav-item.active { background: color-mix(in srgb, var(--sim-accent) 12%, #fff); color: var(--sim-accent); font-weight: 600; }
.sim-workspace { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 22px; min-width: 0; }
.sim-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.sim-head h2 { margin: 0 0 4px; font-size: 19px; }
.sim-head p { margin: 0; color: var(--muted); font-size: 12px; }
.sim-head-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.sim-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 14px 0 6px; flex-wrap: wrap; }
.sim-tab { border: 0; background: transparent; padding: 9px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.sim-tab.active { color: var(--sim-accent); border-bottom-color: var(--sim-accent); font-weight: 600; }
.sim-group { padding-top: 10px; }
.sim-group-h { font-size: 12px; font-weight: 700; color: #6b7488; letter-spacing: .5px; margin-bottom: 10px; }
.sim-field { margin-bottom: 14px; }
.sim-label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #3a4356; margin-bottom: 6px; }
.sim-tip { font-size: 11px; color: var(--muted); background: #f4f6fb; padding: 1px 6px; border-radius: 20px; }
.sim-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.sim-input {
  width: 100%; border: 1px solid #dfe4ef; border-radius: 8px; padding: 9px 11px; background: #fbfcfe;
  color: var(--ink); outline: none; transition: .15s;
}
.sim-input:focus { border-color: var(--sim-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sim-accent) 12%, transparent); }
.sim-input.sm { padding: 6px 8px; font-size: 12px; }
.sim-radios { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 4px 0; }
.sim-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3a4356; }
.sim-switch { display: inline-flex; align-items: center; gap: 8px; }
.sim-switch input { display: none; }
.sim-switch span { width: 42px; height: 23px; border-radius: 20px; background: #d7dce8; position: relative; transition: .2s; cursor: pointer; display: inline-block; }
.sim-switch span::after { content: ""; width: 17px; height: 17px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; transition: .2s; }
.sim-switch input:checked + span { background: var(--sim-accent); }
.sim-switch input:checked + span::after { left: 22px; }
.sim-table { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fbfcfe; }
.sim-table .tbl th, .sim-table .tbl td { padding: 5px 6px; }
.sim-asset-pick { display: flex; gap: 8px; align-items: center; }
.sim-asset-pick .sim-input { flex: 1; }
.sim-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-actionbar { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 8px; }
.sim-actionbar .btn.primary { background: var(--sim-accent); border-color: var(--sim-accent); color: #fff; }
.sim-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sim-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sim-panel-h { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #4b5568; display: flex; justify-content: space-between; }
.sim-panel-h b { color: var(--sim-accent); font-size: 15px; }
.sim-preview { padding: 14px; background: #f6f8fc; }
.sim-phone { width: 236px; margin: 0 auto; background: #fff; border: 8px solid #1e2536; border-radius: 26px; overflow: hidden; box-shadow: 0 10px 24px rgba(17,24,39,.18); }
.sim-phone-bar { background: #f2f3f5; text-align: center; font-size: 11px; color: #333; padding: 12px 8px 6px; font-weight: 600; }
.sim-phone-body { padding: 10px; min-height: 300px; background: #ededed; display: flex; flex-direction: column; gap: 8px; }
.sim-chat { max-width: 86%; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; word-break: break-all; }
.sim-chat.in { background: #fff; color: #222; align-self: flex-start; }
.sim-chat.out { background: #95ec69; color: #1a1a1a; align-self: flex-end; }
.sim-phone-input { border-top: 1px solid #ddd; color: #aaa; font-size: 11px; padding: 9px 12px; background: #f7f7f7; }
.sim-brand-card { background: linear-gradient(135deg, #1d3f8f, #2b5cff 55%, #7aa2ff); color: #fff; border-radius: 12px; padding: 18px; }
.sim-brand-kicker { font-size: 11px; opacity: .8; letter-spacing: 1px; }
.sim-brand-name { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.sim-brand-slogan { font-size: 13px; opacity: .95; margin-bottom: 10px; }
.sim-brand-card p { font-size: 12px; line-height: 1.7; margin: 0 0 10px; opacity: .92; }
.sim-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-badges span { font-size: 11px; background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 20px; }
.sim-brand-note { margin-top: 10px; font-size: 11px; line-height: 1.6; opacity: .85; border-top: 1px solid rgba(255,255,255,.25); padding-top: 8px; }
.sim-member-card { background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #a78bfa); color: #fff; border-radius: 12px; padding: 18px; }
.sim-member-card p { font-size: 12px; margin: 8px 0; line-height: 1.6; }
.sim-big { font-size: 30px; font-weight: 700; margin-top: 6px; }
.sim-big span { font-size: 12px; font-weight: 400; opacity: .8; }
.sim-generic-preview { background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px; font-size: 12px; }
.sim-generic-preview .sim-brand-kicker { color: var(--muted); }
.sim-checks { padding: 8px 12px; max-height: 260px; overflow: auto; }
.sim-check { display: flex; gap: 8px; font-size: 12px; color: #8a93a6; padding: 4px 0; }
.sim-check.ok { color: #0f9d76; }
.sim-dim { padding: 8px 12px; border-bottom: 1px solid #f0f2f7; }
.sim-dim:last-child { border-bottom: 0; }
.sim-dim > div:first-child { display: flex; justify-content: space-between; font-size: 11px; color: #4b5568; }
.sim-dim > div:first-child span { color: var(--muted); }
.sim-bar { height: 6px; background: #eef1f7; border-radius: 6px; margin: 5px 0 2px; overflow: hidden; }
.sim-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sim-accent), #14b8a6); border-radius: 6px; transition: width .3s; }
.sim-dim small { font-size: 10px; color: var(--muted); }
@media (max-width: 1280px) {
  .sim-body { grid-template-columns: 160px minmax(0, 1fr); }
  .sim-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .sim-side .sim-panel { flex: 1 1 300px; }
}
@media (max-width: 900px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-nav { display: none; }
}

/* 数据口径提示（ISS-002/003） */
.notice {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: #fff8e6; border: 1px solid #f0d9a6; color: #8a5b00;
  font-size: 12px; line-height: 1.6;
}
/* 品牌模块任务页预览：表格 / KPI / 品牌手册 / 内容流 */
.sim-board { width: 100%; }
.sim-board .tbl { width: 100%; font-size: 12px; }
.sim-board .tbl th, .sim-board .tbl td { padding: 5px 6px; }
.sim-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-kpi { background: #f6f8fc; border: 1px solid #e3e9f4; border-radius: 8px; padding: 8px 10px; }
.sim-kpi span { display: block; font-size: 11px; color: #6b7a90; }
.sim-kpi b { font-size: 18px; color: #1f2d3d; }
.sim-manual { display: flex; gap: 10px; align-items: stretch; }
.sim-swatch { width: 54px; border-radius: 8px; border: 1px solid #e3e9f4; flex: 0 0 54px; }
.sim-manual-body { flex: 1; min-width: 0; }
.sim-feed { border: 1px solid #e3e9f4; border-radius: 10px; overflow: hidden; }
.sim-feed-cover { height: 72px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b5cff, #7aa2ff); color: #fff; font-size: 12px; }
.sim-feed-body { padding: 8px 10px; }
.sim-feed-body h4 { margin: 4px 0; font-size: 14px; }
.sim-tags { color: #2b5cff; font-size: 12px; margin-bottom: 4px; }
.sim-poster { background: linear-gradient(135deg, #1f2d3d, #3b5b8c); border-radius: 10px; padding: 10px; }
.sim-poster-inner { background: #fff; border-radius: 8px; padding: 12px; min-height: 150px;
  display: flex; flex-direction: column; gap: 8px; }
.sim-poster-title { font-size: 20px; font-weight: 800; color: #1f2d3d; line-height: 1.25; }
.sim-poster-sub { font-size: 12px; color: #5b6b80; }
.sim-poster-qr { margin-top: auto; align-self: flex-end; width: 46px; height: 46px; border: 1px dashed #9fb0c6;
  border-radius: 6px; font-size: 9px; color: #7d8da3; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cal-day { border: 1px solid #e3e9f4; border-radius: 10px; padding: 10px; background: #fff; }
.cal-day.current { border-color: #2b5cff; box-shadow: 0 0 0 2px rgba(43, 92, 255, .12); }
.cal-day.done { background: #f5fbf7; }
.cal-day-h { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cal-tasks { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-task { font-size: 12px; padding: 4px 6px; border-radius: 6px; background: #f6f8fc; cursor: pointer; }
.cal-task.ok { color: #0f9d76; background: #eefaf4; }
.cal-task.locked { color: #9aa7b8; cursor: not-allowed; background: #f3f5f8; }
.sim-cover { height: 140px; margin-top: 8px; border-radius: 10px; background-size: cover;
  background-position: center; border: 1px solid #e3e9f4; position: relative; overflow: hidden; }
.sim-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, .18)); }
/* 建课向导 */
.cw-page { background: transparent; padding: 0; }
.cw-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.cw-steps { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.cw-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cw-step b { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.cw-step.active { color: var(--ink); font-weight: 600; }
.cw-step.active b { background: var(--brand); border-color: var(--brand); color: #fff; }
.cw-step.done b { background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand); }
.cw-line { flex: 1; min-width: 18px; border-top: 1px dashed #cbd5e1; }
.cw-card { background: #fff; border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.cw-title { margin: 0 0 4px; font-size: 18px; }
.cw-sub { margin: 0 0 18px; color: #6b7a90; font-size: 12px; }
.cw-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.cw-tab { padding: 7px 16px; border-radius: 8px; background: #f4f7fd; color: #5b6b80; font-size: 12px; cursor: pointer; }
.cw-tab.active { background: #2b5cff; color: #fff; }
.cw-field { margin-bottom: 14px; }
.cw-field > label { display: block; font-size: 12px; color: #4a5a70; margin-bottom: 6px; font-weight: 600; }
.cw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cw-cover-row { display: flex; gap: 14px; align-items: center; }
.cw-cover { width: 180px; height: 101px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-size: 12px;
  background-size: cover; background-position: center; }
.cw-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-seg button { flex: 1; min-width: 84px; padding: 9px 10px; border: 1px solid #dbe3f2;
  background: #fff; border-radius: 8px; color: #5b6b80; cursor: pointer; }
.cw-seg button.active { border-color: #2b5cff; color: #2b5cff; background: #f3f7ff; }
.cw-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.cw-job { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid #e3e9f4; border-radius: 10px; padding: 12px; cursor: pointer; }
.cw-job:hover { border-color: #2b5cff; }
@media (max-width: 900px) { .cw-grid { grid-template-columns: 1fr; } .cw-top { align-items: flex-start; flex-direction: column; } }
.flow-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; }
.flow-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(219, 227, 242, .9);
  color: #6b7a90; font-size: 12px; }
.flow-step b { width: 18px; height: 18px; border-radius: 50%; background: #e8efff; color: #2b5cff;
  display: grid; place-items: center; font-size: 10px; }
.flow-step.active { background: #2b5cff; border-color: #2b5cff; color: #fff; }
.flow-step.active b { background: rgba(255, 255, 255, .22); color: #fff; }
.flow-arrow { color: #b9c6da; font-size: 12px; }
.tile .big { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* ---------- 课程建课向导 ---------- */
.wiz-steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wiz-step { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #e3e9f4;
  border-radius: 10px; background: #fff; color: #6b7a90; font-size: 13px; cursor: pointer; flex: 1; min-width: 150px; }
.wiz-step span { width: 22px; height: 22px; border-radius: 50%; background: #eef2f9; color: #6b7a90;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.wiz-step.active { border-color: #2b5cff; color: #173a9e; box-shadow: 0 0 0 2px rgba(43, 92, 255, .10); }
.wiz-step.active span { background: #2b5cff; color: #fff; }
.wiz-step.done { border-color: #bfe6d8; color: #0f7d5f; background: #f6fbf9; }
.wiz-step.done span { background: #0f9f74; color: #fff; }
.course-card { display: flex; flex-direction: column; gap: 4px; position: relative; }
.course-cover-empty { height: 110px; border-radius: 10px; margin-bottom: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 34px; font-weight: 700; color: #9db9ff;
  background: linear-gradient(135deg, #eef3ff, #f7f9ff); }
.course-menu { gap: 6px; flex-wrap: wrap; padding: 8px; border: 1px solid #e3e9f4; border-radius: 8px; background: #f8faff; }
.cover-preview { height: 170px; border: 1px dashed #c9d6ea; border-radius: 12px; background: #f8faff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #93a3ba; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.doc-preview { max-height: 420px; overflow: auto; white-space: pre-wrap; background: #f8faff;
  border: 1px solid #e3e9f4; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.7; }
.space-hero { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid #e3e9f4;
  border-radius: 14px; background: linear-gradient(135deg, #fff, #f5f8ff); }
.space-hero img { width: 240px; height: 140px; object-fit: cover; border-radius: 12px; }
.space-hero h2 { margin: 2px 0 6px; }
@media (max-width: 900px) { .space-hero { flex-direction: column; align-items: flex-start; }
  .space-hero img { width: 100%; height: 180px; } }

/* ---------- 公开课程空间（免登录只读） ---------- */
.public-shell { min-height: 100vh; background: #f5f7fc; }
.public-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid #e3e9f4; }
.public-brand { display: flex; align-items: baseline; gap: 12px; }
.public-brand b { font-size: 18px; }
.public-brand span { font-size: 12px; color: #7b8aa3; }
.public-content { max-width: 1180px; margin: 0 auto; padding: 24px 28px 60px; }
@media (max-width: 700px) { .public-top { padding: 12px 16px; } .public-content { padding: 16px; } }

/* ---------- 学生端改版 ---------- */
body.student-mode { background: var(--bg); }
body.student-mode .sidebar { background: var(--sidebar); }
body.student-mode .nav-item.active { background: var(--brand); box-shadow: none; }
body.student-mode .topbar { background: #fff; }
body.student-mode .content { max-width: 1440px; }
body.student-mode .card { border-radius: var(--radius); }

.student-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 30px; margin-bottom: 16px; border-radius: 20px; color: #fff;
  background: radial-gradient(900px 220px at 8% 0%, rgba(20,184,166,.55), transparent 60%),
              linear-gradient(120deg, #1b2a5e 0%, #2b5cff 58%, #14b8a6 120%);
  box-shadow: 0 14px 36px rgba(31, 61, 140, .22); overflow: hidden; }
.student-eyebrow { font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: .5px; }
.student-hero h1 { margin: 6px 0 6px; font-size: 26px; letter-spacing: .5px; }
.student-hero p { margin: 0 0 16px; color: rgba(255,255,255,.82); font-size: 13px; }
.student-hero p b { color: #fff; font-size: 18px; }
.student-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.student-cta { background: #fff; color: #173a9e; border-color: #fff; font-weight: 600; }
.student-cta:hover { background: #f2f6ff; border-color: #f2f6ff; }
.student-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.student-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.student-hero-side { text-align: center; flex: 0 0 auto; }
.student-hero-note { margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.72); }

.student-ring { --p: 0%; width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px;
  background: conic-gradient(#2b5cff var(--p), #e9eef8 0); display: grid; place-items: center; position: relative; }
.student-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.student-ring span { position: relative; font-size: 11px; font-weight: 700; color: #173a9e; }
.student-ring.big { width: 128px; height: 128px; flex-basis: 128px;
  background: conic-gradient(#fff var(--p), rgba(255,255,255,.2) 0); }
.student-ring.big::before { inset: 9px; background: rgba(16, 30, 70, .58); }
.student-ring.big div { position: relative; text-align: center; color: #fff; }
.student-ring.big b { display: block; font-size: 24px; line-height: 1.2; }
.student-ring.big span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 400; }

.student-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.student-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff;
  border: 1px solid #e6ebf5; border-radius: 14px; box-shadow: 0 2px 8px rgba(17,24,39,.04); }
.student-stat .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 18px; flex: 0 0 38px; }
.student-stat .ico.blue { background: #eef3ff; color: #2b5cff; }
.student-stat .ico.green { background: #e9faf5; color: #0f9f74; }
.student-stat .ico.orange { background: #fff4e5; color: #d97706; }
.student-stat .ico.purple { background: #f2edff; color: #7c3aed; }
.student-stat label { display: block; font-size: 11px; color: #7b8aa3; }
.student-stat b { display: block; font-size: 19px; line-height: 1.35; }
.student-stat span { font-size: 11px; color: #93a0b4; }

.student-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 14px; }
.student-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.student-card { overflow: hidden; }
.student-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 15px 18px 10px; }
.student-card-head h3 { margin: 0 0 2px; font-size: 15px; }
.student-card-head p { margin: 0; font-size: 11px; color: #8b98ad; }
.student-link { font-size: 12px; color: #2b5cff; }
.student-progress-pill { font-size: 12px; color: #173a9e; background: #eef3ff; padding: 3px 10px; border-radius: 20px; }

.student-task-tabs { display: flex; gap: 6px; padding: 0 18px 10px; flex-wrap: wrap; }
.student-task-tabs button { border: 1px solid #e6ebf5; background: #fff; color: #66758b; border-radius: 20px;
  padding: 4px 11px; font-size: 12px; cursor: pointer; }
.student-task-tabs button b { margin-left: 4px; color: #98a5b8; font-weight: 600; }
.student-task-tabs button.active { background: #173a9e; border-color: #173a9e; color: #fff; }
.student-task-tabs button.active b { color: rgba(255,255,255,.75); }
.student-task-list { padding: 0 10px 6px; }
.student-task { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.student-task:hover { background: #f8faff; }
.student-task.done { opacity: .62; }
.student-task-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfd8e8;
  display: grid; place-items: center; color: #0f9f74; font-size: 12px; flex: 0 0 20px; }
.student-task.done .student-task-check { background: #e9faf5; border-color: #0f9f74; }
.student-task-main { flex: 1; min-width: 0; }
.student-task-main .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-task-main .d { font-size: 11px; color: #8b98ad; margin-top: 2px; }
.phase-pill { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; }
.phase-pill.pre { background: #eef3ff; color: #2b5cff; }
.phase-pill.in { background: #e9faf5; color: #0f9f74; }
.phase-pill.post { background: #fff4e5; color: #d97706; }
.student-more { margin: 2px 18px 12px; border: 0; background: transparent; color: #2b5cff; font-size: 12px; cursor: pointer; }
.student-empty { padding: 24px 18px; text-align: center; color: #93a0b4; font-size: 12px; }

.student-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 16px; }
.student-course { border: 1px solid #e9eef7; border-radius: 12px; padding: 12px; background: #fbfcff; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.student-course:hover { border-color: #c9d8ff; box-shadow: 0 4px 14px rgba(43,92,255,.08); transform: translateY(-1px); }
.student-course-top { display: flex; gap: 10px; align-items: center; }
.student-course-info { min-width: 0; }
.student-course-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-course-info span { display: block; font-size: 11px; color: #8b98ad; }
.student-course-meta { font-size: 11px; color: #78879c; }
.student-course .btn { align-self: flex-start; }

.student-abilities { padding: 0 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.student-ability-row > div:first-child { display: flex; justify-content: space-between; font-size: 12px; color: #5b6b80; }
.student-ability-row b { color: #173a9e; }
.student-track { height: 6px; border-radius: 6px; background: #edf1f8; margin-top: 4px; overflow: hidden; }
.student-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2b5cff, #14b8a6); }
.student-tip { margin: 8px 18px 16px; padding: 10px 12px; border-radius: 10px; background: #f6f9ff;
  color: #5b6b80; font-size: 11px; line-height: 1.7; }

.student-sims { padding: 0 14px 8px; display: flex; flex-direction: column; gap: 8px; }
.student-sim { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid #e9eef7; border-radius: 10px; cursor: pointer; }
.student-sim:hover { border-color: #c9d8ff; background: #fbfcff; }
.student-sim b { display: block; font-size: 12px; }
.student-sim span { display: block; font-size: 11px; color: #8b98ad; }
.student-sim-arrow { color: #9aa7b8; font-size: 18px; }
.student-recent-list { padding: 0 14px 6px; display: flex; flex-direction: column; gap: 2px; }
.student-recent { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px;
  border-bottom: 1px dashed #edf1f8; }
.student-recent:last-child { border-bottom: 0; }
.student-recent b { display: block; font-size: 12px; }
.student-recent span { display: block; font-size: 11px; color: #8b98ad; }
.student-wide { margin: 6px 14px 14px; }

@media (max-width: 1100px) {
  .student-main-grid { grid-template-columns: 1fr; }
  .student-hero { align-items: flex-start; }
  .student-course-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .student-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-hero { flex-direction: column; padding: 20px; }
  .student-hero-side { display: none; }
  .student-hero h1 { font-size: 22px; }
}

body.student-mode .page-head h2 { font-size: 19px; letter-spacing: -.2px; }
body.student-mode .page-head { margin-bottom: 14px; }
body.student-mode .btn.primary { background: var(--brand); border-color: var(--brand); }
body.student-mode .btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
body.student-mode .kpi { border-radius: var(--radius); }
body.student-mode .tabs .tab.active { color: var(--ink); }

/* 学生自主研习资源卡 */
.student-resource-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .student-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.student-resource { overflow: hidden; transition: .12s; text-align: center; }
.student-resource:hover { border-color: #cbd5e1; background: #fafcff; }
.student-resource .card-b { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; }
.student-resource b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-resource-icon { margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.res-icon { width: 54px; height: 54px; display: block; filter: drop-shadow(0 2px 4px rgba(37, 99, 235, .05)); }
.res-icon.xs { width: 20px; height: 20px; display: inline-block; vertical-align: -5px; margin-right: 4px; filter: none; }
.student-next { background: #fff; border-color: var(--line); }

/* ===== 学生端内页统一（我的实训 / 自主研习 / 智慧课堂 / 学习画像） ===== */
/* 实训卡片 */
.sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-card {
  border: 1px solid #eef1f6; border-radius: 16px; background: #fff;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: .15s ease;
}
.sim-card:hover { border-color: #dbeafe; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .12); transform: translateY(-1px); }
.sim-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sim-card-head b { font-size: 14px; font-weight: 650; color: var(--ink); }
.sim-card-head .badge { white-space: nowrap; flex: 0 0 auto; }
.sim-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.sim-progress { display: flex; align-items: center; gap: 10px; }
.sim-progress .bar-line { flex: 1; height: 6px; }
.sim-progress .bar-line i { background: #4f46e5; }
.sim-progress > span { font-size: 11.5px; color: var(--muted); min-width: 36px; text-align: right; }
.sim-card-foot { display: flex; justify-content: flex-end; }

/* 学习画像 */
.airy-record-list { display: flex; flex-direction: column; }
.airy-record {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #f1f5f9; min-width: 0;
}
.airy-record:last-child { border-bottom: 0; }
.airy-record > div:first-child { min-width: 0; }
.airy-record .t { font-size: 13px; font-weight: 500; color: var(--ink); }
.airy-record .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.airy-record-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.advice-list { display: flex; flex-direction: column; gap: 8px; }
.advice-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #334155; line-height: 1.7; }
.advice-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; margin-top: 8px; flex: 0 0 6px; }

/* 智慧课堂：三阶段 */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 700px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-task-list { display: flex; flex-direction: column; }
.phase-task {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid #f1f5f9;
}
.phase-task:last-child { border-bottom: 0; }
.phase-task-main { flex: 1; min-width: 0; }
.phase-task-main .t { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-task-main .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-task .badge { flex: 0 0 auto; }
.phase-task .btn { flex: 0 0 auto; }

/* 学生首页：即时勾选 / 课程筛选 / 学习节奏 */
.student-task-check { background: #fff; padding: 0; cursor: pointer; transition: .12s; }
.student-task-check:not(:disabled):hover { border-color: var(--brand); background: var(--brand-soft); }
.student-task-check.checked { background: #ecfdf5; border-color: #059669; color: #059669; cursor: default; }
.student-course-filters { display: flex; gap: 6px; padding: 0 18px 10px; flex-wrap: wrap; }
.student-course-filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 18px;
  padding: 3px 10px; font-size: 11px; cursor: pointer; }
.student-course-filters button b { margin-left: 4px; color: #94a3b8; }
.student-course-filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.student-course-filters button.active b { color: rgba(255,255,255,.75); }
.student-streak { font-size: 12px; color: #b45309; background: #fffbeb; border-radius: 6px; padding: 3px 9px; }
.student-week { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 4px 18px 14px; }
.student-week-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.student-week-col i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 2px 2px;
  background: var(--brand); min-height: 4px; }
.student-week-col span { font-size: 11px; color: #94a3b8; }

/* 学生端移动底部导航 */
.student-bottom-nav { display: none; }
@media (max-width: 760px) {
  body.student-mode .content { padding-bottom: 80px; }
  body.student-mode .student-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around; }
  .student-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--muted); font-size: 11px; padding: 4px 8px; border-radius: 8px; min-width: 56px; }
  .student-bottom-nav a .ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
  .student-bottom-nav a.active { color: var(--brand); background: var(--brand-soft); }
}

/* 学生首页（2 层容器：画布 -> 白卡片，内部分割线，无套娃边框） */
.learn-page { padding: 0; }
.learn-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.learn-head h1 { margin: 0 0 2px; font-size: 20px; font-weight: 600; letter-spacing: -.2px; color: var(--ink); }
.learn-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.learn-stats { margin-bottom: 14px; }
.learn-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ls-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ls-head em { font-style: normal; font-size: 11px; color: #475569; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.ls-head em.warn { color: #b45309; background: #fffbeb; }
.ls-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; white-space: nowrap; }
.ls-value { font-size: 21px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.ls-value small { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.ls-sub { font-size: 11px; color: #94a3b8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.learn-main { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: start; }
.learn-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.learn-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.learn-panel-head h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.learn-panel-head p { margin: 0; font-size: 12px; color: var(--muted); }
.learn-pill { font-size: 11px; color: #475569; background: #f1f5f9; border-radius: 6px; padding: 3px 9px; font-weight: 500; }
.learn-course-list { display: flex; flex-direction: column; }
.learn-course { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; transition: background .12s; }
.learn-course:last-child { border-bottom: 0; }
.learn-course:hover { background: #f8fafc; }
.learn-course-main { flex: 1; min-width: 0; }
.learn-course-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.learn-course-title b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.learn-course-badge { font-size: 11px; color: #475569; background: #f1f5f9; border-radius: 6px; padding: 1px 7px; }
.learn-course-meta { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.learn-course-progress { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.learn-course-progress .bar-line { flex: 1; height: 5px; max-width: 260px; }
.learn-course-progress span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.learn-task-tabs { display: inline-flex; gap: 2px; padding: 2px; background: #f1f5f9; border-radius: 8px; flex-wrap: nowrap; }
.learn-task-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 3px 7px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.learn-task-tabs button b { margin-left: 3px; color: #94a3b8; font-weight: 500; font-variant-numeric: tabular-nums; }
.learn-task-tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.learn-task-tabs button.active b { color: var(--brand); }
.learn-task-list { display: flex; flex-direction: column; }
.learn-task { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #f1f5f9; transition: background .12s; }
.learn-task:last-child { border-bottom: 0; }
.learn-task:hover { background: #f8fafc; }
.learn-task.done { opacity: .6; }
.learn-task-main { flex: 1; min-width: 0; }
.learn-task-main .t { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.learn-task-main .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.learn-phase { font-size: 11px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: #f1f5f9; color: #475569; font-weight: 500; }
.learn-phase.pre { color: #1d4ed8; background: #eff6ff; }
.learn-phase.in { color: #475569; background: #f1f5f9; }
.learn-phase.post { color: #475569; background: #f1f5f9; }
@media (max-width: 960px) { .learn-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }

/* ===== 最小设计系统（2026-11-25） ===== */
:root {
  --primary: #3457d5;
  --success: #0f9f74;
  --warning: #d97706;
  --danger-c: #dc2626;
  --info: #0284c7;
  --brand: var(--primary);
  --brand-2: var(--info);
  --ok: var(--success);
  --warn: var(--warning);
  --danger: var(--danger-c);
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 24px;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --r-sm: 8px;
  --r-lg: 16px;
  --radius: var(--r-lg);
  --line: #e3e8f0;
  --muted: #64748b;
  --bg: #f7f9fc;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
body { font-size: var(--fs-md); line-height: 1.55; }
.page-head { margin-bottom: var(--sp-3); }
.page-head h2 { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.3px; }
.page-head p { font-size: var(--fs-sm); color: var(--muted); }
.card-h h3 { font-size: var(--fs-md); }
.small, .muted, .sub { font-size: var(--fs-sm); }
.kpi .value { font-size: var(--fs-lg); }
.content { padding: var(--sp-3) var(--sp-3) var(--sp-5); max-width: 1440px; }
.grid { gap: var(--sp-2); }
.card-h { padding: var(--sp-2) var(--sp-3); }
.card-b { padding: var(--sp-3); }
.card, .tile, .modal, .empty-state { border-radius: var(--r-lg); }
.card { border-color: var(--line); box-shadow: var(--shadow); }
.btn, .input, .modal .close { border-radius: var(--r-sm); }
.btn { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-md); box-shadow: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); }
.btn.primary:hover { background: #2b49b8; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 4px var(--sp-1); font-size: var(--fs-sm); }
.btn.danger { color: var(--danger); border-color: #f3c3c3; background: #fff; }

/* 品牌与导航 */
.brand-row { display: flex; align-items: center; gap: var(--sp-1); }
.brand-mark { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #8fe3d2; flex: 0 0 30px; }
.brand h1 { font-size: 15px; margin: 0; }
.sidebar-note { padding: var(--sp-2) 18px 0; font-size: 11px; color: #5f6f8c; line-height: 1.7; }
.nav-group { padding: 2px 8px 0; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; color: #8fa0bd; font-size: 11px; font-weight: 600; letter-spacing: .4px;
  cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "›"; font-size: 14px; transition: .15s; color: #63738f; }
.nav-group[open] summary::after { transform: rotate(90deg); }
.nav-group summary:hover { background: rgba(255,255,255,.05); }
.nav-group-count { margin-left: auto; margin-right: 6px; font-size: 10px; color: #5e6e8b; }
.nav-items { padding: 2px 0 6px; }
.nav-item { padding: 7px 10px; gap: 8px; font-size: 13px; }
.nav-item .ico { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; opacity: .9; }
.nav-item svg, .student-bottom-nav svg { width: 16px; height: 16px; }
.topbar .nav-toggle { display: none; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.drawer-mask { display: none; }

/* 空状态 */
.empty-state { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px dashed var(--line);
  background: #fbfcff; }
.empty-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #eef3ff; color: var(--primary); margin-bottom: var(--sp-2); }
.empty-state b { display: block; font-size: var(--fs-md); margin-bottom: 4px; }
.empty-state p { margin: 0 0 var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

/* 教师工作台：今天要处理的事 */
.today-summary { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; margin-bottom: var(--sp-2); }
.today-summary .item { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: var(--fs-sm); }
.today-summary .item b { color: var(--ink); font-size: 18px; }
.today-list { display: flex; flex-direction: column; }
.today-row { display: flex; align-items: center; gap: var(--sp-2); padding: 12px 4px;
  border-bottom: 1px solid #eef2f8; }
.today-row:last-child { border-bottom: 0; }
.today-row .type { flex: 0 0 auto; }
.today-row .main { flex: 1; min-width: 0; }
.today-row .main b { display: block; font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-row .main span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.chart-note { padding: 0 var(--sp-3) var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

/* 移动端：抽屉、底栏、表格卡片 */
@media (max-width: 980px) {
  .sidebar { display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
    transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .drawer-mask.show { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; }
  .topbar .nav-toggle { display: inline-flex; margin-right: 8px; }
  .topbar { gap: 8px; }
}
@media (max-width: 760px) {
  .content { padding: var(--sp-2) var(--sp-2) 86px; }
  .tbl-adaptive { border: 0; background: transparent; box-shadow: none; }
  .tbl-adaptive thead { display: none; }
  .tbl-adaptive tbody, .tbl-adaptive tr, .tbl-adaptive td { display: block; width: 100%; }
  .tbl-adaptive tr { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px;
    margin-bottom: 8px; background: #fff; }
  .tbl-adaptive td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl-adaptive td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-sm);
    flex: 0 0 36%; text-align: left; }
  body:not(.student-mode) .student-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around; box-shadow: 0 -6px 20px rgba(17,24,39,.06); }
  body:not(.student-mode) .student-bottom-nav a,
  body:not(.student-mode) .student-bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #7b8aa3; font-size: 10px; padding: 4px 8px; border-radius: 10px; min-width: 56px; background: none; border: 0; }
  body:not(.student-mode) .student-bottom-nav a.active { color: var(--primary); background: var(--brand-soft); }
  body:not(.student-mode) .student-bottom-nav .ico { display: flex; }
}

.topbar .crumb { flex: 1; margin-left: 8px; }

.loading-state { padding: var(--sp-5) var(--sp-3); text-align: center; color: var(--muted); }
.loading-title { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--fs-md); }
.loading-state p { font-size: var(--fs-sm); margin: 6px 0 var(--sp-3); }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); max-width: 760px; margin: 0 auto; }
.skeleton-grid i { display: block; height: 86px; border-radius: var(--r-sm);
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 37%, #eef2f8 63%); background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite; }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 列表页工具条：把筛选与搜索放在同一行，窄屏自动换行 */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  margin-bottom: var(--sp-2); flex-wrap: wrap; }
.list-toolbar .input { min-width: 200px; }

/* 页头在窄屏堆叠，操作按钮换行 */
@media (max-width: 760px) {
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head .toolbar { flex-wrap: wrap; }
  .page-head h2 { font-size: 20px; }
  .topbar { padding: 0 12px; }
  .crumb { font-size: 12px; }
  .top-actions .badge { display: none; }
  .user-chip span:not(.avatar) { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 学生首页：压缩任务与课程行，保证一屏能看到「下一步」 */
  .learn-head { margin-bottom: 10px; }
  .learn-head h1 { font-size: 18px; }
  .learn-head p { font-size: 12px; }
  .learn-stats { margin-bottom: 10px; }
  .learn-panel-head { padding: 11px 14px; }
  .learn-panel-head p { display: none; }
  .learn-course { padding: 12px 14px; gap: 10px; }
  .learn-course-meta { white-space: normal; }
  .learn-task { padding: 10px 14px; gap: 8px; }
  .learn-task-main .t { white-space: normal; font-size: 12.5px; }
  .learn-task-main .d { display: none; }
  .learn-task-tabs { width: 100%; }
  .learn-task-tabs button { flex: 1; text-align: center; }
  .student-course-filters { padding: 0 14px 10px; }
  .student-week { padding: 4px 14px 12px; height: 84px; }
  .list-toolbar .toolbar { width: 100%; }
  .list-toolbar .input { flex: 1; width: auto !important; min-width: 0; }
}

/* 课程卡：标题独占一行，操作收进图标，避免状态与按钮挤到换行 */
.course-card { height: 100%; gap: 6px; }
.course-card-head { display: flex; align-items: flex-start; gap: 6px; }
.course-card-head h4 { margin: 0; flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; }
.course-more { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: var(--r-sm);
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 28px; }
.course-more:hover { background: #f1f5f9; color: var(--ink); }
.course-desc { min-height: 20px; }
.course-card .tag-list { margin-top: auto; padding-top: 8px; }
.course-card .badge { white-space: nowrap; }
.course-card .toolbar { margin-top: 6px; }
.course-menu { position: absolute; right: 14px; top: 54px; z-index: 5; display: none;
  box-shadow: 0 8px 24px rgba(15,23,42,.12); min-width: 132px; }
.course-menu.flex-open { display: flex; }
.empty-state { padding: var(--sp-4) var(--sp-3); }

body.drawer-open { overflow: hidden; }
.topbar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .sidebar { width: 264px; padding-bottom: 24px; }
}

@media (max-width: 760px) {
  .learn-task-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .learn-task-tabs button { flex: 0 0 auto; white-space: nowrap; }
}

/* 班级卡：一行两项，轻分割，不再套娃小卡片 */
.class-metrics { display: flex; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.class-metrics span { display: flex; flex-direction: column; gap: 2px; }
.class-metrics i { font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.class-metrics b { font-size: var(--fs-md); }

.card-b > .empty-state { border: 0; background: transparent; padding: 28px 16px; }
.empty-state .toolbar { margin: 0; }

@media (max-width: 760px) {
  .page-head .toolbar .btn.primary { order: -1; }
  .page-head .toolbar { gap: 8px; }
}

/* 移动端表格：关键字段 + 展开全部 */
.m-table-toggle { display: none; }
@media (max-width: 760px) {
  .tbl-adaptive td.m-hide-col { display: none; }
  .tbl-adaptive.m-expanded td.m-hide-col { display: flex; }
  .m-table-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px;
    padding: 5px 10px; border: 1px solid var(--line); background: #fff; color: var(--primary);
    border-radius: var(--r-sm); font-size: var(--fs-sm); cursor: pointer; }
  .m-table-toggle::after { content: "›"; transform: rotate(90deg); font-size: 14px; }
  .tbl-adaptive.m-expanded + .m-table-toggle::after { transform: rotate(-90deg); }
}
.m-table-toggle.expanded::after { transform: rotate(-90deg); }
@media (max-width: 760px) {
  .tbl-adaptive td { flex-wrap: wrap; row-gap: 4px; }
  .tbl-adaptive td .btn { margin: 1px 0; }
}
@media (max-width: 760px) {
  .tbl-adaptive td.m-actions { justify-content: flex-start; gap: 6px; padding-top: 9px;
    border-top: 1px dashed #eef2f8; margin-top: 4px; }
  .tbl-adaptive td.m-actions::before { display: none; }
}

/* 六项卡片式指标带（课程知识图谱） */
.metric-strip.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 980px) { .metric-strip.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .metric-strip.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 精细化设计抛光（主次按钮层级 / 表格排版 / 进度张力 / 微质感） ===== */
:root {
  --primary: #2563eb;
  --brand: #2563eb;
  --brand-soft: #eff6ff;
  --r-lg: 12px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .02);
}

/* 1. 按钮质感与次级软按钮（消除列表“一排蓝膏药”） */
.btn {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.btn.sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.btn.primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(37, 99, 235, .22);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1e40af;
}
.btn.soft {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
  box-shadow: none;
}
.btn.soft:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .2);
}

/* 2. 学生首页：主次焦点、撑满式进度条、对齐节奏 */
.learn-panel-head { padding: 14px 18px; }
.learn-course { padding: 15px 18px; position: relative; }
.learn-course.in-progress { background: linear-gradient(90deg, rgba(239, 246, 255, .45) 0%, rgba(255, 255, 255, 0) 65%); }
.learn-course.in-progress::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.learn-course-meta em { font-style: normal; color: #334155; font-weight: 500; }
.learn-course-progress { margin-top: 9px; display: flex; align-items: center; gap: 12px; width: 100%; }
.learn-course-progress .bar-line { flex: 1; max-width: none; height: 6px; background: #eef2f6; border-radius: 999px; }
.learn-course-progress span { min-width: 84px; text-align: right; font-size: 11.5px; color: var(--muted); }
.learn-course-progress span b { color: var(--ink); font-weight: 600; }

.learn-task { padding: 11px 18px; position: relative; }
.learn-task.is-next { background: rgba(239, 246, 255, .42); }
.learn-task.is-next::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.next-flag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; color: #1d4ed8; background: #dbeafe; vertical-align: 1px;
}

/* 3. 表格排版纪律：禁止短字段折成三行、主次列字重灰阶分离 */
@media (max-width: 1180px) { .g23 { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
.tbl th { font-size: 12px; color: #64748b; background: #f8fafc; padding: 8px 10px; letter-spacing: .2px; }
.tbl td { padding: 9px 10px; vertical-align: middle; color: #334155; }
.tbl td.q-col-stem { color: #0f172a; font-weight: 500; }
.tbl td.q-col-ans { color: #0f172a; font-weight: 600; }
.tbl-actions { display: inline-flex; align-items: center; gap: 5px; }

/* 4. 自主研习 3D 资源卡：柔和渐变底托 + 悬停微浮起 */
.student-resource {
  border-color: #e2e8f0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.student-resource:hover {
  border-color: #bfdbfe;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, .10), 0 2px 6px rgba(15, 23, 42, .04);
}
.student-resource .card-b { padding: 20px 16px 18px; align-items: center; }
.student-resource-icon {
  width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 18px;
  background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(37, 99, 235, .06);
  display: flex; align-items: center; justify-content: center;
}
.student-resource:hover .student-resource-icon {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}
.res-icon { width: 46px; height: 46px; }

/* ===== 参考图风格：Airy Modern Dashboard（轻盈浅色侧栏 + 欢迎插画横幅 + 环形继续条 + 焦点大字卡） ===== */
:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #eef1f6;
  --r-lg: 18px;
  --radius: 18px;
  --shadow: 0 8px 24px -6px rgba(15, 23, 42, .05), 0 2px 6px rgba(15, 23, 42, .02);
}

/* 1. 轻盈通透侧边栏（参考图 2 / 4 / 5 / 6） */
.sidebar, body.student-mode .sidebar {
  background: #ffffff;
  color: #475569;
  border-right: 1px solid #eef1f6;
}
.brand { border-bottom: 1px solid #f1f5f9; }
.brand h1 { color: #0f172a; font-weight: 700; }
.brand p { color: #94a3b8; }
.brand-mark { background: #eff6ff; color: #2563eb; }
.nav-group summary { color: #94a3b8; }
.nav-group summary:hover { background: #f8fafc; color: #475569; }
.nav-group-count { color: #94a3b8; }
.nav-item {
  color: #64748b;
  border-radius: 11px;
  padding: 8px 12px;
  font-weight: 500;
}
.nav-item:hover { background: #f8fafc; color: #0f172a; }
.nav-item.active, body.student-mode .nav-item.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .38);
}
.sidebar-note { color: #94a3b8; border-top: 1px solid #f1f5f9; margin-top: 12px; }

/* 2. 去框线柔和卡片（Zero-Border Soft Surface） */
.card, .metric-strip, .learn-panel {
  border-color: #f1f5f9;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.topbar { border-bottom: 1px solid #eef1f6; }

/* 3. 学生首页 Airy 双栏工作台（参考图 1 + 图 5/6 + 图 2） */
.airy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}
.airy-left, .airy-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* 顶部欢迎插画卡（参考图 1 Hello Josh! / 图 5 Welcome Back） */
.airy-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(125deg, #ffffff 0%, #f4f7ff 55%, #eef4ff 100%);
  border: 1px solid #e8effd;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.airy-hero-copy { flex: 1; min-width: 0; z-index: 1; }
.airy-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, .08);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.airy-hero-copy h1 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -.3px;
}
.airy-hero-copy p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 340px;
}
.airy-hero-copy p b { color: #0f172a; font-weight: 700; }
.airy-hero-art { width: 162px; height: 112px; flex: 0 0 162px; }
.airy-hero-art-btn {
  position: relative;
  width: 136px; height: 122px; flex: 0 0 136px;
  border: 0; background: transparent; padding: 0;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 16px;
  transition: transform .16s ease, background .16s ease;
  user-select: none;
}
.airy-hero-art-btn:hover {
  background: rgba(37, 99, 235, .05);
  transform: translateY(-2px);
}
.airy-hero-art-btn:active { transform: scale(.96); }
.airy-hero-svg { width: 124px; height: 110px; display: block; }
.airy-avatar-dots {
  display: flex; gap: 4px; align-items: center; justify-content: center;
  margin-top: 2px;
}
.airy-avatar-dots i {
  width: 5px; height: 5px; border-radius: 999px;
  background: #cbd5e1; transition: .15s;
}
.airy-avatar-dots i.active {
  width: 14px; background: #3b63c4;
}

/* 当前继续学习胶囊条（参考图 1 Spanish B2 83% Continue） */
.airy-continue-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.airy-continue-ico {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px;
  background: #f4f7ff;
  display: grid; place-items: center;
}
.airy-continue-ico img { width: 32px; height: 32px; }
.airy-continue-main { flex: 1; min-width: 0; }
.airy-continue-main b { display: block; font-size: 14px; font-weight: 650; color: #0f172a; }
.airy-continue-main span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airy-ring {
  --p: 0%;
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: conic-gradient(#0f172a var(--p), #e2e8f0 0);
  display: grid; place-items: center;
  position: relative;
}
.airy-ring::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: #ffffff;
}
.airy-ring span {
  position: relative; font-size: 11px; font-weight: 700; color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* 胶囊深色按钮与柔和按钮（参考图 1 View course / Continue） */
.btn.dark-pill {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 7px 15px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
}
.btn.dark-pill:hover { background: #1e293b; border-color: #1e293b; }
.btn.soft-pill {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
  border-radius: 10px;
  padding: 7px 15px;
  font-weight: 600;
  box-shadow: none;
}
.btn.soft-pill:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.btn.ghost-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  border-radius: 8px;
  box-shadow: none;
}

/* 左侧课程列表（参考图 1 Courses 独立圆角柔和行） */
.airy-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.airy-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.airy-sec-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.airy-sec-head p { margin: 2px 0 0; font-size: 11.5px; color: #94a3b8; }
.airy-tabs { display: flex; gap: 14px; align-items: center; }
.airy-tabs button {
  border: 0; background: none; padding: 4px 0;
  font-size: 12.5px; font-weight: 600; color: #94a3b8;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: .12s;
}
.airy-tabs button span { margin-left: 4px; font-size: 11px; opacity: .75; }
.airy-tabs button.active { color: #0f172a; border-bottom-color: #0f172a; }

.airy-course-stack { display: flex; flex-direction: column; gap: 10px; }
.airy-course-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: .15s ease;
}
.airy-course-row:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.airy-course-ico {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
  display: grid; place-items: center;
}
.airy-course-ico img { width: 32px; height: 32px; }
.airy-course-info { flex: 1; min-width: 0; }
.airy-course-t { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.airy-course-t b { font-size: 13.5px; font-weight: 650; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airy-badge { font-size: 10px; color: #475569; background: #e2e8f0; padding: 1px 6px; border-radius: 6px; font-weight: 500; white-space: nowrap; flex: 0 0 auto; }
.airy-course-sub { font-size: 12px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airy-course-sub em { font-style: normal; color: #0f172a; font-weight: 500; }
.airy-course-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; color: #475569;
  white-space: nowrap;
}

/* 右侧大字指标卡 + 1 张满色焦点卡（参考图 1 的 11 / 4 与 图 2/6 的满底色卡） */
.airy-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.airy-stat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.airy-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
}
.airy-stat-num small { font-size: 12px; font-weight: 600; margin-left: 1px; color: #64748b; }
.airy-stat-label { min-width: 0; }
.airy-stat-label b { display: block; font-size: 12px; font-weight: 650; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airy-stat-label span { display: block; font-size: 10.5px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.airy-stat-box.accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, .42);
}
.airy-stat-box.accent .airy-stat-num,
.airy-stat-box.accent .airy-stat-num small,
.airy-stat-box.accent .airy-stat-label b { color: #ffffff; }
.airy-stat-box.accent .airy-stat-label span { color: rgba(255, 255, 255, .78); }

/* 右侧统计卡与待办卡 */
.airy-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.airy-pill {
  font-size: 11.5px; font-weight: 600; color: #475569;
  background: #f1f5f9; padding: 4px 10px; border-radius: 8px;
}
.airy-task-list { margin: 0 -6px; }
.airy-task {
  padding: 10px 10px;
  border-radius: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.airy-task:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .airy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .airy-hero-art { display: none; }
  .airy-course-meta { display: none; }
}

/* ===== 教师端参考图风格：圆角彩块 KPI + 环形指标卡 + 飞书式工作台（参考图 1/3/4/6） ===== */

/* 1. 全局 KPI 卡片（参考图 6 Social.：左圆角彩色图标块 + 右上下数字说明） */
.kpi.kpi-modern {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
}
.kpi-ico {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: #eff6ff; color: #2563eb;
}
.kpi-svg { width: 21px; height: 21px; display: block; }
.kpi-ico.indigo, .kpi-ico.blue { background: #eef2ff; color: #4f46e5; }
.kpi-ico.teal, .kpi-ico.green, .kpi-ico.ok { background: #ecfdf5; color: #059669; }
.kpi-ico.amber, .kpi-ico.orange, .kpi-ico.warn { background: #fff7ed; color: #ea580c; }
.kpi-ico.violet, .kpi-ico.purple { background: #f5f3ff; color: #7c3aed; }
.kpi-ico.sky { background: #f0f9ff; color: #0284c7; }
.kpi-ico.rose, .kpi-ico.danger { background: #fff1f2; color: #e11d48; }
.kpi-ico.gray { background: #f1f5f9; color: #475569; }
.kpi-body { min-width: 0; flex: 1; }
.kpi.kpi-modern .label { font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.kpi-modern .value { font-size: 20px; font-weight: 750; color: #0f172a; margin: 2px 0 1px; line-height: 1.2; }
.kpi.kpi-modern .foot { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-strip > .kpi.kpi-modern { border-radius: 0; }
.metric-strip.six > .kpi.kpi-modern { padding: 10px 12px; gap: 8px; }
.metric-strip.six > .kpi.kpi-modern .kpi-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; }
.metric-strip.six > .kpi.kpi-modern .kpi-svg { width: 16px; height: 16px; }
.metric-strip.six > .kpi.kpi-modern .value { font-size: 18px; }

/* 2. 教师工作台（参考图 1 飞书工作台 + 图 4 Score 环形卡 + 图 3 雷达驾驶舱） */
.wb-page { display: flex; flex-direction: column; gap: 16px; }
.wb-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 20px;
  background:
    radial-gradient(500px 180px at 88% 20%, rgba(37, 99, 235, .13), transparent 70%),
    radial-gradient(360px 160px at 65% 95%, rgba(16, 185, 129, .10), transparent 70%),
    linear-gradient(125deg, #ffffff 0%, #f5f8ff 58%, #eef4ff 100%);
  border: 1px solid #e6eefc;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.wb-banner-copy { flex: 1; min-width: 260px; }
.wb-banner-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 600; color: #2563eb;
  background: rgba(37, 99, 235, .08);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.wb-banner-copy h1 { margin: 0 0 6px; font-size: 23px; font-weight: 750; color: #0f172a; letter-spacing: -.3px; }
.wb-banner-copy p { margin: 0; font-size: 13px; color: #64748b; max-width: 560px; }
.wb-banner-copy p b { color: #2563eb; font-weight: 700; }
.wb-banner-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 顶部四张环形进度卡（参考图 4 Score 71% 21:15h） */
.wb-ring-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.wb-ring-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.wb-ring {
  --p: 72%;
  --rc: #10b981;
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: conic-gradient(var(--rc) var(--p), #eef2f6 0);
  display: grid; place-items: center;
  position: relative;
}
.wb-ring.green { --rc: #10b981; }
.wb-ring.indigo { --rc: #4f46e5; }
.wb-ring.amber { --rc: #f59e0b; }
.wb-ring.violet { --rc: #8b5cf6; }
.wb-ring::before {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%; background: #ffffff;
}
.wb-ring span {
  position: relative; font-size: 11px; font-weight: 700; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.wb-ring-info { min-width: 0; flex: 1; }
.wb-ring-info b { display: block; font-size: 21px; font-weight: 750; color: #0f172a; line-height: 1.15; }
.wb-ring-info b small { font-size: 12px; font-weight: 500; color: #64748b; }
.wb-ring-info span { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 我的常用应用矩阵（参考图 1 飞书工作台「我的常用」） */
.wb-section, .wb-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
}
.wb-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.wb-sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.wb-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.wb-app-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 15px;
  background: #f8fafc;
  border: 1px solid transparent;
  color: var(--ink);
  transition: .15s ease;
}
.wb-app-tile:hover {
  background: #ffffff;
  border-color: #dbeafe;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
}
.wb-app-text { min-width: 0; }
.wb-app-text b { display: block; font-size: 13px; font-weight: 650; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-app-text span { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 中部三栏督办/实训/驾驶舱（参考图 1 督查督办 · 审批 · 企业动态） */
.wb-trio {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}
.wb-feed { display: flex; flex-direction: column; }
.wb-feed-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid #f1f5f9;
}
.wb-feed-row:last-child { border-bottom: 0; }
.wb-avatar {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  background: #eff6ff; color: #2563eb;
  font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}
.wb-avatar.warn { background: #fff7ed; color: #ea580c; }
.wb-feed-main { flex: 1; min-width: 0; }
.wb-feed-main .t { font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-feed-main .d { font-size: 11.5px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-sim-list { display: flex; flex-direction: column; gap: 10px; }
.wb-sim-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: .14s;
}
.wb-sim-row:hover { background: #f1f5f9; }
.wb-sim-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wb-sim-top b { font-size: 13px; font-weight: 650; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-status-pill { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.wb-status-pill.ok { background: #ecfdf5; color: #059669; }
.wb-status-pill.indigo { background: #eef2ff; color: #4f46e5; }
.wb-status-pill.amber { background: #fff7ed; color: #d97706; }
.wb-sim-meta { font-size: 11.5px; color: #64748b; margin: 4px 0 8px; }
.wb-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.wb-bar i { display: block; height: 100%; border-radius: 999px; background: #4f46e5; }
.wb-bar i.ok { background: #10b981; }
.wb-bar i.amber { background: #f59e0b; }

.wb-course-mini { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.wb-course-mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: 10px; cursor: pointer;
}
.wb-course-mini-row:hover { background: #f8fafc; }
.wb-course-mini-row b { display: block; font-size: 12.5px; color: #0f172a; }
.wb-course-mini-row span { font-size: 11px; color: #94a3b8; }
.wb-mini-tag { font-size: 11px; font-weight: 600; color: #059669; background: #ecfdf5; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }

@media (max-width: 900px) {
  .wb-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-trio { grid-template-columns: 1fr; }
  .wb-ring-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wb-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-ring-strip { grid-template-columns: 1fr; }
}

/* ===== 登录页（场景背景 + 居中卡片） ===== */
body.login-mode { background: #0b4f8a; }
body.login-mode #app { display: block; min-height: 100vh; }
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px 24px 40px;
  overflow: hidden;
}
.login-scene { position: fixed; inset: 0; z-index: 0; background: #0b4f8a; }
.login-scene-svg { width: 100%; height: 100%; display: block; }
.login-page::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 25, 48, .18) 0%, rgba(2, 20, 38, .02) 42%, rgba(20, 8, 6, .20) 100%);
}
.login-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px clamp(24px, 4vw, 56px);
  color: #fff;
}
.login-brand-lockup { display: flex; align-items: center; gap: 12px; }
.login-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px);
}
.login-brand-lockup b { display: block; font-size: 18px; letter-spacing: .3px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.login-brand-lockup span { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.72); letter-spacing: .4px; }
.login-env {
  font-size: 11px; color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.10);
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

.login-shell { position: relative; z-index: 3; width: 100%; display: flex; flex-direction: column; align-items: center; }
.login-card {
  width: min(980px, 94vw);
  padding: 28px 38px 18px;
  border-radius: 18px;
  background: rgba(252, 253, 255, .95);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 32px 90px rgba(3, 20, 40, .32);
  backdrop-filter: blur(14px);
}
.login-title { margin: 0 0 20px; text-align: center; font-size: 29px; letter-spacing: 4px; font-weight: 650; color: #16233a; }
.login-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: 0; }
.login-side { padding: 2px 34px 0 0; border-right: 1px solid #e5ebf4; }
.login-eyebrow {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .5px; color: #1e5fa8; background: #eef4fd; border: 1px solid #d9e7f8;
}
.login-side-art { height: 132px; margin: 6px 0 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-art-svg { height: 100%; width: auto; max-width: 100%; display: block; filter: drop-shadow(0 14px 22px rgba(31,41,55,.08)); }
.la-hex { transform-box: fill-box; transform-origin: center; animation: laFloat 6s ease-in-out infinite; }
.la-teal { animation-delay: -1.4s; }
.la-orange { animation-delay: -2.8s; }
.la-red { animation-delay: -4.2s; }
.la-cyan { animation-delay: -5.2s; }
@keyframes laFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.login-side-copy { margin: 0 0 10px; font-size: 11.5px; line-height: 1.7; color: #718096; }

.login-roles { display: flex; flex-direction: column; gap: 7px; }
.login-role {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 9px; text-align: left; cursor: pointer;
  background: #f7f9fc; border: 1px solid #e6ecf5; color: #1f2937; font: inherit;
  transition: .15s ease;
}
.login-role:hover { border-color: #b9cee8; background: #f1f6fd; }
.login-role.active { border-color: #2f6fb5; background: #edf5ff; box-shadow: 0 0 0 2px rgba(47,111,181,.08); }
.login-role-ico {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; display: grid; place-items: center;
  color: #2f6fb5; background: #e8f1fc;
}
.login-role-ico svg { width: 16px; height: 16px; }
.login-role.active .login-role-ico { color: #0f7d5f; background: #e6f7f1; }
.login-role-text b { display: block; font-size: 12.5px; font-weight: 600; }
.login-role-text i { display: block; margin-top: 1px; font-style: normal; font-size: 10.5px; color: #8a97a8; }

.login-form-side { padding: 2px 0 0 34px; }
.login-form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.login-tabs { display: flex; gap: 18px; }
.login-tab { position: relative; padding-bottom: 9px; font-size: 16px; font-weight: 600; color: #94a3b8; }
.login-tab.active { color: #1a4f86; }
.login-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  border-radius: 2px; background: #1f63ad;
}
.login-role-hint { font-size: 10.5px; color: #9aa6b6; padding-bottom: 9px; }
.login-card .login-sub { margin: 10px 0 16px; font-size: 11.5px; line-height: 1.6; color: #8a96a6; }

.login-field { position: relative; margin-bottom: 12px; }
.login-field.has-icon .input { padding-left: 40px; }
.login-field-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; display: grid; place-items: center; color: #9aa7b8; pointer-events: none;
}
.login-card .input {
  width: 100%; height: 45px; padding: 0 12px; font-size: 13.5px; border-radius: 6px;
  border-color: #dbe2ec; background: #fff;
}
.login-card .input::placeholder { color: #a2adbb; }
.login-card .input:focus { border-color: #7ba6d9; box-shadow: 0 0 0 3px rgba(31,99,173,.10); }
.login-pass-wrap .input { padding-right: 62px; }
.login-eye {
  position: absolute; right: 7px; top: 7px; height: 30px; padding: 0 9px;
  border: 0; border-radius: 5px; background: #f1f5fa; color: #7b8798;
  font-size: 11.5px; cursor: pointer;
}
.login-eye:hover { color: #1f2937; background: #e6eef8; }
.login-error {
  margin: 2px 0 0; padding: 9px 11px; border-radius: 6px;
  font-size: 12px; line-height: 1.6; color: #b42318;
  background: #fef3f2; border: 1px solid #fecdca;
}
.login-submit {
  width: 100%; height: 45px; margin-top: 10px; font-size: 15px; font-weight: 600;
  border-radius: 6px; letter-spacing: 2px;
}
.login-card .btn.login-submit { background: #0b5ca8; border-color: #0b5ca8; color: #fff; }
.login-card .btn.login-submit:hover { background: #094d8d; border-color: #094d8d; }
.login-demo { margin-top: 18px; padding-top: 13px; border-top: 1px solid #edf1f7; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.login-demo > span { width: 100%; font-size: 10.5px; color: #9aa6b6; letter-spacing: .3px; }
.login-demo button {
  border: 1px solid #e2e8f1; background: #f8fafc; color: #4b5563;
  border-radius: 6px; padding: 5px 8px; font-size: 11px; cursor: pointer;
}
.login-demo button:hover { border-color: #a8c4e6; background: #eef5fe; color: #1a4f86; }
.login-demo small { width: 100%; font-size: 10.5px; color: #a3adba; }
.login-links { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 11px; color: #8b97a8; }
.login-links b { color: #2f6fb5; font-weight: 500; }

.login-card-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf1f7; text-align: center; font-size: 10.5px; color: #9aa6b6; }
.login-page-foot {
  margin-top: 16px; font-size: 11px; color: rgba(255,255,255,.72);
  text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.28);
}

@media (max-width: 980px) {
  .login-page { padding: 82px 16px 30px; overflow-y: auto; }
  .login-card { width: 100%; max-width: 560px; padding: 24px 26px 16px; }
  .login-title { font-size: 25px; margin-bottom: 16px; }
  .login-grid { grid-template-columns: 1fr; }
  .login-side { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #e5ebf4; margin-bottom: 16px; }
  .login-side-art { display: none; }
  .login-side-copy { display: none; }
  .login-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .login-role { flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; }
  .login-role-text b { font-size: 11.5px; }
  .login-role-text i { display: none; }
  .login-form-side { padding: 0; }
  .login-role-hint { display: none; }
}
@media (max-width: 560px) {
  .login-topbar { padding: 14px 16px; }
  .login-brand-lockup b { font-size: 15px; }
  .login-brand-lockup span { font-size: 10px; }
  .login-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .login-env { display: none; }
  .login-page { padding: 64px 12px 24px; }
  .login-card { padding: 20px 18px 14px; border-radius: 14px; }
  .login-title { font-size: 22px; letter-spacing: 3px; margin-bottom: 14px; }
  .login-form-head { flex-direction: column; align-items: flex-start; }
  .login-submit { letter-spacing: 3px; }
  .login-page-foot { font-size: 10px; margin-top: 12px; }
}

a.wb-ring-card { color: inherit; text-decoration: none; transition: .15s ease; }
a.wb-ring-card:hover { border-color: #cfdaef; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.wb-banner-copy a { text-underline-offset: 3px; }

@media (max-width: 1200px) { .wb-ring-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
