
:root {
  --bg: #f6f7f9;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d8dee9;
  --panel: #ffffff;
  --blue: #1d4ed8;
  --green: #0f766e;
  --red: #bc2f32;
  --shadow: 0 12px 32px rgba(17, 24, 39, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: KaiTi, "STKaiti", "KaiTi_GB2312", serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(29, 78, 216, .06), rgba(246, 247, 249, 0) 320px),
    var(--bg);
}
.app-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 22px 0 32px; }
.login-view { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.login-panel, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.login-panel { width: min(430px, 100%); padding: 34px; }
.eyebrow { margin: 0 0 8px; color: #bcc5d3; font-weight: 700; font-size: 13px; letter-spacing: 0; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.login-title { font-size: 24px; font-weight: 600; letter-spacing: 0; color: #172033; }
h2 { margin: 0; font-size: 18px; }
.slogan { margin: 8px 0 0; color: #c4ccd8; font-family: "Times New Roman", Times, serif; font-size: 13px; font-weight: 400; }
.num { font-family: "Times New Roman", Times, serif; }
.student-name-blue { color: #172033; }
.report-title-mark { font-family: "STXingkai", "Xingkai SC", KaiTi, "STKaiti", serif; font-size: 23px; font-weight: 400; }
.muted { color: var(--muted); margin: 8px 0 0; }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
label span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 13px;
  font-family: KaiTi, "STKaiti", "KaiTi_GB2312", serif;
  font-size: 16px;
  background: #fff;
}
input:focus { outline: 3px solid rgba(31, 94, 255, .16); border-color: var(--blue); }
button {
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-family: KaiTi, "STKaiti", "KaiTi_GB2312", serif;
  font-size: 16px;
  cursor: pointer;
}
button.secondary { width: 110px; background: #eef2ff; color: #2442a8; border: 1px solid #c7d2fe; }
.message { min-height: 22px; margin: 0; color: var(--red); font-size: 14px; }
.hidden { display: none !important; }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.report-header h1 { font-size: 26px; }
.report-header .muted { font-size: 13px; }
.report-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 12px; }
.report-section { padding: 0 0 10px; margin: 0 0 10px; border-bottom: 1px solid #edf0f5; }
.report-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.report-section h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.2; color: #172033; }
.summary-row { display: grid; grid-template-columns: 1fr 1fr .78fr; gap: 6px; }
.summary-item { border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 9px; background: #fbfcff; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; align-items: baseline; }
.summary-item span { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }
.summary-item strong { color: var(--blue); font-size: 23px; line-height: .95; font-weight: 800; }
.summary-item strong .num { color: var(--blue); font-size: inherit; font-weight: 800; }
.summary-item em { color: var(--muted); font-style: normal; font-size: 13px; line-height: 1.05; font-weight: 400; white-space: nowrap; }
.summary-item:nth-child(3) strong { color: #101828; font-size: 23px; font-weight: 400; }
.summary-item:nth-child(3) strong .change-number { font-family: "Times New Roman", Times, serif; font-size: inherit; font-weight: 800; }
.summary-item:nth-child(3) strong .change-number.positive { color: var(--green); }
.summary-item:nth-child(3) strong .change-number.negative { color: var(--red); }
.change-unit { color: #101828; font-family: KaiTi, "STKaiti", "KaiTi_GB2312", serif; font-size: 13px; font-weight: 400; }
.summary-item:nth-child(3) strong .change-unit { color: #101828; font-size: 13px; font-family: KaiTi, "STKaiti", "KaiTi_GB2312", serif; font-weight: 400; }
.summary-item:nth-child(3) em { color: var(--muted); font-size: 11px; font-weight: 400; }
.table-wrap { overflow-x: auto; }
.score-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.score-table th { color: #667085; font-size: 12px; font-weight: 400; text-align: left; padding: 5px 7px; border-bottom: 1px solid #edf0f5; }
.score-table td { padding: 6px 7px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.score-table tr:last-child td { border-bottom: 0; }
.score-table .subject-name { color: #475467; font-size: 13px; }
.score-table .score-value { font-size: 17px; line-height: 1; font-weight: 700; }
.score-table .rank-value { font-size: 13px; line-height: 1.05; font-weight: 400; color: var(--muted); white-space: nowrap; }
.score-table .muted-rank { color: #98a2b3; font-size: 13px; font-weight: 400; }
.rank-num { color: #101828; font-weight: 800; font-size: 15px; }
.summary-item .rank-num { font-size: 15px; }
.summary-item em .rank-num, .score-table .rank-value .rank-num { color: #101828; font-weight: 800; }
.report-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 10px; }
.compact-section { padding: 0; margin: 0; border-bottom: 0; }
.subjective-table { display: grid; gap: 8px; }
.subjective-row { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: start; padding-bottom: 6px; border-bottom: 1px solid #edf0f5; }
.subjective-row:last-child { border-bottom: 0; padding-bottom: 0; }
.subjective-row b { color: #475467; font-size: 13px; padding-top: 4px; }
.score-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.score-pills span { padding: 4px 7px; border-radius: 6px; background: #f3f6fb; font-size: 12px; white-space: nowrap; }
.stage-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stage-row { border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 8px; background: #fbfcff; }
.stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.stage-name { color: #475467; font-size: 13px; }
.stage-rank { color: #667085; font-size: 14px; line-height: 1.05; font-weight: 600; white-space: nowrap; }
.stage-bar { height: 7px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.stage-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.comment {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  padding: 10px 12px 10px 14px;
  border-left: 4px solid rgba(29, 78, 216, .38);
  border-radius: 6px;
  background: rgba(29, 78, 216, .045);
}
@media (max-width: 900px) {
  .app-shell { width: min(100vw - 20px, 760px); padding-top: 10px; }
  .summary-row, .report-grid, .stage-table { grid-template-columns: 1fr; }
  .report-header { align-items: flex-start; }
  h1 { font-size: 27px; }
}
