:root {
  --paper: #f3f5f3;
  --surface: #fff;
  --ink: #26312c;
  --muted: #738078;
  --line: #dce4df;
  --green: #315c49;
  --green-soft: #e5eee8;
  --gold-soft: #f5edcf;
  --red-soft: #f8e7df;
  --shadow: 0 16px 42px rgba(40, 61, 50, .08);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "STHeiti", "Heiti SC", "SimHei", sans-serif; line-height: 1.65; }
button, input { font: inherit; }
.shell { width: min(940px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(220, 228, 223, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.topbar-inner { min-height: 66px; display: flex; align-items: center; gap: 11px; overflow: hidden; }
.brand-mark { display: block; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(49, 92, 73, .13); }
.brand-mark img { width: 40px; height: 40px; max-width: 40px; max-height: 40px; display: block; object-fit: cover; }
.brand { flex: 0 1 auto; min-width: 0; overflow: hidden; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.student-name { margin-left: auto; color: var(--muted); font-size: 13px; }
.link-button { flex: 0 0 auto; padding: 6px 10px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-weight: 700; white-space: nowrap; }
main { padding: 42px 0 72px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); line-height: 1.18; }
.intro { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.card { margin-top: 20px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.login-card { width: min(520px, 100%); margin-inline: auto; }
.login-card h2, .section-head h2 { margin: 0; font-size: 21px; }
.field { margin-top: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.control { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfd9d3; border-radius: 10px; color: var(--ink); background: #fff; }
.control:focus { outline: 3px solid rgba(49, 92, 73, .12); border-color: var(--green); }
.primary { width: 100%; min-height: 49px; margin-top: 18px; border: 0; border-radius: 10px; color: #fff; background: var(--green); cursor: pointer; font-weight: 800; }
.primary:disabled { opacity: .6; cursor: wait; }
.error { margin: 12px 0 0; color: #a74437; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 10px; margin-top: 22px; }
.stat { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.stat strong { display: block; color: var(--green); font-size: 26px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.collapsible-card { padding: 0; overflow: hidden; }
.collapsible-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 4vw, 28px); cursor: pointer; list-style: none; }
.collapsible-card > summary::-webkit-details-marker { display: none; }
.collapsible-card > summary::after { content: "展开"; flex: 0 0 auto; color: var(--green); font-size: 13px; font-weight: 800; }
.collapsible-card[open] > summary::after { content: "收起"; }
.collapsible-card[open] > summary { border-bottom: 1px solid var(--line); }
.collapsible-heading { display: grid; gap: 2px; min-width: 0; }
.collapsible-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.collapsible-title { font-size: 21px; font-weight: 800; line-height: 1.35; }
.collapsible-card-body { padding: clamp(18px, 4vw, 28px); padding-top: 20px; }
.update-hint { display: flex; align-items: center; gap: 8px; margin: 16px 2px -4px; color: var(--muted); font-size: 12px; }
.update-dot { display: inline-block; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #d94b43; box-shadow: 0 0 0 3px rgba(217, 75, 67, .12); }
.evaluation { white-space: pre-wrap; }
.ability-layout { display: grid; grid-template-columns: minmax(230px, .85fr) 1.15fr; align-items: center; gap: 24px; }
.radar { width: 100%; max-width: 330px; margin: auto; overflow: visible; }
.radar-grid { fill: none; stroke: #d8e2dc; stroke-width: 1; }
.radar-axis { stroke: #e1e8e3; stroke-width: 1; }
.radar-value { fill: rgba(49, 92, 73, .22); stroke: var(--green); stroke-width: 2; }
.radar-label { fill: #526159; font-size: 10px; text-anchor: middle; }
.ability-bars { display: grid; gap: 11px; }
.ability-row { display: grid; grid-template-columns: 100px 1fr 38px; align-items: center; gap: 9px; font-size: 13px; }
.ability-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.ability-fill { height: 100%; border-radius: inherit; background: var(--green); }
.timeline { position: relative; display: grid; gap: 11px; margin-top: 16px; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; inset-block: 5px; width: 1px; background: #cbd8d0; }
.entry { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.entry::before { content: ""; position: absolute; top: 19px; left: -18px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.entry > summary { display: flex; align-items: center; gap: 11px; padding: 14px 15px; cursor: pointer; list-style: none; }
.entry > summary::-webkit-details-marker { display: none; }
.entry-title { min-width: 0; flex: 1; }
.entry-title strong { display: flex; align-items: center; gap: 8px; }
.entry-title span { color: var(--muted); font-size: 12px; }
.status { padding: 3px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.status.open { color: #8b4b36; background: var(--red-soft); }
.status.recorded { color: var(--green); background: var(--green-soft); }
.status.corrected { color: #80651f; background: var(--gold-soft); }
.status.mastered { color: var(--green); background: var(--green-soft); }
.entry-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.learning-section { margin-top: 13px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.learning-section h3 { margin: 0 0 9px; color: var(--green); font-size: 15px; }
.learning-section p { margin: 0; line-height: 1.85; }
.learning-section p + p { margin-top: 10px; }
.learning-section ul, .learning-section ol { margin: 0; padding-left: 21px; }
.learning-section li + li { margin-top: 6px; }
.learning-progress { background: #f5faf7; }
.learning-focus { border-color: #eadfd9; background: #fffaf7; }
.learning-focus h3 { color: #8b4b36; }
.errors { margin: 0; padding-left: 22px; }
.errors li + li { margin-top: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { padding: 3px 9px; border-radius: 999px; color: #496052; background: var(--green-soft); font-size: 11px; }
.guidance { margin-top: 13px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: #f7faf8; }
.guidance strong { display: block; margin-bottom: 3px; font-size: 12px; }
.learning-summary p { margin: 4px 0 8px; white-space: pre-wrap; }
.learning-summary .errors { margin: 6px 0 0; }
.knowledge-details { margin-top: 12px; color: var(--muted); font-size: 12px; }
.knowledge-details > summary { cursor: pointer; font-weight: 700; }
.teacher-guidance { border-color: #d8e4dc; background: #f7faf8; }
.empty { padding: 34px 18px; color: var(--muted); text-align: center; }
.footer { padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.footer p { margin: 0; }
.footer-note { width: min(680px, calc(100% - 32px)); margin-inline: auto !important; line-height: 1.75; }
.footer-meta { margin-top: 7px !important; }
.footer a { color: inherit; }
@media (max-width: 700px) {
  main { padding-top: 28px; }
  .dashboard { grid-template-columns: 1fr 1fr; }
  .ability-layout { grid-template-columns: 1fr; }
  .radar { max-width: 290px; }
}
@media (max-width: 440px) {
  .shell { width: min(100% - 22px, 940px); }
  .brand { font-size: 13px; }
  .student-name { display: none; }
  .card { border-radius: 12px; }
  .section-head { align-items: start; flex-direction: column; }
  .collapsible-card > summary { align-items: center; }
  .entry-body { padding-inline: 12px; }
  .learning-section { padding: 13px; }
}
