:root{--ink:#501455;--soft:#f7f2ff;--line:#e6d7f8;--red:#d83349;--coral:#ff7279;--yellow:#ffe263;--pale:#fffbe6;--muted:#746478;--radius:28px;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background:#fff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;color:var(--ink);border:2px solid transparent;background:var(--soft);font-size:18px;font-weight:700;min-height:52px;padding:10px 20px;border-radius:17px;transition:background .15s,transform .15s}button:hover{background:#ede1fb}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #8642b4;outline-offset:4px}a{color:#71377c;text-underline-offset:4px}.primary{background:var(--red);color:white}.primary:hover{background:#ba253a}.outline{border-color:#ba96d0;background:white}.quiet{background:white;border-color:var(--line)}.site-header{min-height:104px;padding:20px 3.5%;border-bottom:3px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{position:relative;font-size:clamp(23px,2.4vw,36px);font-weight:900;text-decoration:none;color:var(--ink);white-space:nowrap;letter-spacing:-1px;padding-left:15px}.rays{position:absolute;width:23px;height:7px;border-radius:6px;background:var(--yellow);top:-9px;left:0;transform:rotate(45deg)}.rays:after{content:"";position:absolute;width:7px;height:18px;border-radius:5px;background:var(--yellow);left:-10px;top:16px}.site-header nav{display:flex;gap:10px}.site-header nav button{font-size:clamp(17px,1.7vw,24px);padding:12px clamp(16px,2vw,28px);min-height:56px;border-radius:23px;white-space:nowrap}.site-header nav button[aria-current=page]{background:var(--yellow)}.parent-button{border-color:var(--coral);background:white;white-space:nowrap}main{max-width:1500px;margin:auto;padding:30px 3.5% 16px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.5vw,35px);line-height:1.5;letter-spacing:-.5px}h2{font-size:26px}h3{font-size:20px}p{line-height:1.7}.learning-layout{display:grid;grid-template-columns:minmax(210px,.82fr) minmax(370px,1.6fr) minmax(165px,.62fr);gap:20px}.picker{background:var(--soft);border-radius:var(--radius);padding:25px 22px}.picker h1{margin-bottom:24px}.picker h1:after{content:"";display:block;margin-top:12px;width:80px;height:5px;border-radius:3px;background:var(--yellow)}.segments{display:flex;gap:8px;margin-bottom:24px}.segments button{flex:1;padding:8px;font-size:18px;background:white;border-color:var(--line)}.segments button.selected{background:var(--coral);border-color:var(--coral)}.letter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.letter-button{border-color:#dbc4ee;background:white;border-radius:20px;height:93px;font:700 48px/1 Georgia,"Times New Roman",serif;padding:5px;position:relative}.letter-button.selected{background:var(--coral);border-color:var(--coral);box-shadow:0 0 0 4px var(--yellow)}.numbers-grid .letter-button{height:68px;font-size:36px}.numbers-grid .letter-button:last-child{grid-column:span 2}.helper,.subtext,.step-note{font-size:15px;line-height:1.8;color:var(--muted)}.picker .helper{margin:22px 0 0}.writing-panel{border:3px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;min-width:0}.panel-heading{text-align:center;margin:0 0 6px;font-weight:700;font-size:23px}.board-wrap{flex:1;display:flex;align-items:center;min-height:320px}.writing-board{width:100%;height:360px;display:block;overflow:visible}.guide{stroke:#c5a7e4;stroke-width:1.6;fill:none}.guide-middle{stroke-dasharray:7 6}.ghost{stroke:#efe7f5;fill:none;stroke-width:11;stroke-linecap:round;stroke-linejoin:round}.ink{fill:none;stroke:var(--ink);stroke-width:11;stroke-linecap:round;stroke-linejoin:round}.moving-dot,.start-dot{fill:var(--red);stroke:white;stroke-width:2}.digit-grid{stroke:#d7c5e5;stroke-width:1.4;fill:none}.digit-grid.mid{stroke-dasharray:5 5}.writing-board text{font:13px "Microsoft YaHei",sans-serif;fill:#88658c}.stroke-caption{min-height:35px;margin:0 0 16px;text-align:center;font-size:17px;line-height:1.6}.playback-controls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;align-items:center}.playback-controls button{min-height:58px;font-size:19px}.playback-controls .primary{min-width:154px}.speed-label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}select{background:white;color:var(--ink);border:2px solid #c6a9d9;border-radius:12px;min-height:48px;padding:8px 32px 8px 12px;font-size:16px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23501455' stroke-width='2'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat}.steps-panel{background:var(--pale);padding:25px 17px;border-radius:var(--radius)}.steps-panel h2{text-align:center;background:var(--yellow);padding:13px 4px;border-radius:35px;font-size:23px}.step-list{background:white;border-radius:23px;padding:8px 15px;margin:20px 0 0;list-style:none}.step-list li{display:flex;gap:10px;align-items:center;min-height:105px;font-size:23px;font-weight:700;white-space:nowrap}.step-list li+li{border-top:2px solid var(--line)}.step-list svg{width:34px;height:34px;stroke:var(--red);fill:none;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.step-note{margin:20px 5px 0}.action-band{background:var(--pale);display:flex;justify-content:center;gap:22px;flex-wrap:wrap;padding:22px;margin-top:24px;border-radius:var(--radius)}.action-band button{min-width:220px;min-height:64px;font-size:23px}.action-band svg{width:24px;height:24px;vertical-align:-5px;margin-right:10px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.extra-section{margin-top:32px;padding:8px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.section-heading h2{margin:0;font-size:25px}.syllable-row{display:flex;flex-wrap:wrap;gap:10px}.syllable-row button{font:600 29px Georgia,serif;border-color:var(--line);background:white;min-width:76px;min-height:62px}.syllable-row button.chosen{background:var(--yellow);border-color:var(--yellow)}.tone-list{display:flex;gap:12px;flex-wrap:wrap;padding:18px 0}.tone-button{background:var(--soft);min-width:100px;display:flex;flex-direction:column;align-items:center;gap:5px}.tone-button strong{font:600 37px/1.4 Georgia,serif}.tone-button small{font-size:14px;font-weight:400}.tone-button.playing{background:var(--yellow)}.practice-tools{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.practice-tools button{font-size:17px}.sound-feedback{min-height:28px;margin:8px 0;font-size:16px;color:#715577}.learn-checkboxes{display:flex;gap:20px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--line);font-size:17px}.learn-checkboxes label{display:flex;align-items:center;gap:9px;cursor:pointer;min-height:44px}input[type=checkbox]{accent-color:#835294;width:21px;height:21px}.site-footer{max-width:1500px;display:flex;justify-content:space-between;gap:16px;padding:22px 3.5% 28px;color:#7d6382;font-size:15px;border-top:1px solid var(--line);margin:20px auto 0}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90%;border-radius:16px;background:var(--ink);color:white;padding:13px 22px;font-size:17px;box-shadow:0 6px 25px #30163325;z-index:20;pointer-events:none;opacity:0;transition:opacity .2s}#notice.visible{opacity:1}.skip{position:fixed;left:15px;top:-70px;background:white;z-index:99;padding:15px;border:2px solid var(--ink)}.skip:focus{top:12px}dialog{border:0;border-radius:28px;width:min(800px,94vw);max-height:86vh;padding:28px 34px;color:var(--ink);box-shadow:0 20px 90px #33103d30}dialog::backdrop{background:#2e123966}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.dialog-heading h2{margin-bottom:0}.icon-button{font-size:30px;min-width:48px;padding:0}.parent-copy{line-height:1.85;font-size:16px}.parent-copy h3{margin:26px 0 8px}.parent-copy ul{padding-left:24px}.parent-copy li{margin:8px 0}.parent-copy a{overflow-wrap:anywhere}.source-table{width:100%;border-collapse:collapse;font-size:14px}.source-table th,.source-table td{border-bottom:1px solid var(--line);text-align:left;padding:9px 8px}.parent-copy details{margin:16px 0}.parent-copy summary{cursor:pointer;min-height:44px;padding:10px 0}.page-heading{text-align:center;margin:7px 0 25px}.page-heading p{color:var(--muted)}.math-workspace{max-width:1000px;margin:auto}.number-choices{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.number-choices button{min-width:64px;font-size:24px}.number-choices .selected{background:var(--yellow)}.math-total{margin:28px 0 20px;background:var(--soft);border-radius:25px;padding:20px;text-align:center;font-size:22px}.total-number{font-size:40px;font-weight:800;vertical-align:-3px;margin:0 8px}.bowls{display:grid;grid-template-columns:1fr 1fr;gap:25px}.bowl{border:3px solid var(--line);border-radius:28px;min-height:220px;padding:20px;text-align:center}.bowl h2{font-size:21px;margin-bottom:20px}.bowl:nth-child(2){border-color:#ffd6d8}.stones{display:flex;justify-content:center;align-content:center;flex-wrap:wrap;gap:12px;min-height:100px}.stone{padding:0;background:#ffdc57;border-color:#e4b92c;width:46px;height:46px;min-height:46px;border-radius:15px;box-shadow:inset 0 -4px #e7bb3425;position:relative}.stone:hover{background:#f6d252}.stone:before{content:"";width:10px;height:10px;border-radius:50%;background:#fff9c0;position:absolute;left:8px;top:7px}.bowl:nth-child(2) .stone{background:#c9b0f0;border-color:#a78ac8}.equation-row{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:25px}.equation{background:var(--pale);border-radius:20px;padding:15px 22px;font-size:30px;min-width:220px;text-align:center;font-variant-numeric:tabular-nums}.math-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:20px}.math-hint{text-align:center;margin:15px 0 0;color:var(--muted);font-size:16px}.challenge{margin-top:26px;border-top:2px solid var(--line);padding:24px 0;text-align:center}.challenge p{font-size:21px}.answer-choices{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.answer-choices button{font-size:28px;min-width:70px}.answer-choices button.correct{background:#d7eed0}.zero-note{background:var(--soft);border-radius:18px;padding:15px 20px;margin-top:20px;font-size:16px}.print-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start}.print-controls{background:var(--soft);border-radius:25px;padding:24px}.field{display:block;margin:0 0 21px;font-weight:700}.field select{width:100%;display:block;margin-top:9px}.print-controls button{width:100%;margin-top:10px}.print-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:20px}.print-picker button{padding:7px;min-height:48px;font:600 24px Georgia,serif;background:white;border-color:var(--line)}.print-picker button.selected{background:var(--yellow);border-color:var(--yellow)}.paper-preview{background:#eee9f1;border-radius:20px;padding:20px;overflow:auto}.worksheet{background:white;color:#222;width:100%;max-width:760px;margin:auto;padding:28px 32px;font-family:"Microsoft YaHei","PingFang SC",sans-serif}.worksheet h2{font-size:25px;margin-bottom:12px}.sheet-meta{display:flex;justify-content:space-between;gap:15px;font-size:14px;margin-bottom:20px}.sheet-instruction{font-size:14px;margin-bottom:15px;line-height:1.8}.worksheet h3{font-size:17px;margin:20px 0 10px}.stroke-strip{display:flex;gap:7px;margin:10px 0 18px;align-items:center}.stroke-thumb{width:75px}.stroke-thumb span{display:block;text-align:center;font-size:12px}.stroke-thumb svg{width:100%;height:auto}.writing-row{display:flex;margin-bottom:13px;break-inside:avoid}.practice-cell{flex:1;min-width:0}.practice-cell svg{display:block;width:100%;height:auto}.worksheet .sheet-note{font-size:12px;color:#555;line-height:1.8;margin:20px 0 0}.worksheet .ink{stroke:#222}.worksheet .guide{stroke:#999}.worksheet .ghost{stroke:#999;stroke-width:7;stroke-dasharray:5 4}.worksheet .digit-grid{stroke:#aaa}.worksheet .start-dot{fill:#444}.count-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:20px 0}.split-exercise{text-align:center;border:1px solid #bbb;padding:17px;font-size:24px;break-inside:avoid}.branches{width:90px;height:25px;display:block;margin:5px auto}.blank{display:inline-block;width:32px;height:32px;border:1px solid #666;vertical-align:-6px;margin:0 8px}#print-output{display:none}
@media(min-width:1450px){.writing-board{height:420px}.letter-button{height:108px}.step-list li{min-height:125px}}
@media(max-width:1120px){.site-header{padding:20px 3%;gap:14px}.site-header nav{gap:6px}.site-header nav button{padding:10px 14px}.learning-layout{grid-template-columns:210px minmax(330px,1fr)}.steps-panel{grid-column:1/-1;padding:14px 22px;display:flex;align-items:center;gap:20px}.steps-panel h2{font-size:21px;margin:0;min-width:140px}.step-list{display:flex;flex:1;margin:0;padding:0 15px;justify-content:space-around}.step-list li{font-size:20px;min-height:65px}.step-list li+li{border:0}.step-note{display:none}.writing-board{height:340px}.letter-button{height:78px;font-size:42px}.picker{padding:23px 18px}.writing-panel{padding:20px}.print-layout{grid-template-columns:250px minmax(0,1fr);gap:22px}}
@media(max-width:760px){.site-header{flex-wrap:wrap;padding:18px 4% 14px;gap:15px}.brand{font-size:27px}.parent-button{margin-left:auto;min-height:46px}.site-header nav{order:3;width:100%;justify-content:space-between;gap:7px}.site-header nav button{flex:1;min-width:0;font-size:18px;padding:10px 8px;min-height:50px;border-radius:16px}main{padding:24px 4% 12px}.learning-layout{grid-template-columns:170px minmax(270px,1fr);gap:13px}.picker{padding:20px 13px}.picker h1{font-size:24px}.letter-grid{gap:9px}.letter-button{height:64px;font-size:35px;border-radius:15px}.segments{gap:5px}.segments button{font-size:16px;min-height:44px}.writing-panel{padding:17px 12px}.panel-heading{font-size:19px}.playback-controls button{font-size:17px;min-height:52px;padding:9px 14px}.playback-controls .primary{min-width:130px}.stroke-caption{font-size:15px}.steps-panel{padding:14px}.steps-panel h2{display:none}.step-list li{font-size:18px;gap:6px}.step-list svg{width:28px;height:28px}.print-layout{grid-template-columns:1fr}.print-controls{padding:20px}.field{display:inline-block;width:calc(50% - 12px);vertical-align:top;margin-right:9px}.print-controls button{width:auto}.print-picker{grid-template-columns:repeat(7,1fr)}.paper-preview{padding:12px}.worksheet{padding:24px}.site-footer{font-size:13px}.site-footer span:last-child{display:none}.numbers-grid .letter-button{height:62px;font-size:30px}}
@media(max-width:540px){.learning-layout{grid-template-columns:1fr}.picker{padding:18px}.picker h1{margin-bottom:15px;font-size:25px}.picker h1:after{display:none}.segments{max-width:260px;margin-bottom:18px}.letter-grid,.numbers-grid{grid-template-columns:repeat(6,1fr);gap:8px}.letter-button{height:57px;font-size:32px}.numbers-grid .letter-button:last-child{grid-column:auto}.picker .helper{display:none}.writing-board{height:330px}.board-wrap{min-height:260px}.writing-panel{padding:19px}.steps-panel{grid-column:auto}.step-list{padding:0 8px}.step-list li{min-height:55px;font-size:17px}.step-list svg{width:23px;height:23px}.action-band{gap:12px;padding:16px;margin-top:18px}.action-band button{min-width:0;flex:1;font-size:18px;min-height:57px;padding:10px 8px}.action-band svg{margin-right:5px;width:20px;height:20px}.syllable-row{gap:8px}.syllable-row button{font-size:25px;min-width:63px;padding:8px}.tone-button{min-width:78px;padding:10px}.tone-button strong{font-size:32px}.section-heading{flex-wrap:wrap}.section-heading h2{font-size:23px}.bowls{gap:12px}.bowl{padding:17px 10px;min-height:200px}.stone{width:38px;height:38px;min-height:38px;border-radius:12px}.stones{gap:8px}.equation{font-size:25px;min-width:150px;padding:14px}.number-choices{gap:8px}.number-choices button{min-width:45px;padding:8px 13px}.print-picker{grid-template-columns:repeat(6,1fr)}.worksheet{padding:19px 15px}.sheet-meta{font-size:12px}.worksheet h2{font-size:20px}.stroke-thumb{width:56px}.learn-checkboxes{gap:12px;font-size:16px}.parent-copy{font-size:15px}dialog{padding:20px}.source-table{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.segments{flex-wrap:wrap}.segments button{flex:1 1 42%;font-size:16px;padding:9px 8px}.scope-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;margin:0 0 16px;font-size:15px}.scope-summary button{font-size:15px;padding:7px 10px}.letter-grid{max-height:440px;overflow-y:auto;padding:4px}.multi-letter{font-size:30px!important;letter-spacing:0}.scope-copy{font-size:17px;line-height:1.7}.scope-tools{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.scope-group{border:1px solid var(--line);border-radius:18px;margin:18px 0;padding:16px}.scope-group legend{font-weight:700;padding:0 10px}.scope-group-toggle{font-size:15px;min-height:44px;margin-bottom:12px}.scope-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:10px}.scope-options label{display:flex;align-items:center;gap:8px;min-height:52px;border-radius:12px;background:var(--soft);padding:10px;cursor:pointer;font-size:22px}.scope-options input{width:22px;height:22px;accent-color:var(--red);margin:0}.scope-save{display:flex;align-items:center;gap:14px;flex-wrap:wrap;position:sticky;bottom:-1px;background:white;padding:16px 0;border-top:1px solid var(--line)}#scope-feedback{min-height:30px;font-weight:700}.reading-tip{border-left:4px solid var(--yellow);padding:14px 18px;background:var(--pale);line-height:1.7}.print-picker{max-height:360px;overflow-y:auto}.compound-sheet .stroke-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.compound-sheet .stroke-thumb{width:auto!important}.compound-sheet .stroke-thumb svg{width:100%;height:auto}.scope-copy p{overflow-wrap:anywhere}@media(max-width:540px){.segments{max-width:none}.segments button{flex-basis:26%;font-size:15px}.letter-grid{max-height:240px}.multi-letter{font-size:23px!important}.scope-options{grid-template-columns:repeat(3,minmax(0,1fr))}.scope-options label{font-size:20px}.scope-group{padding:12px}.scope-save button{width:100%}.scope-summary{margin-bottom:12px}.compound-sheet .stroke-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@page{size:A4;margin:15mm}
.category-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.category-tabs button{min-height:50px;font-size:18px;background:white;border-color:var(--line);padding:9px 20px}.category-tabs .selected{background:var(--coral);border-color:var(--coral)}.learning-layout{align-items:start}.letter-grid{max-height:280px}.board-wrap+.stroke-caption{margin-top:16px}.writing-panel .board-wrap{min-height:320px}@media(max-width:540px){.category-tabs{gap:7px;margin-bottom:15px}.category-tabs button{font-size:15px;min-height:44px;padding:8px 12px}.letter-grid{max-height:180px}.writing-panel .board-wrap{min-height:260px}}
.source-lesson{font-size:16px;min-height:48px;display:inline-flex;align-items:center;padding:10px}.audio-note{font-size:16px;line-height:1.6;text-align:center;color:var(--muted);margin:12px 0 20px}
.letter-grid{grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:hidden}.unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.letter-button{min-width:0}.multi-letter{font-size:28px!important}.board-wrap{flex:0 0 auto}.writing-panel{justify-content:flex-start}.board-wrap+.stroke-caption{margin-top:auto}@media(max-width:540px){.letter-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.unit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.multi-letter{font-size:23px!important}}
@media print{body>*{display:none!important}#print-output{display:block!important;color:#111}#print-output .worksheet{padding:0;max-width:none;width:100%;box-shadow:none;break-after:page}#print-output .worksheet:last-child{break-after:auto}#print-output svg{print-color-adjust:exact;-webkit-print-color-adjust:exact}#print-output .sheet-note{font-size:10pt}#print-output .writing-row{margin-bottom:5mm}#print-output .stroke-thumb{width:19mm}#print-output .worksheet h2{font-size:18pt}#print-output .practice-cell svg{max-height:29mm}}

.letter-button,.syllable-row button,.tone-button strong,.print-picker button{font-family:"Comic Sans MS","Segoe Print",Georgia,serif}
.today-quick{display:flex;justify-content:space-between;align-items:center;gap:18px;border:2px solid var(--line);border-radius:22px;margin-top:24px;padding:18px 22px}.today-quick strong{font-size:20px}.today-quick p{font-size:15px;color:var(--muted);margin:5px 0 0}.today-quick>div:last-child{display:flex;gap:10px;flex-wrap:wrap}.word-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:850px}.word-cards button{display:flex;flex-direction:column;gap:10px;align-items:center;padding:20px}.word-cards button span{font-size:25px}.word-cards strong{font:600 34px "Comic Sans MS","Segoe Print",Georgia,serif}.today-print-actions{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin-bottom:25px}.today-preview{max-width:860px;margin:auto}.today-preview .worksheet+.worksheet{margin-top:22px}.today-row-label{font:600 18px "Comic Sans MS","Microsoft YaHei",sans-serif;margin:10px 0 3px}.today-sheet .writing-row{margin-bottom:10px}.today-sheet h3{margin-top:14px}.word-practice{border-top:1px solid var(--line);padding-top:25px}.book-downloads{margin-top:26px}.book-downloads a{display:inline-block;margin:5px 14px 5px 0;min-height:44px;padding:10px 0}
@media(max-width:760px){.today-quick{flex-direction:column;align-items:flex-start}.today-quick>div:last-child{width:100%}.today-quick button{flex:1}.word-cards button{padding:17px 8px}.word-cards strong{font-size:27px}}
@media print{#print-output .today-sheet .writing-row{margin-bottom:2mm}#print-output .today-row-label{margin:2mm 0 1mm;font-size:11pt;line-height:1.2}#print-output .today-sheet h3{margin:2mm 0;font-size:11pt}#print-output .today-sheet .sheet-note{font-size:9pt;line-height:1.5;margin-top:3mm}#print-output .today-sheet .sheet-instruction{margin-bottom:3mm}#print-output .today-sheet .sheet-meta{margin-bottom:3mm}}

/* 作者 mahonggeng；平板的当前环节与统一操作保持在一个可视区。 */
.site-header{height:72px;min-height:72px;padding:10px 24px;gap:16px}.brand{font-size:28px}.site-header nav{gap:8px}.site-header nav button{min-height:46px;font-size:20px;padding:8px 20px}.site-header nav button[aria-current=page]{background:var(--coral);color:white}.parent-button{min-height:44px;font-size:17px;padding:8px 16px}.site-footer{font-size:13px}
body.lesson-page .site-footer{display:none}.lesson-main{height:calc(100dvh - 72px);max-width:1600px;padding:12px 20px 16px;display:flex;flex-direction:column;gap:12px}.lesson-main .category-tabs{flex:none;margin:0;gap:8px;flex-wrap:nowrap}.lesson-main .category-tabs button{font-size:17px;min-height:44px;padding:7px 16px;flex:1;white-space:nowrap}.lesson-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;min-height:0;flex:1}.lesson-picker{background:var(--soft);border-radius:24px;padding:18px 12px 12px;display:flex;flex-direction:column;gap:14px;min-height:0}.lesson-picker h1{font-size:23px;line-height:1.35;margin:0 5px}.lesson-letter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;min-height:0;align-content:start;flex:1;padding:3px}.lesson-letter-grid button{font-family:"Comic Sans MS","Segoe Print",Georgia,serif;font-size:32px;min-width:0;min-height:48px;padding:2px;background:white;border:2px solid var(--line);border-radius:15px}.lesson-letter-grid button.selected{background:var(--coral);border-color:var(--coral);box-shadow:0 0 0 2px var(--yellow);color:#501455}.lesson-letter-grid.digit-picker,.lesson-letter-grid.multi-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-letter-grid.multi-picker button{font-size:25px}.lesson-letter-grid.digit-picker button{min-height:53px;font-size:32px}.item-navigation{display:flex;gap:6px}.item-navigation button{flex:1;min-width:0;min-height:44px;font-size:14px;padding:6px 3px;background:white;border:1px solid var(--line)}
.lesson-surface{border:2px solid var(--line);border-radius:25px;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:white}.lesson-tabs{display:flex;flex:none;gap:5px;padding:10px 12px 0}.lesson-tabs button{flex:1;padding:8px 5px;min-height:48px;border-radius:15px 15px 4px 4px;background:#eee3fa;font-size:21px;white-space:nowrap}.lesson-tabs .selected{background:var(--coral);color:white;box-shadow:0 4px 0 var(--yellow)}.lesson-title{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px 4px;min-height:54px;flex:none}.lesson-title h2{font-size:clamp(24px,2.8vw,34px);line-height:1.3;margin:0}.lesson-title button{font-size:14px;min-height:38px;padding:5px 10px}.lesson-content{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:0;min-width:0;flex:1;padding:6px 22px 10px;overflow:hidden}.lesson-content p{max-width:100%}.lesson-glyph{display:block;max-width:100%;max-height:100%;width:100%;height:100%;overflow:visible}.recognize-art{display:flex;justify-content:center;align-items:center;gap:24px;min-height:0;flex:1;width:100%;max-height:340px}.recognize-art>.lesson-glyph{width:42%;height:100%}.memory-picture{width:42%;height:100%;max-width:290px;display:flex;align-items:center}.object-picture{display:block;width:100%;height:100%;max-height:100%;overflow:visible}.memory-line{font-size:clamp(22px,2.6vw,32px);line-height:1.4;font-weight:800;margin:10px 0 5px;text-align:center}.lesson-small{font-size:15px;line-height:1.55;color:var(--muted);text-align:center;margin:5px 0}.reading-cue{font-size:20px;line-height:1.5;text-align:center;margin:8px 0}.recognize-word{flex:1;max-width:330px;text-align:center}.recognize-word>span{display:block;font-size:19px;background:var(--soft);border-radius:12px;padding:8px}.recognize-word strong{font-size:94px;line-height:1.25;display:block;margin:12px 0 0}.recognize-word p{font-size:24px;line-height:1.4;margin:0}.symbol-meaning{display:flex;align-items:center;flex-direction:column;height:100%;font-size:26px;text-align:center}.symbol-meaning .lesson-glyph{min-height:0;flex:1;max-height:240px}
.lesson-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:5px 14px 0;flex:none}.lesson-actions button{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:var(--coral);color:#501455;min-height:70px;padding:7px 3px;font-size:21px;border-radius:18px}.lesson-actions button:hover{background:#ff9392}.lesson-actions svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.lesson-actions button.playing{background:var(--yellow)}.lesson-status{height:28px;line-height:20px;flex:none;font-size:13px;text-align:center;margin:3px 10px 0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.example-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;margin:0 0 8px;flex:none;font-size:16px}.example-controls select{margin-left:5px;max-width:220px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:6px;background:white;color:var(--ink)}.example-controls>span{background:var(--pale);border-radius:15px;padding:8px}.split-equation{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:100px;max-height:180px;flex:1}.split-equation>div{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0;background:var(--soft);border-radius:20px;align-self:stretch;padding:3px}.split-equation>div:last-child{border:3px solid var(--coral);background:#fff6f5}.split-equation strong{font:600 clamp(42px,7vw,84px)/1.15 "Comic Sans MS","Segoe Print",Georgia,serif}.split-equation>div>span{font-size:17px;line-height:1.5;padding:4px 0}.split-equation>b{font-size:28px}.split-equation .lesson-glyph{min-height:0;flex:1;max-height:140px}.whole-reading{display:flex;align-items:center;gap:20px;min-height:100px;flex:1;width:100%;max-height:180px}.whole-reading .lesson-glyph{flex:1;min-width:0;width:65%}.whole-reading>span{font-size:23px;max-width:180px;line-height:1.6}.example-word{display:flex;align-items:center;justify-content:center;gap:20px;flex:none;margin:6px 0}.example-word strong{font-size:55px;line-height:1.25}.example-word span{font-size:17px;line-height:1.5;max-width:430px}.combination-note{background:var(--pale);border-radius:15px;padding:10px 15px;font-size:17px;line-height:1.55;margin:6px 0;width:100%;flex:none}.tone-rule{font-size:14px;line-height:1.55;margin:5px 0;color:var(--muted);flex:none;text-align:center}
.writing-view-switch{display:flex;gap:5px;flex:none;background:var(--soft);padding:3px;border-radius:14px;margin:0 0 4px}.writing-view-switch button{font-size:16px;min-height:40px;padding:5px 16px;border-radius:10px;background:transparent}.writing-view-switch .selected{background:var(--yellow)}.lesson-writing{flex:1;min-height:0;width:100%;display:flex;align-items:stretch;justify-content:center;gap:16px}.lesson-writing .board-wrap{min-height:0!important;flex:1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0}.lesson-writing .writing-board{min-height:0!important;max-height:100%;max-width:100%;height:100%;width:100%;display:block}.lesson-writing.with-diagram{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(170px,1fr)}.diagram-notes{font-size:15px;line-height:1.65;min-height:0;overflow:auto;padding:6px 4px}.diagram-notes ol{padding-left:22px;margin:8px 0}.diagram-notes ol.many-steps{columns:2;column-gap:23px}.diagram-notes li{break-inside:avoid}.diagram-notes p{margin:8px 0}.diagram-notes a{font-size:13px}.direction-path{stroke:#d83349;fill:none;stroke-width:2;stroke-linecap:round}.stroke-number{fill:#d83349;font:700 22px sans-serif;stroke:white;stroke-width:3px;paint-order:stroke}.lesson-content .stroke-caption{margin:6px 0 3px;font-size:15px;line-height:1.4;text-align:center;min-height:22px;flex:none}.lesson-content .playback-controls{margin:3px 0 0;display:flex;justify-content:center;align-items:center;gap:7px;flex:none}.lesson-content .playback-controls button{min-height:40px;font-size:15px;padding:5px 12px}.lesson-content .speed-label{font-size:14px}.lesson-content .speed-label select{min-height:38px;padding:5px;font-size:14px}
.count-objects{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;max-width:630px;min-height:0;flex:1;padding:8px}.count-object{background:none;border:2px solid transparent;min-height:64px;width:100px;height:100px;padding:4px}.count-object:hover{background:var(--pale)}.many-objects .count-object{width:76px;height:76px}.count-object.counted{border-color:#a286c0;background:var(--pale)}.empty-plate{border:5px solid var(--line);border-radius:50%;padding:35px 50px;font-size:22px;color:var(--muted)}.view-practice h2,.view-count h2{font-size:25px;margin:4px 0 10px}.quiz-options{display:flex;gap:18px;justify-content:center;flex:none}.quiz-options button{font-size:31px;min-height:60px;min-width:75px;background:var(--soft);border:2px solid var(--line)}.quiz-options .correct{background:#e4f2cb;border-color:#aac97d}.quiz-feedback{height:32px;font-size:17px;margin:7px 0 0;line-height:1.5;text-align:center;flex:none}.quiz-word{display:flex;align-items:center;justify-content:center;gap:20px;min-height:100px;max-height:190px;flex:1;width:100%}.quiz-word .lesson-glyph{max-width:65%}.quiz-word>strong{font-size:70px}.paper-guidance{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;height:100%;width:100%}.paper-guidance>.lesson-glyph{flex:1;min-height:0;max-height:190px}.paper-guidance h2{font-size:23px;margin:5px 0}.paper-guidance>p{font-size:17px;margin:5px 0}.paper-guidance .learn-checkboxes{font-size:16px;margin:8px 0;gap:20px}.empty-lesson{font-size:22px;line-height:1.7;text-align:center}.listen-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.listen-content>.lesson-glyph{max-height:180px;min-height:0;flex:1}.listen-content h3{font-size:27px;margin:0}.listen-content p{font-size:20px;line-height:1.6;text-align:center;margin:3px 0}.listen-content .listen-note{font-size:16px;color:var(--muted);background:var(--pale);padding:12px;border-radius:15px}
@media(max-width:1100px){.site-header{padding:9px 18px;gap:10px}.brand{font-size:25px}.site-header nav button{font-size:19px;padding:8px 14px}.lesson-main{padding:10px 14px 14px;gap:10px}.lesson-layout{grid-template-columns:166px minmax(0,1fr);gap:12px}.lesson-picker{padding:14px 9px 10px;gap:10px}.lesson-picker h1{font-size:21px}.lesson-main .category-tabs button{font-size:16px;padding:6px 9px}.lesson-tabs button{font-size:20px}.lesson-content{padding:5px 15px 8px}.split-equation{gap:8px}.split-equation strong{font-size:58px}.split-equation>b{font-size:22px}.combination-note{font-size:16px;padding:8px 12px}.tone-rule{font-size:13px}.example-controls{font-size:14px;gap:6px}.example-controls select{max-width:175px}.lesson-actions button{font-size:20px;min-height:66px}.lesson-actions svg{width:23px;height:23px}.diagram-notes{font-size:14px}.lesson-writing.with-diagram{grid-template-columns:minmax(0,1fr) minmax(170px,1fr);gap:8px}.lesson-letter-grid.multi-picker button{font-size:23px}.recognize-word strong{font-size:78px}.recognize-word p{font-size:21px}.reading-cue{font-size:18px}}
@media(max-width:850px) and (orientation:portrait){.site-header{height:68px;min-height:68px;padding:8px 12px;gap:8px}.brand{font-size:23px}.site-header nav button{font-size:17px;padding:8px 12px}.parent-button{font-size:15px;padding:8px 12px}.lesson-main{height:calc(100dvh - 68px)}.lesson-main .category-tabs{flex-wrap:wrap;gap:6px}.lesson-main .category-tabs button{flex:1 1 20%;min-height:42px;padding:5px 8px}.lesson-layout{display:flex;flex-direction:column}.lesson-picker{flex:none;display:flex;flex-direction:row;padding:8px 12px;gap:12px;max-height:159px;border-radius:18px}.lesson-picker h1{display:none}.lesson-letter-grid,.lesson-letter-grid.multi-picker,.lesson-letter-grid.digit-picker{grid-template-columns:repeat(7,minmax(0,1fr));max-height:140px;gap:6px;flex:1}.lesson-letter-grid button,.lesson-letter-grid.digit-picker button{font-size:27px;min-height:40px;border-radius:10px}.lesson-letter-grid.multi-picker button{font-size:23px}.item-navigation{flex-direction:column;justify-content:center;flex:none;width:84px}.item-navigation button{flex:none;min-height:42px}.lesson-surface{flex:1}.recognize-art{max-height:360px}.recognize-word strong{font-size:95px}.lesson-tabs button{font-size:22px}.lesson-actions button{font-size:21px;min-height:76px}.lesson-title h2{font-size:31px}.lesson-writing.with-diagram{grid-template-columns:minmax(0,1fr) minmax(190px,1fr)}.diagram-notes{font-size:16px}.split-equation strong{font-size:65px}.reading-cue{font-size:21px}}
@media(max-height:700px) and (min-width:851px){.site-header{height:62px;min-height:62px}.lesson-main{height:calc(100dvh - 62px);padding-top:8px;gap:8px}.lesson-title{min-height:42px;padding:7px 10px 2px}.lesson-title h2{font-size:25px}.lesson-tabs{padding-top:6px}.lesson-tabs button{min-height:42px;font-size:18px}.lesson-actions button{min-height:56px;font-size:17px;flex-direction:row}.lesson-actions svg{width:20px;height:20px}.lesson-status{height:22px;font-size:12px}.memory-line{font-size:23px;margin:6px 0}.reading-cue{font-size:17px;margin:5px 0}.lesson-small{font-size:13px}.combination-note{font-size:14px;margin:4px 0}.tone-rule{font-size:12px;margin:3px 0}.example-word strong{font-size:40px}.example-word span{font-size:14px}.example-controls select{min-height:36px}.split-equation strong{font-size:48px}.split-equation>div>span{font-size:14px}.example-controls{margin-bottom:4px}.lesson-letter-grid button{min-height:40px}.lesson-letter-grid.digit-picker button{min-height:40px}.lesson-picker{gap:8px}.diagram-notes{font-size:13px}}
@media(max-width:600px){.site-header{height:auto;min-height:100px;flex-wrap:wrap;padding:10px 12px}.brand{font-size:24px}.site-header nav{order:3;width:100%;justify-content:space-between;gap:5px}.site-header nav button{flex:1;min-height:42px;font-size:16px;padding:7px}.lesson-main{height:auto;min-height:calc(100dvh - 110px);padding:8px;gap:8px}.lesson-main .category-tabs{flex-wrap:wrap;gap:5px}.lesson-main .category-tabs button{flex:1 1 25%;font-size:14px;min-height:40px}.lesson-layout{display:flex;flex-direction:column;gap:10px}.lesson-picker{display:flex;flex-direction:row;max-height:136px;padding:6px;gap:6px}.lesson-picker h1{display:none}.lesson-letter-grid,.lesson-letter-grid.multi-picker,.lesson-letter-grid.digit-picker{grid-template-columns:repeat(6,minmax(0,1fr));max-height:120px;gap:5px}.lesson-letter-grid button,.lesson-letter-grid.digit-picker button{font-size:23px;min-height:36px}.lesson-letter-grid.multi-picker button{font-size:17px}.item-navigation{width:55px;flex-direction:column}.item-navigation button{font-size:12px;min-height:38px}.lesson-surface{min-height:520px}.lesson-tabs{padding:8px 6px 0;gap:3px}.lesson-tabs button{font-size:17px;min-height:43px}.lesson-title{padding:10px 8px 3px;min-height:46px}.lesson-title h2{font-size:25px}.lesson-content{min-height:310px;padding:6px 10px;overflow:visible}.recognize-art{min-height:180px;gap:10px}.memory-line{font-size:23px}.recognize-word strong{font-size:68px}.recognize-word p{font-size:19px}.reading-cue{font-size:17px}.lesson-small{font-size:13px}.lesson-actions{gap:5px;padding:5px 7px 0}.lesson-actions button{font-size:16px;min-height:65px}.lesson-status{font-size:11px}.split-equation{gap:5px;min-height:115px}.split-equation strong{font-size:40px}.split-equation>b{font-size:18px}.split-equation>div>span{font-size:13px}.example-controls{font-size:12px;gap:4px}.example-controls select{max-width:130px;min-height:40px}.example-word strong{font-size:44px}.example-word span{font-size:14px}.combination-note{font-size:14px}.tone-rule{font-size:12px}.lesson-writing{min-height:210px}.lesson-writing.with-diagram{grid-template-columns:1fr;gap:8px}.with-diagram .board-wrap{min-height:200px!important}.diagram-notes{font-size:14px;overflow:visible}.count-object{width:72px;height:72px}.many-objects .count-object{width:55px;height:55px}.count-objects{gap:6px}.quiz-options{gap:10px}.quiz-options button{font-size:25px;min-width:62px;min-height:52px}.paper-guidance h2{font-size:20px}.paper-guidance .learn-checkboxes{font-size:15px;gap:10px}}
@media print{.lesson-main,.lesson-actions{display:none!important}#print-output .lesson-sheet-note{font-size:10pt;line-height:1.5;margin:2mm 0 3mm}}

@media(min-width:601px){.site-header{flex-wrap:nowrap}.site-header nav{order:0;width:auto}.brand{padding-left:8px}}

body.math-page .site-footer,body.print-page .site-footer{display:none}
body.math-page main{height:calc(100dvh - 72px);padding:12px 24px 16px}.math-workspace{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;position:relative}.math-workspace .page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0}.math-workspace .page-heading h1{font-size:28px;line-height:1.3;margin:0}.math-workspace .page-heading p{font-size:16px;margin:0}.math-workspace .number-choices{margin:0;gap:8px}.math-workspace .number-choices button{min-height:44px;min-width:44px;padding:5px 14px;font-size:19px}.math-workspace .math-total{font-size:19px;line-height:1.4;margin:0}.math-workspace .total-number{font-size:32px;line-height:1.2;margin:0 8px}.math-workspace .bowls{flex:1;min-height:120px;margin:0;gap:16px}.math-workspace .bowl{min-height:0;padding:12px}.math-workspace .bowl h2{font-size:20px;margin:0 0 8px}.math-workspace .stones{gap:8px}.math-workspace .stone{width:38px;height:38px;min-height:38px;border-radius:10px}.math-workspace .math-hint{margin:0;font-size:21px;line-height:1.4}.math-workspace .equation-row{margin:0;gap:12px}.math-workspace .equation{font-size:25px;padding:9px 22px;min-width:230px}.math-workspace .math-actions{margin:0;gap:10px}.math-workspace .math-actions button{font-size:17px;min-height:44px;padding:7px 16px}.math-workspace .zero-note{margin:0;padding:6px 10px;font-size:14px}.math-workspace .zero-note p{font-size:13px;line-height:1.5}.math-workspace #math-challenge:not(:empty){position:absolute;top:135px;bottom:175px;left:8%;right:8%;z-index:2;background:var(--pale);border:2px solid var(--line);border-radius:24px;display:flex;align-items:center;justify-content:center;padding:20px}.math-workspace #math-challenge .challenge{padding:0;margin:0;border:0;background:none;text-align:center}.math-workspace #math-challenge .challenge p{font-size:21px;margin:10px 0}
body.print-page main{height:calc(100dvh - 72px);padding:12px 22px;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden}body.print-page .page-heading{margin:0}body.print-page .page-heading h1{font-size:27px;margin:0;line-height:1.4}body.print-page .page-heading p{font-size:15px;line-height:1.5;margin:3px 0}.print-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;min-height:0;flex:1}.print-controls{padding:14px;min-height:0;overflow:auto}.print-controls .field{font-size:15px;margin:0 0 8px}.print-controls .field select{font-size:16px;min-height:40px}.print-controls .print-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:185px;gap:5px;margin:10px 0}.print-controls .print-picker button{font-size:16px;min-height:40px;padding:5px}.print-controls>button{font-size:15px;min-height:42px;margin:5px 0;padding:7px 10px}.print-controls .subtext{font-size:12px;line-height:1.5}.paper-preview{min-height:0;overflow:auto;padding:6px;background:#f5f2f7}.paper-preview .worksheet{width:760px;max-width:none;margin:0 auto;transform-origin:top center}.today-preview{flex:1;max-width:none;width:100%}.today-print-actions{margin:0;gap:10px}.today-print-actions button{font-size:16px;min-height:44px;padding:7px 18px}.book-downloads{flex:none;margin:0;padding:7px 12px;border:1px solid var(--line);border-radius:13px;background:white;font-size:15px}.book-downloads summary{cursor:pointer;font-weight:700;min-height:24px}.book-downloads[open]{position:absolute;bottom:12px;left:20px;right:20px;max-height:55vh;overflow:auto;z-index:5;box-shadow:0 6px 20px #d8cae7}.book-downloads h2{font-size:20px;margin:10px 0}.book-downloads a{font-size:15px}.lesson-sheet-note{font-size:13px;line-height:1.5;margin:6px 0}.worksheet .ghost{stroke-width:11}
@media(max-width:600px){body.math-page main,body.print-page main{height:auto;padding:12px;overflow:visible}.math-workspace .page-heading{display:block}.math-workspace .page-heading p{margin-top:8px}.math-workspace .bowls{min-height:180px}.math-workspace .equation-row{flex-wrap:wrap}.math-workspace .equation{min-width:130px;font-size:22px;padding:8px}.math-workspace .math-actions{flex-wrap:wrap}.math-workspace #math-challenge:not(:empty){position:static;margin:8px 0}.print-layout{display:flex;flex-direction:column}.print-controls{max-height:none}.paper-preview{min-height:550px}.book-downloads[open]{position:static;max-height:none}.print-controls .print-picker{grid-template-columns:repeat(6,minmax(0,1fr))}}

.tone-ink{stroke:#d83349}.tone-target{color:#b52339;font-size:1.2em} .example-controls .tone-target{padding:0 3px}

.diagram-notes:has(.many-steps){font-size:13px;line-height:1.45}.diagram-notes .many-steps{font-size:13px;line-height:1.45;column-gap:16px}

@media(min-width:601px){.print-layout{grid-template-rows:minmax(0,1fr);align-items:stretch;overflow:hidden}.print-layout .paper-preview{height:100%;max-height:100%}.print-layout .print-controls{height:100%;max-height:100%}}

@media(max-height:700px) and (min-width:851px){.diagram-notes{padding:3px;font-size:12.5px;line-height:1.45}.diagram-notes ol{margin:5px 0}.diagram-notes p{margin:4px 0}}

/* 用户确认的环节导航、页内动作和底部三按钮各自归位。 */
.lesson-main{gap:10px}.lesson-layout{gap:16px}.lesson-surface{border:0;border-radius:0;background:transparent}.lesson-picker{border-radius:24px 24px 0 0}.lesson-title{padding:12px 24px 5px}.lesson-title h2{font-size:32px}.lesson-title.title-recognize{justify-content:flex-start}
.lesson-tabs{padding:0;gap:0}.lesson-tabs button{border-radius:0;clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%,12px 50%);min-height:49px;padding:8px 14px;background:#eee2f8;box-shadow:none}.lesson-tabs button:first-child{clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%);border-radius:24px 0 0 24px}.lesson-tabs button:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,12px 50%);border-radius:0 24px 24px 0}.lesson-tabs button.selected{background:var(--coral);box-shadow:none}
.lesson-footer{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:22px;align-items:center;padding:13px 18px;background:#eee3f8;border-top:1px solid #dcc9ed;flex:none;margin-top:6px}.lesson-footer button{min-height:54px;padding:8px 14px;font-size:23px;background:#fffdfd;border:0;border-radius:20px;color:var(--ink);white-space:nowrap}.lesson-footer .primary{background:var(--coral);color:white}.lesson-footer button:disabled{opacity:.4}
.lesson-status{height:23px;margin:2px 12px 0;line-height:20px}.lesson-status:empty{display:none}.lesson-letter-grid.digit-picker{grid-template-columns:1fr;gap:6px}.lesson-letter-grid.digit-picker button{min-height:42px;font-size:28px}
.content-sound{position:relative;border:0;background:transparent;border-radius:18px;padding:0;color:var(--ink)}.content-sound:hover{background:#fff8de}.content-sound:focus-visible,.stroke-trigger:focus-visible{outline:3px solid #d83349;outline-offset:3px}.content-sound.playing{background:#fff4c4}.sound-glyph{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;width:100%;height:100%}.speaker-badge{position:absolute;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:50%;background:#fff2be;color:#d83349}.speaker-badge svg,.question-sound svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.question-sound{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;min-height:48px;background:#fff1bd;font-size:20px;margin:8px 0}
.recognize-art:not(.pinyin-art){gap:18px;max-height:370px;align-items:center}.recognize-art:not(.pinyin-art)>.sound-glyph{width:27%;flex:0 0 27%}.recognize-art:not(.pinyin-art)>.memory-picture{width:28%;flex:0 0 28%}.recognition-rhyme{flex:1;min-width:0;padding:22px 16px;background:#fff0ad;border-radius:24px;text-align:left;font-size:27px;line-height:1.55;margin:0}.pinyin-art>.sound-glyph{width:43%;height:100%}.listen-content>.sound-glyph{flex:1;max-height:250px;width:min(75%,380px)}.split-equation .sound-glyph{flex:1;min-height:0}.whole-reading .sound-glyph{flex:1;min-width:0;width:65%}.quiz-word>.sound-glyph{flex:1;min-width:0;width:70%}
.lesson-writing .stroke-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;padding:0;background:transparent;min-height:0;min-width:0;border-radius:12px;color:var(--ink)}.stroke-trigger:hover{background:#fffaf0}.stroke-trigger .writing-board{flex:1;min-height:0;height:0;width:100%}.stroke-action{flex:none;font-size:14px;line-height:22px;min-height:22px;color:var(--muted)}.parent-learning-record{padding:15px;margin-bottom:20px;border:1px solid var(--line);border-radius:12px}.parent-learning-record label{display:inline-block;margin-right:20px}
@media(max-height:700px) and (min-width:851px){.lesson-footer{padding:9px 14px;gap:14px}.lesson-footer button{min-height:46px;font-size:20px}.lesson-title h2{font-size:28px}.lesson-title{min-height:42px;padding-top:8px}.lesson-tabs button{min-height:42px;font-size:19px}.recognition-rhyme{font-size:23px;padding:14px}.listen-content{gap:5px}.listen-content p{margin:4px 0}}
@media(max-width:850px) and (orientation:portrait){.lesson-letter-grid.digit-picker{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.lesson-letter-grid.digit-picker button{min-height:39px;font-size:26px}.lesson-footer{gap:12px;padding:12px 10px}.lesson-footer button{font-size:22px}.lesson-title h2{font-size:30px}.recognize-art:not(.pinyin-art){flex-wrap:wrap;align-content:center;gap:20px}.recognize-art:not(.pinyin-art)>.sound-glyph{flex:0 0 40%;width:40%;height:65%}.recognize-art:not(.pinyin-art)>.memory-picture{flex:0 0 40%;width:40%;height:65%}.recognition-rhyme{flex:0 0 90%;text-align:center;padding:14px;font-size:27px}}
@media(max-width:600px){.lesson-tabs button{font-size:16px;padding:8px 7px;min-height:42px}.lesson-footer{gap:8px;padding:10px 6px}.lesson-footer button{font-size:17px;min-height:46px;padding:6px}.lesson-title h2{font-size:25px}.recognize-art:not(.pinyin-art){min-height:300px}.recognition-rhyme{font-size:22px}.speaker-badge{width:30px;height:30px}.lesson-letter-grid.digit-picker{grid-template-columns:repeat(7,minmax(0,1fr))}.stroke-trigger .writing-board{height:240px;flex:none}}
.extension-switch{display:flex;align-items:center;gap:5px;flex:none;margin-bottom:8px;width:100%}.extension-switch button{min-height:40px;font-size:16px;background:#eee3f8;padding:6px 15px}.extension-switch .selected{background:var(--yellow)}.extension-switch small{margin-left:auto;color:var(--muted);font-size:14px}.example-controls button,.count-tools button,.practice-tools button{min-height:42px;font-size:17px;padding:7px 14px}.example-position{white-space:nowrap}.example-controls>span:first-child{background:transparent;padding-left:0}.compare-toggle{min-height:42px;font-size:17px;flex:none}.listen-content:has(+.compare-toggle){height:auto;flex:1;min-height:0}.compare-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;width:100%;min-height:0}.compare-cards{display:flex;align-items:stretch;justify-content:center;gap:18px;width:100%;min-height:0;flex:1;max-height:260px}.compare-card{display:flex;align-items:center;flex-direction:column;background:#f5eefb;border:2px solid #e8d8f7;width:30%;padding:14px;min-width:0;min-height:0}.compare-card>.lesson-glyph{flex:1;min-height:0}.compare-card>span{display:flex;align-items:center;gap:10px;font-size:23px;margin-top:8px}.compare-card>span svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.compare-card.playing{border-color:#df364d;background:#fff1c5}.count-objects{display:grid;grid-template-columns:repeat(var(--count-cols,5),minmax(0,100px));align-content:center;justify-content:center;max-height:320px;width:100%;flex:1}.count-object{position:relative;width:100%;height:auto;aspect-ratio:1;min-height:0}.many-objects .count-object{width:76px;height:76px;justify-self:center}.count-badge{position:absolute;top:0;right:0;display:grid;place-items:center;width:28px;height:28px;background:#df364d;color:white;border:2px solid white;border-radius:50%;font-size:17px;line-height:1}.count-tools,.practice-tools{display:flex;align-items:center;justify-content:center;gap:16px;flex:none;width:100%;margin-bottom:5px}.practice-tools h2{margin:0}.diagram-notes{padding:5px 7px}.diagram-notes ol{list-style:decimal;padding-left:22px;counter-reset:stroke}.diagram-notes li{display:flex;align-items:center;gap:8px;list-style:none;counter-increment:stroke;border-bottom:1px solid #eee5f4;margin:3px 0;padding:4px 0}.diagram-notes li:before{content:counter(stroke);color:#d83349;font-size:21px;font-weight:700}.step-picture{width:40%;max-width:110px;height:90px;flex:none}.step-picture .active-stroke{stroke:#d83349;fill:none;stroke-width:11;stroke-linecap:round;stroke-linejoin:round}.diagram-ghost{stroke:#dfd6e8;fill:none;stroke-width:11;stroke-linecap:round;stroke-linejoin:round}.diagram-start{fill:#d83349;stroke:white;stroke-width:2}.diagram-notes li span{flex:1}.diagram-notes .many-steps{columns:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}.many-steps li{gap:4px}.many-steps .step-picture{width:38%;height:67px}.many-steps li:before{font-size:17px}.lesson-content{animation:lesson-enter .18s ease-out}.count-badge{animation:count-pop .2s ease-out}.content-sound.playing .speaker-badge{animation:speaker-pulse .8s ease-in-out infinite}.memory-picture .object-picture{filter:drop-shadow(0 5px 2px #56315c0c)}
@keyframes lesson-enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes count-pop{from{transform:scale(.65)}to{transform:scale(1)}}@keyframes speaker-pulse{50%{box-shadow:0 0 0 6px #ffd86033}}
@media(max-height:700px) and (min-width:851px){.extension-switch{margin-bottom:4px}.extension-switch button{min-height:34px;font-size:14px}.example-controls button,.count-tools button,.practice-tools button{min-height:36px;font-size:15px;padding:5px 12px}.step-picture{height:68px}.many-steps .step-picture{height:55px}.diagram-notes li{padding:2px 0;margin:2px 0}.compare-cards{max-height:180px}.count-objects{max-height:230px;gap:8px}.count-object{max-width:90px}.many-objects .count-object{width:65px;height:65px}}
@media(max-width:850px) and (orientation:portrait){.diagram-notes{font-size:15px}.compare-cards{max-height:280px}.count-objects{max-height:350px}}
@media(max-width:600px){.extension-switch{flex-wrap:wrap}.extension-switch small{font-size:12px}.example-controls{flex-wrap:wrap}.example-controls button{font-size:14px}.compare-cards{gap:7px;min-height:180px}.compare-card{padding:8px;width:32%}.compare-content .reading-cue{font-size:15px}.compare-content .lesson-small{font-size:12px}.compare-card>span{font-size:18px}.count-object{max-width:78px}.many-objects .count-object{width:48px;height:48px}.count-tools{gap:8px;flex-wrap:wrap}.count-tools button{font-size:15px}.step-picture{height:85px}.diagram-notes li{font-size:14px}.diagram-notes .many-steps{font-size:12px}.lesson-tabs button{font-size:15px}.recognize-art:not(.pinyin-art)>.sound-glyph{height:180px}.recognize-art:not(.pinyin-art)>.memory-picture{height:180px}}
@media(prefers-reduced-motion:reduce){.lesson-content,.count-badge,.content-sound.playing .speaker-badge{animation:none}}


.count-objects.few-objects{grid-template-columns:repeat(var(--count-cols,2),minmax(0,150px));max-height:320px}.few-objects .count-object{max-width:150px}.count-objects.few-objects[style*="--count-cols:1"]{grid-template-columns:150px;gap:4px}.few-objects[style*="--count-cols:1"] .count-object{width:120px;justify-self:center}.lesson-content:has(.extension-switch) .lesson-writing{min-height:0}.view-spell:has(.extension-switch) .stroke-caption{font-size:14px}@media(max-height:700px) and (min-width:851px){.count-objects.few-objects{grid-template-columns:repeat(var(--count-cols,2),120px)}.few-objects[style*="--count-cols:1"] .count-object{width:95px}}

.recognize-word .shape-memory{font-size:30px;line-height:1.65;font-weight:750;padding:20px 14px;background:#fff0ad;border-radius:20px;margin:16px 0}.recognize-word small{font-size:16px;color:var(--muted)}.diagram-board .ink{stroke:#2d1530}.diagram-board .direction-path{stroke-width:3}.diagram-board .stroke-number{font-size:27px}.step-picture .guide{stroke-width:1.5}@media(max-height:700px) and (min-width:851px){.recognize-word .shape-memory{font-size:25px;padding:12px}}@media(max-width:600px){.recognize-word .shape-memory{font-size:22px;padding:12px 8px}.recognize-word small{font-size:13px}}

.count-objects{grid-template-rows:repeat(var(--count-rows,1),minmax(0,1fr))}.count-objects .count-object,.count-objects.few-objects .count-object{height:100%;width:auto;max-width:100%;max-height:100%;min-height:0;justify-self:center;aspect-ratio:1}.count-object .object-picture{height:100%;width:100%}

/* 同页保留完整动画控制和逐笔说明；左右共用动画进度。 */
.lesson-writing.linked-writing{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(190px,1fr);gap:18px}.animation-panel{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;gap:4px}.linked-writing .animation-panel .board-wrap{height:0;flex:1;min-height:0}.linked-writing .animation-panel .stroke-caption{min-height:42px;max-height:66px;margin:3px 0;overflow:auto}.linked-writing .playback-controls{flex-wrap:wrap;gap:6px}.linked-writing .diagram-notes{height:100%;padding:8px;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:8px}.diagram-notes [data-guide-step]{border-radius:10px;transition:background-color .12s ease-out;scroll-margin:8px}.diagram-notes [data-guide-step].is-current{background:#fff1b5;box-shadow:inset 3px 0 #df364d}.diagram-notes [data-guide-step].is-current>span{color:#701c33}.linked-writing .step-picture{flex:none}.view-spell:has(.extension-switch) .linked-writing .stroke-caption{min-height:40px}
@media(max-height:700px) and (min-width:851px){.lesson-writing.linked-writing{gap:12px}.linked-writing .animation-panel .stroke-caption{min-height:38px;max-height:57px;font-size:13px}.linked-writing .playback-controls button{padding:5px 9px;min-height:36px;font-size:14px}.linked-writing .speed-label{font-size:12px}.linked-writing .speed-label select{min-height:34px}}
@media(max-width:850px) and (orientation:portrait){.lesson-writing.linked-writing{grid-template-columns:minmax(0,1.05fr) minmax(190px,1fr);gap:12px}}
@media(max-width:600px){.lesson-writing.linked-writing{grid-template-columns:1fr;gap:16px;min-height:0}.linked-writing .animation-panel{height:350px}.linked-writing .animation-panel .board-wrap{min-height:220px!important}.linked-writing .diagram-notes{height:auto;max-height:350px;overflow:auto}.linked-writing .diagram-notes .many-steps{grid-template-columns:1fr 1fr}.linked-writing .stroke-trigger .writing-board{height:0;flex:1}.linked-writing .animation-panel .stroke-caption{min-height:40px}}
@media(prefers-reduced-motion:reduce){.diagram-notes [data-guide-step]{transition:none}}
.linked-writing .diagram-notes .many-steps{display:block;columns:auto;font-size:14px;line-height:1.55}.linked-writing .many-steps .step-picture{width:40%;height:76px;max-width:110px}.linked-writing .many-steps li{gap:8px}.linked-writing .many-steps li:before{font-size:21px}@media(max-height:700px) and (min-width:851px){.linked-writing .diagram-notes .many-steps{font-size:13px}.linked-writing .many-steps .step-picture{height:68px}}
/* 手机横屏优先可读尺寸，允许纵向滑动，避免固定一屏把动画压成0高。 */
@media(min-width:601px) and (max-height:500px) and (orientation:landscape){
.site-header{height:54px;min-height:54px;padding:6px 12px}.brand{font-size:20px}.site-header nav{gap:5px}.site-header nav button{min-height:38px;font-size:16px;padding:6px 12px}.parent-button{font-size:14px;padding:6px 10px}.lesson-main{height:auto;min-height:calc(100dvh - 54px);padding:8px 10px 12px;gap:8px}.lesson-main .category-tabs{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:2px}.lesson-main .category-tabs button{flex:0 0 auto;min-height:36px;font-size:15px;padding:5px 12px}.lesson-layout{grid-template-columns:120px minmax(0,1fr);align-items:stretch;gap:12px}.lesson-picker{position:sticky;top:8px;align-self:start;max-height:calc(100dvh - 16px);padding:9px 6px;gap:8px}.lesson-picker h1{font-size:18px}.lesson-letter-grid,.lesson-letter-grid.digit-picker{max-height:calc(100dvh - 72px);overflow:auto;gap:5px}.lesson-letter-grid button,.lesson-letter-grid.digit-picker button{min-height:36px;font-size:23px}.lesson-letter-grid.multi-picker button{font-size:18px}.lesson-surface{min-height:0}.lesson-title{min-height:44px;padding:8px 12px}.lesson-title h2{font-size:25px}.lesson-tabs button{font-size:17px;min-height:42px}.lesson-content{flex:none;min-height:320px;overflow:visible;padding:8px 14px}.lesson-content.view-spell{min-height:380px}.lesson-writing.linked-writing{height:320px;min-height:320px;flex:none;grid-template-columns:minmax(0,1.1fr) minmax(190px,1fr)}.linked-writing .animation-panel{height:100%}.linked-writing .animation-panel .board-wrap{height:0;flex:1}.linked-writing .diagram-notes{height:320px;max-height:320px;overflow:auto}.linked-writing .animation-panel .stroke-caption{min-height:40px;max-height:60px}.recognize-art{min-height:200px;max-height:300px}.lesson-footer{padding:10px 12px;gap:12px}.lesson-footer button{min-height:48px;font-size:20px}.lesson-status{height:23px}
}
.lesson-buddy{width:44px;height:44px;flex:none;transform:rotate(-5deg)}.lesson-title{gap:9px}.stage-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none}.stage-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.lesson-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:18px}.lesson-content{position:relative}.parent-hint{font-size:13px;color:var(--muted);flex:none;align-self:stretch;margin:6px 0 0}.parent-hint summary{cursor:pointer;min-height:30px;display:flex;align-items:center;justify-content:center;gap:6px}.parent-hint>div{font-size:15px;line-height:1.7;color:var(--ink);padding:8px 10px}.parent-hint[open]{position:absolute;z-index:4;bottom:6px;left:10px;right:10px;max-height:75%;overflow:auto;background:#fffdf5;border:2px solid #e7d8f3;border-radius:16px;box-shadow:0 5px 20px #54215522}.example-illustration{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:76px;line-height:1;display:flex;align-items:center;justify-content:center;max-width:170px;min-width:74px;min-height:78px}.example-illustration svg{width:128px;height:72px}.example-illustration.small-flock{font-size:36px}.example-word{gap:15px}.example-association{display:flex;align-items:center;justify-content:center;gap:8px}.example-association .example-illustration{font-size:58px;min-width:60px;min-height:60px}.example-association strong{font-size:68px!important}.example-association .example-illustration svg{width:95px}.example-word>span:not(.example-illustration){font-size:17px}.memory-picture{border:0;background:transparent;padding:0;border-radius:20px}.memory-picture.playing{background:#fff5c6;transform:scale(1.025)}.sound-glyph .speaker-badge{box-shadow:0 0 0 5px #ffe88d33}.content-sound:active{transform:scale(.97)}
.quiz-options button,.answer-choices button{position:relative;padding-right:15px}.answer-mark{position:absolute;right:-10px;top:-16px;display:grid;place-items:center;width:43px;height:43px;border:3px solid white;border-radius:50%;color:white;font:800 32px/1 sans-serif;box-shadow:0 2px 6px #34203125;pointer-events:none}.answer-correct{background:#d7f1c3!important;border-color:#58a741!important;box-shadow:0 0 0 3px #71be5e33}.answer-correct .answer-mark{background:#3b9a42}.answer-wrong{background:#ffe0dd!important;border-color:#e14e58!important;animation:kids-wrong .28s ease-out}.answer-wrong .answer-mark{background:#d94c54}.answer-correct .answer-mark{animation:kids-right .3s ease-out}.quiz-feedback{height:62px;min-height:62px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:21px;line-height:1.3;margin:8px 0 0}.answer-feedback{display:flex!important;align-items:center;justify-content:center;gap:12px;min-height:62px;height:auto;font-size:21px!important;line-height:1.3;border-radius:18px;padding:4px 14px}.feedback-mark{font:bold 48px/1 sans-serif;flex:none}.feedback-correct{color:#2b8535;background:#ecf8df}.feedback-wrong{color:#c33845;background:#fff0eb}.feedback-correct .feedback-mark{animation:kids-right .3s ease-out}.feedback-wrong .feedback-mark{animation:kids-wrong .28s ease-out}.answer-feedback strong{font-size:21px}.lesson-status{font-size:14px}.reading-cue{font-size:22px}.listen-content .listen-note{font-size:18px;background:#fff1bd;padding:10px 18px}.listen-content h3{font-size:27px}
@keyframes kids-right{0%{transform:scale(.35)}65%{transform:scale(1.16)}100%{transform:scale(1)}}@keyframes kids-wrong{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@media(max-height:700px) and (min-width:851px){.lesson-buddy{width:34px;height:34px}.lesson-tabs button{font-size:16px;gap:4px}.stage-icon{width:19px;height:19px}.example-illustration{font-size:58px;min-height:62px}.example-word{margin:5px 0}.quiz-feedback,.answer-feedback{min-height:54px;height:54px;font-size:19px}.feedback-mark{font-size:43px}.answer-feedback strong{font-size:19px}.answer-mark{width:38px;height:38px;font-size:28px}.parent-hint{margin-top:3px}}
@media(max-width:600px){.lesson-tabs{overflow-x:auto;flex-wrap:nowrap}.lesson-tabs button{flex:0 0 auto;min-width:76px;font-size:15px;padding:8px 9px;gap:4px}.stage-icon{width:18px;height:18px}.lesson-buddy{width:32px;height:32px}.example-illustration{font-size:56px;min-width:60px;min-height:62px}.example-illustration svg{width:92px}.example-word{flex-wrap:wrap;gap:10px}.answer-mark{width:36px;height:36px;font-size:26px;top:-14px;right:-7px}.feedback-mark{font-size:43px}.quiz-feedback,.answer-feedback{font-size:20px;min-height:60px}.parent-hint[open]{position:fixed;top:20%;bottom:auto;max-height:60vh}.lesson-title h2{font-size:23px}}
@media(min-width:601px) and (max-height:500px) and (orientation:landscape){.lesson-tabs button{font-size:15px;padding:8px 10px;gap:4px}.stage-icon{width:18px;height:18px}.lesson-buddy{width:32px;height:32px}.lesson-content{min-height:340px}.lesson-content.view-spell{min-height:400px}}
@media(prefers-reduced-motion:reduce){.answer-mark,.feedback-mark,.answer-wrong{animation:none!important}.content-sound:active,.memory-picture.playing{transform:none}}

/* 作者 mahonggeng。仅覆盖分合页和对应练习纸；小手不参与数量展示。 */
body.math-page main:has(.math-kids){height:auto;min-height:calc(100dvh - 72px);overflow:visible;padding:14px 24px 20px}
.math-kids{max-width:1120px;display:flex;flex-direction:column;gap:10px;position:relative}
.math-kids .math-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
.math-kids .math-heading h1{font-size:29px;margin:0;line-height:1.4}
.math-kids button svg,.math-play-prompt svg{width:25px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.math-kids .math-guide-replay{display:flex;align-items:center;gap:6px;min-height:42px;padding:6px 12px;font-size:15px}
.math-number-bar{display:flex;align-items:center;gap:20px;background:#f7f2ff;border:1px solid #e6d7f8;border-radius:22px;padding:10px 14px}
.math-kids .math-presets{flex:1;gap:7px;justify-content:flex-start;flex-wrap:nowrap}
.math-kids .math-presets button{min-width:0;flex:1;min-height:43px;padding:5px 10px;font-size:24px;background:white;border:2px solid transparent;border-radius:13px}
.math-kids .math-presets .selected{background:#ffe263;border-color:#edc738;box-shadow:0 3px 0 #e8c33d33}
.math-custom-form{width:205px;flex:none;position:relative}
.math-custom-form label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}
.math-custom-entry{display:flex;gap:5px}
.math-custom-entry input{min-width:0;width:100%;height:39px;border:1px solid #bd9ed2;border-radius:10px;padding:6px 10px;background:white;color:#501455;font-size:16px}
.math-custom-entry button{min-height:39px;padding:5px 11px;font-size:14px;border-radius:10px;background:#eee1f8;white-space:nowrap}
.math-custom-error{position:absolute;top:100%;right:0;z-index:4;background:#fff8ef;color:#922f43;box-shadow:0 3px 14px #50145515;border-radius:10px;font-size:13px;line-height:1.6;margin:3px 0 0;min-width:255px}
.math-custom-error:not(:empty){padding:8px 11px;border:1px solid #ffb6b5}
.math-kids .math-total-strip{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;padding:0;margin:0;font-size:17px;min-height:39px;flex-wrap:wrap}
.math-kids .math-total-value{font-size:34px;line-height:1.2;margin:0 3px;overflow-wrap:anywhere;min-width:0;max-width:100%}
.math-play-prompt{display:flex;align-items:center;justify-content:center;gap:7px;font-size:21px;color:#6c3a7f;line-height:1.5}
.math-play-prompt>svg{stroke:#b84d5c;width:28px;height:30px;transform:rotate(-10deg)}
.math-prompt-arrow{display:flex;align-items:center;padding:2px 4px;border-radius:50%;background:#fff1b8;color:#855b25}
.math-kids .math-bowls{display:grid;grid-template-columns:1fr 1fr;gap:24px;min-height:204px;flex:none}
.math-kids .math-bowl{background:#f9f4ff;border:3px solid #d8bbed;border-radius:28px;min-height:204px;display:flex;flex-direction:column;position:relative;padding:12px 18px 18px;box-shadow:0 6px 0 #efe3f7}
.math-kids .math-bowl:nth-child(2){background:#fff5f1;border-color:#f4b3ac;box-shadow:0 6px 0 #fbe4df}
.math-kids .math-bowl h2{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:18px;margin:0 0 12px;min-height:36px;text-align:left}
.math-count{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;font-size:30px;line-height:1.2;min-width:0;overflow-wrap:anywhere;text-align:right}
.math-count small{font-size:14px;flex:none;font-weight:500}
.math-count.math-count-long{font-size:clamp(12px,1.8vw,20px)}
.math-kids .math-stones{display:flex;align-items:center;align-content:center;justify-content:center;gap:12px;min-height:120px;flex:1;position:relative;padding:3px 0 5px}
.math-kids .math-block{width:51px;height:51px;min-height:51px;padding:0;border:2px solid #a77fc3;border-radius:14px;background:#c9a5ec;box-shadow:inset 0 -6px #a478c333,0 3px 0 #c4a0dd55;position:relative;flex:none;transition:background .12s,box-shadow .12s;touch-action:manipulation}
.math-kids .math-block:before,.math-flying-block:before{display:none}
.math-kids .math-block:after,.math-flying-block:after{content:"";position:absolute;left:7px;right:7px;top:6px;height:3px;border-radius:3px;background:#ffffff60;pointer-events:none}
.math-kids .math-bowl:nth-child(2) .math-block{background:#ffb59b;border-color:#e08d7d;box-shadow:inset 0 -6px #df8f7133,0 3px 0 #df8f7133}
.math-kids .math-block:hover{background:#d9bdf4;box-shadow:inset 0 -6px #a478c333,0 0 0 4px #d8c1ec55}
.math-kids .math-bowl:nth-child(2) .math-block:hover{background:#ffc4ae;box-shadow:inset 0 -6px #df8f7133,0 0 0 4px #ffc2af55}
.math-kids .math-block:disabled{opacity:.55}
.math-kids .math-quantity-block{width:auto;max-width:100%;min-width:76px;padding:5px 10px;display:flex;align-items:center;justify-content:center;gap:4px}
.math-block-value{font-size:17px;line-height:1.2;overflow-wrap:anywhere;min-width:0}
.math-quantity-long .math-block-value{font-size:14px}
.math-block-unit{font-size:10px;flex:none;font-weight:500;align-self:flex-end;padding-bottom:4px}
.math-empty{display:flex;flex-direction:column;align-items:center;gap:2px;color:#87718f;border:2px dashed #d6c4e2;border-radius:50%;width:115px;height:105px;justify-content:center;background:#ffffff60}
.math-empty strong{font-size:39px;line-height:1.1;font-weight:700}
.math-empty span{font-size:13px}
.math-kids .math-quantity-note{margin:0;text-align:center;font-size:13px;line-height:1.7;color:#746478}
.math-kids .math-split-sentence{margin:2px 0 0;font-size:17px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.math-split-sentence strong{color:#753791}
.math-kids .math-equations{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
.math-kids .math-equation{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;padding:9px 12px;font-size:27px;border-radius:17px;background:#fff7d6;line-height:1.35}
.math-equation span{min-width:0;overflow-wrap:anywhere}
.math-equation b{font-weight:500;flex:none}
.math-kids .math-play-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:0}
.math-kids .math-play-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:8px 18px;font-size:17px;border-radius:17px}
.math-kids .math-play-actions .primary{background:#e65b6e;color:white}
.math-kids .math-zero-mode{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin:0;padding:6px 12px;background:transparent;font-size:14px;line-height:1.5}
.math-zero-mode label{display:flex;align-items:center;gap:7px;min-height:35px}
.math-zero-mode input{width:19px;height:19px;margin:0}
.math-zero-mode>span{color:#746478;font-size:12px}
.math-kids #math-challenge.math-challenge-slot:not(:empty){position:absolute;inset:auto 10% 62px;min-height:200px;max-height:none;display:block;border:3px solid #c09bda;border-radius:25px;background:#fffdf9;padding:22px;z-index:6;box-shadow:0 12px 40px #50145526}
.math-kids #math-challenge .math-question-card{position:relative;background:transparent;border:0;padding:0;margin:0;text-align:center}
.math-question-card h2{font-size:25px;margin:0 32px 12px}
.math-kids #math-challenge .math-question-card p{font-size:18px;margin:8px 0;overflow-wrap:anywhere}
.math-question-card .math-question-close{position:absolute;right:-10px;top:-14px;width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;font-size:28px;background:#f1e8f8}
.math-kids .math-answer-choices{gap:10px}
.math-kids .math-answer-choices button{font-size:25px;min-width:60px;min-height:50px;padding:7px 14px;max-width:100%;overflow-wrap:anywhere;background:#f3e8fb;border:2px solid #ddc6ec}
.math-kids #math-challenge .math-answer-feedback{min-height:29px;font-size:16px;margin-bottom:0}
.math-guide-hand{position:absolute;left:28px;top:27px;pointer-events:none;z-index:3;width:43px;height:49px;filter:drop-shadow(0 2px 1px #50145520);animation:math-tap-guide 1.3s ease-in-out 3}
.math-guide-hand svg{width:100%!important;height:100%!important;fill:#fffdf7!important;stroke:#794387!important;stroke-width:1.5!important}
.math-kids .math-guide-target{outline:3px dashed #a665b8;outline-offset:5px}
.math-flying-block{position:fixed!important;min-height:0!important;margin:0!important;z-index:50!important;pointer-events:none!important;transition:none!important;border:2px solid #a77fc3!important;background:#c9a5ec!important;color:#501455!important;border-radius:14px!important;box-shadow:inset 0 -6px #a478c333,0 6px 12px #50145522!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px;padding:5px 10px!important}
.math-flying-block[data-math-flying-side="1"]{background:#ffb59b!important;border-color:#e08d7d!important;box-shadow:inset 0 -6px #df8f7133,0 6px 12px #50145522!important}
.math-sheet .math-sheet-equations{font-size:24px;line-height:2.2;overflow-wrap:anywhere}
.math-sheet-big .split-exercise{overflow-wrap:anywhere;font-size:22px}
.math-sheet-big .blank{width:85px;max-width:38%;margin:0 4px}
@keyframes math-tap-guide{0%,100%{transform:translate(2px,2px) rotate(-8deg)}40%,65%{transform:translate(-6px,-8px) rotate(-8deg)}}
@media(min-width:851px) and (max-height:720px){body.math-page main:has(.math-kids){padding:9px 20px 12px}.math-kids{gap:7px}.math-kids .math-heading h1{font-size:26px}.math-number-bar{padding:7px 12px}.math-kids .math-bowls,.math-kids .math-bowl{min-height:175px}.math-kids .math-bowl{padding:10px 16px 12px}.math-kids .math-bowl h2{margin-bottom:6px}.math-kids .math-stones{min-height:100px}.math-kids .math-block{width:46px;height:46px;min-height:46px}.math-kids .math-quantity-block{width:auto}.math-kids .math-equation{font-size:24px;padding:7px 10px}.math-kids .math-play-actions button{min-height:43px;padding:7px 14px}.math-play-prompt{font-size:19px}}
@media(max-width:850px){body.math-page main:has(.math-kids){padding:12px 16px 18px}.math-number-bar{flex-wrap:wrap;gap:10px}.math-kids .math-presets{flex-basis:100%}.math-custom-form{width:100%;display:flex;align-items:center;gap:10px}.math-custom-form label{margin:0;white-space:nowrap}.math-custom-entry{flex:1}.math-kids .math-bowls{gap:16px}.math-kids .math-bowl{padding:12px}.math-kids .math-stones{gap:10px}.math-kids .math-equation{font-size:23px;gap:6px}.math-kids .math-play-actions button{font-size:16px;padding:8px 12px}.math-kids #math-challenge.math-challenge-slot:not(:empty){inset:auto 3% 62px}}
@media(max-width:600px){body.math-page main:has(.math-kids){padding:10px 12px 16px;min-height:calc(100dvh - 110px)}.math-kids{gap:10px}.math-kids .math-heading h1{font-size:25px}.math-kids .math-guide-replay{font-size:12px;gap:3px;padding:5px 7px;min-height:38px}.math-kids .math-guide-replay svg{width:21px;height:24px}.math-number-bar{padding:9px;border-radius:17px}.math-kids .math-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.math-kids .math-presets button{padding:4px 2px;min-height:44px;font-size:20px;border-radius:10px}.math-custom-form{gap:7px}.math-custom-form label{font-size:12px}.math-custom-entry input{font-size:15px;height:36px}.math-custom-entry button{min-height:36px}.math-kids .math-total-strip{min-height:35px;font-size:15px}.math-kids .math-total-value{font-size:30px}.math-play-prompt{font-size:19px}.math-kids .math-bowls{gap:12px;min-height:211px}.math-kids .math-bowl{border-radius:23px;min-height:211px;padding:10px 9px 13px}.math-kids .math-bowl h2{font-size:15px;gap:5px;flex-wrap:wrap;margin-bottom:10px}.math-count{font-size:25px;gap:3px}.math-count small{font-size:12px}.math-kids .math-stones{gap:9px;min-height:125px}.math-kids .math-block{width:44px;height:44px;min-height:44px;border-radius:12px}.math-kids .math-quantity-block{width:auto;min-width:65px;padding:5px 6px;gap:2px}.math-block-value{font-size:13px}.math-quantity-long .math-block-value{font-size:11px}.math-block-unit{font-size:9px;padding-bottom:2px}.math-empty{width:100px;height:95px}.math-empty strong{font-size:36px}.math-kids .math-split-sentence{font-size:16px}.math-kids .math-equations{grid-template-columns:1fr;gap:7px}.math-kids .math-equation{font-size:22px;padding:8px;gap:6px}.math-kids .math-play-actions{gap:8px}.math-kids .math-play-actions button{font-size:14px;padding:7px 9px;gap:4px;min-height:44px;flex:1 1 42%}.math-kids .math-play-actions button:last-child{flex:0 1 auto}.math-kids .math-play-actions svg{width:21px;height:23px}.math-kids .math-zero-mode{gap:0;font-size:13px;padding:3px;flex-direction:column}.math-kids .math-zero-mode>span{font-size:11px}.math-kids #math-challenge.math-challenge-slot:not(:empty){position:relative;inset:auto;padding:18px 12px;min-height:0}.math-question-card h2{font-size:21px}.math-kids #math-challenge .math-question-card p{font-size:16px}.math-kids .math-answer-choices button{font-size:21px;min-height:46px;min-width:54px}.math-guide-hand{left:24px;top:24px;width:37px;height:43px}.math-sheet-big .split-exercise{font-size:17px}.math-sheet .math-sheet-equations{font-size:20px}}
@media(prefers-reduced-motion:reduce){.math-guide-hand{animation:none}.math-kids .math-block{transition:none}}
@media print{.math-guide-hand,.math-flying-block{display:none!important}.math-sheet .math-sheet-equations{font-size:22px}.math-sheet-big .split-exercise{font-size:19px}}

/* 作者 mahonggeng；描写输入只在 SVG 内关闭默认触摸手势。 */
.trace-exercise{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;gap:6px;color:var(--ink)}
.trace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.trace-toolbar>strong{font-size:18px;white-space:nowrap}
.trace-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.trace-actions button{min-height:44px;font-size:16px;padding:7px 14px;background:#fff5cf;border:1px solid #ead78e;border-radius:13px}
.trace-actions button:last-child{background:white;border-color:var(--line)}
.trace-stage{flex:1;min-height:180px;position:relative;border:2px solid #e6d8f0;background:#fffdf9;border-radius:20px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:border-color .15s,background-color .15s}
.trace-board{width:100%;height:100%;min-height:0;display:block;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.trace-board [hidden],.trace-exercise [hidden]{display:none!important}
.trace-template{fill:none;stroke:#e4dde9;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.trace-template.trace-current{stroke:#c9b2dc;stroke-width:15;stroke-dasharray:3 7}
.trace-template.trace-passed{opacity:.25}
.trace-live,.trace-done{fill:none;stroke:#674084;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.trace-live.trace-live-wrong{stroke:#d63145}
.trace-done{stroke:#208246;animation:trace-stroke-pop .28s ease-out}
.trace-direction{stroke:#8053aa;stroke-width:3;stroke-linecap:round;fill:none;pointer-events:none}
.trace-start{pointer-events:none}
.trace-start-ring{stroke:#a77813;stroke-width:1.5;fill:#ffe493;fill-opacity:.75}
.trace-start-center{fill:#8053aa;stroke:white;stroke-width:2}
.trace-start text{font:700 18px "Microsoft YaHei",sans-serif;fill:#62417b;paint-order:stroke;stroke:#fffdf9;stroke-width:4}
.trace-demo{fill:#d83349;stroke:white;stroke-width:2;pointer-events:none;filter:drop-shadow(0 0 4px #d8334933)}
.trace-is-drawing .trace-start-ring{opacity:.35}
.trace-feedback{position:absolute;right:14px;top:12px;display:flex;align-items:center;gap:8px;padding:7px 14px;border:2px solid currentColor;background:white;border-radius:18px;pointer-events:none;box-shadow:0 4px 16px #35143f12;z-index:2}
.trace-feedback span{font:800 42px/1 sans-serif}
.trace-feedback strong{font-size:19px}
.trace-is-wrong .trace-feedback{color:#bf253a;animation:trace-wrong .35s ease-out}
.trace-is-right .trace-feedback{color:#19773d;animation:trace-right .38s ease-out}
.trace-is-wrong .trace-stage{border-color:#d63145;background:#fff7f6}
.trace-is-right .trace-stage,.trace-is-complete .trace-stage{border-color:#36a25c;background:#f8fff6}
.trace-complete{position:absolute;right:15px;bottom:14px;display:flex;align-items:center;gap:8px;color:#19773d;background:#edffe9;border:2px solid #80be8a;border-radius:18px;padding:7px 14px;pointer-events:none;animation:trace-right .45s ease-out}
.trace-complete span{font:800 34px/1 sans-serif}
.trace-complete strong{font-size:21px}
.trace-instruction{min-height:28px;flex:none;font-size:16px;line-height:1.45;font-weight:700;text-align:center;margin:0;padding:0 6px;overflow-wrap:anywhere}
.trace-tip{flex:none;font-size:13px;line-height:1.4;text-align:center;color:var(--muted);margin:0}
@keyframes trace-right{0%{transform:scale(.7);opacity:.2}65%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
@keyframes trace-wrong{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}70%{transform:translateX(6px)}}
@keyframes trace-stroke-pop{from{opacity:.5;stroke-width:15}to{opacity:1;stroke-width:10}}
@media(min-width:601px){.trace-tip{display:none}}
@media(max-height:700px) and (min-width:851px){.trace-exercise{gap:4px}.trace-toolbar>strong{font-size:16px}.trace-actions button{font-size:14px;min-height:40px;padding:6px 12px}.trace-instruction{font-size:15px;min-height:24px;padding:0 3px}.trace-stage{min-height:160px}.trace-feedback{top:8px;right:10px;padding:5px 11px}.trace-feedback span{font-size:34px}.trace-feedback strong{font-size:17px}}
@media(max-width:850px) and (orientation:portrait){.trace-stage{min-height:230px}.trace-instruction{font-size:18px;min-height:30px}}
@media(max-width:600px){.trace-exercise{height:auto;min-height:395px;gap:8px}.trace-toolbar{gap:6px;align-items:flex-start}.trace-toolbar>strong{font-size:16px;line-height:44px}.trace-actions{gap:6px}.trace-actions button{font-size:14px;padding:7px 10px}.trace-stage{height:255px;min-height:255px;flex:none}.trace-instruction{font-size:16px;min-height:52px}.trace-tip{font-size:12px}.trace-feedback{right:9px;top:8px;padding:6px 9px}.trace-feedback span{font-size:33px}.trace-feedback strong{font-size:16px}.trace-complete{right:10px;bottom:10px;padding:6px 10px}.trace-complete strong{font-size:18px}}
@media(min-width:601px) and (max-height:500px) and (orientation:landscape){.trace-exercise{height:380px;min-height:380px;flex:none}.trace-stage{min-height:215px}.trace-instruction{min-height:45px}}
@media(prefers-reduced-motion:reduce){.trace-feedback,.trace-complete,.trace-done{animation:none!important}.trace-stage{transition:none}}

/* 作者 mahonggeng。所有手写本规则限定在 notebook 命名下。 */
body.notebook-page .site-footer{display:none}
body.notebook-page main.notebook-main{height:calc(100dvh - 72px);max-width:1500px;padding:12px 24px 10px;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden}
.notebook-heading{display:flex;align-items:center;gap:16px;flex:none;min-height:42px}
.notebook-heading h1{display:flex;align-items:center;gap:10px;font-size:27px;line-height:1.3;margin:0;white-space:nowrap}
.notebook-heading h1 svg{width:33px;height:33px;color:#d83349;transform:rotate(-8deg)}
.notebook-heading svg,.notebook-tool svg,.notebook-dialog-heading svg,.notebook-history-kind>svg:last-child{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.notebook-paper-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:15px}
.notebook-paper-label .notebook-paper-symbol{width:24px;height:30px}
.notebook-save-state{display:flex;align-items:center;gap:5px;margin-left:auto;color:#65804c;font-size:13px;white-space:nowrap;min-width:84px}
.notebook-save-state svg{width:21px;height:21px}
.notebook-save-state[data-save-state=pending]{color:#796184}
.notebook-save-state[data-save-state=error]{color:#b62c43}
.notebook-status-dot{width:9px;height:9px;background:currentColor;border-radius:50%;margin:0 4px}
.notebook-workspace{display:grid;grid-template-columns:102px minmax(0,1fr);gap:18px;flex:1;min-height:0}
.notebook-tools{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:0}
.notebook-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;flex:1;max-height:84px;padding:7px 5px;border:2px solid #e5d7ee;border-radius:20px;background:#fffdfd;color:var(--ink);box-shadow:0 3px 0 #e7dbef;transition:transform .14s ease,background-color .14s ease;cursor:pointer}
.notebook-tool svg{width:31px;height:31px;flex:none}
.notebook-tool span{font-size:14px;line-height:1.3;font-weight:700}
.notebook-tool:hover{background:#fff6df}
.notebook-tool:active{transform:translateY(2px);box-shadow:0 1px 0 #e7dbef}
.notebook-tool.is-selected{color:#a92840;background:#ffe4e5;border-color:#e8a0a9;box-shadow:0 3px 0 #e8a0a9}
.notebook-tool-new{background:#fff4c9;border-color:#e8d69d;box-shadow:0 3px 0 #e8d69d}
.notebook-tool-history{background:#eee4f9}
.notebook-tool-export{background:#eaf2df;border-color:#ccdcb5;box-shadow:0 3px 0 #ccdcb5}
.notebook-tool:disabled{opacity:.4;cursor:default;transform:none}
.notebook-tool:focus-visible,.notebook-paper-choice:focus-visible,.notebook-history-card:focus-visible,.notebook-dialog-close:focus-visible,.notebook-retry:focus-visible,.notebook-parent-note summary:focus-visible{outline:3px solid #b42d48;outline-offset:3px}
.notebook-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:14px;border-radius:28px;background:#eee5f5;position:relative;overflow:hidden;box-sizing:border-box;background-image:radial-gradient(#ddcce94d 1.6px,transparent 1.6px);background-size:23px 23px}
.notebook-sheet{position:relative;width:280px;height:396px;flex:none;background:#fffefb;box-shadow:0 6px 20px #5e3c7024;border-radius:3px;overflow:hidden;z-index:1;animation:notebook-paper-in .2s ease-out}
.notebook-sheet canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.notebook-grid{pointer-events:none}
.notebook-ink{touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.notebook-sheet[data-tool=eraser] .notebook-ink{cursor:cell}
.notebook-stage-star{position:absolute;right:5%;top:8%;color:#dac779;transform:rotate(13deg);pointer-events:none}
.notebook-stage-star svg{width:43px;height:43px;fill:#fff0b3;stroke:currentColor;stroke-width:1.5}
.notebook-error{flex:none;font-size:13px;line-height:1.4;color:#b62c43;margin:0}
.notebook-error:empty{display:none}
.notebook-parent-note{flex:none;color:var(--muted);font-size:13px;line-height:1.6}
.notebook-parent-note summary{cursor:pointer;width:max-content;min-height:24px;display:list-item;margin-left:16px}
.notebook-parent-note[open]{position:absolute;z-index:4;bottom:9px;left:24px;right:24px;border:1px solid #dac7e8;border-radius:16px;background:#fffdfb;padding:10px 16px;box-shadow:0 8px 28px #51315f25}
.notebook-parent-note p{font-size:14px;line-height:1.7;margin:7px 0}
.notebook-retry{font-size:14px;padding:7px 14px;min-height:40px;background:#eee4f9}
dialog.notebook-dialog{width:min(750px,92vw);padding:20px 24px 24px;background:#fffcf8}
.notebook-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.notebook-dialog-heading h2{font-size:25px;margin:0}
.notebook-dialog-close{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:7px;border-radius:50%;background:#eee4f9;flex:none}
.notebook-dialog-close svg{width:28px;height:28px}
.notebook-paper-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.notebook-paper-choice{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 15px;background:#f3eaf9;border:3px solid #e6d6ef;border-radius:25px;font-size:22px;cursor:pointer}
.notebook-paper-choice:nth-child(2){background:#fff0d0;border-color:#f0dcaa}
.notebook-paper-choice:hover{transform:translateY(-2px);border-color:#c395d5}
.notebook-paper-choice .notebook-paper-symbol{height:190px;width:170px;max-width:100%}
.notebook-history-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.notebook-history-card{min-width:0;position:relative;padding:9px;background:#f1e8f8;border:2px solid #e3d3ed;border-radius:17px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px}
.notebook-history-card.is-current{border-color:#d94359;background:#ffe8e8}
.notebook-history-card>img,.notebook-history-card>.notebook-paper-symbol{display:block;width:100%;height:auto;aspect-ratio:840/1188;object-fit:contain;border-radius:3px;background:#fffefb}
.notebook-history-kind{display:flex;align-items:center;justify-content:center;gap:4px;font-size:14px;line-height:1.3;font-weight:700;white-space:nowrap}
.notebook-history-kind .notebook-paper-symbol{width:19px;height:23px}
.notebook-history-kind>svg:last-child:not(.notebook-paper-symbol){width:19px;height:19px;color:#b62c43}
.notebook-history-card time{font-size:12px;color:var(--muted)}
.notebook-empty{grid-column:1/-1;text-align:center;font-size:17px;padding:30px 10px}
@keyframes notebook-paper-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-height:700px) and (min-width:851px){body.notebook-page main.notebook-main{padding-top:8px;gap:6px}.notebook-heading{min-height:34px}.notebook-heading h1{font-size:24px}.notebook-tools{gap:7px}.notebook-tool{min-height:60px;padding:5px}.notebook-tool svg{width:28px;height:28px}.notebook-tool span{font-size:13px}}
@media(max-width:850px) and (orientation:portrait){body.notebook-page main.notebook-main{padding:10px 18px}.notebook-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:12px}.notebook-tools{flex-direction:row;justify-content:space-between;gap:9px}.notebook-tool{flex:1;max-height:none;min-height:74px;padding:8px 5px}.notebook-stage{border-radius:23px}.notebook-stage-star{right:5%;top:5%}.notebook-heading{gap:10px}}
@media(max-width:600px){body.notebook-page main.notebook-main{height:auto;min-height:calc(100dvh - 150px);padding:12px;overflow:visible}.notebook-heading{flex-wrap:wrap;gap:5px 12px}.notebook-heading h1{font-size:23px}.notebook-heading h1 svg{width:28px;height:28px}.notebook-paper-label{font-size:13px}.notebook-save-state{font-size:12px}.notebook-workspace{display:flex;flex-direction:column;gap:13px}.notebook-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.notebook-tool{min-height:67px;border-radius:16px;padding:7px 2px}.notebook-tool svg{width:27px;height:27px}.notebook-tool span{font-size:11px}.notebook-stage{min-height:0;padding:14px;overflow:visible}.notebook-sheet{width:100%;height:auto;aspect-ratio:840/1188}.notebook-stage-star{display:none}.notebook-parent-note[open]{position:static;padding:10px 14px}.notebook-paper-label .notebook-paper-symbol{width:20px;height:25px}dialog.notebook-dialog{padding:16px}.notebook-dialog-heading h2{font-size:22px}.notebook-paper-choices{gap:12px}.notebook-paper-choice{padding:13px 7px;font-size:19px}.notebook-paper-choice .notebook-paper-symbol{height:150px;width:130px}.notebook-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(min-width:601px) and (max-height:500px) and (orientation:landscape){body.notebook-page main.notebook-main{height:auto;min-height:calc(100dvh - 54px);overflow:visible}.notebook-workspace{min-height:480px}.notebook-stage{height:480px}.notebook-tools{min-height:480px}}
@media(prefers-reduced-motion:reduce){.notebook-sheet{animation:none}.notebook-tool,.notebook-paper-choice{transition:none}.notebook-paper-choice:hover{transform:none}}


/* 平板把总数与点击提示并排，保持操作区和大块积木在一屏内。 */
.math-intro{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap}
.math-challenge-slot:empty{display:none}
@media(min-width:601px) and (min-height:501px){
 body.math-page main:has(.math-kids){height:calc(100dvh - 72px);min-height:0;overflow:hidden}
 .math-kids{height:100%;gap:8px}
 .math-kids .math-bowls{flex:1;min-height:150px;overflow:hidden;padding-bottom:6px}
 .math-kids .math-bowl{min-height:0;overflow:hidden}
 .math-kids .math-stones{min-height:60px;overflow:auto;align-content:flex-start;padding:7px}
 .math-kids .math-zero-mode{padding:1px 8px;flex:none}
}
@media(min-width:851px) and (max-height:720px){body.math-page main:has(.math-kids){height:calc(100dvh - 62px)}.math-kids{gap:6px}.math-intro{gap:20px}.math-play-prompt{font-size:17px}}
@media(max-width:600px){.math-intro{gap:6px;flex-direction:column}}

/* 作者 mahonggeng。只匹配纸张；屏幕练字板不使用 print-board。 */
.worksheet.print-fixed-sheet,.worksheet.today-sheet{width:180mm;max-width:none;height:266mm;min-height:266mm;padding:0;margin:0 auto;background:white;box-sizing:border-box;color:#222;font-family:"Microsoft YaHei","PingFang SC",sans-serif;display:flex;flex-direction:column;overflow:visible}
.print-fixed-sheet .print-sheet-top{flex:none;min-width:0}
.worksheet.print-fixed-sheet h2,.worksheet.today-sheet h2{font-size:17pt;line-height:1.3;margin:0 0 3mm}
.worksheet.print-fixed-sheet .sheet-meta,.worksheet.today-sheet .sheet-meta{font-size:9pt;line-height:1.4;margin:0 0 3mm}
.worksheet.print-fixed-sheet .sheet-instruction,.worksheet.today-sheet .sheet-instruction{font-size:9pt;line-height:1.6;margin:0 0 2mm}
.worksheet.print-fixed-sheet .lesson-sheet-note{font-size:9pt;line-height:1.5;margin:0 0 2mm}
.worksheet.print-fixed-sheet .stroke-strip{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2mm;margin:0 0 3mm}
.worksheet.print-fixed-sheet .stroke-thumb{flex:none;width:18mm!important;max-width:18mm}
.worksheet.print-fixed-sheet .stroke-thumb svg{display:block;width:18mm;height:auto;max-height:18mm}
.worksheet.print-fixed-sheet .stroke-thumb span{font-size:7.5pt;line-height:1.4}
.print-fixed-sheet .print-writing-area{flex:1;min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:3mm;overflow:visible}
.worksheet .print-writing-row{display:flex;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;flex:none;gap:0;margin:0;break-inside:avoid;width:100%}
.worksheet .print-writing-row .practice-cell{flex:0 0 auto;min-width:0;padding:0}
.worksheet .print-writing-row .print-board{display:block;max-width:none;max-height:none!important;flex:none;overflow:visible}
.worksheet .print-board .guide{stroke:#8d8d8d;stroke-width:2.4}
.worksheet .print-board .digit-grid{stroke:#888;stroke-width:2.1}
.worksheet .print-board .ghost{stroke:#aaa;stroke-width:9;stroke-dasharray:5 4}
.worksheet .print-board .ink{stroke:#222}
.worksheet.print-fixed-sheet>.sheet-note{flex:none;min-width:0;font-size:8pt;line-height:1.55;margin:3mm 0 0}
.worksheet.today-sheet .print-writing-row{margin:0 0 3mm}
.worksheet.today-sheet .today-row-label{font-size:10pt;line-height:1.2;margin:2mm 0 1mm;flex:none}
.worksheet.today-sheet h3{font-size:11pt;line-height:1.3;margin:2mm 0;flex:none}
.worksheet.today-sheet>.sheet-note{font-size:8pt;line-height:1.5;margin:auto 0 0;padding-top:3mm;flex:none}
.print-measure{position:fixed;left:-100000px;top:0;width:180mm;visibility:hidden;pointer-events:none;z-index:-1;display:block!important;contain:layout style}
@media print{
  @page{size:A4;margin:15mm}
  #print-output .worksheet.print-fixed-sheet,#print-output .worksheet.today-sheet{width:180mm;max-width:none;height:266mm;min-height:266mm;padding:0;margin:0;display:flex!important;zoom:1!important;break-inside:avoid;break-after:page}
  #print-output .worksheet.print-fixed-sheet:last-child,#print-output .worksheet.today-sheet:last-child{break-after:auto}
  #print-output .worksheet.print-fixed-sheet h2,#print-output .worksheet.today-sheet h2{font-size:17pt;line-height:1.3;margin:0 0 3mm}
  #print-output .worksheet.print-fixed-sheet .sheet-meta,#print-output .worksheet.today-sheet .sheet-meta{font-size:9pt;line-height:1.4;margin:0 0 3mm}
  #print-output .worksheet.print-fixed-sheet .sheet-instruction,#print-output .worksheet.today-sheet .sheet-instruction{font-size:9pt;line-height:1.6;margin:0 0 2mm}
  #print-output .worksheet.print-fixed-sheet .lesson-sheet-note{font-size:9pt;line-height:1.5;margin:0 0 2mm}
  #print-output .today-sheet .today-row-label{font-size:10pt;line-height:1.2;margin:2mm 0 1mm}
  #print-output .print-writing-row{margin:0;break-inside:avoid}
  #print-output .print-writing-row .print-board{max-height:none!important}
  #print-output .print-fixed-sheet .stroke-thumb{width:18mm}
  #print-output .print-fixed-sheet>.sheet-note,#print-output .today-sheet>.sheet-note{font-size:8pt}
  #print-output .today-sheet .print-writing-row{margin-bottom:3mm}
  .print-measure{display:none!important}
}
