*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:#101112;font-family:Arial,Microsoft YaHei,sans-serif}button,input,textarea,select{font-family:inherit}.app{color:#fff;background:radial-gradient(circle at top,#2b2e33 0%,#171819 42%,#101112 100%);min-height:100vh;position:relative;overflow-x:hidden}.app:before{content:"";pointer-events:none;opacity:.7;background:linear-gradient(115deg,#ffffff0e 0%,#0000 22%,#ffffff06 52%,#0000 76%);position:fixed;inset:0}.background-glow{filter:blur(90px);pointer-events:none;background:#0ea5e914;border-radius:50%;width:520px;height:520px;position:fixed;top:12%;left:10%}.topbar{z-index:5;grid-template-columns:180px 1fr 150px;align-items:center;gap:24px;width:100%;max-width:1320px;min-height:96px;margin:0 auto;padding:18px 28px 0;display:grid;position:relative}.logo-mini{justify-content:flex-start;align-items:center;min-width:160px;display:flex}.logo-mini span{letter-spacing:.22em;color:#38bdf8;text-transform:uppercase;font-size:18px;font-weight:900}.nav.nav-icons-only{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffff0e;border:1px solid #ffffff12;border-radius:26px;justify-self:center;align-items:center;gap:12px;height:68px;padding:7px 11px;display:flex;box-shadow:0 18px 60px #00000059}.nav.nav-icons-only button{color:#d4d4d8;cursor:pointer;background:0 0;border:none;border-radius:18px;justify-content:center;align-items:center;width:72px;min-width:72px;height:54px;padding:0;transition:all .2s;display:flex}.nav.nav-icons-only button:hover{color:#fff;background:#ffffff0e}.nav.nav-icons-only button.active{color:#38bdf8;background:#0ea5e924;box-shadow:inset 0 0 0 1px #38bdf81f}.nav.nav-icons-only button svg{width:23px;height:23px}.header-actions{justify-self:end;align-items:center;gap:14px;display:flex}.login-btn{color:#f4f4f5;cursor:pointer;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#00000024;border:1px solid #ffffff1a;border-radius:18px;align-items:center;gap:10px;height:54px;padding:0 18px;font-weight:800;transition:all .2s;display:flex}.login-btn:hover{background:#ffffff0a;border-color:#38bdf847}.login-btn svg{width:20px;height:20px}.layout{z-index:2;grid-template-columns:420px 1fr;gap:28px;width:100%;max-width:1180px;margin:28px auto 0;padding:0 28px 80px;display:grid;position:relative}.left-panel,.main-panel{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#ffffff0f;border:1px solid #ffffff16;border-radius:32px;box-shadow:0 28px 80px #00000057}.left-panel{max-height:calc(100vh - 145px);padding:28px;overflow:hidden}.title-block .tag,.small-tag{color:#7dd3fc;background:#0ea5e91f;border:1px solid #0ea5e93d;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:900;display:inline-block}.title-block h1,.custom-page h1{color:#fff;letter-spacing:-.02em;margin:22px 0 14px;font-size:42px;line-height:1.08}.title-block p,.custom-page p{color:#c4c4c7;font-weight:600;line-height:1.8}.stats{grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0;display:grid}.stats div{text-align:center;background:#00000040;border-radius:22px;padding:18px 12px}.stats strong{color:#fff;font-size:28px;display:block}.stats span{color:#a1a1aa;margin-top:8px;font-size:13px;font-weight:700;display:block}.rule-box{background:#0000003d;border:1px solid #ffffff0f;border-radius:26px;padding:22px}.rule-box h3{color:#fff;margin:0 0 16px;font-size:25px}.custom-section-title{margin-top:22px!important}.lesson-list-react{gap:12px;max-height:310px;padding-right:8px;display:grid;overflow-y:auto}.custom-list-small{max-height:190px}.lesson-list-react::-webkit-scrollbar{width:8px}.wrong-list::-webkit-scrollbar{width:8px}.lesson-list-react::-webkit-scrollbar-track{background:#ffffff0a;border-radius:999px}.wrong-list::-webkit-scrollbar-track{background:#ffffff0a;border-radius:999px}.lesson-list-react::-webkit-scrollbar-thumb{background:#38bdf861;border-radius:999px}.wrong-list::-webkit-scrollbar-thumb{background:#38bdf861;border-radius:999px}.lesson-btn{color:#f4f4f5;text-align:left;cursor:pointer;background:#ffffff0b;border:1px solid #ffffff16;border-radius:20px;width:100%;padding:16px 18px;transition:all .2s}.lesson-btn:hover{background:#0ea5e914;border-color:#38bdf859;transform:translateY(-1px)}.lesson-btn.active{background:linear-gradient(135deg,#0ea5e92e,#ffffff0f);border-color:#38bdf894;box-shadow:0 12px 32px #0ea5e921}.lesson-btn.completed{background:linear-gradient(135deg,#22c55e1a,#ffffff0b);border-color:#22c55e5c}.lesson-topline{justify-content:space-between;align-items:center;gap:8px;display:flex}.lesson-topline strong{color:#fff;font-size:17px;line-height:1.4;display:block}.lesson-topline em{color:#86efac;background:#22c55e24;border-radius:999px;flex-shrink:0;padding:4px 8px;font-size:12px;font-style:normal;font-weight:900}.lesson-btn span{color:#a1a1aa;margin-top:7px;font-size:13px;font-weight:700;line-height:1.5;display:block}.lesson-btn small{color:#7dd3fc;background:#0ea5e921;border-radius:999px;align-items:center;padding:5px 9px;font-size:12px;font-weight:900;display:inline-flex}.lesson-btn.completed small{color:#86efac;background:#22c55e21}.card{min-height:600px}.card-header{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.progress{color:#a1a1aa;font-size:15px;font-weight:900}.level-tabs,.mode-tabs,.speed-tabs{gap:12px;margin:24px 0 30px;display:flex}.level-tabs button,.mode-tabs button,.speed-tabs button{color:#d4d4d8;cursor:pointer;background:#0000002e;border:1px solid #ffffff1a;border-radius:14px;min-height:44px;padding:12px 18px;font-weight:900;transition:all .2s}.mode-tabs button,.speed-tabs button{flex:1}.mode-tabs span,.speed-tabs span{color:#94a3b8;margin-top:7px;font-size:12px;display:block}.level-tabs button:hover,.mode-tabs button:hover,.speed-tabs button:hover{color:#7dd3fc;border-color:#38bdf84d}.level-tabs button.selected,.mode-tabs button.selected,.speed-tabs button.selected{color:#7dd3fc;background:#0ea5e924;border-color:#0ea5e961}.card h2{color:#fff;letter-spacing:-.02em;margin:20px 0 14px;font-size:56px;line-height:1.05}.cn{color:#d4d4d8;font-size:24px;font-weight:900}.hint{color:#a1a1aa;font-weight:800;line-height:1.7}.example{background:#00000045;border:1px solid #ffffff13;border-radius:26px;margin:30px 0;padding:24px}.example p{color:#fff;margin:0 0 10px;font-size:24px;font-weight:900;line-height:1.45}.example span{color:#a1a1aa;font-weight:700;line-height:1.7}.muted-example p,.muted-example span{color:#71717a}.answer-input,.custom-form input,.custom-form textarea,.scope-row select{color:#fff;background:#0000004d;border:1px solid #ffffff1f;border-radius:18px;outline:none;width:100%;font-size:16px;font-weight:800}.answer-input{height:62px;margin-top:14px;padding:0 20px;font-size:18px;font-weight:900}.answer-input:focus,.custom-form input:focus,.custom-form textarea:focus,.scope-row select:focus{border-color:#38bdf899;box-shadow:0 0 0 4px #0ea5e91a}.button-row{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}.button-row button,.danger-btn,.full{color:#f4f4f5;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1c;border-radius:16px;min-height:48px;padding:0 20px;font-weight:900;transition:all .2s}.button-row button:hover,.full:hover{color:#7dd3fc;background:#ffffff14;border-color:#38bdf866}.primary{color:#fff!important;background:#0ea5e9!important;border-color:#0ea5e9!important}.primary:hover{background:#38bdf8!important}.danger-btn{color:#fca5a5!important;background:#ef444414!important;border-color:#ef444438!important}.message{border-radius:18px;margin-top:20px;padding:16px 18px;font-weight:900}.message.success{color:#86efac;background:#22c55e1f}.message.error{color:#fca5a5;background:#ef44441f}.message.warning{color:#fcd34d;background:#f59e0b1f}.empty,.empty-small{text-align:center;color:#a1a1aa;padding:60px 20px}.empty h2{font-size:38px}.wrong-list{gap:14px;max-height:520px;padding-right:8px;display:grid;overflow-y:auto}.wrong-item{background:#0000003d;border:1px solid #ffffff13;border-radius:20px;justify-content:space-between;gap:18px;padding:18px;display:flex}.wrong-item strong{color:#fff;font-size:24px;display:block}.wrong-item span{color:#d4d4d8;margin-top:6px;font-weight:800;display:block}.wrong-item small{color:#71717a;margin-top:8px;line-height:1.5;display:block}.wrong-info{color:#fca5a5;min-width:135px;font-weight:900}.custom-main-panel{grid-column:1/-1;max-width:1180px}.custom-page{min-height:620px}.custom-grid{grid-template-columns:.85fr 1.15fr;gap:24px;margin-top:24px;display:grid}.custom-form,.custom-topic-list{background:#0000003d;border:1px solid #ffffff12;border-radius:26px;padding:22px}.custom-form h3,.custom-topic-list h3{margin:0 0 18px;font-size:24px}.custom-form label{color:#a1a1aa;margin:16px 0 8px;font-weight:900;display:block}.custom-form input{height:54px;padding:0 16px}.custom-form textarea{resize:vertical;min-height:260px;padding:16px;line-height:1.65}.custom-topic-card{background:#ffffff0b;border:1px solid #ffffff16;border-radius:22px;margin-bottom:14px;padding:18px}.custom-word-preview{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.custom-word-preview span,.custom-word-preview small{color:#7dd3fc;background:#0ea5e91f;border-radius:999px;align-items:center;gap:6px;padding:7px 10px;font-size:12px;font-weight:900;display:inline-flex}.custom-word-preview button{color:#fecaca;cursor:pointer;background:#ef444433;border:none;border-radius:50%;width:18px;height:18px}.game-active .topbar{display:none}.game-active .game-layout{width:100%;max-width:none;height:100vh;margin:0;padding:0;display:block}.game-active .game-main-panel{width:100%;min-height:100vh;box-shadow:none;background:0 0;border:none;border-radius:0;padding:0}.game-active .typing-game{border-radius:0;width:100%;min-height:100vh}.game-layout{grid-template-columns:1fr;max-width:1320px}.game-main-panel{border-radius:32px;min-height:calc(100vh - 145px);padding:0;overflow:hidden}.typing-game{background:linear-gradient(#ffffff06 1px,#0000 1px) 0 0/42px 42px,linear-gradient(90deg,#ffffff06 1px,#0000 1px) 0 0/42px 42px,radial-gradient(circle at bottom,#0ea5e929,#0000 35%) 0 0/100% 100%,#090625 0 0/100% 100%;border-radius:32px;min-height:calc(100vh - 145px);position:relative;overflow:hidden}.typing-game.paused .game-enemy{animation-play-state:paused}.game-back-btn{z-index:35;color:#dbeafe;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f172a94;border:1px solid #7dd3fc40;border-radius:12px;height:38px;padding:0 16px;font-weight:900;position:absolute;top:22px;right:28px}.game-progress{z-index:5;background:#ffffff1f;border-radius:999px;width:360px;height:4px;position:absolute;top:14px;left:50%;overflow:hidden;transform:translate(-50%)}.game-progress span{background:linear-gradient(90deg,#38bdf8,#22c55e);border-radius:999px;height:100%;transition:width .2s;display:block}.game-count{color:#ffffffb3;z-index:5;font-weight:900;position:absolute;top:32px;left:28px}.game-hud{text-align:center;z-index:5;position:absolute;top:72px;right:28px}.game-hud strong{color:#fbbf24;font-size:36px;line-height:1;display:block}.game-hud span{color:#fbbf24;letter-spacing:.2em;font-size:11px;font-weight:900}.game-controls{z-index:30;gap:10px;display:flex;position:absolute;top:132px;right:28px}.game-controls button{color:#dbeafe;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f172a94;border:1px solid #7dd3fc40;border-radius:12px;height:38px;padding:0 14px;font-weight:900}.game-speed-badge{z-index:5;color:#7dd3fc;background:#0ea5e91f;border:1px solid #0ea5e93d;border-radius:999px;padding:8px 12px;font-weight:900;position:absolute;top:78px;left:28px}.game-paused-banner{z-index:25;color:#7dd3fc;letter-spacing:.08em;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0f172ac7;border:1px solid #38bdf847;border-radius:22px;padding:18px 34px;font-size:32px;font-weight:900;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%)}.game-overlay{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);text-align:center;z-index:20;background:#0f172ac7;border:1px solid #38bdf82e;border-radius:28px;width:min(720px,100% - 48px);padding:34px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 28px 80px #00000073}.game-overlay h2{color:#fff;margin:0 0 14px;font-size:42px}.game-overlay p{color:#c4c4c7;font-weight:700;line-height:1.8}.scope-row{text-align:left;grid-template-columns:90px 1fr 1fr;align-items:center;gap:10px;margin:16px 0;display:grid}.scope-row label{color:#a1a1aa;font-weight:900}.scope-row select{height:46px;padding:0 14px}.game-start-stats{grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0;display:grid}.game-start-stats div{background:#00000042;border-radius:20px;padding:18px}.game-start-stats strong{color:#fff;font-size:30px;display:block}.game-start-stats span{color:#94a3b8;margin-top:6px;font-weight:800;display:block}.game-tip{color:#7dd3fc!important}.game-summary{background:#22c55e1a;border:1px solid #22c55e2e;border-radius:18px;margin-bottom:12px;padding:14px}.game-summary p{color:#86efac;margin:4px 0}.game-start-btn{color:#fff;cursor:pointer;background:#0ea5e9;border:none;border-radius:18px;height:52px;padding:0 28px;font-weight:900}.game-typed{color:#c4c4c7;z-index:6;background:#00000052;border-radius:999px;padding:10px 16px;font-weight:800;position:absolute;bottom:122px;left:50%;transform:translate(-50%)}.game-typed strong{color:#7dd3fc;letter-spacing:.08em}.game-enemy{text-align:center;z-index:4;animation:enemyFall var(--fall-duration) linear forwards;position:absolute;top:0;transform:translate(-50%,-120px)}@keyframes enemyFall{0%{transform:translate(-50%,-120px)}to{transform:translate(-50%,calc(100vh - 215px))}}.game-enemy.targeting{filter:drop-shadow(0 0 18px #ef4444bf)}.enemy-monster{background:#ef4444;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;margin:0 auto 6px;font-size:20px;display:flex;box-shadow:0 0 22px #ef4444d9}.enemy-word{color:#fecaca;letter-spacing:.16em;text-transform:lowercase;background:#08051ccc;border:1px solid #ffffff2e;border-radius:8px;min-width:72px;padding:8px 12px;font-weight:900}.enemy-blank-word{letter-spacing:.08em;text-transform:none}.enemy-typed{color:#38bdf8}.enemy-cn{color:#94a3b8;text-shadow:0 2px 10px #000c;margin-top:5px;font-size:13px;font-weight:800}.game-bullet{z-index:3;background:linear-gradient(90deg,#38bdf8,#fbbf24);border-radius:999px;width:18px;height:5px;animation:.5s linear forwards bulletFly;position:absolute;top:calc(100% - 94px);left:50%;box-shadow:0 0 16px #38bdf8e6}@keyframes bulletFly{to{left:var(--end-left);top:var(--end-top);opacity:0;transform:scale(.6)rotate(-18deg)}}.game-message{color:#7dd3fc;z-index:6;font-weight:900;position:absolute;bottom:172px;left:50%;transform:translate(-50%)}.game-player{z-index:4;background:#0ea5e92e;border-radius:18px 18px 10px 10px;width:76px;height:50px;position:absolute;bottom:44px;left:50%;transform:translate(-50%);box-shadow:0 0 35px #0ea5e98c}.player-cannon{background:#0ea5e959;border-radius:8px;width:34px;height:34px;position:absolute;top:-14px;left:50%;transform:translate(-50%)rotate(35deg)}@media (width<=1100px){.topbar{grid-template-columns:1fr;justify-items:center;gap:14px}.logo-mini{justify-content:center}.header-actions{justify-self:center}.layout{grid-template-columns:1fr;max-width:760px}.left-panel{max-height:none}.custom-grid{grid-template-columns:1fr}}@media (width<=760px){.typing-game{min-height:680px}.game-progress{width:240px}.mode-tabs,.speed-tabs,.game-start-stats,.scope-row{grid-template-columns:1fr;display:grid}.enemy-word{min-width:58px;padding:7px 9px;font-size:13px}.enemy-cn{font-size:12px}.game-overlay h2{font-size:32px}}@media (width<=640px){.topbar{padding:16px 14px 0}.nav.nav-icons-only{justify-content:center;width:100%;overflow-x:auto}.nav.nav-icons-only button{width:58px;min-width:58px}.header-actions{justify-content:center;width:100%}.layout{padding:0 14px 60px}.left-panel,.main-panel{border-radius:26px;padding:20px}.title-block h1,.custom-page h1{font-size:34px}.card h2{font-size:42px}.stats{grid-template-columns:1fr}.level-tabs{flex-direction:column}}.left-panel{flex-direction:column;display:flex}.library-box{flex-direction:column;flex:1;min-height:0;display:flex}.library-tabs{background:#00000038;border:1px solid #ffffff0f;border-radius:18px;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px;padding:6px;display:grid}.library-tabs button{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:46px;font-weight:900;transition:all .2s;display:flex}.library-tabs button:hover{color:#fff;background:#ffffff0b}.library-tabs button.selected{color:#7dd3fc;background:#0ea5e924;box-shadow:inset 0 0 0 1px #38bdf82e}.library-tabs span{color:inherit;background:#ffffff14;border-radius:999px;padding:3px 8px;font-size:12px}.topic-list-scroll{scroll-behavior:smooth;flex:1;max-height:370px;padding-right:8px;overflow:hidden auto}.custom-topic-scroll{max-height:320px}.custom-library-panel{flex-direction:column;flex:1;gap:14px;min-height:0;display:flex}.custom-empty-panel{color:#a1a1aa;background:#ffffff0b;border:1px dashed #7dd3fc47;border-radius:20px;padding:26px 18px;line-height:1.7}.custom-empty-panel strong,.custom-empty-panel span{display:block}.custom-empty-panel strong{color:#fff;margin-bottom:8px;font-size:17px}.custom-manage-btn{color:#7dd3fc;cursor:pointer;background:#0ea5e91f;border:1px solid #38bdf847;border-radius:16px;width:100%;min-height:48px;font-weight:900}.custom-manage-btn:hover{background:#0ea5e92e;border-color:#38bdf880}.custom-topic-list{max-height:610px;padding-right:12px;overflow-y:auto}.custom-topic-list::-webkit-scrollbar{width:8px}.custom-topic-list::-webkit-scrollbar-track{background:#ffffff0a;border-radius:999px}.custom-topic-list::-webkit-scrollbar-thumb{background:#38bdf861;border-radius:999px}@media (width<=1100px){.topic-list-scroll,.custom-topic-scroll{max-height:360px}}.topbar{grid-template-columns:190px 1fr 150px;max-width:1360px;padding-top:20px}.layout{grid-template-columns:355px minmax(0,1fr);gap:24px;max-width:1300px;margin:20px auto 0;padding:0 22px 54px}.left-panel{max-height:calc(100vh - 130px);padding:22px}.main-panel{min-height:690px;padding:32px}.left-panel .title-block .tag{padding:7px 12px;font-size:12px}.left-panel .title-block h1{margin:18px 0 10px;font-size:32px;line-height:1.06}.left-panel .title-block p{margin:0;font-size:13px;line-height:1.62}.left-panel .stats{gap:10px;margin:20px 0}.left-panel .stats div{border-radius:18px;padding:14px 8px}.left-panel .stats strong{font-size:24px}.left-panel .stats span{margin-top:5px;font-size:11px}.rule-box.library-box{border-radius:24px;padding:16px}.library-tabs{gap:8px;margin-bottom:12px;padding:5px}.library-tabs button{min-height:40px;font-size:13px}.library-tabs span{padding:2px 7px;font-size:11px}.topic-list-scroll,.custom-topic-scroll{max-height:405px}.lesson-btn{border-radius:18px;padding:14px 16px}.lesson-topline strong{font-size:15px}.lesson-btn span{margin-top:5px;font-size:12px}.lesson-footer{margin-top:8px}.lesson-btn small{padding:4px 8px;font-size:11px}.left-panel>.button-row{margin-top:14px}.left-panel>.button-row button{border-radius:14px;min-height:44px;padding:0 15px;font-size:13px}.main-panel .card{min-height:625px}.main-panel .small-tag{padding:8px 14px;font-size:13px}.main-panel .title-block h1{margin:22px 0 12px;font-size:44px}.main-panel .title-block p{font-size:16px}.main-panel .level-tabs{margin:26px 0 34px}.main-panel .card h2{margin:24px 0 18px;font-size:66px}.main-panel .cn{font-size:26px}.main-panel .example{border-radius:24px;margin:34px 0 28px;padding:26px}.main-panel .example p{font-size:25px}.main-panel .button-row{gap:14px}.main-panel .button-row button{border-radius:16px;min-height:52px;padding:0 22px}.custom-main-panel{max-width:1260px}.custom-topic-list{max-height:650px}@media (width>=1500px){.layout,.topbar{transform:translate(-20px)}}@media (width<=1100px){.layout,.topbar{transform:none}.layout{grid-template-columns:1fr;max-width:760px}.left-panel{max-height:none}.topic-list-scroll,.custom-topic-scroll{max-height:360px}}.data-tools-panel{background:#0ea5e914;border:1px solid #0ea5e92e;border-radius:22px;justify-content:space-between;align-items:center;gap:18px;margin:22px 0 24px;padding:18px;display:flex}.data-tools-panel strong{color:#fff;margin-bottom:6px;font-size:18px;display:block}.data-tools-panel span{color:#a1a1aa;font-size:13px;font-weight:700;line-height:1.6}.data-tool-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.file-import-btn{color:#f4f4f5;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1c;border-radius:16px;justify-content:center;align-items:center;min-height:48px;padding:0 18px;font-weight:900;transition:all .2s;display:inline-flex}.file-import-btn:hover{color:#7dd3fc;background:#ffffff14;border-color:#38bdf866}.file-import-btn input{display:none}.wide-file-btn{width:100%;margin:8px 0 14px}.import-preview{color:#a1a1aa;background:#00000038;border-radius:14px;margin-top:10px;padding:10px 12px;font-size:14px;font-weight:800}.import-preview strong{color:#7dd3fc;font-size:18px}@media (width<=760px){.data-tools-panel{flex-direction:column;align-items:stretch}.data-tool-actions{justify-content:flex-start}}
