@charset "UTF-8";
:root{--paper:#f5f4ee;--white:#fffefa;--ink:#253b35;--muted:#626e64;--line:#e2e5dc;--green:#285a50;--green-light:#e7eee7;--orange:#95532e;--amber-bg:#faf0dd;--red:#aa4a3c;--radius:16px;--shadow:0 20px 80px #1d332025;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green);text-decoration:none}button{border:0;background:none}input,select,textarea{background:var(--white);border:1px solid var(--line);border-radius:9px;padding:11px 13px;width:100%;min-height:46px}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#747c71}select{padding-right:28px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d09a53;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;line-height:1.45}h1{font-size:30px;letter-spacing:-1px}h2{font-size:23px}h3{font-size:15px}img{display:block;max-width:100%}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:9px}.heading-dot{color:var(--orange)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 20px;border:1px solid transparent;border-radius:9px;font-weight:550;text-align:center;line-height:1.4;transition:background .15s}.primary{background:var(--green);color:#fffefa}.primary:hover{background:#204b43}.secondary{background:var(--white);border-color:var(--line)}.secondary:hover{background:var(--green-light)}.text-button{color:var(--green);min-height:44px;padding:8px 10px;white-space:nowrap}.icon-button{font-size:24px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:9px;flex-shrink:0;width:46px;height:46px;background:var(--white)}.danger{color:var(--red)}.sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;white-space:nowrap}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.sidebar{width:228px;position:fixed;inset:0 auto 0 0;background:#eeefe7;border-right:1px solid var(--line);padding:36px 20px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:13px;align-items:center;font-size:20px;font-weight:650;margin:0 8px 46px}.brand-mark{background:var(--green);color:#f4ebce;border-radius:13px;width:46px;height:50px;display:grid;place-items:center;font-family:serif;font-size:26px;box-shadow:3px 3px 0 #d4dac9;flex-shrink:0}.brand-sub{display:block;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:3px}.side-caption{font-size:10px;color:var(--muted);letter-spacing:2px;margin:0 14px 14px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-button{display:flex;align-items:center;gap:12px;min-height:49px;padding:10px 14px;border-radius:9px;text-align:left;color:#5f6f61}.nav-button>span:first-child{font-size:20px;width:21px}.nav-button.active{background:#dfe7dc;color:var(--green);font-weight:600}.nav-button:hover{background:#e2e7dd}.nav-count{margin-left:auto;font-size:11px}.sidebar-bottom{margin-top:auto}.sidebar-bottom>p{color:#667061;padding:18px 11px}.account{border-top:1px solid var(--line);padding:22px 5px 0;display:flex;align-items:center;gap:8px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e4d9c4;font-family:serif}.account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px}.account .text-button{font-size:11px}.workspace{margin-left:228px}.topbar{padding:21px 5%;min-height:75px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#5f6d61;gap:12px}.topbar-title{display:flex;gap:14px}.storage-label{font-size:10px;letter-spacing:.4px;white-space:nowrap;display:flex;align-items:center;gap:6px}.storage-label i{height:5px;width:5px;background:#6a8c73;border-radius:50%}main#main{max-width:1240px;margin:0 auto;padding:42px 5% 20px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.intro-note{margin-top:11px;font-size:12px}.intro .primary{font-size:12px}.intro .primary span{font-size:20px}.mobile-break{display:none}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:32px 0 30px;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stats>div{padding:0 26px;border-right:1px solid var(--line)}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0}.stat-label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-bottom:8px}.stats strong{font-size:30px;line-height:1.2;font-family:Georgia,serif;font-weight:400}.stat-unit{color:var(--muted);font-size:11px;margin-left:10px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%}.amber{background:#c69a55}.green{background:#679580}.collection-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px}.tabs{display:flex;gap:28px}.tab{padding:10px 1px 15px;min-height:48px;color:var(--muted);border-bottom:2px solid transparent;font-size:12px}.tab.active{border-bottom-color:var(--green);color:var(--green);font-weight:650}.review-start{font-size:12px}.filters{display:flex;gap:10px;padding:22px 0 13px}.search-box{display:flex;align-items:center;gap:9px;flex:1;min-width:0;background:var(--white);border:1px solid var(--line);border-radius:9px;padding-left:14px}.search-box>span:first-child{font-size:24px;color:#6b7565;line-height:1}.search-box input{border:0;background:none;min-width:0;padding-left:0;font-size:12px}.filters>label:not(.search-box){max-width:160px;min-width:125px}.filters select{font-size:12px}.list-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:17px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mistake-card{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:box-shadow .15s,transform .15s;display:flex;flex-direction:column}.mistake-card:hover{box-shadow:0 5px 20px #233b2510;transform:translateY(-2px)}.card-open{padding:0;text-align:left;width:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-start}.card-media{height:152px;background:#eeeee4;overflow:hidden;width:100%;position:relative}.card-media img{height:100%;width:100%;object-fit:cover;object-position:top}.card-media.text-media{padding:22px;background:#f0efe4;display:flex;align-items:center;color:#6d7461;font-family:serif;font-size:17px;line-height:1.9}.card-media.text-media span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.card-media.has-image::after{content:"原图";position:absolute;right:9px;bottom:9px;background:#fffefaeb;border-radius:4px;padding:2px 6px;font-size:9px;color:#657466}.card-body{padding:16px 16px 12px;width:100%}.card-labels{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;gap:6px}.subject-label{font-size:10px;color:var(--green);letter-spacing:1px}.status{font-size:9px;border-radius:4px;padding:2px 7px;background:var(--amber-bg);color:#805d25;white-space:nowrap}.status.mastered{background:var(--green-light);color:#53806a}.card-title{font-size:14px;font-weight:550;line-height:1.7;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:47px;margin-bottom:11px}.tags{display:flex;flex-wrap:wrap;gap:5px}.tag{font-size:10px;color:#626c5d;background:#f2f2eb;padding:2px 7px;border-radius:4px;max-width:100%;overflow-wrap:anywhere}.card-bottom{border-top:1px solid #edeee6;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:10px;color:var(--muted)}.card-bottom span{overflow-wrap:anywhere}.card-bottom button{min-height:44px;padding:4px 0 4px 6px;flex-shrink:0;color:var(--green)}.due{color:var(--orange)}.empty-state{text-align:center;padding:48px 14px 60px}.empty-state h2{font-size:18px;margin:22px 0 10px}.empty-state p{color:var(--muted);font-size:12px;max-width:350px;margin:0 auto 24px}.empty-illustration{height:105px;width:84px;border:1px solid #cbd6c6;box-shadow:5px 5px 0 #e5e9dc;background:var(--white);border-radius:4px;transform:rotate(-6deg);margin:auto;padding:18px 15px}.empty-illustration span{display:block;background:var(--green-light);border-radius:50%;height:26px;width:26px;margin-bottom:12px;color:var(--green)}.empty-illustration i{display:block;height:2px;background:#dfe4d9;margin-bottom:8px}.empty-illustration i:last-child{width:65%}.load-more{display:flex;margin:24px auto}.page-footer{margin-top:45px;padding:18px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#667061}.mobile-nav{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#233e36;color:white;padding:13px 22px;border-radius:9px;font-size:13px;box-shadow:var(--shadow);z-index:100;max-width:calc(100vw - 30px);width:max-content;pointer-events:none}.sheet{border:1px solid var(--line);border-radius:18px;padding:0;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 48px);background:var(--white);color:var(--ink);box-shadow:var(--shadow)}.sheet::backdrop{background:#223b3555;backdrop-filter:blur(3px)}.sheet-heading{padding:24px 28px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);background:var(--white);position:sticky;top:0;z-index:2}.sheet-heading h2{font-size:21px;overflow-wrap:anywhere}.sheet-heading .eyebrow{font-size:10px;letter-spacing:1px}.sheet-heading .icon-button{border:0;background:none;font-weight:300;font-size:28px}.sheet-content{padding:24px 28px}.sheet-content>label,.sheet-content .form-grid>label{display:flex;flex-direction:column;gap:7px;margin-bottom:20px;font-size:12px;font-weight:550}.sheet-content input,.sheet-content textarea,.sheet-content select{font-size:14px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.required{color:var(--orange)}.field-note{color:var(--muted);font-size:11px;font-weight:400}.upload-area{border:1px dashed #c9d4c4;border-radius:12px;padding:18px;margin-bottom:24px;background:#f7f8f1}.upload-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:14px;align-items:center}.upload-heading strong{font-size:13px}.upload-actions{display:flex;justify-content:center;gap:12px;padding:10px 0 14px}.file-button{position:relative;cursor:pointer;min-width:120px}.file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-button:focus-within{outline:3px solid #d09a53;outline-offset:3px}.upload-area>p{text-align:center;line-height:1.8}.image-previews{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.preview{position:relative;aspect-ratio:1;border:1px solid var(--line);border-radius:6px;background:white;overflow:hidden}.preview img{width:100%;height:100%;object-fit:contain}.preview button{position:absolute;right:0;top:0;width:44px;height:44px;background:#244037e8;color:white;font-size:23px}.sheet-footer{position:sticky;bottom:0;padding:17px 28px;display:flex;justify-content:flex-end;gap:10px;background:var(--white);border-top:1px solid var(--line);z-index:2}.sheet-footer .primary{min-width:160px}.form-error{border:1px solid #e8c5b9;color:#9e4434;background:#fff3ed;padding:11px 13px;border-radius:8px;font-size:13px;line-height:1.7;margin:10px 0}.detail-images{display:grid;gap:18px;margin:20px 0}.detail-images img{border:1px solid var(--line);border-radius:8px;width:100%;object-fit:contain;max-height:65dvh;background:#f2f2ec}.original-link{display:block;font-size:11px;margin-top:5px;text-align:right;min-height:44px}.question-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.9;margin:15px 0 24px}.reveal-button{width:100%;margin-bottom:20px;border-style:dashed;color:var(--green)}.answer-block,.reason-block{padding:18px 20px;border-left:3px solid #638b70;background:#edf3eb;margin-bottom:22px}.reason-block{background:#fbf3e7;border-left-color:#c09356}.answer-block h3,.reason-block h3,.text-section h3{margin-bottom:10px;font-size:12px;color:#5e8067}.reason-block h3{color:#a57940}.text-section{margin-bottom:24px}.text-section p,.answer-block p,.reason-block p{font-size:14px;line-height:1.9}.detail-tools{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding-top:12px;margin-top:25px}.detail-footer{flex-wrap:wrap}.review-progress{background:var(--green-light);padding:10px 14px;margin-bottom:18px;font-size:12px;border-radius:7px}.review-schedule{background:#eeefe6;border-radius:8px;padding:12px 15px;font-size:12px;line-height:1.9;margin:14px 0}.compact{max-width:610px}.backup-section{padding-bottom:24px;margin-bottom:22px;border-bottom:1px solid var(--line)}.backup-section>p{color:var(--muted);font-size:13px;margin:12px 0 18px;line-height:1.8}.backup-section .button{font-size:13px}.restore-label{font-size:12px;display:block}.restore-label input{margin:8px 0 16px;font-size:12px}.check-label{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin-bottom:18px}.check-label input{width:18px;height:18px;min-height:18px;flex-shrink:0}.safety-link{display:block;font-size:12px;overflow-wrap:anywhere;margin:7px 0;padding:8px 0}.success-message{color:var(--green);background:var(--green-light);padding:12px;border-radius:8px;font-size:13px}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 15% 10%,#e9edde 0,transparent 60%),var(--paper)}.auth-card{max-width:430px;width:100%;padding:32px 30px;background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 60px #26432d08}.auth-card .brand-mark{margin:0 0 28px}.auth-card h1{font-size:30px;margin-bottom:12px}.auth-card>.muted{font-size:13px}.auth-form{display:flex;flex-direction:column;gap:9px;margin-top:30px}.auth-form label{font-size:12px;margin-top:8px}.auth-form .button{margin-top:18px;justify-content:space-between}.auth-note{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;font-size:11px;color:var(--muted)}.auth-note span{margin-right:5px}.teaching-helper{padding:14px 16px;border:1px solid var(--line);border-radius:9px;margin:20px 0;background:#f7f7ef}.teaching-helper p{font-size:12px;color:var(--muted);margin:7px 0}.teaching-helper .button{font-size:12px;min-height:44px;padding:8px 12px}.helper-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(min-width:1450px){.card-media{height:190px}}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:200px;padding-left:14px;padding-right:14px}.workspace{margin-left:200px}h1{font-size:26px}.filters>label:not(.search-box){min-width:110px;max-width:130px}.card-media{height:170px}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}.topbar{padding:16px 20px;min-height:60px}.topbar-title{gap:9px;font-size:10px}.storage-label{font-size:9px}main#main{padding:27px 20px 100px}.intro{display:block}.intro .eyebrow{font-size:10px}.intro h1{font-size:26px;line-height:1.55;letter-spacing:-.6px}.mobile-break{display:block}.intro-note{font-size:11px;margin-top:9px}.add-desktop{display:none}.stats{margin:24px 0 20px;padding:19px 0}.stats>div{padding:0 14px}.stat-label{font-size:10px;gap:4px;margin-bottom:9px}.stats strong{font-size:28px}.stat-unit{margin-left:6px;font-size:10px}.tabs{gap:23px}.tab{font-size:11px;padding-bottom:12px}.review-start{font-size:11px;padding:8px 0}.filters{flex-wrap:wrap;gap:8px;padding-top:17px}.search-box{flex-basis:calc(100% - 55px);order:0}.filters #refresh{order:1}.filters>label:not(.search-box){flex:1;max-width:none;min-width:0;order:2}.filters input,.filters select{font-size:12px}.cards{gap:12px}.card-media{height:120px}.card-media.text-media{padding:13px;font-size:14px}.card-body{padding:12px 11px 10px}.card-labels{margin-bottom:9px;gap:4px}.subject-label{font-size:9px}.status{font-size:8px;padding:2px 5px}.card-title{font-size:12px;min-height:41px;margin-bottom:9px}.tag{font-size:9px;padding:2px 5px}.card-bottom{padding:8px 10px;font-size:9px;flex-wrap:wrap;gap:1px}.card-bottom button{font-size:10px;min-height:44px}.list-meta{font-size:9px;margin-bottom:13px}.empty-state{padding:38px 6px}.empty-state h2{font-size:16px}.page-footer{font-size:9px;margin-top:30px}.mobile-nav{display:flex;align-items:center;justify-content:space-around;gap:4px;position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:#fffefaf7;padding:10px 8px max(10px,env(safe-area-inset-bottom));z-index:10;backdrop-filter:blur(8px)}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:48px;min-height:44px;color:var(--muted);font-size:9px}.mobile-nav button span{font-size:21px;line-height:1.2}.mobile-nav button.active{color:var(--green)}.mobile-nav .mobile-add{width:46px;min-width:46px;height:46px;border-radius:14px;background:var(--green);color:var(--white);font-size:28px;display:grid;place-items:center;box-shadow:0 4px 12px #285a5020}.sheet{width:100%;max-width:none;margin:auto 0 0;border-radius:18px 18px 0 0;max-height:95dvh;border-bottom:0}.sheet-heading{padding:20px 19px 14px}.sheet-heading h2{font-size:19px}.sheet-content{padding:20px 19px}.sheet-footer{padding:13px 19px max(13px,env(safe-area-inset-bottom))}.sheet-footer .primary{min-width:0;flex:1}.detail-footer .button{flex:1;padding:11px 10px;font-size:12px}.form-grid{gap:12px}.upload-area{padding:13px}.upload-heading{gap:5px}.upload-heading .small{font-size:10px}.upload-actions{gap:8px}.file-button{min-width:110px;font-size:12px}.upload-area>p{font-size:10px}.image-previews{gap:6px}.image-previews:empty{display:none}.sheet-content input,.sheet-content textarea,.sheet-content select{font-size:16px}.toast{bottom:96px;font-size:12px;padding:12px 16px}.auth-page{padding:20px}.auth-card{padding:28px 24px}.auth-form input{font-size:16px}}
@media(max-width:360px){main#main{padding-left:14px;padding-right:14px}.topbar{padding-left:14px;padding-right:14px}.tabs{gap:15px}.intro h1{font-size:24px}.stats>div{padding:0 10px}.stats .stat-label{font-size:9px}.status{font-size:7px}.card-body{padding:10px}.card-media{height:105px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
