:root{--navy:#183451;--blue:#265ed8;--ink:#24364b;--muted:#64758a;--line:#dce4ee;--paper:#fff;--bg:#f3f6fa;--light:#e8eff8;--error:#a32d32;--success:#23644d;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{border:1px solid var(--blue);border-radius:6px;background:var(--blue);color:white;padding:10px 20px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:wait}.secondary{background:var(--paper);color:var(--navy);border-color:var(--line)}a{color:var(--blue)}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px max(24px,calc((100vw - 1200px)/2));background:var(--paper);border-bottom:1px solid var(--line)}.brand{color:var(--navy);display:flex;gap:14px;align-items:center;text-decoration:none;font-size:18px;font-weight:650;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--navy);color:white;border-radius:8px;font:28px "Songti SC",serif}.brand small{display:block;font-size:9px;letter-spacing:1.35px;color:var(--muted);font-weight:500}#account{display:flex;align-items:center;gap:16px;font-size:14px}#account button{padding:6px 12px}main{max-width:1200px;margin:44px auto;padding:0 24px;min-height:65vh}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:.5px;color:var(--navy);line-height:1.35}h2{font-size:22px;color:var(--navy)}h3{font-size:16px}small,.muted{color:var(--muted)}.intro{max-width:720px;margin-bottom:30px}.intro p{color:var(--muted)}.login-layout{display:grid;grid-template-columns:1.2fr 1fr;align-items:start;gap:80px;margin-top:10vh}.login-layout .intro h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:38px;line-height:1.5}.directions{display:flex;gap:24px;margin:32px 0;color:var(--navy)}.directions div{border-left:3px solid var(--blue);padding-left:16px}.directions strong,.directions small{display:block}.panel{background:var(--paper);padding:28px;border:1px solid var(--line);border-radius:10px}.login-panel label{display:block;margin-bottom:7px;font-weight:600;font-size:14px}input,textarea{display:block;width:100%;border:1px solid #b5c3d4;border-radius:6px;padding:12px;background:white;color:var(--ink)}input{margin-bottom:20px}.login-panel button{width:100%;margin:6px 0 12px}.error{color:var(--error);white-space:pre-wrap}.notice{padding:14px 18px;background:var(--light);border-radius:6px;color:var(--navy);font-size:14px;margin:18px 0}.notice.error{background:#fbeef0;color:var(--error)}.test-list{display:grid;gap:16px}.test-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.test-row h2{margin-bottom:5px;font-size:20px}.test-row p{margin:0;font-size:14px;color:var(--muted)}.tag{display:inline-block;padding:3px 10px;background:var(--light);color:var(--navy);font-size:12px;border-radius:4px;margin-right:10px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:26px;align-items:start}.exam-sidebar{position:sticky;top:20px}.timer{font:40px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--navy);font-variant-numeric:tabular-nums}.timer.urgent{color:var(--error)}.exam-sidebar button{width:100%;margin-top:16px}.exam-sidebar a{display:block;text-decoration:none;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.exam-sidebar small{display:block;margin-top:10px}.save-state{font-size:13px;min-height:42px;margin:18px 0 0;color:var(--success)}.question{margin-bottom:26px;overflow:hidden;scroll-margin-top:20px;padding:0}.question-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);background:#fbfcfe}.question-header h2{font-size:18px;margin:0}.direction{font-size:12px;color:var(--blue);letter-spacing:2px;font-weight:650}.source{padding:24px;background:#fbfcfe;border-bottom:1px solid var(--line);line-height:1.9;white-space:pre-wrap;margin:0}.source[lang=en]{font:19px/1.8 Georgia,"Times New Roman",serif}.answer-block{padding:24px}.answer-block label{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;margin-bottom:12px}.answer-block label small{font-weight:400}.answer-block textarea{resize:vertical;min-height:235px;line-height:1.8;font-size:16px}.answer-block textarea:read-only{background:#f6f8fb}.answer-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:10px}.exam-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.exam-heading h1{margin-bottom:6px}.exam-heading p{margin:0;color:var(--muted);font-size:14px}.result-summary{display:grid;grid-template-columns:170px 1fr;gap:28px;align-items:center;margin-bottom:26px}.score{font-size:52px;font-weight:650;line-height:1.3;color:var(--navy)}.score small{font-size:16px}.grade-name{font-size:25px;color:var(--blue);margin-bottom:8px}.translation-text{white-space:pre-wrap;line-height:1.9;margin-bottom:24px}.score-details{list-style:none;padding:0;margin:0 0 24px}.score-details li{padding:14px 0;border-bottom:1px solid var(--line)}.score-details li strong{display:flex;justify-content:space-between;gap:16px;font-size:14px}.score-details p{font-size:14px;color:var(--muted);margin:6px 0 0;white-space:pre-wrap}.pending{max-width:680px;margin:60px auto}.pending h1{font-size:28px}footer{text-align:center;padding:24px;color:var(--muted);font-size:12px}.empty{padding:44px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){.workspace{grid-template-columns:1fr}.exam-sidebar{position:sticky;top:0;grid-row:1;z-index:2;padding:14px 20px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0 20px}.exam-sidebar nav,.exam-sidebar .rubric-note{display:none}.exam-sidebar button{margin-top:0}.save-state{grid-column:1/-1;min-height:0;margin-top:5px}.timer{font-size:30px}.login-layout{gap:35px;grid-template-columns:1fr;margin-top:20px}.login-layout .intro{margin:0}.login-layout .intro h1{font-size:30px}.directions{margin:20px 0}.login-panel{max-width:520px;width:100%}.site-header{padding:16px 20px}.brand{font-size:16px}.brand small{font-size:8px}main{margin:28px auto}.test-row{align-items:flex-start}.result-summary{grid-template-columns:1fr;gap:10px}}@media(max-width:540px){main{padding:0 16px}h1{font-size:25px}.site-header{flex-wrap:wrap;gap:12px}.brand-mark{width:36px;height:36px;font-size:24px}.test-row{flex-direction:column;padding:20px}.test-row button{width:100%}.panel{padding:20px}.question{padding:0}.question-header,.source,.answer-block{padding:18px}.exam-heading{align-items:flex-start;flex-direction:column}.question-header small{font-size:11px}.answer-block label{flex-direction:column;gap:2px}.directions{gap:18px;font-size:14px}}
