:root { font-family: system-ui, "Microsoft YaHei", sans-serif; color: #1c3047; background: #edf3fa; }
* { box-sizing: border-box; }
body { margin: 0; padding: 32px 16px; }
main { max-width: 560px; margin: auto; padding: 32px; background: white; border-radius: 20px; box-shadow: 0 12px 45px #18365412; }
header { margin-bottom: 24px; }
h1 { margin: 12px 0 4px; }
h2 { font-size: 1.3rem; }
header p, .hint, footer, small { color: #53677e; }
.badge { color: #225bbd; font-weight: 700; letter-spacing: .08em; }
nav { display: flex; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #dbe5f1; }
button { font: inherit; cursor: pointer; border: 1px solid #c9d6e7; border-radius: 8px; padding: 10px 16px; background: white; color: #264366; }
button[aria-pressed="true"], button.primary { background: #225bbd; border-color: #225bbd; color: white; }
button:disabled { opacity: .6; cursor: wait; }
label { display: block; margin: 16px 0; font-weight: 600; }
input, select { display: block; width: 100%; padding: 11px; margin-top: 6px; border: 1px solid #b7c7db; border-radius: 8px; font: inherit; background: white; color: inherit; }
input:focus, select:focus, button:focus-visible { outline: 2px solid #225bbd; outline-offset: 2px; }
small { display: block; margin-top: 5px; font-weight: 400; }
fieldset { border: 1px solid #dbe5f1; border-radius: 10px; margin-top: 20px; }
.hint, footer { font-size: .85rem; line-height: 1.7; }
.primary { width: 100%; }
#message:empty { display: none; }
#message { padding: 12px; border-radius: 8px; background: #eaf2ff; overflow-wrap: anywhere; }
#message.error { background: #fff0ef; color: #a62623; }
dl { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
dd { margin: 0; overflow-wrap: anywhere; }
.placeholder { background: #f4f7fc; padding: 16px; border-radius: 10px; margin: 24px 0; }
#exam button { margin: 4px; overflow-wrap: anywhere; max-width: 100%; }
#exam textarea { display: block; width: 100%; min-height: 72px; margin-top: 6px; padding: 8px; border: 1px solid #b7c7db; border-radius: 8px; font: inherit; color: inherit; resize: vertical; }
#exam audio { max-width: 100%; margin-top: 8px; }
#exam p { overflow-wrap: anywhere; white-space: pre-wrap; }
.exam-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #dbe5f1; }
.exam-heading a { color: #225bbd; padding: 6px 10px; text-underline-offset: 3px; }
.exam-heading a[aria-current] { border-bottom: 2px solid currentColor; text-decoration: none; }
.exam-results { width: 100%; border-collapse: collapse; }
.exam-results th, .exam-results td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #dbe5f1; overflow-wrap: anywhere; }
.exam-results summary { cursor: pointer; }
.exam-results td > details > summary { color: #225bbd; }
.exam-results .exam-results-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.exam-results-toggle input { width: auto; margin: 0; }
.exam-results dl { display: block; }
.exam-results dt:not(:first-child) { margin-top: 6px; }
.exam-item { border-bottom: 1px solid #dbe5f1; padding-bottom: 8px; }
.exam-status:empty { display: none; }
.exam-status { color: #225bbd; }
footer { margin-top: 32px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { main { padding: 22px; } nav button { flex: 1; padding: 10px 6px; } }
