@charset "utf-8";
:root{--ink:#24483c;--muted:#60755f;--green:#285e49;--orange:#bb6437;--paper:#fafcf4;--line:#c8d5bf;--wrong:#9d3c2d;--head:76px;--prompt:102px;--foot:178px;--title:clamp(32px,2.8vw,52px);--body:clamp(24px,1.6vw,32px)}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#e8eee2;color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:var(--body)}button,input,select,summary{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:4px solid #ba743b;outline-offset:4px}button{border:1px solid var(--line);background:var(--paper);border-radius:12px;min-height:64px;padding:10px 24px}button:active:enabled{transform:translateY(1px)}svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbol-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.class-header{position:fixed;inset:0 0 auto;height:var(--head);display:flex;align-items:center;justify-content:space-between;padding:8px 30px;background:var(--paper);border-bottom:1px solid var(--line);z-index:10;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-family:"STZhongsong","SimSun",serif;font-size:32px;letter-spacing:3px;white-space:nowrap}.brand svg{width:43px;height:43px;padding:5px;background:var(--green);border-radius:50%;color:#f0dea0}.lesson-caption{display:flex;gap:18px;align-items:center}.lesson-caption>span{font-size:22px;color:#697d60}.lesson-caption strong{font-size:28px;font-weight:500}.top-actions{display:flex;gap:12px}.top-actions button{font-size:24px;min-height:56px;padding:8px 22px;display:flex;gap:10px;align-items:center;border-color:#ced9c4}
.class-prompt{position:fixed;top:var(--head);left:0;right:0;height:var(--prompt);z-index:5;text-align:center;padding:6px 24px 8px;background:#f4f7ed;border-bottom:1px solid #dbe4d0}.phase-caption{position:absolute;left:30px;top:22px;font-size:22px;line-height:1.6;color:#647c5b;max-width:190px}.class-prompt h1{font-size:var(--title);font-weight:600;letter-spacing:1px;line-height:1.35;margin:0 auto;max-width:calc(100% - 400px);white-space:nowrap}.class-prompt p{font-size:var(--body);line-height:1.45;margin:5px auto 0;color:#526c4c;max-width:calc(100% - 150px)}
#world{position:fixed;inset:calc(var(--head) + var(--prompt)) 0 var(--foot);overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#f0f3e7,#dee8d9)}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.legend{position:absolute;left:30px;bottom:18px;display:flex;gap:26px;font-size:24px;color:#3f674c;pointer-events:none}.legend>span{display:flex;align-items:center;gap:10px}.legend i{display:inline-block;width:13px;height:13px;border-radius:50%}.old-dot{background:#4c7965}.new-dot{background:#c17a48}.point-label,.query-label{position:absolute;pointer-events:none;transform:translate(-50%,-100%);background:#fbfff0;color:#28583c;border:2px solid #769a67;box-shadow:0 5px 18px #263d2916;border-radius:10px;padding:8px 16px;font:clamp(28px,2.1vw,42px) Georgia,"Cambria Math",serif;white-space:nowrap}.query-label{background:#fff5e4;color:#8b4c24;border-color:#c98b49}.class-equation{position:absolute;top:18px;left:50%;transform:translateX(-50%);padding:10px 30px;border-radius:14px;background:#fcfff2;color:#275b3d;box-shadow:0 5px 20px #23402b12;font:clamp(36px,3vw,58px) Georgia,"Cambria Math",serif;border:1px solid #b6cda4;white-space:nowrap;pointer-events:none}.scene-home{position:absolute;right:26px;bottom:15px;font-size:22px;min-height:58px;padding:8px 20px;background:#fbfdf3}
.class-controls{position:fixed;bottom:0;left:0;right:0;height:var(--foot);z-index:9;padding:8px 30px 16px;background:var(--paper);border-top:1px solid #b9cdb0;box-shadow:0 -5px 20px #203c2605}.class-feedback{min-height:44px;line-height:1.45;display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--body);color:#4d6c45;white-space:normal;margin-bottom:8px}.class-feedback.wrong{color:var(--wrong);font-weight:600}.action-row{display:flex;align-items:center;justify-content:center;gap:22px;max-width:1600px;margin:auto;min-height:80px}.back-button{min-width:112px;font-size:24px;white-space:nowrap;border-color:#c6d2be;color:#687f5c;padding:12px 18px}.class-primary{background:var(--green);color:#fffbe8;border:0;min-height:80px;min-width:270px;padding:15px 30px;font-size:30px;font-weight:600;display:flex;gap:20px;align-items:center;justify-content:center;white-space:nowrap;box-shadow:0 5px 12px #25472f16}.class-primary span{font-weight:400;font-size:34px}.class-primary:hover:enabled{background:#347454}.stage-choices{display:flex;align-items:center;justify-content:center;gap:16px;min-width:0}.stage-choices:empty{display:none}.touch-choice{font-size:30px;min-height:80px;min-width:150px;padding:10px 26px;line-height:1.3;background:#f2f6e8;border:2px solid #c7d7b9;box-shadow:0 3px 0 #e1e8d5}.touch-choice.selected{background:#e1edd5;border-color:#5c8951;box-shadow:0 0 0 2px #a8c58e}.touch-choice.wrong{border-color:#ae6247;background:#fff0e4}.touch-choice.number-choice{min-width:126px;font:42px Georgia,"Cambria Math",serif}.touch-choice.equation-choice{font:clamp(27px,2.3vw,42px) Georgia,"Cambria Math",serif;padding:13px 22px;white-space:nowrap}.move-counter{font-size:32px;min-width:150px;text-align:center;font-weight:600;color:#43683d;white-space:nowrap}.wide-note{font-size:28px;color:#5c7550;line-height:1.5;text-align:center}
#pause-overlay{position:absolute;inset:0;z-index:12;background:#eef4e8ed;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}#pause-overlay b{font-size:44px;font-weight:500}#pause-overlay button{background:var(--green);color:white;border:0;font-size:30px;padding:16px 40px}.is-paused .class-controls{pointer-events:none;opacity:.45}
.large-dialog{width:min(1180px,94vw);max-height:92vh;overflow:auto;border:2px solid #b8cba9;border-radius:20px;background:var(--paper);color:var(--ink);padding:26px 32px;box-shadow:0 30px 100px #102f2540;font-size:24px}.large-dialog::backdrop{background:#18382b78}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.dialog-heading h2{font-size:34px;font-weight:600;margin:0}.dialog-heading>button{border:0;font-size:42px;line-height:1;min-width:64px;min-height:64px;padding:0;background:#edf2e4}.large-dialog button{font-size:24px;min-height:68px}.large-dialog section{border-top:1px solid var(--line);padding:14px 0 18px}.large-dialog h3{font-size:27px;margin:6px 0 16px}.teacher-options{display:flex;gap:12px;flex-wrap:wrap}.teacher-options button{min-width:170px}.teacher-options .active{background:#dfead4;border-color:#779d61}.teacher-entry{display:block;background:none;border:0;border-top:1px solid var(--line);border-radius:0;width:100%;margin-top:25px;padding-top:23px;color:#59734c}.lesson-extra{display:flex;gap:16px;margin-top:16px}.lesson-extra button{flex:1;font-size:25px;background:#f3ead4;border-color:#d7c5a0}#chapters{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}#chapters button{display:flex;align-items:center;gap:20px;text-align:left;padding:22px;font-size:30px;min-height:94px}#chapters button span{font:28px Georgia,serif;color:#7d926b}#chapters button.active{background:#dce9ce;border:2px solid #75985b}#chapters button.done span{background:#39654a;color:#fff7d5;border-radius:50%;width:40px;height:40px;font-size:23px;display:grid;place-items:center}
#evidence{padding-left:28px;font-size:22px;line-height:1.7}#evidence li{margin-bottom:10px;border-bottom:1px dashed #c9d8bf;padding-bottom:10px}#evidence b{font-weight:500}.large-dialog details{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.large-dialog summary{cursor:pointer;font-size:26px;min-height:64px;display:flex;align-items:center;color:#688057}.advanced-controls{padding:15px 0;display:grid;gap:12px;font-size:23px}.advanced-controls>p{margin:6px 0;line-height:1.6}.advanced-controls label{font-size:23px}.advanced-controls select,.advanced-controls input{font-size:26px;border:1px solid var(--line);background:#fff;min-height:66px;padding:10px;border-radius:8px;max-width:100%}.advanced-row{display:flex;gap:10px}.advanced-row input{width:200px}.advanced-controls #trace-readout{display:flex;flex-wrap:wrap;gap:12px;font-size:24px}.advanced-controls #trace-readout b{font-size:28px}.advanced-controls #trace-readout i{font-style:normal}#abs-switch{display:flex;gap:14px}.help-steps{line-height:1.9;padding-left:35px}.help-steps li{margin:12px 0}.large-dialog p{line-height:1.7}.dialog-primary{display:block;margin-top:24px;background:var(--green);color:#fff;width:100%}
.loading{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#edf3e5;color:var(--green);gap:20px}.loading svg{width:80px;height:80px;stroke-width:1}.loading h2{font-size:34px;margin:10px 0}.loading p{font-size:24px;margin:0}.loading.hidden{opacity:0;pointer-events:none;transition:opacity .25s}
.phase-caption{white-space:nowrap;max-width:none}
.coordinate-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.coordinate-labels span{position:absolute;font:clamp(22px,1.25vw,30px) Georgia,"Cambria Math",serif;color:#294d36;background:#f8fbeddd;border-radius:4px;padding:0 3px;line-height:1.15;white-space:nowrap}.coordinate-labels .axis-letter{font-size:32px;font-weight:700;color:#173d29}.map-scale{position:absolute;left:26px;top:15px;font-size:22px;color:#365d3c;padding:5px 10px;border-radius:7px;background:#f9fcefe8;pointer-events:none}
.point-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}.query-label:after{display:none}
body[data-phase="newpoint"],body[data-phase="lookup"]{--foot:210px}
.coordinate-picker{min-width:360px;max-width:590px;width:36vw;padding:0 8px}.coordinate-value{display:block;font-size:30px;font-weight:600;text-align:center;line-height:1.3;margin-bottom:6px;white-space:nowrap}.coordinate-picker-row{display:flex;align-items:center;gap:14px}.coordinate-picker-row button{font-size:25px;min-height:64px;min-width:82px;padding:8px 13px}.coordinate-picker input[type="range"]{appearance:none;-webkit-appearance:none;flex:1;min-width:100px;height:64px;margin:0;background:transparent;touch-action:none;cursor:pointer}.coordinate-picker input[type="range"]::-webkit-slider-runnable-track{height:10px;background:#b9cfa6;border-radius:6px}.coordinate-picker input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:44px;height:44px;margin-top:-17px;border-radius:50%;background:#b96b38;border:4px solid #fff9e9;box-shadow:0 2px 7px #3c4e2c40}.coordinate-picker input[type="range"]::-moz-range-track{height:10px;background:#b9cfa6;border-radius:6px}.coordinate-picker input[type="range"]::-moz-range-thumb{width:38px;height:38px;border-radius:50%;background:#b96b38;border:4px solid #fff9e9}.query-label{border-width:3px;font-weight:600;box-shadow:0 6px 24px #a4632730}.query-label:after{content:"";position:absolute;left:50%;bottom:-12px;width:18px;height:18px;background:#fff5e4;border-right:3px solid #c98b49;border-bottom:3px solid #c98b49;transform:translateX(-50%) rotate(45deg)}
@media(min-width:1700px){body[data-phase="newpoint"],body[data-phase="lookup"]{--foot:232px}.coordinate-value{font-size:36px}.coordinate-picker-row button{font-size:29px;min-height:72px;min-width:94px}.map-scale{font-size:26px}}
@media(max-width:900px){.coordinate-picker{width:min(580px,90vw);min-width:0}.coordinate-value{font-size:26px}.coordinate-picker-row{gap:10px}.coordinate-picker-row button{min-width:76px;font-size:22px;padding:8px 10px}.map-scale{left:12px;top:10px;font-size:18px}.coordinate-labels span{font-size:20px}.coordinate-labels .axis-letter{font-size:26px}}
#event-banner{display:none!important}
#pause-overlay{inset:18px 26px auto auto;max-width:440px;background:#fbfdf2;border:2px solid #adbf9b;border-radius:14px;padding:20px;gap:16px;box-shadow:0 8px 30px #24433118}#pause-overlay b{font-size:30px;text-align:center;line-height:1.5}#pause-overlay button{font-size:26px;min-height:64px;padding:10px 28px}
@media(min-width:1700px){:root{--head:88px;--prompt:124px;--foot:200px}.class-header{padding-inline:42px}.brand{font-size:38px}.class-prompt{padding-top:8px}.phase-caption{font-size:27px;left:42px;top:24px}.class-controls{padding:12px 40px 20px}.class-feedback{min-height:50px;margin-bottom:12px}.class-primary{font-size:34px;min-height:88px;min-width:310px}.touch-choice{min-height:88px;font-size:34px}.touch-choice.number-choice{font-size:48px;min-width:150px}.move-counter{font-size:38px}.top-actions button{font-size:28px;min-height:64px}}
@media(max-width:1150px) and (min-width:901px){.phase-caption{font-size:20px;left:20px;max-width:140px}.class-prompt h1{max-width:calc(100% - 290px);font-size:32px}.class-prompt p{font-size:24px;max-width:100%}.class-controls{padding-inline:18px}.action-row{gap:12px}.stage-choices{gap:10px}.class-primary{min-width:210px;font-size:26px;padding-inline:18px}.back-button{font-size:22px;min-width:90px;padding-inline:12px}.touch-choice{font-size:25px;padding-inline:18px;min-width:130px}.touch-choice.equation-choice{font-size:27px;padding-inline:12px}.move-counter{min-width:130px;font-size:28px}}
@media(max-height:720px) and (min-width:901px){:root{--head:66px;--prompt:96px;--foot:163px}.class-header{padding-block:4px}.top-actions button{min-height:52px}.class-controls{padding-top:5px;padding-bottom:10px}.class-feedback{font-size:23px;min-height:36px}.class-primary,.touch-choice{min-height:72px}.class-prompt h1{font-size:34px}.class-prompt p{font-size:24px}}
@media(max-width:900px){:root{--body:22px}.class-header{position:relative;height:70px;padding:7px 15px;gap:12px}.brand{font-size:28px;gap:8px}.brand svg{width:37px;height:37px}.lesson-caption{display:none}.top-actions{gap:8px}.top-actions button{min-height:54px;padding:8px 15px;font-size:22px;gap:6px}.top-actions svg{width:24px;height:24px}.class-prompt{position:relative;inset:auto;height:auto;min-height:115px;padding:10px 16px 14px}.phase-caption{position:static;max-width:none;font-size:20px;margin-bottom:5px}.class-prompt h1{max-width:100%;white-space:normal;font-size:30px;line-height:1.45}.class-prompt p{max-width:100%;font-size:22px;line-height:1.5;margin-top:6px}body{overflow:auto}#world{position:relative;inset:auto;height:43vh;min-height:290px}.class-controls{position:relative;inset:auto;height:auto;padding:12px 16px 20px}.class-feedback{font-size:22px;min-height:40px;line-height:1.5;margin-bottom:12px}.action-row{flex-wrap:wrap;gap:12px}.stage-choices{flex:1;flex-basis:100%;gap:12px}.touch-choice{font-size:23px;min-height:66px;min-width:0;padding:10px 16px}.touch-choice.number-choice{font-size:36px;min-width:85px}.move-counter{min-width:115px;font-size:26px}.class-primary{font-size:26px;min-height:70px;min-width:230px;flex:1;order:2}.back-button{font-size:22px;min-height:70px;min-width:100px;order:2}.touch-choice.equation-choice{font-size:28px;width:100%}.stage-choices.equation-choices{flex-wrap:wrap}.class-equation{font-size:34px;top:12px;padding:8px 16px}.legend{font-size:20px;left:15px;bottom:12px;gap:16px}.point-label,.query-label{font-size:27px;padding:7px 12px}.scene-home{font-size:20px;min-height:52px;padding:7px 14px;right:15px;bottom:12px}.large-dialog{padding:18px 20px;font-size:22px}.dialog-heading h2{font-size:28px}.large-dialog button{font-size:22px;min-height:62px}#chapters{grid-template-columns:1fr 1fr;gap:12px}#chapters button{font-size:25px;min-height:80px;padding:15px;gap:12px}#chapters button span{font-size:23px}.lesson-extra{flex-wrap:wrap}.lesson-extra button{flex-basis:100%;font-size:22px}.teacher-options button{min-width:140px}.help-steps{padding-left:25px}.loading h2{font-size:28px}#pause-overlay b{font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
