@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--bg:#f7f7fb;--white:#fff;--ink:#1e1c32;--muted:#64657b;--muted2:#74768b;--violet:#6040dc;--vivid:#6948ea;--lav:#f0ecff;--line:#e9e7f1;--side:238px;--r:17px;font-family:"DM Sans","Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);line-height:1.55}
a{color:inherit;text-decoration:none}
button,select,input{font:inherit}
button,select,summary{cursor:pointer}
button{border:0;background:none;color:inherit;padding:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #7f64ef;outline-offset:3px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(30px,3.9vw,46px);line-height:1.2;letter-spacing:-.035em}
h2{font-size:23px;line-height:1.34;letter-spacing:-.025em}
h3{font-size:16px;line-height:1.4}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);display:flex;flex-direction:column;padding:29px 19px 18px;background:var(--white);border-right:1px solid var(--line);z-index:4}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:22px;letter-spacing:-.025em;line-height:1.07;margin:0 0 46px 9px;width:max-content}
.brand-mark{display:block;width:40px;height:40px}
.brand-mark img{display:block;width:100%}
.brand small{font-size:9px;letter-spacing:.15em;color:var(--muted);display:block;margin-top:7px}
.nav-caption{font-size:11px;font-weight:700;color:var(--muted2);letter-spacing:.09em;padding:0 12px 10px}
#nav{display:grid;gap:6px}
.navitem{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:600}
.navitem:hover{background:#f6f4fd;color:var(--violet)}
.navitem.selected{color:#5335ca;background:#efeaff;font-weight:750}
.navitem small{margin-left:auto;color:#5c3bcf;background:#fff;border-radius:7px;min-width:23px;text-align:center;padding:1px 6px;font-size:11px}
.sidebar-bottom{margin-top:auto;padding:12px 4px 2px}
.storage{display:flex;align-items:center;gap:8px;color:var(--muted);padding:10px 8px;font-size:11px}
.online-dot{width:7px;height:7px;border-radius:50%;background:#24a887;box-shadow:0 0 0 3px #e5f7f2}
.workspace{margin-left:var(--side);min-height:100vh}
.topbar{height:70px;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(22px,4vw,64px);border-bottom:1px solid var(--line);background:#fff}
.top-left,#crumb,#today{display:flex;gap:9px;align-items:center}
#crumb,#today{color:var(--muted);font-size:13px}
#crumb strong{color:var(--ink);font-weight:700}
#today{white-space:nowrap}
.menu{display:none!important}
main{padding:31px clamp(22px,4vw,64px) 56px;max-width:1510px;margin:auto}
main:focus{outline:none}
.hero{position:relative;overflow:hidden;isolation:isolate;min-height:279px;padding:38px 42px 40px;border-radius:22px;color:#fff;background:radial-gradient(ellipse at 86% 65%,#957afd 0%,transparent 58%),linear-gradient(108deg,#5032c1 0%,#6440dd 46%,#7955ed 100%);box-shadow:0 10px 32px #4e28b522}
.hero-content{position:relative;z-index:2;width:max-content;max-width:100%}
.hero-kicker{display:inline-flex;gap:7px;align-items:center;padding:5px 10px;background:#ffffff20;border:1px solid #ffffff40;border-radius:30px;font-size:12px;font-weight:600}
.hero h1{font-size:clamp(29px,4vw,55px);letter-spacing:-.05em;margin-top:15px}
.hero p{color:#f2edff;font-size:15px;margin-top:10px}
.hero-actions{margin-top:25px;display:flex;gap:10px;flex-wrap:wrap}
.hero-art{position:absolute;inset:0 0 0 auto;width:48%;min-width:260px;z-index:1;pointer-events:none}
.orbit{position:absolute;left:50%;top:50%;width:min(99%,420px);height:66%;border:1px solid #eee5ff49;border-radius:50%;transform:translate(-50%,-50%) rotate(-20deg)}
.orbit.two{transform:translate(-50%,-50%) rotate(20deg);height:60%;width:min(95%,400px)}
.orbit.three{height:82%;width:min(79%,360px);transform:translate(-50%,-50%) rotate(-42deg);opacity:.55}
.art-stack{position:absolute;top:25%;left:50%;width:142px;height:142px;transform:translateX(-50%) rotate(-15deg)}
.art-stack i{display:grid;place-items:center;position:absolute;inset:17px;border-radius:19px;border:1px solid #fff8;background:linear-gradient(130deg,#d4c9ff65,#8b66f2a0);box-shadow:0 8px 18px #38218d29;transform:rotate(45deg) skew(-13deg,-13deg)}
.art-stack i:nth-child(1){top:86px;bottom:-52px;background:#7654db}
.art-stack i:nth-child(2){top:63px;bottom:-29px;background:linear-gradient(135deg,#ac94fc,#8c68ed)}
.art-stack i:nth-child(3){top:40px;bottom:-6px;background:linear-gradient(135deg,#c1acff,#9d7bf9)}
.art-stack i:nth-child(4){background:linear-gradient(135deg,#f1e9ff,#aa89ff);box-shadow:inset 0 0 24px #fff5,0 4px 16px #7249db78}
.art-stack b{font-style:normal;font-size:48px;line-height:1;color:#5834c7;transform:skew(13deg,13deg) rotate(-30deg);text-shadow:0 2px 4px #fff7}
.glow-dot,.spark{position:absolute;display:block;font-style:normal;color:#faeeff}
.glow-dot{width:9px;height:9px;background:#f5eaff;border-radius:50%;box-shadow:0 0 15px 3px #dfc6ffbd}
.d1{left:18%;top:39%}.d2{right:16%;top:61%;width:7px;height:7px}.d3{right:25%;top:23%;width:5px;height:5px}
.s1{right:22%;top:36%;font-size:21px}.s2{left:21%;bottom:16%;font-size:22px}
.button{min-height:41px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:8px 14px;border-radius:10px;border:1px solid transparent;font-size:13px;font-weight:750;white-space:nowrap;transition:background .17s,color .17s,transform .17s,box-shadow .17s}
.button:active{transform:translateY(1px)}
.button.primary{background:var(--vivid);color:#fff;box-shadow:0 3px 7px #6542ed23}
.button.primary:hover{background:#5533d2}
.button.light{background:white;color:#5434c2}
.button.light:hover{background:#f0eaff}
.button.hero-ghost{border-color:#fff7;background:#fff1;color:#fff}
.button.hero-ghost:hover{background:#fff3}
.button.soft{background:#eee9ff;color:#5435c4}
.button.soft:hover{background:#e5dcff}
.button.secondary{background:#fff;border-color:#e5e1f0;color:var(--muted)}
.button.secondary:hover{background:#f6f3ff;color:var(--violet)}
.button.danger{background:#b92e5b;color:#fff}
.button.block{width:100%;margin-top:16px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 3px 13px #21175004}
.stats,.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.stats{margin-top:21px}
.stat{display:flex;align-items:flex-start;gap:13px;padding:17px 17px 16px}
.stat-icon,.task-symbol,.course-symbol,.empty-icon{flex:none;display:grid;place-items:center;border-radius:11px;width:40px;height:40px;color:var(--violet);background:var(--lav)}
.stat-icon.green{color:#137c65;background:#e4f7f0}
.stat-icon.amber{color:#9e591e;background:#fff0df}
.stat-label{color:var(--muted);font-size:12px;font-weight:700}
.stat-value{font-size:29px;line-height:1.18;font-weight:800;letter-spacing:-.04em;margin-top:2px}
.stat-foot{color:var(--muted);font-size:11px;margin-top:4px}
.area{margin-top:30px}
.section-head,.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:13px;margin-bottom:15px}
.section-head p,.page-head p{color:var(--muted);font-size:13px;margin-top:5px}
.text-link{display:inline-flex;align-items:center;gap:6px;color:var(--violet);font-weight:750;font-size:13px;white-space:nowrap}
.text-link:hover{text-decoration:underline;text-underline-offset:3px}
.task{padding:17px;min-width:0;align-self:start}
.task-top{display:flex;align-items:flex-start;gap:11px;min-height:43px}
.task-meta{min-width:0}
.task-meta h3{overflow-wrap:anywhere}
.task-meta p{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);margin-top:4px}
.sample{border-radius:5px;padding:2px 5px;white-space:nowrap;font-size:9px;color:#6b597e;background:#f3eff7;vertical-align:middle}
.task-done .task-symbol{color:#127862;background:#e4f7f0}
.task-actions{display:flex;margin-left:auto;gap:1px}
.icon-btn{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;color:#68677d;font-size:24px;line-height:1;flex:none}
.icon-btn:hover{color:var(--violet);background:var(--lav)}
.countdown{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 15px;padding:10px 12px;background:#f2edff;color:#5633cd;border-radius:10px;font-size:clamp(17px,1.7vw,23px);font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1.2}
.countdown.urgent{background:#fff1db;color:#96571b}
.countdown.late{background:#ffe8f0;color:#ae2b53}
.countdown.done{background:#e7f8f1;color:#117660}
.progress-label{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:11px;margin-bottom:7px}
.progress-label strong{font-size:12px;color:var(--violet)}
.track{height:7px;background:#efedf6;border-radius:12px;overflow:hidden}
.track i{display:block;height:100%;background:linear-gradient(90deg,#6847e9,#9c75fa);border-radius:12px;transition:width .24s}
.task-done .track i{background:linear-gradient(90deg,#2ab69a,#63d2a8)}
.course-summary{display:flex;gap:16px;align-items:center;padding:19px}
.course-symbol{height:54px;width:54px;border-radius:13px;background:#efe9ff}
.course-summary-copy{flex:1;min-width:0}
.course-summary-copy h3{font-size:18px}
.course-summary-copy p{color:var(--muted);font-size:12px;margin:4px 0 8px}
.course-summary-copy .track{max-width:440px}
.page-head{margin:4px 0 24px;align-items:flex-end}
.page-head h1{margin:4px 0 8px}
.page-head p{font-size:14px}
.eyebrow{color:var(--violet);font-size:12px;font-weight:800;letter-spacing:.045em}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
.segments{display:flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#f0eff6}
.segments button{font-size:12px;font-weight:700;color:var(--muted);padding:6px 12px;border-radius:8px;white-space:nowrap}
.segments button.active{color:var(--violet);background:#fff;box-shadow:0 1px 4px #2117500e}
.sort{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.sort select{border:1px solid var(--line);color:var(--ink);border-radius:9px;padding:7px 9px;background:#fff;font-size:12px}
.subtasks{display:grid;gap:7px;margin-top:14px;border-top:1px solid var(--line);padding-top:11px}
.subtask{display:flex;align-items:flex-start;gap:7px;font-size:13px;cursor:pointer;overflow-wrap:anywhere}
.subtask:has(input:checked){color:var(--muted);text-decoration:line-through}
input[type=checkbox]{width:16px;height:16px;margin:2px 0 0;accent-color:var(--vivid);flex:none;cursor:pointer}
.empty{padding:32px 18px;text-align:center;color:var(--muted)}
.empty-icon{margin:0 auto 12px;width:46px;height:46px}
.empty h3{color:var(--ink)}
.empty p{font-size:13px;margin-top:5px}
.empty .button{margin-top:14px}


.course-toolbar{align-items:center}
.searchbox{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:10px;color:var(--muted);min-width:200px;width:320px}
.searchbox:focus-within{border-color:#8a71ed;box-shadow:0 0 0 2px #eee8ff}
.searchbox input{width:100%;min-width:0;border:0;outline:0;background:none;padding:10px 0;color:var(--ink);font-size:13px}
#sections{display:grid;gap:10px}
.course-section summary{display:flex;align-items:center;gap:13px;padding:13px 15px;list-style:none;border-radius:var(--r);min-height:68px}
.course-section summary:hover{background:#fbfaff}
summary::-webkit-details-marker{display:none}
.chapter{background:var(--lav);color:var(--violet);border-radius:8px;font-size:11px;letter-spacing:.04em;font-weight:800;padding:7px 8px;min-width:52px;text-align:center;white-space:nowrap}
.group-title{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.group-title strong{font-size:15px}
.group-title small{color:var(--muted);font-size:11px;margin-top:2px}
.group-count{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.course-section[open] summary>svg,.example details[open] summary>svg{transform:rotate(90deg)}
.chapter-list{padding:0 13px 12px}
.lesson-row{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:8px;font-size:13px}
.lesson-row:hover{background:#f6f2ff;color:var(--violet)}
.lesson-row>svg:last-child{margin-left:auto;color:var(--muted);flex:none}
.lesson-index{flex:none;width:25px;height:25px;display:grid;place-items:center;color:var(--muted);background:#f0eff6;border-radius:6px;font-size:11px;font-weight:800}
.lesson-index.complete{color:#137c65;background:#e4f7f0}
.back{margin-bottom:12px}
.lesson-head p{overflow-wrap:anywhere}
.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(188px,260px);gap:20px;align-items:start}
.lesson-main{display:grid;gap:15px;min-width:0}
.lesson-outline{padding:17px;position:sticky;top:15px}
.lesson-outline h3{margin:6px 0 10px}
.lesson-outline nav{display:grid;gap:4px;margin-top:12px}
.lesson-outline nav a{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);padding:6px 5px;border-radius:7px;overflow-wrap:anywhere}
.lesson-outline nav svg{flex:none}
.lesson-outline nav a:hover,.lesson-outline nav a.current{background:var(--lav);color:var(--violet)}
.reading,.example,.quiz,.lab{padding:21px 23px}
.lesson-main h2{margin:6px 0 12px;font-size:20px}
.reading p,.example p{font-size:14px;line-height:1.92;color:#41415a;overflow-wrap:anywhere}
.reading p+p{margin-top:10px}
.example{background:#faf7ff;border-color:#eae3fb}
.example details{margin-top:14px;background:#fff;border-radius:10px;border:1px solid #ebe5fa}
.example summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;color:var(--violet);font-size:13px;font-weight:800}
.example details p{padding:2px 12px 12px}
.choices{display:grid;gap:8px}
.choice{text-align:left;border:1px solid var(--line);border-radius:10px;display:flex;gap:10px;align-items:center;padding:9px 11px;color:#36334c;font-size:13px;min-height:42px}
.choice:enabled:hover{border-color:#b6a6f5;background:#f7f3ff}
.choice:disabled{cursor:default}
.choice span{display:grid;place-items:center;flex:none;background:#f0edf9;color:#5949a4;width:24px;height:24px;border-radius:6px;font-weight:800}
.choice svg{margin-left:auto;flex:none}
.choice.correct{background:#eaf9f1;border-color:#a3ddc6;color:#13684e}
.choice.correct span{background:#d0f1e1;color:#13684e}
.choice.incorrect{background:#fff0f1;border-color:#e7afba;color:#882240}
.choice.incorrect span{background:#f9dce4;color:#882240}
.feedback{margin-top:12px;padding:11px 13px;border-radius:9px;font-size:13px;background:#ffefdd;color:#7b4c17}
.feedback.right{background:#e7f8f0;color:#145e47}
.feedback p{margin-top:3px}
#feedback .text-link{margin-top:9px}
.lesson-finish{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:3px}
.lab{background:#fff;border-color:#e4dcf8}
.ranges{display:grid;gap:8px}
.ranges label{display:grid;gap:4px;font-size:13px;color:var(--muted);font-weight:650}
.ranges label span{display:flex;justify-content:space-between}
.ranges output{color:var(--violet);font-weight:800}
input[type=range]{width:100%;accent-color:var(--vivid);cursor:pointer;margin:0}
.lab-result{font-size:14px;font-weight:800;color:var(--violet);margin-top:14px;padding:10px 12px;background:var(--lav);border-radius:9px}
.lab-note{font-size:12px;margin-top:8px;color:var(--muted)}
.lab canvas{display:block;width:100%;height:230px;margin-top:10px;background:#faf9fe;border-radius:9px}
dialog{width:min(480px,calc(100% - 28px));max-height:calc(100% - 28px);border:none;border-radius:17px;padding:22px;color:var(--ink);box-shadow:0 24px 90px #20114244}
dialog::backdrop{background:#20153868}
.dialog-head,.dialog-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}
.dialog-head{margin-bottom:13px}
.dialog-actions{justify-content:flex-end;margin-top:15px}
#task-form label{display:grid;gap:4px;margin-top:9px;color:#474358;font-size:13px;font-weight:700}
#task-form input{width:100%;min-width:0;border:1px solid #ded9eb;border-radius:9px;padding:8px 9px;background:#fff;color:var(--ink);font-size:14px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#sub-fields{max-height:216px;overflow-y:auto}
.sub-label{color:#474358;font-size:13px;font-weight:700;margin-top:10px}
.sub-label span{color:var(--muted);font-size:11px;font-weight:500}
#task-form .sub-field{display:flex;align-items:center;margin:4px 1px;gap:8px}
.sub-field span{color:var(--violet);font-size:11px}
.error{font-size:12px;color:#a4224d;margin-top:8px}
#delete-name{color:var(--muted);overflow-wrap:anywhere;margin-top:6px}
#toast{display:none;position:fixed;z-index:9;bottom:23px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);padding:11px 15px;background:#282143;color:#fff;border-radius:11px;font-size:13px;font-weight:700;box-shadow:0 7px 26px #2a195b37}
#toast.shown{display:flex;gap:9px;align-items:center;animation:pop .27s both}
#toast svg{flex:none}
#toast.celebrate{left:50%;top:22%;bottom:auto;background:#5534c3;padding:16px 23px;font-size:clamp(17px,2vw,23px);border:2px solid #b59bff;animation:pop .46s cubic-bezier(.2,1.35,.45,1) both}
#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:8}
#confetti i{position:absolute;left:50%;top:25%;width:9px;height:13px;border-radius:2px;opacity:0;animation:fall 1.85s var(--d) ease-out both}
@keyframes pop{from{opacity:0;transform:translate(-50%,9px) scale(.82)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes fall{0%{opacity:1;transform:translate(0,-20px) rotate(0)}25%{opacity:1;transform:translate(calc(var(--x) * .68),-120px) rotate(calc(var(--r) * .4))}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}}
@media(max-width:1140px){:root{--side:196px}.hero{padding-left:32px}.hero-art{width:45%}.task{padding:14px}.stat{padding:14px;gap:9px}.stats,.task-grid{gap:11px}.task-top{flex-wrap:wrap}.task-actions{margin-left:0}.task-meta{flex:1}}
@media(max-width:900px){.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{right:-18px;opacity:.73;width:42%;min-width:200px}.hero p{max-width:75%}.lesson-layout{grid-template-columns:minmax(0,1fr)}.lesson-aside{grid-row:2}.lesson-outline{position:static}}
@media(max-width:690px){.sidebar{display:none;top:55px;bottom:auto;width:min(265px,100%);min-height:250px;box-shadow:5px 12px 30px #20174926;padding-top:20px;border-bottom-right-radius:15px}.menu-open .sidebar{display:flex}.brand{margin-bottom:18px}.sidebar-bottom{margin-top:16px}.workspace{margin-left:0}.menu{display:grid!important}.topbar{height:55px;padding:0 14px}.top-left,#crumb{gap:4px}#crumb,#today{font-size:11px}main{padding:18px 14px 34px}.hero{min-height:auto;padding:24px 20px}.hero h1{font-size:clamp(28px,7vw,37px)}.hero p{font-size:13px}.hero-art{opacity:.29;right:-50px}.art-stack{transform:translateX(-50%) rotate(-15deg) scale(.8)}.hero-actions{margin-top:17px}.stats{margin-top:13px;gap:7px}.stat{flex-direction:column;padding:9px;gap:5px}.stat-icon{width:29px;height:29px;border-radius:8px}.stat-icon svg{width:16px;height:16px}.stat-label{font-size:10px}.stat-value{font-size:23px}.stat-foot{font-size:10px}.area{margin-top:24px}.page-head{margin-bottom:15px}.toolbar{flex-wrap:wrap;gap:8px}.reading,.example,.quiz,.lab{padding:16px}.lesson-head{align-items:flex-start}.lesson-head button{min-width:41px;margin-top:11px}.course-summary{padding:13px;gap:9px}.course-symbol{width:40px;height:40px}.course-symbol svg{width:24px}.course-summary .button{padding:7px 8px}.searchbox{width:100%}}
@media(max-width:470px){.task-grid{grid-template-columns:1fr}.stat-foot{line-height:1.3}.segments button{padding:5px 9px}.section-head p{font-size:12px}.lesson-head{flex-wrap:wrap}.lesson-head button{margin-top:0}.hero p{max-width:100%}.course-summary-copy p{font-size:11px}.course-symbol{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
