:root{--paper:#faf7f0;--ink:#263930;--muted:#77796e;--green:#285343;--line:#e6e1d6}
body{font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;background:var(--paper)}
header{height:72px;max-width:1000px;padding:0 24px}.brand strong{letter-spacing:2px}.brand small{letter-spacing:1px}.seal{border-color:#b05143;color:#b05143;transform:none;border-radius:11px}.shell{max-width:960px;margin:28px auto 100px}.primary,.secondary{min-height:44px;border-radius:12px}.primary{background:var(--green)}.text-btn{min-height:38px}.page-title{font-family:inherit;font-size:27px;font-weight:650;line-height:1.45}.eyebrow{letter-spacing:.5px}.primary:active,.secondary:active,.favorite-row:active{transform:translateY(1px)}
.mobile-cover{position:relative;padding:7px 0 20px;overflow:hidden}.cover-kicker{font-size:12px;color:#a94538;letter-spacing:2px;font-weight:600}.mobile-cover h1{font-size:34px;letter-spacing:1px;line-height:1.4;margin:12px 0 9px;font-weight:700}.mobile-cover>p{font-size:15px;margin:0;color:#5f695e}.cover-line{font-size:13px;color:var(--muted);margin:7px 0 23px}.today-start{display:flex;align-items:center;justify-content:space-between;gap:40px;width:350px;text-align:left;padding:15px 20px;position:relative;z-index:1}.today-start span{font-size:12px;font-weight:400;color:#e1e8dd}.cover-decoration{position:absolute;right:38px;top:20px;width:120px;height:120px;border:1px solid #d1d9c8;border-radius:32px 48px 34px 46px;color:#79907b;display:grid;place-items:center;font:58px var(--serif);transform:rotate(9deg);background:#f1f0e4}.home-metrics{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:15px 2px 18px;font-size:12px;color:var(--muted)}.home-metrics b{color:var(--ink);font-size:15px;margin-right:3px;font-weight:600}
.board.mobile-modules{background:none;box-shadow:none;padding:0;border-radius:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mobile-modules .note{background:#fffdf8;border:1px solid var(--line);box-shadow:none;border-radius:16px;padding:22px;min-height:172px;transition:background .2s,transform .2s}.mobile-modules .note::before{display:none}.mobile-modules .note:hover{transform:none;background:#f4f3e8}.module-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#eaf0e3;color:var(--green);font:21px var(--serif)}.mobile-modules .note:nth-child(2) .module-symbol{background:#f7e9e1;color:#a24738}.mobile-modules .note:nth-child(3) .module-symbol{background:#e8edf3;color:#41647c}.mobile-modules .note:nth-child(4) .module-symbol{background:#f1eadc;color:#8a6a3e}.mobile-modules h2{font-size:20px;margin:12px 0 4px;line-height:1.4}.mobile-modules .note p{font-size:13px;color:#77796e;line-height:1.6}.mobile-modules .note small{display:block;font-size:11px;color:#929184;margin-top:10px}.home-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0 0}.home-shortcuts button{background:transparent;min-height:44px;font-size:12px;color:#637061;border-radius:8px;padding:5px 0}.home-shortcuts b{font-weight:500;color:#a94538}.home-footnote{text-align:center;font-size:11px;color:#95978b;margin:18px 0 0;letter-spacing:1px}
.list-heading,.quiz-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.count-pill{border-radius:22px;background:#f6e6df;color:#a94538;padding:4px 12px;font-weight:600}.collection-tabs{display:flex;gap:10px;margin:15px 0}.collection-tabs button{flex:1;min-height:47px;border:1px solid var(--line);border-radius:13px;background:#fffdf8;color:#7c7b6d}.collection-tabs button.active{background:var(--green);color:#fff;border-color:var(--green)}.favorite-list{display:grid;gap:14px}.favorite-row{position:relative;display:block;width:100%;text-align:left;background:#fffdf8;border:1px solid var(--line);border-radius:16px;padding:22px 42px 22px 23px;min-height:125px}.favorite-row>strong{font:25px/1.5 var(--serif);color:#2e3d31}.favorite-row>p{font-size:15px;line-height:1.8;color:#727467;margin:12px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.row-chevron{position:absolute;right:19px;top:23px;font-size:24px;color:#a1a292}.full-width{width:100%;margin:12px 0}.quiz-heading .text-btn{font-size:13px;white-space:nowrap}.option-letter{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;margin-right:12px;background:#eeeee4;font-size:13px;color:#72796a}.quiz-result{text-align:center}.quiz-result .result-score span{font-size:25px}.next-question{width:100%}.context-clue{padding:11px;background:#f8faf2;border-radius:9px}.mistake-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.option{display:flex;align-items:center;min-height:58px}.feedback{background:#eef1e7}.option-explanations>div{border-color:#d8dfce}.option-explanations h3{font-weight:600}.panel,.pair,.intensive-card{background:#fffdf8;border-radius:16px}.toolbar input{min-height:46px;background:#fffdf8}.bottom-nav{background:#fffdf8f5}.intensive-card h2{font-size:24px}.intensive-feature{display:none}
@media(max-width:760px){header{position:sticky;top:0;height:65px;z-index:9;padding:0 19px;background:#faf7f0f5;backdrop-filter:blur(12px)}.header-tools .text-btn{font-size:11px}.icon-btn{width:36px;height:36px}.shell{padding:0 18px;margin:18px auto 105px}.brand{gap:9px}.brand small{font-size:9px}.mobile-cover{padding-top:2px;padding-bottom:17px}.mobile-cover h1{font-size:29px;margin-top:10px}.mobile-cover>p{font-size:13px}.cover-line{font-size:12px;margin-bottom:19px}.cover-decoration{right:-5px;top:12px;width:72px;height:72px;font-size:37px;border-radius:20px 28px;opacity:.38;z-index:-1}.today-start{width:100%;min-height:51px;padding:13px 18px;font-size:15px}.home-metrics{padding:12px 0 16px;font-size:10px;gap:5px}.home-metrics b{font-size:14px}.board.mobile-modules{gap:12px}.mobile-modules .note{min-height:150px;padding:17px 16px}.module-symbol{width:30px;height:30px;font-size:19px;border-radius:9px}.mobile-modules h2{font-size:18px;margin-top:9px}.mobile-modules .note p{font-size:11px}.mobile-modules .note small{font-size:10px;margin-top:7px}.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:10px}.home-shortcuts button{font-size:12px;min-height:37px}.home-footnote{margin-top:11px}.bottom-nav{padding:6px 4px max(10px,env(safe-area-inset-bottom));box-shadow:0 -3px 15px #313b2b04}.bottom-nav a{font-size:11px;min-height:45px}.bottom-nav span{font-size:21px}.page-title{font-size:25px}.options{grid-template-columns:1fr;gap:10px}.option{padding:13px 16px;font-size:16px;border-radius:12px}.question{font-size:19px;line-height:1.95;margin:23px 0}.feedback{padding:18px 16px}.quiz-heading .page-title{margin:8px 0}.favorite-row{padding:21px 38px 21px 21px}.favorite-row>strong{font-size:24px}.favorite-row>p{font-size:14px}.flash{min-height:300px}.focus-meaning{font-size:16px}.contrast-grid h2{font-size:26px}.drill-title{font-size:24px}.daily{align-items:flex-start;flex-direction:column}.daily>.primary,.daily>.secondary{width:100%}.rating{min-height:54px}.collection-tabs{position:relative}.intensive-grid{gap:12px}.intensive-card button{min-height:44px}.mistake-actions{display:grid;grid-template-columns:1fr 1fr}.mistake-actions button{font-size:12px;padding:10px}.primary:focus-visible,.secondary:focus-visible{outline-offset:2px}}
@media(min-width:761px){.mobile-cover{padding:20px 0 30px}.mobile-modules .note{min-height:180px}.home-metrics{justify-content:flex-start;gap:48px}.favorite-list{max-width:760px;margin:auto}.collection-tabs,.list-heading{max-width:760px;margin-left:auto;margin-right:auto}}
/* Keep the primary navigation at the bottom on wide screens as well. */
@media(min-width:761px){header nav{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:20;height:68px;justify-content:center;gap:0;background:#fffdf8f5;border-top:1px solid var(--line);backdrop-filter:blur(12px);padding-bottom:env(safe-area-inset-bottom)}header nav button{width:min(23vw,180px);height:100%;min-height:44px;border-bottom:0;border-top:3px solid transparent}header nav button.active{border-top-color:var(--green);background:#edf1e680}.shell{margin-bottom:110px}}
.monthly-entry{margin:22px 0 12px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#eef1e7;display:flex;align-items:center;justify-content:space-between;gap:16px}.monthly-entry h2{font:22px var(--serif);margin:10px 0}.monthly-entry p{color:var(--muted);font-size:13px;margin:0}.monthly-entry .actions{margin:0;flex-wrap:wrap}.monthly-filter{display:flex;align-items:center;gap:12px;max-width:760px;margin:16px auto}.monthly-filter label{font-size:13px;white-space:nowrap;color:var(--muted)}.monthly-filter select{min-width:0;flex:1;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fffdf8;color:var(--ink);font:inherit}.monthly-original{font-size:14px;line-height:1.9;color:var(--muted)}
@media(max-width:760px){.monthly-entry{display:block;padding:19px}.monthly-entry .actions{margin-top:16px;display:grid;grid-template-columns:1fr 1fr}.monthly-entry button{padding:12px 8px;font-size:13px;min-height:46px}.monthly-filter{margin:12px 0}.monthly-filter select{font-size:14px}.study-top{gap:10px}.study-top>span:last-child{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.study-plan-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin:15px 0 8px}.plan-presets{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.plan-presets button{background:#edf1e6;border:1px solid #d5decb;padding:9px 17px;border-radius:10px;min-height:44px}.plan-table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px;text-align:left}.plan-table td,.plan-table th{padding:13px 7px;border-bottom:1px solid var(--line)}.celebration{width:min(90vw,390px);border:1px solid #d9e1cf;border-radius:23px;background:#fffdf6;padding:30px 25px;text-align:center;color:var(--ink);box-shadow:0 20px 70px #132b2630}.celebration::backdrop{background:#172c275f;backdrop-filter:blur(3px)}.celebration h2{font-size:23px}.celebration>p{font-size:14px;line-height:1.9}.celebrate-mark{font-size:55px;color:#b98c42;line-height:1.3}.celebration button{margin-top:18px}#plan-daily{width:100%;font-size:20px}.study-plan-bar .text-btn{white-space:nowrap}#plan-error{color:#a24738}
/* Focused mobile flashcards: controls stay inside the usable viewport. */
@media(max-width:760px){
 body.study-focus .shell{height:calc(100dvh - 145px - env(safe-area-inset-bottom));min-height:330px;margin:0 auto;padding:0 16px;display:flex;flex-direction:column;gap:4px}
 body.study-focus .shell>.text-btn{align-self:flex-start;min-height:30px;padding:2px 0;font-size:12px}
 body.study-focus .shell>.page-title{display:none}
 body.study-focus .study-plan-bar{margin:0;font-size:11px;min-height:30px;gap:6px}
 body.study-focus .study-plan-bar .text-btn{font-size:11px;min-height:28px;padding:2px 0}
 body.study-focus .card-stage{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;width:100%;padding:0;gap:6px}
 body.study-focus .study-top{font-size:11px;flex-shrink:0}
 body.study-focus .progress{margin:0;height:4px;flex-shrink:0}
 body.study-focus .card-stage>.actions{margin:0!important;min-height:30px;font-size:11px;flex-shrink:0}
 body.study-focus .card-stage>.actions .text-btn{min-height:30px;padding:2px 0;font-size:12px}
 body.study-focus .flash{flex:1;min-height:90px;padding:14px 18px;overflow-y:auto;overscroll-behavior:contain;justify-content:safe center;box-shadow:none;border-radius:20px}
 body.study-focus .flash .word{font-size:clamp(30px,9vw,44px);letter-spacing:3px;margin:14px 0;overflow-wrap:anywhere}
 body.study-focus .flash .meaning{font-size:16px;line-height:1.8;flex-shrink:0}
 body.study-focus .flash h2{font-size:22px!important;margin:8px 0!important;flex-shrink:0}
 body.study-focus .flash .hint{margin-top:12px;font-size:10px;flex-shrink:0}
 body.study-focus .flash .source{font-size:11px;margin-top:8px}
 body.study-focus .study-correction{flex-shrink:0;margin:0;padding:0 10px;border:0;background:transparent}
 body.study-focus .study-correction>summary{font-size:12px;line-height:28px;min-height:28px}
 body.study-focus .rating{min-width:0;min-height:50px;padding:7px 3px;font-size:13px;border-radius:12px}
 body.study-focus .rating small{font-size:10px;margin-top:2px}
 body.study-focus .actions[aria-label="掌握程度"]{gap:8px}
 body.study-focus .study-bottom{flex-shrink:0;gap:10px;margin:0}
 body.study-focus .study-bottom button{font-size:12px;min-height:32px;padding:4px 12px}
 body.study-focus .card-stage>.notice{font-size:11px;line-height:1.5;margin:2px 0;flex-shrink:0}
 body.study-focus:has(.study-correction[open]) .shell{height:auto;min-height:calc(100dvh - 145px);margin-bottom:95px}
 body.study-focus:has(.study-correction[open]) .flash{flex:none;min-height:200px;max-height:38dvh}
 body.study-focus:has(.study-correction[open]) .card-stage{flex:none}
}
.flash-exams{display:block;color:var(--green);font-size:11px;line-height:1.6;margin-top:12px;flex-shrink:0}.exam-mentions{border-top:1px solid var(--line);padding-top:10px;margin-top:14px}.exam-mentions>span{display:block;font-size:12px;color:var(--muted)}.exam-mentions .text-btn{font-size:13px;text-align:left;padding:4px 0;margin-right:12px}
.study-entry-bar{display:flex;justify-content:space-between;align-items:center;gap:8px}.word-badges{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:7px 0;flex-shrink:0}.word-badges>span{font:11px/1.6 var(--sans);padding:2px 8px;border-radius:6px;letter-spacing:0}.word-origin{color:var(--green);background:#e9eee4}.word-frequency{color:#8b5523;background:#f5ebd9}.study-focus .study-entry-bar{flex-shrink:0}.study-focus .study-entry-bar .text-btn{min-height:28px;padding:2px 0}
.option.correct{background:#e4f0e3;border-color:#62936a;color:#205b2c}.option.wrong{background:#fff0ef;border-color:#cd5c55;color:#9d2926}.option.wrong .option-letter{background:#f8d8d5;color:#9d2926}.option.correct .option-letter{background:#cce5cc;color:#205b2c}.answer-mark{display:block;margin-left:auto;padding-left:10px;font-size:12px;font-weight:600;line-height:1.5;text-align:right;flex-shrink:0}.feedback.is-wrong{background:#fff0ef;border:1px solid #edc2bd}.feedback.is-wrong>strong,.feedback.is-wrong>h2{color:#9d2926}.feedback.is-correct{background:#e4f0e3;border:1px solid #bdd7bc}.option:disabled{cursor:default}
/* Short landscape screens scroll instead of placing card controls behind navigation. */
@media(max-width:760px) and (max-height:500px){
 body.study-focus .shell{height:auto;min-height:0;margin-bottom:105px}
 body.study-focus .card-stage{flex:none}
 body.study-focus .flash{flex:none;min-height:180px;max-height:70dvh}
}
