:root{--bg:#dfe4f2;--panel:#eef1fa;--panel2:#e2e8f6;--white:#f6f8fe;--line:#3a5fa8;--line2:#9aaaca;--accent:#b12d89;--blue:#2b5797;--text:#1a2440;--dim:#5a6685;--green:#07886a;--warn:#a96400;--bad:#b52c3c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;font-size:13px;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,select{font:inherit;color:inherit}button,select{border:1px solid var(--line2);border-radius:4px;background:var(--white);padding:6px 9px}button{cursor:pointer}button:hover{background:#dce6fb;border-color:var(--blue)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #d487bb;outline-offset:2px}input:not([type=range]):not([type=checkbox]),select{min-width:0}input:not([type=range]):not([type=checkbox]){border:1px solid var(--line2);background:#fff;border-radius:3px;padding:5px 7px;max-width:100%}input[type=range]{accent-color:var(--accent)}a{color:var(--blue)}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#194578}.wide{width:100%;margin-top:8px}.tag{font-size:10px;color:var(--dim);border:1px solid #bac5dd;border-radius:12px;padding:3px 7px;white-space:nowrap;background:#f5f7fc}.fine{font-size:11px;line-height:1.65;color:var(--dim)}#topbar{min-height:52px;padding:8px 14px;display:flex;gap:10px;align-items:center;border-bottom:2px solid var(--line);background:linear-gradient(#f5f7ff,#dde3f4);flex-shrink:0}.brand{font-weight:800;font-size:18px;text-decoration:none;white-space:nowrap;color:var(--text)}.brand span{color:var(--accent);margin:0 6px}.brand small{font-size:11px;color:var(--dim);font-weight:500}.lamp{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}.lamp i{width:8px;height:8px;background:var(--green);border-radius:50%;box-shadow:0 0 5px #07886a60}.lamp b{font-weight:500;min-width:38px}.transport{display:flex;gap:5px}.transport button{width:32px}.timeline{display:flex;align-items:center;gap:8px;flex:1;min-width:100px}.timeline output{font-variant-numeric:tabular-nums;font-size:11px;white-space:nowrap}.timeline input{min-width:50px;width:100%}#tabs{display:flex;flex-shrink:0;background:var(--panel2);border-bottom:1px solid var(--line2)}#tabs button{border:0;border-right:1px solid var(--line2);border-radius:0;background:transparent;display:flex;align-items:center;gap:7px;padding:10px 20px;color:var(--dim)}#tabs button[aria-selected=true]{box-shadow:inset 0 -3px var(--accent);background:white;color:var(--text);font-weight:700}#tabs em{display:grid;place-content:center;font-style:normal;background:#bdc8e0;color:white;border-radius:50%;width:19px;height:19px;font-size:11px}#tabs [aria-selected=true] em{background:var(--accent)}#tabs small{font-size:11px;font-weight:400}main{flex:1;min-height:0;position:relative}.page{height:100%;display:flex;flex-direction:column}.page[hidden]{display:none!important}.modebar{display:flex;align-items:center;gap:8px;min-height:39px;flex-shrink:0;padding:6px 12px;background:var(--panel);border-bottom:1px solid var(--line2);overflow-x:auto}.modebar button{font-size:11px;white-space:nowrap}.modebar>strong{white-space:nowrap}#phases{display:flex;gap:5px;flex:1}#phases button{border-radius:14px;padding:4px 9px}#phases .active{background:var(--accent);color:white;border-color:var(--accent)}.science-layout{flex:1;min-height:0;display:flex}.visual-stack{flex:1;min-width:0;display:flex;flex-direction:column}.scene{flex:1;min-height:180px;overflow:hidden;position:relative}.scene svg{width:100%;height:100%;display:block}.scene text{font-family:inherit;fill:var(--text);font-size:12px}.scene .small{font-size:10px;fill:var(--dim)}.scene .label{font-size:14px;font-weight:650}.scene .micro{font-size:9px;fill:var(--dim)}.scene [data-part]{cursor:pointer}.scene [data-part]:hover .part-body{stroke:var(--accent);stroke-width:2}.scene .pipe{fill:none;stroke:#8d9eb8;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.scene .gas-flow{fill:none;stroke:#008a9a;stroke-width:2;stroke-dasharray:5 6;animation:flow 1.2s linear infinite}.scene .ion-path{fill:none;stroke:#c0aac2;stroke-width:2;stroke-dasharray:3 5}.paused .scene .gas-flow{animation-play-state:paused}.scene .panel{fill:#edf1fa;stroke:#a4b3ce;stroke-width:1}.scene .part-body{fill:url(#metal);stroke:#8b9cba;stroke-width:1}.scene .sample{stroke:white;stroke-width:.7}.scene .active-box{stroke:var(--accent);stroke-width:2}.peak-buttons{display:flex;align-items:center;gap:5px;padding:4px 12px;min-height:31px;font-size:10px;border-top:1px solid #bbc6dc;background:#e9eef8}.peak-buttons button{font-size:10px;padding:3px 6px}.chart-row{height:174px;flex-shrink:0;display:flex;gap:9px;padding:6px 10px;background:var(--panel2);border-top:1px solid var(--line2)}.plot{flex:1;position:relative;background:#fcfdff;border:1px solid var(--line2);border-radius:5px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.plot-title{font-size:10px;color:var(--dim);padding:5px 9px;border-bottom:1px solid #e5e9f2}.plot canvas{flex:1;width:100%;height:100%;min-height:0}#secondaryPlot{flex:.64}#parameters{width:302px;flex-shrink:0;overflow-y:auto;padding:10px 12px 18px;background:var(--panel);border-left:2px solid var(--line2)}#parameters.collapsed{display:none}.panel-head{display:flex;justify-content:space-between;gap:5px;margin-bottom:8px}.field-section{font-size:11px;color:var(--blue);margin:14px 0 7px;border-bottom:1px solid var(--line2);padding-bottom:4px}.field{display:grid;grid-template-columns:1fr 100px;align-items:center;gap:5px;margin:5px 0;font-size:11px}.field input,.field select{width:100%}.field>span{color:var(--dim)}.field-unit{font-size:10px;color:var(--dim)}.transitions{font-size:10px;width:100%;border-collapse:collapse}.transitions td,.transitions th{padding:3px 1px}.transitions input[type=number]{width:48px;padding:4px 2px;font-size:10px}.transitions td:last-child input{width:48px}.transition-heading{font-size:10px;color:var(--dim);line-height:1.5;margin-top:12px}.status-readings{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:11px;border:1px solid #c1cde1;background:#e5ecf8;padding:9px;margin:10px 0}.status-readings b{font-family:Consolas,monospace;color:var(--accent)}#narration{min-height:47px;padding:9px 15px;background:var(--panel);border-top:1px solid var(--line2);font-size:12px;line-height:1.7;flex-shrink:0}#narration b{color:var(--accent);margin-right:9px}.feedback{padding:10px 12px;border-left:3px solid var(--blue);background:#e5ebf8;font-size:12px;line-height:1.6;margin:10px 0}.error{color:var(--bad)}.success{color:var(--green)}.warning{color:var(--warn)}.work-layout{display:flex;flex:1;min-height:0}.workflow-nav{flex:0 0 208px;background:var(--panel2);border-right:1px solid var(--line2);padding:17px 13px;overflow:auto}.workflow-nav h3{font-size:13px;margin:0 0 17px}.lesson-step{display:block;width:100%;text-align:left;margin-bottom:7px;border-color:transparent;background:transparent;padding:10px}.lesson-step.active{background:#fff;border-color:#b0bfd8;box-shadow:inset 3px 0 var(--accent)}.lesson-step.done{color:var(--green)}.progress-card{background:var(--panel);border:1px solid var(--line2);padding:12px;margin-top:22px}.progress-card b{font-size:12px}.progress-card progress{width:100%;height:7px;margin:12px 0;accent-color:var(--green)}.progress-card button{font-size:10px}.workspace{flex:1;min-width:0;overflow:auto;padding:15px 20px 30px}.status-strip{display:flex;align-items:center;gap:25px;background:#f5f7fc;border:1px solid var(--line2);padding:11px 14px}.status-strip>div{display:flex;flex-direction:column;gap:5px}.status-strip small{color:var(--dim);font-size:10px}.status-strip b{font-size:12px}.status-strip>button{margin-left:auto}.lesson-card{margin:12px 0;padding:12px 15px;background:#f7f8fd;border:1px solid #c7b7d3;border-left:3px solid var(--accent);line-height:1.7}.lesson-card h3{margin:0 0 5px;font-size:14px}.lesson-card p{margin:0;font-size:12px}.lesson-card button{margin:8px 5px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}.section-heading h3{font-size:13px;margin:0}.section-heading>div{display:flex;gap:5px;align-items:center}.section-heading button,.section-heading select{font-size:11px}.table-wrap{overflow:auto;margin:8px 0;border:1px solid var(--line2);border-radius:4px}table{width:100%;border-collapse:collapse;background:#f8faff;font-size:11px}th{text-align:left;background:#e0e7f4;color:var(--dim);font-weight:500;white-space:nowrap}td,th{padding:7px 8px;border-bottom:1px solid #dbe2ee}tr:last-child td{border-bottom:0}td input{width:100%;min-width:60px}td select{max-width:120px}td button{font-size:10px;padding:3px 5px}#sequenceTable td:nth-child(2){width:68px}#sequenceTable td:nth-child(5){width:130px}.result-grid{display:flex;gap:12px;height:185px;margin:10px 0}.result-summary{flex:.8;background:var(--panel);padding:13px;border:1px solid var(--line2);font-size:12px;line-height:1.8;overflow:auto}.care-layout{flex:1;display:flex;min-height:0}#careMenu{width:240px;flex-shrink:0;overflow:auto;padding:15px;background:var(--panel2);border-right:1px solid var(--line2)}#careMenu button{display:block;width:100%;text-align:left;padding:12px;margin-bottom:7px}#careMenu .active{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent);background:#fff}#careContent{flex:1;overflow:auto;padding:24px 32px}.care-head h2{font-size:22px;margin:0 0 10px}.care-head p{color:var(--dim);line-height:1.8}.care-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.care-step{background:var(--panel);border:1px solid var(--line2);border-top:3px solid #acb9d1;padding:17px;line-height:1.85}.care-step.current{background:#fff;border-top-color:var(--accent)}.care-step.complete{border-top-color:var(--green)}.care-step h3{margin:0 0 8px;font-size:13px}.care-step p{font-size:12px}.care-step button{font-size:11px}.care-quiz{padding:20px;background:var(--panel);border:1px solid var(--line2);max-width:850px;line-height:1.8}.care-quiz button{margin:7px 8px 0 0}.extension-card{max-width:850px;padding:14px 20px;border:1px dashed var(--line2);line-height:1.85;margin-top:18px;font-size:12px}dialog{width:min(980px,94vw);max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);box-shadow:0 20px 80px #17274c50}dialog::backdrop{background:#19234270;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#dfe7f6;border-bottom:1px solid var(--line2);position:sticky;top:0;z-index:2}.dialog-head h2{font-size:16px;margin:0}#dialogBody{padding:20px;max-height:calc(90dvh - 58px);overflow:auto;line-height:1.8}.source-card{padding:12px;border-bottom:1px solid var(--line2);font-size:12px}.source-card p{margin:3px 0}.search-row{display:flex;gap:10px;margin-bottom:15px}.search-row input{flex:1}.component-list{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.component-list button{text-align:left;padding:12px}.component-list small{display:block;color:var(--dim);font-size:10px;margin-top:5px}.part-detail{display:grid;grid-template-columns:1fr 1fr;gap:22px}.part-detail h3{font-size:13px;margin:14px 0 4px}.part-detail p{font-size:12px;margin:0}.diagram-reference{background:#e4ebf8;border:1px solid var(--line2);padding:17px}.diagram-reference svg{width:100%;height:160px}.diagram-reference .caption{font-size:11px;color:var(--dim)}#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#25395a;color:white;border-radius:5px;box-shadow:0 4px 20px #192c4850;z-index:100;max-width:90vw}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.editor-grid .transitions input[type=number]{width:65px}.limits-note{font-size:11px;color:var(--dim);padding:10px;border:1px dashed var(--line2)}@keyframes flow{to{stroke-dashoffset:-22}}@media(min-width:1400px){.chart-row{height:188px}}@media(max-height:780px){.chart-row{height:145px}.scene{min-height:140px}.brand small{display:none}#narration{min-height:42px;font-size:11px}}@media(max-width:1150px){#tabs button{padding:10px 12px}#tabs small{display:none}#parameters{width:270px}.brand small{display:none}#sceneBadge{display:none}.care-steps{grid-template-columns:1fr 1fr}.timeline output{display:none}}@media(max-width:800px){body{overflow:auto;height:auto;min-height:100dvh}#topbar{flex-wrap:wrap;gap:6px;padding:7px 9px}.brand{font-size:15px}.timeline{order:10;flex-basis:100%}.timeline output{display:block}#topbar>button{font-size:10px}#tabs{overflow-x:auto;position:sticky;top:0;z-index:10}#tabs button{white-space:nowrap;font-size:11px;padding:9px}.modebar{flex-wrap:wrap}#phases{overflow:auto;flex-basis:100%}main{min-height:650px}.science-layout{display:block}.visual-stack{height:560px}.scene{min-height:300px}.chart-row{height:160px}.peak-buttons{flex-wrap:wrap}#parameters{width:100%;border:0;border-top:1px solid var(--line2);max-height:440px}.work-layout,.care-layout{display:block}.workflow-nav{width:auto;display:block;padding:10px}.workflow-nav h3,.workflow-nav .fine,.progress-card{display:none}#lessonSteps{display:flex;overflow:auto}.lesson-step{min-width:110px}.workspace{padding:12px}.status-strip{flex-wrap:wrap;gap:12px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading>div{flex-wrap:wrap}.result-grid{height:280px;flex-direction:column}.result-summary{min-height:100px}.result-grid .plot{min-height:160px}#careMenu{width:100%;display:flex;overflow:auto;padding:10px}#careMenu button{min-width:180px}#careContent{padding:18px}.care-steps{grid-template-columns:1fr}.component-list{grid-template-columns:1fr 1fr}.part-detail,.editor-grid{grid-template-columns:1fr}#narration{position:relative}.tag{white-space:normal}.status-strip b{font-size:11px}#secondaryPlot{display:none}}@media(prefers-reduced-motion:reduce){.gas-flow{animation:none!important}*{scroll-behavior:auto!important}}
body[data-view=overview] .chart-row{height:112px}body[data-view=overview] #secondaryPlot{display:none}body[data-view=overview] #narration{min-height:46px}@media(max-width:800px){body[data-view=overview] .chart-row{height:140px}body[data-view=overview] .visual-stack{height:640px}}
@media(max-width:800px){.visual-stack{height:730px}.scene{overflow-x:auto;overflow-y:hidden;min-height:470px}.scene svg{width:1040px;min-width:1040px;height:100%}.scene:before{content:'← 横向滑动查看完整仪器 · 点击部件查看说明 →';position:sticky;left:12px;display:block;width:340px;font-size:11px;color:var(--dim);padding:7px 0;z-index:1}body[data-view=overview] .visual-stack{height:790px}body[data-view=overview] .scene{min-height:560px}}
