.sugar-lesson .page-shell{max-width:1180px}.story-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}.story-nav a{display:block;text-decoration:none;color:var(--teal);font-weight:800;background:var(--white);border:1.5px solid var(--teal);border-radius:7px;padding:8px 13px}.story-nav>span{color:#536879}.story-header{padding:22px 0 16px}.story-header h1{font-size:clamp(25px,3vw,36px)}.story-header h1>span{background:linear-gradient(transparent 70%,#f4d16c 70%)}.problem{background:#fff7dc;border-left:4px solid #d5aa31;padding:14px 20px;border-radius:0 8px 8px 0;margin-bottom:20px}.problem h2{font-size:14px;margin-bottom:5px;color:#82661a}.problem p{font-size:17px;margin:0;line-height:1.9}.problem strong{color:#923e28}.problem .assumption{font-size:12px;color:#5a6c70;margin-top:6px}.story-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:15px}.story-steps button{text-align:left;line-height:1.4;padding:12px;border-color:#17324d30}.story-steps span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e7e2d1;color:var(--ink);margin-right:6px;font-size:13px}.story-steps small{display:block;font-size:11px;margin:6px 0 0 30px;font-weight:500}.story-lab{border:2px solid var(--ink);border-radius:12px;overflow:hidden;background:var(--white);box-shadow:6px 6px #17324d13}.scene-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 26px;border-bottom:1px solid var(--line)}.scene-heading h2{font-size:23px}.scene-heading button{font-size:12px;padding:8px 12px}.story-workbench{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:20px 26px 24px}.liquid-stage{position:relative;min-height:345px;max-width:490px;width:100%;align-self:center;justify-self:center;isolation:isolate;background:radial-gradient(ellipse at center,#edf5ee 0,#edf5ee00 70%)}.mixture-label{display:table;margin:0 auto;background:#e5f1ee;border-radius:30px;padding:5px 14px;color:var(--teal);font-size:12px;font-weight:700}.glass{display:block;width:88%;height:280px;margin:5px auto 0;overflow:visible}.glass #liquid-fill,.glass #liquid-surface{transition:y 1.1s ease,transform 1.1s ease}.model-note{text-align:center;font-size:11px;color:#607378;margin:5px 0}.out-cup{position:absolute;right:0;bottom:24px;display:none;background:#fff4de;border:2px dashed #bf8954;border-radius:8px;padding:9px 12px;font-size:11px;box-shadow:3px 3px #17324d12;z-index:2}.out-cup strong{display:block;font-size:14px;color:#9f482d}.liquid-stage[data-phase="1"] .out-cup,.liquid-stage[data-phase="2"] .out-cup{display:block}.sugar-bag{display:none;position:absolute;right:5%;top:38px;border:2px solid var(--ink);border-radius:5px;background:#fbd8aa;padding:10px 20px;text-align:center;transform:rotate(-20deg);z-index:3}.sugar-bag b{font-size:22px;display:block}.sugar-bag span{display:block;font-size:12px}.liquid-stage[data-phase="2"] .sugar-bag{display:block}.falling-sugar{display:none;position:absolute;right:26%;top:90px;width:40px;height:85px;z-index:4;pointer-events:none}.falling-sugar i{position:absolute;width:8px;height:8px;top:0;background:#c8803a;border-radius:2px}.falling-sugar i:nth-child(2){left:12px;animation-delay:.2s}.falling-sugar i:nth-child(3){left:24px;animation-delay:.4s}.falling-sugar i:nth-child(4){left:5px;animation-delay:.6s}.pour-stream{display:none;position:absolute;top:70px;left:67%;width:50px;height:180px;border:7px solid #73bec5;border-left:0;border-bottom:0;border-radius:0 100% 0 0;opacity:.75;pointer-events:none;z-index:-1}.liquid-stage[data-phase="1"].animating .pour-stream{display:block;animation:stream 1.6s ease both}.liquid-stage[data-phase="1"].animating #glass-body{transform-box:fill-box;transform-origin:75% 80%;animation:pour-glass 1.6s ease both}.liquid-stage[data-phase="1"].animating .out-cup{animation:appear .5s ease .9s both}.liquid-stage[data-phase="2"].animating .falling-sugar{display:block}.liquid-stage[data-phase="2"].animating .falling-sugar i{animation:drop-sugar 1s ease 2}.liquid-stage[data-phase="0"].animating #dissolved-sugar{animation:stir 1.3s ease both;transform-origin:175px 180px}.mass-panel{align-self:center;min-width:0}.mass-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px}.mass-cards>div{background:#f5f1e6;border:1px solid #17324d1c;border-radius:8px;padding:12px 16px}.mass-cards>div:last-child{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between}.mass-cards dt{font-size:13px;font-weight:700}.mass-cards dd{margin:0;font-size:37px;font-weight:800;line-height:1.4}.mass-cards dd small{font-size:16px;margin-left:6px}.mass-cards .sugar-mass{background:#ffefd9;color:#9b472b}.mass-cards .water-mass{background:#e2f2f3;color:#267b86}.mass-cards>div:last-child dd{font-size:28px}.process-equation{font-size:25px;font-weight:800;line-height:1.8;color:var(--teal)}.process-explanation{font-size:14px;margin:10px 0 0;color:#4e6571}.portions-section{border-top:1px solid var(--line);padding:20px 26px;background:#f8f5eb}.portion-heading{display:flex;gap:16px;justify-content:space-between;align-items:center}.portion-heading h3{font-size:18px;margin:0}.portion-heading p{margin:5px 0 0}.portion-heading button{font-size:13px}.portion-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:12px;margin:18px 0 12px}.portion-legend span{display:flex;align-items:center;gap:6px}.portion-legend i,.portion-dots i{width:13px;height:13px;display:block;border-radius:3px}.sugar-dot{background:#d78b48}.water-dot{background:#5eaebb}.portion-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px}.portion{position:relative;min-width:0;padding:8px 5px;background:white;border:1.5px solid #91aaa8;border-radius:7px;line-height:1.4;text-align:center}.portion small{display:block;font-size:10px;color:#566e76;margin-bottom:7px}.portion-dots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;max-width:84px;margin:0 auto 7px}.portion-dots i{width:100%;height:auto;aspect-ratio:1}.portion b{display:block;font-size:12px}.portion.taken{border-color:#ba7844;border-style:dashed;background:#fff2de}.portion.taken .portion-dots{opacity:.45}.portion.taken::after{content:'已倒出';display:block;color:#a34428;font-size:10px;margin-top:3px}.portion-caption{color:var(--teal);font-size:16px;font-weight:800;margin:15px 0 5px}.prediction{padding:20px 26px;border-top:1px solid var(--line)}.prediction h3,.base-question h3{font-size:18px;margin:0 0 14px}.choice-row{display:flex;gap:10px;flex-wrap:wrap}.choice-row button{flex:1;min-width:100px;padding:12px}.choice-row button.correct{background:#e1f1e9;color:#086955;border-color:#16836a}.choice-row button.incorrect{background:#fff0dc;color:#9e4726;border-color:#c67f4b}#prediction-feedback,#base-feedback{font-size:14px;color:#526775;min-height:25px;margin:12px 0 0}.comparison{padding:24px 26px}.comparison-heading h3{font-size:20px;margin:0}.comparison-heading p{margin:7px 0 22px}.sugar-bars{max-width:840px}.bar-row{display:grid;grid-template-columns:100px 1fr;gap:15px;align-items:center;margin:20px 0;font-weight:800}.bar-track{display:flex;height:50px;background:#f4f0e4;border-radius:7px;overflow:hidden}.sugar-bar{display:grid;place-items:center;background:#d9965d;color:#3c2a1b;border-right:2px solid white}.sugar-bar.original,.sugar-bar.unchanged{width:71.428571%}.sugar-bar.increase{width:28.571429%;background:#07827b;color:white;border:0}.comparison-note{background:#fff2cd;border-left:4px solid #d4a839;border-radius:3px;padding:12px 16px;font-size:15px;margin:24px 0}.base-question{border-top:1px dashed var(--line);padding-top:24px;margin-bottom:22px}.solution{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.final-answer{display:flex;gap:20px;align-items:center;justify-content:center;padding:15px;background:#fff1e4;border-radius:10px;color:#b83127}.final-answer>svg{width:70px;height:70px;stroke:#d9322c;fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;animation:check-pop .5s ease both}.final-answer>div{display:flex;align-items:center;gap:20px;font-size:21px;font-weight:800}.answer-fraction{display:inline-flex;flex-direction:column;font-size:38px;line-height:1.1;text-align:center;min-width:45px}.answer-fraction>span:first-child{border-bottom:3px solid currentColor;padding-bottom:5px}.answer-fraction>span:last-child{padding-top:5px}.formula-main{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;padding:24px 0;font-size:21px}.formula-main>span{font-size:15px;color:var(--teal);font-weight:700}.solution-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px;counter-reset:solution}.solution-list li{padding:15px;background:#f5f3e9;border-radius:7px;counter-increment:solution}.solution-list li>span{display:block;font-size:13px;margin-bottom:10px;color:#536b75}.solution-list li>span::before{content:counter(solution) ' · ';font-weight:bold}.solution-list strong{font-size:19px;line-height:1.9}.story-guide{display:flex;align-items:center;gap:14px;padding:14px 26px;background:#f4efde;border-top:1px solid var(--line)}.story-guide img{object-fit:contain;flex-shrink:0}.story-guide p{margin:0;font-size:15px}.story-controls{display:flex;gap:10px;align-items:center;margin:22px 0}.story-controls #next-stage{margin-left:auto}.teacher-notes p{font-size:14px;color:#526775}.comparison~.story-guide{min-height:90px}@keyframes pour-glass{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(16deg)}}@keyframes stream{0%,20%,100%{opacity:0}35%,70%{opacity:.8}}@keyframes drop-sugar{0%{transform:translate(15px,-15px);opacity:0}20%{opacity:1}100%{transform:translate(-40px,80px);opacity:0}}@keyframes stir{30%{transform:translateX(9px)}65%{transform:translateX(-7px)}100%{transform:none}}
@media(max-width:900px){.portion-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.portion-dots{max-width:68px}.story-workbench{gap:15px}.mass-cards dd{font-size:30px}.process-equation{font-size:22px}.story-steps small{margin-left:0}.glass{height:260px}.out-cup{right:-8px}.scene-heading h2{font-size:21px}}
@media(max-width:650px){.story-nav>span{display:none}.story-header{padding:20px 0 15px}.story-header h1{font-size:25px}.problem{padding:12px 15px}.problem p{font-size:15px}.story-steps{grid-template-columns:1fr 1fr;gap:7px}.story-steps button{font-size:14px;padding:10px}.story-steps small{font-size:10px}.scene-heading{padding:15px;align-items:flex-start}.scene-heading h2{font-size:19px}.scene-heading button{font-size:11px;min-width:85px}.story-workbench{grid-template-columns:1fr;padding:16px;gap:5px}.liquid-stage{min-height:315px;max-width:380px}.glass{height:250px}.out-cup{bottom:24px;right:0}.mass-cards{grid-template-columns:1fr 1fr 1fr;gap:7px;margin:8px 0 12px}.mass-cards>div{padding:10px 7px}.mass-cards>div:last-child{grid-column:auto;display:block}.mass-cards dd,.mass-cards>div:last-child dd{font-size:27px}.mass-cards dt{font-size:11px}.mass-cards dd small{font-size:12px;margin-left:3px}.portions-section,.prediction,.comparison{padding:18px 15px}.portion-heading{display:block}.portion-heading button{margin-top:12px}.portion-heading h3{font-size:16px}.portion-grid{gap:5px}.portion{padding:6px 3px}.portion b{font-size:10px}.portion-dots{gap:2px}.portion small{font-size:9px}.portion-legend{gap:6px;font-size:11px;flex-direction:column}.portion-caption{font-size:14px}.choice-row{gap:6px}.choice-row button{font-size:13px;padding:10px 6px;min-width:80px}.base-question .choice-row{display:grid;grid-template-columns:1fr}.bar-row{grid-template-columns:76px 1fr;gap:7px;font-size:13px}.bar-track{height:45px}.comparison-heading h3{font-size:18px}.comparison-heading p{font-size:14px}.comparison-note{font-size:14px}.final-answer{gap:8px;padding:14px 8px}.final-answer>svg{width:45px;height:45px}.final-answer>div{font-size:15px;gap:10px}.answer-fraction{font-size:30px}.formula-main{font-size:20px;gap:8px}.formula-main>span{font-size:13px}.solution-list{grid-template-columns:1fr}.story-guide{padding:12px 15px}.story-guide p{font-size:14px}.story-controls{flex-wrap:wrap}.story-controls button{font-size:13px;padding:9px 10px}.story-controls #next-stage{flex-basis:100%;margin:0}.prediction h3,.base-question h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){.sugar-lesson *, .sugar-lesson *::before, .sugar-lesson *::after{animation:none!important;transition:none!important}.pour-stream,.falling-sugar{display:none!important}}
