:root{--bg:#f6f4ed;--paper:#fffef9;--ink:#253a33;--muted:#68746c;--green:#245a48;--green-light:#e7eee3;--line:#dedfd4;--gold:#e6bd68;--red:#9d443d;--sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--serif:"Songti SC","STSong","Noto Serif CJK SC",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.65}button,input,textarea{font:inherit;color:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:none}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,.import-link:focus-within{outline:3px solid #b77b29;outline-offset:4px}input,textarea{font-size:16px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}h1{font-family:var(--serif)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;top:-80px;left:20px;background:var(--paper);padding:12px;z-index:20}.skip-link:focus{top:10px}
.site-header{max-width:1120px;margin:auto;height:94px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;line-height:1.25;font-size:24px;font-family:var(--serif);font-weight:700;letter-spacing:2px}.brand small{font-family:var(--sans);display:block;font-weight:400;font-size:10px;letter-spacing:1px;margin-top:5px;color:var(--muted)}.old-site{font-size:13px;padding:12px 0 12px 16px}.old-site span{margin-left:9px}main{max-width:1064px;margin:auto}.home-layout{display:grid;grid-template-columns:1fr 1.14fr;gap:76px;padding:58px 0 48px}.intro{padding-top:18px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:500;color:var(--muted)}.eyebrow>span{display:inline-block;height:6px;width:6px;margin:0 6px 2px 0;border-radius:50%;background:var(--green)}.intro h1{font-size:47px;line-height:1.5;letter-spacing:-2px;margin:18px 0 18px;white-space:nowrap}.highlight{position:relative;z-index:0}.highlight:after{content:"";height:11px;position:absolute;bottom:6px;left:0;right:0;background:#e3c676;opacity:.7;z-index:-1;transform:rotate(-2deg)}.intro-copy{color:var(--muted);line-height:1.95}.paper-preview{width:325px;position:relative;background:var(--paper);border:1px solid #e2e2d6;padding:23px 28px 22px;margin:35px 0 20px;transform:rotate(-3deg);box-shadow:4px 7px 0 #e9e7da}.paper-label{font-size:10px;letter-spacing:1px;color:var(--muted);display:flex;justify-content:space-between}.paper-label i{font-style:normal}.paper-preview p{font-family:var(--serif);font-size:29px;line-height:1.9;margin:18px 0 12px;letter-spacing:3px}.preview-mask{background:#dce6d9;border-radius:6px;padding:0 8px;color:#758b74;letter-spacing:7px}.pencil-note{font-size:11px;color:var(--muted)}.sprout{position:absolute;width:67px;height:85px;right:-24px;bottom:-10px;fill:var(--green-light);stroke:var(--green);stroke-width:2;stroke-linecap:round}.demo-link{padding:12px 0;color:var(--green);font-size:13px;border-bottom:1px solid #bbc9ba}.demo-link span{margin-left:18px}.steps{list-style:none;display:flex;padding:0;margin:30px 0 0;gap:19px;font-size:11px;color:var(--muted)}.steps b{font-family:Georgia,serif;color:var(--green);font-size:12px;margin-right:5px;font-weight:400}.paper-panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:28px 30px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.section-top h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;margin-top:7px}.corner-symbol{font-size:40px;line-height:1;color:#b4be9a;font-weight:400}.editor label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}.optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:8px}input[type=text],input:not([type]),textarea{display:block;width:100%;background:#faf9f3;border:1px solid var(--line);border-radius:8px;padding:11px 13px;outline-offset:1px}input::placeholder,textarea::placeholder{color:#858b81;font-size:13px}textarea{resize:vertical;min-height:160px;max-height:420px;line-height:1.8}.content-label{margin-top:17px;display:flex;align-items:baseline;justify-content:space-between}.content-label>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.field-help{font-size:10px;margin-top:7px;color:var(--muted)}.sample-row{display:flex;gap:8px;align-items:center;margin:10px 0 19px;flex-wrap:wrap}.sample-row>span{color:var(--muted);font-size:11px;margin-right:3px}.sample-row button{border:1px solid var(--line);border-radius:20px;font-size:11px;padding:6px 12px;min-height:36px;background:#fff}.sample-row button:hover{border-color:var(--green);color:var(--green)}fieldset{border:0;padding:0;margin:0}legend{padding:0;font-size:12px;margin-bottom:10px}.difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.difficulty-options label{position:relative;margin:0}.difficulty-options input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.difficulty-options label>span{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;padding:11px 4px;line-height:1.5}.difficulty-options b{font-size:13px;font-weight:500}.difficulty-options small{font-size:10px;color:var(--muted);margin-top:4px}.difficulty-options input:checked+span{border-color:var(--green);background:var(--green-light);box-shadow:inset 0 0 0 .4px var(--green)}.difficulty-options input:focus-visible+span{outline:3px solid #b77b29;outline-offset:3px}.button{min-height:50px;padding:12px 20px;border-radius:10px;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:12px;line-height:1.6;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.primary{background:var(--green);color:#fffef9}.primary:hover{background:#194936}.secondary{border:1px solid #cfd8ca;background:#eef1e7;color:var(--green)}.danger{background:var(--red);color:#fff}.start-button{width:100%;margin-top:22px;justify-content:space-between}.local-note{font-size:10px;color:var(--muted);text-align:center;margin-top:12px}.error{color:var(--red);font-size:12px;margin:12px 0 0}.library{border-top:1px solid var(--line);padding:32px 0 24px}.library .section-top{margin-bottom:20px}.library h2{font-size:22px}.library h2 span{font-family:Georgia,serif;font-size:13px;color:var(--muted);margin-left:8px}.text-button{font-size:12px;padding:12px 0;min-height:44px;color:var(--green)}.empty-library{display:flex;align-items:center;gap:16px;padding:21px 25px;border:1px dashed #cdd1c3;border-radius:12px;color:var(--muted)}.empty-library>span{font-size:30px;color:#7e927a}.empty-library p{font-size:13px}.empty-library small{display:block;font-size:11px;margin-top:3px}.deck-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.deck-item{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:20px}.deck-item h3{font-size:16px;margin:12px 22px 8px 0;overflow-wrap:anywhere}.deck-item .deck-meta{font-size:10px;color:var(--muted)}.deck-item p{font-size:12px;color:var(--muted)}.deck-item button[data-open]{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:12px;min-height:44px;margin-top:14px;color:var(--green);border-top:1px solid var(--line);padding:12px 0 0;text-align:left}.deck-delete{position:absolute;right:8px;top:8px;min-width:44px;min-height:44px;color:var(--muted);font-size:19px}.import-link{display:inline-block;position:relative;font-size:11px;text-decoration:underline;text-underline-offset:4px;color:var(--muted);margin-top:10px;padding:12px 0;cursor:pointer}.challenge-banner{display:flex;align-items:center;gap:20px;background:#efece2;border:1px solid #e1dece;padding:26px 30px;border-radius:13px;margin:8px 0 30px}.reward-icon{height:54px;min-width:44px;border:1px solid #9f6047;border-radius:5px 5px 15px 15px;display:grid;place-items:center;color:#9f6047;font-family:var(--serif);font-size:22px;transform:rotate(-7deg)}.coming-soon{font-size:10px;letter-spacing:1px;color:#8d6652}.challenge-copy{flex:1}.challenge-copy h2{font-size:18px;margin:4px 0}.challenge-copy p{font-size:11px;color:var(--muted)}.site-footer{max-width:1064px;margin:auto;padding:23px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.site-footer div{display:flex;gap:20px}.site-footer a{display:inline-block;padding:6px 0}
.practice-view{max-width:720px;margin:25px auto 0;padding-bottom:150px}.practice-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.practice-heading{margin:25px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.practice-heading h1{font-size:27px;overflow-wrap:anywhere}.practice-heading p{white-space:nowrap;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.progress-track{height:4px;background:#e0e5d8;margin-bottom:25px;border-radius:5px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--green);width:0;transition:width .2s}.recall-paper{border:1px solid var(--line);border-radius:4px 4px 18px 4px;background:var(--paper);padding:25px 35px;box-shadow:5px 5px 0 #e7e7da;min-height:290px}.paper-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);letter-spacing:1px}.recall-text{font-family:var(--serif);font-size:29px;line-height:2.25;letter-spacing:1px;margin:35px 0 25px;overflow-wrap:anywhere;white-space:pre-wrap}.mask-token{display:inline;font-family:inherit;font-size:inherit;line-height:1.7;padding:3px 5px;margin:0 2px 2px 0;background:#e2eadd;border-bottom:2px solid #a9bc9e;border-radius:5px;color:#6b8464;vertical-align:baseline;min-width:26px;overflow-wrap:anywhere}.mask-token.revealed{color:var(--green);background:#eff3eb;border-color:#c2cfb9}.recall-hint{font-size:11px;color:var(--muted);border-top:1px dashed var(--line);padding-top:15px}.card-tools{display:flex;justify-content:center;gap:30px;margin:25px 0 10px}.reveal-button{font-size:13px;min-height:44px;color:var(--green);padding:0 20px;border:1px solid #b8c7ad;border-radius:25px}.practice-note{font-size:10px;color:var(--muted);text-align:center}.practice-dock{position:fixed;z-index:5;bottom:0;left:0;right:0;background:rgba(246,244,237,.97);border-top:1px solid var(--line);padding:16px 24px max(20px,env(safe-area-inset-bottom))}.practice-dock>div{max-width:720px;margin:auto;display:grid;grid-template-columns:1fr 1.35fr;gap:12px}.practice-dock .button{min-height:60px;font-size:15px;gap:12px}.practice-dock .button span{font-size:11px;font-weight:400}.result-view{max-width:500px;margin:60px auto 70px;text-align:center}.result-seal{display:grid;place-items:center;background:#e6ebdc;border:1px solid #bac8a6;color:var(--green);border-radius:50%;width:72px;height:72px;font-family:var(--serif);font-size:35px;margin:0 auto 24px;transform:rotate(-10deg)}.result-view h1{font-size:36px;margin:14px 0}.result-view>p:not(.eyebrow){color:var(--muted);font-size:13px}.result-stats{display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:25px;margin:30px 0}.result-stats>div+div{border-left:1px solid var(--line)}.result-stats strong{font-family:Georgia,serif;font-size:42px;color:var(--green);font-weight:400;display:block;line-height:1.3}.result-stats span{font-size:11px;color:var(--muted)}.result-actions{display:grid;gap:12px}.result-view .local-note{font-size:10px!important}dialog{background:var(--paper);border:1px solid var(--line);border-radius:18px;max-width:440px;width:calc(100% - 36px);padding:35px 28px 28px;color:var(--ink)}dialog::backdrop{background:rgba(25,42,32,.35);backdrop-filter:blur(3px)}dialog h2{font-family:var(--serif);font-size:25px;margin:14px 0}dialog p{font-size:13px;margin:14px 0;line-height:1.9}dialog .dialog-note{font-size:11px;background:var(--bg);padding:12px;border-radius:8px}dialog .button{margin-top:20px}.dialog-close{position:absolute;top:6px;right:6px;width:44px;height:44px;font-size:26px;color:var(--muted)}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toast{position:fixed;z-index:20;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 20px;font-size:12px;border-radius:10px;max-width:calc(100% - 40px);width:max-content;box-shadow:0 4px 22px #0002}.no-script{padding:30px;text-align:center;background:#ffe7d1}
@media(max-width:1120px){main,.site-footer{margin-left:28px;margin-right:28px}.home-layout{gap:40px}.intro h1{font-size:40px}.paper-preview{width:290px}}
@media(max-width:760px){.site-header{height:77px;margin:0 20px;padding:0}.brand{font-size:22px;gap:9px}.brand img{width:34px;height:34px}.brand small{font-size:9px;letter-spacing:.5px}.old-site{font-size:11px}main,.site-footer{margin-left:20px;margin-right:20px}.home-layout{display:block;padding:29px 0 28px}.intro{padding:0}.eyebrow{font-size:10px;letter-spacing:1.5px}.intro h1{font-size:36px;letter-spacing:-1.5px;line-height:1.45;margin:13px 0 11px}.highlight:after{height:9px;bottom:3px}.intro-copy{font-size:12px;line-height:1.8}.desktop-only{display:none}.paper-preview{display:none}.demo-link{font-size:12px;padding:11px 0;margin:4px 0 0}.steps{margin:19px 0 22px;justify-content:space-between;gap:5px;max-width:380px;font-size:10px}.steps b{font-size:11px}.paper-panel{border-radius:15px;padding:23px 20px}.section-top{margin-bottom:20px}.section-top h2{font-size:20px}.corner-symbol{font-size:32px}.editor label,legend{font-size:12px}textarea{min-height:150px}.sample-row button{min-height:40px}.difficulty-options label>span{padding:12px 4px}.start-button{min-height:54px}.local-note{font-size:10px;line-height:1.7}.library{padding:26px 0 18px}.library h2{font-size:21px}.deck-list{grid-template-columns:1fr}.deck-item{padding:18px 20px}.deck-item h3{margin-top:6px}.deck-item button[data-open]{margin-top:10px}.challenge-banner{padding:21px 18px;gap:14px;flex-wrap:wrap}.reward-icon{height:47px;min-width:38px;font-size:21px}.challenge-copy{min-width:0}.challenge-copy h2{font-size:16px}.challenge-copy p{font-size:10px;line-height:1.8}.challenge-banner>.text-button{margin-left:52px;padding:0;min-height:35px}.site-footer{display:block;padding:20px 0 25px;font-size:10px}.site-footer div{justify-content:space-between;gap:10px;margin-top:6px}.practice-view{margin-top:13px;padding-bottom:130px}.practice-heading{margin:18px 0}.practice-heading h1{font-size:23px}.practice-heading p{font-size:10px}.progress-track{margin-bottom:20px}.recall-paper{padding:21px 20px;min-height:290px}.recall-text{font-size:27px;line-height:2.3;letter-spacing:.5px;margin:28px 0}.paper-meta{font-size:9px}.recall-hint{font-size:10px}.practice-dock{padding:13px 20px max(15px,env(safe-area-inset-bottom))}.practice-dock>div{gap:10px}.practice-dock .button{flex-direction:column;gap:0;min-height:61px;font-size:14px}.practice-dock .button span{font-size:10px;margin-top:2px}.card-tools{gap:25px;margin-top:25px}.practice-note{font-size:10px}.result-view{margin:36px auto 45px}.result-view h1{font-size:31px}.result-seal{width:65px;height:65px;font-size:31px}.result-stats{padding:22px 15px}.result-stats strong{font-size:38px}.result-actions .button{min-height:54px}}
@media(max-width:360px){main,.site-footer{margin-left:15px;margin-right:15px}.site-header{margin:0 15px}.intro h1{font-size:32px}.paper-panel{padding:20px 16px}.challenge-copy h2{font-size:14px}.practice-dock{padding-left:15px;padding-right:15px}.recall-text{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.site-header,.site-footer,.practice-dock,.card-tools,.practice-note{display:none!important}.recall-paper{box-shadow:none}.mask-token{color:transparent}.mask-token.revealed{color:var(--ink)}}
.mask-token:disabled{opacity:1;cursor:default}
.mask-token{max-width:100%}

/* 软件市场入口：与原自习室并列，保留背诵首页。 */
.site-links{display:flex;align-items:center;gap:18px}.market-link{font-size:13px;font-weight:650;color:var(--ink,#263b33);border-bottom:1px solid currentColor;padding:7px 0}@media(max-width:600px){.site-links{gap:12px}.market-link{font-size:11px}.site-links .old-site{font-size:11px}}
