:root{font-size:18px;--ink:#17333e;--muted:#58717b;--navy:#102b36;--green:#087c68;--mint:#e8f5ee;--orange:#b65d20;--line:#d9e4e7;--paper:#f3f7f8;--math:"Times New Roman",Cambria,serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;line-height:1.7}button,input,select{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:8px 15px;font-weight:600;transition:background .15s}button:hover{background:#e8f3ef}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d58837;outline-offset:4px}a{color:var(--green)}h1,h2,h3,h4,p{margin:0}h1,h2,h3{letter-spacing:.025em}h1{font-size:2.8rem;line-height:1.28;font-weight:750}h2{font-size:1.85rem;line-height:1.4}h3{font-size:1.3rem;line-height:1.5}p+p{margin-top:10px}.topbar{height:88px;position:sticky;top:0;z-index:20;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}.brand{display:flex;gap:13px;align-items:center;color:white;text-decoration:none;font-size:1.22rem;font-weight:700;letter-spacing:.1em;line-height:1.45}.brand svg{width:44px;height:44px;fill:none;stroke:#85dbc3;stroke-width:1.6}.brand .brand-dot{fill:#f5bc78;stroke:var(--navy)}.brand-sub{display:block;letter-spacing:.13em;font-size:.68rem;font-weight:400;color:#b9d1d8}.top-actions{display:flex;gap:10px}.top-actions button{color:#eef7f8;background:#203f4b;border-color:#43606b;font-size:.85rem}.top-actions button:hover,.top-actions button[aria-pressed=true]{background:#c9f1e2;color:var(--navy)}.help-button{width:44px;font-family:var(--math);font-size:1.1rem!important}.app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);max-width:1640px;margin:auto}.sidebar{position:sticky;top:88px;height:calc(100dvh - 88px);overflow:auto;padding:30px 20px 20px;border-right:1px solid var(--line);background:#f9fbfb}.course-heading{font-weight:700;margin:0 8px 24px}.course-heading span{display:block;color:var(--muted);font-size:.76rem;font-weight:400;margin-top:3px}nav .nav-group{font-size:.72rem;color:#6a7d85;letter-spacing:.13em;margin:22px 12px 9px}nav button{border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:10px 12px;font-size:.89rem;font-weight:500;margin:3px 0}nav button .nav-icon{font-family:var(--math);font-size:1.4rem;min-width:24px;color:#617e88;line-height:1}nav button[aria-current=page]{background:#dfefe9;color:#086653;font-weight:700}nav button[aria-current=page] .nav-icon{color:var(--green)}.sidebar-foot{font-size:.72rem;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin:26px 8px}.sidebar-foot p{letter-spacing:.08em;margin-top:6px}.tiny-circle{display:inline-block;width:10px;height:10px;border:2px solid var(--green);border-radius:50%;margin-right:7px}main{padding:0 40px 25px;min-width:0}main:focus{outline:none}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px 0 34px;border-bottom:1px solid var(--line);margin-bottom:30px}.eyebrow{font-size:.68rem;letter-spacing:.16em;font-weight:700;color:var(--green);margin-bottom:9px}.intro h1{margin-bottom:15px}.intro>div>p:last-child{color:var(--muted);font-size:.9rem}.intro-note{background:#e5f0ed;border-radius:10px;display:flex;gap:15px;padding:23px;transform:rotate(-2deg);max-width:360px}.intro-note p{font-size:.84rem;color:var(--muted);margin-top:6px}.note-symbol{font-family:var(--math);font-size:2.7rem;line-height:1.1;color:var(--green)}.lesson-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.lesson-header p:last-child{color:var(--muted);font-size:.9rem;margin-top:9px;max-width:670px}.lesson-badge{flex-shrink:0;font-size:.77rem;border:1px solid #b9d8cd;color:var(--green);padding:5px 11px;border-radius:30px}.experiment{border:1px solid #cbdcdd;background:white;border-radius:13px;overflow:hidden;box-shadow:0 5px 20px #102b3606}.experiment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:15px 23px}.experiment-toolbar>div{display:flex;gap:15px;align-items:center;font-size:.82rem;color:var(--muted)}.section-chip{font-size:.72rem;font-weight:700;letter-spacing:.08em;padding:3px 8px;border-radius:4px;background:var(--mint);color:var(--green);white-space:nowrap}.text-button{border:0;background:transparent;padding:5px;color:var(--green);font-size:.85rem;text-decoration:underline;text-underline-offset:5px}.experiment-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px}.graph-column{min-width:0}.graph-wrap{position:relative;isolation:isolate;padding:10px;background:#fcfefd;overflow:hidden}#graph{display:block;width:100%;height:auto;min-height:300px;max-height:590px;touch-action:pan-y}#graph text{font-family:var(--math);font-size:17px;fill:var(--ink);pointer-events:none}#graph .axis-label{font-style:italic;font-size:20px}#graph .tick{font-size:14px;fill:#7c9299}#graph .point-label{font-size:20px;font-weight:700;paint-order:stroke;stroke:#fcfefd;stroke-width:5px;stroke-linejoin:round}#graph .svg-note{font-family:"Microsoft JhengHei",sans-serif;font-size:17px;fill:var(--muted);paint-order:stroke;stroke:#fcfefd;stroke-width:4px}#graph .handle{cursor:grab;touch-action:none;outline:none}#graph .handle:focus .hit{stroke:#c17827;stroke-width:3;fill:#fff1d2}#graph .hit{fill:transparent;stroke:transparent}#graph .handle:active{cursor:grabbing}.graph-label{position:absolute;bottom:17px;right:20px;font-size:.7rem;color:#738a91;background:#fcfefdcc;padding:2px 7px}.graph-options{display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid var(--line);padding:13px 22px;font-size:.78rem;color:var(--muted)}label{cursor:pointer}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;vertical-align:-3px;margin-right:6px}.control-panel{padding:24px 22px;border-left:1px solid var(--line);background:#f8fbfa;min-width:0}.control-panel h3{font-size:1.05rem;margin-bottom:8px}.control-panel .lead{font-size:.8rem;color:var(--muted);margin-bottom:18px}.range-control{display:block;margin:16px 0}.range-title{display:flex;justify-content:space-between;font-size:.85rem;gap:8px}.range-title output{color:var(--green);font-family:var(--math);font-size:1rem;font-weight:700}input[type=range]{display:block;width:100%;height:32px;accent-color:var(--green);cursor:pointer;margin:4px 0 0}.button-row{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.button-row button{font-size:.78rem;padding:6px 10px;min-height:40px}.button-row button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.control-panel select{width:100%;border:1px solid #afc7c2;border-radius:6px;background:white;min-height:44px;margin:8px 0;padding:6px}.readout{margin-top:20px;border-top:1px solid #cddfda;padding-top:18px}.readout .result-title{font-size:.78rem;color:var(--muted);margin-bottom:8px}.readout .result-large{font-size:1.2rem;color:var(--green);font-weight:700;line-height:1.6;margin-bottom:10px}.readout .math{font-size:1.03rem}.readout p{font-size:.83rem}.pill{display:inline-block;border-radius:5px;padding:3px 9px;font-size:.8rem;font-weight:700;background:#dff1e9;color:#086451}.pill.orange{background:#fff0dd;color:#965313}.discussion{background:#eaf4f0;padding:19px 23px;display:grid;grid-template-columns:68px 1fr;gap:8px 16px;border-top:1px solid #d7e9df}.discussion>span{font-weight:700;color:var(--green);font-size:.9rem}.discussion>p{font-size:.92rem}.discussion details{grid-column:2}.discussion summary{font-size:.82rem;cursor:pointer;color:var(--green);padding:4px 0}.discussion details div{font-size:.87rem;padding-top:7px;color:#35564e;line-height:1.9}.understanding{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0 36px}.concept-card{border:1px solid var(--line);border-radius:9px;padding:21px 23px;background:white}.concept-card h3{font-size:.95rem;margin-bottom:8px}.concept-card p{font-size:.87rem;color:var(--muted)}.concept-card .math{color:var(--ink)}.concept-card.warning{border-left:4px solid #d89844;background:#fffaf2}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:17px}.muted{font-size:.8rem;color:var(--muted)}.example-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.example-tabs{display:flex;gap:8px;padding:15px 23px;border-bottom:1px solid var(--line);background:#f8fbfc}.example-tabs button{font-size:.8rem;min-height:38px;padding:5px 12px}.example-tabs button[aria-selected=true]{background:var(--navy);color:white;border-color:var(--navy)}#example{padding:25px 28px}.example-source{font-size:.72rem;color:var(--muted);margin-bottom:9px}.problem{font-size:1rem;line-height:1.95}.problem .math{font-size:1.12rem}.example-prompt{color:var(--green);background:#eff7f3;padding:13px 17px;margin:20px 0 15px;border-radius:6px;font-size:.88rem}.solution-steps{list-style:none;margin:0;padding:0;counter-reset:step}.solution-steps li{counter-increment:step;position:relative;padding:13px 0 13px 42px;border-top:1px solid #e3ecec;font-size:.92rem}.solution-steps li:before{content:counter(step);font-family:var(--math);position:absolute;left:0;top:14px;width:26px;height:26px;border:1px solid #c1d6d0;color:var(--green);border-radius:50%;text-align:center;line-height:24px}.solution-steps li p{font-size:.82rem;color:var(--muted);margin:5px 0 0}.solution-steps li.final{background:#edf6f0;border-radius:7px;padding-right:15px;font-weight:700}.example-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.example-actions button{font-size:.84rem}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#066451}.checkpoint{margin:28px 0;border:1px solid #b9d3ce;background:#eaf3f1;border-radius:10px;padding:24px 27px}.checkpoint h3{font-size:1.08rem;margin:12px 0 18px}.quiz-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quiz-options button{font-size:.87rem;text-align:left;font-weight:500;padding:13px 16px}.quiz-options button.correct{background:#08735f;color:white;border-color:#08735f}.quiz-options button.wrong{border:2px solid #b96b28;background:#fff5e7}.checkpoint>p{font-size:.88rem;margin-top:14px}.lesson-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:32px 0}.lesson-bottom span{font-size:.8rem;color:var(--muted)}.lesson-bottom button{font-size:.85rem}footer{border-top:1px solid var(--line);padding-top:22px;font-size:.72rem;color:var(--muted)}footer strong{font-size:.86rem;color:var(--ink)}footer p{margin:7px 0;max-width:750px}.math{font-family:var(--math);font-size:1.1em;letter-spacing:.015em;overflow-wrap:anywhere}.math i{font-style:italic}sup,sub{font-family:var(--math);font-size:.72em;line-height:0}sup{vertical-align:super}sub{vertical-align:sub}.equation{display:block;line-height:2;padding:5px 0}.radical{white-space:nowrap}.radical>span{border-top:1px solid currentColor;padding:0 .12em}.warning-note{background:#fff0d9;border-left:3px solid #c47b28;color:#794716;padding:12px 14px;font-size:.84rem;margin:14px 0}.success-note{background:#dff3e8;color:#145b48;padding:12px 14px;font-size:.84rem;margin:14px 0;border-radius:5px}.step-progress{font-size:.75rem;color:var(--muted);margin:12px 0}.mini-equation{font-family:var(--math);font-size:1.1rem;line-height:2}.algebra-step{padding:9px 0;border-bottom:1px solid var(--line)}.algebra-step em{font-style:normal;color:var(--green);font-weight:700}.algebra-step .reason{font: .77rem/1.7 "Microsoft JhengHei",sans-serif;color:var(--muted)}.small-note{font-size:.76rem;color:var(--muted);margin-top:10px}.coefficient-label{font-size:.84rem;display:block;margin-top:14px}dialog{border:0;border-radius:13px;max-width:720px;width:calc(100% - 30px);max-height:85dvh;padding:35px;color:var(--ink);box-shadow:0 20px 90px #0004;overflow:auto}dialog::backdrop{background:#071b25aa}dialog h2{font-size:1.7rem;margin-bottom:16px}dialog h3{margin-top:20px}dialog p,dialog li{font-size:.92rem}dialog li{margin:8px 0}.dialog-close{float:right;font-size:.8rem;margin:0 0 15px 20px}.skip{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:10px}.skip:focus{top:10px}.mobile-nav{display:none}[hidden]{display:none!important}.projection{font-size:22px}.projection .intro{display:none}.projection .lesson-header{margin-top:28px}.projection .app-shell{grid-template-columns:230px minmax(0,1fr);max-width:1920px}.projection .sidebar{padding:20px 12px}.projection nav button{font-size:.8rem}.projection .experiment-grid{grid-template-columns:minmax(0,1fr) 320px}.projection .control-panel{padding:20px}.projection #graph text{font-size:20px}.projection #graph .tick{font-size:16px}.projection #graph .point-label{font-size:23px}.projection main{padding-inline:30px}.projection .course-heading span,.projection .sidebar-foot{display:none}
@media(min-width:1500px){main{padding-inline:55px}.experiment-grid{grid-template-columns:minmax(0,1fr) 320px}.control-panel{padding:26px}.intro h1{font-size:3.1rem}}
@media(max-width:1180px){.app-shell,.projection .app-shell{grid-template-columns:210px minmax(0,1fr)}main,.projection main{padding-inline:25px}.sidebar{padding:22px 10px}.intro-note{max-width:280px;padding:18px;gap:10px}.intro-note strong{font-size:.86rem}.intro-note p{font-size:.76rem}h1{font-size:2.3rem}.experiment-grid,.projection .experiment-grid{grid-template-columns:minmax(0,1fr) 250px}.control-panel{padding:20px 17px}.experiment-toolbar{padding:13px 17px}.experiment-toolbar>div{gap:8px;font-size:.75rem}.understanding{gap:12px}.concept-card{padding:18px}#graph{min-height:260px}.quiz-options{grid-template-columns:1fr}}
@media(max-width:920px){.topbar{padding-inline:22px;height:80px}.app-shell,.projection .app-shell{display:block}.sidebar{display:none}.mobile-nav{display:flex;gap:14px;align-items:center;margin:20px 0;color:var(--muted);font-size:.85rem}.mobile-nav select{border:1px solid #bed0d4;border-radius:7px;background:white;min-height:44px;padding:6px 35px 6px 12px;min-width:0;max-width:100%;color:var(--ink)}.intro{padding-top:8px}.experiment-grid,.projection .experiment-grid{grid-template-columns:minmax(0,1fr) 280px}main,.projection main{padding-inline:28px}.lesson-header{margin-top:25px}.projection{font-size:21px}}
@media(max-width:640px){:root{font-size:18px}.topbar{padding-inline:14px;height:74px;gap:8px}.brand{font-size:1rem;gap:7px;letter-spacing:.02em}.brand svg{width:33px;height:33px}.brand-sub{font-size:.55rem;letter-spacing:.06em}.top-actions{gap:5px}.top-actions button{font-size:.72rem;padding:6px 8px;min-height:40px}.top-actions .help-button{width:33px;min-width:33px}#fullscreen{display:none}main,.projection main{padding-inline:15px}.mobile-nav{margin:16px 0;gap:10px}.mobile-nav label{white-space:nowrap;font-size:.78rem}.mobile-nav select{flex:1;width:100%;font-size:.84rem}.intro{display:block;padding-block:13px 24px;margin-bottom:22px}h1{font-size:2.15rem;line-height:1.35}.intro h1 br{display:none}.intro>div>p:last-child{font-size:.82rem}.intro-note{display:none}.lesson-header{align-items:flex-start;gap:8px;margin-bottom:18px}h2{font-size:1.55rem}.lesson-header p:last-child{font-size:.85rem}.lesson-badge{font-size:.67rem;padding:4px 7px;margin-top:30px}.eyebrow{font-size:.63rem}.experiment-toolbar{padding:12px 14px;align-items:flex-start}.experiment-toolbar>div{flex-wrap:wrap;gap:5px}.experiment-toolbar .text-button{white-space:nowrap;font-size:.74rem;min-height:36px}.experiment-grid,.projection .experiment-grid{display:block}.graph-wrap{padding:3px}#graph{min-height:0;max-height:none}.graph-label{font-size:.63rem;bottom:8px;right:8px}.graph-options{padding:12px 13px;gap:10px;font-size:.73rem}.control-panel{border-left:0;border-top:1px solid var(--line);padding:20px}.control-panel h3{font-size:1.05rem}.control-panel .lead{font-size:.85rem}.control-panel .range-control{margin:11px 0}.range-title{font-size:.9rem}.range-title output{font-size:1.1rem}#controls .button-row button{font-size:.83rem}.readout{margin-top:16px;padding-top:15px}.readout p{font-size:.9rem}.readout .result-large{font-size:1.2rem}.discussion{padding:18px;grid-template-columns:1fr;gap:6px}.discussion>p{font-size:.9rem}.discussion details{grid-column:1}.discussion details div{font-size:.87rem}.understanding{grid-template-columns:1fr;margin:16px 0 28px;gap:12px}.concept-card{padding:18px}.concept-card h3{font-size:1rem}.concept-card p{font-size:.9rem}.section-heading{gap:10px}.section-heading .muted{display:none}.example-tabs{padding:13px 16px;gap:7px;flex-wrap:wrap}#example{padding:20px 18px}.problem{font-size:.98rem}.example-prompt{font-size:.88rem;padding:12px;margin:17px 0 10px}.solution-steps li{padding-left:36px;font-size:.95rem}.solution-steps li p{font-size:.85rem}.checkpoint{padding:20px 18px}.quiz-options button{font-size:.92rem}.checkpoint h3{font-size:1.05rem}.lesson-bottom{margin:25px 0;gap:7px}.lesson-bottom button{font-size:.8rem;padding:7px 10px}.lesson-bottom span{font-size:.7rem}footer{font-size:.75rem}dialog{padding:25px}.projection{font-size:20px}.projection .lesson-header{margin-top:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.topbar,.sidebar,.intro,.mobile-nav,.experiment-toolbar,.graph-options,#controls,.lesson-bottom,footer,.example-actions,.example-tabs,.quiz-options,.checkpoint{display:none!important}.app-shell{display:block}main{padding:0}.experiment-grid{grid-template-columns:1fr 240px}.readout{margin:0;border:0}.experiment,.concept-card,.example-card{break-inside:avoid;box-shadow:none}.understanding{margin:15px 0}.discussion details{display:block}.math{color:black}body{background:white;font-size:12pt}.lesson-header{margin-top:0}}

.lesson-header{scroll-margin-top:110px}.full-derivation{grid-column:1/-1}

@media(max-width:640px){#graph .point-label{font-size:26px}#graph .svg-note{font-size:24px}#graph .tick{font-size:17px}.lesson-header{display:block}.lesson-badge{display:inline-block;margin-top:12px}}
