/* =========================================================
   声迹 SayMark · 设计系统
   ========================================================= */
:root {
  --bg: #f4f1e8;
  --bg-deep: #ebe6d8;
  --surface: #fffdf7;
  --surface-2: #f9f6ed;
  --surface-3: #f2eee2;
  --ink: #12312c;
  --ink-soft: #536862;
  --muted: #8a9893;
  --line: rgba(18, 49, 44, 0.12);
  --line-strong: rgba(18, 49, 44, 0.2);
  --brand: #0c5c50;
  --brand-2: #0e7e6a;
  --brand-soft: #dcefe7;
  --brand-pale: #edf7f2;
  --accent: #dda23b;
  --accent-soft: #f8ebd3;
  --accent-ink: #8b5b13;
  --coral: #c96550;
  --coral-soft: #f8e6e0;
  --blue: #3f7089;
  --blue-soft: #e5eff4;
  --danger: #b5493a;
  --danger-soft: #f9e5e1;
  --great: #0f7a66;
  --good: #a87519;
  --low: #bd5342;
  --shadow-sm: 0 2px 6px -2px rgba(18, 49, 44, 0.08);
  --shadow: 0 24px 60px -32px rgba(18, 49, 44, 0.35);
  --shadow-soft: 0 12px 32px -22px rgba(18, 49, 44, 0.3);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-sans: "Aptos", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", serif;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 6% -4%, rgba(221, 162, 59, 0.16), transparent 38%),
    radial-gradient(ellipse at 96% 4%, rgba(12, 92, 80, 0.13), transparent 34%),
    radial-gradient(ellipse at 50% 110%, rgba(12, 92, 80, 0.05), transparent 55%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(18, 49, 44, 0.12) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(221, 162, 59, 0.3); }
:focus-visible { outline: 3px solid rgba(12, 92, 80, 0.35); outline-offset: 2px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.app-stage { min-height: 100vh; animation: pageIn 320ms ease both; }
.icon { flex: none; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fffdf6;
  box-shadow: 0 8px 20px -13px rgba(12, 92, 80, 0.9);
}
.btn-primary:hover:not(:disabled) { background: #0a5046; box-shadow: 0 12px 24px -14px rgba(12, 92, 80, 0.9); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); background: #fff; }
.btn-ghost { color: var(--ink-soft); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(18, 49, 44, 0.06); color: var(--ink); }
.btn-soft { background: var(--brand-pale); color: var(--brand); }
.btn-soft:hover:not(:disabled) { background: var(--brand-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #9e3e31; }
.btn-danger-ghost { color: var(--danger); border-color: rgba(181, 73, 58, 0.2); background: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; gap: 5px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn-full { width: 100%; }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 2px 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}
.text-btn:hover { color: var(--brand-2); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.icon-btn:hover { background: rgba(18, 49, 44, 0.07); color: var(--ink); }
.icon-btn.small { width: 28px; height: 28px; }
.icon-btn.danger-icon:hover { background: var(--danger-soft); color: var(--danger); }
.mini-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.mini-action:hover { background: rgba(18, 49, 44, 0.06); color: var(--ink); }
.danger-text { color: var(--danger) !important; }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.field-label em { color: var(--coral); font-style: normal; }
.field-counter { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.field-counter.is-warning { color: var(--danger); }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.55; display: flex; gap: 5px; align-items: flex-start; }
.field-hint.warning { color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.input, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffefa;
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input::placeholder, .textarea::placeholder { color: #aeb8b4; }
.input:focus, .textarea:focus, .select-wrap select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(12, 92, 80, 0.09);
  background: #fff;
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.65; }
.input[readonly], .textarea[readonly] { background: var(--surface-3); color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-error { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--danger); font-size: 12.5px; line-height: 1.5; }
.form-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(181, 73, 58, 0.24);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
}
.input-with-icon, .input-with-action { position: relative; display: flex; align-items: center; }
.input-with-icon .input-icon, .input-with-action .input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.input-with-icon .input, .input-with-action .input { padding-left: 42px; }
.input-with-action .input { padding-right: 118px; }
.input-with-action .btn { position: absolute; right: 5px; top: 5px; bottom: 5px; }
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  min-height: 38px;
}
.select-wrap.full { display: flex; width: 100%; }
.select-wrap select {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 28px 8px 0;
  min-width: 120px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.select-wrap.full select { width: 100%; }
.select-wrap .select-arrow { position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.select-wrap.small { min-height: 35px; padding-left: 10px; border-radius: 9px; }
.select-wrap.small select { font-size: 12.5px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  min-width: 210px;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12, 92, 80, 0.08); }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 通用小组件 ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow.small { font-size: 10px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(221, 162, 59, 0.14); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge.tiny { font-size: 9.5px; padding: 2px 6px; }
.badge-read { background: var(--brand-pale); color: var(--brand); }
.badge-free { background: var(--accent-soft); color: var(--accent-ink); }
.badge-teal { background: var(--brand-pale); color: var(--brand); }
.badge-amber { background: var(--accent-soft); color: var(--accent-ink); }
.badge-neutral { background: rgba(18, 49, 44, 0.07); color: var(--ink-soft); }
.badge-muted { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-xs { width: 28px; height: 28px; font-size: 10.5px; }
.avatar-md { width: 42px; height: 42px; font-size: 14px; }
.tone-a { background: #dcefe7; color: #0b5d50; }
.tone-b { background: #f6e8cc; color: #8d5c13; }
.tone-c { background: #e1ebf1; color: #315e75; }
.tone-d { background: #f3e0db; color: #944739; }
.tone-e { background: #e9e6d8; color: #635b43; }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(12, 92, 80, 0.16);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
  flex: none;
  display: inline-block;
}
.spinner-light { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.inline-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.dot-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulseDot 1.2s infinite ease-in-out; }
.progress { height: 6px; width: 100%; overflow: hidden; border-radius: 999px; background: rgba(18, 49, 44, 0.08); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.progress-amber > span { background: linear-gradient(90deg, #c58a27, var(--accent)); }
.score-pill {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--surface-3);
}
.score-pill.great { background: var(--brand-pale); color: var(--brand); }
.score-pill.good { background: var(--accent-soft); color: var(--accent-ink); }
.score-pill.warn { background: #f5e6d9; color: #a35c2b; }
.score-pill.low { background: var(--danger-soft); color: var(--danger); }
.great { color: var(--great); }
.good { color: var(--good); }
.warn { color: #b06d2a; }
.low { color: var(--low); }
.page-loading { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 13px; }
.loader-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(12, 92, 80, 0.14);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 54px 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.6);
}
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); margin-bottom: 4px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 420px; }
.empty-action { margin-top: 10px; }
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40vh;
  padding: 40px 24px;
  text-align: center;
}
.error-state.compact { min-height: 20vh; }
.error-state.compact h2 { font-size: 18px; }
.error-state .error-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); }
.error-state h2 { font-size: 22px; }
.error-state p { max-width: 500px; color: var(--ink-soft); }
.error-state .btn { margin-top: 8px; }

/* ---------------- 品牌 ---------------- */
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: var(--logo-size, 38px);
  height: var(--logo-size, 38px);
  border-radius: 12px;
  background: var(--brand);
  color: #fff8e9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 16px -12px rgba(12, 92, 80, 0.8);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { display: flex; align-items: baseline; gap: 7px; letter-spacing: -0.03em; }
.brand-word strong { font-size: 20px; font-weight: 700; }
.brand-word span { font-family: var(--font-serif); font-size: 15px; font-style: italic; color: var(--ink-soft); }
.brand-lockup.is-compact .brand-word strong { font-size: 18px; }
.brand-lockup.is-compact .brand-word span { font-size: 13px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  backdrop-filter: blur(12px);
}
.toast.is-leaving { animation: toastOut 200ms ease both; }
.toast-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--brand-pale); color: var(--brand); }
.toast-error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast-info .toast-icon { background: var(--blue-soft); color: var(--blue); }
.toast-copy { flex: 1; min-width: 0; }
.toast-copy p { font-size: 13px; font-weight: 600; line-height: 1.45; }
.toast-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.45; word-break: break-word; }
.toast-close { border: 0; background: none; color: var(--muted); padding: 3px; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 28, 25, 0.48);
  backdrop-filter: blur(6px);
  animation: fadeIn 180ms ease both;
}
.modal {
  width: 100%;
  max-height: min(90vh, 920px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(6, 24, 21, 0.5);
  animation: modalIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}
.modal-sm { max-width: 440px; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1120px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); flex: none; }
.modal-title-wrap { display: flex; gap: 13px; min-width: 0; }
.modal-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-pale); color: var(--brand); flex: none; }
.modal-title-wrap h2 { font-size: 20px; }
.modal-title-wrap p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.modal-close { flex: none; margin-top: -2px; }
.modal-body { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 24px; border-top: 1px solid var(--line); background: var(--surface-2); flex: none; flex-wrap: wrap; }
.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(9, 25, 22, 0.52);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.confirm-layer.is-open { opacity: 1; }
.confirm-layer.is-leaving { opacity: 0; }
.confirm-card {
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 70px -20px rgba(6, 24, 21, 0.5);
  transform: translateY(8px) scale(0.985);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm-layer.is-open .confirm-card { transform: translateY(0) scale(1); }
.confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.confirm-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.confirm-card h2 { font-size: 20px; }
.confirm-card p { margin-top: 9px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.confirm-message { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---------------- 启动页 ---------------- */
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.boot-logo { opacity: 0.85; }
.boot-loading .page-loading { min-height: auto; }
.fatal-error { max-width: 620px; padding: 30px; text-align: center; }
.fatal-error h1 { font-size: 24px; margin-bottom: 10px; }
.fatal-error code { display: block; margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--surface); color: var(--danger); font-size: 12px; overflow-wrap: anywhere; }

/* =========================================================
   登录页
   ========================================================= */
.landing-page { min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.landing-nav-right { display: flex; align-items: center; gap: 20px; }
.nav-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12px; }
.nav-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.66);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition);
}
.nav-switch:hover { background: var(--surface); border-color: var(--brand); }
.landing-main {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.53fr);
  gap: clamp(30px, 4vw, 62px);
  align-items: center;
  padding: 26px 0 56px;
}
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr); gap: 24px; align-items: center; min-width: 0; }
.hero-copy { min-width: 0; animation: riseIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.1;
}
.serif-accent {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--brand);
}
.serif-accent::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: 4%;
  height: 12px;
  border-radius: 50%;
  background: rgba(221, 162, 59, 0.35);
  transform: rotate(-1.2deg);
  z-index: -1;
}
.hero-sub {
  margin-top: 20px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}
.hero-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 27px; }
.hero-feature { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-feature + .hero-feature { padding-left: 0; border-left: 0; }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 253, 247, 0.72); border: 1px solid var(--line); color: var(--brand); flex: none; }
.hero-feature strong { display: block; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.hero-feature p { color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.hero-quote { display: flex; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 460px; }
.quote-mark { font-family: var(--font-serif); font-size: 34px; line-height: 0.9; color: var(--accent); }
.hero-quote p { font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

.hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; animation: riseIn 800ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.paper-card {
  position: relative;
  width: min(100%, 292px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 36px 70px -34px rgba(18, 49, 44, 0.45);
  transform: rotate(2.2deg);
  backdrop-filter: blur(12px);
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  z-index: -1;
  transform: rotate(-4deg);
  background: rgba(255, 253, 247, 0.45);
}
.paper-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 11px; font-weight: 650; }
.paper-date { color: var(--muted); font-size: 9px; letter-spacing: 0.12em; }
.paper-score-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.paper-score span { display: block; color: var(--muted); font-size: 11px; }
.paper-score strong { display: block; font-family: var(--font-serif); font-size: 62px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; margin-top: 4px; }
.paper-score em { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 999px; background: var(--brand-pale); color: var(--brand); font-size: 10px; font-style: normal; font-weight: 650; }
.mini-ring { position: relative; width: 84px; height: 84px; }
.mini-ring svg { transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 7; }
.mini-ring-track { stroke: rgba(12, 92, 80, 0.1); }
.mini-ring-value { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 32; }
.mini-ring > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); }
.paper-skills { display: grid; gap: 11px; margin-top: 18px; }
.paper-skills > div { display: grid; grid-template-columns: 46px 1fr 30px; align-items: center; gap: 8px; }
.paper-skills span { color: var(--muted); font-size: 10px; }
.paper-skills b { font-size: 10px; color: var(--ink); text-align: right; }
.paper-skills i { grid-column: 2 / 3; grid-row: 1; display: block; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--w), rgba(12, 92, 80, 0.08) var(--w)); }
.paper-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 20px; }
.paper-wave span { flex: 1; height: var(--h); border-radius: 99px; background: var(--brand); opacity: 0.72; }
.paper-footer { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 9px; }
.dot-live { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(221, 162, 59, 0.14); }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  z-index: 2;
}
.chip-teacher { top: 8%; left: -3%; transform: rotate(-2deg); }
.chip-soe { bottom: 6%; right: -3%; transform: rotate(2deg); }
.chip-soe .icon { color: var(--brand); }
.chip-teacher .icon { color: var(--accent-ink); }

/* 登录卡片 */
.auth-panel {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 32px 80px -36px rgba(18, 49, 44, 0.4);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: riseIn 700ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 8px 0; }
.auth-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.auth-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-body { padding: 24px 26px 26px; }
.login-intro { margin-bottom: 18px; }
.login-intro h2 { font-size: 26px; letter-spacing: -0.035em; }
.login-intro p { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.login-intro.compact { margin-bottom: 14px; }
.login-intro.compact h2 { font-size: 23px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 9px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.class-picker { margin-top: 10px; }
.class-options { display: grid; gap: 8px; margin-top: 9px; max-height: 260px; overflow-y: auto; padding-right: 3px; }
.class-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.class-option:hover { border-color: rgba(12, 92, 80, 0.35); transform: translateX(2px); background: #fff; }
.class-option.is-selected { border-color: var(--brand); background: var(--brand-pale); }
.class-option-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--brand-pale); color: var(--brand); flex: none; }
.class-option.is-selected .class-option-icon { background: var(--brand); color: #fff; }
.class-option-copy { flex: 1; min-width: 0; }
.class-option-copy strong { display: block; font-size: 13.5px; }
.class-option-copy small { display: block; color: var(--muted); font-size: 10.5px; }
.class-option-check { color: var(--muted); display: grid; place-items: center; }
.class-option.is-selected .class-option-check { color: var(--brand); }
.privacy-line { display: flex; align-items: flex-start; gap: 5px; margin-top: 17px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.back-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.back-link:hover { color: var(--brand); }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roster-count { padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-soft); font-size: 10.5px; font-weight: 600; }
.roster-search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; margin: 12px 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.roster-search input { border: 0; outline: 0; background: transparent; font-size: 12.5px; width: 100%; }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 402px; overflow-y: auto; padding: 2px 3px 2px 1px; }
.student-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.student-tile:hover { border-color: rgba(12, 92, 80, 0.4); background: #fff; transform: translateY(-1px); }
.student-tile-copy { flex: 1; min-width: 0; }
.student-tile-copy strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-tile-copy small { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: 0.02em; }
.tile-arrow { color: var(--muted); opacity: 0; transition: opacity var(--transition); }
.student-tile:hover .tile-arrow { opacity: 1; color: var(--brand); }
.roster-hint { display: flex; align-items: flex-start; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.code-form { margin-top: 6px; }
.code-form .field-label { margin-bottom: 7px; }
.teacher-login-form { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.teacher-form-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.teacher-form-label .field-label { font-size: 12.5px; letter-spacing: 0.01em; }
.teacher-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(12, 92, 80, 0.12);
  border-radius: 99px;
  background: var(--brand-pale);
  color: var(--brand);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 55px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(180deg, #fffefa, #fffdf7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -24px rgba(18, 49, 44, 0.5);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  overflow: hidden;
}
.password-field:hover { border-color: rgba(12, 92, 80, 0.35); }
.password-field:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(12, 92, 80, 0.09), 0 16px 30px -26px rgba(18, 49, 44, 0.55);
}
.password-icon {
  display: grid;
  place-items: center;
  width: 49px;
  flex: none;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(220, 239, 231, 0.8), rgba(255, 253, 247, 0));
  border-right: 1px solid var(--line);
}
.password-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 10px 0 15px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.password-input::placeholder { color: #aeb8b4; letter-spacing: 0; }
.password-toggle {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  margin: 6px 5px 6px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.password-toggle:hover { background: var(--surface-3); color: var(--ink); }
.password-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  padding: 7px 3px 0;
  color: var(--muted);
  font-size: 9.5px;
}
.password-hint-row span { display: inline-flex; align-items: center; gap: 4px; }
.password-hint-row .caps-warning { color: var(--accent-ink); font-weight: 650; }
.teacher-login-form .form-error { margin-top: 2px; }
.teacher-login-btn {
  min-height: 48px;
  margin-top: 12px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px -18px rgba(12, 92, 80, 0.9);
}
.teacher-login-form .login-footnote { margin-top: 20px; }
.login-footnote { margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.footnote-row { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; }
.login-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px; text-align: center; color: var(--ink-soft); }
.login-empty .icon { color: var(--brand); }
.login-empty h4 { font-size: 15px; }
.login-empty p { font-size: 11.5px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.class-loading { display: flex; align-items: center; gap: 8px; padding: 22px 4px; color: var(--muted); font-size: 12px; }
.roster-loading { display: flex; align-items: center; gap: 8px; padding: 26px 4px; color: var(--muted); font-size: 12px; }
.inline-alert { display: flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 11.5px; }
.inline-alert p { flex: 1; }
.landing-footer {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.landing-footer span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- 动画 ---------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }

/* =========================================================
   教师端
   ========================================================= */
.teacher-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 16px 16px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(221, 162, 59, 0.12), transparent 42%),
    radial-gradient(ellipse at -10% 80%, rgba(14, 126, 106, 0.28), transparent 55%),
    #0d2b27;
  color: #eef3ec;
  overflow-y: auto;
  z-index: 40;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(#fff 0.55px, transparent 0.55px);
  background-size: 18px 18px;
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 22px; }
.sidebar .brand-word strong { color: #fffdf5; }
.sidebar .brand-word span { color: rgba(238, 243, 236, 0.55); }
.sidebar .logo-mark { background: #16483f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.sidebar-close { display: none; color: rgba(255, 255, 255, 0.65); }
.sidebar-class-chip { display: flex; align-items: center; gap: 7px; margin: 4px 6px 22px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: rgba(238, 243, 236, 0.66); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ee0bd; box-shadow: 0 0 0 3px rgba(110, 224, 189, 0.12); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(238, 243, 236, 0.63);
  font-size: 13px;
  font-weight: 550;
  transition: background var(--transition), color var(--transition);
}
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-link.is-active { background: rgba(255, 255, 255, 0.1); color: #fffdf5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.side-icon { display: grid; place-items: center; width: 22px; color: inherit; }
.side-link.is-active .side-icon { color: #f0b95c; }
.side-active-dot { position: absolute; right: 13px; width: 5px; height: 5px; border-radius: 50%; background: #f0b95c; }
.sidebar-tip { margin-top: auto; margin-bottom: 18px; display: flex; gap: 10px; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; background: rgba(255, 255, 255, 0.035); color: rgba(238, 243, 236, 0.47); font-size: 10.5px; line-height: 1.55; }
.sidebar-tip .icon { color: rgba(240, 185, 92, 0.7); margin-top: 1px; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 4px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.side-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side-user strong { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.88); font-weight: 600; }
.side-user span { display: block; color: rgba(238, 243, 236, 0.4); font-size: 9px; letter-spacing: 0.04em; }
.sidebar .avatar { border: 1px solid rgba(255, 255, 255, 0.14); }
.sidebar .icon-btn { color: rgba(255, 255, 255, 0.45); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-scrim { display: none; }
.teacher-main { min-width: 0; display: flex; flex-direction: column; }
.teacher-topline {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.82);
  backdrop-filter: blur(18px);
}
.topline-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.topline-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topline-sep { width: 1px; height: 18px; background: var(--line); }
.topline-user { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11.5px; font-weight: 550; }
.mobile-menu { display: none; }
.teacher-view { width: 100%; max-width: 1460px; margin: 0 auto; padding: 28px 34px 64px; }

/* 页面标题 */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.page-heading h1 { margin-top: 8px; font-size: clamp(27px, 2.8vw, 36px); font-weight: 630; letter-spacing: -0.045em; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; max-width: 620px; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.teacher-view > .eyebrow { margin-bottom: 8px; }

/* 引擎提示 */
.engine-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.engine-banner .banner-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--brand-pale); color: var(--brand); }
.engine-banner > div { flex: 1; min-width: 0; }
.engine-banner strong { display: block; font-size: 12.5px; }
.engine-banner p { margin-top: 2px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.55; }
.engine-banner.is-warning { border-color: rgba(221, 162, 59, 0.33); background: #fdf8ec; }
.engine-banner.is-warning .banner-icon { background: var(--accent-soft); color: var(--accent-ink); }
.engine-banner.is-demo { border-color: rgba(63, 112, 137, 0.22); background: #f4f8fa; }
.engine-banner.is-demo .banner-icon { background: var(--blue-soft); color: var(--blue); }
.engine-banner.is-neutral .banner-icon { background: var(--surface-3); color: var(--ink-soft); }
.sample-strip { display: flex; align-items: center; gap: 9px; margin: -7px 0 18px; padding: 8px 12px; border: 1px dashed rgba(12, 92, 80, 0.22); border-radius: 10px; color: var(--ink-soft); background: rgba(255, 253, 247, 0.45); font-size: 10.5px; }
.sample-strip .icon { color: var(--brand); flex: none; }
.sample-strip p { flex: 1; line-height: 1.5; }
.sample-strip strong { color: var(--ink); }
.sample-strip .text-btn { font-size: 10.5px; flex: none; }

/* 筛选 */
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar .result-meta { color: var(--muted); font-size: 11px; }
.filter-spacer { flex: 1; }
.filter-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 253, 247, 0.6); }
.filter-tab { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 7px; background: transparent; padding: 6px 10px; color: var(--ink-soft); font-size: 11.5px; font-weight: 600; transition: background var(--transition), color var(--transition); }
.filter-tab span { color: var(--muted); font-size: 9.5px; font-weight: 500; }
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.filter-tab.is-active span { color: rgba(255, 255, 255, 0.65); }
.compact-tabs { border: 0; padding: 0; gap: 4px; background: transparent; }
.compact-tabs .filter-tab { padding: 7px 10px; border-radius: 8px; }
.compact-tabs .filter-tab.is-active { background: var(--brand-pale); color: var(--brand); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; padding: 17px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.stat-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-pale); opacity: 0.55; }
.stat-card.tone-amber::after { background: var(--accent-soft); }
.stat-card.tone-blue::after { background: var(--blue-soft); }
.stat-card.tone-coral::after { background: var(--coral-soft); }
.stat-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-pale); color: var(--brand); }
.tone-amber .stat-icon { background: var(--accent-soft); color: var(--accent-ink); }
.tone-blue .stat-icon { background: var(--blue-soft); color: var(--blue); }
.tone-coral .stat-icon { background: var(--coral-soft); color: var(--coral); }
.stat-trend { color: var(--brand); font-size: 10px; }
.stat-label { position: relative; z-index: 1; margin-top: 14px; color: var(--muted); font-size: 10.5px; font-weight: 550; }
.stat-value { position: relative; z-index: 1; margin-top: 2px; font-family: var(--font-serif); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 4px; color: var(--muted); font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.stat-note { position: relative; z-index: 1; margin-top: 5px; color: var(--muted); font-size: 10px; }

/* 面板与网格 */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.dashboard-grid.lower { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head.mini { margin-bottom: 8px; }
.panel-head h2 { margin-top: 3px; font-size: 17px; font-weight: 630; letter-spacing: -0.025em; }
.panel-head h3 { font-size: 13px; }
.panel-eyebrow { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.13em; }
.panel-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); color: var(--ink-soft); }
.panel-divider { height: 1px; margin: 16px 0 14px; background: var(--line); }
.insight-strip { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid rgba(221, 162, 59, 0.28); border-radius: 14px; background: linear-gradient(100deg, rgba(248, 235, 211, 0.65), rgba(255, 253, 247, 0.7)); }
.insight-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.insight-strip > div { flex: 1; }
.insight-strip strong { font-size: 11.5px; }
.insight-strip p { margin-top: 2px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }

/* 图表 */
.trend-chart { width: 100%; }
.trend-chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid-line { stroke: rgba(18, 49, 44, 0.08); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-grid-line.is-base { stroke: rgba(18, 49, 44, 0.18); stroke-dasharray: none; }
.chart-axis-label { fill: var(--muted); font-size: 9px; font-family: var(--font-sans); }
.chart-dot .dot-core { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.chart-dot:hover .dot-core { fill: var(--accent); stroke: var(--accent-ink); }
.chart-caption { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.legend-dot { width: 14px; height: 3px; border-radius: 99px; background: var(--brand); }
.chart-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; font-size: 11.5px; }
.chart-empty.compact { min-height: 140px; }
.chart-empty .icon { color: rgba(12, 92, 80, 0.4); }
.chart-empty span { max-width: 240px; color: #a6b0ac; font-size: 10px; }
.distribution-chart { display: grid; gap: 9px; }
.distribution-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 9px; }
.distribution-label { color: var(--ink-soft); font-size: 10.5px; }
.distribution-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(18, 49, 44, 0.06); }
.distribution-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(12, 92, 80, 0.65), var(--brand)); transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.distribution-row:nth-child(5) .distribution-track span { background: linear-gradient(90deg, #d8a04a, var(--accent)); }
.distribution-row strong { font-family: var(--font-serif); font-size: 16px; font-weight: 500; text-align: right; }
.class-avg-list { display: grid; gap: 8px; }
.class-avg-row { display: flex; align-items: center; gap: 9px; }
.class-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.class-avg-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.class-avg-name strong { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-avg-name small { color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.class-avg-value { font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.task-progress-list { display: grid; gap: 15px; }
.task-progress-item { display: grid; gap: 6px; }
.task-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-progress-top > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.task-progress-top strong { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-type { flex: none; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-soft); font-size: 8.5px; font-weight: 650; }
.task-progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.recent-list { display: flex; flex-direction: column; }
.recent-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 40px auto 16px; align-items: center; gap: 8px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: inherit; }
.recent-row:first-child { border-top: 0; }
.recent-row:hover { background: rgba(12, 92, 80, 0.035); }
.recent-person { min-width: 0; }
.recent-person strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-person small { display: block; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-score { font-family: var(--font-serif); font-size: 19px; font-weight: 500; text-align: right; }
.recent-time { color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
.recent-row > .icon { color: var(--muted); }
@media (max-width: 1380px) {
  .recent-time { display: none; }
  .recent-row { grid-template-columns: 28px minmax(0, 1fr) auto 40px 16px; }
}

/* 任务卡片 */
.assignment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.assignment-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; animation: riseIn 400ms var(--card-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) both; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.assignment-card:hover { transform: translateY(-3px); border-color: rgba(12, 92, 80, 0.22); box-shadow: var(--shadow-soft); }
.assignment-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); opacity: 0.8; }
.assignment-card.is-free::before { background: var(--accent); }
.assignment-card.is-free { background: linear-gradient(155deg, #fffdf7 55%, rgba(248, 235, 211, 0.45)); }
.assignment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.assignment-card h3 { margin-top: 13px; font-size: 17px; font-weight: 630; letter-spacing: -0.025em; }
.assignment-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; min-height: 40px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.6; }
.assignment-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.assignment-meta span { display: flex; align-items: center; gap: 5px; }
.assignment-meta .is-overdue { color: var(--coral); }
.assignment-progress { margin-top: auto; padding-top: 15px; }
.assignment-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.assignment-progress-head strong { color: var(--ink); font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.assignment-progress-head em { color: var(--muted); font-family: var(--font-sans); font-size: 10px; font-style: normal; }
.assignment-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.assignment-avg { display: flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 9.5px; }
.assignment-avg strong { color: var(--ink); font-family: var(--font-serif); font-size: 21px; font-weight: 500; }
.card-actions { display: flex; align-items: center; gap: 2px; }
.card-actions .mini-action { font-size: 10.5px; }

/* 测评表单 */
.form-section { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); display: flex; flex-direction: column; gap: 15px; }
.form-section-title { display: flex; gap: 11px; align-items: flex-start; }
.form-section-title > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--font-serif); font-size: 10px; flex: none; }
.form-section-title h3 { font-size: 14px; }
.form-section-title p { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.type-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-choice { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.type-choice.is-checked { border-color: var(--brand); background: var(--brand-pale); }
.type-choice.is-disabled { cursor: not-allowed; opacity: 0.7; }
.type-choice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-pale); color: var(--brand); flex: none; }
.type-choice-icon.free { background: var(--accent-soft); color: var(--accent-ink); }
.type-choice > span:nth-of-type(2) { flex: 1; }
.type-choice strong { display: block; font-size: 12.5px; }
.type-choice small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.4; margin-top: 1px; }
.type-choice-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line-strong); border-radius: 50%; color: transparent; flex: none; }
.type-choice.is-checked .type-choice-check { border-color: var(--brand); background: var(--brand); color: #fff; }
.class-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.class-check { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.class-check:has(input:checked) { border-color: var(--brand); background: var(--brand-pale); }
.class-check input { accent-color: var(--brand); }
.class-check span { flex: 1; font-size: 11px; }
.class-check small { color: var(--muted); font-size: 9px; }
.reading-input { min-height: 140px; line-height: 1.85; font-family: var(--font-serif); font-size: 16px; }
.preview-speak { align-self: flex-start; margin-top: 2px; }
.form-delete-row { display: flex; align-items: center; gap: 12px; padding: 2px 4px 6px; }
.form-delete-row span { color: var(--muted); font-size: 10px; }

/* 表格 */
.table-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-toolbar-right { display: flex; align-items: center; gap: 13px; }
.table-toolbar-right .text-btn { font-size: 11px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 9.5px; font-weight: 650; text-align: left; white-space: nowrap; letter-spacing: 0.03em; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(18, 49, 44, 0.07); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(12, 92, 80, 0.028); }
.data-table .align-right { text-align: right; }
.table-person { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.table-person strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.table-person small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.table-person .mono { font-size: 10px; color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 1px; justify-content: flex-end; }
.clickable-row { cursor: pointer; }
.task-cell { display: flex; align-items: center; gap: 7px; min-width: 160px; }
.task-cell > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; font-size: 11px; }
.status-stack { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.score-table .score-pill { font-size: 12px; }
.score-table-summary { color: var(--muted); font-size: 11.5px; }
.score-table-summary strong { color: var(--ink); font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin-right: 3px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.class-text { color: var(--ink-soft); font-size: 11px; }
.tw-muted { color: var(--muted); }

/* 名单 */
.roster-summary-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.roster-summary { display: flex; align-items: baseline; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.roster-big-number { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.class-pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.class-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 10.5px; font-weight: 550; }
.class-pill span { color: var(--muted); font-size: 9px; }
.class-pill:hover { border-color: var(--line-strong); }
.class-pill.is-active { border-color: var(--brand); background: var(--brand-pale); color: var(--brand); }
.roster-summary-row > .text-btn { margin-left: auto; font-size: 10.5px; }

/* 导入 / 班级 */
.import-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
.import-side { display: flex; flex-direction: column; gap: 15px; }
.template-download { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.template-download > span { color: var(--brand); margin-top: 1px; }
.template-download > div { flex: 1; }
.template-download strong { display: block; font-size: 11.5px; }
.template-download p { color: var(--muted); font-size: 10px; line-height: 1.4; }
.template-download .text-btn { font-size: 10px; }
.import-note { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.import-main { min-width: 0; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 158px; padding: 20px; border: 1.5px dashed var(--line-strong); border-radius: 13px; background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--brand); background: var(--brand-pale); }
.drop-zone.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-pale); }
.drop-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.drop-zone h4 { font-size: 13px; }
.drop-zone p { color: var(--muted); font-size: 10px; }
.file-pill { margin-top: 6px; padding: 4px 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 9.5px; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: var(--muted); font-size: 9.5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.import-textarea { font-size: 12px; min-height: 100px; }
.import-result { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.import-result-head { display: flex; align-items: flex-start; gap: 9px; color: var(--brand); }
.import-result-head strong { display: block; color: var(--ink); font-size: 12px; }
.import-result-head p { color: var(--muted); font-size: 10px; margin-top: 1px; }
.import-student-preview { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.import-student-preview span { padding: 4px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; }
.import-student-preview small { margin-left: 4px; color: var(--muted); font-size: 8.5px; }
.import-errors { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); }
.import-errors p { color: var(--danger); font-size: 10px; line-height: 1.5; }
.import-result .btn { margin-top: 12px; }
.class-manage-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.class-manage-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.class-manage-row:first-child { border-top: 0; }
.class-manage-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-pale); color: var(--brand); }
.class-manage-copy { flex: 1; min-width: 0; }
.class-manage-copy strong { display: block; font-size: 12px; }
.class-manage-copy span { color: var(--muted); font-size: 10px; }
.class-add-box { margin-top: 18px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 13px; }
.class-add-box h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.class-add-box .btn { margin-top: 12px; }

/* 详情 */
.detail-modal .modal-body { padding: 20px 24px 26px; background: var(--bg); }
.detail-demo-banner { display: none; }
.detail-demo-banner.show { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid rgba(221, 162, 59, 0.35); border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; line-height: 1.5; }
.detail-demo-banner.show div { display: flex; flex-direction: column; gap: 1px; }
.detail-demo-banner.show span { color: #8a6b36; font-size: 10.5px; }
.detail-hero { display: flex; align-items: center; gap: 25px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-score { flex: none; }
.detail-metrics { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-metric { display: flex; flex-direction: column; gap: 1px; padding-left: 13px; border-left: 2px solid var(--line); }
.detail-metric span { color: var(--muted); font-size: 10px; }
.detail-metric strong { font-family: var(--font-serif); font-size: 25px; font-weight: 500; line-height: 1.15; }
.detail-metric small { color: var(--muted); font-size: 9px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; margin-top: 14px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail-section { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.detail-section h3 { font-size: 14px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.audio-player { width: 100%; height: 38px; }
.transcript-text { color: var(--ink); font-family: var(--font-serif); font-size: 16px; line-height: 1.85; }
.word-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.word-chip { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 7px; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.word-chip.is-great { background: var(--brand-pale); color: var(--brand); }
.word-chip.is-mid { background: var(--accent-soft); color: var(--accent-ink); }
.word-chip.is-low { background: var(--danger-soft); color: var(--danger); }
.word-chip.is-missing { background: rgba(18, 49, 44, 0.06); color: var(--muted); text-decoration: line-through; }
.word-chip small { font-family: var(--font-sans); font-size: 7.5px; text-decoration: none; }
.word-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; color: var(--muted); font-size: 9px; }
.word-legend span { padding: 2px 6px; border-radius: 4px; }
.word-legend .is-great { background: var(--brand-pale); color: var(--brand); }
.word-legend .is-mid { background: var(--accent-soft); color: var(--accent-ink); }
.word-legend .is-low { background: var(--danger-soft); color: var(--danger); }
.word-legend .is-missing { background: rgba(18, 49, 44, 0.06); }
.grammar-list { display: flex; flex-direction: column; gap: 8px; }
.grammar-item { padding: 10px 12px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface-2); }
.grammar-item-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.grammar-item-head code { padding: 1px 5px; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.grammar-item p { margin-top: 3px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.5; }
.grammar-fix { margin-top: 5px; color: var(--brand); font-size: 10.5px; }
.grammar-fix span { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--brand-pale); }
.grammar-readonly { display: flex; flex-direction: column; gap: 14px; }
.grammar-readonly-head { display: flex; align-items: flex-start; gap: 9px; color: var(--brand); }
.grammar-readonly-head > .icon { margin-top: 1px; flex: none; }
.grammar-readonly-head strong { display: block; color: var(--ink); font-size: 12px; }
.grammar-readonly-head p { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.grammar-readonly-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.grammar-readonly-facts > div { padding: 10px 11px; border-radius: 9px; background: var(--surface-2); }
.grammar-readonly-facts span { display: block; color: var(--muted); font-size: 9px; }
.grammar-readonly-facts b { display: inline-block; margin-top: 2px; font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.1; }
.grammar-readonly-facts small { margin-left: 3px; color: var(--muted); font-size: 8px; }
.grammar-empty { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 10px; background: var(--brand-pale); color: var(--brand); }
.grammar-empty strong { display: block; font-size: 11.5px; }
.grammar-empty p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.fluency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fluency-grid > div { padding: 10px; border-radius: 9px; background: var(--surface-2); }
.fluency-grid span { display: block; color: var(--muted); font-size: 9.5px; }
.fluency-grid strong { display: block; margin-top: 2px; font-family: var(--font-serif); font-size: 21px; font-weight: 500; }
.fluency-grid strong small { font-family: var(--font-sans); font-size: 9px; color: var(--muted); }
.feedback-panel label { margin: 11px 0 5px; }
.feedback-panel textarea { min-height: 130px; font-size: 12px; }
.feedback-meta { margin-top: 10px; color: var(--muted); font-size: 9px; text-align: center; }
.meta-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.meta-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 10.5px; }
.meta-list dt { color: var(--muted); flex: none; }
.meta-list dd { margin: 0; text-align: right; color: var(--ink-soft); word-break: break-all; }
.detail-side > .btn-danger-ghost { margin-top: 0; }

/* 设置 */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.settings-panel { padding: 22px; }
.settings-panel .panel-head { margin-bottom: 16px; }
.service-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 10px; font-weight: 650; }
.service-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.service-status.is-ok { background: var(--brand-pale); color: var(--brand); }
.service-status.is-bad { background: var(--danger-soft); color: var(--danger); }
.service-status.is-unknown { background: var(--surface-3); color: var(--ink-soft); }
.engine-state { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.engine-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--brand); color: #fff8e9; flex: none; }
.engine-state-copy { flex: 1; min-width: 0; }
.engine-state-copy strong { display: block; font-size: 13px; }
.engine-state-copy p { margin-top: 2px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.engine-state-copy > span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.engine-state .btn { flex: none; }
.config-list { display: flex; flex-direction: column; gap: 0; margin-top: 15px; }
.config-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.config-list > div:last-child { border-bottom: 0; }
.config-list dt { color: var(--muted); }
.config-list dd { margin: 0; text-align: right; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; word-break: break-all; }
.dot-ok, .dot-bad { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--brand); }
.dot-bad { background: var(--danger); }
.activation-guide { margin-top: 16px; padding: 15px; border: 1px solid rgba(221, 162, 59, 0.28); border-radius: 12px; background: #fdf8ec; }
.activation-guide h3 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.activation-guide ol { margin: 9px 0 0 17px; display: flex; flex-direction: column; gap: 5px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.55; }
.activation-guide p { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.activation-guide .text-btn { margin-top: 10px; font-size: 10.5px; }
.guide-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.guide-links .text-btn { margin-top: 6px; }
.security-list { display: flex; flex-direction: column; gap: 14px; }
.security-item { display: flex; align-items: flex-start; gap: 10px; }
.security-item > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-3); color: var(--brand); flex: none; }
.security-item strong { display: block; font-size: 11.5px; }
.security-item p { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.config-hint { margin-top: 16px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 10px; line-height: 1.55; }
.config-hint code { padding: 1px 4px; border-radius: 3px; background: var(--surface); color: var(--brand); }
.data-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.data-summary > div { padding: 13px 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: var(--surface-2); }
.data-summary strong { display: block; font-family: var(--font-serif); font-size: 25px; font-weight: 500; }
.data-summary span { color: var(--muted); font-size: 9.5px; }
.sample-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 7px; background: var(--brand-pale); color: var(--brand); font-size: 10px; }
.danger-zone { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.danger-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.danger-action:last-child { border-bottom: 0; }
.danger-action strong { font-size: 11.5px; }
.danger-action p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.settings-copy { color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; }
.settings-panel .muted.small { display: block; margin-top: 12px; line-height: 1.6; }

/* 分数环 */
.score-ring { position: relative; width: var(--ring-size, 152px); height: var(--ring-size, 152px); flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.score-ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: rgba(18, 49, 44, 0.08); }
.ring-value { stroke: var(--ring-color, var(--brand)); stroke-linecap: round; transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.ring-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; }
.ring-copy strong { font-family: var(--font-serif); font-size: calc(var(--ring-size, 152px) * 0.31); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.ring-copy span { margin-top: 5px; color: var(--muted); font-size: calc(var(--ring-size, 152px) * 0.068); font-weight: 600; }
.ring-copy em { margin-top: 2px; color: var(--ink-soft); font-size: calc(var(--ring-size, 152px) * 0.06); font-style: normal; }
.score-bar-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-bar-row:last-child { border-bottom: 0; }
.score-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.score-bar-head > span { color: var(--ink-soft); font-size: 11px; font-weight: 550; }
.score-bar-head strong { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.score-bar-head strong small { font-family: var(--font-sans); font-size: 9px; color: var(--muted); margin-left: 2px; }
.score-bar-track { height: 5px; margin-top: 5px; border-radius: 99px; background: rgba(18, 49, 44, 0.07); overflow: hidden; }
.score-bar-track span { display: block; height: 100%; border-radius: inherit; transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1); }
.score-bar-sub { margin-top: 4px; color: var(--muted); font-size: 9.5px; }
.score-bar-hint { margin-top: 2px; color: var(--muted); font-size: 9.5px; }

@media (max-width: 1240px) {
  .assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-view { padding: 24px 26px 56px; }
  .teacher-topline { padding: 0 26px; }
}
@media (max-width: 1020px) {
  .teacher-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 264px; transform: translateX(-102%); transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 20px 0 50px -20px rgba(0,0,0,.4); }
  .teacher-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8, 24, 21, 0.4); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
  .teacher-shell.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: inline-grid; }
  .teacher-topline { min-height: 58px; }
  .dashboard-grid, .dashboard-grid.lower { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .detail-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .detail-side > .detail-section:first-child { grid-row: span 2; }
}
@media (max-width: 760px) {
  .teacher-topline { padding: 0 16px; }
  .topline-date { font-size: 9.5px; }
  .topline-user span, .topline-sep, .topline-user { display: none; }
  .topline-actions { gap: 4px; }
  .topline-actions .text-btn { font-size: 0; gap: 0; }
  .topline-actions .text-btn .icon { width: 17px; height: 17px; }
  .teacher-view { padding: 20px 16px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .heading-actions { justify-content: flex-start; width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 29px; }
  .assignment-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 7px; }
  .filter-tabs { overflow-x: auto; max-width: 100%; }
  .filter-bar .search-box { min-width: 0; flex: 1; }
  .panel { padding: 16px; }
  .detail-hero { flex-direction: column; align-items: stretch; gap: 15px; }
  .detail-metrics { grid-template-columns: 1fr 1fr; }
  .detail-side { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .class-check-grid { grid-template-columns: 1fr 1fr; }
  .type-choice-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 10px; align-items: end; }
  .modal { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .modal-head { padding: 18px 17px 13px; }
  .modal-body { padding: 17px; }
  .modal-footer { padding: 13px 17px; }
  .import-layout { grid-template-columns: 1fr; }
  .import-side { order: 2; }
  .roster-summary-row { align-items: flex-start; }
  .settings-panel { padding: 17px; }
  .engine-state { flex-wrap: wrap; }
  .engine-state .btn { width: 100%; }
  .detail-metrics { gap: 10px; }
  .fluency-grid { grid-template-columns: 1fr 1fr; }
  .data-summary { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 26px; }
  .stat-note { font-size: 9px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-toolbar-right { width: 100%; justify-content: space-between; }
  .assignment-card { min-height: 260px; }
  .detail-metric strong { font-size: 21px; }
}

/* =========================================================
   学生端
   ========================================================= */
.student-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(12, 92, 80, 0.09), transparent 50%),
    radial-gradient(ellipse at 90% 35%, rgba(221, 162, 59, 0.08), transparent 35%);
}
.student-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: 13px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.84);
  backdrop-filter: blur(18px);
}
.student-nav .brand-link { flex: none; }
.student-tabs { display: flex; align-items: center; gap: 3px; }
.student-tabs a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; transition: background var(--transition), color var(--transition); }
.student-tabs a:hover { color: var(--ink); }
.student-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.student-nav-user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.student-class-chip { padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 9.5px; white-space: nowrap; }
.student-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.student-view { width: min(1180px, calc(100% - 48px)); margin: 0 auto; flex: 1; padding: 34px 0 66px; }
.student-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}
.student-footer span { display: inline-flex; align-items: center; gap: 4px; }

/* 学生首页 */
.student-dashboard { animation: riseIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.student-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.student-welcome h1 { margin-top: 10px; font-size: clamp(34px, 4.4vw, 54px); font-weight: 620; letter-spacing: -0.055em; }
.student-welcome .welcome-copy p { margin-top: 8px; color: var(--ink-soft); font-size: 13.5px; }
.welcome-stats { display: flex; align-items: stretch; gap: 0; flex: none; padding-bottom: 4px; }
.welcome-stat { min-width: 92px; padding: 0 20px; border-left: 1px solid var(--line); }
.welcome-stat:first-child { border-left: 0; }
.welcome-stat span { display: block; color: var(--muted); font-size: 9.5px; }
.welcome-stat strong { display: inline-block; margin-top: 2px; font-family: var(--font-serif); font-size: 33px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.welcome-stat small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.welcome-stat.highlight strong { color: var(--brand); }
.student-section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-kicker { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; }
.section-heading h2 { margin-top: 2px; font-size: 21px; font-weight: 630; letter-spacing: -0.03em; }
.section-count { color: var(--muted); font-size: 10.5px; }
.section-count.is-done { color: var(--brand); }
.student-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  animation: riseIn 480ms var(--card-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform var(--transition), box-shadow var(--transition);
}
.student-task-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.student-task-card.is-free::before { background: var(--accent); }
.student-task-card.is-free { background: linear-gradient(150deg, #fffdf7 54%, rgba(248, 235, 211, 0.4)); }
.student-task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.student-task-card.is-completed { opacity: 0.92; }
.student-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-done-mark { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 10px; font-weight: 600; }
.student-task-main { margin-top: 14px; }
.student-task-main h3 { font-size: 19px; font-weight: 630; letter-spacing: -0.025em; }
.student-task-main p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.6; min-height: 37px; }
.student-task-meta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: auto; padding-top: 15px; color: var(--muted); font-size: 10px; }
.student-task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.student-task-score { display: flex; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 15px; }
.student-task-score > span { color: var(--muted); font-size: 9.5px; margin-right: 2px; }
.student-task-score strong { font-family: var(--font-serif); font-size: 29px; font-weight: 500; line-height: 1; }
.student-task-score small { color: var(--muted); font-size: 9px; }
.student-task-score em { margin-left: 6px; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 8px; font-style: normal; }
.task-feedback-line { display: flex; align-items: flex-start; gap: 5px; margin-top: 9px; padding: 7px 9px; border-radius: 7px; background: var(--brand-pale); color: var(--brand); font-size: 10px; line-height: 1.45; }
.task-feedback-line .icon { margin-top: 1px; flex: none; }
.student-task-actions { margin-top: 13px; }
.student-lower-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 14px; }
.panel.student-recent { padding: 20px; }
.recent-score-list { display: flex; flex-direction: column; }
.recent-score-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 16px; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px 3px; text-align: left; color: inherit; }
.recent-score-row:first-child { border-top: 0; }
.recent-score-row:hover { background: rgba(12, 92, 80, 0.03); }
.recent-score-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-pale); color: var(--brand); }
.recent-score-copy { min-width: 0; }
.recent-score-copy strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-score-copy small { display: block; color: var(--muted); font-size: 9px; }
.recent-score-row > .icon { color: var(--muted); }
.student-empty-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; gap: 7px; color: var(--muted); text-align: center; font-size: 11px; }
.student-empty-mini .icon { color: rgba(12, 92, 80, 0.45); }
.teacher-note-card { padding: 20px; }
.teacher-note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.teacher-note-avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.teacher-note-card h2 { margin-top: 2px; font-size: 16px; }
.teacher-note-card blockquote { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-2); font-family: var(--font-serif); font-size: 14px; line-height: 1.75; color: var(--ink); }
.teacher-note-meta { margin-top: 9px; color: var(--muted); font-size: 9.5px; }
.teacher-note-card .text-btn { margin-top: 13px; font-size: 10.5px; }
.practice-note { padding: 4px 3px; }
.practice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); margin-bottom: 14px; }
.practice-note h2 { margin-top: 5px; font-family: var(--font-serif); font-size: 23px; font-weight: 500; letter-spacing: -0.03em; }
.practice-note p { margin-top: 8px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; }
.quote-line { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 10.5px; }

/* 测评页 */
.task-page { animation: riseIn 450ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.task-page-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.task-steps { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9.5px; font-weight: 550; }
.task-steps span { display: inline-flex; align-items: center; gap: 5px; }
.task-steps span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(18, 49, 44, 0.18); }
.task-steps span.is-active { color: var(--brand); }
.task-steps span.is-active::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(12, 92, 80, 0.1); }
.task-steps i { width: 18px; height: 1px; background: var(--line-strong); }
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; align-items: start; }
.task-brief { min-width: 0; }
.task-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.task-brief h1 { font-size: clamp(29px, 3.4vw, 42px); font-weight: 630; letter-spacing: -0.05em; line-height: 1.14; }
.task-instructions { margin-top: 11px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; max-width: 650px; }
.topic-card { margin-top: 23px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(155deg, #fffdf7 62%, rgba(248, 235, 211, 0.5)); box-shadow: var(--shadow-sm); }
.topic-eyebrow { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-size: 8.5px; font-weight: 700; letter-spacing: 0.13em; }
.topic-card h2 { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(29px, 3.4vw, 39px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.topic-prompt { margin-top: 12px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.guiding-questions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.guiding-questions > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.guiding-questions > div { display: flex; align-items: flex-start; gap: 8px; }
.guiding-questions b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--ink-soft); font-size: 8.5px; flex: none; margin-top: 1px; }
.guiding-questions p { color: var(--ink); font-size: 12px; line-height: 1.55; }
.topic-meta { display: flex; gap: 15px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.topic-meta span { display: inline-flex; align-items: center; gap: 5px; }
.reading-card { margin-top: 23px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.reading-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.reading-label { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 8.5px; font-weight: 700; letter-spacing: 0.13em; }
.reading-head .text-btn { font-size: 11px; }
.reading-text { margin-top: 19px; font-family: var(--font-serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.7; letter-spacing: -0.015em; color: var(--ink); }
.reading-meta { display: flex; gap: 15px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.task-tip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 17px; }
.task-tip { display: flex; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 247, 0.6); }
.task-tip > span { color: var(--brand); margin-top: 1px; }
.task-tip strong { display: block; font-size: 10.5px; }
.task-tip p { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.record-column { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.record-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 20px; box-shadow: var(--shadow-soft); }
.record-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9.5px; letter-spacing: 0.03em; }
.record-card-head span:first-child { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-weight: 600; }
.record-orb-wrap { position: relative; display: grid; place-items: center; height: 122px; margin: 10px 0 4px; }
.record-orb { position: relative; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--brand); color: #fffaf0; box-shadow: 0 16px 32px -18px rgba(12, 92, 80, 0.9); transition: transform var(--transition), background var(--transition); }
.record-ring { position: absolute; border: 1px solid rgba(12, 92, 80, 0.11); border-radius: 50%; }
.ring-one { width: 104px; height: 104px; }
.ring-two { width: 144px; height: 144px; opacity: 0.6; }
.record-card.is-recording .record-orb { background: var(--coral); animation: heartbeat 1.25s ease-in-out infinite; }
.record-card.is-recording .ring-one { animation: recRing 1.8s ease-out infinite; border-color: rgba(201, 101, 80, 0.3); }
.record-card.is-recording .ring-two { animation: recRing 1.8s 0.45s ease-out infinite; border-color: rgba(201, 101, 80, 0.16); }
.record-card.is-ready .record-orb { background: var(--brand); }
.record-card.is-ready .ring-one { border-color: rgba(12, 92, 80, 0.25); width: 96px; height: 96px; }
.record-card.is-ready .ring-two { display: none; }
.record-status { text-align: center; min-height: 66px; }
.record-status h3 { font-size: 18px; letter-spacing: -0.02em; }
.record-status p { margin: 5px auto 0; max-width: 290px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.record-canvas { width: 100%; height: 78px; margin: 8px 0 0; border-radius: 8px; }
.record-timer { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 3px; font-family: var(--font-serif); font-variant-numeric: tabular-nums; }
.record-timer span { font-size: 27px; font-weight: 500; letter-spacing: -0.02em; }
.record-timer small { color: var(--muted); font-family: var(--font-sans); font-size: 10px; }
.record-progress { height: 4px; margin: 7px 2px 12px; border-radius: 99px; background: rgba(18, 49, 44, 0.07); overflow: hidden; }
.record-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 180ms linear; }
.record-card.is-recording .record-progress span { background: linear-gradient(90deg, #c27a4b, var(--coral)); }
.record-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.record-actions .btn { min-height: 46px; font-size: 13px; }
.record-actions .text-btn { font-size: 10.5px; color: var(--muted); }
.record-actions .text-btn:hover { color: var(--brand); }
.preview-audio { width: 100%; height: 36px; margin: 0 0 11px; }
.record-error { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 11px; padding: 10px; border: 1px solid rgba(181, 73, 58, 0.22); border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 10.5px; line-height: 1.5; }
.record-error p { color: #8d594f; margin-top: 2px; font-size: 9.5px; }
.record-upload { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 9.5px; }
.record-upload label { font-size: 9.5px; cursor: pointer; }
.record-upload label:hover { color: var(--brand); }
.record-privacy { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8.5px; }
.record-aside-note { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 253, 247, 0.58); }
.record-aside-note strong { display: flex; align-items: center; gap: 5px; color: var(--brand); font-size: 10.5px; }
.record-aside-note p { margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.record-card.is-processing .record-orb { background: var(--ink-soft); animation: spinPulse 1.2s infinite; }
.record-card.is-preparing .record-orb { background: var(--accent); }

/* 测评页 · 更简洁的任务视图 */
.assessment-page .task-page-top { margin-bottom: 18px; }
.assessment-page .task-steps { gap: 7px; font-size: 10.5px; }
.assessment-page .task-steps span { gap: 7px; color: var(--muted); }
.assessment-page .task-steps span::before { display: none; }
.assessment-page .task-steps b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.assessment-page .task-steps span.is-active { color: var(--brand); font-weight: 650; }
.assessment-page .task-steps span.is-active b { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(12, 92, 80, 0.08); }
.assessment-page .task-steps span.is-done b { border-color: transparent; background: var(--brand-pale); color: var(--brand); }
.assessment-page .task-steps i { width: 24px; height: 1px; background: var(--line-strong); }
.assessment-header { margin-bottom: 20px; }
.assessment-header h1 {
  margin-top: 10px;
  max-width: 900px;
  font-size: clamp(28px, 3.1vw, 39px);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.16;
}
.assessment-lead { max-width: 700px; margin-top: 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.7; }
.task-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.task-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.62);
  color: var(--ink-soft);
  font-size: 10px;
}
.task-facts span.is-overdue { border-color: rgba(201, 101, 80, 0.22); background: var(--coral-soft); color: var(--coral); }
.assessment-page .task-layout { gap: 22px; }
.task-sheet {
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.task-sheet-free { background: linear-gradient(152deg, #fffdf7 64%, rgba(248, 235, 211, 0.42)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.sheet-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.task-sheet-free .sheet-kicker { color: var(--accent-ink); }
.sheet-chip { padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 9px; }
.sheet-action { margin: -5px -7px -5px 0; }
.task-sheet .reading-text { margin-top: 21px; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.72; }
.sheet-foot { display: flex; gap: 15px; margin-top: 19px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.topic-title { margin-top: 17px; font-family: var(--font-serif); font-size: clamp(28px, 3.1vw, 37px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.16; }
.topic-prompt { max-width: 680px; margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.task-guidance { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.task-guidance summary { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: 10.5px; font-weight: 650; cursor: pointer; list-style: none; }
.task-guidance summary::-webkit-details-marker { display: none; }
.task-guidance summary span { display: inline-flex; align-items: center; gap: 5px; }
.task-guidance summary small { margin-left: 1px; color: var(--muted); font-size: 9px; font-weight: 500; }
.task-guidance summary > .icon:last-child { margin-left: auto; color: var(--muted); transition: transform var(--transition); }
.task-guidance[open] summary > .icon:last-child { transform: rotate(180deg); }
.guidance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 12px; }
.guidance-list > div { display: flex; align-items: flex-start; gap: 7px; }
.guidance-list b { display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--surface-3); color: var(--ink-soft); font-size: 8px; flex: none; }
.guidance-list p { color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.task-footnote { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.task-footnote .icon { margin-top: 1px; flex: none; color: var(--brand); }
.assessment-page .record-card { padding: 18px; border-radius: 20px; }
.assessment-page .record-card-head { font-size: 9.5px; }
.record-state-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; }
.record-state-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(12, 92, 80, 0.08); }
.assessment-page .record-card.is-recording .record-state-label i { background: var(--coral); box-shadow: 0 0 0 4px rgba(201, 101, 80, 0.1); }
.record-limit { color: var(--muted); font-size: 9px; }
.assessment-page .record-orb-wrap { height: 106px; margin: 7px 0 0; }
.assessment-page .record-orb { width: 66px; height: 66px; }
.assessment-page .ring-one { width: 94px; height: 94px; }
.assessment-page .ring-two { width: 126px; height: 126px; }
.assessment-page .record-card.is-ready .ring-one { width: 88px; height: 88px; }
.assessment-page .record-status { min-height: 58px; }
.assessment-page .record-status h3 { font-size: 17px; }
.assessment-page .record-status p { margin-top: 4px; font-size: 10px; }
.assessment-page .record-canvas { height: 64px; margin-top: 2px; }
.assessment-page .record-timer { margin-top: 0; }
.assessment-page .record-timer span { font-size: 25px; }
.assessment-page .record-actions { gap: 7px; }
.assessment-page .record-actions .btn { min-height: 44px; }
.assessment-page .preview-audio { margin-top: 2px; }
.record-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8.5px; }
.record-upload-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); font-size: 9.5px; cursor: pointer; }
.record-upload-btn:hover { color: var(--brand); }
.record-upload-btn input { display: none; }
.record-hint { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 247, 0.55); color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.record-hint > span { color: var(--brand); margin-top: 1px; }
.record-hint strong { color: var(--ink-soft); }
.task-action-pair { display: flex; align-items: center; gap: 7px; }
.task-action-pair .btn { min-height: 39px; padding: 0 12px; font-size: 11.5px; }
.task-action-pair .btn:first-child { flex: 1; }
.result-action-group { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.result-footer-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 评测进度遮罩 */
.eval-overlay { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 20px; background: rgba(9, 27, 23, 0.72); backdrop-filter: blur(10px); animation: fadeIn 200ms ease both; }
.eval-card { width: min(480px, 100%); padding: 35px 30px 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; background: #fffdf7; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); text-align: center; }
.eval-orbit { position: relative; width: 104px; height: 104px; margin: 0 auto 20px; display: grid; place-items: center; }
.eval-orbit > span { position: absolute; border: 1px solid rgba(12, 92, 80, 0.17); border-radius: 50%; }
.eval-orbit > span:nth-child(1) { inset: 0; animation: spin 7s linear infinite; border-top-color: var(--accent); }
.eval-orbit > span:nth-child(2) { inset: 12px; animation: spin 4.5s linear infinite reverse; border-right-color: var(--brand); }
.eval-orbit > span:nth-child(3) { inset: 25px; border-color: rgba(12,92,80,.09); }
.eval-center { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff8e9; }
.eval-eyebrow { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; }
.eval-card h2 { margin-top: 8px; font-size: 24px; letter-spacing: -0.035em; }
.eval-card > p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.eval-steps { display: flex; align-items: center; gap: 4px; margin: 22px 0 15px; }
.eval-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.eval-step span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-size: 9.5px; transition: all var(--transition); }
.eval-step.is-active { color: var(--brand); font-weight: 600; }
.eval-step.is-active span { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(12, 92, 80, 0.09); }
.eval-step.is-done span { border-color: var(--brand); background: var(--brand-pale); color: var(--brand); }
.eval-progress { height: 4px; border-radius: 99px; background: rgba(18,49,44,.07); overflow: hidden; }
.eval-progress span { display: block; width: 33%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); animation: evalBar 3s ease-in-out infinite; }
.eval-note-small { color: var(--muted) !important; font-size: 9px !important; margin-top: 12px !important; }

/* 结果页 */
.result-page { animation: riseIn 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.result-date { color: var(--muted); font-size: 10px; }
.result-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.result-title-row h1 { margin-top: 8px; font-size: clamp(29px, 3.8vw, 43px); font-weight: 630; letter-spacing: -0.05em; }
.result-title-row > div:first-child > p { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.result-actions { flex: none; }
.demo-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(221, 162, 59, 0.35); border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.demo-banner strong { display: block; font-size: 12px; }
.demo-banner p { margin-top: 2px; color: #81642f; font-size: 10.5px; line-height: 1.55; }
.result-hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.result-score-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 24px; }
.result-score-main { display: flex; align-items: center; gap: 27px; }
.result-score-copy { flex: 1; min-width: 0; }
.result-score-copy h2 { margin-top: 3px; font-size: 24px; letter-spacing: -0.035em; }
.result-score-copy > p { margin-top: 5px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.6; }
.teacher-score-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 8px; border-radius: 99px; background: var(--brand-pale); color: var(--brand); font-size: 9.5px; }
.result-audio { margin-top: 13px; }
.result-audio > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; margin-bottom: 4px; }
.result-audio audio { width: 100%; height: 32px; }
.result-audio small { color: var(--muted); font-size: 9.5px; }
.result-score-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.result-side { display: flex; flex-direction: column; gap: 12px; }
.teacher-feedback-card { padding: 19px; }
.feedback-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.feedback-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }
.teacher-feedback-card h2 { margin-top: 1px; font-size: 14px; }
.teacher-feedback-card blockquote { margin: 0; padding: 12px 13px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface-2); font-family: var(--font-serif); font-size: 13px; line-height: 1.7; color: var(--ink); }
.teacher-feedback-card > p { color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.feedback-date { margin-top: 7px; color: var(--muted); font-size: 9px !important; }
.result-stats-panel { padding: 18px; }
.result-stats-panel h3 { font-size: 13px; }
.result-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.result-mini-stats > div { text-align: center; padding: 9px 4px; border-radius: 8px; background: var(--surface-2); }
.result-mini-stats strong { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.result-mini-stats span { color: var(--muted); font-size: 8.5px; }
.pace-line { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.next-step-card { display: flex; gap: 10px; padding: 17px; background: linear-gradient(145deg, var(--brand-pale), rgba(255,253,247,.8)); border-color: rgba(12, 92, 80, 0.16); }
.next-step-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff8e9; flex: none; }
.next-step-card h3 { margin-top: 2px; font-size: 12.5px; }
.next-step-card p { margin-top: 4px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.result-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.result-section { padding: 21px; }
.result-section:nth-child(1) { grid-column: span 2; }
.result-section:nth-child(4) { grid-column: span 2; }
.result-section .panel-head { margin-bottom: 12px; }
.result-section .panel-head h2 { font-size: 17px; }
.result-section .panel-head .score-pill { font-size: 14px; }
.result-section .word-chips { gap: 4px; }
.result-section .word-chip { font-size: 13px; padding: 4px 8px; }
.coach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.coach-card { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); transition: border-color var(--transition); }
.coach-card:hover { border-color: rgba(12,92,80,.25); }
.coach-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface); color: var(--brand); flex: none; }
.coach-card strong { display: block; font-size: 11px; }
.coach-card p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sample-answer-section { grid-column: span 2; }
.sample-answer-section details summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 600; list-style: none; }
.sample-answer-section details summary::-webkit-details-marker { display: none; }
.sample-answer-section details p { margin-top: 12px; color: var(--ink-soft); font-family: var(--font-serif); font-size: 14px; line-height: 1.8; }
.result-footer-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* 成绩列表 */
.history-page { animation: riseIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.history-head { max-width: 650px; margin-bottom: 24px; }
.history-head h1 { margin-top: 7px; font-size: clamp(31px, 4vw, 45px); font-weight: 630; letter-spacing: -0.05em; }
.history-head p { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.history-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.history-stats > div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.history-stats span { display: block; color: var(--muted); font-size: 9.5px; }
.history-stats strong { display: inline-block; margin-top: 2px; font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1.1; }
.history-stats small { margin-left: 3px; color: var(--muted); font-size: 9px; }
.history-list { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.history-row { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto 52px 16px; align-items: center; gap: 11px; width: 100%; padding: 13px 17px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: inherit; transition: background var(--transition); }
.history-row:first-child { border-top: 0; }
.history-row:hover { background: rgba(12, 92, 80, 0.03); }
.history-index { color: #b6bfbb; font-family: var(--font-serif); font-size: 12px; }
.history-type { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-pale); color: var(--brand); }
.history-copy { min-width: 0; }
.history-copy strong { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-copy small { display: block; color: var(--muted); font-size: 9px; }
.history-bars { display: flex; align-items: flex-end; gap: 8px; height: 34px; }
.history-bars span { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; }
.history-bars i { display: block; width: 5px; min-height: 3px; height: var(--h); border-radius: 99px; background: var(--brand); opacity: 0.75; }
.history-bars em { color: var(--muted); font-size: 7px; font-style: normal; white-space: nowrap; }
.history-row > .icon { color: var(--muted); }

@keyframes recRing { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes spinPulse { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes evalBar { 0% { width: 18%; margin-left: 0; } 50% { width: 55%; margin-left: 22%; } 100% { width: 20%; margin-left: 80%; } }

/* 登录与学生的响应式 */
@media (max-width: 1220px) {
  .landing-main { grid-template-columns: 1fr; gap: 44px; max-width: 1040px; }
  .hero { grid-template-columns: 1.2fr 0.8fr; }
  .auth-panel { max-width: 620px; justify-self: start; }
  .auth-body { padding: 26px 30px 30px; }
  .roster-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-footer { max-width: 1040px; }
}
@media (max-width: 1000px) {
  .task-layout { grid-template-columns: 1fr; }
  .record-column { position: static; max-width: 600px; }
  .result-hero-grid { grid-template-columns: 1fr; }
  .result-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .next-step-card { grid-column: span 2; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .landing-main { padding-top: 10px; }
  .student-welcome { flex-direction: column; align-items: flex-start; gap: 20px; }
  .welcome-stats { width: 100%; }
  .welcome-stat { flex: 1; min-width: 0; padding: 0 16px; }
  .student-lower-grid { grid-template-columns: 1fr; }
  .result-sections { grid-template-columns: 1fr; }
  .result-section:nth-child(1), .result-section:nth-child(4), .sample-answer-section { grid-column: span 1; }
  .result-side { grid-template-columns: 1fr; }
  .next-step-card { grid-column: auto; }
  .history-row { grid-template-columns: 24px 30px minmax(0, 1fr) 48px 16px; }
  .history-bars { display: none; }
}
@media (max-width: 760px) {
  .assessment-page .task-page-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .assessment-page .task-steps { width: 100%; gap: 4px; font-size: 9.5px; }
  .assessment-page .task-steps i { width: 12px; flex: 1; max-width: 26px; }
  .assessment-page .task-steps span { gap: 5px; }
  .assessment-page .task-steps b { width: 18px; height: 18px; font-size: 8px; }
  .assessment-header h1 { font-size: 27px; }
  .assessment-lead { font-size: 12px; }
  .task-facts { gap: 5px; }
  .task-facts span { font-size: 9px; padding: 4px 7px; }
  .task-sheet { padding: 18px; border-radius: 16px; }
  .task-sheet .reading-text { margin-top: 16px; font-size: 20px; }
  .topic-title { margin-top: 13px; font-size: 27px; }
  .topic-prompt { font-size: 12px; }
  .guidance-list { grid-template-columns: 1fr; gap: 6px; }
  .assessment-page .task-layout { gap: 18px; }
  .record-hint { margin-top: 0; }
  .result-action-group { justify-content: flex-start; width: 100%; }
  .result-action-group .btn { flex: 1; }
  .result-footer-right { width: 100%; }
  .result-footer-right .btn { flex: 1; }
  .task-action-pair { width: 100%; }
  .task-action-pair .btn { flex: 1; }
  .student-nav { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .student-tabs { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: 7px; margin-top: 0; }
  .student-tabs a { flex: 1; text-align: center; font-size: 11.5px; }
  .student-class-chip, .student-name { display: none; }
  .student-nav-user { gap: 4px; }
  .student-view { width: calc(100% - 30px); padding: 24px 0 50px; }
  .student-footer { width: calc(100% - 30px); flex-wrap: wrap; }
  .student-footer span:last-child { display: none; }
  .student-welcome { padding-top: 4px; }
  .welcome-stat { padding: 0 12px; }
  .welcome-stat strong { font-size: 28px; }
  .student-task-grid { grid-template-columns: 1fr; }
  .student-task-card { min-height: 220px; padding: 17px; }
  .task-page-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .task-steps { width: 100%; justify-content: flex-start; }
  .task-brief h1 { font-size: 29px; }
  .topic-card, .reading-card { padding: 19px; border-radius: 17px; }
  .topic-card h2 { font-size: 29px; }
  .reading-text { font-size: 21px; }
  .task-tip-row { grid-template-columns: 1fr; }
  .record-card { padding: 17px; }
  .record-orb-wrap { height: 108px; }
  .record-canvas { height: 64px; }
  .result-score-main { align-items: flex-start; flex-direction: column; gap: 14px; }
  .result-score-panel { padding: 18px; }
  .result-score-bars { grid-template-columns: 1fr; gap: 0; }
  .result-title-row { flex-direction: column; align-items: flex-start; }
  .result-actions { width: 100%; }
  .coach-grid { grid-template-columns: 1fr; }
  .result-footer-actions .btn { flex: 1; }
  .history-stats { gap: 6px; }
  .history-stats > div { padding: 12px; }
  .history-stats strong { font-size: 25px; }
  .history-row { padding: 12px 12px; grid-template-columns: 30px minmax(0, 1fr) 46px 14px; }
  .history-index { display: none; }
  .history-copy small { font-size: 8.5px; }
  .landing-nav { width: calc(100% - 32px); padding: 17px 0; }
  .landing-main { width: calc(100% - 32px); padding-bottom: 35px; }
  .nav-note { display: none; }
  .landing-footer { width: calc(100% - 32px); flex-wrap: wrap; font-size: 9px; }
  .landing-footer span:nth-child(2) { display: none; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-sub { font-size: 13.5px; margin-top: 16px; }
  .hero-features, .hero-quote { display: none; }
  .landing-main { gap: 26px; padding-top: 0; }
  .hero-copy { padding-top: 6px; }
  .auth-panel { max-width: 100%; border-radius: 20px; }
  .auth-body { padding: 20px 18px 22px; }
  .roster-grid { grid-template-columns: 1fr 1fr; max-height: 340px; }
  .student-tile { padding: 7px; }
  .login-intro h2 { font-size: 23px; }
  .class-options { max-height: 220px; }
  .landing-nav-right .nav-switch { font-size: 11.5px; padding: 8px 11px; }
  .toast-root { top: 12px; right: 12px; width: calc(100vw - 24px); }
}
@media (max-width: 520px) {
  .task-action-pair { flex-direction: column; }
  .task-action-pair .btn { width: 100%; }
  .result-footer-right { flex-direction: column; }
  .result-footer-right .btn { width: 100%; }
  .assessment-page .task-steps span { font-size: 9px; }
  .assessment-page .task-steps b { width: 17px; height: 17px; font-size: 7.5px; }
  .record-foot { flex-wrap: wrap; }
  .hero h1 { font-size: 38px; }
  .eyebrow { font-size: 9.5px; }
  .welcome-stat strong { font-size: 25px; }
  .welcome-stat small { font-size: 8px; }
  .roster-grid { grid-template-columns: 1fr; }
  .student-tile-copy strong { font-size: 12px; }
  .record-actions .btn { min-height: 44px; }
  .result-score-copy h2 { font-size: 21px; }
  .result-score-bars { margin-top: 14px; }
  .result-section { padding: 16px; }
  .history-stats > div { padding: 9px; }
  .history-stats strong { font-size: 22px; }
  .history-stats span { font-size: 8.5px; }
  .history-row { gap: 8px; }
  .history-type { display: none; }
  .history-row { grid-template-columns: minmax(0, 1fr) 44px 14px; }
  .result-footer-actions { flex-direction: column; }
  .result-footer-actions .btn { width: 100%; }
  .modal-footer .btn { flex: 1; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
