@charset "UTF-8";
:root{color-scheme:light;--paper:#f7f6f0;--card:#fffefa;--ink:#253e35;--muted:#778078;--green:#285e50;--green-soft:#e9efe5;--line:#e2e5db;--orange:#b76b45;--red:#a8483f;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button,a,input,textarea,summary{touch-action:manipulation}button,a{ -webkit-user-select:none;user-select:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button{color:inherit}a{color:inherit;text-decoration:none}button,summary,a{outline-offset:5px}input,textarea{min-width:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #bb8156}input:focus,textarea:focus{outline:2px solid #88a08a;outline-offset:1px}h1,h2,h3,p{margin:0}svg{flex:none;vertical-align:middle}[hidden]{display:none!important}
.topbar{max-width:1060px;margin:0 auto;min-height:95px;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-family:"Songti SC",SimSun,serif;font-size:25px;font-weight:700}.brand-note{display:block;font:10px/1.8 "Microsoft YaHei",sans-serif;color:var(--muted);letter-spacing:2px}.header-actions{display:flex;gap:10px;align-items:center}.text-button{border:0;background:none;font-size:13px;color:var(--green);min-height:44px;padding:8px}.header-actions .text-button{color:var(--muted);font-size:12px}.icon-button{border:0;background:transparent;border-radius:50%;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:26px}.icon-button:hover{background:var(--green-soft)}
main{max-width:920px;margin:0 auto;padding:45px 30px 132px;min-height:70dvh}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.eyebrow{display:block;font-size:11px;color:var(--muted);letter-spacing:2px;margin-bottom:12px}h1{font-family:"Songti SC","STSong",SimSun,serif;font-size:40px;font-weight:500;letter-spacing:1px;line-height:1.4}.title-dot{color:var(--orange)}.page-intro p{color:var(--muted);font-size:13px;line-height:1.8;margin-top:9px}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:48px;border-radius:12px;border:1px solid transparent;padding:12px 19px;font-size:14px;font-weight:600;line-height:1.4;transition:background .15s,transform .15s}.button:not(:disabled):active{transform:scale(.98)}.primary{background:var(--green);color:#fffdf5}.primary:hover:not(:disabled){background:#174537}.secondary{background:var(--card);border-color:var(--line);color:var(--green)}.full{width:100%;justify-content:space-between}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:16px;padding:22px 0;background:#f0f1e9;margin-bottom:30px}.stats>div{padding:0 28px;border-right:1px solid #dce1d5}.stats>div:last-child{border:0}.stats span{font-size:12px;color:var(--muted)}.stats strong{display:block;font:36px/1.35 Georgia,serif;margin-top:10px}.stats small{font:11px "Microsoft YaHei",sans-serif;color:var(--muted);margin-left:10px}
.library-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.search-box{flex:1;min-width:200px;display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:0 14px;color:var(--muted);height:50px}.search-box input{border:0;background:transparent;width:100%;height:46px;font-size:13px;outline:none}.search-box:focus-within{outline:2px solid #88a08a}.search-box input:focus{outline:none}.segmented{display:flex;gap:4px;background:#eaece4;padding:4px;border-radius:11px}.segmented button{min-height:40px;padding:8px 14px;display:flex;align-items:center;gap:5px;border:0;background:none;color:var(--muted);border-radius:8px;font-size:12px}.segmented .active{background:var(--card);color:var(--green);box-shadow:0 1px 4px #253e3510}.segmented svg{width:15px;height:15px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 16px}.list-heading h2{font-size:14px;font-weight:600}.list-heading>span{font-size:12px;color:var(--muted)}.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.word-card{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:5px;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:17px 15px 17px 20px;min-width:0}.word-main{flex:1;min-width:0;text-align:left;background:none;border:0;padding:4px 0}.word-title{display:block;font-size:23px;font-family:"Songti SC",SimSun,serif;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.word-note{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.8}.word-buttons{display:flex;align-items:center;gap:3px}.favorite{color:#9ba397}.favorite.selected{color:#b48337}.favorite.selected svg{fill:#f7e5ac}.play-button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--green-soft);color:var(--green)}.play-button:hover{background:#dae6d8}.unrecorded{background:#f4eee5;color:#a28a6b}.pending-tag{width:100%;font-size:10px;color:#a18769;margin-top:1px}.empty-state{grid-column:1/-1;padding:55px 24px;text-align:center;border:1px dashed #d7ddcf;border-radius:16px;background:#f4f4ec}.empty-icon{width:66px;height:66px;background:#e6ecdf;color:var(--green);border-radius:22px;display:grid;place-items:center;margin:0 auto 22px;transform:rotate(-6deg)}.empty-icon svg{width:29px;height:29px}.empty-state h3{font:22px/1.5 "Songti SC",SimSun,serif}.empty-state p{max-width:350px;margin:12px auto 23px;font-size:13px;line-height:1.9;color:var(--muted)}.page-footnote{display:flex;align-items:center;justify-content:center;gap:8px;margin:30px 0 0;font-size:11px;line-height:1.8;color:#92998e}.page-footnote svg{width:14px;height:14px}.bottom-nav{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:5;width:min(420px,calc(100% - 32px));display:grid;grid-template-columns:repeat(3,1fr);padding:7px;border:1px solid #dbe1d2;background:#fffef8f5;border-radius:20px;box-shadow:0 8px 30px #233d3510;backdrop-filter:blur(14px)}.bottom-nav a{display:flex;align-items:center;justify-content:center;gap:8px;color:#899081;font-size:12px;min-height:52px;border-radius:13px}.bottom-nav a.active{background:#e9efdf;color:var(--green);font-weight:600}.bottom-nav span{display:flex}
.tip-strip{padding:15px 19px;margin-bottom:25px;border:1px solid #e3ddc9;background:#f2eee1;color:#8b7e5d;border-radius:12px;font-size:12px;line-height:1.9}.mistake-detail{width:100%;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:7px;font-size:11px;color:var(--muted)}.mistake-detail b{color:var(--orange)}.mistake-detail .text-button{font-size:11px;padding:5px 0}.streak{white-space:nowrap}.review-setup{max-width:640px;margin:auto;background:var(--card);border:1px solid var(--line);padding:28px;border-radius:20px}.review-setup h2{font-size:18px;font-weight:600;margin-bottom:20px}.scope-options{display:grid;gap:12px}.scope-option{display:flex;align-items:center;text-align:left;gap:15px;border:1px solid var(--line);background:var(--card);border-radius:13px;padding:16px}.scope-option.active{background:#edf2e7;border-color:#7f9c76}.scope-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eef0e7;color:var(--green)}.scope-option strong{display:block;font-size:14px}.scope-option small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.scope-option b{margin-left:auto;font:23px Georgia,serif;color:var(--green)}.count-heading{display:flex;align-items:center;justify-content:space-between;margin:29px 0 14px;gap:8px}.count-heading h3{font-size:14px}.count-heading span{font-size:11px;color:var(--muted)}.count-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.selected-count{background:#e8eee0;border-color:#7f9c76;color:var(--green)}.start-review{margin-top:26px}.muted{font-size:13px;color:var(--muted);line-height:1.9}.setup-note{font-size:11px;text-align:center;margin-top:15px}.resume-strip{max-width:640px;margin:0 auto 20px;border:1px solid #cad7bd;padding:18px;border-radius:14px;background:#eaf0e1;display:flex;align-items:center;justify-content:space-between;gap:10px}.resume-strip strong{display:block;font-size:14px}.resume-strip span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.resume-strip .button{font-size:12px;white-space:nowrap}.review-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.review-top>span{color:var(--muted);font-size:12px}progress{display:block;width:100%;height:5px;border:0;border-radius:10px;overflow:hidden;background:#e2e8dc;color:var(--green);accent-color:var(--green)}progress::-webkit-progress-bar{background:#e2e8dc}progress::-webkit-progress-value{background:var(--green);border-radius:10px}.study-card{border:1px solid var(--line);border-radius:24px;background:var(--card);text-align:center;margin:25px 0;padding:45px 25px}.study-word{font-size:64px;margin:32px 0;overflow-wrap:anywhere}.sound-wave{font-size:26px;color:#a9b999;letter-spacing:4px;line-height:1;margin-bottom:30px}.listen{min-width:205px}.study-card>.muted{font-size:12px;margin-top:24px}.study-card details{margin:24px auto 0;max-width:440px;font-size:13px;color:var(--muted)}summary{cursor:pointer;min-height:44px;padding:12px}.study-card details p{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.judge-hint{text-align:center;font-size:12px;color:var(--muted);margin:24px 0 16px}.answer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:520px;margin:auto}.answer-buttons .button{min-height:56px}.wrong{background:#f3e8e0;color:#a35d44;border-color:#e6d5c7}.correct{background:var(--green);color:var(--card)}.result-card{text-align:center;padding:30px 25px 40px;background:var(--card);border:1px solid var(--line);border-radius:23px}.result-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:var(--green);background:var(--green-soft);margin:0 auto 20px}.result-card h1{font-size:30px}.result-score{margin:25px 0}.result-score strong{font:80px/1 Georgia,serif}.result-score>span{font-size:18px;color:var(--muted);margin-left:10px}.result-stats{display:flex;justify-content:center;gap:25px;margin-bottom:25px;font-size:13px;color:var(--muted)}.result-stats b{color:var(--green);margin-left:5px}.result-actions{display:flex;justify-content:center;gap:12px;margin-top:25px}
dialog{color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:24px;width:min(520px,calc(100% - 30px));max-height:90dvh;padding:30px;box-shadow:0 20px 90px #1a2f302e;overscroll-behavior:contain}dialog::backdrop{background:#20352d73;backdrop-filter:blur(5px)}body:has(dialog[open]){overflow:hidden}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.dialog-heading h2{font:28px/1.4 "Songti SC",SimSun,serif}.dialog-heading .eyebrow{margin-bottom:7px;font-size:10px}form>label:not(.favorite-check){display:block;font-size:13px;margin:19px 0 10px}.required,.optional{font-size:10px;margin-left:6px;font-weight:400;color:var(--muted)}form>input,form>textarea{width:100%;border:1px solid var(--line);background:#fbfbf7;border-radius:10px;padding:13px 14px;font-size:16px;color:var(--ink);line-height:1.6}textarea{resize:vertical;max-height:220px}input::placeholder,textarea::placeholder{color:#9da397;font-size:13px}.record-box{text-align:center;background:#f1f3ea;border:1px dashed #cbd5c1;border-radius:15px;padding:22px 12px;margin-top:24px}.record-box>div:first-child{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.record-box>p{font-size:11px;line-height:1.8;color:var(--muted);margin:9px 0 18px}.record-actions{display:flex;justify-content:center;gap:10px}.record-actions .button{font-size:12px}.is-recording{background:var(--red)!important}.favorite-check{display:flex;align-items:center;gap:9px;font-size:13px;min-height:48px;margin-top:10px}.favorite-check input{width:18px;height:18px;accent-color:var(--green)}#word-stats{font-size:11px}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px}.danger-text{color:var(--red);background:none;margin-right:auto}.error{color:var(--red);font-size:12px;line-height:1.8;margin-top:12px;overflow-wrap:anywhere}.error:empty{display:none}#toast{position:fixed;bottom:110px;left:50%;transform:translate(-50%,12px);background:#263e35;color:white;box-shadow:0 4px 20px #0002;padding:13px 20px;border-radius:12px;font-size:13px;line-height:1.7;max-width:calc(100% - 32px);width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{padding:80px 0;text-align:center;color:var(--muted)}#login-dialog{max-width:430px;padding:35px}.login-logo{margin-bottom:24px}#login-title{font:36px/1.45 "Songti SC",SimSun,serif;margin-bottom:13px}#login-form>.button{margin-top:22px}.login-footnote{font-size:10px;color:var(--muted);line-height:1.8;text-align:center;margin-top:22px}
@media(min-width:900px){main{padding-top:50px}.word-card{min-height:108px}.bottom-nav{bottom:24px}.study-card{max-width:650px;margin-left:auto;margin-right:auto}.review-top,progress{max-width:650px;margin-left:auto;margin-right:auto}}
@media(max-width:600px){.topbar{min-height:78px;padding:17px 22px}.brand{font-size:23px}.brand-note{font-size:9px;letter-spacing:1px}.brand img{width:33px;height:33px}.header-actions{gap:1px}.header-actions .text-button{font-size:11px}main{padding:30px 20px 125px}.page-intro{gap:10px;margin-bottom:25px;align-items:flex-start}.page-intro .eyebrow{font-size:10px;letter-spacing:1.5px}h1{font-size:34px}.page-intro p{font-size:11px;max-width:210px;margin-top:8px}.page-intro>.button{font-size:12px;padding:10px 12px;min-height:44px;white-space:nowrap;margin-top:31px;gap:5px}.page-intro>.button svg{width:18px;height:18px}.stats{padding:19px 0;margin-bottom:23px;border-radius:14px}.stats>div{padding:0 18px}.stats span{font-size:10px}.stats strong{font-size:30px;margin-top:9px}.stats small{font-size:10px;margin-left:6px}.library-tools{gap:16px}.search-box{flex-basis:100%;height:48px}.segmented{padding:3px}.segmented button{min-height:38px;padding:7px 15px}.list-heading{margin:25px 0 14px}.list-heading h2{font-size:13px}.list-heading>span{font-size:11px}.word-list{grid-template-columns:1fr;gap:11px}.word-card{padding:15px 13px 15px 18px;border-radius:14px}.word-title{font-size:24px}.word-note{font-size:11px}.word-buttons{gap:4px}.empty-state{padding:34px 19px}.empty-state h3{font-size:20px}.empty-state p{font-size:12px}.empty-state .button{font-size:12px}.bottom-nav{padding:5px;bottom:max(12px,env(safe-area-inset-bottom));border-radius:19px}.bottom-nav a{flex-direction:column;gap:5px;font-size:10px;min-height:58px}.bottom-nav svg{width:21px;height:21px}.bottom-nav a.active{border-radius:13px}.page-footnote{font-size:10px;margin-top:25px}.tip-strip{font-size:11px;padding:13px 15px}.review-setup{padding:22px 17px;border-radius:18px}.review-setup h2{font-size:16px}.scope-option{padding:14px 12px;gap:12px}.count-heading span{font-size:10px}.count-heading h3{font-size:13px}.count-options{gap:8px}.count-options .button{font-size:12px}.resume-strip{padding:14px 12px}.resume-strip strong{font-size:12px}.resume-strip .button{padding:9px;font-size:11px}.study-card{padding:35px 18px;border-radius:19px}.study-word{font-size:56px;margin:40px 0}.study-card .eyebrow{font-size:10px}.answer-buttons{gap:12px}.result-card{padding:26px 16px 30px}.result-card h1{font-size:27px}.result-stats{gap:19px;font-size:11px}.result-actions .button{font-size:12px;padding:12px 15px}dialog{padding:25px 21px;border-radius:23px;width:calc(100% - 24px)}#editor{margin:auto auto 0;max-height:94dvh;border-radius:24px 24px 0 0;padding-bottom:max(25px,env(safe-area-inset-bottom))}.dialog-heading{margin-bottom:17px}.dialog-heading h2{font-size:25px}.record-box{padding:19px 10px}.record-box>p{font-size:10px}.dialog-footer .button{font-size:13px}#login-dialog{padding:30px 25px}#toast{bottom:100px;font-size:12px}}
@media(max-width:360px){main{padding-left:15px;padding-right:15px}.topbar{padding-left:16px;padding-right:16px}.stats>div{padding:0 12px}.page-intro>.button{padding:10px 9px;font-size:11px}.page-intro p{max-width:177px;font-size:10px}.word-buttons{gap:0}.word-card{padding-left:14px}.streak{font-size:10px}.mistake-detail{gap:5px}.record-actions .button{padding:10px 13px}}
.audio-spinner{display:inline-block;flex:none;width:19px;height:19px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:audio-spin .8s linear infinite}
.audio-bars{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:22px;height:22px;flex:none}.audio-bars i{display:block;width:3px;height:17px;border-radius:3px;background:currentColor;animation:audio-pulse .7s ease-in-out infinite alternate}.audio-bars i:nth-child(2){animation-delay:-.4s;height:22px}.audio-bars i:nth-child(3){animation-delay:-.2s;height:13px}.audio-bars i:nth-child(4){animation-delay:-.6s;height:18px}
.play-button[data-audio-state="loading"],.play-button[data-audio-state="playing"]{display:flex;flex-direction:column;gap:2px}.play-button[data-audio-state="loading"]{background:#f3e9d5;color:#936b29}.play-button[data-audio-state="playing"]{background:var(--green);color:var(--card);box-shadow:0 0 0 4px #285e5012}.play-button .audio-caption{font-size:8px;line-height:10px;white-space:nowrap}.play-button .audio-bars{height:20px}.listen[data-audio-state="playing"],#preview-button[data-audio-state="playing"]{background:var(--green);color:var(--card)}
@keyframes audio-spin{to{transform:rotate(360deg)}}@keyframes audio-pulse{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.audio-spinner,.audio-bars i{animation:none}}
