*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{--green:#4c177a;--green2:#7438a9;--mint:#f1eaf8;--ink:#2d193f;--muted:#60786f;--line:#d9cce5;--cream:#fff7df;--amber:#a96609;--red:#b94747}
html{background:#f0eaf6}body{margin:0;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Arial,sans-serif;background:linear-gradient(145deg,#f1eaf8,#eef6ff);min-height:100vh}
a{color:inherit}.screen{display:none;text-align:center;align-items:center}.screen.active{display:flex;flex-direction:column}.eyebrow{font-size:14px;font-weight:900;color:var(--green);letter-spacing:.02em}.title{font-size:clamp(28px,5vw,50px);line-height:1.08;margin:8px 0}.subtitle{font-size:clamp(15px,2vw,20px);line-height:1.5;color:var(--muted);max-width:780px;margin:0 0 12px}.card{width:min(860px,100%);padding:clamp(14px,2.5vw,24px);border:2px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 30px #173f2910}.card h3{margin:0 0 8px;color:var(--green);font-size:clamp(19px,2.5vw,27px)}.card p{margin:6px 0;line-height:1.55}.lead{font-size:clamp(17px,2.2vw,22px);font-weight:750}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.info{padding:12px;border-radius:15px;background:var(--mint);border:1px solid var(--line)}.info b{display:block;color:var(--green);font-size:17px;margin-bottom:3px}.passage{text-align:left;font-size:clamp(16px,2vw,20px);line-height:1.55}.dialogue{text-align:left;display:grid;gap:8px}.speech{padding:10px 13px;border-radius:14px;background:var(--mint);line-height:1.45}.speech:nth-child(even){background:#fff7df}.term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.term{padding:12px 8px;border-radius:15px;border:1px solid var(--line);background:#fff}.term b{display:block;color:var(--green);font-size:20px}.cursive{font-family:"Apple Chancery","Segoe Print","Bradley Hand",cursive;font-size:clamp(20px,3vw,30px);line-height:1.55;color:#3b244f;text-align:left}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.step{padding:12px;border:2px solid var(--line);border-radius:16px;background:#fff}.step b{display:block;color:var(--green);font-size:24px}.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(900px,100%);margin-top:14px}.option{min-height:70px;padding:12px;border:2px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);font:inherit;font-size:clamp(17px,2.1vw,22px);font-weight:850;cursor:pointer}.option:hover{border-color:#a178c4}.option.correct{border-color:var(--green2);background:#e3f7ed}.option.wrong{border-color:#e58b8b;background:#fff0f0}.option:focus-visible,.btn:focus-visible,.unit-link:focus-visible{outline:4px solid #f2c15e;outline-offset:3px}.feedback{min-height:26px;margin-top:11px;font-size:16px;font-weight:850}.feedback.ok{color:var(--green)}.feedback.no{color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:10px 22px;border:0;border-radius:999px;font:inherit;font-weight:900;text-decoration:none;cursor:pointer}.primary{color:#fff;background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 8px 18px #177a5535}.secondary{color:var(--green);background:#fff;border:2px solid #c2a9d7}.btn:disabled{opacity:.42;cursor:not-allowed}.row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.audio-pending{display:none!important}.check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:left;margin-top:10px}.check-item{padding:10px 12px;border-radius:13px;background:var(--mint);font-weight:750}.complete{font-size:clamp(20px,3vw,29px);font-weight:950;color:var(--green)}.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(920px,100%)}.unit-link{display:block;padding:16px;border:2px solid var(--line);border-radius:18px;background:#fff;text-decoration:none;text-align:left}.unit-link b{display:block;color:var(--green);font-size:19px;margin-bottom:4px}.unit-link.disabled{opacity:.58;pointer-events:none}.badge{display:inline-block;padding:4px 9px;border-radius:999px;background:var(--mint);color:var(--green);font-size:12px;font-weight:900}.source-note{font-size:13px;color:var(--muted);margin-top:10px}.v2-panel .body{white-space:pre-line}.v2-panel .row{display:flex}.practice-label{font-weight:900;color:var(--amber)}
@media(max-width:700px){.info-grid,.term-grid,.steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.info,.term,.step{padding:8px 5px}.info b,.term b{font-size:15px}.options{grid-template-columns:1fr;gap:5px;margin-top:6px}.option{min-height:48px;padding:6px 8px;font-size:16px;line-height:1.25}.card{padding:10px}.card p{margin:4px 0;line-height:1.4}.passage{font-size:15px;line-height:1.4}.dialogue{gap:5px}.speech{padding:7px 9px;font-size:14px}.check-list{gap:5px}.check-item{padding:7px 9px;font-size:14px}.menu-grid{grid-template-columns:1fr;gap:8px}.unit-link{padding:12px}.chapter-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.chapter-overview .unit-link{padding:7px 6px;border-radius:12px}.chapter-overview .unit-link b{font-size:12px;line-height:1.18;margin-bottom:2px}.chapter-overview .unit-link>span:last-child{font-size:11px}.chapter-overview .badge{padding:3px 6px;font-size:10px}.source-note{display:none}.feedback{min-height:20px;font-size:14px;margin-top:4px}.cursive{font-size:19px}.v2-main .screen{justify-content:flex-start;padding:6px 12px 8px!important}.v2-main .screen:has(.options)>.title{margin:2px 0!important}body[data-store$="-practice"] .screen:has(.options)>.subtitle{display:none}}
@media(max-height:700px){.source-note{display:none}.subtitle{margin-bottom:6px}.card{padding:10px}.card p{line-height:1.3}.options{margin-top:7px}.option{min-height:50px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* 题干（Claude 2026-10-14）*/.q-stem{max-width:860px;margin:2px auto 0}@media(max-width:700px){.q-stem{font-size:16px;line-height:1.35;margin:2px 0 0}.v2-main .screen:has(.q-stem)>.subtitle{display:none}}
/* 统一外观后手机一屏（Claude 2026-10-14）：题目屏标题、选项字小一点 */@media(max-width:700px){body.lu .v2-main .screen:has(.options)>.title{font-size:21px!important;line-height:1.2!important}body.lu .v2-main .screen .option{font-size:15px!important;line-height:1.3!important;min-height:44px!important;padding:6px 8px!important}body.lu .v2-main .screen .options{gap:5px!important}}

/* Sejarah（Claude 2026-10-14）*/.passage .sej-list{margin:6px 0 6px 1.2em;padding:0;text-align:left;line-height:1.5}.sej-tw{overflow-x:auto;margin:8px 0}.sej-table{width:100%;border-collapse:collapse;font-size:clamp(14px,1.8vw,18px);line-height:1.4}.sej-table th,.sej-table td{border:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top}.sej-table th{background:var(--mint)}.sej-ex{padding:8px 10px;border-radius:12px;background:#fff7df}.sej-tip{padding:8px 10px;border-radius:12px;background:var(--mint)}.sej-fig{margin:8px auto;text-align:center}.sej-fig img{max-width:100%;max-height:34vh;border-radius:12px}.sej-fig figcaption{font-size:14px;color:var(--muted)}.feedback.ok{line-height:1.4}@media(max-width:700px){.sej-table{font-size:13px}.sej-table th,.sej-table td{padding:4px 5px}.sej-fig img{max-height:26vh}.passage .sej-list{line-height:1.35}}

/* Sejarah 一屏（Claude 2026-10-14）：国语字数比华文多，字和间距收紧 */body.lu[data-subject="history"] .v2-main .title{font-size:clamp(20px,2.6vw,28px)!important;line-height:1.15!important;margin:4px 0!important}body.lu[data-subject="history"] .v2-main .card{padding:clamp(10px,1.6vw,16px)!important}body.lu[data-subject="history"] .v2-main .passage{font-size:clamp(14.5px,1.7vw,17.5px)!important;line-height:1.42!important}body.lu[data-subject="history"] .v2-main .card p{margin:4px 0!important;line-height:1.42!important}body.lu[data-subject="history"] .v2-main .sej-table{font-size:clamp(12.5px,1.5vw,16px)!important}body.lu[data-subject="history"] .v2-main .sej-table th,body.lu[data-subject="history"] .v2-main .sej-table td{padding:4px 6px!important}body.lu[data-subject="history"] .v2-main .sej-ex,body.lu[data-subject="history"] .v2-main .sej-tip{padding:6px 9px!important;margin:5px 0!important}body.lu[data-subject="history"] .v2-main .option{min-height:44px!important;padding:6px 9px!important;font-size:clamp(14px,1.7vw,18px)!important;line-height:1.3!important}body.lu[data-subject="history"] .v2-main .check-item{padding:6px 9px!important;font-size:clamp(13.5px,1.6vw,16px)!important}@media(max-width:700px){body.lu[data-subject="history"] .v2-main .passage{font-size:14px!important;line-height:1.36!important}body.lu[data-subject="history"] .v2-main .card p{line-height:1.36!important;margin:3px 0!important}body.lu[data-subject="history"] .v2-main .sej-table{font-size:12px!important}body.lu[data-subject="history"] .v2-main .eyebrow{font-size:12px!important}body.lu[data-subject="history"] .v2-main .check-list{grid-template-columns:1fr!important;gap:4px!important}}
