/* 深度记忆 DeepMem · 样式（基于原站结构放大字号并换色） */

:root{--bg:#F6FBF8;--paper:#fff;--ink:#10241D;--soft:#6f8078;--muted:#a3aca5;--line:#e6eae4;--green:#064E3B;--green2:#e7f4e9;--green3:#b6d9c4;--orange:#f8e9d6;--purple:#efebfb;--shadow:0 10px 35px rgba(36,76,53,.055);--radius:24px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:22px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7fb69b;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green)}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;width:252px;height:100vh;background:#fff;border-right:1px solid var(--line);padding:33px 18px 22px;display:flex;flex-direction:column;flex-shrink:0}.brand{padding:0 6px 0 8px;display:flex;align-items:center;text-align:left;gap:10px;border:0;background:none;color:var(--ink)}.brand-mark{height:46px;width:46px;background:#e9f5ed;border-radius:16px;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:35px;height:35px;color:#064E3B}.brand strong{display:block;white-space:nowrap;font-size:26px;letter-spacing:-.5px}.brand strong em{font-size:17px;font-style:normal;font-weight:600;color:var(--green);letter-spacing:-.1px}.brand small{font-size:17px;color:#89988e;white-space:nowrap}.sidebar-label{font-size:17px;font-weight:800;letter-spacing:2px;color:#b0b9b1;margin:54px 16px 15px}.side-nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:14px;width:100%;height:49px;padding:0 18px;background:transparent;border:0;border-radius:14px;text-align:left;font-size:20px;font-weight:650;color:#718078}.nav-link span{font-size:30px;font-weight:400;width:20px;text-align:center}.nav-link.active,.nav-link:hover{background:#eaf5ed;color:#064E3B}.nav-count{margin-left:auto;background:#f1e9d8;color:#90723a;font-size:17px;border-radius:15px;min-width:21px;height:21px;text-align:center;line-height:21px}.side-bottom{margin-top:auto;background:linear-gradient(150deg,#e8f4e7,#f7f6e9);padding:20px 16px;border-radius:20px;text-align:center}.side-bottom .mascot{font-size:46px;margin-bottom:5px}.side-bottom strong{font-size:19px}.side-bottom p{color:#789081;font-size:18px;line-height:1.9}.mini-pill{border:0;background:#fff;color:var(--green);padding:9px 14px;border-radius:20px;font-size:18px;font-weight:750}.main-wrap{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:80px;padding:0 clamp(24px,4vw,66px);display:flex;align-items:center;justify-content:space-between;background:#fdfefb;border-bottom:1px solid var(--line)}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700;color:#6a7b70}.tiny-sun{font-size:33px;color:#d1a44d}.top-actions{display:flex;align-items:center;gap:16px}.top-date{font-size:18px;color:#89998e}.sound-toggle,.avatar{border:1px solid var(--line);background:#fff;color:#567763;height:37px;width:37px;border-radius:12px;font-size:28px}.avatar{border:0;background:#e8eddc;color:#607951;font-size:19px;font-weight:800;border-radius:50%}.view{width:100%;max-width:1370px;margin:0 auto;flex:1;padding:34px clamp(24px,4vw,66px) 45px}.footer{border-top:1px solid #e8ece6;padding:19px 55px;font-size:17px;color:#a0aba1;display:flex;justify-content:space-between}.mobile-nav{display:none}.kicker{text-transform:uppercase;letter-spacing:2.4px;font-size:17px;font-weight:800;color:#73a187;margin-bottom:7px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:25px}.page-head h1,.hero h1{font-size:clamp(32px,3vw,47px);margin:0;font-weight:800;letter-spacing:-1.5px;line-height:1.3}.page-head p{color:#819188;font-size:19px;margin:9px 0 0}.eyebrow{font-size:18px;color:#638c71;font-weight:800;letter-spacing:1px}.card{border:1px solid #edf0e9;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}.hero{min-height:258px;padding:34px 38px;background:linear-gradient(108deg,#e5f3e6 0%,#edf8ef 56%,#f7f5e4 100%);border:1px solid #e6efe5;border-radius:29px;display:grid;grid-template-columns:1.3fr .65fr;align-items:center;position:relative;overflow:hidden}.hero:before{content:'';position:absolute;right:-85px;top:-120px;width:420px;height:420px;border:1px solid #d4e9d6;border-radius:50%}.hero:after{content:'';position:absolute;right:10px;bottom:-240px;width:390px;height:390px;border:1px solid #d5eadb;border-radius:50%}.hero h1{margin:8px 0;font-size:42px}.hero p{font-size:19px;color:#718c7a;max-width:450px;line-height:1.95;margin:9px 0 20px}.hero-art{position:relative;z-index:1;display:flex;justify-content:center;align-items:center}.art-bubble{display:flex;align-items:center;justify-content:center;width:180px;height:180px;font-size:108px;border-radius:47% 53% 60% 40%;background:#cde9d5;box-shadow:18px 15px 0 #f5e3b7;transform:rotate(-8deg)}.hero-art .b1,.hero-art .b2{position:absolute;background:white;padding:9px 15px;border-radius:30px;color:#63816d;box-shadow:var(--shadow);font-size:18px;font-weight:800}.hero-art .b1{top:5px;left:6px;transform:rotate(-8deg)}.hero-art .b2{bottom:-5px;right:5px;transform:rotate(6deg)}.btn{border:0;border-radius:13px;padding:11px 20px;font-size:19px;font-weight:800;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .13s,background .13s;text-decoration:none}.btn:active{transform:translateY(1px)}.btn-primary{background:#064E3B;color:white}.btn-primary:hover{background:#043A2C}.btn-white{background:white;color:#064E3B}.btn-light{background:#eef5f0;color:#065F46}.btn-ghost{background:transparent;color:#697b70;border:1px solid #e4e9e1}.btn-outline{background:white;border:1px solid #c4dacb;color:#065F46}.btn-peach{background:#f8ede0;color:#a87635}.btn-sm{min-height:34px;padding:7px 12px;font-size:18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:31px 0 15px;gap:10px}.section-title h2{margin:0;font-size:26px;letter-spacing:-.5px}.section-title button{border:0;background:none;color:#71977f;font-weight:700;font-size:18px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.metric{padding:20px 20px 18px;min-height:126px;display:flex;flex-direction:column;justify-content:space-between}.metric .metric-top{display:flex;align-items:center;justify-content:space-between;color:#85958a;font-size:18px;font-weight:700}.metric .metric-top span{font-size:32px}.metric strong{font-size:37px;line-height:1.1;letter-spacing:-1px}.metric small{color:#a2aaa3;font-weight:500;font-size:17px}.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:18px}.unit-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.unit-card{border:1px solid #e9ede7;border-radius:20px;padding:18px;background:#fff;text-align:left;min-height:167px;display:flex;flex-direction:column;transition:box-shadow .17s,transform .17s}.unit-card:hover{transform:translateY(-2px);box-shadow:0 14px 25px #324b3911}.unit-icon{height:51px;width:51px;border-radius:15px;display:grid;place-items:center;font-size:36px;margin-bottom:12px}.unit-card strong{font-size:20px;letter-spacing:-.3px}.unit-card small{color:#9ba89d;font-size:17px;margin:3px 0 12px}.unit-bottom{display:flex;align-items:center;justify-content:space-between;color:#8c9c90;font-size:17px;margin-top:auto}.progress-track{height:6px;background:#edf0ea;border-radius:30px;overflow:hidden}.progress-fill{height:100%;background:#10B981;border-radius:30px;transition:width .15s}.daily-panel{padding:22px}.daily-panel h3{margin:0;font-size:23px}.daily-panel .hint{font-size:18px;color:#8a9a8c;margin:4px 0 17px}.todo{padding:13px;border:1px solid #eef1ec;border-radius:15px;display:flex;gap:10px;align-items:center;margin:9px 0}.todo-icon{width:41px;height:41px;background:#eef7ec;border-radius:12px;display:grid;place-items:center;font-size:28px}.todo strong{display:block;font-size:18px}.todo small{font-size:17px;color:#96a398}.todo .right{margin-left:auto;color:#83a590;font-size:18px}.empty{padding:45px 20px;text-align:center;color:#819588;background:#fff;border:1px dashed #dce6dc;border-radius:21px}.empty .big{font-size:56px;margin-bottom:7px}.empty strong{display:block;font-size:23px;color:#3e654c;margin-bottom:8px}.empty p{font-size:18px;max-width:360px;margin:0 auto 18px}.tabs{display:inline-flex;padding:5px;background:#edf2eb;border-radius:14px;gap:5px}.tab{border:0;background:transparent;padding:9px 15px;border-radius:10px;font-size:18px;color:#809085;font-weight:800}.tab.active{color:#357958;background:white;box-shadow:0 2px 9px #314e3e13}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.course-card{border:1px solid #e7ece6;background:white;border-radius:23px;padding:24px;min-height:235px;display:flex;flex-direction:column;position:relative;overflow:hidden}.course-card:hover{box-shadow:0 15px 30px #33483410}.course-card .course-top{display:flex;align-items:start;justify-content:space-between}.course-emoji{border-radius:18px;width:69px;height:69px;display:grid;place-items:center;font-size:42px}.course-card .num{font-size:17px;letter-spacing:1px;font-weight:900;color:#acb8ac}.course-card h3{margin:17px 0 1px;font-size:23px}.course-card p{font-size:18px;color:#8c9c91;margin:4px 0 17px}.course-card .details{display:flex;align-items:center;gap:9px;font-size:17px;color:#89988b;margin-top:auto}.course-card .progress-track{flex:1}.course-card .go-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf6f0;color:#407d5e;font-size:26px}.course-head{background:#eef6ed;border-radius:22px;display:flex;align-items:center;gap:20px;padding:18px 23px;margin-bottom:24px}.course-head .big-emoji{font-size:54px}.course-head h2{font-size:28px;margin:0}.course-head p{font-size:18px;color:#75907c;margin:5px 0 0}.course-head .unit-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.learn-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}.learn-main{min-width:0}.study-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 13px}.study-top small{color:#90a393;font-size:17px;font-weight:800}.study-top strong{font-size:18px;color:#6a8d78}.flashcard{background:#fff;border:1px solid #e7eee9;border-radius:27px;padding:28px 25px 23px;text-align:center;box-shadow:var(--shadow);min-height:425px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.flash-tag{position:absolute;left:25px;top:20px;padding:6px 10px;background:#f1f6f0;color:#779181;border-radius:9px;font-size:17px;font-weight:800}.flash-emoji{height:128px;width:128px;border-radius:38px;background:#f1f7ec;display:grid;place-items:center;font-size:94px;margin-bottom:15px;box-shadow:8px 8px 0 #fbf5e7}.flash-word{font-size:clamp(40px,5vw,62px);font-weight:850;letter-spacing:-2px;line-height:1.4;overflow-wrap:anywhere}.flash-meaning{font-size:30px;color:#477c5b;font-weight:800;margin-top:8px}.flash-placeholder{margin-top:12px;color:#a7b4a9;font-size:18px}.flash-example{margin:18px 0 0;max-width:520px;line-height:1.8;font-size:24px;color:#637f6b}.flash-example small{display:block;font-size:18px;color:#9eaa9f}.speak-btn{border:0;background:#e6f4eb;color:#3d8262;border-radius:50%;height:46px;width:46px;font-size:28px;display:grid;place-items:center;margin-top:12px}.flash-actions{display:flex;gap:10px;justify-content:center;margin-top:17px;flex-wrap:wrap}.side-note{border-radius:22px;background:#fff;border:1px solid #e9eee7;padding:22px;margin-bottom:14px}.side-note .note-title{font-size:19px;font-weight:800;display:flex;align-items:center;gap:8px;margin-bottom:13px}.side-note p{font-size:18px;color:#829187;line-height:1.85;margin:6px 0}.side-note .rule{font-size:20px;color:#4c8262;font-weight:800;background:#eff7f0;padding:12px;border-radius:12px}.word-list{display:grid;gap:6px;max-height:385px;overflow:auto}.word-row{border:0;background:#fff;border-radius:11px;padding:10px 11px;display:flex;align-items:center;gap:9px;text-align:left;color:#4b6755;width:100%}.word-row:hover,.word-row.active{background:#edf5ed}.word-row .list-emoji{font-size:28px;width:28px}.word-row strong{font-size:18px}.word-row small{display:block;color:#9caa9e;font-size:17px}.word-row .done{margin-left:auto;color:#5aab72;font-size:20px}.quiz-card{background:white;border:1px solid var(--line);border-radius:26px;padding:32px;min-height:470px;box-shadow:var(--shadow)}.quiz-label{color:#91a193;font-size:17px;font-weight:800;letter-spacing:1px}.quiz-title{font-size:33px;margin:15px 0 10px;line-height:1.6}.quiz-prompt{background:#f3f8f2;padding:19px;border-radius:18px;margin:16px 0 23px;text-align:center}.quiz-prompt .large{font-size:55px;font-weight:850;letter-spacing:-1px;overflow-wrap:anywhere}.quiz-prompt .chinese{font-size:30px;font-weight:800}.options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.option{border:1px solid #e2e9e0;text-align:left;background:white;border-radius:13px;min-height:63px;padding:13px 15px;font-size:22px;color:#445e4d;font-weight:750;display:flex;align-items:center;gap:11px}.option .letter{display:grid;place-items:center;background:#f3f6f1;width:25px;height:25px;border-radius:8px;color:#9aab9e;font-size:17px;flex-shrink:0}.option:hover:not(:disabled){border-color:#8abd98;background:#f7fbf7}.option.correct{background:#e8f7ed;border-color:#6bb987;color:#328159}.option.wrong{background:#fff0ed;border-color:#eeb0a8;color:#b45d50}.quiz-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:19px;flex-wrap:wrap}.feedback{font-size:19px;font-weight:750;color:#63906d}.feedback.bad{color:#bd7465}.spelling-field{width:100%;max-width:460px;margin:6px auto 10px;display:block;text-align:center;font-size:34px;font-weight:800;letter-spacing:2px;border-radius:15px;border:2px solid #dfebe1;padding:15px;color:#38674d;outline:none}.spelling-field:focus{border-color:#82c19c}.tip-text{color:#9aa99e;font-size:18px}.sentence-quote{line-height:2.1;font-size:clamp(25px,3vw,35px);font-weight:750;color:#406e52;text-align:center}.blank-word{display:inline-block;min-width:75px;border-bottom:2px dashed #10B981;color:#10B981}.result-score{font-size:84px;font-weight:850;color:#4d966c;letter-spacing:-4px}.review-empty{max-width:720px;margin:20px auto}.dict-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:22px}.search-box{flex:1;min-width:220px;max-width:480px;position:relative}.search-box input{border:1px solid #e0e8df;border-radius:14px;padding:13px 14px 13px 40px;background:#fff;width:100%;outline:none;font-size:19px}.search-box:before{content:'⌕';position:absolute;left:13px;top:7px;font-size:34px;color:#91a999}.select{padding:11px 13px;border-radius:12px;border:1px solid #e2e9e2;background:white;color:#68816e;font-weight:700;font-size:18px}.dictionary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.dictionary-item{background:white;border-radius:18px;border:1px solid #e8ece5;padding:16px;display:flex;gap:12px;align-items:center;min-height:98px}.dictionary-item .pic{height:53px;width:53px;flex-shrink:0;display:grid;place-items:center;border-radius:16px;background:#f2f7ed;font-size:36px}.dictionary-item strong{display:block;font-size:22px;color:#42634b}.dictionary-item small{color:#8ca08f;font-size:17px;display:block;margin-top:2px}.dictionary-item .dict-audio{border:0;background:none;color:#689b7e;margin-left:auto;font-size:26px}.status-dot{display:inline-block;width:8px;height:8px;background:#d5dfd3;border-radius:50%;margin-right:5px}.status-dot.mastered{background:#10B981}.status-dot.learning{background:#efbf72}.parent-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.parent-card{padding:26px}.parent-card h2{font-size:24px;margin:0 0 13px}.parent-card p{font-size:18px;color:#83968a;line-height:1.9}.setting{padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:13px;border-bottom:1px solid #edf0ec;font-size:19px;font-weight:750}.setting:last-child{border:0}.setting small{display:block;color:#99a59b;font-size:17px;font-weight:400;margin-top:3px}.setting select{border:1px solid #e0e7e0;padding:8px;border-radius:9px;color:#567562;background:#fff;font-size:18px;min-width:100px}.bar-row{display:flex;align-items:center;gap:9px;padding:10px 0;font-size:18px;color:#6a7f70}.bar-row .bar-unit{width:120px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-row .bar-pct{width:38px;text-align:right;color:#57916a}.bar-row .progress-track{flex:1;height:8px}.note-banner{padding:16px 20px;background:#fff6e7;border:1px solid #f5e8d4;border-radius:15px;color:#926c3f;font-size:18px;line-height:1.8}.hint-card{padding:18px 22px;border-radius:19px;background:#f0f6f3;border:1px solid #e5ede5}.hint-card p{margin:6px 0;color:#839485;font-size:18px}.alert-box{background:#fff3ee;padding:12px 17px;border-radius:14px;color:#ae7760;font-size:18px}.modal-root{position:fixed;z-index:50;inset:0;pointer-events:none}.modal-root.open{pointer-events:auto}.modal-backdrop{position:absolute;inset:0;background:#22362a70;display:grid;place-items:center;padding:18px}.modal{width:100%;max-width:480px;background:white;border-radius:23px;padding:25px;box-shadow:0 24px 70px #1c352a35}.modal h2{margin:0 0 10px;font-size:28px}.modal p{font-size:19px;color:#748676;line-height:1.7}.modal-actions{display:flex;gap:9px;justify-content:end;margin-top:20px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#263d2f;color:#fff;border-radius:12px;padding:12px 20px;font-size:18px;z-index:100;transition:.2s;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.micro{font-size:17px;color:#9aa89e}.focus-line{font-size:18px;color:#8d9f90;margin:8px 0 20px}.rows{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bento-note{margin-top:20px;background:#e9f3e9;border:1px solid #e3ede5;border-radius:22px;padding:20px;display:flex;align-items:center;gap:18px}.bento-note .illustration{font-size:58px}.bento-note strong{font-size:20px}.bento-note p{margin:2px 0;font-size:18px;color:#7e9986}.learn-stats{display:flex;justify-content:center;gap:17px;color:#819788;font-size:18px;margin:10px 0 0}.tiny-icon{font-size:26px}.bottom-buttons{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:1180px){.sidebar{width:220px}.brand strong em{display:none}.view{padding:28px 25px}.topbar{padding:0 25px}.unit-strip,.course-grid,.dictionary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1fr) 280px}.learn-layout{grid-template-columns:minmax(0,1fr) 230px}}@media(max-width:900px){.sidebar{display:none}.topbar{height:64px}.view{padding:25px 20px 95px}.footer{padding:15px 20px 90px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid #e3e9e2;z-index:30;justify-content:space-around;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;color:#9eada0;display:flex;flex-direction:column;align-items:center;font-size:17px;font-weight:750;gap:2px;padding:3px 10px;min-width:56px}.mobile-nav button span{font-size:32px;line-height:25px}.mobile-nav button.active{color:#064E3B}.toast{bottom:90px}.hero{min-height:225px}}@media(max-width:680px){.hero{padding:26px 22px;grid-template-columns:1fr;min-height:230px}.hero h1{font-size:38px}.hero-art{display:none}.page-head h1{font-size:37px}.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metric{min-height:106px;padding:16px}.metric strong{font-size:34px}.split,.learn-layout,.parent-grid{grid-template-columns:1fr}.unit-strip,.course-grid{grid-template-columns:1fr 1fr;gap:10px}.course-card{padding:17px;min-height:205px}.course-emoji{width:56px;height:56px;font-size:38px}.unit-card{padding:14px;min-height:151px}.unit-icon{width:44px;height:44px;font-size:33px}.dictionary-grid{grid-template-columns:1fr 1fr}.dictionary-item{min-height:90px;padding:11px;gap:8px}.dictionary-item .pic{height:44px;width:44px;font-size:30px}.dictionary-item strong{font-size:19px}.top-date{display:none}.course-head{padding:15px;gap:12px;flex-wrap:wrap}.course-head .big-emoji{font-size:41px}.course-head h2{font-size:24px}.course-head .unit-actions{width:100%;margin:0}.course-head .unit-actions button{flex:1}.flashcard{min-height:395px;padding:28px 12px}.flash-emoji{height:111px;width:111px;font-size:78px}.flash-word{font-size:47px}.flash-actions{margin-bottom:10px}.flash-actions .btn{flex:1}.options{grid-template-columns:1fr}.quiz-card{padding:20px;min-height:420px}.quiz-title{font-size:27px}.quiz-prompt .large{font-size:46px}.study-top{margin-bottom:13px}.footer{display:none}.topbar{padding:0 20px}.tabs{width:100%;justify-content:space-around}.tab{padding:9px 10px}.bar-row .bar-unit{width:85px}.side-note{padding:17px}.page-head{align-items:start;flex-direction:column}}@media(max-width:400px){.view{padding-left:14px;padding-right:14px}.dictionary-grid{grid-template-columns:1fr}.course-grid{grid-template-columns:1fr}.hero h1{font-size:34px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* 不让首页单元卡被右侧计划面板强制拉高 */
.split{align-items:start}
.course-card[data-unit]{cursor:pointer}
.course-card[data-unit]:focus-visible{outline:3px solid #86bf9a;outline-offset:3px}

/* Grades 3–6 course navigation and grouped progress */
.grade-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}
.grade-pill{border:1px solid #e3eae3;border-radius:15px;background:white;color:#698376;font-size:23px;font-weight:850;min-height:57px;display:flex;justify-content:center;align-items:center;gap:8px;transition:background .15s,color .15s}
.grade-pill.active{background:#dbefdf;color:#317b55;border-color:#b8dac3}
.grade-pill:hover{border-color:#a6cab2}
.semester-tabs .tab{min-width:98px}
.course-toolbar{align-items:center;gap:12px;flex-wrap:wrap}
.book-intro{padding:15px 18px;margin-bottom:19px;border-radius:15px;border:1px solid #e7eee5;background:#fff;display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:18px;color:#829387}
.book-intro strong{font-size:22px;color:#315f48}
.book-intro span:last-child{margin-left:auto}
.grade-progress{border:1px solid #ebf0e9;border-radius:14px;margin:11px 0;padding:0 12px 9px}
.grade-progress summary{font-weight:800;padding:13px 3px;cursor:pointer;color:#3d775a;list-style-position:inside}
.grade-progress summary span{float:right;font-weight:600;font-size:17px;color:#84998b}
.progress-book-title{font-size:18px;font-weight:800;color:#788b7d;margin:14px 0 6px;border-bottom:1px solid #edf0e9;padding-bottom:8px}
.grade-progress .bar-unit{width:134px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:720px){.grade-nav{gap:7px}.grade-pill{font-size:20px;min-height:48px;border-radius:12px}.book-intro{gap:7px}.book-intro span:last-child{margin-left:0}.grade-progress summary span{font-size:17px}.grade-progress .bar-unit{width:100px}}
@media(max-width:390px){.grade-pill{font-size:18px}.grade-progress .bar-unit{width:85px}}
/* 深度记忆 DeepMem · 练习与教学相关样式 */
.term-tags{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin-top:7px}.term-tags span{font-size:17px;color:#62816b;background:#edf5ec;padding:5px 10px;border-radius:20px}.variant-note{margin:10px auto 0;max-width:500px;color:#795f36;background:#fff8e8;border:1px solid #f3e4c5;border-radius:12px;padding:9px 12px;font-size:18px;line-height:1.8}.focus-note{background:#eff8f2;border:1px solid #dceee2;color:#54775f;border-radius:14px;padding:13px 18px;margin:-4px 0 17px;font-size:18px;line-height:1.8}.inline-action{font:inherit;background:transparent;border:0;border-bottom:1px dashed #4a9166;color:#34794d;padding:0 3px;font-weight:800;cursor:pointer}.practice-aside{position:sticky;top:15px}.practice-aside button{margin-top:14px}.mode-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mode-stat-grid>div{background:#f1f8f2;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:5px}.mode-stat-grid strong{font-size:18px;color:#3e7657}.mode-stat-grid span{font-size:17px;color:#7a9980;line-height:1.5}.trend-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;padding:12px 3px}.trend-day{text-align:center;min-width:0}.trend-bars{height:80px;display:flex;align-items:end;gap:4px;justify-content:center;background:#f6faf6;border-radius:10px;padding:6px}.trend-bars i,.trend-bars b{width:14px;min-height:3px;border-radius:4px 4px 2px 2px;display:block;max-width:44%;background:#78bb8d}.trend-bars b{background:#edae79}.trend-day small{font-size:17px;color:#81988b;display:block;margin-top:7px}.note-banner a{color:#427758;text-decoration:underline;text-underline-offset:3px}.quiz-card .spelling-field{margin-top:18px}.quiz-card .tip-text:empty{display:none}.modal-root.open .modal{max-height:90vh;overflow:auto}.flashcard button,.quiz-card button,.modal button{touch-action:manipulation}
@media(max-width:900px){.practice-aside{display:none}.learn-layout{grid-template-columns:minmax(0,1fr)}.focus-note{margin-top:-7px}.course-head{flex-wrap:wrap}.course-head .unit-actions{margin-left:0;flex-wrap:wrap;width:100%}}
@media(max-width:560px){.quiz-card{padding:22px 17px;min-height:390px}.quiz-title{font-size:29px}.course-head{padding:16px;gap:12px}.course-head .big-emoji{font-size:42px}.focus-note{padding:10px 13px}.mode-stat-grid{grid-template-columns:1fr}.mode-stat-grid>div{flex-direction:row;justify-content:space-between;gap:10px}.trend-grid{gap:4px}.trend-bars{padding:4px;gap:2px}.trend-bars i,.trend-bars b{width:10px}.trend-day small{font-size:17px}}

.flash-word,.chinese,.sentence-quote,.word-row strong,.dictionary-item strong,.option,.flash-meaning{overflow-wrap:anywhere;word-break:break-word}.flash-meaning{white-space:normal}.course-card,.quiz-card,.flashcard{min-width:0}

.word-icon{display:inline-block;width:1em;height:1em;vertical-align:-.15em;flex-shrink:0;max-width:100%}.list-emoji{flex-shrink:0}.list-emoji .word-icon{width:22px;height:22px}.flash-emoji .word-icon{width:84px;height:84px}.dictionary-item .pic .word-icon{width:34px;height:34px}

/* ===== DeepMem 儿童友好覆盖层：大字、大按钮、高对比、新配色 ===== */
:root{--green:#064E3B;--green2:#E3F5EC;--green3:#A7F3D0;--ink:#10241D;--soft:#36564A;--accent:#FBBF24;--radius:28px}
body{font-size:19px;line-height:1.6;font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",ui-rounded,system-ui,sans-serif;color:var(--ink)}
.dm-icon{width:1.15em;height:1.15em;vertical-align:-.2em;display:inline-block;flex-shrink:0}
/* 品牌 */
.brand-mark{width:56px;height:56px;background:#fff;border:2px solid #D1FAE5;border-radius:18px}
.brand-mark img{width:42px;height:42px}
.brand strong{font-size:23px;color:var(--green)}
.brand strong em{font-size:15px;color:#047857}
.brand small{font-size:14px;color:#36564A}
.sidebar{width:280px}
.sidebar-label{color:#6B8F80}
.nav-link{height:58px;font-size:19px;color:#2F4F42;font-weight:750}
.nav-link span{width:28px;font-size:24px}
.nav-link.active,.nav-link:hover{background:#D1FAE5;color:var(--green)}
.side-bottom{background:linear-gradient(150deg,#D1FAE5,#FEF3C7)}
.side-bottom .mascot .dm-icon{width:84px;height:84px}
.side-bottom p{color:#36564A}
.mini-pill{min-height:48px;padding:10px 18px;background:var(--green);color:#fff}
.topbar{background:#fff}
.breadcrumbs{color:#2F4F42}
.tiny-sun .dm-icon{width:28px;height:28px}
.sound-toggle{width:52px;height:52px;border-radius:16px;border:2px solid #A7F3D0;display:grid;place-items:center}
.sound-toggle .dm-icon{width:28px;height:28px}
/* 首页大横幅 */
.hero{background:linear-gradient(115deg,#064E3B 0%,#065F46 55%,#0F766E 100%);color:#fff;border:0}
.hero:before,.hero:after{border-color:#ffffff22}
.hero .eyebrow{color:#FDE68A}
.hero p{color:#D1FAE5;max-width:560px}
.hero .btn-primary{background:var(--accent);color:#10241D}
.hero .btn-primary:hover{background:#F59E0B}
.hero .btn-white,.hero .btn-light,.hero .btn-outline{background:#fff;color:var(--green)}
.art-bubble{width:220px;height:220px;background:#D1FAE5;box-shadow:18px 15px 0 #FBBF24}
.art-bubble .dm-icon{width:170px;height:170px;transform:rotate(8deg)}
.hero-art .b1,.hero-art .b2{color:var(--green)}
/* 按钮：点击区 ≥48px */
.btn{min-height:52px;padding:12px 24px;border-radius:16px}
.btn-sm{min-height:48px;padding:10px 16px}
.btn-primary{background:var(--green)}
.tab,.grade-pill,.option,.select,.section-title button,.dict-audio,.flash-audio,.mobile-nav button{min-height:48px}
.tab{padding:10px 18px}
.grade-pill{padding:10px 20px}
/* 文字颜色加深，保证对比度 */
.page-head p,.hint,.micro,.unit-card small,.unit-bottom,.todo small,.metric small,.metric .metric-top,.dictionary-item small,.tip-text,.focus-line,.bento-note p,.learn-stats,.hint-card p,.modal p,.side-note p{color:#3F5F52!important}
.kicker{color:#047857}
.metric strong{font-size:40px;color:var(--green)}
.metric .metric-top span .dm-icon,.todo-icon .dm-icon{width:30px;height:30px}
.todo-icon{width:52px;height:52px}
.unit-icon{width:64px;height:64px}.unit-icon .dm-icon{width:38px;height:38px}
.course-emoji .dm-icon,.big-emoji .dm-icon{width:1em;height:1em}
.progress-track{height:10px}.progress-fill{background:#10B981}
/* 单词卡 */
.flash-word{font-size:clamp(48px,8vw,80px)!important;color:var(--green);letter-spacing:0}
.flash-emoji{width:170px!important;height:170px!important;background:#ECFDF5}
.flash-emoji .word-icon{width:140px!important;height:140px!important}
.dictionary-item .pic{width:68px;height:68px;background:#ECFDF5}
.dictionary-item .pic .word-icon{width:58px;height:58px}
.dictionary-item strong{font-size:22px;color:var(--green)}
.dictionary-item .dict-audio{min-width:48px}
.dictionary-item .dict-audio .dm-icon{width:28px;height:28px}
.list-emoji .word-icon{width:32px;height:32px}
.option{font-size:20px;min-height:68px}
.option .letter{width:32px;height:32px;font-size:16px}
.spelling-field{font-size:32px}
.search-box input{font-size:19px;min-height:54px}
.quiz-prompt .dm-icon{width:64px;height:64px}
.rate-row{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.rate-row .btn{flex:1}
.modal .dm-icon{width:28px;height:28px}
.footer{font-size:16px;color:#3F5F52}
/* 手机 */
@media(max-width:900px){
 .mobile-nav button{font-size:16px;color:#3F5F52;min-width:72px}
 .mobile-nav button .dm-icon{width:28px;height:28px}
 .mobile-nav button.active{color:var(--green);background:#D1FAE5;border-radius:14px}
 .view{padding-bottom:110px}
}
@media(max-width:680px){
 body{font-size:17px}
 .hero h1{font-size:30px}
 .metric strong{font-size:32px}
 .unit-strip,.course-grid,.dictionary-grid{grid-template-columns:1fr}
 .flash-word{font-size:46px!important}
 .flash-emoji{width:140px!important;height:140px!important}
 .flash-emoji .word-icon{width:116px!important;height:116px!important}
 .options{grid-template-columns:1fr}
}
/* 手机顶部显示 logo；学习模式标签改为两行网格，避免文字竖排 */
.mobile-logo{display:none}
@media(max-width:900px){.mobile-logo{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--green);font-size:19px;white-space:nowrap}.mobile-logo img{width:40px;height:40px}.tiny-sun{display:none}}
@media(max-width:680px){
 .tabs{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}
 .tab{white-space:nowrap;padding:10px 6px;font-size:17px;justify-content:center;display:flex;align-items:center;gap:4px}
 #bread{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
 .breadcrumbs{min-width:0}
}
@media(max-width:680px){.flash-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}.flash-actions .btn{white-space:nowrap;font-size:17px;padding:12px 8px}.flash-actions .btn:first-child{grid-column:1/-1}}
.flash-note,.flash-sub,.flash-help{color:#3F5F52}
/* ===== 新单词图标（WebP）：一律放在浅色底容器里，保持正方形不变形 ===== */
.word-img{object-fit:contain;aspect-ratio:1/1;display:block}
.flash-emoji{background:#F0FDF4!important;border-radius:32px}
.flash-emoji .word-img{width:150px!important;height:150px!important}
.quiz-pic{width:180px;height:180px;margin:0 auto 10px;background:#F0FDF4;border-radius:28px;display:grid;place-items:center}
.quiz-pic .word-img{width:160px;height:160px}
.dictionary-item .pic,.list-emoji{background:#F0FDF4;border-radius:16px}
.dictionary-item .pic .word-img{width:60px;height:60px}
.list-emoji{width:44px;height:44px;display:grid;place-items:center}
.list-emoji .word-img{width:40px;height:40px}
.btn .word-img{width:32px;height:32px;display:inline-block;background:#F0FDF4;border-radius:8px}
.word-icon-missing{display:grid;place-items:center;width:100%;height:100%;min-width:40px;min-height:40px;background:#ECFDF5;border:2px dashed #A7F3D0;border-radius:14px;color:#047857;font-weight:800;font-size:22px}
@media(max-width:680px){.flash-emoji .word-img{width:124px!important;height:124px!important}.quiz-pic{width:150px;height:150px}.quiz-pic .word-img{width:132px;height:132px}}
.list-emoji{flex:0 0 48px!important;width:48px!important;height:48px!important}
.list-emoji .word-img{width:44px!important;height:44px!important}

/* 弹窗打开：锁滚动；背景由 inert 处理 */
body.modal-open{overflow:hidden;touch-action:none}
.modal-root.open .modal-backdrop{overscroll-behavior:contain}
.modal [tabindex="-1"]:focus{outline:none}
.rate-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}

a.dictionary-item:focus-visible{outline:3px solid #7fb69b;outline-offset:3px}
a.dictionary-item .dict-audio{position:relative;z-index:1}

/* 词库卡片：主区域链接打开单词卡，喇叭按钮独立播音 */
.dictionary-item{position:relative}
a.dictionary-item-main{display:flex;align-items:center;gap:inherit;flex:1;min-width:0;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent;border-radius:inherit}
a.dictionary-item-main:focus-visible{outline:3px solid #7fb69b;outline-offset:2px}
a.dictionary-item-main .pic,a.dictionary-item-main>span.pic{flex-shrink:0}
.dictionary-item .dict-audio{flex-shrink:0}

/* ===== v3 配色系统：品牌色 + 儿童友好辅助色（全部用 CSS 变量管理） =====
   每种辅助色三档：--x 中间色（装饰/边框）、--x-bg 浅底（放图标/卡片底）、--x-ink 深色文字（与浅底对比度 ≥ 4.5:1） */
:root{
 --brand:#064E3B; --brand-2:#065F46; --brand-yellow:#FBBF24; --brand-yellow-bg:#FEF3C7; --brand-yellow-ink:#78350F;
 --sky:#38BDF8;   --sky-bg:#E0F2FE;   --sky-ink:#075985;
 --coral:#FB923C; --coral-bg:#FFEDD5; --coral-ink:#9A3412;
 --berry:#F472B6; --berry-bg:#FCE7F3; --berry-ink:#9D174D;
 --mint:#34D399;  --mint-bg:#D1FAE5;  --mint-ink:#065F46;
 --sun:#FACC15;   --sun-bg:#FEF9C3;   --sun-ink:#713F12;
 --grape:#A78BFA; --grape-bg:#EDE9FE; --grape-ink:#5B21B6;
 --page-bg:#FBFDF9;
}
body{background:var(--page-bg) radial-gradient(circle at 92% 6%,#FEF3C7 0,transparent 260px) no-repeat,radial-gradient(circle at 4% 96%,#E0F2FE 0,transparent 300px) no-repeat}
.view{position:relative}
/* 每个带颜色的元素都用 --c / --c-bg / --c-ink 三个局部变量 */
.c-sky,.course-card:nth-child(6n+1),.unit-card:nth-child(6n+1),.metric:nth-child(4n+1),.grade-pill:nth-child(4n+1){--c:var(--sky);--c-bg:var(--sky-bg);--c-ink:var(--sky-ink)}
.course-card:nth-child(6n+2),.unit-card:nth-child(6n+2),.metric:nth-child(4n+2),.grade-pill:nth-child(4n+2){--c:var(--coral);--c-bg:var(--coral-bg);--c-ink:var(--coral-ink)}
.course-card:nth-child(6n+3),.unit-card:nth-child(6n+3),.metric:nth-child(4n+3),.grade-pill:nth-child(4n+3){--c:var(--berry);--c-bg:var(--berry-bg);--c-ink:var(--berry-ink)}
.course-card:nth-child(6n+4),.unit-card:nth-child(6n+4),.metric:nth-child(4n+4),.grade-pill:nth-child(4n+4){--c:var(--mint);--c-bg:var(--mint-bg);--c-ink:var(--mint-ink)}
.course-card:nth-child(6n+5){--c:var(--sun);--c-bg:var(--sun-bg);--c-ink:var(--sun-ink)}
.course-card:nth-child(6n+6){--c:var(--grape);--c-bg:var(--grape-bg);--c-ink:var(--grape-ink)}
/* 单元卡片：顶部彩条 + 浅色渐变 + 浅色图标底 */
.course-card,.unit-card{border:2px solid color-mix(in srgb,var(--c) 35%,#fff)!important;background:linear-gradient(160deg,var(--c-bg) 0%,#fff 62%)!important;position:relative;overflow:hidden}
.course-card:before,.unit-card:before{content:'';position:absolute;left:0;right:0;top:0;height:7px;background:var(--c)}
.course-card:after,.unit-card:after{content:'';position:absolute;right:-26px;bottom:-26px;width:90px;height:90px;border-radius:50%;background:var(--c);opacity:.13}
.course-card .num,.unit-card strong{color:var(--c-ink)!important}
.course-emoji,.unit-icon,.big-emoji{background:#fff!important;border:2px solid var(--c,var(--mint));border-radius:20px!important;display:grid!important;place-items:center;overflow:hidden}
.course-emoji{width:84px!important;height:84px!important}.course-emoji .word-img{width:72px;height:72px}
.unit-icon{width:72px!important;height:72px!important}.unit-icon .word-img{width:62px;height:62px}
.big-emoji{width:84px;height:84px;--c:var(--sky)}.big-emoji .word-img{width:72px;height:72px}
.course-card .progress-fill,.unit-card .progress-fill{background:var(--c)}
/* 统计卡 */
.metric{background:linear-gradient(150deg,var(--c-bg),#fff 70%)!important;border:2px solid color-mix(in srgb,var(--c) 30%,#fff)!important}
.metric strong{color:var(--c-ink)!important}
.metric .metric-top span{background:#fff;border-radius:14px;padding:6px;display:grid;place-items:center}
/* 年级/学期选择 */
.grade-pill{background:var(--c-bg)!important;color:var(--c-ink)!important;border:2px solid transparent!important;font-weight:800}
.grade-pill.active{background:var(--c)!important;color:#10241D!important;border-color:color-mix(in srgb,var(--c) 70%,#000)!important;box-shadow:0 6px 0 color-mix(in srgb,var(--c) 45%,#fff)}
.semester-tabs .tab:nth-child(1){--c:var(--mint);--c-bg:var(--mint-bg);--c-ink:var(--mint-ink)}
.semester-tabs .tab:nth-child(2){--c:var(--coral);--c-bg:var(--coral-bg);--c-ink:var(--coral-ink)}
/* 学习模式标签：每种模式一个颜色 */
.tab[data-mode="flash"]{--c:var(--sky);--c-bg:var(--sky-bg);--c-ink:var(--sky-ink)}
.tab[data-mode="listen"]{--c:var(--coral);--c-bg:var(--coral-bg);--c-ink:var(--coral-ink)}
.tab[data-mode="spell"]{--c:var(--berry);--c-bg:var(--berry-bg);--c-ink:var(--berry-ink)}
.tab[data-mode="sentence"],.tab[data-mode="choose"],.tab[data-mode="meaning"]{--c:var(--mint);--c-bg:var(--mint-bg);--c-ink:var(--mint-ink)}
.tab[data-mode="phonics"]{--c:var(--grape);--c-bg:var(--grape-bg);--c-ink:var(--grape-ink)}
.tabs{background:#fff!important;border:2px solid #EEF2EE;gap:6px}
.tab{color:var(--c-ink,var(--brand))!important;background:var(--c-bg,#fff)!important;border-radius:14px!important;font-weight:800}
.tab.active{background:var(--c,var(--mint))!important;color:#10241D!important;box-shadow:0 4px 0 color-mix(in srgb,var(--c,#34D399) 50%,#fff)}
/* 侧栏 / 底部导航高亮：每个入口一个颜色 */
.side-nav .nav-link:nth-child(1),.mobile-nav button:nth-child(1){--c:var(--mint);--c-bg:var(--mint-bg);--c-ink:var(--mint-ink)}
.side-nav .nav-link:nth-child(2),.mobile-nav button:nth-child(2){--c:var(--sky);--c-bg:var(--sky-bg);--c-ink:var(--sky-ink)}
.side-nav .nav-link:nth-child(3),.mobile-nav button:nth-child(3){--c:var(--coral);--c-bg:var(--coral-bg);--c-ink:var(--coral-ink)}
.side-nav .nav-link:nth-child(4),.mobile-nav button:nth-child(4){--c:var(--berry);--c-bg:var(--berry-bg);--c-ink:var(--berry-ink)}
.nav-link.active,.nav-link:hover,.mobile-nav button.active{background:var(--c-bg)!important;color:var(--c-ink)!important;box-shadow:inset 5px 0 0 var(--c)}
.mobile-nav button.active{box-shadow:inset 0 -4px 0 var(--c)}
/* 按钮 */
.btn-primary{background:var(--brand)!important;color:#fff!important;box-shadow:0 5px 0 #022C22}
.btn-peach{background:var(--coral-bg)!important;color:var(--coral-ink)!important;border:2px solid var(--coral)!important}
.btn-light{background:var(--sky-bg)!important;color:var(--sky-ink)!important}
.btn-outline{background:#fff!important;color:var(--brand)!important;border:2px solid var(--mint)!important}
.btn-nav{background:var(--sun-bg)!important;color:var(--sun-ink)!important;border:2px solid var(--brand-yellow)!important;font-weight:800}
.btn-nav:disabled{opacity:.5}
.hero .btn-primary{background:var(--brand-yellow)!important;color:#10241D!important;box-shadow:0 5px 0 #B45309}
/* 首页横幅加装饰色块 */
.hero{background:radial-gradient(circle at 85% 20%,#0EA5E955 0,transparent 220px),radial-gradient(circle at 70% 110%,#F472B655 0,transparent 240px),linear-gradient(115deg,#064E3B,#065F46 55%,#0F766E)!important}
.todo:nth-of-type(1) .todo-icon{background:var(--coral-bg)}.todo:nth-of-type(2) .todo-icon{background:var(--sky-bg)}.todo:nth-of-type(3) .todo-icon{background:var(--berry-bg)}.todo:nth-of-type(4) .todo-icon{background:var(--grape-bg)}
.book-intro{background:linear-gradient(90deg,var(--sky-bg),var(--sun-bg))!important;border-radius:18px;color:var(--sky-ink)}
.dictionary-item:nth-child(4n+1){border-left:6px solid var(--sky)!important}.dictionary-item:nth-child(4n+2){border-left:6px solid var(--coral)!important}.dictionary-item:nth-child(4n+3){border-left:6px solid var(--berry)!important}.dictionary-item:nth-child(4n+4){border-left:6px solid var(--mint)!important}
.side-note{border-top:5px solid var(--grape)!important}
.kicker{color:var(--coral-ink)!important}
.page-head h1{background:linear-gradient(90deg,var(--brand),#0E7490);-webkit-background-clip:text;background-clip:text;color:transparent}
/* ===== 1. 单词卡标签不再压在图片上 ===== */
.flash-tag{position:static!important;align-self:center;margin:0 0 16px;background:var(--sky-bg)!important;color:var(--sky-ink)!important}
.flashcard{justify-content:flex-start!important;border:3px solid var(--sky-bg)!important;background:linear-gradient(180deg,#F0F9FF,#fff 45%)!important}
.flash-emoji{background:#fff!important;border:3px solid var(--mint-bg);box-shadow:8px 8px 0 var(--sun-bg)!important}
/* ===== 2. 上一个 / 下一个 同宽同高并排 ===== */
.flash-actions.is-nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px;max-width:520px;margin-left:auto;margin-right:auto}
.flash-actions.is-nav .btn{width:100%;min-height:56px;grid-column:auto!important}
.flash-actions.is-revealed{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:12px}
.flash-actions.is-revealed .btn{min-height:56px;width:100%}
@media(max-width:680px){.flash-actions.is-revealed{grid-template-columns:1fr 1fr}.flash-actions.is-revealed .btn:first-child{grid-column:1/-1}}
/* ===== 6. 拼写输入框 ===== */
.spelling-field{font-size:clamp(22px,6vw,32px)!important;max-width:100%}
.spelling-field::placeholder{font-size:.75em;color:#6B7F75}

/* ===== v4 单词卡主题（来自 icons/card-colors.css）：浅底+图标方块上色；文字/按钮/焦点/选中仍用品牌深绿 ===== */
.dm-themed{--dm-card-bg:#EFF9F2;--dm-icon-bg:#DFF1E5;--dm-accent:#93BFA3;--dm-text:#2B5641}
.dm-themed[data-theme="lemon"]{--dm-card-bg:#FFF9E5;--dm-icon-bg:#FFF0BC;--dm-accent:#D9B957;--dm-text:#5D4B20}
.dm-themed[data-theme="peach"]{--dm-card-bg:#FFF1E9;--dm-icon-bg:#FFE2D0;--dm-accent:#DE9B78;--dm-text:#663D2C}
.dm-themed[data-theme="rose"]{--dm-card-bg:#FFF0F5;--dm-icon-bg:#FFDFEB;--dm-accent:#D890AA;--dm-text:#69384C}
.dm-themed[data-theme="sky"]{--dm-card-bg:#EDF7FF;--dm-icon-bg:#DCEEFF;--dm-accent:#8CB9D9;--dm-text:#294E69}
.dm-themed[data-theme="lavender"]{--dm-card-bg:#F4F0FF;--dm-icon-bg:#E8E0FF;--dm-accent:#B29BD9;--dm-text:#51416D}
.dm-themed[data-theme="pistachio"]{--dm-card-bg:#F5F9E9;--dm-icon-bg:#E9F1CF;--dm-accent:#A8BC70;--dm-text:#465329}
.dm-themed[data-theme="aqua"]{--dm-card-bg:#ECF9F8;--dm-icon-bg:#D8F1EE;--dm-accent:#7DBDB4;--dm-text:#295651}
.dm-themed[data-theme="mint"]{--dm-card-bg:#EFF9F2;--dm-icon-bg:#DFF1E5;--dm-accent:#93BFA3;--dm-text:#2B5641}

/* 单词卡 */
.flashcard.dm-themed{background:var(--dm-card-bg)!important;border:2px solid var(--dm-accent)!important}
.flashcard.dm-themed .flash-tag{background:#fff!important;color:var(--dm-text)!important}
.flashcard.dm-themed .flash-emoji{background:var(--dm-icon-bg)!important;border:2px solid var(--dm-accent)!important;box-shadow:none!important}
.flashcard.dm-themed .flash-word{color:#064E3B!important}
.flashcard.dm-themed .term-tags span{background:#fff;color:var(--dm-text)}
.flashcard.dm-themed .flash-meaning{color:#064E3B!important}
.flashcard.dm-themed .flash-placeholder,.flashcard.dm-themed .flash-example,.flashcard.dm-themed .flash-example small,.flashcard.dm-themed .flash-example div{color:var(--dm-text)!important;opacity:1}
.flashcard.dm-themed .speak-btn{background:var(--dm-icon-bg)!important;color:#064E3B!important;border:2px solid #064E3B!important;min-width:48px;min-height:48px}
.flashcard.dm-themed .btn-outline{background:#064E3B!important;color:#fff!important;border-color:#064E3B!important}
/* 词库项 */
.dictionary-item.dm-themed{background:var(--dm-card-bg)!important;border:1.5px solid var(--dm-accent)!important;border-left-width:1.5px!important}
.dictionary-item.dm-themed .pic{background:var(--dm-icon-bg)!important}
.dictionary-item.dm-themed strong{color:#064E3B!important}
.dictionary-item.dm-themed small{color:var(--dm-text)!important}
.dictionary-item.dm-themed .dict-audio{color:#064E3B!important;min-width:48px;min-height:48px;border-radius:50%}
/* 单元词表 */
.word-row.dm-themed{background:var(--dm-card-bg)!important;border:1.5px solid var(--dm-accent)!important;border-radius:16px;margin-bottom:8px;width:100%}
.word-row.dm-themed .list-emoji{background:var(--dm-icon-bg)!important}
.word-row.dm-themed strong{color:#064E3B!important}
.word-row.dm-themed small{color:var(--dm-text)!important}
.word-row.dm-themed.active{border:3px solid #064E3B!important;box-shadow:0 0 0 2px #fff inset}
.dm-themed:focus-visible,.dm-themed :focus-visible{outline:3px solid #064E3B!important;outline-offset:3px}
@media(forced-colors:active){.dm-themed{border-color:CanvasText!important}}
.flash-actions.is-revealed .btn{white-space:nowrap;font-size:18px;padding-left:8px;padding-right:8px}

/* ===== v5 卡片 3D 动效（只动 transform / opacity） ===== */
.fx-card{position:relative;transform:perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;transition:transform .45s cubic-bezier(.2,.8,.2,1),scale .15s;isolation:auto}
.fx-card.fx-active{transition:transform .08s linear,scale .15s;will-change:transform;z-index:3}
.fx-card.fx-press{scale:.97}
/* 3D 下不能裁切，否则图标前凸会被压平；原来的装饰圆移到卡片内部 */
.course-card,.unit-card{overflow:visible!important}
.course-card:after,.unit-card:after{right:12px!important;bottom:12px!important;width:54px!important;height:54px!important}
/* 立体阴影层：在卡片后方（translateZ 负值），倾斜时位移 */
.fx-shadow{position:absolute;inset:10px 8px 0;border-radius:inherit;background:rgba(6,78,59,.28);filter:blur(16px);transform:translate3d(var(--sx,0px),var(--sy,10px),-40px);opacity:0;transition:opacity .3s,transform .3s;pointer-events:none;z-index:-1}
.fx-card.fx-active .fx-shadow{opacity:1;transition:opacity .2s,transform .08s linear}
/* 跟随指针的高光 */
.fx-gloss{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:4;background:radial-gradient(circle at var(--mx,50%) var(--my,30%),rgba(255,255,255,.55),rgba(255,255,255,0) 55%);opacity:0;transition:opacity .3s;transform:translateZ(1px)}
.fx-card.fx-active .fx-gloss{opacity:1}
/* 图标层前凸 */
.course-top,.fx-card>div:has(>.pic){transform-style:preserve-3d}
.fx-card .flash-emoji,.fx-card .pic,.fx-card .list-emoji,.fx-card .unit-icon,.fx-card .course-emoji,.fx-card .big-emoji,.fx-card .metric-top span,.fx-card .todo-icon,.fx-card .art-bubble,.fx-card .quiz-pic{transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.fx-card.fx-active .flash-emoji,.fx-card.fx-active .quiz-pic,.fx-card.fx-active .art-bubble{transform:translateZ(60px) scale(1.04)}
.fx-card.fx-active .pic,.fx-card.fx-active .list-emoji,.fx-card.fx-active .unit-icon,.fx-card.fx-active .course-emoji,.fx-card.fx-active .big-emoji,.fx-card.fx-active .metric-top span,.fx-card.fx-active .todo-icon{transform:translateZ(36px) scale(1.06)}
.fx-card.fx-active .flash-word{transform:translateZ(28px)}
.flash-word{transition:transform .45s}
/* 入场：微微 3D 旋转上升，错落出现 */
@keyframes fxRise{from{opacity:0;translate:0 26px;rotate:x 18deg}to{opacity:1;translate:0 0;rotate:x 0deg}}
.fx-enter{animation:fxRise .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*45ms)}
/* 单词卡：翻面 = 绕 Y 轴翻转；上一个/下一个 = 3D 翻页 */
@keyframes fxFlip{0%{rotate:y 180deg;opacity:.2}45%{opacity:.2}46%{opacity:1}100%{rotate:y 0deg;opacity:1}}
@keyframes fxNext{from{rotate:y -75deg;translate:30px 0;opacity:0}to{rotate:y 0deg;translate:0 0;opacity:1}}
@keyframes fxPrev{from{rotate:y 75deg;translate:-30px 0;opacity:0}to{rotate:y 0deg;translate:0 0;opacity:1}}
.flashcard.fx-flip{animation:fxFlip .6s cubic-bezier(.3,.7,.2,1) both}
.flashcard.fx-turn-next{animation:fxNext .42s cubic-bezier(.2,.8,.2,1) both}
.flashcard.fx-turn-prev{animation:fxPrev .42s cubic-bezier(.2,.8,.2,1) both}
.learn-layout,.study-main,#view{perspective:1400px}
/* 按钮按下：带深度的“挤压” */
.btn,.tab,.grade-pill,.option,.mobile-nav button,.nav-link,.speak-btn,.dict-audio{transition:scale .12s,translate .12s,transform .13s}
.btn:active,.tab:active,.grade-pill:active,.option:active:not(:disabled),.mobile-nav button:active,.nav-link:active,.speak-btn:active,.dict-audio:active{scale:.93;translate:0 3px}
@media(prefers-reduced-motion:reduce){
 .fx-card,.fx-card *{transform:none!important;animation:none!important;transition:none!important}
 .fx-gloss,.fx-shadow{display:none}
 .btn:active,.tab:active{scale:1;translate:0 0}
}

/* ===== v6 立体卡通风（黏土/玩具 UI）：厚度边 + 体积高光，取代指针倾斜 =====
   --edge  = 卡片“侧面厚度”颜色（主题色加深）；--amb = 环境软阴影 */
:root{--amb:0 16px 26px -8px rgba(6,46,34,.28);--hi:inset 0 3px 0 rgba(255,255,255,.9);--lo:inset 0 -7px 0 rgba(0,0,0,.045)}
.fx-card{--edge:#BFD9CB}
.fx-card[style*="--c"],.course-card,.unit-card,.metric,.grade-pill,.tab{--edge:color-mix(in srgb,var(--c,#86C5A8) 72%,#123 28%)}
.dm-themed{--edge:color-mix(in srgb,var(--dm-accent) 78%,#1a2a22 22%)}
/* 卡片本体 */
.fx-card{border-radius:30px!important;box-shadow:0 9px 0 var(--edge),var(--amb),var(--hi),var(--lo)!important;transform:none!important;margin-bottom:9px}
.word-row.fx-card,.dictionary-item.fx-card,.todo.fx-card{border-radius:22px!important;box-shadow:0 6px 0 var(--edge),0 10px 16px -6px rgba(6,46,34,.22),var(--hi),var(--lo)!important;margin-bottom:12px}
.hero.fx-card{--edge:#022C22;box-shadow:0 10px 0 #022C22,var(--amb),inset 0 3px 0 rgba(255,255,255,.18),inset 0 -10px 0 rgba(0,0,0,.12)!important}
.fx-shadow{display:none!important}
/* 顶部柔光（不跟随指针，静态体积感） */
.fx-gloss{opacity:1!important;inset:0 0 auto 0!important;height:42%;background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0))!important;z-index:1!important}
.hero .fx-gloss{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0))!important}
/* 卡片按压：整块下沉，厚度变薄 */
.fx-card.fx-press{scale:1!important;translate:0 5px;box-shadow:0 4px 0 var(--edge),0 6px 10px -4px rgba(6,46,34,.25),var(--hi),var(--lo)!important;transition:translate .08s,box-shadow .08s}
.fx-card.fx-active .flash-emoji,.fx-card.fx-active .pic,.fx-card.fx-active .list-emoji,.fx-card.fx-active .unit-icon,.fx-card.fx-active .course-emoji,.fx-card.fx-active .big-emoji,.fx-card.fx-active .metric-top span,.fx-card.fx-active .todo-icon,.fx-card.fx-active .flash-word,.fx-card.fx-active .quiz-pic,.fx-card.fx-active .art-bubble{transform:none}
/* 图标底座：小积木块 */
.flash-emoji,.pic,.list-emoji,.unit-icon,.course-emoji,.big-emoji,.quiz-pic,.todo-icon,.metric-top span{box-shadow:0 5px 0 color-mix(in srgb,var(--dm-accent,var(--c,#9CCDB5)) 75%,#1a2a22 25%),inset 0 2px 0 rgba(255,255,255,.9),inset 0 -4px 0 rgba(0,0,0,.05)!important;border-radius:22px!important}
.list-emoji,.metric-top span,.todo-icon{box-shadow:0 3px 0 color-mix(in srgb,var(--dm-accent,var(--c,#9CCDB5)) 75%,#1a2a22 25%),inset 0 2px 0 rgba(255,255,255,.9)!important;border-radius:14px!important}
/* 按钮：粗厚游戏按钮，按下下沉 */
.btn,.tab,.grade-pill,.option,.mini-pill,.speak-btn,.dict-audio,.sound-toggle,.term-tags span,.flash-tag,.select,.search-box input{--bedge:#BFD3C8;box-shadow:0 6px 0 var(--bedge),0 9px 14px -6px rgba(6,46,34,.25),inset 0 2px 0 rgba(255,255,255,.7),inset 0 -4px 0 rgba(0,0,0,.06)!important;border-radius:18px!important;transition:translate .08s,box-shadow .08s!important}
.btn-primary,.mini-pill{--bedge:#022C22}
.hero .btn-primary{--bedge:#B45309}
.btn-peach{--bedge:#C2410C}
.btn-light{--bedge:#7DB6DC}
.btn-nav{--bedge:#D69E06}
.btn-outline,.btn-ghost,.btn-white{--bedge:#9CC9B3}
.tab,.grade-pill{--bedge:var(--edge)}
.speak-btn,.dict-audio{--bedge:#3B7A61;border-radius:50%!important}
.term-tags span,.flash-tag{box-shadow:0 3px 0 var(--dm-accent,#BFD3C8),inset 0 2px 0 #fff!important}
.search-box input,.select{box-shadow:inset 0 4px 0 rgba(6,46,34,.07),0 3px 0 #D3E2DA!important}
.btn:active:not(:disabled),.tab:active,.grade-pill:active,.option:active:not(:disabled),.mini-pill:active,.speak-btn:active,.dict-audio:active,.sound-toggle:active{scale:1!important;translate:0 5px!important;box-shadow:0 1px 0 var(--bedge),0 2px 4px rgba(6,46,34,.2),inset 0 2px 0 rgba(255,255,255,.5)!important}
.btn:disabled{box-shadow:0 3px 0 var(--bedge)!important}
.tab.active,.grade-pill.active{translate:0 3px;box-shadow:0 3px 0 var(--bedge),inset 0 2px 0 rgba(255,255,255,.6)!important}
.tabs{gap:10px!important;padding:10px 10px 16px!important}
.mobile-nav button.active{box-shadow:0 4px 0 var(--c),inset 0 2px 0 #fff!important;border-radius:16px}
.nav-link.active{box-shadow:0 5px 0 color-mix(in srgb,var(--c) 70%,#123 30%),inset 0 2px 0 #fff!important;border-radius:18px!important}
/* 立体字：标题与单词卡英文（深色字+浅色挤出层，正文保持平面） */
.flash-word{text-shadow:0 2px 0 #fff,0 5px 0 color-mix(in srgb,var(--dm-accent,#A7F3D0) 70%,#fff)!important}
.page-head h1{background:none!important;color:#064E3B!important;text-shadow:0 2px 0 #fff,0 4px 0 #BEE3D2}
.hero h1{text-shadow:0 3px 0 #022C22,0 6px 10px rgba(0,0,0,.25)}
.course-card strong,.unit-card strong,.metric strong{text-shadow:0 2px 0 #fff,0 3px 0 color-mix(in srgb,var(--c,#A7F3D0) 45%,#fff)}
/* 进度条也做成凹槽 */
.progress-track{box-shadow:inset 0 3px 0 rgba(6,46,34,.12)!important;height:12px!important}
.progress-fill{box-shadow:inset 0 2px 0 rgba(255,255,255,.5)}
@media(prefers-reduced-motion:reduce){.fx-card.fx-press,.btn:active{translate:0 0!important}}
.course-card:before,.unit-card:before{border-radius:30px 30px 0 0;left:0;right:0;top:0;height:9px}
