:root{font-family:system-ui,"Noto Sans SC",sans-serif;color:#202e29;background:#f5f6f1;--green:#244d40;--soft:#e5eee4;--line:#dee4db;--muted:#53655e}*{box-sizing:border-box}body{margin:0}.top{border-bottom:1px solid var(--line);background:#fbfcf9}.top>div{max-width:1120px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:22px;text-decoration:none;color:#233c33;font-weight:800}.brand span,.icon{display:inline-grid;place-items:center;border-radius:11px;background:var(--green);color:white;width:37px;height:37px;font-size:18px}.icon{background:var(--soft);color:#295144}main{max-width:1120px;margin:24px auto 70px;padding:0 24px}.hero{border-radius:24px;background:#20473a;color:#fff;padding:36px 38px;display:flex;justify-content:space-between;align-items:center;gap:24px}.hero p{color:#d5e6d8;margin:8px 0 0}.hero h1{margin:4px 0 10px;font-size:clamp(28px,5vw,46px);letter-spacing:-.04em}.hero small{color:#d5e6d8}.hero-stats{display:flex;gap:12px;flex-wrap:wrap}.hero-stats div{background:#31594a;border:1px solid #547266;border-radius:16px;padding:14px 18px;min-width:105px}.hero-stats b{display:block;font-size:25px}.section{margin-top:27px}.section h2{margin:0 0 12px;font-size:21px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px}.card h3{margin:11px 0 4px}.card p{margin:6px 0 13px}.muted,small{color:var(--muted)}.stack{display:grid;gap:12px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{justify-content:space-between}.login{max-width:445px;margin:55px auto}.login h1{margin-top:0}label{display:grid;gap:5px}input,select,textarea{font:inherit;border:1px solid #c9d4cb;background:#fff;color:inherit;border-radius:10px;padding:10px;width:100%;min-width:0}input[type=checkbox]{width:auto}textarea{min-height:100px;resize:vertical}.essay{min-height:230px}.checks label{display:flex;align-items:center}button{font:inherit;border:1px solid transparent;border-radius:10px;padding:9px 13px;cursor:pointer;background:var(--green);color:white}button:hover{filter:brightness(1.1)}button:disabled{opacity:.55;cursor:wait}.light,.keys button{background:var(--soft);color:#254b3c}.outline{border-color:var(--line);background:#fff;color:var(--green)}.keys{margin:8px 0;gap:5px}.keys button{padding:5px 9px}.record{border-top:1px solid var(--line);padding:10px 0}.question{white-space:pre-wrap;line-height:1.75}.tag{display:inline-block;background:var(--soft);color:#254b3c;padding:4px 9px;border-radius:999px;font-size:13px}#notice{position:fixed;bottom:18px;right:18px;max-width:min(430px,90vw);background:#1d3a30;color:#fff;border-radius:12px;padding:12px 16px;box-shadow:0 8px 25px #0002}#notice:empty{display:none}a{color:var(--green)}audio{max-width:100%}@media(max-width:650px){main,.top>div{padding-left:15px;padding-right:15px}.hero{display:grid;padding:23px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.progress-grid{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}.form-error{color:#942f27;background:#fff1ec;padding:12px;border-radius:10px;margin:0}

#reading-menu{position:fixed;z-index:10;box-shadow:0 6px 18px #0003}
#reading-menu{display:grid;gap:2px;background:white;padding:3px;border-radius:10px}
canvas[data-drawing],.math-image{width:min(100%,720px);height:auto;display:block;border:1px solid #abbcb1;border-radius:6px;margin:8px 0;background:white}canvas[data-drawing]{touch-action:none;cursor:crosshair}summary{cursor:pointer}

#word-spell[hidden]{display:none}

.textbook-dialog {box-sizing:border-box;width:min(48rem,94vw);max-height:88vh;overflow:auto;border:0;border-radius:14px;padding:1.25rem}
.textbook-dialog::backdrop {background:#18252b99}
.textbook-dialog header {display:flex;align-items:center;justify-content:space-between;gap:.75rem;position:sticky;top:-1.25rem;background:white;padding:.5rem 0}
.textbook-dialog header h2 {margin:0}
.textbook-dialog img {display:block;width:100%;height:auto}

.study-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem;background:#eef3ef;padding:.35rem;border-radius:.8rem;margin:.75rem 0 1rem}
.study-nav button{background:transparent;color:#274c40;padding:.65rem .15rem}
.study-nav button[aria-pressed=true]{background:#245a48;color:white}

/* Learning workspace */
:root {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #263a42;
  background: #f4f6f8;
  --green: #315fdb;
  --soft: #edf2ff;
  --line: #e5eaf0;
  --muted: #687986;
}
body {line-height:1.6}
.top {background:#ffffffed;position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}
.top>div {max-width:1240px;min-height:80px;gap:18px}
.brand {color:#24364b;white-space:nowrap;letter-spacing:2px}
.brand span {background:#315fdb;border-radius:12px;box-shadow:0 4px 12px #315fdb25}
.brand-caption {font-size:13px;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}
#account {margin-left:auto;font-size:13px}
main {max-width:1240px;margin:26px auto 70px}
.study-nav {display:flex;gap:28px;padding:0 0 14px;margin:0 0 26px;background:transparent;border-radius:0;border-bottom:1px solid var(--line)}
.study-nav button {position:relative;color:#687986;padding:10px 18px;border-radius:10px;font-weight:600}
.study-nav button[aria-pressed=true] {background:#e8eeff;color:#264fc2}
.study-nav button[aria-pressed=true]::after {content:"";height:3px;position:absolute;bottom:-15px;left:18px;right:18px;background:#315fdb;border-radius:4px}
.hero {background:#e8efff;color:#243e78;border:1px solid #dce6fc;border-radius:22px;padding:36px;min-height:215px;position:relative;overflow:hidden}
.hero h1 {font-size:clamp(25px,3vw,36px);letter-spacing:0;margin:12px 0}
.hero p,.hero small {color:#586e97}
.hero-stats {gap:24px;flex-shrink:0}
.hero-stats div {background:#ffffffaa;border:1px solid #fff;border-radius:15px;min-width:110px;padding:18px}
.hero-stats b {color:#315fdb;font-size:28px;font-weight:700}
.hero-stats small {font-size:12px;max-width:108px;display:block}
.section {margin-top:32px}
.section h2 {font-size:19px;letter-spacing:.2px;font-weight:650}
.card {border:1px solid var(--line);border-radius:16px;padding:23px;box-shadow:0 3px 12px #263a4203}
.grid {gap:16px}
.subject-grid {grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}
.subject-card {position:relative;transition:transform .18s,box-shadow .18s;border-top:3px solid var(--subject,#6c83cf)}
.subject-card:hover {transform:translateY(-3px);box-shadow:0 10px 25px #263a420b}
.subject-card[data-subject=math] {--subject:#5884df;--tint:#edf2ff}
.subject-card[data-subject=cn] {--subject:#cf8569;--tint:#fff3ec}
.subject-card[data-subject=en] {--subject:#8b78c4;--tint:#f3efff}
.subject-card[data-subject=bio] {--subject:#5b9a76;--tint:#edf7f0}
.subject-card[data-subject=geo] {--subject:#4b9aa5;--tint:#eaf7f8}
.subject-card[data-subject=hist] {--subject:#b09157;--tint:#faf5e9}
.subject-card[data-subject=eth] {--subject:#c47a94;--tint:#fcf0f5}
.subject-card .icon {width:44px;height:44px;background:var(--tint);color:var(--subject);border-radius:13px}
.subject-card h3 {font-size:19px;margin-top:14px}
.subject-card p {font-size:13px;margin-bottom:20px}
.subject-card button {width:100%;text-align:left;background:var(--tint);color:#334653}
button {font-weight:550;padding:10px 16px;transition:background .15s,box-shadow .15s}
button:hover {filter:none;box-shadow:0 3px 10px #263a4212}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #a8bfff;outline-offset:3px}
.light,.keys button {background:#edf2ff;color:#3159bf}
.outline {color:#3159bf}
.tag {background:#edf2ff;color:#3159bf}
input,select,textarea {border-color:#dce3eb;padding:12px;border-radius:10px}
input:focus,select:focus,textarea:focus {outline:2px solid #b5c9ff;border-color:#7194ed}
input[type=checkbox],input[type=radio] {accent-color:#315fdb}
#paper {max-width:900px;margin:auto;gap:24px}
#paper>.card {padding:30px 36px}
#paper .question {font-size:17px;line-height:1.95;margin:20px 0}
#paper label:has(input[type=radio]) {padding:13px 16px;border:1px solid var(--line);border-radius:10px;margin:9px 0;cursor:pointer}
#paper label:has(input[type=radio]:checked) {background:#edf2ff;border-color:#8ba8f4}
#paper small {line-height:1.8}
#english>.row {margin-bottom:16px}
#english>.row label {font-size:13px}
.record {padding:16px 0}
.login {margin:70px auto;padding:32px;box-shadow:0 14px 50px #263a420a}
.textbook-dialog {border-radius:20px}
#notice {background:#263d65}
@media(max-width:900px) {
  .subject-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero {align-items:flex-start;flex-direction:column}
  .hero-stats div {min-width:145px}
}
@media(max-width:600px) {
  .brand-caption {display:none}
  .top>div {min-height:68px}
  main {margin-top:16px}
  .study-nav {gap:6px;justify-content:space-between}
  .study-nav button {font-size:14px;padding:9px 12px}
  .hero {padding:24px;min-height:auto}
  .hero-stats {gap:12px;width:100%}
  .hero-stats div {min-width:0;flex:1;padding:12px}
  .subject-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .card {padding:18px}
  #paper>.card {padding:20px}
  #paper .question {font-size:16px}
  .section {margin-top:26px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {transition:none!important}
}
.subject-stage {border-radius:24px;overflow:hidden;background:#182a39;box-shadow:0 16px 45px #152e4b20}
.subject-tabs {display:flex;padding:10px 18px;gap:6px;background:#fff;overflow-x:auto}
.subject-tabs button {flex:1;white-space:nowrap;background:transparent;color:#667282;border-radius:10px;padding:14px}
.subject-tabs button[aria-pressed=true] {background:#223c56;color:#fff}
#subject-scene-panel {overflow:hidden}
.subject-scene {position:relative;min-height:440px;isolation:isolate;animation:scene-enter .65s cubic-bezier(.2,.7,.2,1)}
.subject-scene img,.scene-shade {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.scene-shade {z-index:-1;background:linear-gradient(90deg,rgba(10,24,36,.87),rgba(10,24,36,.35) 63%,rgba(10,24,36,.06))}
.scene-copy {padding:70px 54px;max-width:760px;color:white}
.scene-copy .scene-label {font-size:14px;letter-spacing:3px;color:#e3d7ad;margin:0 0 20px}
.scene-copy h2 {font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-size:clamp(28px,3.3vw,44px);font-weight:600;letter-spacing:2px;margin:0 0 18px;line-height:1.5}
.scene-copy p {color:#e0e7eb;font-size:16px}
.scene-start {background:#fff1cd;color:#283a41;margin:20px 0 14px;padding:13px 25px;box-shadow:0 6px 20px #0002}
.scene-copy small {display:block;color:#e0e7eb;font-size:12px}
.subject-scene[data-scene=hist] img {object-position:50% 80%;filter:sepia(.45)}
.subject-scene[data-scene=cn] img {object-position:50% 30%}
.daily-overview {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 4px;color:var(--muted);font-size:13px}
.daily-overview b {color:#315fdb}
@keyframes scene-enter {from{opacity:.3;transform:translateX(60px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:600px){
 .subject-stage {border-radius:17px}
 .subject-tabs {padding:8px;gap:3px}
 .subject-tabs button {padding:10px 14px;font-size:14px}
 .subject-scene {min-height:380px}
 .scene-copy {padding:48px 25px}
 .scene-copy h2 {font-size:29px}
 .scene-shade {background:linear-gradient(90deg,#0a1824df,#0a182455)}
}
@media(prefers-reduced-motion:reduce){.subject-scene{animation:none}}
.day-folder {background:white;border:1px solid var(--line);border-radius:16px;margin:12px 0;overflow:hidden}
.day-folder>summary {padding:20px 24px;font-weight:650;font-size:17px}
.day-folder[open]>summary {background:#edf2ff;color:#3159bf}
.day-subjects {padding:8px 24px}
.subject-folder {border-bottom:1px solid var(--line)}
.subject-folder:last-child {border:0}
.subject-folder>summary {padding:16px 4px;font-weight:600}
.subject-body {padding:4px 4px 20px}
.interest-tabs {flex-wrap:wrap;border-radius:16px;margin-bottom:20px}
.interest-tabs button {flex:initial}
.interest-feature {padding:38px;min-height:250px;background:linear-gradient(120deg,#fff,#edf2ff)}
.interest-feature h2 {margin-top:22px;font-size:26px}
.video-link {display:inline-block;background:#315fdb;color:white;text-decoration:none;border-radius:10px;padding:11px 20px}
:root {background:#f6f7fb;--line:#e8ebf2;--muted:#758094}
main {max-width:1100px}
.top>div {max-width:1100px}
.practice-heading {display:flex;align-items:center;justify-content:space-between;margin:32px 0 26px}
.practice-heading h1 {font-size:30px;letter-spacing:-1px;margin:0;color:#22344e}
.practice-heading p {font-size:14px;color:var(--muted);margin:8px 0 0}
.range-label {font-size:12px;border:1px solid #e1e6f0;border-radius:20px;padding:6px 13px;color:#758094}
.day-folder {border-radius:20px;margin:14px 0;box-shadow:0 4px 16px #20376103}
.day-folder>summary {display:flex;align-items:center;gap:18px;padding:20px 26px;list-style:none}
summary::-webkit-details-marker {display:none}
.day-folder[open]>summary {background:white;color:inherit;border-bottom:1px solid #eef0f5}
.date-tile {display:flex;flex-direction:column;align-items:center;justify-content:center;width:55px;height:62px;border-radius:14px;background:#f1f4fb;color:#536a9d;flex-shrink:0}
.date-tile b {font-size:24px;line-height:1.2;font-weight:700}
.date-tile small {font-size:10px;color:inherit}
.day-folder[open] .date-tile {background:#315fdb;color:white;box-shadow:0 5px 12px #315fdb25}
.date-copy {display:flex;flex-direction:column;gap:2px}
.date-copy strong {font-size:16px;color:#2b3d57}
.date-copy small {font-size:12px;font-weight:400}
.day-status {margin-left:auto;display:grid;gap:7px;min-width:130px;color:#7b879b;font-size:12px;font-weight:500}
progress {appearance:none;width:100%;height:4px;border:0;border-radius:6px;overflow:hidden;background:#edf0f6}
progress::-webkit-progress-bar {background:#edf0f6}
progress::-webkit-progress-value {background:#6085e8;border-radius:6px}
progress::-moz-progress-bar {background:#6085e8}
.complete {color:#278768!important}
.folder-chevron {color:#a2aec0;transition:transform .2s;font-size:20px;margin-left:8px}
details[open]>summary>.folder-chevron {transform:rotate(180deg)}
.day-subjects {padding:8px 26px 16px}
.subject-folder>summary {display:flex;align-items:center;gap:14px;padding:17px 4px;list-style:none}
.subject-symbol {display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#edf2ff;color:#547acb;font-size:19px;flex-shrink:0;font-family:Georgia,serif}
.subject-folder[data-subject=cn] .subject-symbol {background:#fdf0e9;color:#b67852}
.subject-folder[data-subject=en] .subject-symbol {background:#f1edfc;color:#8a71b9}
.subject-folder[data-subject=bio] .subject-symbol {background:#eaf6ef;color:#54896b}
.subject-folder[data-subject=geo] .subject-symbol {background:#eaf4f7;color:#5b93a8}
.subject-folder[data-subject=hist] .subject-symbol {background:#f8f1e3;color:#a18a57}
.subject-folder[data-subject=eth] .subject-symbol {background:#f9edf3;color:#b77996}
.subject-title {font-size:15px;color:#344660;display:grid;gap:3px}
.subject-title small {font-size:11px;font-weight:400;letter-spacing:.3px}
.submission-state {margin-left:auto;font-size:11px;font-weight:500;color:#94a0b2;background:#f5f7fa;border-radius:20px;padding:4px 10px}
.submission-state.complete {background:#edf8f1}
.subject-body {padding:0 4px 22px 61px}
.subject-banner {height:180px;border-radius:14px;overflow:hidden;position:relative;margin:0 0 18px;animation:scene-enter .45s ease-out;background:#263a42}
.subject-banner img {position:absolute;width:100%;height:100%;object-fit:cover}
.subject-banner>div {position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;padding:26px;background:linear-gradient(90deg,#142c42df,#142c4230);color:white}
.subject-banner h3 {font-family:"Songti SC","SimSun",serif;font-size:25px;letter-spacing:1px;margin:0 0 10px}
.subject-banner p {font-size:12px;color:#e2e8ef;margin:0}
.subject-body>.record {border:0;padding:0 0 14px}
.daily-folders>[data-action=more-days] {display:block;margin:25px auto;background:transparent;border:1px dashed #cdd7e9;color:#7183a6;padding:12px 32px;border-radius:12px}
.subject-body #english {margin-top:24px;background:#f7f8fc;border-radius:16px;padding:22px}
@media(max-width:600px){
 .practice-heading {margin:24px 0 20px}
 .practice-heading h1 {font-size:25px}
 .practice-heading p {font-size:12px}
 .day-folder>summary {padding:16px;gap:12px}
 .day-subjects {padding:4px 14px 12px}
 .day-status {min-width:90px;font-size:11px}
 .date-tile {width:44px;height:54px}
 .subject-body {padding:0 0 20px}
 .subject-banner {height:170px}
 .subject-banner h3 {font-size:22px}
 .subject-body #english {padding:14px}
 .folder-chevron {margin-left:0}
}
@media(prefers-reduced-motion:reduce){.subject-banner{animation:none}}
.katex math {font-size:1.15em}
.question .katex {display:inline-block;vertical-align:middle;max-width:100%;overflow-x:auto}
.print-paper {background:white;padding:18mm;margin:24px auto;max-width:210mm;color:#111;font-family:"SimSun",serif}
.print-paper header {text-align:center;border-bottom:2px solid #222;padding-bottom:12px}
.print-question {break-inside:avoid;margin:20px 0;white-space:pre-wrap}
.answer-space {height:45mm;background:repeating-linear-gradient(white 0,white 9mm,#ddd 9mm,#ddd 9.2mm)}
.essay-space {height:180mm}
@page {size:A4;margin:16mm}
@media print {body {background:white;font-size:11pt}.top,.no-print,#notice {display:none!important}main {margin:0;padding:0;max-width:none}.print-paper {padding:0;margin:0;max-width:none}.print-question {break-inside:avoid}.print-paper header h1 {font-size:18pt}}
.print-paper {width:178mm;padding:0;max-width:none}
.a4-page {position:relative;min-height:245mm;padding:0 0 10mm;background:white}
.a4-page footer {text-align:center;font:11px sans-serif;color:#777;margin-top:20px}
.inactive-page {display:none}
.page-controls {justify-content:center;position:sticky;top:80px;background:#f5f7fc;padding:12px;z-index:4}
.preview-active {outline:1px solid #d5dce8;box-shadow:0 10px 35px #182b4920}
@media(max-width:750px){.print-paper {max-width:100%;width:178mm}.a4-page {min-height:0}}
@media print {.print-paper {width:100%;outline:0;box-shadow:none}.a4-page {display:block!important;min-height:0;break-after:page}.a4-page:last-child {break-after:auto}.page-controls {display:none!important}}
