/* ===========================================================
   春考在线阅卷系统 · 设计系统
   科技蓝紫 · 卡片化 · 细边框 · 大留白
   =========================================================== */
:root {
  --brand: #4F6BFF;
  --brand-2: #8B5CF6;
  --grad: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 107, 255, .1), rgba(139, 92, 246, .1));
  --bg: #F4F6FB;
  --side: #0B1024;
  --side-2: #111735;
  --ink: #0E1525;
  --ink-2: #4A5568;
  --ink-3: #8A94A6;
  --line: #E7EAF3;
  --line-2: #F1F3F9;
  --ok: #0EA76B;
  --warn: #E98604;
  --bad: #E5484D;
  --info: #3B82F6;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 布局 ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.side {
  background: linear-gradient(180deg, #0B1024 0%, #101733 100%);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(124, 92, 246, .35), transparent 65%);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; position: relative; z-index: 1; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(79, 107, 255, .45);
  flex: none;
}
.brand .logo svg { width: 19px; height: 19px; }
.brand .t { line-height: 1.25; }
.brand .t b { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; display: block; }
.brand .t span { font-size: 11px; color: #7A85A8; letter-spacing: .04em; }

.nav { flex: 1; overflow-y: auto; padding-bottom: 20px; position: relative; z-index: 1; }
.nav::-webkit-scrollbar { width: 0; }
.nav-title { font-size: 10.5px; color: #5B6584; letter-spacing: .12em; padding: 16px 22px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; margin: 2px 10px; padding: 0 12px;
  border-radius: 10px; color: #A3ADC6; font-size: 13.5px;
  cursor: pointer; transition: .16s; user-select: none;
}
.nav-item svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.on {
  background: linear-gradient(135deg, rgba(79, 107, 255, .95), rgba(124, 92, 246, .85));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 107, 255, .32);
}
.nav-item.on svg { opacity: 1; }
.nav-item .dot { margin-left: auto; background: #FF5A5F; color: #fff; font-size: 10.5px; height: 17px; min-width: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

.side-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .06); position: relative; z-index: 1; }
.side-foot .who { display: flex; align-items: center; gap: 10px; }
.side-foot .who .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 12px; color: #C9D2EA; }
.side-foot .who b { font-size: 12.5px; font-weight: 500; display: block; color: #E7EBF7; }
.side-foot .who span { font-size: 11px; color: #6B7699; }
.side-foot .out { margin-left: auto; color: #6B7699; cursor: pointer; padding: 4px; border-radius: 6px; }
.side-foot .out:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 28px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.top h1 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.top .crumb { font-size: 12.5px; color: var(--ink-3); }
.top .sp { flex: 1; }
.top .chip {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
.top .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }

.page { padding: 24px 28px 56px; max-width: 1400px; width: 100%; margin: 0 auto; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-hd { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.card-hd h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-hd .sub { font-size: 12px; color: var(--ink-3); }
.card-hd .sp { flex: 1; }
.card-bd { padding: 20px; }
.card-bd.tight { padding: 0; }
.card-ft { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }

.stat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -34px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 107, 255, .10), rgba(124, 92, 246, .04) 55%, transparent 70%); pointer-events: none; }
.stat .k { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.stat .d { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: .16s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: #C9D2EA; box-shadow: 0 3px 10px rgba(79, 107, 255, .1); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(79, 107, 255, .28); }
.btn.primary:hover { box-shadow: 0 10px 24px rgba(79, 107, 255, .36); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: #F2F4FA; box-shadow: none; }
.btn.danger { color: var(--bad); border-color: #F8D7D8; }
.btn.danger:hover { background: #FEF5F5; }
.btn.sm { height: 30px; font-size: 12.5px; padding: 0 10px; border-radius: 8px; }
.btn.lg { height: 44px; font-size: 15px; padding: 0 22px; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: .16s;
}
textarea.input { height: auto; padding: 9px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: #93A8FF; box-shadow: 0 0 0 3px rgba(79, 107, 255, .12); }
.input.sm { height: 32px; font-size: 13px; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.switch i { width: 34px; height: 20px; border-radius: 99px; background: #DDE3EF; position: relative; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.on i { background: var(--brand); }
.switch.on i::after { left: 16px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px;
  padding: 11px 14px; background: #FAFBFE; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover td { background: #FAFBFF; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table td.c, .table th.c { text-align: center; }
.table .no { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.table .nm { font-weight: 500; }
.table .act { display: flex; gap: 6px; }

/* ---------- 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; background: #EEF2FF; color: #4F6BFF; white-space: nowrap;
}
.badge.ok { background: #E7F7EF; color: #0B8F5B; }
.badge.warn { background: #FFF4E3; color: #B26A00; }
.badge.bad { background: #FDECEC; color: #D1373C; }
.badge.gray { background: #F2F4F8; color: #667085; }
.badge.purple { background: #F2EDFF; color: #7048E8; }
.dotty { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- 进度 ---------- */
.progress { height: 6px; border-radius: 99px; background: #EDF0F7; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.progress.thin { height: 4px; }

/* ---------- 分段控件 ---------- */
.seg { display: inline-flex; background: #F1F3FA; border-radius: 10px; padding: 3px; gap: 2px; }
.seg > div { padding: 6px 14px; font-size: 13px; color: var(--ink-2); border-radius: 8px; cursor: pointer; transition: .16s; }
.seg > div.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); font-weight: 500; }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(11, 16, 36, .45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; animation: fade .18s; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 80px); display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal.wide { width: min(880px, calc(100vw - 32px)); }
.modal-hd { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-hd h3 { margin: 0 14px 0 0; font-size: 16px; font-weight: 600; }
.modal-bd { padding: 22px; overflow: auto; }
.modal-ft { padding: 16px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }


/* ---------- 进度条（AI 解析、导入试题） ---------- */
.pbar { height: 8px; border-radius: 999px; background: #EDF0F7; overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .45s ease; }
.pbar.done > i { background: #0B8F5B; }
.pbar.bad > i { background: #D1373C; }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FBFCFF; }
.pcard .t { font-size: 13px; font-weight: 600; color: var(--ink); }
.pcard .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.spin { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.qthumb { border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 100%; cursor: zoom-in; display: block; }

/* ---------- 提示 ---------- */
.toasts { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #0E1525; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: drop .22s; display: flex; align-items: center; gap: 8px; }
.toast.ok { background: #0B8F5B; } .toast.bad { background: #D1373C; } .toast.warn { background: #B26A00; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 / 骨架 ---------- */
.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); }
.empty .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-soft); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ico svg { width: 24px; height: 24px; color: var(--brand); }
.empty b { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 12.5px; }
.skeleton { background: linear-gradient(90deg, #F1F3F9 25%, #F7F9FC 37%, #F1F3F9 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- 图表 ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: #EEF1F8; stroke-width: 1; }
.chart .axis-text { fill: #98A2B3; font-size: 11px; }
.chart .pt { transition: r .15s; cursor: pointer; }
.chart .pt:hover { r: 5.5; }

/* ---------- 登录页 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 46% 54%; background: #fff; }
.login-left { position: relative; overflow: hidden; padding: 54px 56px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(150deg, #0B1024 0%, #16204A 55%, #241B54 100%); }
.login-left::before, .login-left::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.login-left::before { width: 520px; height: 520px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(79, 107, 255, .5), transparent 62%); }
.login-left::after { width: 420px; height: 420px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(139, 92, 246, .42), transparent 65%); }
.login-left .brand { padding: 0; }
.login-left .brand .t b { font-size: 16px; }
.login-left .hero { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; }
.login-left .hero h2 { font-size: 34px; line-height: 1.32; margin: 0 0 16px; font-weight: 600; letter-spacing: -.01em; }
.login-left .hero p { font-size: 14.5px; color: #A8B2D1; line-height: 1.8; margin: 0 0 30px; max-width: 400px; }
.login-left .feat { display: flex; flex-direction: column; gap: 14px; }
.login-left .feat .it { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #C6CEE6; }
.login-left .feat .it .n { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 11px; color: #fff; flex: none; margin-top: 1px; }
.login-left .foot { font-size: 12px; color: #6B7699; position: relative; z-index: 1; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 372px; }
.login-box .role-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; background: var(--grad-soft); color: var(--brand); margin-bottom: 18px; }
.login-box h1 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.01em; }
.login-box .desc { color: var(--ink-3); font-size: 13.5px; margin-bottom: 28px; }
.login-box .input { height: 44px; border-radius: 12px; }
.login-box .btn.lg { width: 100%; margin-top: 6px; }
.login-box .err { background: #FDECEC; color: #D1373C; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; }
.login-box .links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.login-box .links a { color: var(--ink-2); }
.login-box .links a:hover { color: var(--brand); }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 24px; }
}

/* ---------- 尚博红 · 教师/校长登录页 ---------- */
.sb-login { position: relative; min-height: 100vh; display: grid; overflow: hidden; justify-content: center;
  grid-template-columns: minmax(0, 620px) minmax(336px, 400px); align-items: center;
  gap: clamp(30px, 4.6vw, 76px); padding: 46px clamp(22px, 4vw, 56px);
  background: #6E0813 url("/static/bg/lou.jpg") center 42% / cover no-repeat; }
.sb-login::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(118% 92% at 80% 40%, rgba(255,110,78,.46) 0%, rgba(216,34,38,.30) 44%, rgba(140,8,20,0) 74%),
    linear-gradient(158deg, rgba(88,3,13,.95) 0%, rgba(138,8,20,.88) 32%, rgba(182,17,26,.78) 62%, rgba(214,38,36,.70) 86%, rgba(116,6,16,.86) 100%); }
.sb-login::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(104deg, rgba(40,0,4,.34) 0%, rgba(40,0,4,0) 52%); }
.sb-login > * { position: relative; z-index: 1; }
.sb-hero { color: #fff; }
.sb-brand { display: flex; align-items: center; gap: 12px; }
.sb-logo { width: 58px; height: 58px; flex: none; border-radius: 16px; background: #fff; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(60,0,6,.26); }
.sb-logo img { width: 90%; height: 90%; object-fit: contain; display: block; }
.sb-brand b { display: block; font-size: 17px; letter-spacing: .06em; line-height: 1.3; }
.sb-brand span { font-size: 10px; letter-spacing: .24em; color: rgba(255,255,255,.7); }
.sb-title { margin: clamp(22px, 4vw, 40px) 0 0; font-size: clamp(28px, 3.7vw, 48px); line-height: 1.26;
  font-weight: 800; letter-spacing: -.01em; text-shadow: 0 8px 30px rgba(70,0,8,.42); }
.sb-title em { font-style: normal; display: block; }
.sb-sub { margin: 14px 0 0; font-size: 13.5px; letter-spacing: .05em; color: rgba(255,255,255,.84); }
.sb-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: clamp(18px, 3vw, 26px); }
.sb-tags i { font-style: normal; height: 30px; padding: 0 15px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, #FF9440, #FF6A1E); box-shadow: 0 8px 20px rgba(255,106,30,.32); }
.sb-note { margin-top: clamp(20px, 3vw, 30px); padding-top: 15px; max-width: 470px; font-size: 12.5px;
  line-height: 1.95; color: rgba(255,255,255,.64); border-top: 1px solid rgba(255,255,255,.18); }
.sb-card { width: 100%; padding: 32px 30px 24px; border-radius: 22px; background: rgba(255,255,255,.975);
  box-shadow: 0 28px 74px rgba(56,0,8,.40); }
.idpick { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px;
  background: #F3F4F6; margin-bottom: 18px; }
.idpick button { height: 36px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-size: 13.5px; color: #6B7280; font-weight: 500; font-family: inherit; transition: all .16s; }
.idpick button:hover { color: #C8102E; }
.idpick button.on { background: #fff; color: #C8102E; font-weight: 700; box-shadow: 0 2px 8px rgba(24,10,14,.10); }
.sb-card .role-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 8px; font-size: 12px; margin-bottom: 16px; color: #C8102E; background: rgba(200,16,46,.10); }
.sb-card h1 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.01em; }
.sb-card .desc { color: #6B7280; font-size: 13px; margin-bottom: 22px; line-height: 1.7; }
.sb-card .field label { font-size: 12.5px; color: #4B5563; }
.sb-card .input { height: 44px; border-radius: 12px; }
.sb-card .btn.primary.lg { width: 100%; height: 46px; margin-top: 6px; border-radius: 12px; font-size: 15px; letter-spacing: .18em; }
.sb-card .err { background: #FDECEC; color: #D1373C; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; }
.sb-card .links { margin-top: 16px; text-align: center; font-size: 12px; color: #9AA3AF; }
@media (max-width: 980px) {
  .sb-login { grid-template-columns: 1fr; align-items: start; gap: 24px;
    padding: 26px 18px 34px; background-image: url("/static/bg/lou_tall.jpg"); background-position: center 30%; }
  .sb-hero { max-width: none; }
  .sb-title { margin-top: 20px; }
  .sb-note { display: none; }
  .sb-card { padding: 26px 20px 20px; border-radius: 18px; }
}

/* ---------- 扫描 / 阅卷专用 ---------- */
.drop {
  border: 1.5px dashed #CBD5E9; border-radius: 16px; padding: 38px; text-align: center;
  background: linear-gradient(180deg, #FBFCFE, #F7F9FD); transition: .2s; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--brand); background: #F4F7FF; }
.drop .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin: 0 auto 12px; }
.drop .ico svg { width: 22px; height: 22px; color: var(--brand); }
.drop b { font-size: 14px; display: block; margin-bottom: 5px; }
.drop p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.slice-view { align-content: center; gap: 10px; }
.slice-view { background: #EEF1F8; border-radius: 14px; display: grid; place-items: center; overflow: auto; padding: 14px; min-height: 320px; position: relative; }
.slice-view img { max-width: 100%; max-height: 60vh; display: block; border-radius: 6px; background: #fff; box-shadow: 0 4px 18px rgba(15, 23, 42, .12); transition: transform .18s; }
.slice-view .zoom { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }

.score-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.score-pad div { height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13.5px; cursor: pointer; background: #fff; transition: .14s; font-variant-numeric: tabular-nums; }
.score-pad div:hover { border-color: var(--brand); color: var(--brand); background: #F6F8FF; }
.score-pad div.on { background: var(--grad); color: #fff; border: 0; }

.score-input { font-size: 40px; font-weight: 650; letter-spacing: -.02em; width: 100%; height: 62px; line-height: 1.2; text-align: center; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 4px 0; font-variant-numeric: tabular-nums; }
.score-input:focus { outline: none; border-color: var(--brand); }

.kb { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.kb kbd { background: #F2F4FA; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; font-family: inherit; font-size: 11px; color: var(--ink-2); }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; transition: .16s; }
.thumb:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.thumb img { width: 100%; display: block; background: #F7F8FC; }
.thumb .meta { padding: 8px 10px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.thumb.bad { border-color: #F6C9CB; }
.thumb.bad .meta { background: #FEF6F6; }

/* ---------- 学生端（手机优先） ---------- */
.m { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 74px; }
.m-top { padding: 20px 20px 14px; background: linear-gradient(160deg, #10163A, #241B54); color: #fff; border-radius: 0 0 24px 24px; }
.m-top .hi { font-size: 12.5px; color: #A8B2D1; }
.m-top .nm { font-size: 21px; font-weight: 600; margin-top: 3px; }
.m-body { padding: 16px; }
.m-tab { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; height: 62px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; }
.m-tab > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); cursor: pointer; }
.m-tab > div.on { color: var(--brand); }
.m-tab svg { width: 20px; height: 20px; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.score-ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring .c b { font-size: 30px; font-weight: 650; letter-spacing: -.02em; display: block; line-height: 1; }
.score-ring .c span { font-size: 11.5px; color: var(--ink-3); }


/* ---------- 图标尺寸 ---------- */
.ico, .qi, [data-ico] { display: inline-flex; align-items: center; justify-content: center; }
.qi { width: 36px; height: 36px; border-radius: 11px; background: #EEF2FF; color: var(--brand); flex: 0 0 36px; }
.qi svg { width: 18px; height: 18px; }
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn svg { width: 15px; height: 15px; }
.quick { display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: .18s; width: 100%; }
.quick:hover { border-color: #C7D3F8; box-shadow: 0 8px 20px rgba(79, 107, 255, .10); transform: translateY(-1px); }
.quick b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.quick div span { font-size: 12px; color: var(--ink-3); }


/* ---------- 分段控件 / 链接按钮 ---------- */
.seg { display: inline-flex; background: #F3F5FB; border-radius: 10px; padding: 3px; gap: 2px; }
.seg span { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: .15s; white-space: nowrap; }
.seg span:hover { color: var(--ink); }
.seg span.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .10); }
.btn.link { border: 0; background: none; height: 26px; padding: 0 6px; color: var(--brand); font-size: 12.5px; border-radius: 7px; }
.btn.link:hover { background: #EEF2FF; box-shadow: none; }
.btn.link.danger { color: var(--bad); }
.btn.link.danger:hover { background: #FEECEC; }

/* 阅卷台：参考答案区（高度放大，长答案能滚） */
.ref-ans {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  background: #F7F9FD;
  padding: 12px 14px;
  border-radius: 9px;
  white-space: pre-wrap;
  min-height: 210px;
  max-height: 400px;
  overflow: auto;
}
