:root{--bg:#f7f9f9;--white:#fff;--ink:#202b2a;--muted:#7b8584;--line:#e7ecea;--green:#4c7957;--mint:#eaf2e4;--sidebar:238px;--sans:'DM Sans','Noto Sans SC','Microsoft YaHei',sans-serif;--mono:'Cascadia Code','SFMono-Regular',Consolas,monospace}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--bg);font-size:16px;line-height:1.6}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #71a86c;outline-offset:4px}button{border:0}h1,h2,h3,p{margin:0}svg{width:20px;height:20px;vertical-align:middle;flex:none;stroke-width:1.7}button svg{pointer-events:none}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}button span[data-icon]{flex-shrink:0}[hidden]{display:none!important}.skip-link{position:fixed;left:20px;top:-80px;z-index:100;background:var(--ink);color:#fff;padding:12px 20px;border-radius:8px}.skip-link:focus{top:16px}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);z-index:30;padding:35px 22px 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding-left:6px;font-size:23px;letter-spacing:-.7px;font-weight:800;line-height:1.4}.brand-symbol{position:relative;display:flex;justify-content:center;align-items:center;width:44px;height:46px;border-radius:12px;background:#243e35;color:#e1f6d3;font-family:var(--mono);font-size:36px;line-height:1;font-weight:700;letter-spacing:-6px;padding-right:8px}.brand-symbol span{font-size:40px;color:#b5df95;margin-left:-1px;transform:translateY(6px)}.brand small{display:block;font-size:11px;font-weight:400;color:#87908b;letter-spacing:1.3px;margin-top:4px}.sidebar-label{font-size:12px;letter-spacing:1.4px;color:#929b96;margin:51px 14px 13px}.primary-nav{display:flex;flex-direction:column;gap:8px}.nav-item{position:relative;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:8px;font-size:14px;font-weight:500;color:#7b8380;transition:background .2s,color .2s}.nav-item:hover{background:#f4f6f2;color:#263d2c}.nav-item.active{background:#edf3e8;color:#354e36;font-weight:600}.nav-item.active:before{content:'';position:absolute;height:19px;width:3px;background:#79a667;border-radius:4px;left:-22px}.nav-tag{margin-left:auto;font-size:10px;background:#dae8cd;border-radius:4px;padding:1px 6px;color:#5c7652;font-weight:500}.nav-item:not(.active) .nav-tag{display:none}.sidebar-note{margin-top:auto;margin-bottom:39px;position:relative;background:linear-gradient(140deg,#f3f6ef,#f8faf6);border:1px solid #edf0e8;border-radius:11px;padding:20px 15px 17px}.note-spark{color:#8ca974;margin-bottom:13px}.note-spark svg{width:25px;height:25px}.sidebar-note h3{font-size:14px;font-weight:600;margin-bottom:9px}.sidebar-note p{font-size:13px;color:#8c948a;line-height:1.9}.note-code{font:10px var(--mono);display:block;color:#91a187;margin-top:19px;white-space:nowrap;letter-spacing:-.3px}.sidebar-bottom{margin:0 -22px;border-top:1px solid var(--line);padding:23px 16px;display:flex;align-items:center;gap:9px}.local-avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#edf1e8;color:#7e916d}.local-avatar svg{width:19px;height:19px}.sidebar-bottom strong{font-size:11px;display:block;font-weight:500}.sidebar-bottom div>span{font-size:10px;color:#9aa39b;display:block;margin-top:2px}.sidebar-bottom .icon-button{margin-left:auto;width:24px;height:32px;color:#89928d}.sidebar-bottom .icon-button svg{width:16px;height:16px}.main-shell{margin-left:var(--sidebar)}.topbar{height:77px;background:rgba(255,255,255,.65);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px}.breadcrumb{display:flex;align-items:center;gap:13px}.breadcrumb-home{color:#95a099}.breadcrumb-home svg{width:16px;height:16px}.breadcrumb-parent{color:#909a94}.slash{color:#cad0cb}.topbar-right{display:flex;align-items:center;gap:24px}.topbar-motto{font-size:11px;color:#939b94;letter-spacing:.3px}.topbar-divider{height:17px;width:1px;background:#e4e8e3}.guide-button{background:none;display:flex;gap:7px;align-items:center;font-size:12px;color:#737d75;padding:6px 0}.guide-button svg{width:16px;height:16px}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:6px;width:32px;height:32px;color:#7a857d}.icon-button:hover{background:#eaf0e6;color:#385738}.mobile-menu{display:none}main{padding:34px 42px 0;max-width:1590px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#89968b;font-weight:500;margin-bottom:5px}h1{font-size:28px;line-height:1.5;font-weight:700;letter-spacing:-.7px}.heading-dot{color:#80a168;margin-left:3px}.page-heading p{font-size:12px;color:#8c958e;margin-top:6px;letter-spacing:.2px}.beginner-badge{display:flex;gap:6px;align-items:center;font-size:11px;color:#6a8460;background:#edf3e8;border:1px solid #e0e9d8;border-radius:20px;padding:6px 11px}.beginner-badge svg{width:14px;height:14px}
.hero{position:relative;overflow:hidden;min-height:336px;background:#eaf1e3;border:1px solid #e2e9db;border-radius:13px;display:flex;align-items:center;justify-content:space-between;padding:32px 39px;margin-bottom:35px;background-image:radial-gradient(ellipse at 94% 28%,#deebd4 0,transparent 56%)}.hero:after{content:'';pointer-events:none;position:absolute;inset:0 0 0 50%;background-image:linear-gradient(#aabf9810 1px,transparent 1px),linear-gradient(90deg,#aabf9810 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(90deg,transparent,#000)}.hero-copy{position:relative;z-index:1}.hero-kicker{font-size:10px;letter-spacing:.6px;color:#6f8261;display:flex;align-items:center;gap:6px;margin-bottom:13px}.hero-kicker>span{width:5px;height:5px;border-radius:50%;background:#799b60}.hero h2{font-size:32px;line-height:1.5;letter-spacing:.5px;font-weight:800;color:#293b2d}.hero-highlight{color:#648751;position:relative}.hero-highlight:after{content:'';height:4px;background:#becfa6;position:absolute;bottom:0;left:0;right:0;border-radius:50%;transform:rotate(-2deg)}.hero p{color:#7d8a75;font-size:12px;line-height:1.9;margin-top:13px}.hero-actions{display:flex;align-items:center;gap:21px;margin-top:24px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:7px;padding:11px 19px;font-size:12px;font-weight:500;transition:background .2s,transform .2s}.button:hover{transform:translateY(-1px)}.button-dark{background:#2c3d2e;color:#f5f8f2;box-shadow:0 3px 5px #293b2d0c}.button-dark:hover{background:#40573b}.button-dark svg{width:14px;height:14px}.button-green{background:#e6efdf;color:#426337}.text-button{display:inline-flex;gap:8px;align-items:center;font-size:11px;background:none;color:#738268;padding:5px 0}.text-button:hover{color:#354d2d}.text-button svg{width:14px;height:14px}.hero-metrics{display:flex;align-items:center;gap:15px;margin-top:23px;font-size:10px;color:#8b9681}.hero-metrics strong{font-size:13px;color:#687e59;font-weight:600;margin-right:3px}.hero-metrics i{height:10px;width:1px;background:#cdd7c3}.hero-code-wrap{position:relative;z-index:1;width:42%;max-width:367px;margin:5px 5px 0 24px}.code-window{background:#fff;border-radius:10px;border:1px solid #e0e7dc;box-shadow:0 10px 25px #62785112;transform:rotate(-1.3deg);overflow:hidden}.code-window-head{height:40px;border-bottom:1px solid #edf0e9;display:flex;align-items:center;justify-content:space-between;padding:0 15px;font-size:10px;color:#9baba0;font-family:var(--mono)}.window-dots{display:flex;gap:5px}.window-dots i{width:6px;height:6px;border-radius:50%;background:#e4d8ce}.window-dots i:nth-child(2){background:#e4dfc8}.window-dots i:nth-child(3){background:#d0ddc8}.code-window-head svg{width:13px;height:13px;color:#b1bcb2}.code-lines{padding:19px 0 16px;font-size:11px;line-height:2;font-family:var(--mono);color:#586264;white-space:pre}.code-lines>div{display:flex}.code-lines b{font:10px/2.2 var(--mono);color:#b4bdb4;min-width:35px;text-align:right;margin-right:17px;user-select:none}.syntax-purple{color:#a37dba}.syntax-green{color:#7b9b57}.syntax-blue{color:#7093b4}.syntax-orange{color:#bc9866}.terminal-output{padding:13px 17px 15px;background:#f7f9f6;border-top:1px solid #edf0e9}.terminal-output>div{font-size:9px;color:#98a18f;display:flex;align-items:center;gap:6px;margin-bottom:9px}.terminal-output svg{width:11px;height:11px}.success-label{margin-left:auto;font-size:8px;color:#839875;display:flex;align-items:center;gap:4px}.success-label:before{content:'';height:4px;width:4px;background:#a1b890;border-radius:50%}.terminal-output code{font:11px var(--mono);color:#67795c}.cursor{display:inline-block;vertical-align:middle;width:5px;height:12px;background:#a3b88e;margin-left:4px;opacity:.65}.code-caption{font-size:9px;color:#879b76;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:13px;letter-spacing:1px}.code-caption svg{width:11px;height:11px}.floating-code{position:absolute;right:-21px;top:-32px;color:#a6bc8c;opacity:.4;font-size:53px;font-family:var(--mono);font-weight:500;transform:rotate(12deg);z-index:-1}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:27px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-heading h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.section-heading h2>span{font-size:8px;letter-spacing:1.4px;color:#a2aba2;margin-left:8px;font-weight:400;vertical-align:middle}.section-heading p{font-size:11px;color:#9ba399;margin-top:5px}.section-heading>.icon-button{border:1px solid #e7ece3;border-radius:6px;width:29px;height:29px;background:#fff}.section-heading>.icon-button svg{width:14px;height:14px}.filter-bar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:20px}.filter-tabs{display:flex;gap:5px;background:#edf0ec;padding:4px;border-radius:7px;flex-shrink:0}.filter{font-size:10px;padding:6px 10px;background:none;color:#8b9588;border-radius:5px;white-space:nowrap}.filter.active{background:#fff;box-shadow:0 1px 4px #3846340c;color:#52694a;font-weight:500}.search-field{display:flex;align-items:center;gap:6px;border:1px solid #e4e9e1;background:#fff;border-radius:7px;padding:8px 10px;max-width:147px;min-width:105px;color:#a6afa2}.search-field svg{width:13px;height:13px}.search-field input{min-width:0;width:100%;border:0;outline:none;background:transparent;font-size:10px;color:#4c5c45}.search-field input::placeholder{color:#a8afa4}.search-field:focus-within{outline:2px solid #a3ba92;outline-offset:2px}.stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.stage-card{background:#fff;border:1px solid #e5eae2;border-radius:10px;padding:19px 20px 14px;position:relative;transition:border-color .2s,box-shadow .2s}.stage-card:hover{border-color:#c5d7b8;box-shadow:0 4px 15px #4e6b3f07}.stage-card.first-stage{border-color:#bdcea9}.stage-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.stage-icon{display:grid;place-items:center;height:33px;width:33px;background:var(--stage-bg);border-radius:9px;color:var(--stage-fg)}.stage-icon svg{width:18px;height:18px}.stage-week{font-size:9px;color:#9aa493;background:#f7f9f5;border:1px solid #eff2eb;padding:3px 8px;border-radius:5px}.stage-kicker{font-size:8px;letter-spacing:1.5px;color:#9aa58f;font-family:var(--mono);margin-bottom:3px}.stage-title{font-size:16px;font-weight:600;margin-bottom:4px}.stage-description{font-size:10px;color:#929d8b;min-height:19px}.lesson-list{list-style:none;padding:0;margin:15px 0 13px;display:grid;gap:8px}.lesson-list li{display:flex;align-items:center;gap:8px;min-width:0}.lesson-status{height:13px;width:13px;flex:none;display:grid;place-items:center;border:1px solid #d6dfcd;border-radius:50%;color:#719a58;background:#fff}.lesson-status svg{width:9px;height:9px;stroke-width:2.4}.lesson-status.done{background:#7d9d65;border-color:#7d9d65;color:#fff}.lesson-link{display:flex;align-items:center;justify-content:space-between;text-align:left;background:none;padding:0;gap:3px;width:100%;color:#7e8b75;font-size:11px}.lesson-link:hover{color:#466531}.lesson-link svg{width:11px;height:11px;opacity:0;transition:opacity .2s}.lesson-link:hover svg{opacity:1}.stage-footer{border-top:1px solid #f0f3ed;display:flex;align-items:center;justify-content:space-between;padding-top:11px;font-size:9px;color:#a0a998}.stage-footer span{display:flex;align-items:center;gap:4px}.stage-footer svg{width:11px;height:11px}.stage-footer .stage-progress{color:#829871}.stage-expand{padding:0;background:none;font-size:10px;color:#7f9571;display:flex;align-items:center;gap:4px}.stage-expand svg{width:12px;height:12px}.stage-expand[aria-expanded=true] svg{transform:rotate(180deg)}.stage-more{display:none}.stage-card.expanded .stage-more{display:flex}.path-end{display:flex;justify-content:center;align-items:center;gap:8px;font-size:10px;color:#a0aa97;margin:25px 0 0}.path-end svg{width:13px;height:13px}.learning-aside{display:flex;flex-direction:column;gap:18px}.panel{background:#fff;border:1px solid #e4eae0;border-radius:10px;padding:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px}.panel-heading>span{color:#9da894}.panel-heading svg{width:15px;height:15px}.progress-panel{padding:19px 20px 16px}.progress-ring{--progress:0%;width:142px;height:142px;border-radius:50%;background:conic-gradient(#8eaf72 var(--progress),#f0f3eb 0);display:grid;place-items:center;position:relative;margin:20px auto 18px}.progress-ring:before{content:'';position:absolute;inset:9px;border-radius:50%;background:#fff}.progress-ring>div{text-align:center;z-index:1}.progress-ring strong{display:block;font-size:31px;font-weight:500;color:#405537;line-height:1.3;letter-spacing:-1px}.progress-ring strong>span{font-size:17px;margin-left:2px}.progress-ring small{font-size:8px;color:#a0aa96;display:block;margin-top:4px}.progress-summary{font-size:10px;color:#94a08b;display:flex;justify-content:space-between;align-items:center}.progress-summary strong{font-size:12px;font-weight:600;color:#5e7650}.progress-summary strong>span{font-size:10px;font-weight:400;color:#a9b09f}.mini-progress{height:4px;border-radius:4px;background:#f1f4ed;margin-top:9px;overflow:hidden}.mini-progress>span{display:block;width:0;height:100%;background:#a4bd8b;transition:width .35s}.progress-encouragement{text-align:center;font-size:9px;color:#a0aa96;margin-top:14px}.daily-panel{padding:19px 17px 13px}.today-label{font-size:9px;color:#a0a998}.daily-panel>p{font-size:9px;color:#9aa490;margin-top:9px;margin-bottom:15px}.goal-item{display:flex;gap:8px;align-items:center;margin-bottom:13px;font-size:10px;color:#839077;cursor:pointer}.goal-item input{appearance:none;height:13px;width:13px;border:1px solid #d9e1d1;border-radius:4px;background:#fff;flex:none;margin:0;cursor:pointer}.goal-item input:checked{background:#88a96c;border-color:#88a96c;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")}.goal-item:has(input:checked)>span{text-decoration:line-through;color:#a4af9b}.daily-footer{display:flex;justify-content:space-between;border-top:1px solid #eff3ea;padding-top:10px;margin-top:5px;font-size:8px;color:#9eac94}.daily-footer>span:last-child{color:#b0b9a7}.quiz-card{padding:20px 19px 17px;border-radius:10px;background:#eef2e9;border:1px solid #e5eadc}.quiz-kicker{display:flex;align-items:center;gap:4px;font-size:9px;color:#82966c}.quiz-kicker svg{width:12px;height:12px}.quiz-card h3{font-size:13px;font-weight:600;color:#566747;margin:10px 0}.quiz-card>code{display:block;font-size:11px;font-family:var(--mono);color:#7c9265;background:#e6ecdd;border:1px solid #dfe7d5;border-radius:5px;padding:9px 10px}.quiz-card p{font-size:10px;color:#98a28c;margin:10px 0 13px}.quiz-card>button{font-size:10px;background:#fff;border:1px solid #dee7d4;display:flex;align-items:center;justify-content:space-between;color:#768e60;width:100%;padding:9px 12px;border-radius:6px}.quiz-card>button:hover{background:#f7fbf3}.quiz-card>button svg{width:13px;height:13px}.local-note{display:flex;align-items:flex-start;justify-content:center;gap:5px;font-size:8px;color:#a1aa99;line-height:1.9;padding:0 10px}.local-note svg{width:12px;height:12px;margin-top:2px}.footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e5eae1;margin-top:33px;padding:22px 0;font-size:9px;color:#a7b09f}.footer b{font-size:10px;color:#8d9a83;font-weight:500}.footer>span:last-child{display:flex;align-items:center;gap:9px}.footer svg{width:13px;height:13px}
.practice-banner{display:flex;align-items:center;gap:20px;background:#eaf1e3;border:1px solid #dee8d3;padding:27px 28px;border-radius:12px;margin-bottom:28px}.practice-banner>span{background:#dce8d1;color:#6d8955;width:48px;height:48px;border-radius:12px;flex:none}.practice-banner>span svg{height:26px;width:26px}.practice-banner h2{font-size:18px;font-weight:600}.practice-banner p{font-size:13px;color:#7e8c75;margin-top:8px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column}.project-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.project-card-top>span:first-child{display:grid;place-items:center;width:38px;height:38px;background:#eef3e8;color:#76915f;border-radius:9px}.difficulty{font-size:11px;color:#91a181}.project-card h2{font-size:17px;margin-bottom:9px}.project-card p{font-size:13px;color:#8b9683;min-height:63px}.project-tags{display:flex;gap:5px;flex-wrap:wrap;margin:17px 0}.project-tags span{font-size:10px;background:#f3f6ef;color:#92a084;border-radius:4px;padding:3px 7px}.project-open{width:100%;border:1px solid #dfe7d6;background:#fafcf8;border-radius:6px;padding:8px;font-size:12px;color:#6d8656;margin-top:auto}.project-open:hover{background:#ebf2e3}.practice-test{margin-top:28px;display:flex;justify-content:space-between;align-items:center;gap:25px}.practice-test h2{font-size:20px;margin:3px 0 8px}.practice-test p{font-size:13px;color:#8b9584}.handbook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.reference-card{background:#fff;border:1px solid var(--line);padding:23px;border-radius:10px}.reference-card h2{font-size:17px;display:flex;align-items:center;gap:9px;margin-bottom:12px}.reference-card h2 svg{width:19px;height:19px;color:#82996d}.reference-card p{font-size:13px;color:#8a9682;margin-bottom:14px}.code-block{position:relative;background:#f3f6f0;border:1px solid #e6ece0;border-radius:8px;overflow:hidden;margin:17px 0}.code-block pre{margin:0;padding:21px 18px;overflow:auto;font:13px/1.9 var(--mono);color:#516547;tab-size:4;white-space:pre}.code-block-label{padding:8px 13px;border-bottom:1px solid #e5ebdd;color:#9aa48f;font:10px var(--mono)}.copy-code{position:absolute;right:7px;top:4px;font-size:10px;display:flex;align-items:center;gap:5px;background:#f3f6f0;color:#8a9c7a;padding:4px 6px;border-radius:4px}.copy-code svg{width:12px;height:12px}.reference-card table{border-collapse:collapse;width:100%;font-size:13px}.reference-card td{padding:9px 5px;border-bottom:1px solid #edf1e8;color:#88967d}.reference-card td:first-child{font-family:var(--mono);color:#567049;white-space:nowrap}.reference-note{font-size:12px!important;color:#9ba58e!important;margin-top:13px!important;line-height:1.8}.resource-intro{display:flex;gap:22px;padding:30px;margin-bottom:25px;background:#edf3e7}.resource-intro-icon{width:50px;height:50px;background:#e0ebd5;color:#729258;border-radius:12px;flex:none}.resource-intro-icon svg{width:26px;height:26px}.resource-intro h2{font-size:20px;margin-bottom:10px}.resource-intro p{font-size:13px;max-width:750px;line-height:1.9;color:#859478}.resource-intro .text-button{margin-top:12px;font-size:12px}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.resource-card{padding:23px}.resource-card>span{color:#809a69;margin-bottom:14px}.resource-card h2{font-size:16px;margin-bottom:10px}.resource-card p{font-size:13px;color:#919c87;line-height:1.9}.resource-card button{font-size:12px;margin-top:16px}.weekly-plan{margin-top:25px;padding:25px}.weekly-plan .section-heading h2{font-size:18px}.weekly-plan .section-heading p{font-size:12px}.weekly-plan .section-heading>span{color:#92a37f}.week-row{display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:15px;padding:14px 0;border-top:1px solid #edf1e7;font-size:13px}.week-row>span:first-child{color:#8da177;font-family:var(--mono);font-size:12px}.week-row p{font-size:11px;color:#99a48c;margin-top:2px}.week-row>span:last-child{font-size:11px;color:#8e9c82}.empty-state{text-align:center;padding:50px 20px;color:#93a084}.empty-state>span svg{width:32px;height:32px}.empty-state h3{font-size:16px;margin:13px 0 7px}.empty-state p{font-size:13px}.empty-state button{margin-top:12px}
dialog{color:var(--ink);border:1px solid #dbe5d2;border-radius:16px;box-shadow:0 25px 100px #2030202b;padding:0;width:min(720px,calc(100% - 32px));max-height:88vh;max-height:88dvh;background:#fff}dialog::backdrop{background:#25332260;backdrop-filter:blur(5px)}.dialog-top{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid #edf1e8;display:flex;align-items:center;justify-content:space-between;padding:15px 26px}.dialog-eyebrow{font-size:10px;letter-spacing:1.6px;color:#8c9b7e}#dialog-content{padding:25px 31px 30px}#dialog-content h2{font-size:25px;line-height:1.5;letter-spacing:-.5px;margin-bottom:8px}#dialog-content h3{font-size:16px;margin:23px 0 10px}#dialog-content p,#dialog-content li{font-size:14px;color:#7b8971;line-height:1.95}#dialog-content ol,#dialog-content ul{padding-left:22px;margin:9px 0 18px}.lesson-meta{display:flex;align-items:center;gap:12px;font-size:11px;color:#9aa68d;margin-bottom:21px}.lesson-meta span{display:flex;align-items:center;gap:4px}.lesson-meta svg{width:13px;height:13px}.lesson-callout{padding:15px 18px;border-left:3px solid #b7cd9b;background:#f1f6ec;border-radius:0 7px 7px 0;margin:20px 0}.lesson-callout p{font-size:13px!important;color:#8a9c7b!important}.lesson-actions{display:flex;gap:12px;margin-top:27px;padding-top:20px;border-top:1px solid #edf1e7}.lesson-actions .button{font-size:13px}.lesson-actions .button svg{height:15px;width:15px}.lesson-output{background:#fafbf8;border:1px dashed #dce5d3;border-radius:7px;padding:12px 16px;font:12px/1.8 var(--mono);color:#859673;white-space:pre-wrap}.lesson-subtitle{font-size:14px!important;color:#9ba78e!important;margin-bottom:16px}.quiz-progress{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#9aa88b;margin-bottom:18px}.quiz-question{font-size:20px!important;margin:10px 0 20px!important}.quiz-options{display:grid;gap:11px;margin:20px 0}.quiz-option{display:flex;align-items:center;gap:12px;background:#fafbf8;border:1px solid #e1e8d9;border-radius:8px;padding:13px 16px;font-size:14px;text-align:left;line-height:1.7;transition:background .2s,border-color .2s}.quiz-option>span{font:11px var(--mono);height:25px;width:25px;display:grid;place-items:center;border:1px solid #dfe8d5;border-radius:5px;color:#8a9c78;flex:none}.quiz-option:hover:not(:disabled){background:#f0f6e9;border-color:#b9cfa1}.quiz-option.correct{background:#edf6e5;border-color:#a9ca8c}.quiz-option.incorrect{background:#fff2ed;border-color:#e2b4a0}.quiz-feedback{border-radius:8px;background:#f1f6eb;border:1px solid #dce9d0;padding:14px 17px;margin-top:17px}.quiz-feedback h3{margin:0 0 5px!important;font-size:14px!important;color:#6e8c55}.quiz-feedback p{font-size:13px!important}.quiz-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px}.quiz-result{text-align:center;padding:20px 10px}.result-icon{display:grid!important;place-items:center;border-radius:50%;height:70px;width:70px;background:#edf5e4;color:#8baa6b;margin:0 auto 20px}.result-icon svg{width:34px;height:34px}.result-score{font-size:46px;color:#6d8d52;font-weight:600;margin:12px 0}.result-score>span{font-size:21px;color:#a9b89a}.quiz-result .button{margin-top:23px}.danger-button{background:#fff1ed;color:#b17a68;border:1px solid #eddbd4}.settings-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.toast{position:fixed;left:calc(50% + 110px);bottom:30px;transform:translate(-50%,20px);padding:11px 20px;border-radius:8px;background:#30472c;color:#f5faee;font-size:13px;box-shadow:0 5px 20px #2d42242b;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 30px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
/* Comfortable reading at ordinary desktop sizes. */
@media(min-width:1550px){:root{--sidebar:254px}.topbar{padding-left:52px;padding-right:52px}main{padding-left:52px;padding-right:52px}.hero{min-height:370px;padding:39px 45px}.hero h2{font-size:38px}.hero p{font-size:14px}.hero-kicker{font-size:12px}.hero-code-wrap{max-width:400px}.code-lines{font-size:13px}.code-window-head{height:45px}.terminal-output code{font-size:13px}.content-layout{grid-template-columns:minmax(0,1fr) 290px;gap:30px}.stage-card{padding:24px 24px 17px}.stage-title{font-size:19px}.stage-description{font-size:12px}.lesson-link{font-size:13px}.lesson-list{gap:10px;margin-top:20px;margin-bottom:18px}.stage-week{font-size:11px}.stage-kicker{font-size:10px}.stage-footer{font-size:11px}.stage-grid{gap:22px}.hero-metrics{font-size:12px}.hero-metrics strong{font-size:15px}.filter{font-size:12px}.search-field{max-width:180px}.search-field input{font-size:12px}.section-heading h2{font-size:20px}.section-heading p{font-size:13px}.section-heading h2>span{font-size:9px}.panel-heading h2{font-size:15px}.progress-ring{width:155px;height:155px}.progress-summary{font-size:12px}.progress-encouragement{font-size:11px}.daily-panel>p,.goal-item,.quiz-card p,.quiz-card>button{font-size:12px}.quiz-card h3{font-size:15px}.quiz-card>code{font-size:13px}.quiz-kicker{font-size:11px}.daily-footer{font-size:10px}.local-note{font-size:10px}.progress-ring small{font-size:10px}.footer{font-size:11px}.page-heading p{font-size:14px}.page-heading h1{font-size:32px}.button{font-size:14px}.text-button{font-size:12px}.eyebrow{font-size:11px}.nav-item{font-size:16px}.sidebar-bottom strong{font-size:12px}.sidebar-bottom div>span{font-size:11px}.brand small{font-size:12px}.topbar{font-size:13px}.guide-button{font-size:13px}.topbar-motto{font-size:12px}.note-code{font-size:11px}}
@media(max-width:1200px){:root{--sidebar:210px}.sidebar{padding-left:16px;padding-right:16px}.nav-item.active:before{left:-16px}.sidebar-bottom{margin:0 -16px;padding-left:12px;padding-right:12px}.sidebar-bottom strong{font-size:10px}.sidebar-bottom div>span{font-size:9px}.brand{font-size:21px;padding-left:0}.brand-symbol{width:40px;height:42px;font-size:32px}.brand small{font-size:10px}.topbar{padding:0 28px}main{padding:29px 28px 0}.hero{padding:28px;min-height:322px}.hero h2{font-size:29px}.hero-actions{gap:15px}.hero-code-wrap{width:43%;margin-left:15px;margin-right:0}.code-lines{font-size:10px}.code-lines b{min-width:25px;margin-right:12px}.content-layout{grid-template-columns:minmax(0,1fr) 235px;gap:20px}.stage-card{padding:17px 15px 13px}.filter-tabs{gap:0}.filter{padding:6px 8px}.search-field{max-width:120px}.section-heading h2>span{display:none}.stage-title{font-size:15px}.panel{padding:17px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1020px){:root{--sidebar:190px}.brand{gap:9px}.sidebar-note{padding:17px 12px}.note-code{font-size:9px}.sidebar-bottom .icon-button{display:none}.content-layout{grid-template-columns:minmax(0,1fr)}.learning-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:8px}.learning-aside .local-note{grid-column:1/-1}.progress-ring{height:115px;width:115px;margin-top:16px;margin-bottom:16px}.progress-ring:before{inset:7px}.progress-ring strong{font-size:26px}.progress-ring small{font-size:7px}.daily-panel>p{font-size:8px}.goal-item{font-size:9px;gap:5px}.quiz-card{padding:18px 15px}.quiz-card>code{font-size:9px;padding:9px 6px}.quiz-card h3{font-size:12px}.panel-heading h2{font-size:11px}.daily-footer{font-size:7px}.today-label{font-size:8px}.hero-code-wrap{width:42%}.hero h2{font-size:27px}.hero-actions{gap:14px}.hero-actions .button{padding:10px 15px;font-size:11px}.hero-actions .text-button{font-size:9px}.hero-metrics{gap:10px}.hero-metrics>span{font-size:8px}.hero-metrics strong{font-size:11px}.handbook-grid{gap:16px}.reference-card{padding:19px}.reference-card pre{font-size:11px}.footer{font-size:8px}}
@media(max-width:780px){:root{--sidebar:0px}.sidebar{width:238px;transform:translateX(-100%);transition:transform .2s;padding-top:30px}.sidebar.open{transform:translateX(0)}.sidebar .brand{font-size:23px}.sidebar .nav-item{font-size:14px}.sidebar .sidebar-bottom strong{font-size:12px}.sidebar .sidebar-bottom div>span{font-size:10px}.sidebar .sidebar-bottom .icon-button{display:flex}.sidebar .note-code{font-size:10px}.mobile-menu{display:inline-flex;margin-left:-8px}.topbar{height:65px;padding:0 24px}.topbar-motto,.breadcrumb-home{display:none!important}.topbar-right{gap:0}.topbar-divider{display:none}.breadcrumb{gap:9px;font-size:11px}.guide-button{font-size:11px}main{padding:25px 24px 0}.hero{padding:27px 25px}.hero h2{font-size:29px}.hero-copy{flex:1}.hero-code-wrap{width:42%}.hero-kicker{font-size:9px}.hero p{font-size:11px}.hero-actions .text-button{font-size:10px}.hero-metrics>span{font-size:9px}.menu-overlay{position:fixed;inset:0;background:#22301d55;backdrop-filter:blur(3px);z-index:25}.page-heading{margin-bottom:22px}.page-heading p{font-size:11px}.toast{left:50%}.beginner-badge{font-size:10px}.footer{font-size:9px}.brand small{font-size:11px}}
@media(max-width:600px){body{font-size:16px}.topbar{padding:0 19px}main{padding:24px 18px 0}.page-heading h1{font-size:27px}.eyebrow{font-size:8px;letter-spacing:1.2px}.beginner-badge{align-self:flex-start;font-size:9px;padding:5px 9px;margin-top:17px}.page-heading p{font-size:10px;max-width:240px;line-height:1.9}.hero{display:block;padding:26px 24px 20px;min-height:0;margin-bottom:28px}.hero-copy{padding-right:0}.hero-kicker{font-size:9px;margin-bottom:12px}.hero h2{font-size:31px;line-height:1.5}.hero p{font-size:12px;line-height:1.95;margin-top:14px}.hero-actions{gap:23px;margin-top:21px}.hero-actions .button{font-size:12px;padding:11px 20px}.hero-actions .text-button{font-size:10px}.hero-metrics{gap:14px;margin-top:20px}.hero-metrics>span{font-size:9px}.hero-metrics strong{font-size:13px}.hero-code-wrap{width:100%;max-width:100%;margin:26px 0 0;padding:0 8px}.code-window{transform:rotate(-.6deg)}.code-window-head{height:36px;font-size:9px}.code-lines{font-size:11px;line-height:1.9;padding:13px 0}.code-lines b{font-size:10px;line-height:2.1;margin-right:17px;min-width:30px}.terminal-output{padding:10px 15px 13px}.code-caption{margin-top:12px;font-size:8px}.floating-code{font-size:37px;top:-21px;right:-2px}.stage-grid{grid-template-columns:1fr;gap:15px}.stage-card{padding:20px 22px 16px}.stage-card-top{margin-bottom:12px}.stage-title{font-size:18px}.stage-description{font-size:12px}.stage-kicker{font-size:10px}.stage-week{font-size:11px}.stage-icon{width:37px;height:37px}.stage-icon svg{width:20px;height:20px}.lesson-link{font-size:13px}.lesson-list{gap:12px;margin:20px 0 18px}.lesson-list li{gap:10px}.lesson-status{width:15px;height:15px}.stage-footer{font-size:11px}.stage-expand{font-size:11px}.stage-footer svg{width:13px;height:13px}.lesson-link svg{opacity:.5}.filter-bar{flex-wrap:wrap;gap:12px}.filter-tabs{flex:1;justify-content:space-between;padding:4px}.filter{font-size:11px;padding:7px 10px;flex:1}.search-field{max-width:none;width:100%;padding:10px 12px}.search-field input{font-size:12px}.section-heading{margin-bottom:17px}.section-heading h2{font-size:18px}.section-heading p{font-size:11px;margin-top:6px}.learning-aside{grid-template-columns:1fr;margin-top:12px;gap:17px}.panel-heading h2{font-size:15px}.progress-panel{padding:22px}.progress-ring{width:142px;height:142px}.progress-ring strong{font-size:31px}.progress-ring small{font-size:10px}.progress-summary{font-size:12px}.progress-encouragement{font-size:11px}.daily-panel{padding:22px}.daily-panel>p{font-size:12px;margin-bottom:20px}.goal-item{font-size:13px;gap:10px;margin-bottom:18px}.goal-item input{height:17px;width:17px}.daily-footer{font-size:10px;padding-top:13px}.today-label{font-size:11px}.quiz-card{padding:22px}.quiz-kicker{font-size:11px}.quiz-card h3{font-size:16px}.quiz-card>code{font-size:14px;padding:12px}.quiz-card p{font-size:12px}.quiz-card>button{font-size:13px;padding:11px 13px}.local-note{font-size:10px}.path-end{font-size:9px;margin:23px 0 7px;gap:6px}.footer{display:block;text-align:center;font-size:9px;line-height:1.9;padding:20px 0}.footer>span:last-child{justify-content:center;margin-top:4px}.practice-banner{padding:21px;align-items:flex-start;gap:13px}.practice-banner>span{width:34px;height:34px;border-radius:8px}.practice-banner>span svg{width:21px;height:21px}.practice-banner h2{font-size:16px}.practice-banner p{font-size:12px;line-height:1.9}.project-grid,.handbook-grid,.resource-grid{grid-template-columns:1fr;gap:16px}.project-card{padding:23px}.project-card p{min-height:0;font-size:14px}.practice-test{align-items:flex-start;flex-direction:column;gap:18px;padding:24px}.practice-test h2{font-size:19px}.practice-test .button{font-size:13px}.reference-card{padding:22px}.reference-card pre{font-size:12px}.reference-card h2{font-size:18px}.resource-intro{padding:23px;gap:14px}.resource-intro-icon{width:35px;height:35px;border-radius:8px}.resource-intro-icon svg{width:22px;height:22px}.resource-intro h2{font-size:17px}.resource-intro p{font-size:12px}.resource-card{padding:23px}.weekly-plan{padding:22px}.weekly-plan .section-heading h2{font-size:17px}.weekly-plan .section-heading p{font-size:11px;line-height:1.9}.week-row{grid-template-columns:63px 1fr;gap:10px}.week-row>span:last-child{display:none}.week-row{font-size:12px}.week-row>span:first-child{font-size:11px}.week-row p{font-size:10px}.dialog-top{padding:12px 20px}#dialog-content{padding:22px 22px 26px}#dialog-content h2{font-size:22px}#dialog-content p,#dialog-content li{font-size:13px}.code-block pre{font-size:11px;padding:18px 13px}.lesson-actions{flex-wrap:wrap}.quiz-option{font-size:13px;padding:12px}.quiz-question{font-size:18px!important}.quiz-controls .button{font-size:12px}.quiz-controls .text-button{font-size:11px}}
/* Keep real content readable; secondary metadata never shrinks into microtype. */
.brand small{font-size:.75rem;letter-spacing:.7px}.sidebar-label{font-size:.75rem}.nav-item{font-size:.875rem}.nav-tag{font-size:.75rem}.sidebar-note p{font-size:.875rem}.note-code{font-size:.6875rem}.sidebar-bottom strong{font-size:.75rem}.sidebar-bottom div>span{font-size:.75rem}.topbar,.guide-button{font-size:.8125rem}.topbar-motto{font-size:.75rem}.eyebrow{font-size:.75rem;letter-spacing:1.2px}.page-heading p{font-size:.875rem}.beginner-badge{font-size:.75rem}.hero-kicker{font-size:.75rem}.hero p{font-size:1rem;line-height:1.85}.hero-actions .button,.button{font-size:.875rem}.text-button,.hero-actions .text-button{font-size:.8125rem}.hero-metrics,.hero-metrics>span{font-size:.75rem}.hero-metrics strong{font-size:.9375rem}.code-window-head{font-size:.75rem}.code-lines{font-size:.75rem}.code-lines b{font-size:.75rem;line-height:2}.terminal-output>div{font-size:.75rem}.terminal-output code{font-size:.8125rem}.success-label,.code-caption{font-size:.6875rem}.section-heading p{font-size:.8125rem}.section-heading h2>span{font-size:.625rem;letter-spacing:1px}.filter{font-size:.75rem;padding:6px 9px}.search-field input{font-size:.75rem}.stage-kicker,.stage-week,.stage-footer,.stage-expand{font-size:.75rem}.stage-title{font-size:1.0625rem}.stage-description{font-size:.8125rem}.lesson-link{font-size:.875rem}.lesson-list{gap:10px}.stage-footer{flex-wrap:wrap;gap:7px}.stage-week{padding:3px 6px}.panel-heading h2{font-size:.875rem}.progress-ring small{font-size:.6875rem}.progress-summary,.progress-summary strong>span,.progress-encouragement{font-size:.75rem}.progress-summary strong{font-size:.875rem}.daily-panel>p{font-size:.75rem}.today-label{font-size:.75rem}.goal-item{font-size:.8125rem;line-height:1.7}.daily-footer{font-size:.6875rem;gap:6px;flex-wrap:wrap}.quiz-kicker,.quiz-card p,.quiz-card>button{font-size:.75rem}.quiz-card h3{font-size:.9375rem}.quiz-card>code{font-size:.75rem}.local-note{font-size:.6875rem}.path-end{font-size:.75rem}.footer,.footer b{font-size:.75rem}.project-card p,.practice-banner p,.resource-intro p,.reference-card p,.resource-card p{font-size:.9375rem}.project-tags span,.difficulty{font-size:.75rem}.project-open{font-size:.875rem}.practice-test p{font-size:.875rem}.code-block-label,.copy-code{font-size:.75rem}.reference-card table{font-size:.875rem}.week-row{font-size:.875rem}.week-row p,.week-row>span:first-child,.week-row>span:last-child{font-size:.75rem}.dialog-eyebrow,.lesson-meta,.quiz-progress{font-size:.75rem}#dialog-content p,#dialog-content li{font-size:.9375rem}.quiz-feedback p{font-size:.875rem!important}.quiz-option{font-size:.9375rem}.lesson-subtitle{font-size:.9375rem!important}.stage-card-top{gap:7px}
@media(min-width:1021px) and (max-width:1200px){.filter-bar{flex-wrap:wrap}.search-field{max-width:none;flex:1;min-width:100%}.hero-actions{gap:12px;flex-wrap:wrap}.hero-code-wrap{width:44%}.hero h2{font-size:30px}.hero-copy{max-width:51%}.hero-metrics{gap:8px;flex-wrap:wrap}.stage-description{min-height:40px}.daily-panel{padding:16px 14px}.goal-item{font-size:.75rem}.daily-panel>p{font-size:.6875rem}}
@media(min-width:781px) and (max-width:1020px){.hero h2{font-size:29px}.hero p{font-size:.875rem}.hero-kicker{font-size:.6875rem}.hero-actions{flex-wrap:wrap;gap:10px}.hero-actions .button{font-size:.8125rem}.hero-actions .text-button{font-size:.75rem}.hero-metrics{gap:8px;flex-wrap:wrap}.code-lines{font-size:.625rem}.code-lines b{font-size:.6875rem}.code-window-head{font-size:.625rem}.learning-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-card{grid-column:1/-1}.quiz-card>code{font-size:.875rem}.progress-ring small{font-size:.625rem}.hero-code-wrap{width:43%}.brand small{font-size:.625rem}.note-code{font-size:.5625rem}.sidebar-bottom strong{font-size:.625rem}.sidebar-bottom div>span{font-size:.625rem}}
@media(max-width:780px){.hero p{font-size:.875rem}.hero h2{font-size:30px}.hero-kicker{font-size:.6875rem}.hero-actions{flex-wrap:wrap;gap:12px}.hero-actions .button{font-size:.8125rem}.hero-actions .text-button{font-size:.75rem}.hero-metrics{flex-wrap:wrap;gap:10px}.hero-metrics,.hero-metrics>span{font-size:.6875rem}.hero-code-wrap{width:43%}.code-lines{font-size:.6875rem}.code-lines b{font-size:.6875rem}.code-window-head{font-size:.6875rem}.eyebrow{font-size:.625rem}.page-heading p{font-size:.8125rem}.beginner-badge{font-size:.6875rem}.footer{font-size:.6875rem}}
@media(max-width:600px){.hero-code-wrap{width:100%}.hero-kicker{font-size:.6875rem}.hero-actions{gap:18px}.hero-metrics,.hero-metrics>span{font-size:.6875rem}.hero h2{font-size:32px}.hero p{font-size:1rem}.hero-actions .button{font-size:.875rem}.hero-actions .text-button{font-size:.75rem}.hero-metrics strong{font-size:.875rem}.code-lines{font-size:.8125rem}.code-lines b{font-size:.75rem}.code-window-head{font-size:.75rem}.code-caption{font-size:.6875rem}.filter{font-size:.8125rem}.stage-title{font-size:1.125rem}.stage-description{font-size:.875rem}.lesson-link{font-size:.9375rem}.stage-footer,.stage-expand{font-size:.75rem}.panel-heading h2{font-size:1rem}.goal-item{font-size:.875rem}.daily-panel>p,.quiz-card p,.quiz-card>button{font-size:.8125rem}.daily-footer{font-size:.75rem}.quiz-card h3{font-size:1rem}.quiz-card>code{font-size:.875rem}.local-note{font-size:.75rem}.path-end{font-size:.6875rem}.project-card p,.practice-banner p,.resource-intro p,.reference-card p,.resource-card p{font-size:.875rem}.week-row{font-size:.8125rem}.week-row p{font-size:.75rem}.quiz-option{font-size:.875rem}#dialog-content p,#dialog-content li{font-size:.875rem}.code-block pre{font-size:.75rem}.lesson-actions .button{font-size:.8125rem}}
.lesson-list .stage-more{display:none}.stage-card.expanded .lesson-list .stage-more{display:flex}.sidebar{overflow-y:auto}.sidebar-bottom{margin-top:auto;flex-shrink:0}.sidebar-note{flex-shrink:0}.stage-card:has(+.empty-state){margin-bottom:0}
@media(max-height:780px){.sidebar-note{display:none}.sidebar-label{margin-top:34px}}
.page-heading p,.stage-description,.section-heading p,.sidebar-note p,.practice-banner p,.project-card p,.practice-test p,.reference-card p,.resource-intro p,.resource-card p,.week-row p{color:#717d68}.hero p{color:#65765b}.hero-kicker,.text-button,.hero-actions .text-button{color:#617753}.lesson-link{color:#687b59}.stage-week,.stage-kicker,.stage-footer,.stage-expand{color:#748568}.progress-summary,.progress-encouragement,.progress-ring small,.daily-panel>p,.goal-item,.daily-footer,.today-label,.quiz-card p,.quiz-kicker,.local-note,.path-end{color:#738467}.quiz-card h3{color:#4d633e}.quiz-card>code{color:#607c48}.quiz-card>button{color:#617c4b}.breadcrumb-parent,.topbar-motto,.guide-button{color:#74806d}.footer,.footer b{color:#7a8771}.reference-card td,.reference-note,.week-row>span:last-child{color:#718365!important}.lesson-meta,.quiz-progress{color:#788a6b}#dialog-content p,#dialog-content li{color:#687c59}.lesson-callout p{color:#6b805b!important}.dialog-eyebrow{color:#758a67}.note-code{color:#75886a}.sidebar-bottom div>span{color:#7d8b72}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* ==== 2026-11-22 · 路线页增强 + 深色模式 ==== */
.theme-toggle{width:30px;height:30px;color:#89928d}
.theme-toggle svg{width:16px;height:16px}
.continue-card{display:flex;align-items:center;gap:26px;flex-wrap:wrap;background:#fff;border:1px solid #dce7d5;border-radius:12px;padding:18px 22px;margin:0 0 14px;box-shadow:0 2px 10px #4e6b3f08}
.continue-main{min-width:220px;flex:1}
.continue-kicker{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#82967a}
.continue-kicker:before{content:'';width:5px;height:5px;border-radius:50%;background:#95b47c}
.continue-title{font-size:19px;font-weight:700;margin:6px 0 5px;color:#293b2d;letter-spacing:.3px}
.continue-meta{display:flex;align-items:center;gap:7px;font-size:11px;color:#8b9681;flex-wrap:wrap}
.continue-meta i{width:1px;height:9px;background:#d7e0cf}
.continue-meta svg{width:12px;height:12px}
.continue-stats{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.continue-stat{display:flex;flex-direction:column;gap:1px}
.continue-stat strong{font-size:16px;font-weight:600;color:#4c7957;letter-spacing:-.2px}
.continue-stat small{font-size:9px;color:#98a292;letter-spacing:.3px}
.stage-meter{height:4px;border-radius:4px;background:#eef2ea;overflow:hidden;margin:0 0 10px}
.stage-meter>span{display:block;height:100%;background:linear-gradient(90deg,#a9c48c,#7fa562);border-radius:4px;transition:width .35s}
.stage-card.is-done{border-color:#b9d3a2;box-shadow:inset 0 0 0 1px #e3efd7}
.stage-done{margin-left:8px;padding:1px 7px;border-radius:20px;background:#e8f2df;color:#5b7b45;font-size:9px;letter-spacing:.4px;font-weight:500;text-transform:none}
.stage-footer{align-items:center}
.stage-time{display:flex;align-items:center;gap:4px;color:#a6af9f;margin-left:auto;margin-right:10px}
.stage-footer .stage-expand{margin-left:0}
mark.search-hit{background:#f5e5a6;color:#4c4a1f;border-radius:3px;padding:0 2px}
/* 深色模式 */
:root[data-theme="dark"]{--bg:#12161a;--white:#1a2027;--ink:#e4eae5;--muted:#94a0a4;--line:#2a333c;--green:#8fbf82;--mint:#1e2b22;color-scheme:dark}
[data-theme="dark"] body{background:#12161a;color:#e4eae5}
[data-theme="dark"] .sidebar{background:#151b21;border-right-color:#242d35}
[data-theme="dark"] .brand,[data-theme="dark"] .stage-title,[data-theme="dark"] .continue-title,[data-theme="dark"] .hero h2,[data-theme="dark"] .section-heading h2,[data-theme="dark"] .page-heading h1{color:#e8eee9}
[data-theme="dark"] .nav-item{color:#a3b0b6}
[data-theme="dark"] .nav-item:hover{background:#1e262e}
[data-theme="dark"] .nav-item.active{background:#1f2b23;color:#a9d199}
[data-theme="dark"] .topbar{background:rgba(18,22,26,.82);border-bottom-color:#242d35;color:#a6b3b8}
[data-theme="dark"] .sidebar-note{background:linear-gradient(140deg,#1b242b,#182028);border-color:#26313a}
[data-theme="dark"] .sidebar-bottom{border-top-color:#242d35}
[data-theme="dark"] .hero{background:#1a2526;border-color:#26332c;background-image:radial-gradient(ellipse at 94% 28%,#20302a 0,transparent 56%)}
[data-theme="dark"] .hero p{color:#9fada6}
[data-theme="dark"] .hero-kicker{color:#86a17d}
[data-theme="dark"] .hero-metrics{color:#8b968f}
[data-theme="dark"] .code-window{background:#1c242b;border-color:#2b363f;box-shadow:0 10px 25px #0006}
[data-theme="dark"] .code-window-head{border-bottom-color:#27313a;color:#8d9aa1}
[data-theme="dark"] .terminal-output{background:#161d23;border-top-color:#27313a}
[data-theme="dark"] .terminal-output code{color:#a8c39a}
[data-theme="dark"] .stage-card,[data-theme="dark"] .panel,[data-theme="dark"] .project-card,[data-theme="dark"] .reference-card,[data-theme="dark"] .exam-question-card,[data-theme="dark"] .continue-card,[data-theme="dark"] .semester-notice,[data-theme="dark"] dialog,[data-theme="dark"] .video-card,[data-theme="dark"] .lesson-college-support{background:#1a2129;border-color:#2a333c}
[data-theme="dark"] .stage-card:hover{border-color:#3a4b3c;box-shadow:0 4px 15px #0004}
[data-theme="dark"] .stage-footer{border-top-color:#242d35;color:#8b979d}
[data-theme="dark"] .stage-meter{background:#232c34}
[data-theme="dark"] .stage-week{background:#232c34;color:#93a09f}
[data-theme="dark"] .stage-description,[data-theme="dark"] .lesson-link,[data-theme="dark"] .page-heading p,[data-theme="dark"] .section-heading p{color:#9aa7ab}
[data-theme="dark"] .lesson-link:hover{color:#a9d199}
[data-theme="dark"] .lesson-status{border-color:#333e47;background:#1e262e}
[data-theme="dark"] .lesson-status.done{background:#25382a;border-color:#3c5a3f;color:#a9d199}
[data-theme="dark"] .filter-tabs{background:#1b232a}
[data-theme="dark"] .filter{color:#94a0a4}
[data-theme="dark"] .filter.active{background:#26333c;color:#cfe0c6}
[data-theme="dark"] .search-field{background:#1a2129;border-color:#2b343d;color:#8b979d}
[data-theme="dark"] .search-field input{color:#dfe7e2;background:transparent}
[data-theme="dark"] .quiz-card{background:#1d2622;border-color:#2b3a2e}
[data-theme="dark"] .quiz-card>code{background:#161d23;color:#a8c39a}
[data-theme="dark"] .progress-ring{background:conic-gradient(#7fa562 var(--progress),#252e36 0)}
[data-theme="dark"] .progress-ring:before{background:#1a2129}
[data-theme="dark"] .progress-ring strong{color:#cfe0c6}
[data-theme="dark"] .mini-progress{background:#252e36}
[data-theme="dark"] .local-note{background:#1b232a;border-color:#2a333c;color:#93a09f}
[data-theme="dark"] .code-block{background:#151d23;border-color:#27313a}
[data-theme="dark"] .code-block-label{color:#8d9aa1}
[data-theme="dark"] .code-block pre code{color:#d3e2d6}
[data-theme="dark"] .copy-code{background:#232d35;color:#a6b8ad;border-color:#2f3a43}
[data-theme="dark"] .lesson-output{background:#161d23;border-color:#2f3a43;color:#a8c39a}
[data-theme="dark"] .lesson-callout{background:#1d2a22;border-left-color:#6f9358;color:#c3d3c6}
[data-theme="dark"] .dialog-top{border-bottom-color:#253039}
[data-theme="dark"] .quiz-option{background:#1e262e;border-color:#2c3640;color:#d9e3dc}
[data-theme="dark"] .quiz-option:hover:not(:disabled){background:#243039;border-color:#3b4a54}
[data-theme="dark"] .quiz-option.correct{background:#20331f;border-color:#4d7b45;color:#c8e6bd}
[data-theme="dark"] .quiz-option.incorrect{background:#33211f;border-color:#7b4640;color:#f0c3bb}
[data-theme="dark"] .button-dark{background:#cfe0c6;color:#16211a}
[data-theme="dark"] .button-dark:hover{background:#e2efd7}
[data-theme="dark"] .button-green{background:#243427;color:#a9d199}
[data-theme="dark"] .text-button{color:#9fb0a5}
[data-theme="dark"] .text-button:hover{color:#cfe0c6}
[data-theme="dark"] .beginner-badge{background:#1e2a24;border-color:#2d3c31;color:#a9c9a0}
[data-theme="dark"] .exam-banner,[data-theme="dark"] .video-intro{background:#1b2620;border-color:#2a3a2e}
[data-theme="dark"] .exam-filter{background:#1a2129;border-color:#2a333c;color:#94a0a4}
[data-theme="dark"] .exam-filter.active{background:#25332b;color:#bcd8b2}
[data-theme="dark"] .plan-switch{background:#1b232a}
[data-theme="dark"] .plan-switch button.active{background:#26333c;color:#cfe0c6}
[data-theme="dark"] .grade-panel input[type=number],[data-theme="dark"] .exam-text-answer{background:#1a2129;border-color:#2b343d;color:#dfe7e2}
[data-theme="dark"] .grade-result{background:#1b2620;border-color:#2a3a2e}
[data-theme="dark"] .project-tags span,[data-theme="dark"] .video-tag{background:#232d35;color:#9fb4a6}
[data-theme="dark"] .project-open,[data-theme="dark"] .question-open,[data-theme="dark"] .video-link{background:#202a32;border-color:#2d3943;color:#b6c6ba}
[data-theme="dark"] .footer{border-top-color:#242d35;color:#8b979d}
[data-theme="dark"] .toast{background:#26313a;color:#e4eae5}
[data-theme="dark"] .semester-notice strong,[data-theme="dark"] .exam-banner h2{color:#e4eae5}
[data-theme="dark"] .wrong-filter,[data-theme="dark"] .exam-stats strong{color:#e4eae5}
[data-theme="dark"] table td,[data-theme="dark"] th{border-color:#2a333c}
[data-theme="dark"] .skip-link{background:#cfe0c6;color:#12161a}
.stage-footer{color:#98a292}
.stage-footer>span:first-child{color:#8b978d;font-weight:500}
.stage-expand{display:inline-flex;align-items:center;gap:3px;font-size:10px;color:#8fa07f;background:none;padding:2px 0 2px 6px;border-radius:4px;transition:color .2s}
.stage-expand:hover{color:#4c7957;text-decoration:underline}
.stage-expand svg{width:11px;height:11px}
.continue-stats{padding-left:22px;border-left:1px solid #eaf0e4}
.continue-stat{padding-right:20px;border-right:1px solid #eef3e9}
.continue-stat:last-child{padding-right:22px;border-right:0}
[data-theme="dark"] .continue-stats{border-left-color:#26313a}
[data-theme="dark"] .continue-stat{border-right-color:#26313a}
[data-theme="dark"] .stage-expand{color:#93a89a}
[data-theme="dark"] .stage-expand:hover{color:#cfe0c6}
[data-theme="dark"] .stage-footer>span:first-child{color:#93a09f}
[data-theme="dark"] .brand small,[data-theme="dark"] .sidebar-label,[data-theme="dark"] .sidebar-note p,[data-theme="dark"] .sidebar-bottom div>span,[data-theme="dark"] .breadcrumb-home,[data-theme="dark"] .breadcrumb-parent,[data-theme="dark"] .topbar-motto,[data-theme="dark"] .guide-button,[data-theme="dark"] .eyebrow,[data-theme="dark"] .page-heading p,[data-theme="dark"] .section-heading p,[data-theme="dark"] .stage-kicker,[data-theme="dark"] .stage-description,[data-theme="dark"] .stage-time,[data-theme="dark"] .stage-footer,[data-theme="dark"] .path-end,[data-theme="dark"] .daily-panel>p,[data-theme="dark"] .goal-item,[data-theme="dark"] .daily-footer,[data-theme="dark"] .today-label,[data-theme="dark"] .progress-summary,[data-theme="dark"] .progress-encouragement,[data-theme="dark"] .progress-ring small,[data-theme="dark"] .local-note,[data-theme="dark"] .footer,[data-theme="dark"] .footer b,[data-theme="dark"] .continue-kicker,[data-theme="dark"] .continue-meta,[data-theme="dark"] .continue-stat small,[data-theme="dark"] .project-card p,[data-theme="dark"] .practice-test p,[data-theme="dark"] .reference-card p,[data-theme="dark"] .reference-card td,[data-theme="dark"] .reference-note,[data-theme="dark"] .resource-card p,[data-theme="dark"] .week-row p,[data-theme="dark"] .empty-state,[data-theme="dark"] .lesson-meta,[data-theme="dark"] .lesson-subtitle,[data-theme="dark"] .quiz-progress,[data-theme="dark"] .dialog-eyebrow,[data-theme="dark"] .lesson-callout p,[data-theme="dark"] .exam-question-card p,[data-theme="dark"] .exam-banner p,[data-theme="dark"] .exam-disclaimer,[data-theme="dark"] .grade-disclaimer,[data-theme="dark"] .video-card p,[data-theme="dark"] .video-source-note,[data-theme="dark"] .video-topic p,[data-theme="dark"] .video-topic small,[data-theme="dark"] .video-intro p,[data-theme="dark"] .semester-notice p,[data-theme="dark"] .theme-toggle,[data-theme="dark"] .icon-button{color:#9dabb1}
[data-theme="dark"] .stage-week,[data-theme="dark"] .difficulty,[data-theme="dark"] .project-tags span,[data-theme="dark"] .video-tag{color:#a9b8b0}
[data-theme="dark"] .hero p,[data-theme="dark"] .hero-metrics,[data-theme="dark"] .hero-kicker,[data-theme="dark"] .hero-metrics strong{color:#9caea1}
[data-theme="dark"] .text-button{color:#a4b8a7}
[data-theme="dark"] .sidebar-note .note-code,[data-theme="dark"] .note-code{color:#94ad93}
[data-theme="dark"] .lesson-link{color:#b3c2b7}
[data-theme="dark"] .progress-summary strong,[data-theme="dark"] .daily-count{color:#cfe0c6}
[data-theme="dark"] .code-lines{color:#c3d0c8}
[data-theme="dark"] .code-lines b{color:#5d6b71}
[data-theme="dark"] .syntax-purple{color:#c39ad8}
[data-theme="dark"] .syntax-green{color:#a3c47d}
[data-theme="dark"] .syntax-blue{color:#8fb6d9}
[data-theme="dark"] .syntax-orange{color:#dcb37f}
[data-theme="dark"] .quiz-card>button{background:#212c30;border-color:#31403a;color:#b9d3ab}
[data-theme="dark"] .quiz-card>button:hover{background:#27343a}
[data-theme="dark"] .lesson-status{background:#1e262e;border-color:#35414a}
[data-theme="dark"] .goal-item input{background:#1e262e;border-color:#3a464f}
[data-theme="dark"] .goal-item input:checked{background:#3d6b45;border-color:#4d8054}
[data-theme="dark"] .week-row{border-top-color:#242d35}
[data-theme="dark"] .local-avatar,[data-theme="dark"] .note-spark,[data-theme="dark"] .resource-card>span,[data-theme="dark"] .practice-banner>span,[data-theme="dark"] .resource-intro-icon,[data-theme="dark"] .semester-notice>span,[data-theme="dark"] .video-intro>span{color:#93b487}
[data-theme="dark"] .progress-summary strong{color:#d3e4cb}
[data-theme="dark"] .progress-summary strong>span{color:#8b9a91}
[data-theme="dark"] .heading-dot,[data-theme="dark"] .hero-highlight{color:#a9d199}
[data-theme="dark"] .hero-highlight:after{background:#3f5c3a}
[data-theme="dark"] .stage-card.first-stage{border-color:#3c5340}
[data-theme="dark"] .stage-card.is-done{border-color:#436049;box-shadow:inset 0 0 0 1px #26382a}
[data-theme="dark"] .stage-done{background:#243427;color:#a9d199}
[data-theme="dark"] mark.search-hit{background:#5a5220;color:#f3ecc4}
[data-theme="dark"] .brand-symbol{color:#a9d199}
[data-theme="dark"] .button-dark svg,[data-theme="dark"] .button-green svg{color:inherit}
[data-theme="dark"] .danger-button{background:#3a2220;color:#f0b6ab;border-color:#5a3230}
[data-theme="dark"] .sidebar .brand{color:#e8eee9}
[data-theme="dark"] .exam-stats strong{color:#dbe7d8}
[data-theme="dark"] .exam-stats>div>span{color:#93a09f}
[data-theme="dark"] .question-open:hover,[data-theme="dark"] .project-open:hover,[data-theme="dark"] .video-link:hover{background:#26323a}
[data-theme="dark"] .video-play{background:#26332c;color:#b9d3ab}
[data-theme="dark"] details summary{color:#a8bdb0}
[data-theme="dark"] .quiz-feedback h3{color:#a9d199}
[data-theme="dark"] .result-score{color:#a9d199}
[data-theme="dark"] .result-score>span{color:#8b9a91}
[data-theme="dark"] .answer-matching-note,[data-theme="dark"] .exam-answer-label{color:#93a09f}
[data-theme="dark"] .exercise textarea{background:#1a2129;border-color:#2b343d;color:#dfe7e2}
[data-theme="dark"] .lesson-title-text small{color:#b6cfa8;background:#243426;border-color:#3b523d}
[data-theme="dark"] .lesson-title-text small:hover{background:#2b3d2d}
@media(max-width:780px){
  .continue-card{padding:16px 16px 18px;gap:14px}
  .continue-stats{width:100%;padding-left:0;border-left:0;border-top:1px solid #eef3e9;padding-top:12px;justify-content:space-between;gap:0}
  .continue-stat{flex:1;padding-right:0;border-right:0}
  .continue-card .button{width:100%}
  .stage-footer{flex-wrap:wrap;gap:6px 0}
  .stage-time{margin-right:8px}
}
[data-theme="dark"] .continue-card .continue-stats{border-top-color:#26313a}
[data-theme="dark"] .dialog-top{background:#1a2129}
[data-theme="dark"] dialog{background:#1a2129;border-color:#2c3740;box-shadow:0 25px 100px #0009}
[data-theme="dark"] dialog::backdrop{background:rgba(6,9,12,.72)}

/* 代码逐行解读：行号 + 悬停高亮 + 解读列表 */
.code-block.has-notes pre{padding:16px 0}
.code-block.has-notes pre code{counter-reset:code-line}
.code-line{display:block;position:relative;padding:0 18px 0 46px;white-space:pre-wrap;word-break:break-word}
.code-line::before{counter-increment:code-line;content:counter(code-line);position:absolute;left:0;width:31px;text-align:right;color:#a6b39d;font-size:11px;user-select:none}
.code-line.is-hot{background:#e4ecd9;box-shadow:inset 3px 0 0 #7f9d63}
.code-line.is-flash{animation:codeLineFlash 1.1s ease-out}
@keyframes codeLineFlash{0%{background:#d3e3c2}70%{background:#e9f0e2}100%{background:transparent}}
.code-notes{margin:-8px 0 20px;padding:16px 19px;background:#fbfcfa;border:1px solid #e6ece0;border-radius:8px}
.code-notes-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#41523a}
.code-notes-head svg{width:15px;height:15px;color:#7f9d63}
.code-notes-head span{font-size:11px;font-weight:400;color:#a0aa96;margin-left:auto}
.code-notes ol{list-style:none;margin:13px 0 0;padding:0;display:grid;gap:10px}
.code-notes li{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.85;color:#5e6d55}
.code-note-ref{flex:none;font:10px var(--mono);color:#5f7d47;background:#eef3e8;border:1px solid #dfe7d6;border-radius:4px;padding:3px 7px;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.code-note-ref:hover,.code-note-ref:focus-visible{background:#dce8d1;color:#41592e}
[data-theme="dark"] .code-notes{background:#161e24;border-color:#27313a}
[data-theme="dark"] .code-notes-head{color:#d3e2d6}
[data-theme="dark"] .code-notes-head svg{color:#8bb06a}
[data-theme="dark"] .code-notes-head span{color:#87949b}
[data-theme="dark"] .code-notes li{color:#b3c2b6}
[data-theme="dark"] .code-note-ref{background:#1d262e;border-color:#2c3740;color:#9dc27a}
[data-theme="dark"] .code-note-ref:hover,[data-theme="dark"] .code-note-ref:focus-visible{background:#25313a;color:#c3e0a4}
[data-theme="dark"] .code-line::before{color:#5d6c63}
[data-theme="dark"] .code-line.is-hot{background:#22303a;box-shadow:inset 3px 0 0 #7fa85c}
[data-theme="dark"] .code-line.is-flash{animation:codeLineFlashDark 1.1s ease-out}
@keyframes codeLineFlashDark{0%{background:#2b3d33}70%{background:#1e2a30}100%{background:transparent}}
@media(max-width:780px){
  .code-line{padding:0 13px 0 38px}
  .code-line::before{width:25px;font-size:10px}
  .code-notes{padding:14px 15px}
  .code-notes-head{font-size:12px}
  .code-notes-head span{display:none}
  .code-notes li{font-size:12px;line-height:1.8;gap:8px}
  .code-note-ref{font-size:9px;padding:2px 5px}
}
@media(prefers-reduced-motion:reduce){.code-line.is-flash,[data-theme="dark"] .code-line.is-flash{animation:none}}
.code-line:empty{min-height:1.9em}
@media(max-width:600px){.code-line:empty{min-height:1.9em}}
/* 深色下 #dialog-content li 的 id 选择器权重更高，需要显式覆盖解读正文颜色 */
[data-theme="dark"] #dialog-content .code-notes li{color:#b3c2b6}
[data-theme="dark"] #dialog-content .code-notes li span{color:inherit}
[data-theme="dark"] #dialog-content .code-notes-head{color:#d3e2d6}