:root{--ink:#203b35;--green:#315d52;--soft:#e9f0eb;--paper:#f7f6f0;--line:#dce3da;--muted:#66756c;--gold:#ac854a;--red:#9f413b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;font-size:18px;line-height:1.65}button,a,input{ -webkit-tap-highlight-color:transparent}button,select{font:inherit}a{color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:11px 20px;background:white;color:var(--ink)}button:hover,a.card:hover{border-color:var(--green);box-shadow:0 4px 14px #203b350d}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.top{max-width:1280px;margin:auto;padding:26px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-weight:700;font-size:22px;letter-spacing:.06em}.brand small{font-size:12px;display:block;font-weight:500;letter-spacing:.22em;color:var(--muted)}.seal{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:var(--green);color:white;font-family:serif;font-size:27px}.term{font-size:14px;color:var(--muted)}main{max-width:1200px;margin:auto;padding:42px 32px 65px}.hero{position:relative;padding:18px 0 28px;border-bottom:1px solid var(--line);margin-bottom:30px}.eyebrow{color:var(--gold);font-size:13px;letter-spacing:.16em;font-weight:700}.hero h1{font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(29px,4.3vw,48px);line-height:1.4;font-weight:600;letter-spacing:.025em;margin:15px 0}.hero h1 span{display:block}.hero p{color:var(--muted);max-width:650px}.stats{display:flex;gap:38px;margin:25px 0 10px}.stat strong{display:block;font:600 34px Georgia,serif}.stat span{font-size:13px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:end;margin:26px 0 18px}.section-head h2{font-size:22px;margin:0}.section-head p{font-size:14px;margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:23px;text-decoration:none;transition:transform .15s,border-color .15s}.card:hover{transform:translateY(-3px)}.card .n{font:italic 28px Georgia,serif;color:#b8c6bc}.card h3{font-size:20px;margin:12px 0 4px}.card p{font-size:14px;margin:0 0 18px;color:var(--muted)}.card .go{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--green);font-weight:700}.pill{padding:3px 10px;border-radius:30px;background:var(--soft);font-size:12px}.tinybar{height:4px;background:#edf1eb;border-radius:5px;overflow:hidden;margin:18px 0 10px}.tinybar span{display:block;height:100%;background:#719587}.note{padding:18px 22px;border:1px dashed #cbd7cc;border-radius:15px;color:var(--muted);font-size:14px;margin-top:28px}.back{display:inline-block;text-decoration:none;font-size:14px;color:var(--muted);margin-bottom:20px}.quizhead{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:25px}.quizhead h1{font-family:"Noto Serif TC","PMingLiU",serif;font-size:27px;margin:0 0 8px;line-height:1.45}.quizhead p{font-size:14px;color:var(--muted);margin:0}.quizhead select{max-width:100%;padding:9px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--green)}.layout{display:grid;grid-template-columns:250px 1fr;gap:25px}.sidebar{align-self:start;background:#eef1ea;border-radius:18px;padding:22px}.sidebar h2{font-size:17px;margin:0 0 12px}.status{font-size:14px;color:var(--muted)}.legend{display:flex;gap:16px;font-size:12px;color:var(--muted);margin:12px 0}.dot{display:inline-block;width:8px;height:8px;border-radius:3px;background:#719587;margin-right:5px}.dot.empty{background:white;border:1px solid #b8c6bc}.numbers{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:16px 0}.numbers button{padding:0;min-width:0;height:31px;font-size:12px;border-radius:7px}.numbers button.answered{background:#d3e2d7;border-color:#b5cabb}.numbers button.current{background:var(--green);color:white;border-color:var(--green)}.numbers button.wrong{background:#f3dfda;color:var(--red)}.sidebar .secondary{width:100%;font-size:14px;margin-top:8px}.progress{height:7px;background:#dce5dc;border-radius:5px;overflow:hidden;margin:12px 0}.progress span{display:block;height:100%;background:var(--green)}.sheet{background:white;border:1px solid var(--line);border-radius:21px;padding:32px 36px}.qmeta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;margin-bottom:22px}.qmeta strong{color:var(--gold)}.sentence{font-size:25px;line-height:1.95;font-weight:500;margin:0 0 28px}.blank{display:inline-block;min-width:85px;border-bottom:2px solid var(--green);color:var(--green);margin:0 7px;text-align:center}.options{display:grid;gap:12px;border:0;padding:0;margin:0}.options legend{font-size:14px;color:var(--muted);padding:0 0 15px}.option{display:flex;align-items:center;gap:15px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:#fdfefb}.option:hover{background:#f2f6f1}.option.selected{border-color:var(--green);background:var(--soft)}.option input{accent-color:var(--green);width:18px;height:18px}.letter{font:16px Georgia,serif;color:var(--muted)}.option .word{font-size:21px}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:27px}.actions .spacer{flex:1}.primary{background:var(--green);color:white;border-color:var(--green)}.secondary{background:transparent}.nextrow{border-top:1px solid #edf0e9;padding-top:23px}.submit{width:100%;margin-top:18px}.result{background:var(--soft);padding:28px;border-radius:18px;display:flex;gap:25px;align-items:center;margin-bottom:25px}.score{font:600 55px Georgia,serif}.score small{font:16px system-ui;color:var(--muted)}.result h2{font-size:22px;margin:0 0 4px}.result p{font-size:14px;margin:0;color:var(--muted)}.filters{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.filters button[aria-pressed=true]{background:var(--green);color:#fff}.review{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin:16px 0}.review h3{font-size:20px;line-height:1.9;margin:10px 0}.review .filled{color:var(--green);text-decoration:underline;text-underline-offset:5px}.review .answers{font-size:15px;display:flex;gap:22px;flex-wrap:wrap}.review p{font-size:15px;line-height:1.9;color:var(--muted)}.badge{font-size:12px;color:var(--green);background:var(--soft);border-radius:25px;padding:4px 10px}.badge.bad{background:#f5e8e2;color:var(--red)}.storage-alert{border:1px solid #d8b788;border-radius:10px;background:#fff4df;padding:12px;font-size:14px;margin-bottom:15px}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;left:10px;top:-80px;z-index:20;background:white;padding:10px}.skip:focus{top:10px}dialog{max-width:480px;width:calc(100% - 30px);border:1px solid var(--line);border-radius:20px;padding:30px;color:var(--ink)}dialog::backdrop{background:#183b3466}dialog h2{font-size:23px;margin:0 0 12px}dialog p{font-size:17px}footer{text-align:center;border-top:1px solid var(--line);padding:26px 18px;font-size:14px;color:var(--muted)}footer span{font-size:12px}body:has(dialog[open]){overflow:hidden}@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:205px 1fr;gap:18px}.sidebar{padding:15px}.sheet{padding:25px}.numbers{grid-template-columns:repeat(7,1fr);gap:3px}.numbers button{font-size:11px}.sentence{font-size:23px}}@media(max-width:650px){body{font-size:17px}.top{padding:18px 20px}.brand{font-size:20px}.term{font-size:12px}.seal{width:40px;height:40px}main{padding:25px 18px 40px}.hero{padding-top:5px}.hero h1{font-size:30px}.hero p{font-size:15px}.stats{gap:35px}.stat strong{font-size:29px}.cards{grid-template-columns:1fr 1fr;gap:12px}.card{padding:17px}.card h3{font-size:18px}.card p{font-size:12px}.card .go{font-size:12px}.section-head{align-items:start;gap:8px;flex-direction:column}.layout{display:flex;flex-direction:column}.sidebar{width:100%;padding:17px}.sidebar h2{display:inline-block;margin-right:15px}.sidebar .numbers{grid-template-columns:repeat(10,1fr);gap:5px}.numbers button{height:30px;font-size:12px}.sidebar .secondary{width:auto}.legend{display:none}.sheet{padding:23px 20px}.quizhead{flex-direction:column;gap:13px}.quizhead h1{font-size:24px}.sentence{font-size:23px;line-height:1.95}.option{padding:14px}.option .word{font-size:20px}.actions{gap:8px}.actions button{padding:10px 13px;font-size:15px}.note{font-size:13px}.result{padding:22px;gap:18px}.score{font-size:46px}.result h2{font-size:19px}.review{padding:19px}.review h3{font-size:18px}.qmeta{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
