/* Ink landscape + task-first learning tablet interface. */
.canvas-wrap.paper-english canvas{background-image:url('paper-english.svg');background-size:80px 72px;background-repeat:repeat}
.canvas-wrap.paper-chinese canvas{background-image:url('paper-chinese.svg');background-size:80px 36px;background-repeat:repeat}
.canvas-wrap.paper-composition canvas{background-image:url('paper-composition.svg');background-size:36px 36px;background-repeat:repeat}
.canvas-wrap.paper-math canvas{background-image:linear-gradient(#d9e0d0 1px,transparent 1px),linear-gradient(90deg,#d9e0d0 1px,transparent 1px);background-size:26px 26px}
.paper-label{font-size:11px;color:#778373;display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #d7decd;border-radius:6px;background:#fafbef}
.lookup-word{display:inline;border:0;background:none;padding:0;min-height:0;border-radius:3px;font:inherit;color:inherit;line-height:inherit;text-align:inherit;touch-action:manipulation}
.lookup-word:hover,.lookup-word:focus-visible{background:#e4eacb;color:#35543c;text-decoration:underline;text-underline-offset:4px}.lookup-hint{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#7b8870;margin-bottom:10px}.word-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.word-head h2{font-size:29px;margin:0;font-family:Georgia,serif}.word-pronunciation{font-size:14px;color:#869078;margin:5px 0 18px}.word-meaning{background:#f1f3e5;border:1px solid #dce2ce;border-radius:12px;padding:15px 18px;font-size:17px;line-height:1.9}.word-definition{font-size:13px;line-height:1.9;color:#69785d}.word-source{font-size:10px;color:#8c9581;line-height:1.9}.word-example{font-size:12px;padding:13px;border-left:2px solid #b2bea1;background:#f7f8f0;line-height:1.9}.word-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.word-tile{background:#fffef7e8;border:1px solid #dce2cf;border-radius:14px;padding:20px;min-width:0}.word-tile h3{font:23px Georgia,serif;margin:0 0 10px;overflow-wrap:anywhere}.word-tile p{font-size:13px;line-height:1.8;color:#738166;min-height:44px}.word-tile small{font-size:10px;line-height:1.8;color:#8c9682}.word-tile button{font-size:12px;margin-top:12px}.memory-card{max-width:700px;margin:28px auto;background:#fffef7e8;border:1px solid #d7dfca;border-radius:20px;padding:35px;text-align:center}.memory-card h2{font:40px Georgia,serif;color:#334c35;margin:26px 0}.memory-card .word-actions{justify-content:center}.memory-card .word-meaning{text-align:left}.word-entry{display:flex;gap:10px;align-items:center}.word-entry input{border:1px solid #d4dcc6;border-radius:9px;padding:12px;min-width:0;font-size:15px;flex:1}.lookup-word-count{font-size:11px;color:#667d58}.listen-loop{font-size:11px;display:flex;align-items:center;gap:4px}.topbar nav{gap:0}.topbar .nav{padding:9px 12px}.word-search-form{display:flex;gap:8px;margin-bottom:15px}.word-search-form input{flex:1;min-width:0;border:1px solid #d5deca;padding:10px;border-radius:8px}
@media(max-width:850px){.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar .nav{font-size:11px;padding:8px}.brand{font-size:20px}.brand small{letter-spacing:1px}.save{font-size:9px;margin-left:0}.topbar{gap:16px;padding:0 20px}}
@media(max-width:600px){.word-grid{grid-template-columns:1fr}.memory-card{padding:22px}.word-head h2{font-size:26px}.paper-label{font-size:9px}.topbar{padding:12px;gap:9px}.topbar nav{margin-left:0}.brand{font-size:19px}.topbar .nav{font-size:10px;padding:7px}.lookup-hint{font-size:9px}.word-entry{flex-wrap:wrap}.word-entry input{width:100%;flex-basis:100%}}
:root{--green:#354d45;--dark:#283a35;--ink:#2c3732;--muted:#7d8478;--bg:#f3f0e7;--line:#dfdfd3;--soft:#e8eade;--orange:#a24f40}
body{background:#f3f0e7 url('ink-landscape.svg') center bottom/cover fixed no-repeat}body::before{content:'';position:fixed;inset:0;pointer-events:none;background:linear-gradient(110deg,#f5f3ece6 0%,#f5f3ec88 55%,#f5f3ec22);z-index:-1}.topbar{height:78px;background:#faf9f2d9;backdrop-filter:blur(12px);padding:0 30px;gap:28px;border-bottom:1px solid #d8dccf}.logo{border-radius:6px;background:#934e40;color:#fff6e3;font-family:"Kaiti SC",STKaiti,KaiTi,serif;transform:rotate(-3deg);box-shadow:inset 0 0 0 3px #ffffff33;font-size:29px}.brand{font-family:"Kaiti SC",STKaiti,KaiTi,serif;font-size:23px;letter-spacing:2px}.brand small{letter-spacing:3px}.topbar nav{margin-left:auto}.save{margin-left:15px}.nav.active{background:#e6e9dd}.nav{border-radius:8px}main{max-width:1600px;padding:24px 28px 38px}.learning-machine{display:grid;grid-template-columns:160px minmax(0,1fr) 236px;gap:22px;align-items:start}.machine-sidebar{padding:20px 12px;border-radius:18px;background:linear-gradient(155deg,#364a42,#263b32);color:#f8f5e8;min-height:650px;box-shadow:0 10px 24px #3342370c;position:sticky;top:20px}.student-avatar{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border:1px solid #fff7d477;border-radius:50%;font-family:KaiTi,serif;font-size:26px;background:#f6f0dc15}.student-name{text-align:center;font-size:17px;font-weight:600;letter-spacing:2px}.student-grade{text-align:center;font-size:10px;color:#c6cdbd;margin:7px 0 24px}.machine-sidebar button{display:flex;align-items:center;width:100%;gap:11px;text-align:left;padding:12px 11px;font-size:13px;border-radius:9px;margin:7px 0;min-height:47px;color:#d8dfce}.machine-sidebar button.selected{background:#faf7e6;color:#354b3d;font-weight:600}.side-symbol{font-family:serif;font-size:20px;width:22px;text-align:center}.sidebar-divider{height:1px;background:#e8e8d621;margin:22px 10px}.sidebar-poem{font-family:KaiTi,serif;font-size:13px;line-height:2.1;color:#c1cbb6;letter-spacing:3px;text-align:center;margin:35px 0 4px}.machine-center{min-width:0}.machine-welcome{display:flex;align-items:center;justify-content:space-between;margin:5px 0 22px}.machine-welcome h1{font-family:"Kaiti SC",STKaiti,KaiTi,serif;font-size:27px;letter-spacing:2px;font-weight:500;margin:0 0 7px}.machine-welcome p{font-size:12px;margin:0;color:#7d8376}.ink-seal{font-family:KaiTi,serif;writing-mode:vertical-rl;letter-spacing:4px;color:#96574b;font-size:12px;border:1px solid #ac796875;padding:7px 4px;transform:rotate(3deg)}.machine-tabs{display:flex;gap:8px;border-bottom:1px solid #d8ddce;padding-bottom:10px;margin-bottom:18px}.machine-tabs button{border-radius:8px;min-height:40px;padding:8px 20px;color:#737b6d;font-size:14px}.machine-tabs button.selected{background:#354d45;color:#fffaf0}.machine-week{background:#ffffffac;border:1px solid #e0e1d4;border-radius:14px;padding:15px 17px;margin-bottom:19px}.week-heading{display:flex;justify-content:space-between;font-size:12px;color:#4e5d4e;margin-bottom:12px}.week-heading span{font-size:10px;color:#8a9083}.machine-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.machine-day{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:7px 2px;min-height:63px;border-radius:9px;font-size:11px;color:#808777}.machine-day b{font:20px Georgia;margin-top:7px;color:#3f5042}.machine-day.selected{background:#e5e9da;color:#3c5042}.machine-day.selected b{color:#3b5545}.machine-day i{display:block;background:#899c7e;width:4px;height:4px;border-radius:50%;margin-top:5px}.machine-day:not(.selected) i{background:#cfd5c5}.task-board{background:#fffef8dd;border:1px solid #e0e1d4;border-radius:17px;padding:20px 21px;box-shadow:0 5px 25px #34402c04}.task-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.task-heading h2{font-size:19px;letter-spacing:1px;margin:0}.task-heading small{font-size:10px;color:#8a9084}.task-row{display:flex;align-items:center;gap:15px;padding:17px 0;border-top:1px solid #ececdf}.task-row:first-of-type{border-top:0}.task-icon{width:53px;height:59px;border:1px solid #d5ddce;border-radius:7px;background:linear-gradient(135deg,#e6ebdf,#f6f7ee);display:grid;place-items:center;color:#52634b;font-family:Georgia,serif;font-size:22px;position:relative;flex-shrink:0}.task-icon::before{content:'';position:absolute;inset:5px auto 5px 4px;border-left:1px solid #bdc8b6}.task-icon.cn{background:linear-gradient(135deg,#f0e7d7,#fff8ec);color:#9b8062;border-color:#e5d8c3}.task-icon.math{background:linear-gradient(135deg,#e0e7e6,#f5f7f3);color:#64817c;border-color:#c9d8d4}.task-copy{flex:1;min-width:0}.task-copy h3{font-size:16px;margin:0 0 7px;font-weight:600}.task-copy h3 span{display:inline-block;font-size:9px;font-weight:400;color:#a05b47;padding:3px 6px;background:#f4e8de;border-radius:4px;margin-left:8px;vertical-align:middle}.task-copy p{font-size:11px;line-height:1.7;color:#828878;margin:0}.task-meta{display:flex;gap:10px;margin-top:9px;align-items:center}.task-meta .progress{max-width:150px;margin:0;height:4px;background:#e6e9dd}.task-meta small{font-size:10px;color:#87907e}.task-row button{min-width:105px;font-size:12px;padding:10px 13px;border-radius:8px;min-height:41px}.task-row .primary{background:#405b49}.machine-quick-heading{display:flex;justify-content:space-between;align-items:center;margin:21px 0 12px}.machine-quick-heading h2{font-size:17px;font-weight:600;margin:0}.machine-quick-heading span{font-size:10px;color:#868d7e}.machine-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-tile{background:#fffef7bc;border:1px solid #dedfd1;border-radius:12px;padding:17px 12px;display:flex;align-items:center;text-align:left;gap:12px;min-height:83px}.quick-tile .glyph{height:35px;min-width:35px;display:grid;place-items:center;background:#e9ecdf;border-radius:10px;color:#61745d;font-size:21px;font-family:Georgia,serif}.quick-tile b{font-size:13px;font-weight:500;display:block}.quick-tile small{font-size:10px;color:#919686;display:block;margin-top:5px}.machine-note{font-size:10px;line-height:1.9;color:#7f8877;margin-top:18px}.machine-right{display:flex;flex-direction:column;gap:17px}.machine-progress-card,.machine-note-card{background:#fffef6cc;border:1px solid #dcdfd1;border-radius:17px;padding:21px}.machine-right h2{font-size:15px;letter-spacing:1px;font-weight:500;margin:0 0 17px}.ink-ring{width:132px;height:132px;border-radius:50%;margin:7px auto 19px;background:conic-gradient(#547159 var(--pct),#e6e9dc 0);padding:8px;display:grid;place-items:center}.ink-ring-inner{width:116px;height:116px;border-radius:50%;background:#faf9f0;display:flex;flex-direction:column;align-items:center;justify-content:center}.ink-ring b{font:29px Georgia;color:#3d5542}.ink-ring small{font-size:10px;color:#8c9482;margin-top:5px}.right-metrics{display:flex;justify-content:space-between;border-top:1px solid #e3e5d8;padding-top:15px;text-align:center}.right-metrics b{display:block;font:23px Georgia;color:#4d6148}.right-metrics small{font-size:10px;color:#8c9281;display:block;margin-top:7px}.machine-note-card{position:relative;overflow:hidden}.machine-note-card::after{content:'温故';position:absolute;bottom:12px;right:15px;color:#65785a0b;font:56px KaiTi,serif;writing-mode:vertical-rl}.machine-note-card p{line-height:1.9;font-size:11px;color:#818a77;position:relative;z-index:1}.machine-note-card button{font-size:12px;width:100%;border:1px solid #d3dbc9;background:#f4f6e9;border-radius:8px;color:#4b6445}.right-quote{text-align:center;font-family:KaiTi,serif;letter-spacing:3px;font-size:15px;color:#6e7f68;line-height:2.2;margin-top:7px}.right-quote small{font-size:10px;letter-spacing:1px;display:block;color:#9a9f8b}.primary{background:#3d5749}.question-panel{background:#fffefaed;border-color:#dcdfd1;border-radius:15px}.question-nav{background:#f9f9f0df;border-color:#dcdfd1;border-radius:14px}.workspace-head h1{font-family:KaiTi,serif;letter-spacing:1px;font-weight:500}.passage{background:#f4f4e9;border-color:#e2e4d5}.canvas-wrap{background:#fffefa;border-color:#d4d9ca}.canvas-wrap canvas{background-color:#fffefa;background-image:linear-gradient(#e9eade 1px,transparent 1px),linear-gradient(90deg,#e9eade 1px,transparent 1px)}.tools{background:#f3f4e9;border-color:#d4d9ca}.question-footer{border-color:#e5e6d9}.field{background:#fffefa}.list-card,.stat,.gate{background:#fffef8ed;border-color:#dbdfd0}.hero-card{background:#e7e8d4}.hero-card::after{content:'学';font-family:KaiTi,serif;color:#adb69455}.pill{background:#e9ecde}.qdot.current{background:#435c48;outline-color:#435c48}.qdot.done{background:#e2e9d9;color:#465f42}.listen{background:#e9edde;border-color:#d8dfca}button:hover{filter:brightness(.98)}
@media(min-width:1500px){main{padding-top:30px}.learning-machine{grid-template-columns:180px minmax(0,1fr) 250px;gap:27px}.machine-sidebar{min-height:700px}.machine-welcome h1{font-size:31px}.task-row{padding:23px 0}.task-board{padding:24px 27px}.quick-tile{min-height:90px}}
@media(max-width:1100px){main{padding:20px}.learning-machine{grid-template-columns:132px minmax(0,1fr);gap:18px}.machine-right{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:14px}.right-quote{display:none}.machine-progress-card{display:grid;grid-template-columns:100px 1fr;gap:8px;padding:16px}.machine-progress-card h2{grid-column:1/-1;margin-bottom:0}.ink-ring{width:88px;height:88px;padding:6px;margin:0}.ink-ring-inner{width:76px;height:76px}.ink-ring b{font-size:22px}.right-metrics{border-top:0;align-items:center;gap:14px;padding:0}.machine-note-card{padding:16px}.machine-note-card h2{margin-bottom:8px}.machine-sidebar{grid-row:1/3;min-height:710px}.machine-sidebar button{padding:10px 6px;font-size:12px;gap:7px}.student-name{font-size:16px}.student-grade{font-size:9px}.task-board{padding:16px}.task-row{gap:12px}.task-copy p{font-size:10px}.task-copy h3{font-size:15px}.task-row button{min-width:88px}.machine-welcome h1{font-size:25px}.machine-quick{gap:8px}.quick-tile{padding:13px 9px;gap:8px}.quick-tile b{font-size:12px}.quick-tile .glyph{min-width:30px;height:30px;font-size:18px}}
@media(min-width:1101px) and (max-width:1250px){.learning-machine{grid-template-columns:145px minmax(0,1fr) 205px;gap:16px}.machine-progress-card,.machine-note-card{padding:17px}.machine-sidebar{padding:20px 9px}.machine-sidebar button{font-size:12px;gap:8px}.task-board{padding:18px}.task-row{gap:10px}.task-copy p{font-size:10px}.task-icon{width:44px;height:52px}.task-row button{min-width:85px}.quick-tile{padding:14px 9px;gap:8px}.quick-tile .glyph{min-width:28px;height:32px}.quick-tile b{font-size:12px}}
@media(max-width:750px){.topbar{padding:14px 16px;min-height:85px;height:auto;gap:12px}.brand{font-size:20px}.topbar nav{gap:0}.nav{font-size:11px;padding:8px}.save{margin-left:0;font-size:9px;width:100%;text-align:right}main{padding:16px 12px 30px}.learning-machine{grid-template-columns:1fr;gap:14px}.machine-sidebar{position:static;grid-row:auto;min-height:0;padding:9px;display:flex;flex-wrap:wrap;gap:4px;border-radius:12px}.student-avatar,.student-name,.student-grade,.sidebar-divider,.sidebar-poem{display:none}.machine-sidebar button{width:auto;margin:0;font-size:10px;gap:4px;min-height:38px;padding:7px}.side-symbol{font-size:15px;width:17px}.machine-welcome{margin:7px 0 17px}.machine-welcome h1{font-size:24px}.machine-welcome p{font-size:10px}.machine-tabs{gap:4px}.machine-tabs button{padding:8px 18px}.machine-week{padding:13px 10px}.machine-day{min-height:55px}.task-board{padding:15px 13px}.task-copy h3{font-size:14px}.task-copy h3 span{font-size:8px;margin-left:4px}.task-copy p{font-size:10px}.task-icon{width:40px;height:48px;font-size:18px}.task-row{gap:9px}.task-row button{min-width:74px;padding:8px;font-size:11px}.task-meta .progress{max-width:70px}.task-meta small{font-size:9px}.task-heading h2{font-size:17px}.task-heading small{font-size:9px}.quick-tile{padding:12px 8px;gap:7px;min-height:75px}.quick-tile .glyph{min-width:24px;width:24px;height:28px;font-size:16px}.quick-tile b{font-size:11px}.quick-tile small{font-size:9px}.machine-right{grid-column:auto}.machine-progress-card{grid-template-columns:1fr}.machine-progress-card h2{text-align:center}.ink-ring{margin:0 auto}.right-metrics{padding-top:10px;gap:5px}.right-metrics b{font-size:19px}.machine-note-card p{font-size:10px}.workspace-head h1{font-size:21px}.machine-note{font-size:9px}.machine-note-card h2{font-size:13px}}
