@charset "UTF-8";
:root{--ink:#233e5b;--muted:#647b91;--blue:#246bd2;--line:#e0e7ed;--paper:#fffefa;--shadow:0 7px 22px #24486b08;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);background:#f7f8f7;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin:0}p{line-height:1.85}a{text-decoration:none;color:inherit}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.45}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible{outline:3px solid #dc9a16;outline-offset:4px}code,pre,kbd{font-family:Consolas,"Cascadia Code",monospace}pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}code{overflow-wrap:anywhere}img{object-fit:contain}mark{background:#ffe79c;color:inherit;border-radius:6px;padding:2px 5px}.skip{position:fixed;top:-80px;left:200px;padding:14px;background:white;z-index:99}.skip:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:190px;padding:25px 16px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.brand img{width:157px;height:58px;display:block}.product-name{font-size:13px;font-weight:700;margin:14px 0 35px}.product-name span{font-size:10px;background:#eef3f9;padding:3px 5px;border-radius:5px;color:#718399;margin-left:2px}.nav-caption{font-size:12px;color:#8193a4;margin:0 10px 14px}.sidebar nav{display:grid;gap:10px}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:12px 10px;font-size:14px;white-space:nowrap;border-radius:12px;color:#647b91}.sidebar nav a span{font-size:22px;width:23px;text-align:center}.sidebar nav a.active{background:#eaf2ff;color:#2068ce;font-weight:700}.sidebar nav a:hover{background:#f0f5fc}.sidebar-note{margin-top:auto;padding:12px;border-radius:18px;background:#f6f9ff;text-align:center}.sidebar-note img{width:116px;height:110px;display:block;margin:0 auto}.sidebar-note strong{display:block;font-size:13px;line-height:1.8}.sidebar-note p{font-size:12px;color:var(--muted);margin-top:6px}.sidebar-bottom{font-size:10px;text-align:center;color:#8293a4;margin-top:20px}.workspace{margin-left:190px}.topbar{height:70px;padding:0 34px;display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--line);background:#ffffffb8}.crumb{font-size:13px;color:#91a0ad}.crumb b{font-weight:400;color:#5f778e;margin-left:8px}.search-shortcut{margin-left:auto;border:1px solid var(--line);padding:9px 14px;border-radius:12px;display:flex;gap:10px;align-items:center;font-size:13px;color:#7890a6}.search-shortcut kbd{margin-left:32px;padding:1px 5px;background:#f5f7fa;border-radius:4px}.avatar{background:#ffecad;border:3px solid white;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:14px;color:#8b6613}main{width:100%;max-width:1230px;margin:0 auto;padding:28px 34px 42px;min-height:calc(100vh - 132px)}main:focus{outline:none}footer{max-width:1230px;margin:auto;border-top:1px solid var(--line);padding:20px 34px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#8494a3}.eyebrow{font-size:13px;font-weight:700;color:#5882ab;letter-spacing:1px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 21px;border-radius:13px;border:1px solid transparent;background:var(--blue);color:white;font-size:16px;font-weight:700;box-shadow:0 4px 0 #1b55a9;transition:transform .16s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn.secondary{background:white;border-color:#d3dfec;color:#546d87;box-shadow:0 3px 0 #e4eaf1}.btn.small{font-size:15px;padding:10px 17px;min-height:42px}.quiet-link{font-size:14px;color:#3b73ae;white-space:nowrap}.quiet-link:hover{text-decoration:underline}.blue{--tint:#eaf4ff;--accent:#4d8be4;background:var(--tint)}.yellow{--tint:#fff6d9;--accent:#c49529;background:var(--tint)}.peach{--tint:#fff0e7;--accent:#d38a62;background:var(--tint)}.purple{--tint:#f0edff;--accent:#9178cb;background:var(--tint)}.mint{--tint:#eaf7f0;--accent:#5f9d85;background:var(--tint)}
/* 首页：画幅收紧，星宝成为卡片的主体。 */
.home-hero{position:relative;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:348px;background:#eaf3ff;border:1px solid #dbe6f0;border-radius:30px;overflow:hidden}.hero-copy{position:relative;z-index:2;padding:31px 0 31px 34px}.hero-copy .eyebrow{display:flex;align-items:center;gap:8px}.hero-copy .eyebrow span{width:7px;height:7px;border-radius:50%;background:#eab12e}.hero-copy h1{font-size:39px;line-height:1.5;letter-spacing:1px;margin:14px 0 12px;font-weight:850}.hand-underline{position:relative;white-space:nowrap;z-index:1}.hand-underline:after{content:"";position:absolute;bottom:3px;left:0;right:7px;height:12px;background:#ffdf7e;border-radius:50% 40% 30% 50%;z-index:-1;transform:rotate(-1deg)}.hero-copy p{font-size:17px;line-height:1.9;color:#58738c}.hero-actions{display:flex;gap:21px;align-items:center;margin-top:23px}.hero-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:#6d859c;margin-top:22px}.hero-meta i{font-style:normal;color:#aebdcb}.hero-scene{position:relative;min-height:335px;display:flex;align-items:center;justify-content:center}.hero-circle{position:absolute;width:290px;height:290px;background:#fff4d5;border:12px solid #ffffff60;border-radius:47% 53% 53% 47%;transform:rotate(-14deg)}.hero-scene>img{position:relative;width:302px;height:302px;z-index:1;filter:drop-shadow(0 10px 9px #708fb922)}.floating-hello{position:absolute;z-index:2;top:15px;left:28px;font:18px Consolas,monospace;padding:12px 17px;background:white;border:1px solid #d8e4f4;border-radius:18px 18px 2px 18px;color:#467cab;transform:rotate(-8deg)}.hero-spark{position:absolute;right:35px;top:51px;font-size:37px;color:#e5b137}.hero-code{position:absolute;bottom:6px;right:16px;z-index:3;background:#fffefa;border:1px solid #dce5ee;box-shadow:0 7px 16px #2e507914;border-radius:14px;padding:13px 20px;transform:rotate(3deg)}.hero-code span{display:block;font-size:11px;color:#8394a3;margin-bottom:5px}.hero-code code{font-size:17px;color:#3c6898}.home-lessons{margin-top:31px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-heading h2{font-size:23px;line-height:1.5}.section-heading .eyebrow{display:block;font-size:12px;margin-bottom:6px}.course-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.course-card{min-width:0;border:1px solid #dfe5e8;border-radius:23px;overflow:hidden;box-shadow:0 4px 0 #dfe6eb85;transition:transform .18s,box-shadow .18s}.course-card:hover{transform:translateY(-6px);box-shadow:0 11px 24px #31527614}.course-art{height:198px;position:relative;padding-top:14px;display:flex;justify-content:center;align-items:center;overflow:hidden}.course-art:before{content:"";position:absolute;width:145px;height:145px;border-radius:50%;background:#ffffff83;top:37px}.course-art img{position:relative;width:184px;height:184px;max-width:100%;transition:transform .2s;z-index:1}.course-card:hover img{transform:rotate(-3deg) scale(1.03)}.course-number{position:absolute;top:14px;left:15px;font-size:25px;font-weight:800;color:var(--accent);opacity:.75}.course-sticker{position:absolute;top:18px;right:12px;z-index:2;font-size:10px;font-weight:700;color:#6e8595;background:#ffffffbd;border:1px solid #fff;padding:3px 7px;border-radius:7px}.course-copy{padding:16px 17px 13px;background:#ffffffcf}.course-copy>code{font-size:13px;color:var(--accent);display:block;white-space:nowrap}.course-copy h3{font-size:18px;line-height:1.55;margin:7px 0 5px;min-height:55px}.course-copy p{font-size:13px;color:#748698;line-height:1.6}.course-entry{margin-top:15px;padding-top:12px;border-top:1px dashed #dce3e8;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#4f7396}.course-entry b{font-size:21px;line-height:1}.path-note{font-size:13px;color:#7890a5;margin:18px 0 0;line-height:1.8}.path-note span{display:inline-block;background:#edf0f5;color:#607e99;padding:2px 9px;border-radius:6px;margin-right:8px}.home-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.tool-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:white;padding:18px 16px;border-radius:17px}.tool-card>b{margin-left:auto;color:#8095aa}.tool-icon{width:42px;height:45px;flex-shrink:0;background:#eaf3ff;color:#5e8dc1;border-radius:12px;display:grid;place-items:center;font-size:26px}.yellow-icon{background:#fff2c5;color:#b38b34}.purple-icon{background:#eee8fc;color:#987abf}.tool-card h3{font-size:15px;margin-bottom:4px}.tool-card p{font-size:11px;color:#7c8ea0}
/* 绘本式学习页：一页一件事，大字、完整图解。 */
.learning-main{max-width:1310px}.lesson-topline{display:flex;align-items:center;gap:22px;margin-bottom:21px;font-size:13px;color:#7990a4}.lesson-topline>a{color:#4c7198}.lesson-topline>span{margin:auto}.favorite-button{font-size:14px;color:#a4812b;white-space:nowrap;padding:8px 13px;border:1px solid #eadbb4;border-radius:11px;background:#fffaf0}.lesson-shell{display:grid;grid-template-columns:194px minmax(0,1fr);gap:29px}.lesson-rail{align-self:start;position:sticky;top:20px}.rail-cover{border-radius:24px;padding:8px 10px 15px;text-align:center;border:1px solid #e5e5df}.rail-cover img{width:170px;height:170px;display:block;margin:0 auto}.rail-cover code{font-size:15px;color:#637e99}.lesson-rail h2{font-size:18px;margin:17px 0 9px;line-height:1.7}.lesson-rail>p{font-size:13px;color:#74899b;line-height:1.85}.lesson-rail nav{display:grid;gap:5px;margin-top:18px}.lesson-rail nav a{display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:10px;font-size:14px;color:#71869a}.lesson-rail nav a[aria-current]{background:#e4edfc;color:#2769c1;font-weight:700}.rail-number{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#fff;font-size:12px}.rail-prereq{border-top:1px dashed #d7e0e8;margin-top:18px;padding-top:17px;font-size:12px;color:#8493a2;line-height:1.8}.rail-prereq b{font-weight:500;font-size:12px}.rail-prereq a{display:block;margin-top:8px;color:#527eab}.rail-prereq p{margin-top:7px}.lesson-content{min-width:0;padding:29px 32px;background:var(--paper);border:1px solid #e5e5db;border-radius:25px;box-shadow:0 5px 0 #e7e8df,0 13px 25px #2e425107;position:relative}.step-heading:focus{outline:none}.step-kicker{font-size:14px;color:#8c9aaa;font-weight:600;letter-spacing:1px}.step-kicker i{font-style:normal;margin:0 9px;color:#b4bdc6}.step-heading h1{font-size:29px;letter-spacing:.4px;line-height:1.65;margin:8px 0 10px}.step-heading>p{font-size:19px;line-height:1.9;color:#4d677e;max-width:42em}.visual-stage{margin-top:24px;border:1px solid #dfe6e8;border-radius:23px;overflow:hidden;background:linear-gradient(135deg,#fff,var(--tint));position:relative}.visual-stage:before{content:"";position:absolute;width:180px;height:180px;border:1px solid #ffffffb5;border-radius:50%;right:-70px;top:-60px;pointer-events:none}.visual-stage #visual-content{padding:24px;position:relative}.visual-footer{display:flex;justify-content:space-between;border-top:1px solid #dfe7ecaa;background:#ffffff63;color:#7c96ac;padding:10px 20px;font-size:11px}.mentor-note{display:flex;align-items:center;gap:12px;margin:22px 0;background:#fff8e7;border:1px solid #eee3c6;padding:12px 18px 12px 7px;border-radius:18px}.mentor-note img{width:80px;height:80px;flex-shrink:0}.mentor-note strong{font-size:14px;color:#a08442}.mentor-note p{font-size:16px;line-height:1.85;color:#756b56;margin-top:4px}.micro-check{border-top:1px dashed #d9e1e7;padding-top:22px;margin-top:21px}.check-heading{display:flex;gap:9px;align-items:center;color:#738a9c;font-size:14px}.check-heading>span{font-size:24px;color:#e4b044}.check-heading b{color:#516e87;font-size:15px}.check-heading small{font-size:12px;margin-left:auto;color:#95a1ac}.micro-check h2,.review-question h2{font-size:18px;line-height:1.85;margin:10px 0 15px}.micro-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.answer-option{width:100%;display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid #d5dfeb;border-radius:12px;background:white;text-align:left;font-size:16px;line-height:1.65;overflow-wrap:anywhere}.answer-option>b{flex-shrink:0;width:27px;height:27px;background:#edf2f7;border-radius:8px;display:grid;place-items:center;font-size:13px;color:#70849a}.answer-option:hover{border-color:#8cacd4;background:#f5f9ff}.answer-option.chosen{border-color:#5288ce;background:#eaf3ff}.answer-feedback{font-size:16px;line-height:1.9;padding:12px 16px;background:#eef3f9;border-radius:12px;margin-top:14px}.answer-feedback:empty{display:none}.answer-feedback.correct{color:#377555;background:#eaf5eb}.answer-feedback.incorrect{color:#986c3b;background:#fff2df}.page-turn{margin-top:27px;padding-top:20px;border-top:1px solid #e4e7e4;display:flex;align-items:center;justify-content:space-between;gap:15px}.page-turn>span{font-size:12px;color:#8e9dab}.page-turn .btn{font-size:15px;padding:11px 16px}.code-box,.output-box{border-radius:15px;padding:17px 20px;min-width:0}.code-box{background:#263d55;color:#e8f3ff;box-shadow:inset 0 1px 0 #ffffff0e}.output-box{background:white;border:1px solid #d4e2ed;color:#456b88}.box-label{display:block;margin-bottom:12px;font-size:12px;color:#a8bfd5;letter-spacing:1px}.output-box .box-label{color:#8094a6}.code-box pre,.output-box pre{font-size:20px}.code-output{display:grid;grid-template-columns:1.1fr 25px 1fr;align-items:stretch;gap:10px}.between-arrow{align-self:center;font-size:25px;color:#87a5c3}.visual-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:3px 0 19px}.toggle{border:1px solid #ccdceb;background:white;color:#607d95;border-radius:12px;padding:10px 16px;font-size:16px;min-height:45px}.toggle.selected{color:#2160b2;border-color:#85ace2;background:#e8f2ff;box-shadow:0 3px 0 #cbddf5}.explain-strip{padding:15px 18px;font-size:17px;line-height:1.85;border-radius:12px;background:#ffffffbf;border:1px solid #e1e9ee;margin-top:18px;color:#536f88}.explain-strip p{font-size:17px;margin-top:5px}.visual-caption{font-size:17px;color:#667f95;text-align:center;margin-top:15px}svg{display:block;width:100%;height:auto;overflow:visible}.svg-code{font:27px Consolas,monospace;fill:#254b73}.svg-number{font-size:48px;fill:#8e6d24;font-weight:800}.svg-label{font-size:22px;fill:#365975}.svg-caption{font-size:19px;fill:#6a8298}.svg-scroll{overflow-x:auto;overscroll-behavior-x:contain}.good{color:#378560}.bad{color:#b17858}.greeting-scene{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:14px}.greeting-scene>img{width:175px;height:180px}.speech{font-size:30px;padding:20px;background:white;border:2px solid #b8d6f3;border-radius:24px 24px 24px 3px;text-align:center;margin-bottom:15px}.result-ribbon{display:flex;align-items:center;gap:14px;font-size:13px;border-top:1px dashed #cfddea;padding-top:17px;margin-top:17px;color:#6c8497}.result-ribbon strong{font-size:21px;color:#3b688e}.result-ribbon span{margin-left:auto;font-size:12px}.anatomy-code{display:flex;justify-content:center;align-items:center;padding:30px 0;gap:5px}.anatomy-code button{font:32px Consolas,monospace;background:#fff;padding:13px 9px;border-radius:12px;border:1px solid #dce5ed;color:#537ba5}.anatomy-code button.lit{background:#ffe8a5;border-color:#e6bf5e;color:#806326}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:17px}.comparison-card{padding:18px;border:1px solid #dee5eb;border-radius:16px;background:#fff9}.comparison-card .code-output{grid-template-columns:1fr;gap:8px}.comparison-card .between-arrow{display:none}.comparison-card p{font-size:16px;line-height:1.8;margin-top:13px;color:#6d8498}.mini-tag{font-size:14px;color:#708a9f;background:#fff;border:1px solid #e1e7ed;padding:6px 9px;border-radius:8px;display:inline-block}.big-code{font:26px/1.8 Consolas,monospace;padding:24px 0;color:#365d82;text-align:center;overflow-wrap:anywhere}.small-warning{display:flex;flex-wrap:wrap;gap:12px;background:#fff4e9;padding:17px;font-size:16px;border-radius:13px;margin-top:17px;line-height:1.8;color:#956e49}.small-warning span{display:block;flex-basis:100%}.symbol-board{display:grid;gap:12px}.symbol-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#ffffffcf;padding:15px;border-radius:15px;flex-wrap:wrap}.symbol-state{font-size:16px;font-weight:700}.symbol-row kbd{padding:8px 12px;border:1px solid #dbe3ea;background:white;border-bottom:3px solid #d6e0e7;border-radius:9px;font-size:25px;min-width:60px;text-align:center}.symbol-row>span:last-child{font-size:13px;color:#8293a0}.punctuation-example{text-align:center;padding:23px 0 2px}.punctuation-example code{font-size:29px}.punctuation-example code span{color:#287bd4}.punctuation-example p{font-size:16px;color:#647e95;margin-top:13px}.quote-inside{text-align:center}.inner-quote{color:#277acc;background:#d8eeff;border-radius:4px}.identity-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.identity-card{border:1px solid #dde5ed;border-radius:20px;padding:22px 18px;text-align:center;display:flex;align-items:center;flex-direction:column;background:#fff9}.identity-card>span{font-size:16px;color:#748a9d}.identity-card>strong{font:700 64px/1.6 Consolas,monospace;color:#496a92}.identity-card>b{font-size:18px}.identity-card>p{font-size:17px;margin-top:12px}.numeric{background:#e9f2ff;border-color:#b9d3f1}.textual{background:#fff2cf;border-color:#e9d298}.math-stage{display:flex;align-items:center;justify-content:center;gap:20px;padding:20px 0}.math-token{padding:20px 23px;border-radius:20px;border:1px solid #c8d8e8;font:38px Consolas,monospace;box-shadow:0 4px 0 #28456710}.math-arrow{font-size:30px;color:#8dabc2}.math-result{font:40px Consolas,monospace;color:#456683}.error-message{padding:17px 20px;background:#fff0df;border:1px solid #f0d4b9;border-radius:13px;margin:12px 0 18px;font-size:17px;color:#986c41}.error-message p{font-size:16px;margin-top:7px}.fix-card{background:white;border:1px solid #dbe5ed;border-radius:14px;padding:18px;display:grid;gap:13px;font-size:16px}.fix-card code{font-size:18px}.fix-card>span{font-size:18px;color:#39765d}.three-expressions{display:grid;gap:13px}.three-expressions>div{display:flex;align-items:center;gap:15px;padding:20px;border-radius:14px;background:white;border:1px solid #e2e7eb;flex-wrap:wrap}.three-expressions span{font-size:15px;color:#7890a2;flex-basis:100%}.three-expressions code{font-size:23px}.three-expressions b{color:#88a0b4;margin-left:auto}.expression-result{background:#f0f7ec;border-radius:9px;padding:5px 13px;color:#578155}.name-value-header{display:flex;gap:18px;align-items:center;padding:10px 2px 22px;font-size:15px;color:#7d8f9e}.name-value-header code{font-size:22px;font-weight:700;color:#496b8e}.update-phases{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}.update-phases span{background:#fff9;border:1px solid #d8e0e8;border-radius:13px;text-align:center;padding:12px 8px;font-size:15px;color:#758a9c}.update-phases b{display:block;font:20px Consolas,monospace;margin-top:10px;color:#547693}.update-phases .current{background:#fff1c8;border-color:#debc64;box-shadow:0 3px 0 #e9dba9}.name-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.name-grid>div{background:#fff;border:1px solid #dee6eb;border-radius:15px;padding:20px;display:grid;gap:17px}.name-grid>div>span{font-size:16px;font-weight:700}.name-grid code{font-size:22px}.name-grid small{font-family:inherit;display:block;font-size:14px;color:#90a0ad;margin-top:6px}.trace-table{display:grid;gap:12px}.trace-table>div{display:flex;align-items:center;flex-wrap:wrap;gap:17px;padding:20px;border-radius:14px;border:1px solid #dce5ed;background:#fff}.trace-table code{font-size:20px;flex:1 1 210px}.trace-table span{font-size:16px;color:#5a7b98}.trace-table span b{font-size:22px;color:#a18536;background:#fff1bf;border-radius:8px;padding:4px 12px}.trace-table small{font-size:15px;color:#8795a2}.compare-sign{display:flex;align-items:center;justify-content:center;gap:28px;padding:15px 0;font:35px Consolas,monospace}.compare-sign strong{font-size:65px;color:#bd942f}.compare-label{text-align:center;font-size:18px;margin:8px 0 24px;color:#728a9c}.truth-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.truth-cards>div{padding:18px 9px;text-align:center;background:#fff;border:1px solid #dee5ec;border-radius:13px;font:19px Consolas,monospace}.truth-cards b{display:block;margin-top:13px;font:16px "Microsoft YaHei",sans-serif}.branch-stage>svg{max-width:550px;margin:auto}.branch-caption{display:flex;align-items:center;gap:17px;flex-wrap:wrap;background:#fff;border:1px solid #dce4ed;border-radius:14px;padding:16px 19px;font-size:18px}.branch-caption strong{color:#437e63;background:#eaf7ec;border-radius:7px;padding:6px 12px}.branch-caption p{font-size:16px;flex-basis:100%;color:#6d8599}.annotated-code,.indent-demo,.for-structure{background:#fff;border:1px solid #dce5ed;border-radius:17px;padding:23px}.annotated-code>div{display:flex;align-items:center;gap:12px;padding:12px 0;flex-wrap:wrap}.annotated-code code{font-size:22px}.annotated-code>div>span{font-size:14px;color:#8ca1b2;margin-left:auto}.annotated-code .indent-row{padding-left:35px;border-left:4px solid #b7d1f0;background:#eff6ff80}.syntax-mark{background:#ffe19a;color:#9b7015;border-radius:4px;padding:3px 6px}.indent-demo>div{min-height:56px;display:flex;align-items:center;gap:8px;font-size:22px;flex-wrap:wrap}.indent-highlight{background:#ebf4ff}.space-dots{font:30px Consolas,monospace;color:#82addb;letter-spacing:4px}.belong{font-size:13px!important;color:#8da1b1;margin-left:auto}.boundary-table{border:1px solid #d7e0e8;border-radius:17px;overflow:hidden;background:#fff}.table-row{display:grid;grid-template-columns:1.3fr 1fr 1fr;text-align:center;padding:17px;font-size:20px;border-bottom:1px solid #e7edf1}.table-row:first-child{font-size:16px;background:#f5f8fc}.table-row:last-child{border:0}.key-row{background:#fff2c4;color:#8e6c2a}.repeat-scene{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.repeat-thought{text-align:center}.repeat-thought img{width:170px;height:170px}.repeat-thought p{font-size:17px;color:#678298}.for-structure{font-size:22px;line-height:2.2}.for-structure>b{color:#667dc3}.for-structure .indent-row{padding-left:36px;border-left:4px solid #91b9e2}.three-labels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:15px}.three-labels span{background:#fff9;border:1px solid #dce5ec;border-radius:13px;padding:14px;font-size:15px;line-height:1.8;color:#718ba0}.three-labels b{font:17px Consolas,monospace;display:block;color:#3c688f;margin-bottom:7px}.loop-state{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.loop-counter{font-size:17px;display:grid;place-content:center;text-align:center;background:#fdf6da;border:1px solid #e8dba9;border-radius:15px}.loop-counter strong{display:block;font:32px Consolas,monospace;margin-top:10px}.equivalence{display:flex;align-items:center;justify-content:center;gap:20px;font-size:16px;color:#7c90a1}.equivalence code{font-size:25px;color:#507599}
/* 复习、目录、索引 */
.page-intro{margin:12px 0 25px}.page-intro h1{font-size:32px;margin:12px 0}.page-intro p{font-size:17px;color:#74899c;max-width:850px}.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.chapter-card{border-radius:24px;overflow:hidden;border:1px solid #e0e5e8;padding:18px 22px}.chapter-cover{height:165px;position:relative;display:flex;justify-content:center}.chapter-cover img{width:180px;height:180px}.chapter-cover>span{position:absolute;left:0;top:6px;font-size:35px;font-weight:800;color:var(--accent);opacity:.55}.chapter-card h2{font-size:20px;margin:18px 0 12px}.chapter-card ul{padding:0;margin:0;list-style:none}.chapter-card li>a,.chapter-card li>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #ffffffb3;font-size:15px;color:#637c93}.chapter-card li b{font-size:12px;color:#3278bd;font-weight:400;white-space:nowrap}.chapter-card li small{font-size:11px;color:#92a0ab;white-space:nowrap}.summary-card{margin:20px 0;background:#fff4cf;border:1px solid #eee0b2;border-radius:19px;padding:23px}.summary-card h2{font-size:19px;margin-bottom:12px}.summary-card ul{padding:0 0 0 20px;margin:0;font-size:17px;line-height:2;color:#7b6f4c}.review-question{border:1px solid #e1e6e9;border-radius:18px;padding:24px;margin-top:19px;background:#fff}.review-number{color:#93adc8;font-size:26px;font-weight:800}.review-options,.order-options{display:grid;gap:10px;margin:16px 0}.review-question>.code-box{margin-bottom:18px}.review-question>.btn{margin-top:16px}.fill-label{display:flex;align-items:center;gap:14px;font-size:16px;margin:18px 0;color:#73899c}.fill-label input{border:1px solid #cbd9e7;border-radius:10px;padding:13px;font:20px Consolas,monospace;width:200px;max-width:70%}.order-result{background:#edf5ff;border:1px dashed #a4c0df;border-radius:12px;padding:15px;white-space:pre-wrap;font:18px/1.8 Consolas,monospace;color:#557b9f;margin:12px 0}.text-button{font-size:14px;color:#7790a6;padding:10px}.local-task{display:flex;gap:15px;align-items:center;background:#eef5ff;border:1px solid #d8e4f1;border-radius:20px;padding:18px;margin-top:24px}.local-task img{width:140px;height:140px}.local-task h2{font-size:20px;margin:7px 0}.local-task p{font-size:17px;color:#587791}.local-task small{font-size:12px;color:#8b9ba9;display:block;margin-top:10px}.completion{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:25px}.completion>span{font-size:14px;line-height:1.9;color:#7c8e9e}.completion .btn{flex-shrink:0;font-size:14px}.search-box{display:flex;align-items:center;gap:15px;background:white;border:1px solid #ceddec;border-radius:15px;padding:16px 20px;font-size:25px;color:#8097ac}.search-box input{flex:1;min-width:0;border:0;outline:none;font-size:18px;color:#4f6e8a}.filter-row{display:flex;gap:12px;margin:20px 0}.filter{border:1px solid #d8e2ec;border-radius:30px;padding:10px 17px;background:white;font-size:14px;color:#7890a4}.filter.selected{background:#e5efff;border-color:#a2bfe5;color:#2b69b5}.muted{font-size:13px;color:#8c9ba8}.search-results{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:16px}.search-item{display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border:1px solid #e0e7ee;padding:22px;border-radius:17px}.search-item h2{font-size:17px;line-height:1.7}.search-item p{font-size:13px;color:#8a9cac;margin-top:7px}.practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px}.practice-card{display:flex;align-items:center;gap:17px;border:1px solid #e0e6e8;border-radius:23px;padding:21px}.practice-card>img{width:135px;height:150px}.practice-card code{font-size:14px;color:#8593a1}.practice-card h2{font-size:20px;margin:8px 0}.practice-card p{font-size:14px;color:#8495a4}.practice-links{display:flex;align-items:center;gap:15px;margin-top:15px;flex-wrap:wrap}.practice-links .quiet-link{font-size:12px}.empty-state{grid-column:1/-1;text-align:center;background:white;border:1px dashed #d4e0ea;padding:28px;border-radius:22px}.empty-state img{width:135px;height:135px}.empty-state h2{font-size:21px;margin:8px 0}.empty-state p{font-size:16px;color:#7c91a5;margin-bottom:17px}.storage-note{font-size:15px;color:#889baa;margin-bottom:24px}.notebook-grid{grid-template-columns:repeat(auto-fill,minmax(195px,220px))}.notebook-grid>.empty-state{grid-column:1/-1}.notebook-heading{margin-top:35px}.wrong-item{border:1px solid #e0e6ed;background:white;border-radius:18px;padding:23px;margin:15px 0}.wrong-item h3{font-size:18px;line-height:1.8;margin:10px 0 14px}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#274360;color:white;font-size:15px;padding:14px 24px;border-radius:13px;z-index:90;box-shadow:0 9px 20px #0002}#toast.show{display:block}
@media(min-width:1700px){main{padding-top:35px}.home-hero{min-height:375px}.hero-copy h1{font-size:43px}.hero-scene>img{width:325px;height:325px}.hero-circle{width:315px;height:315px}.course-art{height:219px}.course-art img{width:209px;height:209px}.course-art:before{width:163px;height:163px}.course-copy h3{font-size:20px}.hero-meta{font-size:13px}}
@media(max-width:1250px){.sidebar{width:170px;padding:22px 10px}.brand img{width:150px}.product-name{font-size:11px}.product-name span{display:none}.sidebar nav a{font-size:13px;gap:7px}.workspace{margin-left:170px}main{padding:24px}.home-hero{grid-template-columns:1.2fr 1fr}.hero-copy{padding-left:25px}.hero-copy h1{font-size:33px}.hero-copy p{font-size:16px}.hero-scene>img{width:255px;height:255px}.hero-circle{width:240px;height:240px}.hero-code{right:10px;font-size:14px}.hero-meta{gap:7px;font-size:11px}.floating-hello{left:5px;font-size:15px}.course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.course-art{height:202px}.course-art img{width:195px;height:195px}.course-copy h3{min-height:0}.home-tools{grid-template-columns:1fr}.tool-card p{font-size:13px}.lesson-shell{grid-template-columns:165px minmax(0,1fr);gap:18px}.rail-cover img{width:143px;height:143px}.lesson-content{padding:25px}.lesson-rail h2{font-size:16px}.lesson-rail nav a{font-size:13px}.step-heading h1{font-size:27px}.micro-options{grid-template-columns:1fr}.practice-grid{grid-template-columns:1fr}.code-output{grid-template-columns:1fr}.between-arrow{display:none}.comparison-card{padding:14px}.big-code{font-size:23px}.symbol-row kbd{font-size:22px;padding:7px}.greeting-scene{grid-template-columns:130px 1fr}.greeting-scene>img{width:140px;height:160px}.greeting-scene .speech{font-size:25px}.three-labels{grid-template-columns:1fr}.three-labels span{display:flex;align-items:center;gap:15px}.three-labels b{margin:0}.hero-actions{gap:13px;flex-wrap:wrap}}
@media(max-width:950px){.sidebar{width:156px}.brand img{width:133px}.workspace{margin-left:156px}.sidebar nav a{font-size:12px;padding:10px 6px}.sidebar-note{padding:8px}.sidebar-note strong{font-size:12px}.sidebar-bottom{font-size:9px}.hero-copy h1{font-size:29px}.hero-meta{display:none}.hero-scene>img{width:225px;height:225px}.hero-circle{width:215px;height:215px}.hero-code{bottom:24px;padding:11px}.hero-code code{font-size:13px}.hero-scene{min-height:290px}.home-hero{min-height:315px}.floating-hello{top:20px;font-size:13px}.hero-spark{right:10px}.hero-copy p{font-size:14px}.course-grid{gap:13px}.course-copy{padding:13px}.course-copy h3{font-size:17px}.course-art img{width:170px;height:170px}.course-art{height:178px}.course-sticker{font-size:9px;right:7px}.course-number{left:10px;font-size:22px}.hero-actions .btn{font-size:14px}.lesson-shell{grid-template-columns:1fr}.lesson-rail{position:static;display:block}.rail-cover,.lesson-rail>h2,.lesson-rail>p,.rail-prereq{display:none}.lesson-rail nav{display:flex;gap:7px;overflow-x:auto;margin:0;padding:2px 0 7px}.lesson-rail nav a{flex-shrink:0;padding:8px;background:white;border:1px solid #e0e6ed;font-size:13px}.lesson-rail nav a[aria-current]{border-color:#acc4e4}.lesson-topline>span{display:none}.favorite-button{margin-left:auto}.lesson-content{padding:27px}.step-heading>p{font-size:19px}.chapter-grid{grid-template-columns:1fr 1fr}.chapter-card{padding:16px}.search-results{grid-template-columns:1fr}.micro-options{grid-template-columns:1fr 1fr}.comparison .code-box pre{font-size:18px}.result-ribbon{flex-wrap:wrap}.result-ribbon span{margin-left:0}.local-task img{width:105px;height:105px}.topbar{padding:0 24px}}
@media(max-width:650px){.sidebar{position:static;width:auto;padding:10px 16px 7px;border-bottom:1px solid var(--line);border-right:0}.brand img{width:146px;height:48px}.product-name,.nav-caption,.sidebar-note,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin-top:6px}.sidebar nav a{flex-shrink:0;padding:10px;font-size:13px}.sidebar nav a span{display:none}.workspace{margin:0}.topbar{height:51px;padding:0 17px}.search-shortcut{padding:6px 10px;font-size:12px}.search-shortcut kbd,.avatar{display:none}.crumb{font-size:11px}main{padding:18px 15px 28px}.home-hero{grid-template-columns:1fr;border-radius:24px}.hero-copy{padding:25px 24px 0}.hero-copy h1{font-size:32px;letter-spacing:0;line-height:1.55}.hero-copy p{font-size:17px}.hero-copy .eyebrow{font-size:11px}.hero-actions{margin-top:18px;gap:16px}.hero-actions .btn{font-size:14px}.hero-actions .quiet-link{font-size:12px}.hero-scene{min-height:257px}.hero-scene>img{width:245px;height:245px}.hero-circle{width:225px;height:225px}.floating-hello{left:23px;top:23px;font-size:13px}.hero-spark{right:28px;top:29px}.hero-code{bottom:10px;right:18px}.hero-code code{font-size:15px}.hero-code span{font-size:10px}.section-heading{align-items:end;gap:10px}.section-heading h2{font-size:21px}.section-heading>.quiet-link{font-size:11px;white-space:normal;max-width:75px;text-align:right;line-height:1.7}.section-heading .eyebrow{font-size:11px}.home-lessons{margin-top:24px}.course-grid{grid-template-columns:1fr 1fr;gap:16px 12px}.course-art{height:177px}.course-art img{height:165px;width:165px}.course-art:before{width:127px;height:127px;top:33px}.course-number{font-size:22px;top:12px}.course-sticker{font-size:9px;top:14px}.course-copy{padding:14px 13px}.course-copy>code{font-size:12px}.course-copy h3{font-size:17px;min-height:52px}.course-copy p{font-size:12px}.course-entry{font-size:12px;margin-top:12px}.path-note{font-size:13px}.home-tools{margin-top:21px;gap:12px}.tool-card{padding:16px}.tool-card h3{font-size:16px}.tool-card p{font-size:12px}.lesson-topline{font-size:12px;margin-bottom:15px;gap:10px}.favorite-button{font-size:13px;padding:7px 10px}.lesson-shell{gap:13px}.lesson-content{padding:23px 17px;border-radius:20px}.step-kicker{font-size:12px;letter-spacing:.5px}.step-kicker i{margin:0 5px}.step-heading h1{font-size:25px;line-height:1.6;margin:11px 0 14px}.step-heading>p{font-size:18px;line-height:1.9}.visual-stage{margin-top:22px;border-radius:18px}.visual-stage #visual-content{padding:16px 12px}.visual-footer{padding:10px 12px;font-size:10px}.mentor-note{align-items:start;padding:13px 12px;gap:9px}.mentor-note img{width:49px;height:55px}.mentor-note p{font-size:16px;line-height:1.85}.mentor-note strong{font-size:13px}.micro-options{grid-template-columns:1fr}.check-heading small{display:none}.micro-check h2{font-size:18px}.answer-option{font-size:16px;padding:13px 11px}.answer-feedback{font-size:16px;padding:12px}.page-turn{flex-wrap:wrap;gap:12px}.page-turn>span{display:none}.page-turn .btn{font-size:14px;padding:10px 13px}.code-box,.output-box{padding:15px 14px}.code-box pre,.output-box pre{font-size:18px}.box-label{font-size:11px}.comparison,.identity-pair,.name-grid{grid-template-columns:1fr}.comparison-card{padding:16px}.comparison-card .code-output{grid-template-columns:1fr}.big-code{font-size:26px;padding:18px 0}.greeting-scene{grid-template-columns:1fr}.greeting-scene>img{width:165px;height:165px;margin:auto}.greeting-scene .speech{font-size:28px}.result-ribbon strong{font-size:21px}.anatomy-code{gap:3px;padding:15px 0}.anatomy-code button{font-size:24px;padding:11px 5px}.explain-strip{font-size:17px;padding:14px}.explain-strip p{font-size:17px}.symbol-row{gap:8px;padding:13px 10px;justify-content:start}.symbol-state{flex-basis:100%;font-size:16px}.symbol-row kbd{font-size:24px;min-width:61px}.symbol-row>span:last-child{font-size:12px}.punctuation-example code{font-size:22px}.punctuation-example p{font-size:16px}.mini-tag{font-size:13px;line-height:1.9}.identity-card>strong{font-size:58px}.math-stage{gap:11px;flex-wrap:wrap}.math-token{font-size:31px;padding:14px}.math-result{font-size:35px}.math-arrow{font-size:24px}.math-stage>b{font-size:20px}.three-expressions>div{padding:16px;gap:10px}.three-expressions code{font-size:20px}.three-expressions b{margin-left:0}.name-value-header{flex-wrap:wrap;gap:8px}.update-phases{gap:7px;grid-template-columns:1fr}.update-phases span{display:flex;align-items:center;justify-content:space-between;font-size:16px;padding:13px}.update-phases b{margin:0;font-size:19px}.truth-cards{grid-template-columns:1fr;gap:10px}.truth-cards>div{display:flex;justify-content:space-between;align-items:center;padding:16px}.truth-cards b{margin:0;font-size:16px}.annotated-code,.indent-demo,.for-structure{padding:14px 12px}.annotated-code code{font-size:18px}.annotated-code>div>span{font-size:13px;margin-left:0;flex-basis:100%}.annotated-code .indent-row{padding-left:21px}.indent-demo>div{font-size:17px}.space-dots{font-size:24px;letter-spacing:1px}.belong{display:none}.table-row{font-size:18px;padding:14px 7px}.table-row:first-child{font-size:14px}.repeat-scene{grid-template-columns:1fr}.repeat-thought{display:flex;align-items:center;justify-content:center;gap:9px}.repeat-thought img{width:120px;height:120px}.repeat-thought p{font-size:15px}.for-structure{font-size:17px}.for-structure .indent-row{padding-left:21px}.three-labels span{font-size:15px;flex-wrap:wrap;gap:8px}.equivalence{flex-direction:column;gap:9px}.equivalence code{font-size:24px}.loop-counter{font-size:16px}.loop-counter strong{font-size:25px}.loop-state{gap:11px}.toggle{font-size:14px;padding:9px 11px;min-height:43px}.visual-controls{gap:8px}.svg-scroll{margin:0 -2px}.svg-scroll>svg{min-width:480px}.visual-caption{font-size:16px}.page-intro h1{font-size:27px;line-height:1.6}.page-intro p{font-size:17px}.chapter-grid{grid-template-columns:1fr}.chapter-card{padding:20px}.chapter-cover{height:200px}.chapter-cover img{width:210px;height:210px}.chapter-card h2{font-size:22px}.chapter-card li>a,.chapter-card li>span{font-size:17px}.chapter-card li small{font-size:12px}.summary-card{padding:19px}.summary-card ul{font-size:17px}.review-question{padding:18px 14px}.review-question h2{font-size:18px}.local-task{display:block;padding:18px}.local-task img{display:block;width:130px;height:130px;margin:auto}.local-task p{font-size:17px}.completion{flex-direction:column;align-items:stretch}.completion>span{font-size:14px}.practice-card{display:block;padding:21px}.practice-card>img{display:block;width:180px;height:180px;margin:auto}.practice-card h2{font-size:22px}.practice-card p{font-size:16px}.practice-links .quiet-link{font-size:14px}.search-box{padding:13px}.search-box input{font-size:16px}.filter-row{gap:9px}.filter{font-size:13px;padding:9px 13px}.search-item{padding:19px 16px;gap:10px}.search-item h2{font-size:17px}.search-item p{font-size:13px}.search-item .quiet-link{font-size:13px}.notebook-grid{grid-template-columns:1fr 1fr}.notebook-grid:has(.empty-state){grid-template-columns:1fr}footer{flex-direction:column;padding:19px 16px;gap:7px;font-size:10px}.skip{left:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.svg-pan-hint{display:none}.story-svg{font-family:"Microsoft YaHei","PingFang SC",sans-serif}.story-scroll+.code-box,.story-scroll~.output-box{margin-top:17px}.story-svg image{isolation:auto}.branch-stage .svg-scroll{max-width:560px;margin:auto}.branch-stage>.output-box{margin-top:15px}.visual-stage .svg-scroll:focus:not(:focus-visible){outline:none}
.lesson-rail{min-width:0}.lesson-rail nav{max-width:100%}.update-phases+.story-scroll{margin-top:17px}.code-box+.story-scroll{margin-top:17px}
.visual-stage{overflow:clip}
@media(max-width:650px){.story-scroll>svg{min-width:640px}.svg-pan-hint{display:block;font-size:12px;color:#7991a5;margin:8px 0;line-height:1.8}.visual-stage .svg-scroll{max-width:100%}.branch-stage .svg-scroll>svg{min-width:500px}}
