:root{--ink:#20233b;--muted:#63748f;--accent:#30588d;--line:#dce4f0;--paper:#f7f9ff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 Arial,'Noto Sans TC',sans-serif}a{color:var(--accent);text-decoration:none}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.38;cursor:default}a,button{transition:background .3s ease,box-shadow .3s ease,color .3s ease}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #76bfcf;outline-offset:3px}header{background:#f7f9fff5;border-bottom:1px solid var(--line)}.nav{max-width:1200px;margin:auto;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}.brand{display:flex;align-items:center}nav{display:flex;gap:24px;font-size:14px;flex-wrap:wrap}main{max-width:1200px;margin:auto;padding:26px 24px 48px}.back{font-size:13px}.lesson-heading{margin-bottom:24px}h1{font-size:32px;letter-spacing:-.5px;line-height:1.3;margin:12px 0 8px}.lesson-heading p{margin:0;color:var(--muted)}.lesson-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:start}.list-caption{font-size:12px;color:var(--muted);margin-bottom:10px}.lesson-list{display:grid;gap:8px}.lesson-choice{display:flex;align-items:center;gap:12px;padding:15px 12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);min-width:0}.lesson-choice strong{font-size:15px;display:block}.lesson-choice small{font-size:12px;color:var(--muted);display:block}.lesson-id{font-weight:700;font-size:14px;color:var(--accent);background:#edf3fc;border-radius:8px;padding:6px}.choice-arrow{margin-left:auto;color:var(--muted)}.lesson-choice[aria-current=true]{border-color:var(--accent);background:#edf3fc;box-shadow:0 3px 12px #30588d0a}.lesson-detail{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0}.detail-heading{padding:22px 24px 16px}.detail-kicker{font-size:12px;color:var(--accent);font-weight:700}h2{font-size:24px;line-height:1.4;margin:6px 0}.detail-heading p{margin:8px 0;color:var(--muted);font-size:14px}.detail-heading .equipment{font-size:13px}.lesson-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 20px;gap:20px}.lesson-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:12px 4px;color:var(--muted);font-weight:700}.lesson-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent)}.reader-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;flex-wrap:wrap}.page-controls,.reader-links{display:flex;align-items:center;gap:8px}.page-controls button,.reader-links button,.code-tools button,.lesson-next button{border:1px solid var(--line);background:#f5f8fc;border-radius:7px;padding:6px 10px;color:var(--accent);min-height:40px}.page-controls label{font-size:13px;white-space:nowrap}.page-controls input{width:52px;border:1px solid var(--line);border-radius:6px;text-align:center;padding:5px 0}.reader-links{font-size:12px;gap:12px}.reader-links button{font-size:12px}.page-frame{background:#edf1f7;padding:14px;min-height:200px;display:flex;align-items:center;justify-content:center}.page-frame img{display:block;width:auto;max-width:100%;max-height:65vh;object-fit:contain;background:white;box-shadow:0 3px 16px #233d5910}.reader-tip{font-size:12px;color:var(--muted);margin:8px 16px}.code-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.primary{display:inline-block;padding:10px 15px;border-radius:8px;background:var(--accent);color:white;font-size:14px}#codePanel{padding:18px}#codePanel p{font-size:13px;color:var(--muted)}.code-frame{background:#f7fafc;border:1px solid var(--line);border-radius:8px;padding:12px;overflow:auto}.code-frame img{width:100%;height:auto;display:block;min-width:0}.lesson-notes{margin:16px;border-top:1px solid var(--line);padding:12px 0 0;font-size:13px;color:var(--muted)}summary{cursor:pointer;font-weight:700;color:var(--accent)}.lesson-next{display:flex;justify-content:space-between;padding:12px 16px 20px;gap:12px}footer{max-width:1200px;margin:auto;padding:20px 24px;border-top:1px solid var(--line);display:flex;gap:20px;flex-wrap:wrap;font-size:13px;color:var(--muted)}dialog{border:0;border-radius:12px;padding:0;max-width:96vw;width:1100px;max-height:94dvh}dialog::backdrop{background:#18243bcc}.zoom-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.zoom-toolbar button{padding:8px 14px;background:var(--accent);color:white;border:0;border-radius:6px}.zoom-content{overflow:auto;max-height:82dvh;background:#f7f9ff;padding:12px}.zoom-content img{display:block;width:1200px;max-width:none;height:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}@media(hover:hover){.lesson-choice:hover{background:#edf3fc;box-shadow:0 4px 14px #233d5910}a:hover{text-decoration:underline}button:hover:not(:disabled){background:#e9f0fa}}@media(max-width:750px){.nav{padding:10px 16px;flex-wrap:wrap;gap:10px}nav{font-size:12px;gap:16px}.brand .partner-logo{max-height:32px}main{padding:18px 14px 32px}.lesson-heading{margin-bottom:16px}h1{font-size:25px}.lesson-heading p{font-size:14px}.lesson-layout{grid-template-columns:minmax(0,1fr);gap:16px}.lesson-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.lesson-choice{padding:10px 8px;gap:8px;border-radius:9px}.lesson-choice strong{font-size:13px;line-height:1.4}.lesson-choice small{font-size:10px;line-height:1.5}.lesson-id{font-size:12px;padding:4px}.choice-arrow{display:none}.detail-heading{padding:16px 14px 10px}h2{font-size:21px}.detail-heading p{font-size:13px}.lesson-tabs{padding:0 14px}.reader-toolbar{padding:10px;gap:8px}.reader-links{width:100%;justify-content:space-between}.page-frame{padding:8px}.page-frame img{max-height:60dvh}.code-frame{padding:6px}#codePanel{padding:14px}footer{padding:18px 16px}.zoom-content img{width:1000px}.lesson-notes{margin:14px}.list-caption{margin-bottom:6px}}
/* Preview-first workspace: topic context stays beside the document. */
main{padding-top:20px}.lesson-heading{margin-bottom:18px}.lesson-heading h1{font-size:28px;margin:8px 0 5px}.lesson-heading p{font-size:14px}.lesson-layout{grid-template-columns:270px minmax(0,1fr);gap:20px}.lesson-choice{padding:10px;gap:10px}.lesson-choice strong{font-size:14px}.lesson-choice small{font-size:11px}.lesson-list{gap:6px}.detail-heading{margin-top:14px;padding:14px;background:#edf3fb;border-radius:10px}.detail-heading h2{font-size:18px;margin:4px 0}.detail-heading p{font-size:13px;line-height:1.65;margin:6px 0}.detail-heading .equipment{font-size:12px}.detail-kicker{font-size:11px}.lesson-tabs{padding:0 16px}.lesson-tabs button{padding:11px 2px}.reader-toolbar{padding:9px 16px;justify-content:flex-end}.reader-links{gap:16px}.page-frame{position:relative;padding:12px 52px;min-height:300px}.page-sheet{width:100%;display:flex;justify-content:center;min-width:0}.page-frame img{max-height:calc(100dvh - 310px);min-height:0;max-width:100%;width:auto;object-fit:contain}.page-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:56px;padding:0;border:1px solid #cfdbe9;border-radius:10px;background:#fffffff2;color:var(--accent);font-size:34px;line-height:1;box-shadow:0 3px 10px #243b6210}.page-arrow-prev{left:7px}.page-arrow-next{right:7px}.page-arrow:disabled{opacity:.3}.reader-footer{display:flex;align-items:center;justify-content:center;gap:20px;padding:10px 16px;border-bottom:1px solid var(--line)}.reader-footer>span{font-size:12px;color:var(--muted)}.reader-tip{display:none}.lesson-notes{margin:10px 16px}.lesson-next{padding:8px 16px 14px}.zoom-pager{display:flex;justify-content:center;align-items:center;gap:24px;padding:8px;border-bottom:1px solid var(--line);background:white}.zoom-pager button{border:1px solid var(--line);background:#f3f7fc;border-radius:7px;color:var(--accent);font-size:24px;width:44px;height:40px}.zoom-content{max-height:calc(94dvh - 126px)}@media(max-width:750px){main{padding:14px 12px 28px}.lesson-heading h1{font-size:24px}.lesson-layout{grid-template-columns:minmax(0,1fr);gap:12px}.lesson-list{gap:6px}.lesson-choice{padding:8px;min-height:62px}.lesson-choice strong{font-size:13px}.lesson-choice small{font-size:10px}.detail-heading{margin-top:10px;padding:10px 12px}.detail-heading h2{font-size:17px;margin:2px 0}.detail-heading p{font-size:12px;margin:4px 0}.detail-heading .equipment{font-size:12px}.reader-links{width:auto;flex-wrap:wrap;gap:14px}.reader-toolbar{padding:8px 10px}.page-frame{padding:8px 37px;min-height:185px}.page-frame img{max-height:60dvh}.page-arrow{width:30px;height:46px;border-radius:8px;font-size:28px}.page-arrow-prev{left:3px}.page-arrow-next{right:3px}.reader-footer{gap:12px;padding:8px}.reader-footer>span{font-size:11px}.lesson-tabs button{font-size:14px}}
