@font-face{font-family:Outfit;font-weight:500;font-display:swap;src:url(/fonts/outfit-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:Outfit;font-weight:700;font-display:swap;src:url(/fonts/outfit-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:Outfit;font-weight:800;font-display:swap;src:url(/fonts/outfit-latin-800-normal.woff2) format('woff2')}
:root{
  --bg:#EEEFF2; --ink:#1C1B22; --muted:#5D5C68; --soft:#F4F4F6; --line:#C3C2CC; --white:#FFFFFF;
  --c1:#C9B8FF; --c2:#FF9A57; --c3:#9EE6C4; --ok:#1A9E5F; --bad:#C2382D;
  --font:'Outfit','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--ink)} a:hover{color:#5B3FD9}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #5B3FD9;outline-offset:2px}
[hidden]{display:none!important}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.wide{max-width:1400px}

/* header */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:24px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand .mark{width:40px;height:40px;flex:none;display:block}
.brand .mark img{display:block;width:100%;height:100%}
.brand b{font-weight:900;font-size:22px;letter-spacing:.02em}
.brand small{font-weight:700;font-size:14px;color:var(--muted)}
.brand .role{padding:2px 10px;border-radius:999px;background:var(--ink);color:#fff;font-size:13px;font-weight:700}
.nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.nav a,.nav button,.pill-btn{min-height:44px;padding:0 18px;border-radius:14px;display:inline-flex;align-items:center;text-decoration:none;background:#fff;border:0;cursor:pointer;font-weight:500}
.nav a.on{background:var(--ink);color:#fff;font-weight:700}
.nav .who{color:var(--muted);padding:0 8px}

/* blocks */
.tile{border-radius:32px;background:#fff;padding:28px}
.tile.c1{background:var(--c1)} .tile.c2{background:var(--c2)} .tile.c3{background:var(--c3)} .tile.ink{background:var(--ink);color:#fff}
h1.big{margin:0;font-weight:900;font-size:clamp(36px,6vw,60px);line-height:1.1;letter-spacing:-.02em}
.muted{color:var(--muted)}
.btn{min-height:52px;padding:0 26px;border-radius:16px;border:0;background:var(--ink);color:#fff;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
.btn:hover{color:#fff;background:#000}
.btn.light{background:#fff;color:var(--ink)} .btn.light:hover{background:var(--soft);color:var(--ink)}
.btn.sm{min-height:44px;padding:0 16px;border-radius:14px;font-size:14px}
.btn[disabled]{opacity:.5;cursor:default}
.tag{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;background:var(--soft)}
.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:15px}
.field input,.field select{min-height:52px;border-radius:16px;border:2px solid var(--ink);background:#fff;padding:0 16px;font-weight:500;font-size:17px}
.err{color:var(--bad);font-weight:700;min-height:1.6em;margin:0}

/* lesson grid */
/* cards fill every row: the last row stretches instead of leaving empty slots */
.grid{display:flex;flex-wrap:wrap;gap:16px}
.grid>*{flex:1 1 calc((100% - 48px) / 4);min-width:min(240px,100%)}
.lesson{position:relative;overflow:hidden;min-height:210px;border-radius:28px;background:#fff;padding:24px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;text-decoration:none}
.lesson .ghost{position:absolute;right:16px;top:-18px;font-weight:800;font-size:130px;line-height:1;opacity:.07;font-family:Outfit,var(--font)}
.lesson .t{font-weight:900;font-size:21px;line-height:1.35}
.lesson .bar{height:8px;border-radius:99px;background:var(--soft);overflow:hidden}
.lesson .bar i{display:block;height:100%;background:var(--ink)}
.lesson.cur{background:var(--c2)}
.lesson.cur .bar{background:rgba(255,255,255,.6)}

/* reader */
.reader-bar{height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;background:#fff;border-bottom:1px solid #E2E1E8}
.reader-bar .l{display:flex;align-items:center;gap:12px;min-width:0}
.reader-bar .ttl{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-frame{display:block;width:100%;height:calc(100vh - 56px);height:calc(100dvh - 56px);border:0;background:#fff}
.sync{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;white-space:nowrap}
.sync i{width:9px;height:9px;border-radius:50%;background:var(--ok);display:block}

/* classroom */
.layout{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;padding-top:24px;padding-bottom:64px}
.side{flex:1 1 260px;max-width:320px;display:flex;flex-direction:column;gap:12px}
.main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:16px}
.cardlist{display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow:auto;padding-right:4px}
.cardlist button{text-align:left;border:0;border-radius:16px;background:#fff;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.cardlist button.on{background:var(--c1)}
.cardlist .n{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
.cardlist .on .n{color:var(--ink)}
.cardlist b{font-weight:700;line-height:1.35}
.live{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.live i{width:10px;height:10px;border-radius:50%;background:var(--ink);animation:pulse 1.6s ease-in-out infinite}
.live.off i{animation:none;background:var(--bad)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.live i{animation:none}}
.roster{display:flex;flex-wrap:wrap;gap:6px}
.roster span{padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;background:var(--soft);color:var(--muted)}
.roster span.done{background:var(--c3);color:var(--ink)}
.qblock{border-radius:32px;background:#fff;padding:28px;display:flex;flex-direction:column;gap:18px}
.qhead{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}
.qhead h3{margin:0;font-weight:900;font-size:21px;line-height:1.45;flex:1 1 420px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:0 14px;border-radius:14px;border:0;font-weight:700;cursor:pointer;background:var(--soft)}
.chip.on{background:var(--ink);color:#fff}
.answers{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:12px}
.ans{border-radius:24px;background:var(--soft);padding:18px;display:flex;flex-direction:column;gap:10px}
.ans .h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ans .h b{font-weight:900}
.ans p{margin:0;white-space:pre-wrap;line-height:1.6}
.ans .ck{display:flex;flex-wrap:wrap;gap:6px}
.ans .ck span{padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;background:#fff;color:#3E3D47}
.ans .ck span.y{background:var(--c3);color:var(--ink)}
.ans .cm{font-weight:700}
.ans.pending{opacity:.85}
.opt-row{display:flex;flex-direction:column;gap:8px}
.opt-row .l{display:flex;align-items:flex-start;gap:12px}
.opt-row .letter{flex:0 0 36px;height:36px;border-radius:10px;background:var(--soft);display:grid;place-items:center;font-weight:800}
.opt-row .letter.right{background:var(--c3)}
.opt-row .txt{flex:1;font-weight:500}
.opt-row .num{font-weight:800;font-size:24px;line-height:1;font-family:Outfit,var(--font)}
.opt-row .track{height:16px;border-radius:999px;background:var(--soft);overflow:hidden;margin-left:48px}
.opt-row .track i{display:block;height:100%;border-radius:999px;background:var(--ink)}
.opt-row .track i.right{background:var(--ok)} .opt-row .track i.wrong{background:var(--c2)}
.opt-row .names{display:flex;flex-wrap:wrap;gap:6px;margin-left:48px}
.opt-row .names span{padding:2px 10px;border-radius:999px;background:var(--soft);font-size:13px;font-weight:700}
.why{margin:0;border-radius:24px 24px 24px 8px;background:var(--c2);padding:16px 22px;font-weight:700}
.empty{border:2px dashed var(--line);border-radius:28px;padding:28px;color:var(--muted)}

/* projector */
.proj{position:fixed;inset:0;z-index:100;background:var(--ink);color:#fff;padding:40px;overflow:auto;display:flex;flex-direction:column;gap:28px}
.proj .bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;color:#BDBCC8;font-weight:700}
.proj .who{font-weight:900;font-size:26px;color:var(--c2)}
.proj .text{margin:0;max-width:1150px;font-size:clamp(26px,3.4vw,44px);line-height:1.45;font-weight:500;white-space:pre-wrap}
.proj .ck{display:flex;flex-wrap:wrap;gap:10px}
.proj .ck span{padding:8px 18px;border-radius:999px;font-size:20px;font-weight:700;background:#2B2A33;color:#DAD9E2}
.proj .ck span.y{background:var(--c3);color:var(--ink)}
.proj .cm{margin:0;max-width:1000px;border-radius:28px 28px 28px 8px;background:var(--c2);color:var(--ink);padding:22px 28px;font-weight:900;font-size:clamp(20px,2.4vw,30px);line-height:1.4}

table.simple{border-collapse:collapse;width:100%}
table.simple td,table.simple th{padding:10px 8px;border-bottom:1px solid #E2E1E8;text-align:left}
code.code{font-family:Outfit,var(--font);font-weight:800;font-size:20px;letter-spacing:.08em;background:var(--c3);padding:2px 10px;border-radius:10px}

/* grammar fixes */
mark.fx{background:none;color:inherit;text-decoration:underline wavy #C2382D;text-underline-offset:4px;text-decoration-thickness:1.5px}
.fixes{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14px}
.fixes li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.fixes s{color:#8A1C12;text-decoration-color:#C2382D}
.fixes b{color:#14532D}
.fixes .arr{color:var(--muted)}
.fixes .nt{color:var(--muted);font-size:13px}
.fixes.big{font-size:clamp(18px,2vw,24px);gap:10px;max-width:1150px}
.fixes.big s{color:#FFB4A8}.fixes.big b{color:var(--c3)}.fixes.big .arr,.fixes.big .nt{color:#BDBCC8}.fixes.big .nt{font-size:.8em}
.proj mark.fx{text-decoration-color:var(--c2)}

/* versions & diff */
ins{background:#D3F3E2;color:#0E4D2A;text-decoration:none;border-radius:4px;padding:0 2px}
del{background:#FDE1DD;color:#8A1C12;text-decoration-color:#C2382D;border-radius:4px;padding:0 2px}
.vers{border-radius:16px;background:#fff;padding:10px 14px}
.vers summary{cursor:pointer;font-weight:700;min-height:32px;display:flex;align-items:center}
.ver{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px dashed #DAD9E2}
.ver:first-of-type{border-top:0}
.ver .vh{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:14px;color:var(--muted)}
.ver .vh b{color:var(--ink)}
.ver p{margin:0;white-space:pre-wrap}
.ver .vc{font-size:14px;font-weight:700}
.proj ins{background:#1E5C3E;color:#D3F3E2}
.proj del{background:#6B231B;color:#FFD5CE}

/* videos */
.hero-row{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.hero-row .hero{flex:3 1 420px;padding:36px 40px;display:flex;flex-direction:column;justify-content:center}
.vtile{flex:2 1 340px;padding:20px;display:flex;flex-direction:column;gap:12px}
.vtop{display:flex;justify-content:space-between;align-items:center;gap:8px}
.vago{font-size:13px;font-weight:700;color:#BDBCC8}
.vplay{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;border-radius:18px;overflow:hidden;cursor:pointer;background:linear-gradient(135deg,var(--c1),var(--c2))}
.vplay img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vplay .pbtn{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;background:rgba(28,27,34,.82);display:grid;place-items:center;transition:transform .15s}
.vplay .pbtn i{width:0;height:0;border-style:solid;border-width:12px 0 12px 20px;border-color:transparent transparent transparent #fff;margin-left:5px}
.vplay:hover .pbtn{transform:scale(1.08)}
.vplay .dur{position:absolute;right:10px;bottom:10px;padding:2px 8px;border-radius:8px;background:rgba(28,27,34,.8);color:#fff;font-size:13px;font-weight:700}
.vframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:18px;background:#000}
.vfoot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px}
.vt{font-weight:900;line-height:1.4}
.vmore{font-size:14px;font-weight:700;white-space:nowrap}
.vtile .vmore{color:var(--c3)}
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(360px,100%),1fr));gap:16px}
.vcard{border-radius:28px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:12px}
.vlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.vrow{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border-radius:20px;background:var(--soft);padding:12px}
.vrow img,.vrow .noc{width:128px;aspect-ratio:16/9;border-radius:12px;object-fit:cover;background:var(--c1);flex:0 0 auto}
.vrow .vi{flex:1 1 220px;display:flex;flex-direction:column;gap:2px;min-width:0}
.vrow .vi .muted{font-size:14px}
.vrow .va{display:flex;gap:8px}
.vrow .va form{margin:0}
.okmsg{margin:0 0 12px;border-radius:14px;background:var(--c3);padding:10px 14px;font-weight:700}
@media (prefers-reduced-motion:reduce){.vplay .pbtn{transition:none}}

/* 学习档案 */
.pf{display:flex;flex-direction:column;gap:16px}
.pf h2{margin:0;font-weight:900;font-size:26px}
.pf h3{margin:0;font-weight:900;font-size:19px}
.pf-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin-bottom:14px}
.pf-top{padding:36px 40px;display:flex;flex-direction:column;gap:10px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:14px}
.stat{border-radius:22px;background:rgba(255,255,255,.65);padding:14px 18px;display:flex;flex-direction:column}
.stat b{font-family:Outfit,var(--font);font-weight:800;font-size:36px;line-height:1.1}
.stat b small{font-size:18px;font-weight:700;color:var(--muted)}
.stat span{font-weight:700}
.stat>small{font-size:13px;color:#3E3D47}
.plist{display:flex;flex-direction:column;gap:8px}
.prow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;border-radius:20px;background:var(--soft);padding:12px 18px;text-decoration:none}
.prow:hover{background:#E9E8F0;color:var(--ink)}
.prow .no{font-family:Outfit,var(--font);font-weight:800;font-size:26px;width:40px}
.prow .pm{flex:1 1 240px;display:flex;flex-direction:column;gap:6px;min-width:0}
.prow .bar{height:8px;border-radius:99px;background:#fff;overflow:hidden}
.prow .bar i{display:block;height:100%;background:var(--ink)}
.prow .pn{display:flex;flex-direction:column;align-items:flex-end;min-width:64px}
.prow .pn b{font-family:Outfit,var(--font);font-weight:800;font-size:20px;line-height:1.2}
.prow .pn small{font-size:12px;color:var(--muted)}
.prow .pd{font-size:13px;color:var(--muted);min-width:72px;text-align:right}
.prow.idle{opacity:.6}
.pf-an .when{font-size:13px;font-weight:700;color:#BDBCC8}
.an-body p{margin:0 0 8px;font-size:17px;line-height:1.75;max-width:900px}
.an-body .dim{color:#BDBCC8}
.pf-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.pf-an .err{color:#FFB4A8}
.weak{margin-top:22px;display:flex;flex-direction:column;gap:8px}
.weak h3{font-size:16px;color:var(--c2)}
.wk{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;color:#fff;text-decoration:none;border-radius:16px;background:#2B2A33;padding:10px 14px}
.wk:hover{color:#fff;background:#36353F}
.wk span:first-child{flex:1 1 220px;font-weight:700}
.wbar{flex:0 1 160px;height:8px;border-radius:99px;background:#45444F;overflow:hidden}
.wbar i{display:block;height:100%;background:var(--c2)}
.wk b{font-family:Outfit,var(--font);min-width:44px;text-align:right}
.tfl{display:flex;flex-direction:column;gap:10px}
.tfb{border-radius:20px;background:rgba(255,255,255,.7);padding:14px 18px}
.tfb p{margin:6px 0 0;line-height:1.7}
.vh{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;justify-content:space-between}
.wl{border-radius:20px;background:var(--soft);padding:4px 18px;margin-bottom:8px}
.wl summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}
.wl .tag{background:#FDE1DD;color:#8A1C12}
.wl ol{margin:0 0 12px;padding-left:22px;display:flex;flex-direction:column;gap:14px}
.wl li p{margin:2px 0}
.wl .ws{font-weight:700}
.lab{display:inline-block;font-size:12px;font-weight:700;border-radius:8px;padding:0 8px;margin-right:8px}
.lab.bad{background:#FDE1DD;color:#8A1C12}.lab.ok{background:#D3F3E2;color:#0E4D2A}
.nlist{display:flex;flex-direction:column;gap:12px}
.nl{border-radius:24px;background:#fff;padding:20px}
.nl .pf-h{margin-bottom:8px}
.tidy{border-radius:18px;background:var(--soft);padding:14px 18px;margin-bottom:4px}
.tidy-body p{margin:4px 0;white-space:pre-wrap;line-height:1.7}
.raw{margin-top:12px}
.raw summary{cursor:pointer;font-weight:700;min-height:40px;display:flex;align-items:center}
.note-i{border-top:1px dashed #DAD9E2;padding:10px 0}
.note-i span{font-size:13px}
.note-i p{margin:2px 0 0;white-space:pre-wrap}
.stat-link,.stat-link *{text-decoration:none;color:inherit}
.stat-link{transition:background .15s}
.stat-link:hover>small{text-decoration:underline}
.stat-link:hover,.stat-link:focus-visible{background:#fff}
.stat-link>small{font-weight:700;color:var(--ink)}
.nt-tools{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.nt-search{max-width:460px}.nt-search input{min-height:48px;font-size:16px}
.nt-jump{display:flex;flex-wrap:wrap;gap:6px}
.nt-jump a{min-height:40px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.7);display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:700;font-size:14px}
.nt-jump a:hover{background:#fff}.nt-jump small{color:var(--muted);font-weight:500}
.nl{scroll-margin-top:16px}
.nl .pf-h{flex-wrap:wrap;gap:8px}
.nl-open{margin-left:auto;font-weight:700;font-size:14px}
.note-i mark{background:#FFE58A;border-radius:3px;padding:0 1px}
@media (max-width:560px){.pf-top{padding:28px 24px}.prow .pd{display:none}}
.nl .btn.light{background:var(--soft)}.nl .btn.light:hover{background:#E9E8F0}
.stats{grid-template-columns:repeat(auto-fit,minmax(min(150px,42%),1fr))}
@media (max-width:560px){
  .prow{display:grid;grid-template-columns:36px auto auto 1fr;gap:4px 14px;padding:12px 14px}
  .prow .no{grid-row:span 2;font-size:22px;width:auto}
  .prow .pm{grid-column:2 / -1}
  .prow .pn{flex-direction:row;align-items:baseline;gap:4px;min-width:0}
  .stat b{font-size:28px}
}
.an-sel{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:#BDBCC8}
.an-sel select{min-height:40px;border-radius:12px;border:0;background:#2B2A33;color:#fff;padding:0 10px;max-width:100%}
.pf-an .pf-act .when{font-size:13px;color:#BDBCC8}
.fbmark{font-size:13px;font-weight:700;color:var(--ok)}.cardlist .on .fbmark{color:var(--ink)}
.an-item{display:flex;flex-direction:column;gap:6px}
.an-meta{font-size:13px;font-weight:700;color:var(--c2)}
.an-tip{margin:8px 0 0;font-size:13px;color:#BDBCC8}
.an-old{margin-top:14px;border-radius:16px;background:#2B2A33;padding:4px 16px}
.an-old summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.an-old .an-item{border-top:1px dashed #45444F;padding:12px 0}
.an-old .an-body p{font-size:15px;color:#DAD9E2}
.home-h{margin:16px 0 0;font-weight:900;font-size:26px}
.lesson.hw{background:var(--c3)}
.lesson.hw .bar{background:rgba(255,255,255,.6)}
.lesson.hw.cur{background:var(--c2)}
.bands{margin:0;font-weight:800;font-size:14px;font-family:Outfit,var(--font)}
.vrow .grip{cursor:grab;font-weight:900;color:var(--muted);letter-spacing:-2px;padding:0 4px;user-select:none}
.vrow.dragging{opacity:.5;outline:2px dashed var(--ink)}
.vrow .va{flex-wrap:wrap}
.vser{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0}
.vser label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700}
.vser input{min-height:36px;border-radius:10px;border:2px solid var(--line);padding:0 10px;background:#fff;width:13em}
.vser .btn.sm{min-height:36px}
.vseries{display:flex;flex-direction:column;gap:12px}
.vseries h2{margin:8px 0 0;font-weight:900;font-size:24px;display:flex;align-items:baseline;gap:10px}
.vseries h2 span{font-size:14px;font-weight:700;color:var(--muted)}
.lesson.zt{background:var(--ink);color:#fff}
.lesson.zt .tag{background:var(--c2)!important;color:var(--ink)!important}
.lesson.zt .ghost{opacity:.12;font-size:96px}
.lesson.zt .bar{background:#3A3942}.lesson.zt .bar i{background:var(--c2)}
.lesson.zt:hover{color:#fff}
/* 托福真题: reading = green, writing = orange (IELTS 真题 stay dark) */
.lesson.zt.rd{background:var(--c3);color:var(--ink)} .lesson.zt.wt{background:var(--c2);color:var(--ink)} .lesson.zt.mk{background:var(--c1);color:var(--ink)}
.lesson.zt.rd:hover,.lesson.zt.wt:hover,.lesson.zt.mk:hover{color:var(--ink)}
.lesson.zt.mk .tag{background:#fff!important}.lesson.zt.mk .ghost{opacity:.14}.lesson.zt.mk .bar{background:rgba(255,255,255,.55)}.lesson.zt.mk .bar i{background:var(--ink)}
.lesson.zt.rd .tag,.lesson.zt.wt .tag{background:#fff!important}
.lesson.zt.rd .ghost,.lesson.zt.wt .ghost{opacity:.14}
.lesson.zt.rd .bar,.lesson.zt.wt .bar{background:rgba(255,255,255,.55)} .lesson.zt.rd .bar i,.lesson.zt.wt .bar i{background:var(--ink)}
.prow .no{white-space:nowrap}

/* 备考计划 */
.plan-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px 16px;align-items:end}
.plan-form .field input,.plan-form .field select{min-height:48px;font-size:16px}
.plan-top{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch;margin-bottom:14px}
.plan-count{flex:0 0 auto;border-radius:22px;background:var(--ink);color:#fff;padding:14px 22px;display:flex;flex-direction:column;justify-content:center;min-width:150px}
.plan-count b{font-family:Outfit,var(--font);font-weight:800;font-size:46px;line-height:1}
.plan-count span{font-weight:700}
.plan-count small{color:#BDBCC8;font-size:13px}
.plan-sum{flex:1 1 320px;margin:0;border-radius:22px;background:rgba(255,255,255,.7);padding:14px 18px;font-size:16px;line-height:1.7;align-self:stretch}
.plan-list{display:flex;flex-direction:column;gap:8px}
.plan-p{border-radius:18px;background:rgba(255,255,255,.7);padding:4px 16px}
.plan-p.cur{background:#fff;outline:3px solid var(--ink)}
.plan-p.past{opacity:.7}
.plan-p summary{cursor:pointer;min-height:48px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.plan-when{font-family:Outfit,var(--font);font-weight:800;min-width:110px;display:inline-flex;gap:8px;align-items:center}
.plan-when b{font-family:var(--font);font-size:12px;background:var(--c2);border-radius:999px;padding:1px 8px}
.plan-focus{flex:1 1 200px;font-weight:700}
.plan-n{font-size:13px;font-weight:700;color:var(--muted)}
.plan-tasks{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.plan-tasks li{display:flex;flex-direction:column;gap:2px}
.plan-tasks label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;line-height:1.6}
.plan-tasks input{width:20px;height:20px;margin-top:3px;flex:0 0 auto}
.plan-tasks input:checked+span{text-decoration:line-through;color:var(--muted)}
.plan-go{margin-left:30px;font-size:13px;font-weight:700}
.plan-edit{margin-top:12px}
.plan-edit summary{cursor:pointer;font-weight:700;min-height:40px;display:flex;align-items:center}
.plan-nd{grid-column:1/-1;display:flex;align-items:center;gap:10px;font-weight:700;min-height:40px;cursor:pointer}
.plan-nd input{width:20px;height:20px}
.plan-form .plan-weeks{display:none}
.plan-form.nodate .plan-weeks{display:flex}
.plan-form.nodate .plan-exam{display:none}

/* home hero: continue where you left off */
.hero-row .hero{gap:14px}
.hero-k{margin:6px 0 -6px;font-size:14px;font-weight:700}
.hero-go{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:24px;padding:20px 24px;text-decoration:none;max-width:620px;transition:transform .15s}
.hero-go:hover{transform:translateY(-2px);color:var(--ink)}
.hero-go .hg-l{font-size:14px;font-weight:500}
.hero-go b{font-size:24px;font-weight:900;line-height:1.3}
.hg-f{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:14px;font-weight:500}
.hg-f .bar{flex:1 1 140px;height:8px;border-radius:99px;background:var(--soft);overflow:hidden}
.hg-f .bar i{display:block;height:100%;background:var(--ink)}
.hg-btn{background:var(--ink);color:#fff;border-radius:12px;padding:8px 16px;font-weight:700}
.hero-hw{font-size:14px;font-weight:700;max-width:620px}
.hero-note{margin:0;font-size:13px;opacity:.75}
/* 备考计划 before a plan exists: one line + button */
.plan-empty{padding-top:22px;padding-bottom:22px}
.plan-new>summary{list-style:none;display:flex;align-items:center;gap:16px;flex-wrap:wrap;cursor:pointer}
.plan-new>summary::-webkit-details-marker{display:none}
.pn-t{display:flex;flex-direction:column;gap:2px;flex:1 1 300px}
.pn-t b{font-size:22px;font-weight:900}
.pn-t span{font-size:14px}
.plan-new[open] .pn-btn{display:none}
/* 学习进度: not-started items folded */
.pidle{margin-top:10px}
.pidle>summary{cursor:pointer;font-weight:700;min-height:40px;display:flex;align-items:center;color:var(--muted)}
.pidle .plist{margin-top:6px}
.nt-sec{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.nt-sec a{min-height:44px;padding:0 18px;border-radius:14px;background:#fff;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700}
.nt-sec small{color:var(--muted);font-weight:500}
#nt-h,#wr-h{scroll-margin-top:16px}
.us-top{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.us-top>div{flex:1 1 150px;border-radius:20px;background:rgba(255,255,255,.65);padding:12px 18px;display:flex;flex-direction:column}
.us-top b{font-family:Outfit,var(--font);font-weight:800;font-size:30px;line-height:1.15}
.us-top span{font-weight:700;font-size:14px}
.home-h small{font-size:14px;font-weight:500;color:var(--muted);margin-left:12px}
.sync.prev{background:#FFF3D6;color:#6B4A00;border-radius:10px;padding:6px 12px}
.tl-k{margin:18px 0 8px;font-size:15px;color:var(--muted)}
.tl-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;align-items:start}
@media (max-width:860px){.tl-cols{grid-template-columns:1fr}}
.tl-list{display:flex;flex-direction:column;gap:8px}
.tl-i{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:16px;background:var(--soft);text-decoration:none}
.tl-i:hover{background:#E9E8F0;color:var(--ink)}
.tl-i span{font-size:13px}
/* ---------- 打字练习 ---------- */
.ty-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.ty-goal{display:flex;align-items:center;gap:12px}
.ty-goal svg{width:96px;height:96px;transform:rotate(-90deg)}
.ty-goal .ring-bg{fill:none;stroke:rgba(255,255,255,.6);stroke-width:12}
.ty-goal .ring{fill:none;stroke:var(--ink);stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset .6s}
.ty-goal .ring.full{stroke:var(--ok)}
.ty-goal b{display:block;font-family:Outfit,var(--font);font-weight:800;font-size:34px;line-height:1.1}
.ty-goal span{font-weight:700;font-size:14px}
.ty-kind{display:flex;gap:6px;flex-wrap:wrap}
.ty-kind button{min-height:44px;padding:0 16px;border-radius:14px;border:2px solid var(--ink);background:#fff;font:inherit;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.ty-kind button small{font-weight:500;color:var(--muted)}
.ty-kind button[aria-checked="true"]{background:var(--ink);color:#fff}
.ty-kind button[aria-checked="true"] small{color:#C9C8D2}
.ty-src{margin:10px 0 8px;font-size:14px}
.ty-live{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:15px;margin-bottom:10px}
.ty-live b{font-family:Outfit,var(--font);font-size:22px}
.ty-live .btn{margin-left:auto}
.ty-text{position:relative;font-size:22px;line-height:1.95;letter-spacing:.01em;padding:22px 26px;border-radius:20px;background:var(--soft);border:2px solid transparent;cursor:text;color:#8E8D99;font-family:var(--font);white-space:pre-wrap;word-break:normal;outline:none}
.ty-text.focus{border-color:var(--ink);background:#fff}
.ty-text .ok{color:var(--ink)}
.ty-text .bad{color:var(--bad);background:#FDE1DD;border-radius:3px}
.ty-text .bad.sp{background:#F7B9B1}
.ty-text .cur{box-shadow:inset 2px 0 0 var(--ink)}
.ty-text.focus .cur{animation:tyblink 1s steps(1) infinite}
@keyframes tyblink{50%{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.ty-text.focus .cur{animation:none}}
.ty-input{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ty-hint{margin:10px 0 0;font-size:14px}
.ty-hint.warn{color:var(--bad);font-weight:700}
.ty-done{margin-top:16px;padding:20px 24px;border-radius:20px;background:var(--c3);display:flex;flex-direction:column;gap:14px}
.ty-res{display:flex;gap:12px;flex-wrap:wrap}
.ty-res>div{flex:1 1 140px;background:rgba(255,255,255,.7);border-radius:16px;padding:12px 16px;display:flex;flex-direction:column}
.ty-res b{font-family:Outfit,var(--font);font-weight:800;font-size:34px;line-height:1.1}
.ty-res span{font-weight:700;font-size:14px}
.ty-plot{position:relative}
.ty-svg{width:100%;height:auto;display:block;overflow:visible}
.ty-svg .grid{stroke:#E4E3EA;stroke-width:1}
.ty-svg .ax{font-size:12px;fill:var(--muted);font-family:var(--font)}
.ty-svg .line{fill:none;stroke:#5B4590;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.ty-svg .dot{fill:#5B4590;stroke:#fff;stroke-width:2}
.ty-svg .lab{font-size:13px;font-weight:700;fill:var(--ink);font-family:var(--font)}
.ty-svg .cross{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.ty-svg .hov{fill:none;stroke:#5B4590;stroke-width:2}
.ty-tip{position:absolute;pointer-events:none;background:var(--ink);color:#fff;border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;font-size:13px;width:180px}
.ty-tip b{font-size:15px}
.ty-rec{display:flex;flex-direction:column;gap:6px}
.ty-rec-i{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;padding:10px 14px;border-radius:14px;background:var(--soft);font-size:14px}
.ty-rec-i .src{flex:1 1 220px;text-align:right}
.ty-table td,.ty-table th{white-space:nowrap}
.spark polyline{fill:none;stroke:#5B4590;stroke-width:2;stroke-linejoin:round}
.ty-table .up{color:var(--ok);font-weight:700}.ty-table .down{color:var(--bad);font-weight:700}
.ok-tag{display:inline-block;font-size:12px;font-weight:700;background:var(--c3);border-radius:8px;padding:0 6px;margin-left:4px}
/* 班级反馈 */
.cf{display:flex;flex-direction:column;gap:16px}
.cf-grid{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:900px){.cf-grid{grid-template-columns:1fr}}
.cf-pic{display:flex;flex-direction:column;gap:10px}
.cf-img{width:100%;height:auto;border-radius:20px;box-shadow:0 2px 10px rgba(0,0,0,.08);background:#fff}
.cf-side{display:flex;flex-direction:column;gap:12px;background:rgba(255,255,255,.7);border-radius:24px;padding:20px}
.cf-text p{margin:0 0 8px;line-height:1.8}
.cf-empty{margin:0;color:var(--muted)}
.reader-bar .r{display:flex;align-items:center;gap:14px}
.zoom{display:flex;align-items:center;gap:2px;background:var(--soft);border-radius:12px;padding:3px}
.zoom button{min-width:40px;min-height:34px;border:0;border-radius:9px;background:transparent;font:inherit;font-weight:800;cursor:pointer}
.zoom button:hover{background:#fff}
.zoom span{min-width:48px;text-align:center;font-size:13px;font-weight:700;color:var(--muted)}
.skipbox{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.skipbox .chip.on{background:var(--ink);color:#fff}

@media (max-width:640px){.ty-art{display:none}}

/* 登录页右边：用网站自己的色块讲一句“第二稿”是什么意思 */
.login-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.lg-art{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:16px}
.lg-draft{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:32px 36px}
.lg-k{font-weight:700;color:var(--muted);font-size:15px}
.lg-s{margin:0;font-size:clamp(20px,2vw,27px);font-weight:700;line-height:1.55}
.lg-old{white-space:nowrap;color:var(--muted);text-decoration:line-through;text-decoration-color:var(--bad);text-decoration-thickness:3px}
.lg-new{display:inline-block;background:var(--c3);border-radius:10px;padding:0 8px;animation:lgPop .5s cubic-bezier(.34,1.56,.64,1) .9s both}
.lg-ai{align-self:flex-start;display:flex;gap:10px;align-items:center;background:var(--soft);border-radius:14px;padding:10px 14px;font-weight:700;font-size:15px;animation:lgUp .5s ease 1.3s both}
.lg-ai b{background:var(--ink);color:#fff;border-radius:8px;padding:1px 8px;font-size:13px}
.lg-two{display:flex;align-items:center;gap:16px;font-weight:800;font-size:20px;line-height:1.3;padding:24px 28px}
.lg-two>span:last-child{white-space:nowrap}.lg-no{font-size:96px;line-height:.8;letter-spacing:-.04em}
.lg-list{display:flex;flex-direction:column;justify-content:center;gap:8px;font-weight:700;font-size:15px;padding:22px 24px;white-space:nowrap}
.lg-list span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c2);margin-right:10px;vertical-align:middle}
@keyframes lgPop{from{opacity:0;transform:scale(.6) rotate(-6deg)}to{opacity:1;transform:none}}
@keyframes lgUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:1120px){.login-grid{grid-template-columns:minmax(0,620px)}.lg-art{display:none}}
@media (prefers-reduced-motion:reduce){.lg-new,.lg-ai{animation:none}}

/* 老师端「课件」页 */
.dk-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.dk-how{display:flex;gap:8px;flex-wrap:wrap}
.dk-how span{background:rgba(255,255,255,.55);border-radius:14px;padding:8px 14px;font-size:14px;font-weight:500}
.dk-how b{margin-right:6px}
.dk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.lesson.dk{min-height:230px}
.dk-meta{font-size:13px;font-weight:700;color:var(--muted)}
.dk-btns{display:flex;gap:8px;position:relative;flex-wrap:wrap}
.dk .btn.light{background:var(--soft)} .dk .btn.light:hover{background:#E4E3EA}

/* 复习页：真题错题本 / 写作记录，按题型分页签 */
.zt-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.zt-tab{border:0;cursor:pointer;min-height:40px;padding:0 16px;border-radius:999px;background:var(--soft);font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:8px}
.zt-tab small{font-size:12px;font-weight:800;background:#fff;border-radius:999px;padding:1px 8px}
.zt-tab[aria-selected="true"]{background:var(--ink);color:#fff}.zt-tab[aria-selected="true"] small{color:var(--ink)}
.zt-panel{display:flex;flex-direction:column;gap:12px}
.zw{border-radius:20px;background:var(--soft);padding:14px 18px}
.zw-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.zw-h b{font-size:16px}.zw-h a{margin-left:auto;font-weight:700;font-size:14px}
.zw .tag{background:#fff}.zw .tag.bad{background:#FDE1DD;color:#8A1C12}.zw .tag.sc{background:var(--ink);color:#fff}
.zw ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:12px}.zw li p{margin:2px 0}.zw .ws{font-weight:700}
.zw .zc{margin:0 0 6px}.zans summary{cursor:pointer;font-weight:700;font-size:14px}.zans p{margin:6px 0 0;white-space:normal}

/* 复习页：我的语料本 */
.tlb-top{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;align-items:center;margin-bottom:12px}
.tlb-n{display:flex;align-items:baseline;gap:6px}.tlb-n b{font-size:34px;font-family:Outfit,var(--font)}.tlb-n span{font-weight:700;color:var(--muted)}
.tlb-bar{height:10px;border-radius:99px;background:var(--soft);overflow:hidden}.tlb-bar i{display:block;height:100%;background:var(--ok)}
.tlb-top p,.tlb-act{grid-column:1 / -1}.tlb-act{display:flex;gap:8px;flex-wrap:wrap}
.tlb-list{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:6px;line-height:1.6}
.tlb-list li.due{font-weight:700}.tlb-list .tag{margin-left:8px;background:#FFE7CF!important;color:#9A4D08!important;font-size:12px}
.wl .tag.ok{background:#E3F5EC;color:#11744A}
.tlb-sent{margin:0 0 12px;padding-left:22px;display:flex;flex-direction:column;gap:10px}

/* 托福模考：每个考试日期一行，每套一个小按钮 */
.mk-list{padding:10px 24px;display:flex;flex-direction:column}
.mk-day{display:flex;align-items:center;gap:18px;padding:12px 0;border-top:1px solid var(--soft)}.mk-day:first-child{border-top:0}
.mk-day>b{flex:0 0 110px;font-size:17px}
.mk-pills{display:flex;flex-wrap:wrap;gap:8px}
.mk-pill{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 16px;border-radius:999px;font-weight:800;font-size:15px;color:var(--ink);text-decoration:none}
.mk-pill.rd{background:var(--c3)}.mk-pill.wt{background:var(--c2)}.mk-pill:hover{filter:brightness(.95);color:var(--ink)}
.mk-pill small{font-weight:700;opacity:.7}.mk-pill.done{box-shadow:inset 0 0 0 2px var(--ink)}
@media (max-width:640px){.mk-day{flex-direction:column;align-items:flex-start;gap:8px}.mk-day>b{flex:none}}

/* 备案号：每个页面底部（工信部要求，链接到 beian.miit.gov.cn） */
.icp{text-align:center;padding:8px 16px 28px;font-size:13px}.icp a{color:var(--muted);text-decoration:none}.icp a:hover{text-decoration:underline}

/* 开场动画：深色幕布 + 四块图形飞入拼成标志 + 光圈 + 字样，最后深色幕和橙色幕依次向上拉开 */
html.in-lock{overflow:hidden}
#intro{position:fixed;inset:0;z-index:9999;cursor:pointer}
#intro .in-trail,#intro .in-main{position:absolute;inset:0;transition:transform .6s cubic-bezier(.75,0,.25,1)}
#intro .in-trail{background:var(--c2)}
#intro .in-main{background:var(--ink);color:#fff;display:grid;place-items:center}
#intro.out .in-main{transform:translateY(-100%)}
#intro.out .in-trail{transform:translateY(-100%);transition-delay:.13s}
#intro .in-box{display:flex;align-items:center;gap:36px;transition:opacity .3s}
#intro.out .in-box{opacity:0}
#intro .in-mark{position:relative;display:block;width:160px;height:160px}
#intro .in-logo{width:100%;height:100%;overflow:visible;animation:inBeat .4s 1.05s ease both}
#intro .in-logo>*{transform-box:fill-box;transform-origin:center;animation:inPop .7s cubic-bezier(.3,1.6,.5,1) both}
#intro .p1{--x:-46vw;--y:-40vh;--r:-180deg;animation-delay:.05s}
#intro .p2{--x:46vw;--y:-40vh;--r:270deg;animation-delay:.17s}
#intro .p3{--x:-46vw;--y:40vh;--r:-270deg;animation-delay:.29s}
#intro .p4{--x:46vw;--y:40vh;--r:180deg;animation-delay:.41s}
#intro .in-ring{position:absolute;inset:-10%;border-radius:50%;border:4px solid var(--c2);opacity:0;animation:inRing .8s 1.05s ease-out both}
#intro .in-word{display:flex;flex-direction:column;line-height:1;clip-path:inset(0 100% 0 0);animation:inWipe .55s 1s cubic-bezier(.6,0,.2,1) forwards}
#intro .in-word b{font-size:88px;font-weight:800;letter-spacing:.04em}
#intro .in-word small{font-size:22px;font-weight:600;color:var(--c1);letter-spacing:.3em;text-transform:uppercase;margin-top:14px}
@keyframes inPop{from{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(2.2)}to{opacity:1;transform:none}}
@keyframes inBeat{45%{transform:scale(.86)}to{transform:scale(1)}}
@keyframes inRing{0%{opacity:.9;transform:scale(.7)}to{opacity:0;transform:scale(2.6)}}
@keyframes inWipe{to{clip-path:inset(0 0 0 0)}}
@media (max-width:620px){#intro .in-box{gap:20px}#intro .in-mark{width:92px;height:92px}#intro .in-word b{font-size:48px}#intro .in-word small{font-size:13px;margin-top:8px}}

/* 老师端：学生登录设备 */
.devs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;min-width:280px}
table.simple th{white-space:nowrap}
.devs li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--soft);font-size:14px}
.devs li b{min-width:4em}
.devs .dv{flex:1;display:flex;flex-direction:column;gap:2px}
.devs form{margin:0}
.devs .btn.sm{min-height:34px;padding:0 14px;border-radius:10px;font-size:13px}
