*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:#192f32;background:#f5f7f5;font:16px/1.65 "Inter","Microsoft YaHei UI","PingFang SC",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button,select,summary{cursor:pointer}button{color:inherit;background:none;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #dc8d32;outline-offset:3px}a{color:#086861}.skip{position:absolute;left:-100vw}.skip:focus{left:20px;top:4px;z-index:30;background:white;padding:10px}h1,h2,h3,p{margin:0}h2{font-size:1.24rem}h3{font-size:1.02rem}.topbar{display:flex;align-items:center;gap:16px;justify-content:space-between;background:#fff;border-bottom:1px solid #d4deda;padding:0 clamp(16px,2.3vw,42px);height:65px;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px}.brand strong{font-size:1.22rem;letter-spacing:.06em}.brandmark{width:37px;height:37px;border-radius:9px;color:#dbfff4;background:#0b5555;display:grid;place-items:center}.brandmark svg{width:34px}.brandsep{height:18px;border-left:1px solid #c5ceca;margin:0 2px}.subbrand{font-size:.91rem;color:#536864}.topaction,.menu,.outline{border:1px solid #cad6d0;border-radius:7px;padding:5px 13px;background:#fff;font-size:.9rem;font-weight:600}.topaction{margin-left:auto}.topaction span{font:1.42rem/1 Georgia;vertical-align:-1px;margin-right:4px}.menu{display:none}.layout{display:grid;grid-template-columns:clamp(200px,17vw,265px) 1fr;min-height:calc(100vh - 65px)}.sidebar{background:#fbfcfa;border-right:1px solid #d5ded9;padding:27px 13px 20px;display:flex;flex-direction:column;align-self:start;position:sticky;top:0;min-height:calc(100vh - 65px)}.rail-title{display:flex;align-items:center;justify-content:space-between;margin:2px 13px 14px;color:#556963;font-weight:650;font-size:.89rem}.rail-title b{font-size:.77rem;font-weight:500;color:#697971}.sidebar nav{display:grid;gap:4px}.chapterlink{display:flex;align-items:center;gap:13px;text-align:left;border-radius:6px;padding:10px 12px;line-height:1.55;width:100%;font-size:.93rem;position:relative}.chapterlink span{font:500 .81rem "Cascadia Mono",Consolas,monospace;letter-spacing:.02em;color:#70847c}.chapterlink:hover,.navlink:hover{background:#ecf2ed}.chapterlink.current{color:#075a53;background:#dceee4;font-weight:750}.chapterlink.current span{color:#085e55}.chapterlink.current:before{content:'';height:15px;width:3px;background:#16726c;position:absolute;left:0;border-radius:2px}.railfoot{margin:35px 7px 0;padding:15px 1px;border-top:1px solid #d5dfd9;display:flex;align-items:center;gap:9px}.railfoot strong,.railfoot small{display:block}.railfoot strong{font-size:.86rem}.railfoot small{font-size:.73rem;color:#697871}.railfoot button{margin-left:auto;font-size:.77rem;color:#106c62;text-decoration:underline}.stackicon{font-size:1.55rem;color:#547268}main{padding:25px clamp(18px,3.1vw,60px) 65px;min-width:0;max-width:1690px;width:100%;margin-inline:auto}.chapter-meta{display:flex;align-items:center;gap:10px;font-size:.8rem;letter-spacing:.09em;color:#34665d;font-weight:700}.chapter-meta i{width:23px;height:2px;background:#238578}h1{font-size:clamp(1.8rem,2.65vw,3rem);letter-spacing:-.045em;line-height:1.28;margin:6px 0 8px}.chapter-head p{color:#596b65;line-height:1.65;max-width:80em}.tabs{display:flex;gap:clamp(14px,2.1vw,40px);border-bottom:1px solid #cbd7cf;margin:15px 0 22px;flex-wrap:wrap}.tab{font-size:.93rem;padding:10px 2px 9px;display:flex;gap:6px;align-items:center;font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px;color:#566860}.tab.active{color:#086455;border-bottom-color:#117365}.ico{width:18px;height:18px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.labgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(202px,23%);background:white;border:1px solid #cdd9d1;border-radius:13px;overflow:hidden}.scope{background:#112e33;color:#e7faf2;min-width:0;display:flex;flex-direction:column}.scopehead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:17px 20px 4px}.scopehead h2{color:#edfff9;font-size:1.14rem}.scopehead .type{display:inline-block;font:600 .72rem/1.7 Consolas,monospace;letter-spacing:.08em;color:#9bc0b6;border:1px solid #54736d;padding:0 6px;border-radius:3px;white-space:nowrap}.stage{position:relative;display:flex;flex:1;align-items:center}.stage canvas{width:100%;height:auto;display:block}.scopebar{border-top:1px solid #345054;display:flex;align-items:center;gap:11px;padding:12px 16px;flex-wrap:wrap;min-height:54px;font-size:.87rem}.play{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:4px 12px;background:#a3ecd1;color:#0b3634;font-weight:650;min-width:72px;justify-content:center}.smallbtn{color:#d9ebe6;padding:4px}.scrub{flex:1;min-width:70px}.degree{font: .84rem Consolas,monospace;color:#cbe2db;min-width:38px;text-align:right}.scopebar select{color:#e4f2ed;background:#193a3f;border:1px solid #4e6968;border-radius:4px;padding:2px}.controls{padding:17px 18px 15px;display:flex;flex-direction:column;gap:13px}.controls h3{font-size:.92rem}.ctrl{display:block}.ctrlhead{display:flex;justify-content:space-between;align-items:baseline;gap:5px;font-size:.86rem}.ctrlhead output{font-family:Consolas,"Microsoft YaHei",monospace;color:#17695b;font-weight:700}.controls input,.scrub{accent-color:#25866e}input[type=range]{width:100%;margin:7px 0 3px;cursor:pointer}.scopebar input{width:40px;accent-color:#9ee6cb}.readouts{display:grid;gap:7px;padding-top:11px;border-top:1px solid #d8e2db}.readrow{display:flex;justify-content:space-between;gap:8px;font-size:.82rem;color:#566b62}.readrow b{text-align:right;color:#203f37;font-size:.85rem;overflow-wrap:anywhere}.readrow b,.degree{font-variant-numeric:tabular-nums}.tip{display:flex;align-items:baseline;gap:13px;background:#ecf3ed;border-left:3px solid #408574;padding:12px 15px;border-radius:0 5px 5px 0;margin:15px 0 21px;font-size:.94rem;color:#314e43}.tip b{color:#185f50;white-space:nowrap}.sectionline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.linkbtn,.ref{padding:0;text-align:left;color:#09665a;font-size:.83rem;font-weight:600}.linkbtn:hover,.ref:hover{text-decoration:underline}.cards,.twocol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.card,.problem,.reader,.rule{background:white;border:1px solid #d3ddd4;border-radius:9px;padding:17px 20px;min-width:0}.card p,.rule p,.problem p{margin:7px 0;color:#445b51;line-height:1.75}.card h3,.rule h3{color:#214d40}.formula{font-family:"Cambria Math","Times New Roman","Microsoft YaHei",serif;font-size:1.24rem;color:#0a554d;line-height:1.55;overflow-wrap:anywhere;padding:8px 12px;margin:10px 0;background:#eff6ef;border-radius:5px;white-space:pre-line}.refs{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:10px}.ref{font-size:.77rem;font-weight:500;color:#537169;line-height:1.65}.ref:before{content:'▤ ';color:#41786b}.problem{margin:12px 0 18px}.problem .question{font-weight:650;color:#173c33}.answerform,.readerbar,.reader-nav{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.answerform{margin:12px 0}.answerform input,.readerbar input,.readerbar select,.reader-nav input,.catalog select{border:1px solid #bbccc2;border-radius:5px;background:white;padding:5px 8px;min-width:0}.answerform input{width:10em}.primary{background:#12685a;color:white;padding:6px 14px;border-radius:5px;font-size:.89rem}.feedback{font-size:.9rem;font-weight:650}.feedback.good{color:#096a48}.feedback.bad{color:#8d4a18}.problem summary{font-size:.9rem;color:#235a4b;width:fit-content}.problem ol{padding-left:24px}.problem li{margin:5px 0}.reader{padding:16px}.readerbar{justify-content:space-between}.readerbar label{font-size:.88rem}.readerbar select{max-width:100%;margin:0 5px}.reader-nav{justify-content:center;font-size:.9rem}.reader-nav input{width:4.25em}.slidebox{display:block;width:100%;margin:13px auto 12px;padding:7px;background:#e6ebe7;border-radius:5px}.slidebox img{display:block;object-fit:contain;width:100%;max-height:70vh}.outline:disabled{opacity:.45;cursor:default}.resource{margin:14px 0}.searchbar{display:flex;align-items:center;gap:10px;padding:4px 12px;border:1px solid #a1b5ab;border-radius:7px}.searchbar input{border:0;background:transparent;outline:none;width:100%;padding:7px;color:#143a31}.searchbar:focus-within{outline:2px solid #218170}dialog{color:inherit;background:#fbfcfa;border:1px solid #bccfc2;border-radius:13px;padding:18px;width:min(650px,94vw);max-height:85vh;box-shadow:0 18px 85px #16392c39}dialog::backdrop{background:#09252080}.dialoghead{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}.dialoghead button{font:1.6rem/1.25 Arial;padding:0 8px}.searchhit{display:block;width:100%;text-align:left;padding:9px 5px;border-bottom:1px solid #dce6df}.searchhit small{display:block;color:#597365;overflow-wrap:anywhere}.searchhit:hover{background:#ecf2ed}#search-results{margin-top:13px}.searchnote{font-size:.84rem;color:#617668;margin:8px 0}.large-slide{overflow:auto;max-height:75vh}.large-slide img{display:block;max-width:none;width:auto;max-height:none}#zoom-dialog{width:fit-content;max-width:96vw}.catalog{display:flex;align-items:center;gap:8px;margin-bottom:10px}.smallnote{color:#617668;font-size:.84rem}.navlink{display:inline-block;border:1px solid #cbdacf;border-radius:5px;text-decoration:none;font-size:.89rem;padding:5px 12px}.empty{padding:25px 0}.range-ticks{display:flex;justify-content:space-between;color:#697972;font-size:.72rem}.sourcefiles{display:flex;flex-wrap:wrap;gap:6px 12px}.sourcefiles button{font-size:.85rem}.sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@media(min-width:1550px){main{padding-top:35px}.chapterlink{padding-block:12px}.scopehead{padding-top:22px}.controls{padding:22px}.stage canvas{max-height:440px;object-fit:contain}}
@media(max-width:1120px){.layout{grid-template-columns:195px 1fr}.labgrid{grid-template-columns:minmax(0,1fr)}.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;align-items:start}.controls h3{grid-column:1/-1}.readouts{padding:0;border:0}.scopehead{padding-bottom:0}.sidebar{padding-inline:8px}main{padding-inline:20px}.railfoot{flex-wrap:wrap}}
@media(max-width:760px){.layout{display:block}.topbar{height:58px;padding:0 12px;gap:7px}.brand{gap:6px}.brandsep,.subbrand{display:none}.brand strong{font-size:1.06rem}.topaction,.menu{font-size:.8rem;padding:4px 8px}.menu{display:block}.sidebar{display:none;min-height:auto;position:static;padding:13px;border-bottom:1px solid #c8d6cc}.sidebar.open{display:flex}.sidebar nav{grid-template-columns:1fr 1fr}.chapterlink{padding:6px 9px}.railfoot{margin:10px 0 0}.tabs{gap:14px;flex-wrap:nowrap;overflow-x:auto;margin-bottom:15px}.tab{font-size:.85rem;white-space:nowrap}.tab svg{width:15px}.cards,.twocol{grid-template-columns:1fr}main{padding:19px 12px 35px}.chapter-head p{font-size:.92rem}.scopehead{padding:12px 12px 4px}.scopehead h2{font-size:1rem}.scopebar{padding:8px;gap:6px}.tip{display:block}.tip b{margin-right:8px}.controls{padding:12px}.readerbar{display:block}.readerbar select{display:block;margin:4px 0;width:100%}.reader-nav{gap:4px}.reader{padding:9px}.card,.problem,.rule{padding:14px}.range-ticks{display:none}.chapter-meta{font-size:.75rem}.scopebar .smallbtn{font-size:.78rem}.brandmark{width:30px;height:30px}.brandmark svg{width:29px}}
@media(max-width:400px){.tabs{gap:10px}.tab{gap:3px}.scopehead .type{font-size:.75rem}.controls{grid-template-columns:1fr 1fr}.readouts{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}}
@media print{.topbar,.sidebar,.tabs,.scopebar,.controls,.menu,.reader-nav,.answerform,.chapter-meta,.ref{display:none}.layout{display:block}main{padding:0}.card,.problem,.rule{break-inside:avoid}}
#labgrid:fullscreen,#labgrid.wide-lab{width:100vw;height:100dvh;background:#112e33;border:0;border-radius:0;display:flex;flex-direction:column;overflow:auto}#labgrid:fullscreen .scope,#labgrid.wide-lab .scope{flex:1;min-height:0}#labgrid:fullscreen .stage,#labgrid.wide-lab .stage{min-height:0;justify-content:center}#labgrid:fullscreen canvas,#labgrid.wide-lab canvas{height:100%;max-height:65vh;object-fit:contain}#labgrid:fullscreen .controls,#labgrid.wide-lab .controls{background:white;display:flex;flex-direction:row;gap:20px;align-items:center;flex-wrap:wrap}#labgrid.wide-lab{position:fixed;inset:0;z-index:30}.scopehead .type .ico{height:13px;width:13px}.scopehead .type:hover{background:#23494b}
