:root{color-scheme:light;--ink:#142e51;--muted:#4c6380;--blue:#2162cf;--line:#dbe8f7;--sky:#e8f4ff;--pale:#f5faff}
*{box-sizing:border-box}body{margin:0;background:#fbfdff;color:var(--ink);font:16px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif}a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2364d2;outline-offset:4px}[hidden]{display:none!important}.wrap{width:min(1160px,calc(100% - 48px));margin-inline:auto}header{background:white;border-bottom:1px solid var(--line)}.nav{height:76px;display:grid;align-items:center;grid-template-columns:1fr auto 1fr;gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;justify-self:start;font-size:23px;font-weight:850;white-space:nowrap}.brand img{width:44px;height:44px;object-fit:cover;background:#d5edff;border-radius:50%}.brand small{font-size:15px}.catalog-link{font-weight:750}.nav #resume{justify-self:end}.button,.subtle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 18px;border-radius:999px;font-weight:750;border:1px solid transparent;font-size:15px}.button{background:var(--blue);color:white}.button:hover{background:#194fae}.subtle{background:#fff;color:var(--ink);border-color:#bcd2ef}.subtle:hover{background:var(--sky)}.button[aria-pressed=true]{background:#163c78}.hero{margin-top:32px;min-height:410px;border-radius:32px;background:linear-gradient(112deg,#eaf6ff,#d7eaff);display:grid;grid-template-columns:1.18fr 1fr;align-items:center;overflow:hidden}.hero-copy{padding:42px 0 42px 54px;position:relative;z-index:1}.hero h1{margin:0;font-size:clamp(36px,4.7vw,66px);line-height:1.12;letter-spacing:-.045em;font-weight:900}.hero h1 span{display:block;color:#205aba}.hero p{margin:22px 0;color:var(--muted);font-weight:600}.mascot{position:relative;align-self:stretch;display:grid;place-items:center;min-height:280px}.mascot:before{content:"";position:absolute;width:75%;aspect-ratio:1;border-radius:50%;background:#f5fbff;opacity:.8}.mascot img{width:92%;max-width:470px;position:relative;object-fit:contain}.section-head{margin:42px 0 17px}.section-head h2{margin:0;font-size:32px}.section-head p{margin:2px 0;color:var(--muted)}.courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.course{display:flex;flex-direction:column;border:1px solid var(--line);background:white;border-radius:22px;overflow:hidden;transition:border-color .15s}.course:hover{border-color:#77a6e5}.course img{width:100%;height:168px;object-fit:contain;background:#d5f3fb;display:block}.course-body{padding:17px 20px 19px}.course h3{margin:0;font-size:24px}.course h3 span{font-size:17px;margin-left:8px}.course p{margin:5px 0 13px;color:var(--muted);font-size:14px}.course .start{color:#1958ba;font-weight:750}footer{margin-top:42px;padding:20px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.lesson-top{margin:24px 0 17px}.back{color:#1855ae;font-weight:700}.lesson-top h1{margin:10px 0 3px;font-size:clamp(33px,5vw,57px);line-height:1.1;letter-spacing:-.04em}.lesson-top h1 span{font-size:.56em;margin-left:10px}.lesson-top p{margin:8px 0;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(235px,1fr);gap:18px;align-items:start}.poster-box,.side section{background:#fff;border:1px solid var(--line);border-radius:23px;padding:18px}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-bottom:12px}.toolbar h2,.side h2{margin:0;font-size:20px}.toolbar-controls{display:flex;gap:6px}.toolbar .subtle{padding:5px 11px;font-size:13px}.poster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #c9e7f5;background:#d5f3fb;border-radius:15px;overflow:hidden}.spot{border:0;border-right:1px solid #9ccfe640;background:transparent;display:flex;flex-direction:column;align-items:center;padding:4px 0 12px;min-width:0}.spot:last-child{border-right:0}.spot img{width:100%;object-fit:contain;aspect-ratio:1.52;display:block}.spot strong{font-size:clamp(13px,2.1vw,24px);line-height:1.15;overflow-wrap:anywhere}.spot span{font-size:12px;color:#284d72}.spot:hover,.spot[aria-pressed=true]{box-shadow:inset 0 -4px #3472da;background:#a7def558}.spot:focus-visible{outline-offset:-4px}.selected{padding:14px 2px 0;min-height:68px;color:var(--muted)}.selected strong{color:var(--ink);font-size:18px}.selected p{margin:0}.side{display:grid;gap:12px}.side p{margin:8px 0 11px;color:var(--muted)}.side .phrase{font-weight:800;color:var(--ink);font-size:22px;line-height:1.25}.side .button,.side .subtle{font-size:13px}.quiz-actions{display:flex;gap:7px;flex-wrap:wrap}.status{color:#174f9c;font-size:14px}.expanded{position:fixed;inset:0;z-index:4;overflow:auto;border-radius:0;display:flex;flex-direction:column;justify-content:flex-start;padding:clamp(14px,4vw,55px)}.expanded .poster,.expanded .toolbar,.expanded .selected{width:min(100%,1320px);margin-inline:auto}.expanded .spot img{max-height:53vh}.zoomed{overflow:hidden}dialog{width:min(460px,calc(100% - 32px));border:1px solid var(--line);border-radius:22px;background:white;color:var(--ink);padding:22px}dialog::backdrop{background:#10294a99}dialog form{text-align:right}dialog h2{margin:4px 0}dialog li{margin:9px 0}
@media(max-width:820px){.workspace{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}.hero{min-height:320px}.hero-copy{padding-left:30px}.courses{gap:10px}.course img{height:130px}.course-body{padding:13px}.course h3{font-size:19px}.course h3 span{display:block;margin:0;font-size:14px}}
@media(max-width:560px){.wrap{width:calc(100% - 28px)}.nav{height:62px;grid-template-columns:1fr auto;gap:8px}.brand{font-size:18px;gap:6px}.brand small{font-size:12px}.brand img{width:34px;height:34px}.catalog-link{display:none}.nav .button{font-size:12px;padding-inline:10px}.hero{margin-top:16px;border-radius:20px;grid-template-columns:1fr;min-height:0}.hero-copy{padding:24px 22px 0}.hero h1{font-size:37px}.hero p{font-size:14px;margin:11px 0 15px}.mascot{min-height:0;height:205px}.mascot:before{width:192px}.mascot img{width:230px}.section-head{margin-top:25px}.section-head h2{font-size:26px}.courses{grid-template-columns:1fr}.course{flex-direction:row;border-radius:15px;align-items:stretch}.course img{width:40%;height:auto;min-height:118px;max-height:150px}.course-body{flex:1}.course h3 span{display:inline;margin-left:6px}.course p{margin-bottom:4px}.poster-box,.side section{padding:11px;border-radius:15px}.toolbar h2,.side h2{font-size:16px}.toolbar .subtle{font-size:12px;min-height:40px;padding-inline:8px}.side{grid-template-columns:1fr}.spot strong{font-size:14px}.spot span{font-size:11px}}
.original-poster{position:relative;isolation:isolate;max-width:100%;margin-inline:auto;border-radius:14px;overflow:hidden;background:#f7f8ef}
.original-poster>img{display:block;width:100%;height:auto}
.poster-spot{position:absolute;display:block;padding:0;border:0;border-radius:5px;background:transparent;color:#123477;z-index:1}
.poster-spot.label-spot{z-index:2}
.poster-spot span{position:absolute;right:0;top:50%;transform:translate(48%,-50%);display:grid;place-items:center;width:clamp(16px,2.3vw,27px);height:clamp(16px,2.3vw,27px);border-radius:50%;background:#eff6ff;border:1px solid #3a70b6;font-size:clamp(11px,1.4vw,16px);font-weight:750;pointer-events:none}
.poster-spot:hover,.poster-spot[aria-pressed=true]{background:#2d78c51e;box-shadow:inset 0 0 0 2px #3a70b6}
.poster-spot:focus-visible{outline-offset:1px;z-index:3}
.poster-box .selected{position:sticky;top:0;z-index:3;min-height:44px;padding:7px 2px;background:white}
.expanded .original-poster{width:min(100%,1100px);flex-shrink:0}
.expanded .toolbar,.expanded .selected{width:min(100%,1100px);flex-shrink:0}
.guide-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.guide-actions .subtle,.guide-actions .button{font-size:13px;padding-inline:12px}
#guide-feedback:not(:empty){padding:5px 8px;background:#e8f4ff;border-radius:8px;margin-top:5px}
.poster-spot.guided-target{background:#387edb24;box-shadow:inset 0 0 0 3px #2365cc}
.toolbar-controls{flex-wrap:wrap}
.toolbar-controls .button{padding:5px 12px;font-size:13px}
.lesson-jumps{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 13px}.lesson-jumps .subtle{font-size:13px}
.workspace:has(.poster-box):not(:has(.side)){grid-template-columns:minmax(0,1fr)}
.poster-box .original-poster{width:min(100%,810px)}.poster-box.expanded .original-poster{width:min(100%,1100px)}
.sentence-section{margin:30px 0}.sentence-section h2{scroll-margin-top:18px}.sentence-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sentence-card{background:white;border:1px solid var(--line);border-radius:18px;padding:17px}.sentence-card h3{margin:0 0 7px;color:#205aba;font-size:15px}
.sentence-english{font-size:clamp(20px,3vw,28px);line-height:1.25;font-weight:800;margin:0 0 5px}.sentence-chinese{margin:0 0 12px;color:var(--muted)}
.sentence-card details{margin-top:12px;color:var(--muted)}.sentence-card summary{color:#1958ba;cursor:pointer;min-height:35px}.sentence-card details p{margin:4px 0}.sentence-status:empty{display:none}
#guide-feedback.celebrate{display:flex;align-items:center;gap:8px;background:#e2f5e9;color:#17482f;border:1px solid #b6e0c6}
.celebrate img{width:35px;height:35px;border-radius:50%;animation:budgie-bounce .38s ease-out}
@keyframes budgie-bounce{0%{transform:scale(.7)}62%{transform:scale(1.17)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.celebrate img{animation:none}}
@media(max-width:560px){.sentence-list{grid-template-columns:1fr}.sentence-card{padding:14px}}
.word-relations{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0}.word-relations button,.relation-on-poster{font-size:13px}
.relation-pair{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:3px 0 10px;color:#2153a0;font-size:13px}.relation-pair span:not(:nth-child(2)){background:#e8f4ff;border-radius:999px;padding:3px 9px}
.poster-spot.relation-first,.poster-spot.relation-second{z-index:3;background:#347dda24;box-shadow:inset 0 0 0 3px #215dc8}.poster-spot.relation-second{background:#00867525;box-shadow:inset 0 0 0 3px #007768}
.poster-spot.relation-first:after,.poster-spot.relation-second:after{content:"1";position:absolute;left:2px;top:2px;color:white;background:#215dc8;border-radius:50%;display:grid;place-items:center;width:20px;height:20px;font-weight:800;font-size:12px}.poster-spot.relation-second:after{content:"2";background:#007768}
.word-relations p{flex-basis:100%;margin:0;color:#4c6380;font-size:13px}
.poster-box .course-map{width:min(100%,510px)}.poster-box.expanded .course-map{width:min(100%,620px)}
.map-label{position:absolute;bottom:2%;left:50%;transform:translateX(-50%);max-width:100%;padding:3px 9px;border-radius:9px;background:#fff;color:#183b68;font-size:clamp(13px,2.4vw,20px);white-space:nowrap}
.map-arrow{position:absolute;z-index:1;pointer-events:none;color:#265cab;font:750 clamp(19px,4vw,32px)/1 system-ui;transform:translate(-50%,-50%)}
.arrow-one{left:50%;top:27%}.arrow-two{left:50%;top:50%}.arrow-three{left:50%;top:77%}
.course-map .map-heading{position:absolute;left:0;right:0;padding:4px 10px;text-align:center;color:#173e74;background:#f0f8ff;border-block:1px solid #bcdaef;font-weight:800;font-size:clamp(13px,2vw,19px);pointer-events:none}
.map-heading-0{top:0}.map-heading-1{top:50%}
.course-map .arrow-one{top:14%}.course-map .arrow-two{top:25%}.course-map .arrow-three{top:39%}
.poster-box .story-map{width:min(100%,690px)}.poster-box.expanded .story-map{width:min(100%,900px)}
.story-caption{position:absolute;top:3%;left:5%;right:5%;color:#143b54;pointer-events:none}
.story-caption strong{display:block;font-size:clamp(22px,5vw,44px);line-height:1.2;letter-spacing:-.04em}.story-caption small{display:block;margin-top:5px;font-size:clamp(12px,2.8vw,17px);font-weight:650}
.story-map .map-label{bottom:0;background:#fff8dc;color:#214536;padding:2px 7px;border-radius:999px;border:1px solid #dec680;box-shadow:0 2px 4px #24312a38;font-size:clamp(11px,2vw,17px)}
.story-map .map-label::before{content:"♪ ";color:#80562b}
