@charset "UTF-8";
:root {
  --paper:#f6f7fb; --white:#fff; --ink:#20283f; --muted:#69748a;
  --line:#e5e8f0; --blue:#4f46e5; --blue-soft:#eeedff;
  --green:#168366; --green-soft:#e9f7f0; --amber:#9a5e18; --amber-soft:#fff5e7;
  --red:#b54148; --red-soft:#fff0f0;
  --body:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:20px; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.6 var(--body); -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button,a,input,summary { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button { border:0; cursor:pointer; }
a { color:inherit; }
button:disabled { cursor:wait; opacity:.65; }
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid #a3a3f5; outline-offset:3px; }
input:focus { outline:none; }
[hidden] { display:none!important; }
h1,h2,h3,p { overflow-wrap:anywhere; }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link { position:fixed; top:12px; left:16px; z-index:100; visibility:hidden; background:#fff; padding:10px; }
.skip-link:focus { visibility:visible; }
.page-shell { max-width:700px; margin:0 auto; padding:0 24px 28px; }
.intro { text-align:center; padding:26px 0 25px; }
.intro h1 { margin:0 0 8px; font-size:30px; line-height:1.4; font-weight:700; letter-spacing:-.7px; }
.intro p { margin:0; font-size:14px; color:var(--muted); }
.query-card { padding:23px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.query-card h2 { margin:0 0 12px; font-size:15px; font-weight:600; }
.input-wrap { display:flex; align-items:center; border:1px solid #d9deea; border-radius:9px; background:#fafbfe; min-height:54px; padding:0 14px; }
.input-wrap:focus-within { border-color:var(--blue); box-shadow:0 0 0 3px #4f46e512; background:#fff; }
.input-wrap.invalid { border-color:var(--red); }
#ticket { width:100%; min-width:0; flex:1; border:0; background:none; border-radius:0; color:var(--ink); font:500 18px var(--mono); letter-spacing:.4px; padding:15px 0; }
#ticket::placeholder { font-size:15px; color:#929cb1; letter-spacing:0; }
.clear-input { min-width:36px; min-height:44px; background:none; color:var(--muted); font-size:24px; padding:0; margin-right:-9px; }
.primary-button { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:50px; margin-top:13px; border-radius:9px; background:var(--blue); color:#fff; font-size:15px; font-weight:600; }
.primary-button:hover { background:#4338ca; }
.primary-button svg { width:18px; height:18px; }
.query-error { margin:12px 0 0; padding:10px 12px; border-radius:8px; background:var(--red-soft); color:var(--red); font-size:13px; }
.supported-provinces { margin-top:18px; padding:19px 21px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.supported-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.supported-heading h2 { margin:0; font-size:14px; font-weight:600; }
.update-badge { display:inline-block; margin-left:6px; padding:2px 4px; border-radius:5px; background:#eeecff; color:var(--blue); font-size:12px; font-weight:600; white-space:nowrap; }
.supported-heading>span { font-size:12px; color:var(--muted); }
.province-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.province-list.is-collapsed .province-chip:nth-child(n+9) { display:none; }
.province-chip { padding:4px 7px; border-radius:5px; background:#f3f5fa; color:#56617a; font-size:12px; }
.province-chip strong { margin-left:4px; color:var(--muted); font:10px var(--mono); white-space:nowrap; }
.province-loading { color:var(--muted); font-size:12px; }
.text-button { background:none; color:var(--blue); font-size:12px; padding:8px 0; min-height:40px; white-space:nowrap; }
.province-toggle { margin-top:4px; }
.page-note { margin:20px 2px 0; color:var(--muted); font-size:12px; line-height:1.8; }
.has-result .intro,.has-result .supported-provinces { display:none; }
.has-result .query-card { margin-top:12px; padding:16px 18px; }
.has-result .query-card h2 { font-size:13px; margin-bottom:9px; }
.has-result #query-form { display:grid; grid-template-columns:minmax(0,1fr) 104px; gap:0 10px; align-items:start; }
.has-result .primary-button { margin-top:0; min-height:50px; gap:7px; font-size:13px; }
.has-result .primary-button svg { display:none; }
.has-result .input-wrap { min-height:50px; padding:0 11px; }
.has-result #ticket { font-size:16px; padding:13px 0; }
.has-result .query-error { grid-column:1/-1; }
.results { margin-top:18px; scroll-margin-top:18px; }
.student-card { padding:19px 21px 0; border:1px solid var(--line); border-radius:14px; background:#fff; }
.student-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.student-card h2 { margin:0; font:600 25px/1.4 var(--mono); letter-spacing:-.7px; }
.group-badge { background:var(--blue-soft); color:var(--blue); border-radius:5px; font-size:12px; padding:3px 8px; white-space:nowrap; }
.student-meta { color:var(--muted); font-size:13px; margin:6px 0 16px; }
.submission-summary { display:grid; gap:8px; padding:13px 0 15px; border-top:1px solid var(--line); font-size:12px; line-height:1.8; }
.summary-row { display:grid; grid-template-columns:56px minmax(0,1fr); align-items:baseline; gap:12px; }
.summary-label { color:var(--muted); white-space:nowrap; }
.summary-value { min-width:0; font-weight:550; overflow-wrap:anywhere; }
.summary-value.ok { color:var(--green); }
.summary-value.warning { color:var(--amber); }
.summary-value.pending { color:var(--muted); }
.result-section-heading { display:flex; align-items:center; justify-content:space-between; margin:17px 2px 8px; }
.result-section-heading h2 { margin:0; font-size:16px; font-weight:650; }
.task-list { display:grid; gap:12px; }
.task-card { min-width:0; padding:18px 20px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.task-card-heading { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.task-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.task-number { flex-shrink:0; display:grid; place-items:center; width:31px; height:33px; border-radius:7px; background:#f3f5fa; color:var(--muted); font:12px var(--mono); }
.task-title h3 { margin:0; font-size:15px; font-weight:600; line-height:1.5; }
.task-title code { display:block; margin-top:1px; font:11px var(--mono); color:var(--muted); }
.status-pill { flex-shrink:0; padding:4px 7px; border-radius:5px; font-size:11px; font-weight:550; white-space:nowrap; }
.status-pill.normal { background:var(--green-soft); color:var(--green); }
.status-pill.warning { background:var(--amber-soft); color:var(--amber); }
.status-pill.danger { background:var(--red-soft); color:var(--red); }
.task-description { font-size:12px; line-height:1.8; color:var(--muted); margin:12px 0 0; }
.task-file { border-top:1px solid #eef0f5; padding:10px 0 0; margin-top:13px; }
.file-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.file-meta { flex:1; min-width:0; }
.file-name-button { display:flex; align-items:center; gap:7px; min-width:0; max-width:100%; min-height:24px; padding:0; color:#4e5c77; background:none; text-align:left; }
.file-name-button svg { flex-shrink:0; width:16px; height:16px; color:#8a96ae; }
.file-name-button span { min-width:0; font:12px/1.7 var(--mono); overflow-wrap:anywhere; }
.file-name-button:hover { color:var(--blue); }
.file-size { display:block; margin-left:23px; color:var(--muted); font:10px/1.7 var(--mono); white-space:nowrap; }
.task-file-controls { flex-shrink:0; display:flex; align-items:center; gap:6px; }
.view-code,.file-download { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:6px 10px; border-radius:6px; background:var(--blue-soft); color:var(--blue); font-size:12px; text-decoration:none; white-space:nowrap; }
.file-download { border:1px solid var(--line); background:#fff; color:var(--muted); }
.view-code:hover { background:#e5e2ff; }
.file-download:hover { color:var(--blue); }
.file-location { margin-top:5px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.freopen-check { margin:12px 0 0; border:1px solid var(--line); border-radius:8px; background:#f7f9fc; font-size:12px; }
.freopen-check[data-check-status="warning"] { border-color:#f0e2cd; background:#fffaf3; }
.freopen-check>.freopen-loading,.freopen-check>.freopen-summary { display:block; padding:10px 11px; }
.freopen-check>.text-button { margin:0 11px 8px; }
.freopen-loading { color:var(--muted); }
.freopen-summary { min-width:0; margin:0; line-height:1.8; overflow-wrap:anywhere; }
.freopen-summary.ok { color:var(--green); }
.freopen-summary.warning { color:var(--amber); }
.freopen-summary.review { color:var(--muted); }
.freopen-details>summary { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; color:var(--muted); cursor:pointer; min-height:42px; padding:10px 11px; font-size:12px; list-style:none; }
.freopen-details>summary::-webkit-details-marker { display:none; }
.freopen-toggle { flex-shrink:0; display:inline-flex; align-items:center; gap:5px; min-height:22px; color:var(--muted); font-size:11px; }
.freopen-toggle::after { content:""; width:5px; height:5px; margin-top:-3px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }
.freopen-details[open] .freopen-toggle::after { margin-top:3px; transform:rotate(225deg); }
.freopen-direction { margin:0 9px 9px; padding:10px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.freopen-direction p { margin:0 0 4px; font-size:12px; }
.freopen-direction code { display:block; font:11px/1.8 var(--mono); overflow-wrap:anywhere; }
.freopen-direction small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.freopen-direction .freopen-direction-title { font-weight:600; }
.freopen-direction .freopen-code-label { margin-top:8px; margin-bottom:3px; }
.freopen-direction .freopen-original { padding:5px 7px; border-left:2px solid var(--amber); background:#fff; white-space:pre-wrap; }
.freopen-direction[data-status="ok"] .freopen-original { border-left-color:var(--green); }
.freopen-direction .freopen-reason { margin:8px 0; color:var(--amber); line-height:1.8; overflow-wrap:anywhere; white-space:pre-wrap; }
.directory-card { margin-top:18px; padding:12px 20px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.card-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.card-heading h2 { margin:0; font-size:14px; font-weight:600; }
.directory-tree { margin:7px 0; padding:12px; border-radius:8px; background:#f6f8fc; max-height:420px; overflow:auto; font:12px/1.8 var(--mono); color:#63708b; }
.directory-tree ul { list-style:none; padding:0; margin:0; }
.directory-tree ul ul { padding-left:13px; margin-left:6px; border-left:1px solid #dfe4ee; }
.tree-directory>summary { display:flex; align-items:center; gap:6px; list-style:none; cursor:pointer; padding:4px 0; min-height:34px; }
.tree-directory>summary::-webkit-details-marker { display:none; }
.tree-directory>summary::before { content:"›"; width:8px; flex-shrink:0; }
.tree-directory[open]>summary::before { transform:rotate(90deg); }
.tree-directory>summary span { overflow-wrap:anywhere; min-width:0; }
.tree-directory>summary svg { width:14px; height:14px; }
.tree-file { display:flex; align-items:center; gap:6px; min-height:36px; width:100%; background:none; color:#4f657e; padding:4px 0; font:11px/1.7 var(--mono); text-align:left; }
.tree-file svg { width:13px; height:13px; }
.tree-file span { min-width:0; overflow-wrap:anywhere; }
.tree-file small { margin-left:auto; padding-left:4px; white-space:nowrap; color:var(--muted); font:10px var(--mono); }
.tree-file-static { color:var(--muted); cursor:default; }
.tree-empty { font:12px var(--body); color:var(--muted); padding:5px 0; }
.code-dialog { position:fixed; inset:auto 0 0; margin:0 auto; width:100%; max-width:920px; height:86dvh; max-height:calc(100dvh - 20px); border:0; border-radius:18px 18px 0 0; padding:0 0 env(safe-area-inset-bottom); overflow:hidden; background:#fff; box-shadow:0 -12px 70px #20283f24; }
.code-dialog[open] { display:flex; flex-direction:column; }
dialog::backdrop { background:#20283f66; }
.code-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:19px 21px 14px; }
.code-header>div { min-width:0; }
.eyebrow { font-size:12px; color:var(--muted); }
.code-header h2 { margin:4px 0; font:600 19px/1.5 var(--mono); }
.code-header p { margin:0; color:var(--muted); font-size:12px; }
.icon-button { flex-shrink:0; display:grid; place-items:center; min-width:38px; min-height:38px; border-radius:8px; background:#f2f4f9; color:var(--muted); font-size:25px; }
.icon-button svg { width:19px; height:19px; }
.code-toolbar { display:flex; align-items:center; gap:16px; padding:0 21px 8px; }
.code-zoom { margin-left:auto; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.code-zoom>span { font-size:11px; color:var(--muted); }
#reset-code-zoom { min-width:42px; justify-content:center; font-variant-numeric:tabular-nums; }
.toolbar-button { display:inline-flex; align-items:center; min-height:40px; padding:5px 0; background:none; color:var(--blue); font-size:13px; text-decoration:none; }
.file-details { flex-shrink:0; border-top:1px solid var(--line); background:#fff; padding:0 21px; max-height:32%; overflow:auto; }
.file-details summary { min-height:36px; padding:6px 0; font-size:12px; color:var(--muted); cursor:pointer; }
.file-details dl { margin:0 0 10px; font-size:11px; }
.file-details dl>div { display:flex; align-items:baseline; gap:10px; margin-top:5px; }
.file-details dt { min-width:66px; color:var(--muted); }
.file-details dd { margin:0; overflow-wrap:anywhere; min-width:0; }
.file-details code { font:10px/1.7 var(--mono); }
.code-scroll { flex:1; min-height:0; overflow:auto; background:#f6f8fc; border-top:1px solid var(--line); overscroll-behavior:contain; touch-action:pan-x pan-y; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.code-container { display:flex; align-items:stretch; min-width:100%; width:max-content; min-height:100%; }
.code-scroll pre { font:var(--code-font-size, 12px)/1.9 var(--mono); tab-size:4; margin:0; padding:18px 20px 35px 0; white-space:pre; }
#line-numbers { flex-shrink:0; position:sticky; left:0; padding:18px 11px 35px 14px; min-width:40px; border-right:1px solid var(--line); background:#f6f8fc; color:#98a3b7; text-align:right; user-select:none; }
#code-content { flex:1; padding-left:14px; color:#44536e; }
.code-scroll code { font:inherit; white-space:inherit; }
.code-notice { flex-shrink:0; padding:10px 18px; color:var(--amber); background:var(--amber-soft); font-size:12px; }
.load-full-code { flex-shrink:0; min-height:46px; padding:11px; background:var(--blue-soft); color:var(--blue); font-size:12px; }
.token-comment { color:#8794aa; }.token-keyword { color:#7268bb; }.token-string { color:#397763; }.token-number { color:#a1713f; }.token-preprocessor { color:#586b9b; }
.status-dialog { width:calc(100% - 32px); max-width:460px; max-height:85dvh; overflow:auto; border:1px solid var(--line); border-radius:16px; padding:20px; }
.status-dialog h2 { font-size:17px; }
.status-definitions { margin:10px 0 0; }
.status-definitions>div { padding:13px 0; border-top:1px solid var(--line); }
.status-definitions dt { font-size:13px; font-weight:600; }
.status-definitions dd { margin:5px 0 0; font-size:12px; color:var(--muted); line-height:1.8; }
.toast { position:fixed; z-index:20; bottom:calc(22px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:10px 16px; border-radius:9px; background:#28324cf2; color:#fff; font-size:13px; text-align:center; pointer-events:none; }
.copy-buffer { position:fixed; top:0; left:0; width:1px; height:1px; padding:0; border:0; opacity:0; font-size:16px; white-space:pre; pointer-events:none; }
.scroll-lock { overflow:hidden; }.is-busy { opacity:.45; pointer-events:none; }
@media(hover:hover) and (pointer:fine) {
  .code-zoom { display:none; }
}
@media(min-width:900px) {
  .intro { padding-top:40px; }
  .page-note { text-align:center; }
  .query-card,.supported-provinces { max-width:520px; margin-left:auto; margin-right:auto; }
  .has-result .query-card { max-width:none; }
  .task-list { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .code-dialog { inset:0; margin:auto; height:82dvh; border-radius:16px; }
}
@media(max-width:899px) {
  .province-list.is-collapsed .province-chip:nth-child(n+7) { display:none; }
}
@media(max-width:599px) {
  .page-shell { padding:0 17px 24px; }.intro { padding:23px 0 22px; }.intro h1 { font-size:26px; }.intro p { font-size:13px; }
  .query-card { padding:20px; }.supported-provinces { padding:17px 18px; }
  .has-result .query-card { margin-top:8px; padding:13px 15px; }.has-result #query-form { grid-template-columns:minmax(0,1fr) 86px; gap:0 8px; }
  .student-card { padding:18px 19px 0; }.student-card h2 { font-size:23px; }.student-meta { font-size:12px; }
  .task-card { padding:17px 18px; }.directory-card { padding:11px 18px; }.page-note { font-size:11px; }
}
@media(max-width:359px) {
  .page-shell { padding-left:13px; padding-right:13px; }.intro h1 { font-size:24px; }
  .query-card { padding:18px; }.has-result #query-form { grid-template-columns:minmax(0,1fr) 78px; }
  .has-result .primary-button { font-size:12px; }.has-result #ticket { font-size:15px; }.task-card { padding:15px; }
  .task-identity { gap:7px; }.task-number { width:27px; }.task-title h3 { font-size:14px; }.status-pill { font-size:10px; padding:4px 6px; }
  .submission-summary { gap:8px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }
