:root{color:#17212f;background:#f6f8fb;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#fff 0,#f6f8fb 420px),#f6f8fb}html,body,#root{width:100%}button,input,select{font:inherit}button{border:0}img{display:block;max-width:100%}.app-shell{width:100%;max-width:1440px;min-height:100vh;margin:0 auto;padding:18px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px;margin-bottom:14px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;width:52px;height:52px;color:#fff;background:#18a67a;border-radius:8px;flex:0 0 auto}.brand h1,.brand p,.section-heading h2,.word-area h2,.modal-head h2,.account-summary strong,.item-button strong,.mini-list strong{margin:0}.brand h1{font-size:1.45rem;line-height:1.18;letter-spacing:0}.brand p{margin-top:3px;color:#5e6b7c;font-size:.92rem}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.mode-toggle{display:grid;grid-template-columns:1fr 1fr;width:184px;height:42px;padding:4px;background:#e8edf3;border-radius:8px}.mode-toggle button,.tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;color:#516072;background:transparent;border-radius:6px;cursor:pointer}.mode-toggle button.active,.tabs button.active{color:#17212f;background:#fff;box-shadow:0 1px 4px #17212f14}.mode-toggle button:disabled{opacity:.45;cursor:not-allowed}.icon-button,.login-status,.notice,.wide-button,.primary-action,.secondary-action,.close-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:8px;cursor:pointer}.user-chip,.login-status{padding:0 12px;color:#17212f;background:#fff;box-shadow:inset 0 0 0 1px #e1e7ef}.login-status{color:#5e6b7c}.notice{width:100%;margin-bottom:12px;padding:12px 14px;color:#0f684e;background:#e8f8f2;box-shadow:inset 0 0 0 1px #bcebdc}.layout-grid{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr) minmax(290px,360px);gap:16px;align-items:start}.layout-grid>*,.parent-panel>*,.item-list{min-width:0}.item-rail,.parent-panel{display:flex;flex-direction:column;gap:12px}.item-rail,.panel-block,.learning-stage{background:#fff;border:1px solid #e1e7ef;border-radius:8px;box-shadow:0 10px 24px #17212f0f}.item-rail,.panel-block{padding:14px}.section-heading{display:flex;align-items:center;gap:8px;min-height:28px;color:#2f5f8f}.section-heading h2{color:#17212f;font-size:1rem;line-height:1.2}.item-list{display:grid;gap:10px;margin-top:12px}.item-button{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:62px;padding:7px;color:#17212f;text-align:left;background:#f8fafc;border:1px solid #e5ebf3;border-radius:8px;cursor:pointer}.item-button.active{background:#eef7ff;border-color:#8ec5ff;box-shadow:0 0 0 3px #2f80ed1f}.item-button span:not(.item-thumb),.mini-list span{min-width:0}.item-button strong,.mini-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem;line-height:1.2}.item-button small,.mini-list small{display:block;margin-top:3px;overflow:hidden;color:#667386;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.item-button em{padding:4px 6px;color:#8a5a00;background:#fff5d6;border-radius:6px;font-size:.72rem;font-style:normal;white-space:nowrap}.item-thumb{width:48px;height:48px;overflow:hidden;background:#eaf0f7;border-radius:8px}.item-thumb img{width:100%;height:100%;object-fit:cover}.learning-stage{min-height:680px;padding:18px}.loading-state{display:grid;place-items:center;color:#2f80ed}.spin{animation:spin 1s linear infinite}.hero-media{position:relative;overflow:hidden;aspect-ratio:16 / 10;background:color-mix(in srgb,var(--item-color) 18%,#fff);border-radius:8px}.hero-media:after{position:absolute;inset:0;content:"";box-shadow:inset 0 -80px 90px #17212f3d;pointer-events:none}.hero-media img{width:100%;height:100%;object-fit:cover}.category-badge{position:absolute;right:14px;bottom:14px;z-index:1;padding:7px 10px;color:#fff;background:#17212fb8;border-radius:8px;font-weight:700}.word-area{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px}.age-tag{display:inline-flex;margin:0 0 8px;padding:5px 8px;color:#8c4300;background:#fff0d8;border-radius:6px;font-size:.86rem;font-weight:700}.word-area h2{font-size:4rem;line-height:1;letter-spacing:0}.pinyin{margin:10px 0 0;color:#667386;font-size:1.25rem}.word-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.primary-action,.secondary-action{min-width:132px;min-height:56px;padding:0 18px;font-weight:800}.primary-action{color:#fff;background:#2f80ed}.secondary-action{color:#17212f;background:#f4c84a}.learning-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.info-tile{display:grid;grid-template-columns:22px minmax(0,1fr);gap:2px 8px;min-height:68px;padding:12px;color:#516072;background:#f7f9fc;border:1px solid #e6ecf4;border-radius:8px}.info-tile svg{grid-row:span 2;color:#18a67a}.info-tile span,.info-tile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-tile span{font-size:.78rem}.info-tile strong{color:#17212f;font-size:.94rem}.tabs{display:grid;grid-template-columns:1fr 1fr;height:40px;margin-top:12px;padding:4px;background:#edf2f7;border-radius:8px}.stack-form{display:grid;gap:10px;margin-top:12px}.stack-form label{display:grid;gap:6px;color:#4f5e70;font-size:.86rem;font-weight:700}.stack-form input,.stack-form select{width:100%;min-height:42px;padding:0 10px;color:#17212f;background:#fff;border:1px solid #cfd8e5;border-radius:8px;outline:none}.stack-form input:focus,.stack-form select:focus{border-color:#2f80ed;box-shadow:0 0 0 3px #2f80ed24}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-input{width:100%;min-height:42px;padding:5px}.wide-button{width:100%;padding:0 12px;color:#17212f;background:#eef2f6;font-weight:800}.wide-button.primary{color:#fff;background:#18a67a}.wide-button:disabled,.stack-form input:disabled,.stack-form select:disabled,.file-picker:has(input:disabled){opacity:.58;cursor:not-allowed}.account-summary{display:grid;gap:3px;margin:12px 0;padding:12px;background:#f7f9fc;border:1px solid #e6ecf4;border-radius:8px}.account-summary span{overflow:hidden;color:#667386;font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.form-error{margin:0;color:#b42318;font-size:.86rem}.mode-pill{margin-left:auto;padding:4px 7px;border-radius:6px;font-size:.74rem;font-weight:800}.mode-pill.cloud{color:#0f684e;background:#dff7ed}.mode-pill.local{color:#7a4b00;background:#fff0cd}.file-picker{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:46px;padding:10px;background:#f7f9fc;border:1px dashed #b9c5d3;border-radius:8px;cursor:pointer}.file-picker span,.file-picker strong{min-width:0}.file-picker span{display:inline-flex;align-items:center;gap:7px;color:#2f5f8f;font-size:.88rem;font-weight:800}.file-picker strong{overflow:hidden;color:#516072;font-size:.84rem;text-align:right;text-overflow:ellipsis;white-space:nowrap}.file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.disabled-block{background:#fafbfc}.mini-list{display:grid;gap:8px;margin-top:12px}.mini-list button{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;width:100%;min-height:54px;padding:6px;text-align:left;background:#f7f9fc;border:1px solid #e6ecf4;border-radius:8px;cursor:pointer}.mini-list img{width:42px;height:42px;border-radius:7px;object-fit:cover}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:#0a111a94}.scene-modal{width:min(860px,100%);padding:16px;background:#fff;border-radius:8px;box-shadow:0 26px 90px #00000052}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.modal-head p{margin:0 0 3px;color:#667386;font-size:.86rem}.modal-head h2{font-size:1.25rem}.close-button{min-width:72px;padding:0 12px;color:#17212f;background:#eef2f6;font-weight:800}.scene-video,.animated-scene{width:100%;aspect-ratio:16 / 9;min-height:280px;overflow:hidden;background:#dceefb;border-radius:8px}.scene-video{object-fit:contain;background:#000}.animated-scene{position:relative}.scene-caption{position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:6px;padding:8px 10px;color:#fff;background:#17212fb8;border-radius:8px;font-weight:800}.scene-apple{background:#cfeee1}.tree{position:absolute;left:13%;bottom:18%;width:160px;height:230px;background:#6d411f;border-radius:70px 70px 16px 16px}.tree:before{position:absolute;left:-70px;top:-115px;width:300px;height:190px;content:"";background:#2d9c65;border-radius:50%}.falling-apple{position:absolute;left:39%;top:10%;width:42px;height:42px;background:#e94b5d;border-radius:50% 50% 48% 48%;animation:appleFall 3.4s ease-in-out infinite}.falling-apple:before{position:absolute;left:17px;top:-11px;width:8px;height:16px;content:"";background:#6d411f;border-radius:4px}.person{position:absolute;left:54%;bottom:18%;width:86px;height:150px;background:#2f80ed;border-radius:42px 42px 8px 8px}.person:before{position:absolute;left:18px;top:-54px;width:50px;height:50px;content:"";background:#f5c08b;border-radius:50%}.person span{position:absolute;left:-26px;top:36px;width:140px;height:16px;background:#f5c08b;border-radius:8px}.scene-banana{background:#fff4c9}.picnic-mat{position:absolute;left:18%;bottom:18%;width:55%;height:26%;background:linear-gradient(90deg,rgba(255,255,255,.55) 50%,transparent 0) 0 0 / 54px 54px,linear-gradient(rgba(255,255,255,.55) 50%,transparent 0) 0 0 / 54px 54px,#ef6f6c;border-radius:8px;transform:skew(-8deg)}.banana-shape{position:absolute;width:160px;height:70px;border-bottom:24px solid #f2b705;border-radius:0 0 120px 120px;animation:floatSoft 2.8s ease-in-out infinite}.banana-shape.one{left:34%;bottom:34%;transform:rotate(-8deg)}.banana-shape.two{left:43%;bottom:26%;transform:rotate(13deg);animation-delay:.5s}.sun-disc{position:absolute;right:12%;top:12%;width:84px;height:84px;background:#f2994a;border-radius:50%}.scene-car{background:#dceefb}.road{position:absolute;left:0;right:0;bottom:18%;height:110px;background:#3f4a57}.road:before{position:absolute;inset:50% 0 auto;height:8px;content:"";background:repeating-linear-gradient(90deg,#fff 0 80px,transparent 80px 140px)}.car-shape{position:absolute;left:12%;bottom:31%;width:190px;height:72px;background:#2f80ed;border-radius:32px 52px 16px 16px;animation:carDrive 4s linear infinite}.car-shape:before{position:absolute;left:48px;top:-36px;width:86px;height:42px;content:"";background:#9bd4ff;border-radius:34px 34px 0 0}.car-shape span{position:absolute;bottom:-22px;width:44px;height:44px;background:#17212f;border:8px solid #fff;border-radius:50%}.car-shape span:first-child{left:24px}.car-shape span:last-child{right:24px}.cloud-line{position:absolute;left:12%;top:20%;width:280px;height:18px;background:#ffffffe6;border-radius:99px;animation:cloudMove 7s linear infinite}.scene-cat,.scene-uploaded{background:#efe7ff}.window-frame{position:absolute;right:14%;top:14%;width:180px;height:150px;border:14px solid #fff;background:#aee4ff;border-radius:8px}.window-frame:before,.window-frame:after{position:absolute;content:"";background:#fff}.window-frame:before{left:50%;top:0;width:10px;height:100%;transform:translate(-50%)}.window-frame:after{left:0;top:50%;width:100%;height:10px;transform:translateY(-50%)}.cat-shape{position:absolute;left:28%;bottom:17%;width:150px;height:120px;background:#4f5e70;border-radius:50px 50px 18px 18px}.cat-shape:before,.cat-shape:after{position:absolute;top:-22px;width:46px;height:46px;content:"";background:#4f5e70;transform:rotate(45deg)}.cat-shape:before{left:12px}.cat-shape:after{right:12px}.cat-shape span{position:absolute;right:-78px;bottom:12px;width:100px;height:26px;border-top:18px solid #4f5e70;border-radius:80px 80px 0 0;animation:tailWave 1.8s ease-in-out infinite}.butterfly{position:absolute;right:28%;top:37%;width:18px;height:18px;background:#f2994a;border-radius:50%;animation:butterflyFly 3.2s ease-in-out infinite}.butterfly:before,.butterfly:after{position:absolute;top:-10px;width:24px;height:30px;content:"";background:#ef6f6c;border-radius:50%}.butterfly:before{left:-22px}.butterfly:after{right:-22px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes appleFall{0%,to{transform:translateY(0)}50%{transform:translateY(250px)}}@keyframes floatSoft{0%,to{translate:0 0}50%{translate:0 -12px}}@keyframes carDrive{0%{transform:translate(-130px)}to{transform:translate(720px)}}@keyframes cloudMove{0%{transform:translate(-260px)}to{transform:translate(760px)}}@keyframes tailWave{0%,to{transform:rotate(8deg)}50%{transform:rotate(-8deg)}}@keyframes butterflyFly{0%,to{transform:translate(0)}50%{transform:translate(-56px,-36px)}}@media(max-width:1180px){.layout-grid{grid-template-columns:210px minmax(0,1fr)}.parent-panel{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.parent-panel .panel-block:last-child:nth-child(3){grid-column:1 / -1}}@media(max-width:820px){.app-shell{padding:12px}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%;justify-content:space-between}.mode-toggle{width:176px}.layout-grid,.parent-panel{grid-template-columns:1fr}.item-rail{overflow:hidden}.item-list{display:flex;overflow-x:auto;padding-bottom:4px}.item-button{grid-template-columns:46px 120px;width:190px;flex:0 0 auto}.item-button em{display:none}.learning-stage{min-height:auto;padding:12px}.hero-media{aspect-ratio:4 / 3}.word-area{align-items:stretch;flex-direction:column}.word-area h2{font-size:3rem}.word-actions{justify-content:stretch}.primary-action,.secondary-action{flex:1 1 145px}.learning-strip,.two-fields{grid-template-columns:1fr}.animated-scene,.scene-video{min-height:230px}}@media(max-width:480px){.brand-mark{width:46px;height:46px}.brand h1{font-size:1.2rem}.topbar-actions{display:grid;grid-template-columns:1fr}.mode-toggle,.user-chip,.login-status{width:100%}.item-button{width:174px}.word-area h2{font-size:2.4rem}.pinyin{font-size:1rem}.modal-backdrop{padding:10px}.scene-modal{padding:12px}.modal-head{align-items:flex-start;flex-direction:column}.close-button{width:100%}}
