:root{--bg:#f3f5fa;--surface:#fff;--ink:#17233b;--muted:#778399;--soft:#a2aabc;--line:#e9edf5;--blue:#4569d9;--blue-strong:#3156d4;--blue-light:#edf2ff;--warm:#fff9ed;--warm-line:#f3e2bc;--red:#d35a4c;--green:#269572;--radius:16px;--shadow:0 4px 24px rgba(30,50,96,.035)}
*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg);color:var(--ink);font-size:14px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #a8bcff;outline-offset:2px}body{overflow:hidden}.app{height:100%;min-height:670px;display:flex;flex-direction:column;overflow:hidden}.topbar{height:78px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 27px;gap:27px}.logo{height:42px;width:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#5879f7,#3353d1);color:#fff;font-size:22px;font-weight:800;box-shadow:0 5px 12px rgba(55,90,209,.18)}.brand{display:flex;align-items:center;gap:12px;min-width:238px}.brand-copy strong{display:block;font-size:17px;letter-spacing:.15px}.brand-copy small{display:block;margin-top:4px;color:#8793a4;font-size:11px}.top-nav{height:100%;display:flex;align-items:center;gap:5px}.top-nav button{border:0;background:transparent;color:#7e899f;font-size:13px;font-weight:600;padding:12px 16px;border-radius:10px;transition:.18s}.top-nav button:hover{background:#f4f6fd;color:#4157a4}.top-nav button.active{color:var(--blue-strong);background:#eff3ff}.header-grow{flex:1}.header-badge{color:#64718e;background:#f5f7fc;padding:8px 12px;border-radius:9px;font-size:11px;white-space:nowrap}.avatar{width:34px;height:34px;border-radius:50%;background:#f8d9ae;display:grid;place-items:center;color:#a56b27;font-size:14px;font-weight:800;border:3px solid #fff;box-shadow:0 0 0 1px #efd6ae}.overview{height:94px;flex-shrink:0;padding:18px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px}.headline h1{font-size:20px;letter-spacing:-.4px;margin:0 0 6px;font-weight:780}.headline p{margin:0;font-size:12px;color:#8591a4}.metrics{display:flex;align-items:center;gap:25px}.metric{border-left:1px solid #dfe5ef;padding-left:22px;min-width:76px}.metric b{font-size:21px;letter-spacing:-.8px;display:block;line-height:1.2}.metric small{font-size:11px;color:#8792a4}.workspace{min-height:0;flex:1;display:grid;grid-template-columns:248px minmax(280px,320px) minmax(430px,1fr);gap:12px;padding:0 18px 18px}.pane{min-height:0;border:1px solid #e9edf4;border-radius:16px;background:white;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}.pane-title{padding:20px 18px 12px;display:flex;justify-content:space-between;align-items:center}.pane-title b{font-size:14px}.pane-title small{color:#8995a8;font-size:11px}.sidebar{background:#fff}.sidebar-hint{padding:0 18px 14px;color:#8e99aa;font-size:11px;line-height:1.7}.tree-area{overflow-y:auto;overflow-x:hidden;flex:1;padding:0 9px 15px}.stage-head{padding:11px 11px 9px;display:flex;align-items:center;gap:9px;border-radius:10px;cursor:pointer;color:#44536d;font-size:12px;font-weight:670;user-select:none}.stage-head:hover{background:#f5f7fd}.stage-head .stage-num{min-width:26px;height:26px;border-radius:8px;background:#edf1f8;display:grid;place-items:center;color:#74809b;font-size:11px}.stage-head.open{color:#2d50c9}.stage-head.open .stage-num{background:#ebefff;color:#4262da}.stage-head .chev{margin-left:auto;color:#aab5c5;font-size:11px}.stage-list{margin:2px 0 9px 13px;border-left:1px solid #e8ecf4;padding-left:9px}.cat-row{display:flex;align-items:center;gap:8px;text-align:left;width:100%;min-height:35px;border:0;background:transparent;color:#758199;font-size:11px;padding:7px 9px;border-radius:8px}.cat-row>span{white-space:normal;line-height:1.4;flex:1}.cat-row i{font-style:normal;color:#a2adc0;font-size:10px}.cat-row:hover{background:#f5f7ff;color:#405dc1}.cat-row.active{background:#eaf0ff;color:#2e55d5;font-weight:670}.cat-row.active i{color:#6482d8}.cat-row.unavailable{opacity:.55}.sidebar-footer{border-top:1px solid var(--line);background:#fcfdff;padding:14px 18px}.sidebar-footer b{font-size:12px}.progress-label{display:flex;justify-content:space-between;margin:10px 0 6px;color:#8b96a7;font-size:11px}.progress-track{height:7px;background:#edf0f7;border-radius:9px;overflow:hidden}.progress-fill{width:0;height:100%;background:linear-gradient(90deg,#7098f2,#4769da);transition:width .3s}.catalog .pane-title{padding-bottom:13px}.search-wrap{margin:0 14px 13px;display:flex;align-items:center;gap:8px;background:#f6f8fc;border:1px solid #edf0f5;border-radius:11px;padding:10px 12px;color:#a0aabd}.search-wrap svg{width:17px;height:17px;flex-shrink:0}.search-wrap input{outline:0;border:0;background:transparent;width:100%;min-width:0;color:#20314d;font-size:12px}.search-wrap input::placeholder{color:#a1abbb}.filters{display:flex;gap:5px;margin:0 13px 13px;flex-wrap:wrap}.filter{padding:7px 10px;border:0;border-radius:8px;color:#8c97a7;background:#f7f8fb;font-size:11px}.filter.active{color:var(--blue-strong);background:var(--blue-light);font-weight:700}.catalog-count{font-size:11px;color:#a0a9b6;padding:0 17px 9px}.card-list{overflow:auto;flex:1;padding:0 9px 12px}.card-item{border:1px solid transparent;border-radius:12px;padding:13px 12px;margin:0 2px 7px;cursor:pointer;transition:.18s;position:relative}.card-item:hover{background:#fafbff;border-color:#e9edfb}.card-item.active{background:#eef3ff;border-color:#e0e9ff}.card-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-item h3{font-size:12.5px;margin:0;line-height:1.5;font-weight:750;color:#263550}.card-item p{margin:6px 0 9px;color:#8592a7;font-size:11px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-item .kicker{font-size:10px;color:#5476cc}.card-item .meta{display:flex;align-items:center;gap:8px;color:#99a5b4;font-size:10px}.tiny-dot{width:5px;height:5px;background:#c4cddc;border-radius:50%}.pin{border:0;background:transparent;color:#b4bfcd;padding:3px 4px;font-size:17px;line-height:1}.pin.saved{color:#e7a754}.detail{overflow:hidden}.detail-scroll{overflow:auto;flex:1}.detail-head{padding:22px 28px 0;border-bottom:1px solid var(--line);background:#fff}.breadcrumbs{display:flex;gap:9px;align-items:center;color:#8b97aa;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumbs .sep{color:#bec5d3}.detail-title{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-top:18px}.detail-title h2{font-size:21px;margin:0;line-height:1.45;letter-spacing:-.45px}.detail-title p{margin:8px 0 13px;color:#8c98a8;font-size:11px}.topic-icon{height:42px;width:42px;border-radius:12px;background:#eff2ff;flex-shrink:0;color:#4566d9;display:grid;place-items:center;font-size:19px}.badges{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:18px}.chip{border:1px solid #dfe6fb;background:#f2f5ff;padding:5px 9px;color:#4969c4;border-radius:7px;font-size:10px}.chip.grey{border-color:#e7ebf1;background:#f7f8fa;color:#8794a8}.chip.green{border-color:#d7ece6;background:#f1faf6;color:#278366}.chip.amber{border-color:#f2e4c7;background:#fff9ed;color:#a17434}.detail-tabs{display:flex;gap:7px;padding:0 28px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;overflow-x:auto}.detail-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;white-space:nowrap;padding:14px 13px 12px;color:#8591a6;font-size:12px;font-weight:600}.detail-tabs button.active{color:var(--blue-strong);border-bottom-color:#4568dc}.detail-body{flex:1;min-height:0;overflow:auto;padding:23px 28px 28px;background:#fff}.detail-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:#f5f8fe;border:1px solid #e9eefa;border-radius:10px;font-size:11px;color:#72819a;line-height:1.65;margin-bottom:16px}.detail-note b{color:#4b5e80}.content-title{font-size:14px;font-weight:750;margin:0 0 17px;display:flex;gap:9px;align-items:center}.content-title .bar{width:3px;background:#5d7af2;height:17px;border-radius:4px}.markdown{line-height:1.95;font-size:13px;color:#47566e;max-width:850px}.markdown h1,.markdown h2,.markdown h3,.markdown h4{color:#243650;line-height:1.45}.markdown h1{font-size:19px;margin:15px 0}.markdown h2{font-size:15px;border-bottom:1px solid #edf0f5;padding:14px 0 9px;margin:21px 0 11px}.markdown h3{font-size:14px;margin:20px 0 10px}.markdown p{margin:9px 0}.markdown ul,.markdown ol{padding-left:22px}.markdown li{margin:6px 0}.markdown strong{color:#293d65}.markdown code{background:#f1f4fa;padding:2px 5px;border-radius:4px;color:#3153b4;font-size:.92em}.markdown blockquote{margin:15px 0;border-left:3px solid #8fa7e9;background:#f8faff;padding:6px 15px;color:#556b9b}.markdown table{border-collapse:collapse;width:100%;font-size:11px;margin:15px 0;display:block;overflow-x:auto}.markdown td,.markdown th{border:1px solid #e4e9f2;padding:8px 10px;vertical-align:top}.markdown th{background:#f5f7fc;color:#44516a}.markdown del{color:#ad6d70}.markdown pre{background:#f6f8fc;padding:14px;border-radius:10px;overflow:auto}.callout{padding:14px 15px;border-radius:11px;background:var(--warm);border:1px solid var(--warm-line);font-size:11px;line-height:1.7;color:#987b50;margin-top:18px}.callout b{color:#8a6127}.action-row{display:flex;gap:9px;margin:16px 0 0}.primary-btn{background:#4265db;color:#fff;border:0;border-radius:9px;padding:11px 16px;font-size:12px;font-weight:730;display:inline-flex;align-items:center;gap:7px}.primary-btn:hover{background:#3152cb}.light-btn{background:#f5f7fe;color:#4d67a4;border:1px solid #e7ecfb;border-radius:9px;padding:10px 14px;font-size:12px}.example-card{border:1px solid #e9edf4;border-radius:12px;padding:16px 18px;margin:0 0 12px;background:#fff}.example-card .en{font-size:14px;color:#273957;font-weight:670;line-height:1.7}.example-card .cn{color:#7b8ba2;margin-top:7px;font-size:12px}.example-card .why{color:#90665e;margin-top:8px;background:#fff7f5;padding:10px 11px;border-radius:8px;font-size:11px;line-height:1.7}.section-rule{display:flex;justify-content:space-between;align-items:center;margin:22px 0 13px}.section-rule h4{font-size:14px;margin:0}.section-rule span{font-size:11px;color:#95a0ae}.exercise{border:1px solid #e5eaf3;border-radius:13px;overflow:hidden;margin:0 0 14px;background:white}.exercise .ex-head{padding:11px 16px;background:#f7f9fd;display:flex;align-items:center;justify-content:space-between;color:#6c7b93;font-size:11px}.exercise .ex-head .index{font-weight:750;color:#4363cb}.exercise .ex-main{padding:18px 18px 16px}.exercise .question{font-size:13px;color:#293951;line-height:1.85;white-space:pre-wrap}.exercise .ex-answer{margin-top:16px;padding:13px 14px;background:#f1f9f6;border:1px solid #ddefe7;border-radius:9px;color:#335c4e;font-size:12px;line-height:1.8}.exercise .ex-answer b{color:#218768}.exercise .foot{margin-top:14px;display:flex;gap:8px}.exercise .foot button{padding:8px 11px;border:1px solid #e3e8f2;color:#4c5e7b;background:#fff;border-radius:8px;font-size:11px}.exercise .foot button:hover{background:#eef3ff;color:#365bc6}.exercise .foot button.done{color:#148060;border-color:#c8e8dd;background:#effaf5}.empty-state{display:flex;min-height:230px;justify-content:center;align-items:center;text-align:center;flex-direction:column;color:#8592a6;gap:12px;padding:32px}.empty-illustration{font-size:31px;display:grid;place-items:center;width:68px;height:68px;background:#f1f4fc;border-radius:19px}.empty-state h3{margin:0;color:#42516a;font-size:14px}.empty-state p{font-size:12px;max-width:330px;line-height:1.8;margin:0}.related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-item{border:1px solid #e8edf6;background:#fff;border-radius:10px;padding:14px 15px;text-align:left}.related-item:hover{border-color:#b8c7f8;background:#f8faff}.related-item strong{font-size:12px;display:block;line-height:1.6;color:#3f4e68}.related-item small{display:block;color:#9ba6b5;margin-top:6px;line-height:1.5}.relation-label{font-size:10px;color:#6577bb;margin:0 0 7px}.graph-panel{border:1px solid #e9edf5;background:#fafbff;border-radius:15px;margin:14px 0;padding:8px;min-height:310px}.graph-panel svg{width:100%;height:300px}.graph-node circle{stroke:white;stroke-width:3px;filter:drop-shadow(0 2px 4px rgba(25,40,90,.1))}.graph-node text{font-size:10px;fill:#506078;cursor:pointer;user-select:none}.graph-node{cursor:pointer}.graph-link{stroke:#d5def4;stroke-width:1.8}.ghost-content{padding:20px}.ghost-content h2{font-size:20px;margin-top:0}.stage-card{background:#fff;border:1px solid #e8edf7;border-radius:13px;margin-bottom:10px;padding:15px;display:flex;gap:14px}.stage-card .stage-big{height:39px;min-width:39px;background:#eff3ff;color:#4b69ce;border-radius:10px;display:grid;place-items:center;font-weight:750}.stage-card b{display:block;font-size:13px}.stage-card p{margin:6px 0;color:#8b97a8;font-size:11px;line-height:1.65}.stage-card .stage-bottom{font-size:10px;color:#5b76bd}.overview-hero{background:linear-gradient(120deg,#eef3ff 0%,#f9fbff 78%);border:1px solid #e5edff;border-radius:16px;padding:22px;margin-bottom:18px}.overview-hero h2{margin:0;font-size:19px}.overview-hero p{margin:9px 0 0;color:#8490a7;font-size:12px}.reveal{display:none}.toast{position:fixed;bottom:24px;right:25px;background:#263b63;color:white;border-radius:11px;padding:12px 17px;font-size:12px;box-shadow:0 10px 25px rgba(30,50,96,.18);opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none;z-index:20}.toast.show{opacity:1;transform:translateY(0)}.simple-pill{display:inline-block;font-size:10px;border-radius:6px;padding:4px 8px;background:#f0f4fc;color:#6982b8}.graph-caption{font-size:11px;color:#8e9ab0;line-height:1.8}.floating-count{font-size:10px;color:#8593aa}.fake-skeleton{height:11px;border-radius:4px;background:#f1f3f8;margin:10px 0;width:80%}
@media(max-width:1160px){.workspace{grid-template-columns:216px minmax(250px,295px) minmax(390px,1fr);gap:8px;padding:0 10px 10px}.topbar{gap:12px;padding:0 18px}.brand{min-width:205px}.metrics{gap:9px}.metric{padding-left:12px}.detail-body{padding:20px}.detail-head{padding-left:20px;padding-right:20px}.detail-tabs{padding-left:18px;padding-right:18px}.top-nav button{padding:10px 11px}}
@media(max-width:920px){body{overflow:auto}.app{height:auto;min-height:100vh}.header-badge,.metrics{display:none}.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding:12px 16px}.header-grow{display:none}.top-nav{margin-left:auto}.overview{height:auto;padding:17px}.workspace{height:auto;display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:360px minmax(560px,auto)}.sidebar{grid-row:span 2}.catalog{height:360px}.detail{grid-column:2;min-height:600px}.detail-body{min-height:480px}}
@media(max-width:670px){.brand{min-width:auto}.brand-copy small{display:none}.top-nav{width:100%;justify-content:space-between}.top-nav button{font-size:11px;padding:8px}.workspace{display:flex;flex-direction:column}.sidebar{height:168px;flex-shrink:0}.sidebar-hint,.sidebar-footer{display:none}.tree-area{display:flex;gap:7px;padding:0 12px 10px;overflow-x:auto}.stage-group{min-width:185px}.stage-list{max-height:75px;overflow:auto}.catalog{height:270px;flex-shrink:0}.card-list{height:175px}.detail{min-height:650px}.detail-head{padding:15px}.detail-tabs{padding:0 9px}.detail-body{padding:17px}.detail-title h2{font-size:18px}.related-list{grid-template-columns:1fr}.overview{padding:14px}.headline h1{font-size:17px}}

.home-link{color:#5c6d8c;font-size:12px;font-weight:700;padding:8px 10px;border-radius:9px;white-space:nowrap}
.home-link:hover{background:#f4f6fd;color:#3156d4}
.skip{position:absolute;left:12px;top:-40px;background:#fff;padding:8px 12px;z-index:50}
.skip:focus{top:8px}
.overview .headline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.continue-btn{border:0;background:#4265db;color:#fff;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.pager{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px 12px;color:#8b96a7;font-size:11px}
.pager button{border:1px solid #e3e8f2;background:#fff;border-radius:8px;padding:6px 10px;color:#41557a}
.pager button:disabled{opacity:.4}
.mastery-row{display:flex;gap:6px;flex-wrap:wrap;margin:0 13px 10px}
.mastery-row select{border:1px solid #e6ebf4;background:#f7f8fb;border-radius:8px;color:#66758c;font-size:11px;padding:6px 8px}
.warn-line{margin-top:8px;color:#8d6b32;font-size:12px;line-height:1.6}
.option-list{margin:10px 0 0;padding:0;list-style:none}
.option-list li{padding:6px 0;border-top:1px solid #eef2f8}
.foot button.on{color:#148060;border-color:#c8e8dd;background:#effaf5}
.foot button.on-no{color:#a14444;border-color:#f0d0d0;background:#fff6f6}
.foot button.on-rev{color:#8a6420;border-color:#f0e2c0;background:#fff8ec}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Topbar contact: always-visible contact emails in the main app header. */
.topbar-contact{font-size:11px;line-height:1.3;color:var(--muted);white-space:nowrap;text-align:right}
.topbar-contact a{color:var(--blue);text-decoration:none}
.topbar-contact a:hover{text-decoration:underline}
.topbar-contact span{color:#b9c2d2}
@media(max-width:1160px){.topbar-contact{white-space:normal;max-width:200px;text-align:left}}
@media(max-width:920px){.topbar-contact{max-width:none;flex:1 1 100%;text-align:left}}
@media(max-width:670px){.topbar-contact{font-size:10.5px}}

/* Page footer: disclaimers. */
.page-footer{padding:18px 22px 26px;color:#7a879e;font-size:11.5px;line-height:1.8;border-top:1px solid #eef2f8}
.page-footer p{margin:0}
