:root{--ink:#1c475f;--ink-2:#486a7d;--muted:#758f9d;--blue:#3a93bf;--blue-light:#e4f4fc;--mint:#69bfa2;--mint-light:#e3f5e9;--peach:#f6b8aa;--peach-light:#fff0ee;--yellow:#f2c96f;--yellow-light:#fff5de;--bg:#f6fbfc;--card:#ffffff;--line:#dceaf0;--shadow:0 14px 38px rgba(60,115,135,.09);font-family:'Microsoft JhengHei','Noto Sans TC','PingFang TC',system-ui,sans-serif;line-height:1.65; color:var(--ink)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f0f9fc 0%,#fffdf7 52%,#f5fcf7 100%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(1.8rem,3.4vw,2.9rem);line-height:1.3;letter-spacing:.015em}h2{font-size:clamp(1.35rem,2.5vw,1.85rem);line-height:1.4}h3{font-size:1.13rem}p{color:var(--ink-2)}a{color:#287ba5}small,.small{font-size:.84rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #72b8d7;outline-offset:3px}
.app-shell{max-width:1620px;margin:auto}.topbar{position:sticky;top:0;z-index:22;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(14px,3vw,44px);background:rgba(255,255,255,.83);backdrop-filter:blur(22px);border-bottom:1px solid rgba(174,210,223,.55)}.brand{border:0;background:transparent;display:flex;gap:12px;align-items:center;text-align:left;color:var(--ink);padding:1px}.brand-icon{font-size:30px;display:grid;place-items:center;width:48px;height:48px;border-radius:17px;background:#e5f6fd}.brand strong{display:block;font-size:1.18rem;letter-spacing:.025em}.brand small{display:block;font-size:.76rem;color:#6f9eae}.top-actions{display:flex;gap:9px;align-items:center}.profile-chip,.icon-btn{border:1px solid var(--line);background:#fff;border-radius:14px;color:var(--ink);padding:10px 13px;box-shadow:0 3px 12px #5689a910}.profile-chip{display:flex;align-items:center;gap:8px}.icon-btn{font-size:1.18rem}
.layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:clamp(18px,2.5vw,35px);padding:30px clamp(15px,3vw,44px) 80px}.sidebar{position:sticky;top:112px;align-self:start;padding:13px 10px;background:#ffffffc9;border:1px solid #e3eff3;border-radius:24px;box-shadow:var(--shadow)}.side-kicker{font-size:.77rem;letter-spacing:.1em;color:#8eabb8;padding:14px 14px 6px;font-weight:800}.side-kicker.second{padding-top:18px}.nav-link{width:100%;display:flex;align-items:center;gap:11px;padding:12px 14px;border:0;background:transparent;border-radius:14px;color:#557488;font-weight:800;text-align:left;margin-bottom:2px}.nav-link:hover,.nav-link.active{background:#e6f6f9;color:#1e7393}.nav-link.active{box-shadow:inset 3px 0 #77c6d3}.nav-emoji{font-size:21px}.side-mini{margin:20px 5px 8px;background:#edf8f1;border-radius:17px;padding:13px}.side-mini-title{font-size:.87rem;color:#428868;font-weight:800}.side-mini p{margin:4px 0 0;font-size:.79rem;color:#6b9583}.main-content{min-width:0;max-width:1180px;width:100%}.bottom-nav{display:none}
.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.eyebrow{display:block;color:#5f9aaf;font-weight:850;letter-spacing:.14em;font-size:.72rem;margin-bottom:5px}.page-title p{margin:6px 0 0}.pill{display:inline-flex;gap:7px;align-items:center;background:#eef8fb;color:#42788f;padding:5px 12px;border-radius:999px;font-size:.78rem;font-weight:800}.pill.warn{background:#fff2da;color:#ad7833}.pill.good{background:#e5f5eb;color:#408b64}.pill.pink{background:#fff0ef;color:#b87572}.section-header{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}.section-header h2,.section-header h3{margin:0}.section-sub{font-size:.89rem;color:var(--muted);margin:0}.panel{background:#fff;border:1px solid var(--line);border-radius:23px;padding:clamp(17px,2.2vw,26px);box-shadow:var(--shadow)}.panel + .panel{margin-top:16px}.soft-panel{background:linear-gradient(120deg,#eaf7fc,#f7fcf8);border-radius:23px;padding:24px;border:1px solid #d5eaf1}.stack{display:grid;gap:16px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.flex-row{display:flex;align-items:center;gap:12px}.space-between{justify-content:space-between}.muted{color:var(--muted)}.bold{font-weight:850}.center{text-align:center}.mt{margin-top:20px}.mb{margin-bottom:16px}.hidden{display:none!important}.divider{border-top:1px solid var(--line);margin:17px 0}
.hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.9fr);gap:20px;align-items:center;position:relative;overflow:hidden;border-radius:32px;background:radial-gradient(circle at 88% 15%,#f9f1d0 0,transparent 27%),radial-gradient(circle at 3% 75%,#dff5e7 0,transparent 35%),linear-gradient(120deg,#e5f6fc,#f9fcf4 75%);border:1px solid #ceeaf3;padding:clamp(25px,4vw,53px);box-shadow:var(--shadow)}.hero h1{color:#1b5c7d;font-size:clamp(2.1rem,3.9vw,3.6rem);letter-spacing:.025em;margin:8px 0 15px}.hero p{font-size:1.04rem;max-width:520px;margin-bottom:22px}.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.hero-badge{font-size:.79rem;border-radius:999px;background:#ffffffb8;border:1px solid #d3e9ed;padding:5px 11px;color:#537c88}.hero-art{min-width:0;display:flex;align-items:center;justify-content:center;position:relative}.hero-art img{width:min(100%,330px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:46% 46% 38% 38%;box-shadow:0 18px 45px #5c93ae26;border:6px solid #ffffffb5}.float-sticker{position:absolute;background:#fff;border:2px solid #f5e5a3;padding:8px 13px;border-radius:17px;box-shadow:0 7px 18px #80b0bc28;font-size:1.3rem}.float-sticker.left{left:0;top:12%}.float-sticker.right{right:0;bottom:18%}.hero-stars{position:absolute;font-size:31px;top:4%;right:3%;opacity:.8}.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:15px;padding:11px 19px;color:#fff;background:var(--blue);font-weight:850;transition:transform .16s,box-shadow .16s;box-shadow:0 5px 10px #4e9ac324}.btn:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 16px #4e9ac32a}.btn.secondary{background:#fff;color:#397c99;border:1px solid #cde6ee;box-shadow:none}.btn.mint{background:#5dac8c}.btn.peach{background:#df9890}.btn.gold{background:#dbab58}.btn.tiny{font-size:.8rem;padding:7px 10px;border-radius:10px}.btn.wide{width:100%}.btn.white{background:#fff;color:#387d94}.hero-cta{display:flex;gap:10px;flex-wrap:wrap}.feature-card{display:flex;align-items:center;gap:13px;min-height:120px;padding:20px;border:1px solid transparent;border-radius:23px;text-align:left;box-shadow:0 8px 18px #6292a012;color:var(--ink);transition:transform .18s}.feature-card:hover{transform:translateY(-3px)}.feature-card b{display:block;font-size:1.22rem}.feature-card small{display:block;color:#69899a;margin-top:5px}.feature-card .feat-icon{font-size:2.3rem}.feature-card .arrow{margin-left:auto;font-size:1.2rem;opacity:.8}.feature-card.learn{background:#e2f4e8;border-color:#ceebda}.feature-card.quiz{background:#ffe8e7;border-color:#f6d5d3}.feature-card.review{background:#e4f2fc;border-color:#d1e7f8}.feature-card.focus{background:#fff1d9;border-color:#f6e2bd}.quick-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat-card{background:#fff;border:1px solid var(--line);padding:18px;border-radius:18px;min-width:0}.stat-card b{display:block;font-size:1.7rem;line-height:1.2;color:#2e8fb2}.stat-card span{font-size:.82rem;color:#678699}.stat-card.mint b{color:#4b9b75}.stat-card.gold b{color:#be9953}.stat-card.peach b{color:#cb8980}.progress{height:12px;border-radius:999px;background:#e7f0f3;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,#6fbd9c,#63b6d2);border-radius:inherit}.progress.slim{height:8px}
.form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.field{display:grid;gap:6px;min-width:0}.field label,.field-label{font-size:.85rem;font-weight:850;color:#4c6e80}.field select,.field input,.field textarea,.search-input{width:100%;min-height:43px;border:1px solid #cbdfe7;border-radius:12px;padding:9px 12px;background:#fff;color:var(--ink);min-width:0}.field select:focus,.field input:focus{border-color:#65b0c8}.hint{font-size:.8rem;color:#7a98a8}.notice{background:#edf7fb;border:1px solid #d5e8f0;color:#5b8194;padding:13px 15px;border-radius:14px;font-size:.88rem}.notice.warning{background:#fff8e9;border-color:#f2e5c9;color:#997f4f}.notice.success{background:#edf8ef;border-color:#d9ebdf;color:#548565}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #d4e6eb;background:#fff;color:#54778b;padding:8px 12px;border-radius:12px;font-size:.84rem;font-weight:700}.chip.active{background:#dff3eb;border-color:#b1dbcd;color:#2e8563}.chip.large{padding:13px 17px;font-size:1rem}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tabs button{background:#eef7fb;color:#52788a;border:1px solid #d9eaf0;border-radius:12px;padding:9px 14px;font-size:.87rem;font-weight:850}.tabs button.active{background:#4b9cc1;color:white;border-color:#4b9cc1}
.flashcard{border:2px solid #d6eaf2;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;border-radius:26px;background:linear-gradient(155deg,#ffffff,#f6fbff);box-shadow:0 18px 42px #76a7b11c;position:relative;overflow:hidden;outline-offset:4px}.flashcard:before{content:'✦';position:absolute;left:7%;top:8%;color:#f6d998;font-size:30px}.flashcard:after{content:'✧';position:absolute;right:8%;bottom:10%;color:#b9dddf;font-size:38px}.card-kicker{font-size:.78rem;letter-spacing:.09em;color:#75a0b3;font-weight:850}.card-main{font-size:clamp(2.2rem,5vw,4.25rem);line-height:1.4;font-weight:900;color:#215e7f;text-align:center;overflow-wrap:anywhere;max-width:95%}.card-main.chinese{font-size:clamp(1.7rem,4vw,3.3rem)}.card-back{margin-top:12px;font-size:1.45rem;font-weight:850;color:#3e8c70;text-align:center}.card-info{margin-top:5px;font-size:.78rem;color:#86a1ad}.card-actions,.rating-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}.rating-actions .btn{flex:1;min-width:110px}.example-card{background:#eff8f9;padding:18px;border-radius:17px;border:1px solid #d5ecee;margin-top:14px}.example-card .en{font-weight:850;font-size:1.04rem;color:#315d77}.example-card .zh{color:#63899b;font-size:.89rem}.rating-actions{margin-top:18px}.flash-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.counter{font-size:.84rem;color:#69899d;font-weight:850}.empty{padding:45px 24px;text-align:center;background:#fff;border:1px dashed #c7e0e8;border-radius:20px}.empty .emoji{font-size:3.5rem}.empty h3{margin:10px 0 6px}
.mode-card{background:#fff;border:1px solid #d8e9ef;border-radius:18px;padding:20px;text-align:left;display:flex;align-items:flex-start;gap:13px;width:100%;color:var(--ink)}.mode-card.selected{border:2px solid #65b7a1;background:#effaf2;box-shadow:0 7px 18px #3b9d7940}.mode-card .mode-emoji{font-size:2rem}.mode-card b{display:block;font-size:1.05rem}.mode-card small{display:block;color:#7994a0;margin-top:6px}.quiz-stage{max-width:790px;margin:auto}.quiz-question{font-size:clamp(1.5rem,3vw,2.05rem);font-weight:900;text-align:center;color:#265e7b;margin:25px auto;line-height:1.6;overflow-wrap:anywhere}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.answer-option{min-height:65px;background:#fff;border:2px solid #dcebf0;border-radius:17px;padding:13px 14px;text-align:left;color:#396177;font-weight:780;display:flex;gap:13px;align-items:center;overflow-wrap:anywhere}.answer-option .letter{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#eaf5fa;flex:none;font-size:.82rem;color:#4982a2}.answer-option.selected{background:#e5f8ee;border-color:#72c6a0}.answer-option.correct{background:#e1f5e8;border-color:#5caf83}.answer-option.wrong{background:#fff0ed;border-color:#eaa59c}.question-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.quiz-toolbar{display:block;margin-top:21px}.quiz-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px}.quiz-navigation .btn{min-width:0;white-space:nowrap}.quiz-submit-row{display:flex;justify-content:center;margin-top:16px}.quiz-submit-row .btn{min-width:190px;max-width:100%}@media(max-width:410px){.quiz-navigation .btn{flex:1 1 0;padding:11px 7px;font-size:.92rem}.quiz-submit-row .btn{min-width:170px}}.quiz-picture{font-size:clamp(6rem,20vw,10rem);line-height:1.5;text-align:center;display:grid;place-items:center;background:linear-gradient(135deg,#f1f9fd,#e8f8ee);border:1px solid #d9eef2;border-radius:22px;padding:7px;margin:15px auto;max-width:360px;min-height:200px}.quiz-audio{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:34px;gap:14px;background:#edf8fb;border:1px solid #d8eef4;border-radius:20px}.quiz-audio span{font-size:3rem}.results-number{font-weight:900;font-size:4rem;line-height:1;color:#3488a9}.result-item{border:1px solid #dae7eb;border-radius:13px;padding:13px;background:#fff}.result-item.wrong{border-left:5px solid #eca6a0}.result-item.right{border-left:5px solid #8acaaa}.result-item p{font-size:.9rem;margin:6px 0}.result-item .problem{font-weight:850}.result-item .solution{color:#377f6c;font-weight:850}
.word-list{display:grid;gap:9px}.word-row{display:grid;grid-template-columns:auto minmax(100px,.9fr) minmax(90px,1fr) auto;gap:10px;align-items:center;border:1px solid #deebef;background:#fff;border-radius:13px;padding:12px 15px}.word-row:hover{background:#f7fbfd}.word-row .idx{font-size:.75rem;color:#849cab}.word-row .eng{font-weight:850;color:#2a688a;font-size:1.04rem;overflow-wrap:anywhere}.word-row .meaning{color:#668899;font-size:.89rem}.word-row .word-buttons{display:flex;gap:5px}.square-btn{border:1px solid #d3e5eb;background:#fff;border-radius:10px;padding:6px 9px;color:#5d8799;white-space:nowrap}.square-btn:hover{background:#eaf8fa}.tag{font-size:.72rem;border-radius:8px;padding:4px 7px;background:#eef5f7;color:#69919a}.tag.red{background:#ffece8;color:#ba726b}.tag.yellow{background:#fff3dc;color:#a8864d}.tag.green{background:#e3f5e9;color:#56876c}.focus-filters{display:flex;flex-wrap:wrap;gap:9px}.check-item{display:inline-flex;align-items:center;gap:6px;background:#f4f9fa;border:1px solid #e0edf0;padding:8px 11px;border-radius:11px;font-size:.87rem;color:#58778c}.check-item input{accent-color:#64ad91;width:17px;height:17px}.stats-row{display:flex;gap:10px;align-items:center;margin-bottom:9px}.stats-row .name{min-width:88px;font-size:.85rem;color:#67899b}.stats-row .progress{flex:1}.stats-row .number{min-width:72px;text-align:right;color:#527a8d;font-size:.83rem}.detail-summary{border:1px solid #d5e8ec;border-radius:17px;overflow:hidden}.detail-summary summary{padding:15px;background:#f1f9fb;font-weight:850;color:#3b738f;cursor:pointer}.detail-summary .body{padding:15px}.modal-wrap:not([hidden]){position:fixed;inset:0;display:grid;place-items:center;background:#18374699;z-index:100;padding:14px;backdrop-filter:blur(4px)}.modal{width:min(100%,570px);max-height:92vh;overflow:auto;background:#fff;border-radius:25px;padding:25px;box-shadow:0 24px 70px #0f2f3a38}.modal-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-title h2{margin:0}.close-btn{background:#eef6fa;border:0;border-radius:11px;font-size:1.3rem;width:37px;height:37px}.modal .profile-row{display:flex;align-items:center;gap:11px;justify-content:space-between;padding:13px;border-bottom:1px solid #edf2f4}.modal .profile-row.active{background:#effaf2;border-radius:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,16px);background:#28566e;color:#fff;padding:11px 18px;border-radius:15px;box-shadow:0 8px 25px #2b576e42;z-index:150;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center;font-size:.86rem}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.layout{grid-template-columns:195px minmax(0,1fr);gap:18px}.hero{grid-template-columns:1.1fr .8fr;padding:28px}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.layout{display:block;padding:18px 14px 98px}.sidebar{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:#ffffffea;backdrop-filter:blur(14px);box-shadow:0 -2px 18px #284e5817;border-top:1px solid #dce9ed;padding:7px 4px max(8px,env(safe-area-inset-bottom));z-index:35}.bottom-nav button{border:0;background:transparent;color:#648797;font-size:.71rem;font-weight:800;display:grid;gap:1px;place-items:center;padding:3px 0}.bottom-nav button span{font-size:1.32rem}.bottom-nav button.active{color:#2383ab}.topbar{padding:9px 14px}.brand-icon{width:40px;height:40px;font-size:23px}.brand strong{font-size:1rem}.brand small{font-size:.68rem}.profile-chip{padding:7px 9px;font-size:.76rem}.profile-chip #profileName{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero{grid-template-columns:1fr;padding:27px 24px 22px;text-align:center}.hero p{margin-left:auto;margin-right:auto}.hero-badges,.hero-cta{justify-content:center}.hero-art{grid-row:1}.hero-art img{width:min(48vw,185px);border-width:4px}.float-sticker.left{left:19%;top:9%}.float-sticker.right{right:16%;bottom:16%}.hero h1{font-size:2.25rem;margin-top:8px}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-stats .stat-card{padding:13px}.answer-grid{grid-template-columns:1fr}.flashcard{min-height:260px}.word-row{grid-template-columns:auto minmax(90px,1fr) auto}.word-row .meaning{grid-column:2}.word-row .word-buttons{grid-row:1/3;grid-column:3}.form-row{grid-template-columns:1fr}.toast{bottom:90px}.feature-card{min-height:110px;padding:16px}.feature-card b{font-size:1.06rem}.feature-card .feat-icon{font-size:1.9rem}}
@media(max-width:405px){.grid-2,.grid-3{grid-template-columns:1fr}.feature-card{min-height:95px}.hero h1{font-size:1.95rem}.profile-chip #profileName{max-width:65px}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.rating-actions .btn{min-width:0;font-size:.88rem;padding:11px 9px}.topbar .icon-btn{display:none}}
@media print{.topbar,.sidebar,.bottom-nav,.toast,.modal-wrap{display:none!important}.layout{display:block;padding:0}.main-content{max-width:none}.panel{box-shadow:none;border:0}.app-shell{max-width:none}body{background:#fff}}
/* 三位角色並排，不疊圖；原版藍領巾企鵝置中，男女孩分置左右。 */
.hero-art{width:100%;max-width:450px;margin-inline:auto;display:flex;justify-content:center;align-items:center;gap:clamp(7px,1.1vw,16px);min-height:175px}
.hero-art>img{position:relative;z-index:1;display:block;flex:0 0 44%;width:44%;max-width:none;min-width:0;height:auto;aspect-ratio:1/1;object-fit:cover;border:4px solid #fff;border-radius:30%;box-shadow:0 12px 24px #5e9caa20}
.hero-art .side-mascot{position:relative;inset:auto!important;flex:0 1 25%;width:25%;height:auto;aspect-ratio:1;border-radius:28%;border:3px solid #fff;overflow:hidden;box-shadow:0 8px 16px #5e9caa21;z-index:1;background:#eaf6fb}
.hero-art .side-mascot img{display:block;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;object-fit:cover;aspect-ratio:1}
.hero-art .float-sticker{display:none}
.hero-art .hero-stars{top:-12px;right:0;font-size:25px}
@media(max-width:740px){.hero-art{gap:7px;min-height:155px}.hero-art>img{flex-basis:44%;width:44%;border-width:3px}.hero-art .side-mascot{flex-basis:25%;width:25%;border-width:2px}}




/* 首頁依照已確認的藍綠色 Q 版原稿還原：大主視覺、彩色四宮格、底部學習進度。 */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.home-view{background:linear-gradient(180deg,#eaf9ff 0%,#f8fcfb 55%,#fffefa 100%)}
.home-view .layout{display:block;max-width:1060px;margin:auto;padding:16px clamp(8px,2.4vw,26px) 44px}
.home-view .sidebar,.home-view .bottom-nav{display:none!important}
.home-view .main-content{max-width:none}
.home-view .topbar{background:rgba(255,255,255,.91)}
.storybook-home{max-width:930px;margin:auto;background:linear-gradient(180deg,#d8f1ff 0%,#f9fdfe 72%,#fffefa 95%);border-radius:34px;overflow:hidden;border:1px solid #cee7f4;box-shadow:0 12px 40px #4e92a41d;padding:0 17px 8px}
.storybook-hero{margin:0 -17px;line-height:0;overflow:hidden}
.storybook-hero img{display:block;width:100%;height:auto;object-fit:contain;}
.storybook-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,20px);padding:6px clamp(6px,2vw,22px) 17px}
.storybook-button{border:3px solid #fff;position:relative;min-height:clamp(105px,12vw,151px);border-radius:32px;display:flex;align-items:center;gap:clamp(7px,1.2vw,15px);text-align:left;padding:15px clamp(10px,2vw,22px);color:#144876;box-shadow:0 7px 0 #ffffffdd,0 9px 16px #5290a83d,inset 0 4px 8px #ffffff91,inset 0 -7px 14px #ffffff5e;transition:transform .15s,filter .15s}
.storybook-button:hover{transform:translateY(-2px);filter:saturate(1.08)}
.storybook-button.green{background:linear-gradient(125deg,#d9ffb5 0%,#c5f9b4 61%,#a5ec8f 100%);outline:1px solid #83ce79}
.storybook-button.pink{background:linear-gradient(125deg,#ffe1ec 0%,#ffcfdf 62%,#ffbad6 100%);outline:1px solid #f9a9c7}
.storybook-button.lavender{background:linear-gradient(125deg,#f0e9ff 0%,#e5d8ff 57%,#d4c2fb 100%);outline:1px solid #bdabf1}
.storybook-button.yellow{background:linear-gradient(125deg,#fff9d1 0%,#fff0bd 56%,#ffe596 100%);outline:1px solid #f5d77e}
.storybook-icon{font-size:clamp(2.4rem,5.3vw,4.3rem);filter:drop-shadow(0 3px 2px #ffffff9e);line-height:1.2;flex:0 0 20%;text-align:center}
.storybook-button-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.storybook-button-text strong{display:block;font-size:clamp(1.21rem,2.5vw,2.15rem);font-weight:900;line-height:1.2;letter-spacing:-.025em;color:#153b75;text-shadow:-1px -1px #fff,1px -1px #fff,-1px 1px #fff,1px 1px #fff,0 2px 0 #fffc}
.storybook-button-text small{display:block;font-size:clamp(.7rem,1.4vw,1.04rem);color:#264866;font-weight:850;line-height:1.28}
.storybook-arrow{display:grid;place-items:center;flex:0 0 clamp(26px,3.6vw,42px);height:clamp(26px,3.6vw,42px);border-radius:50%;background:#68be58;color:#fff;font-size:2.2rem;line-height:0;box-shadow:inset 0 2px 2px #fff7,0 4px 5px #669c8545;border:2px solid #fff;text-shadow:0 1px 2px #346e4f}
.storybook-button.pink .storybook-arrow{background:#f48ab2}
.storybook-button.lavender .storybook-arrow{background:#a38ae5}
.storybook-button.yellow .storybook-arrow{background:#f9b44d}
.storybook-progress{margin:7px clamp(6px,2vw,22px) 7px;padding:14px 13px;display:grid;grid-template-columns:1fr 1.12fr 1.12fr;align-items:center;gap:0;background:linear-gradient(120deg,#ffffffef,#edf9ffed);border-radius:35px;border:2px solid #c2e1fa;box-shadow:0 8px 16px #669eac22,inset 0 2px 6px #fff;min-height:82px}
.storybook-progress-cell{border:0;background:none;font-weight:800;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:5px 8px;text-align:center;color:#224d80;font-size:clamp(.74rem,1.6vw,1.05rem);line-height:1.5}
.storybook-progress-cell+.storybook-progress-cell{border-left:2px solid #97cbec}
.storybook-progress-icon{font-size:clamp(1.4rem,2.7vw,2rem);line-height:1}
.storybook-progress-cell .storybook-num{font-size:clamp(1.3rem,3.2vw,2.2rem);color:#237abe;font-weight:900;white-space:nowrap}
.storybook-progress-cell small{color:#355b79;white-space:nowrap}
.storybook-progress-cell.progress-link{cursor:pointer;border-radius:25px}
.storybook-progress-cell.progress-link:hover{background:#e1f4ff}
.storybook-mini-arrow{font-size:1.5rem}
.storybook-bottomline{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;padding:2px 20px;color:#608197;font-weight:700;font-size:.8rem}
.storybook-tools{display:flex;flex-wrap:wrap;gap:10px}
.storybook-tools button{border:0;background:transparent;color:#357b9d;padding:5px;text-decoration:underline;font-weight:800;font-size:.8rem}
.storybook-grass{margin:12px -17px -8px;min-height:40px;background:radial-gradient(ellipse at 30% 100%,#c9eeb0 0,transparent 61%),radial-gradient(ellipse at 70% 100%,#dcf5c3 0,transparent 60%);display:flex;align-items:end;justify-content:space-between;padding:0 24px;font-size:1.4rem}
@media(max-width:740px){
 .home-view .layout{padding:7px 7px 24px}
 .storybook-home{border-radius:26px;padding:0 8px 4px}
 .storybook-hero{margin:0 -8px}
 .storybook-actions{gap:10px;padding:7px 2px 11px}
 .storybook-button{min-height:104px;border-radius:24px;padding:10px 7px;gap:4px;border-width:2px}
 .storybook-icon{font-size:2.2rem;flex:0 0 27%}
 .storybook-button-text strong{font-size:clamp(.99rem,4.4vw,1.3rem);white-space:nowrap}
 .storybook-button-text small{font-size:clamp(.64rem,2.7vw,.82rem)}
 .storybook-arrow{flex-basis:23px;height:23px;font-size:1.5rem;border-width:1px}
 .storybook-progress{margin:4px 1px 2px;padding:8px 2px;border-radius:24px;min-height:69px}
 .storybook-progress-cell{gap:3px;flex-wrap:wrap;padding:2px 3px;font-size:.66rem}
 .storybook-progress-icon{font-size:1.3rem}
 .storybook-progress-cell .storybook-num{font-size:1.28rem}
 .storybook-mini-arrow{display:none}
 .storybook-bottomline{padding:5px 8px;font-size:.72rem;justify-content:center;text-align:center}
 .storybook-grass{margin:6px -8px -4px}
}
@media(max-width:360px){.storybook-button{min-height:94px}.storybook-icon{font-size:1.8rem}.storybook-arrow{display:none}.storybook-button-text strong{font-size:1.04rem}.storybook-progress-icon{display:none}}
@media print{.storybook-button{box-shadow:none}}

/* === 2026 全站內頁調整：低彩度柔和分區，不變動既有首頁主視覺 === */
body:not(.home-view) .main-content {background:linear-gradient(160deg,rgba(232,247,250,.52),rgba(255,253,248,.94) 34%,rgba(240,249,245,.63));border:1px solid #e0edf1;border-radius:28px;padding:clamp(15px,2.5vw,28px);box-shadow:0 8px 24px rgba(53,103,125,.035)}
body:not(.home-view) .page-title {padding:clamp(18px,2.5vw,28px);border:1px solid #dbeaf0;border-radius:23px;background:linear-gradient(120deg,#e5f5fc 0%,#f4fbfb 58%,#fffdf6 100%);box-shadow:0 5px 22px rgba(63,119,136,.04)}
body:not(.home-view) .page-title h1{color:#225d7d;margin:2px 0 7px}
body:not(.home-view) .page-title p{color:#5f8192;margin-bottom:0}
body:not(.home-view) .panel{border-color:#d8e9ec;box-shadow:0 7px 23px rgba(51,101,123,.055)}
body:not(.home-view) .panel h2,body:not(.home-view) .panel h3{color:#296c83}
body:not(.home-view) .notice{background:linear-gradient(100deg,#edf8f8,#f8fdfb);border:1px solid #d5ebe8;border-left:4px solid #9ad3c3;border-radius:14px;color:#4c7980}
body:not(.home-view) .btn.secondary{background:#f8fcff;border-color:#cde5ed;color:#347a98}
body:not(.home-view) .btn.secondary:hover{background:#eaf5fc}
body[data-current-route="learn"] .page-title{background:linear-gradient(110deg,#e2f5eb 0%,#f0faf6 60%,#fcfdfa 100%);border-color:#ceeada}
body[data-current-route="learn"] .page-title h1{color:#367e64}
body[data-current-route="learn"] .flashcard{border-color:#b9e0d0;background:linear-gradient(155deg,#fff,#f5fcf8 45%,#eef8fc 100%);box-shadow:0 15px 28px rgba(85,154,135,.09)}
body[data-current-route="learn"] .card-back{color:#397c68}
body[data-current-route="learn"] .flash-top{background:#eff9f5;padding:10px 13px;border-radius:14px}
.example-card{background:linear-gradient(130deg,#eff8fc 0%,#f5fbf8 100%);border:1px solid #cbe6e6;border-left:5px solid #75bdb4;padding:19px 21px}
.example-card .en{font-size:clamp(1.05rem,2vw,1.3rem);line-height:1.65;color:#285f7d}
.example-card .zh{font-size:clamp(.93rem,1.6vw,1rem);line-height:1.8;color:#517e83;margin-top:8px}
.example-flag{display:inline-block;margin-bottom:12px;padding:3px 11px;border-radius:100px;font-size:.82rem;font-weight:800;color:#478677;background:#e2f4eb}
body[data-current-route="quiz"] .page-title{background:linear-gradient(110deg,#fff0ed,#fcf7fb 52%,#f3f9fd);border-color:#f1dbdf}
body[data-current-route="quiz"] .page-title h1{color:#a96778}
body[data-current-route="quiz"] .quiz-stage{border-color:#eedfe6;background:linear-gradient(180deg,#fff8fa 0%,#fff 22%);box-shadow:0 8px 24px rgba(169,104,121,.065)}
body[data-current-route="quiz"] .answer-option{border-color:#dee8ee;background:#fff}
body[data-current-route="quiz"] .answer-option:nth-child(2n){background:#f9fcff}
body[data-current-route="quiz"] .answer-option.selected{background:#e8f7ee;border-color:#75c2a4}
body[data-current-route="quiz"] .quiz-question{color:#305e80}
body[data-current-route="review"] .page-title{background:linear-gradient(110deg,#f0e9ff,#faf8ff 59%,#f5f9fd);border-color:#e6dcf6}
body[data-current-route="review"] .page-title h1{color:#7658ae}
body[data-current-route="focus"] .page-title{background:linear-gradient(110deg,#fff3d8,#fffbf1 60%,#f8fbf4);border-color:#f0e4c6}
body[data-current-route="focus"] .page-title h1{color:#95732f}
body[data-current-route="stats"] .page-title{background:linear-gradient(110deg,#e5f4fa,#f2fbfa 56%,#fbfffa)}
body[data-current-route="settings"] .page-title,body[data-current-route="dictionary"] .page-title{background:linear-gradient(110deg,#eaf6f7,#fbfefa)}
.quiz-toolbar{display:flex;flex-direction:column;gap:14px;margin-top:25px}
.quiz-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;width:100%}
.quiz-navigation .btn{width:100%;min-width:0;max-width:100%;padding:13px 10px;white-space:nowrap}
.quiz-submit-row{display:flex;justify-content:center;margin:0}
.quiz-submit-row .btn{min-width:180px;padding:13px 23px}
.quiz-submit-row .btn.mint{background:#55ae89;border-color:#55ae89;color:#fff}
@media(max-width:740px){
 body:not(.home-view) .main-content{padding:11px 12px 22px;border-radius:23px}
 body:not(.home-view) .page-title{padding:16px 16px;margin-bottom:14px}
 .quiz-stage{padding:17px 14px}
 .quiz-navigation{gap:10px}
 .quiz-navigation .btn{font-size:.93rem;padding:12px 6px;letter-spacing:-.02em}
 .quiz-submit-row .btn{min-width:46%;max-width:75%}
 .example-card{padding:16px 15px}
 .card-actions .btn{padding:10px 12px}
}
@media(max-width:365px){.quiz-navigation .btn{font-size:.84rem}.quiz-submit-row .btn{min-width:55%}}

/* 單字卡背面：查看例句／收藏單字兩鍵同列、左例句右收藏。 */
.card-utility-actions{display:grid;grid-template-columns:repeat(2,minmax(0,180px));justify-content:center;gap:12px;max-width:390px;margin:0 auto}
.card-utility-actions>.btn{width:100%;min-width:0;min-height:46px;padding:10px 8px;font-size:clamp(.85rem,3.7vw,1rem);white-space:nowrap}
@media(max-width:360px){.card-utility-actions{gap:8px}.card-utility-actions>.btn{padding:9px 4px;font-size:.84rem}}
/* v4: browser storage warning stays visible through route changes. */
.storage-warning{position:sticky;top:66px;z-index:28;background:#fff1e7;border:2px solid #da7965;padding:10px 16px;color:#8d2e24;text-align:center;font-weight:800;font-size:.9rem}
.storage-warning[hidden]{display:none!important}
@media(max-width:740px){.storage-warning{top:59px;font-size:.79rem;padding:8px 12px}}

.storybook-backup-hint{text-align:center;font-size:.77rem;color:#618797;padding:3px 7px 9px}
.storybook-backup-hint button{background:transparent;border:0;color:#537e92;text-decoration:underline;font-size:inherit;font-weight:700;padding:5px 3px}
