:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;margin:0;padding:0}:root{--primary:#4ecdc4;--secondary:#ff6b6b;--accent:#45b7d1;--success:#2ecc71;--warning:#f39c12;--danger:#e74c3c;--background:#f8f9fa;--card-bg:#fff;--text:#2c3e50;--text-light:#7f8c8d;--border:#e0e0e0;--shadow:0 4px 6px #0000001a}body{background:var(--background);color:var(--text);min-height:100vh;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}.app,.home-container{min-height:100vh}.hero-section{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;height:60vh;display:flex;position:relative;overflow:hidden}.canvas-container{width:100%;height:100%;position:absolute;top:0;left:0}.hero-content{z-index:10;text-align:center;color:#fff;position:relative}.title{text-shadow:2px 2px 4px #0000004d;margin-bottom:1rem;font-size:3rem;font-weight:700}.subtitle{opacity:.9;font-size:1.5rem}.subject-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;max-width:1200px;margin:0 auto;padding:3rem 5%;display:grid}.subject-card{background:var(--card-bg);text-align:center;color:var(--text);box-shadow:var(--shadow);border-radius:20px;padding:2rem;text-decoration:none;transition:transform .3s,box-shadow .3s}.subject-card:hover{transform:translateY(-10px);box-shadow:0 10px 20px #00000026}.subject-card.chinese{border-top:5px solid #ff6b6b}.subject-card.math{border-top:5px solid #4ecdc4}.subject-card.english{border-top:5px solid #45b7d1}.subject-icon{margin-bottom:1rem;font-size:4rem}.subject-card h2{margin-bottom:.5rem;font-size:1.8rem}.subject-card p{color:var(--text-light);margin-bottom:1rem}.progress-preview{background:#e0e0e0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background:linear-gradient(90deg, var(--primary), var(--accent));border-radius:4px;height:100%;transition:width .3s}.features-section{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;max-width:1200px;margin:0 auto;padding:3rem 5%;display:grid}.feature{text-align:center;padding:2rem}.feature-icon{margin-bottom:1rem;font-size:3rem}.feature h3{margin-bottom:.5rem;font-size:1.3rem}.feature p{color:var(--text-light)}.game-map-container{min-height:100vh;padding:1rem}.map-header{box-shadow:var(--shadow);background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1rem 2rem;display:flex}.back-button{color:var(--text);font-weight:700;text-decoration:none}.map-title{font-size:1.5rem}.total-stars{font-size:1.2rem}.map-canvas{height:70vh;box-shadow:var(--shadow);background:#fff;border-radius:20px;position:relative;overflow:hidden}.map-path{width:100%;height:100%;position:absolute}.level-node{color:#fff;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:80px;height:80px;text-decoration:none;transition:transform .3s;display:flex;position:absolute;transform:translate(-50%,-50%)}.level-node:hover{transform:translate(-50%,-50%)scale(1.1)}.level-node.locked{cursor:not-allowed}.level-content{flex-direction:column;align-items:center;display:flex}.level-number{font-size:1.5rem;font-weight:700}.level-stars{gap:2px;display:flex}.star{opacity:.3;font-size:.8rem}.star.earned{opacity:1}.lock-icon{font-size:1.5rem}.level-name{white-space:nowrap;color:var(--text);text-align:center;font-size:.9rem;position:absolute;bottom:-30px}.question-card{max-width:600px;box-shadow:var(--shadow);background:#fff;border-radius:20px;margin:2rem auto;padding:2rem}.question-header{justify-content:space-between;margin-bottom:1.5rem;display:flex}.question-number{color:var(--text-light)}.question-type{background:var(--primary);color:#fff;border-radius:20px;padding:.25rem .75rem;font-size:.9rem}.question-text{margin-bottom:1.5rem;font-size:1.3rem;line-height:1.6}.options-grid{grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem;display:grid}.option-button{border:2px solid var(--border);color:#2c3e50;cursor:pointer;text-align:left;background:#fff;border-radius:10px;padding:1rem;font-size:1rem;transition:all .3s}.option-button:hover:not(:disabled){border-color:var(--primary);background:#f0f9f8}.option-button.selected{border-color:var(--primary);background:#e8f8f5}.option-button.correct{border-color:var(--success);background:#d5f5e3}.option-button.wrong{border-color:var(--danger);background:#fadbd8}.fill-input-container{margin-bottom:1.5rem}.fill-input{border:2px solid var(--border);color:#2c3e50;background:#fff;border-radius:10px;width:100%;padding:1rem;font-size:1rem;transition:border-color .3s}.fill-input:focus{border-color:var(--primary);outline:none}.fill-input.correct{border-color:var(--success);background:#d5f5e3}.fill-input.wrong{border-color:var(--danger);background:#fadbd8}.judge-buttons{gap:1rem;margin-bottom:1.5rem;display:flex}.judge-button{border:2px solid var(--border);color:#2c3e50;cursor:pointer;background:#fff;border-radius:10px;flex:1;padding:1rem;font-size:1rem;transition:all .3s}.judge-button:hover:not(:disabled){border-color:var(--primary)}.judge-button.selected{border-color:var(--primary);background:#e8f8f5}.judge-button.correct{border-color:var(--success);background:#d5f5e3}.judge-button.wrong{border-color:var(--danger);background:#fadbd8}.explanation{border-radius:10px;margin:1.5rem 0;padding:1rem}.explanation.correct{border-left:4px solid var(--success);background:#d5f5e3}.explanation.wrong{border-left:4px solid var(--danger);background:#fadbd8}.explanation-header{margin-bottom:.5rem;font-size:1.2rem;font-weight:700}.explanation-content p{margin:.5rem 0}.question-actions{justify-content:center;gap:1rem;display:flex}.submit-button,.next-button{cursor:pointer;border:none;border-radius:10px;padding:1rem 2rem;font-size:1rem;transition:transform .3s}.submit-button{background:var(--primary);color:#fff}.submit-button:hover:not(:disabled){transform:scale(1.05)}.submit-button:disabled{cursor:not-allowed;background:#ccc}.next-button:hover{transform:scale(1.05)}.progress-container{margin:1rem 0}.progress-info{justify-content:space-between;margin-bottom:.5rem;display:flex}.progress-text{color:var(--text-light)}.progress-percentage{color:var(--primary);font-weight:700}.progress-bar-container{background:#e0e0e0;border-radius:5px;height:10px;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg, var(--primary), var(--accent));border-radius:5px;height:100%;transition:width .3s}.reward-container{z-index:1000;background:#00000080;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.confetti{pointer-events:none;width:100%;height:100%;position:absolute;overflow:hidden}.confetti-piece{width:10px;height:10px;animation:3s linear infinite confetti-fall;position:absolute;top:-10px}@keyframes confetti-fall{0%{opacity:1;transform:translateY(0)rotate(0)}to{opacity:0;transform:translateY(100vh)rotate(720deg)}}.reward-card{text-align:center;background:#fff;border-radius:20px;width:90%;max-width:400px;padding:2rem;animation:.5s ease-out reward-pop}@keyframes reward-pop{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.reward-header h2{margin-bottom:1rem;font-size:1.8rem}.stars-display{justify-content:center;gap:1rem;margin-bottom:1.5rem;display:flex}.reward-star{opacity:.3;font-size:3rem;animation:.5s ease-out forwards star-appear}.reward-star.earned{opacity:1}@keyframes star-appear{0%{transform:scale(0)rotate(-180deg)}to{transform:scale(1)rotate(0)}}.score-display{margin-bottom:1.5rem}.score-circle{background:linear-gradient(135deg, var(--primary), var(--accent));color:#fff;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:100px;height:100px;margin:0 auto 1rem;display:flex}.score-number{font-size:2rem;font-weight:700}.score-percent{font-size:1rem}.score-text{color:var(--text-light)}.reward-message{margin-bottom:1.5rem}.reward-message p{font-size:1.1rem}.reward-actions{justify-content:center;gap:1rem;display:flex}.retry-button,.next-button{cursor:pointer;border:none;border-radius:10px;padding:1rem 1.5rem;font-size:1rem;transition:transform .3s}.retry-button{color:var(--text);background:#e0e0e0}.next-button{background:var(--primary);color:#fff}.retry-button:hover,.next-button:hover{transform:scale(1.05)}.unit-detail-container{background:var(--background);min-height:100vh;padding:1rem}.unit-header{box-shadow:var(--shadow);background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1rem 2rem;display:flex}.question-area{max-width:700px;margin:0 auto}.sound-button{background:var(--primary);color:#fff;cursor:pointer;width:50px;height:50px;box-shadow:var(--shadow);z-index:100;border:none;border-radius:50%;font-size:1.5rem;transition:transform .3s;position:fixed;bottom:20px;right:20px}.sound-button:hover{transform:scale(1.1)}.vocabulary-section{box-shadow:var(--shadow);background:#fff;border-radius:15px;margin:2rem 0;padding:1.5rem}.vocabulary-title{color:var(--text);margin-bottom:1rem;font-size:1.3rem}.vocabulary-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;display:grid}.vocabulary-card{border:2px solid var(--border);background:#f8f9fa;border-radius:10px;padding:1rem;transition:all .3s}.vocabulary-card:hover{border-color:var(--primary);background:#e8f8f5}.vocabulary-word{color:var(--primary);margin-bottom:.3rem;font-size:1.3rem;font-weight:700}.vocabulary-phonetic{color:var(--text-light);margin-bottom:.3rem;font-size:.9rem}.vocabulary-meaning{color:var(--text);margin-bottom:.3rem;font-size:1rem}.vocabulary-example{color:var(--text-light);font-size:.85rem;font-style:italic}.poem-section{box-shadow:var(--shadow);background:linear-gradient(135deg,#ffecd2 0%,#fcb69f 100%);border-radius:15px;margin:2rem 0;padding:2rem}.poem-title{text-align:center;margin-bottom:.5rem;font-size:1.5rem}.poem-author{text-align:center;color:#8b4513;margin-bottom:1.5rem}.poem-content{text-align:center;white-space:pre-line;margin-bottom:1.5rem;font-size:1.2rem;line-height:2}.poem-meaning{background:#ffffffb3;border-radius:10px;padding:1rem;font-size:.95rem;line-height:1.6}.lesson-section{box-shadow:var(--shadow);background:#fff;border-radius:15px;margin:2rem 0;padding:2rem}.lesson-title{color:var(--primary);margin-bottom:1rem;font-size:1.3rem}.lesson-content{white-space:pre-line;margin-bottom:1.5rem;font-size:1.1rem;line-height:1.8}.lesson-points{background:#e8f8f5;border-radius:10px;padding:1rem}.lesson-points h4{color:var(--text);margin-bottom:.5rem}.lesson-points ul{margin-left:1.5rem}.lesson-points li{color:var(--text);margin:.3rem 0}@media (width<=768px){.title{font-size:2rem}.subtitle{font-size:1.2rem}.subject-grid{padding:2rem 1rem}.level-node{width:60px;height:60px}.level-number{font-size:1.2rem}}
