:root{--ink:#16332a;--muted:#658077;--brand:#237a61;--brand-dark:#145442;--mint:#e9f5ec;--paper:#f7faf6;--line:#dce9df;--warm:#fff7eb;--danger:#b53c2e;--shadow:0 12px 30px rgba(24,74,57,.09);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(120deg,#f8fbf8 0,#f4faf6 60%,#eff7f0 100%)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.skip{position:fixed;left:-100vw;top:8px;background:#fff;padding:9px;z-index:9}
.skip:focus{left:8px}
.topbar{height:68px;padding:0 max(22px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:34px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);backdrop-filter:blur(12px);position:sticky;top:0;z-index:3}
.brand{font-size:20px;font-weight:800;letter-spacing:1px;white-space:nowrap}
.brand span{display:inline-grid;place-items:center;width:29px;height:29px;margin-right:4px;border-radius:50% 50% 50% 8px;background:var(--brand);color:#fff;font-size:16px}
.desktop-nav{display:flex;gap:23px;flex:1}
.desktop-nav a{color:#45635a;font-size:14px}
.desktop-nav a:hover,.desktop-nav a.active{color:var(--brand);font-weight:700}
.top-actions{display:flex;align-items:center;gap:12px}
.api-state{font-size:12px;color:var(--muted);white-space:nowrap}
.api-state.online{color:var(--brand)}
.api-state.offline{color:#a76c21}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d8eee0;color:var(--brand-dark);font-weight:700;font-size:13px}
main{max-width:1180px;margin:auto;padding:34px 22px 90px}
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:stretch;margin-bottom:36px}
.hero-copy{padding:52px 0 30px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--brand);font-size:13px;font-weight:700;background:var(--mint);border-radius:20px;padding:7px 11px}
.hero h1{font-size:clamp(34px,5vw,54px);letter-spacing:-2px;line-height:1.16;margin:18px 0}
.hero h1 em{font-style:normal;color:var(--brand)}
.lead{color:var(--muted);max-width:560px;line-height:1.8;font-size:16px}
.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.button{border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:10px;padding:12px 18px;font-weight:700}
.button:hover{background:var(--brand-dark)}
.button.ghost{background:#fff;color:var(--brand)}
.button.light{background:#fff;color:var(--brand);border-color:#fff}
.hero-card,.card{background:#fff;border:1px solid rgba(220,233,223,.9);box-shadow:var(--shadow);border-radius:18px}
.hero-card{padding:25px;background:radial-gradient(circle at 94% 5%,#d4f1dc,transparent 33%),#fff}
.hero-card h3{margin:0 0 18px;font-size:18px}
.score-row{display:flex;gap:18px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}
.score{font-size:30px;color:var(--brand);font-weight:800}
.score small{font-size:13px;font-weight:500;color:var(--muted)}
.score-row p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.disclaimer{padding:13px 15px;border-radius:10px;background:var(--warm);color:#805b27;font-size:12px;line-height:1.65;margin-top:17px}
.section{margin:34px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}
.section h2{font-size:24px;margin:0}
.section-head p{margin:5px 0 0;color:var(--muted);font-size:14px}
.text-link{color:var(--brand);font-size:14px;white-space:nowrap}
.grid{display:grid;gap:16px}
.grid.four{grid-template-columns:repeat(4,1fr)}
.grid.three{grid-template-columns:repeat(3,1fr)}
.feature{padding:21px;min-height:174px}
.feature .glyph{font-size:25px;color:var(--brand);margin-bottom:14px}
.feature h3{font-size:16px;margin:0 0 8px}
.feature p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.feature:hover{transform:translateY(-2px);border-color:#a8d1b5}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}
.page-head h1{font-size:30px;margin:0 0 8px}
.page-head p{color:var(--muted);margin:0;line-height:1.7}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}
.panel{padding:24px}
.panel h2,.panel h3{margin-top:0}
.tips{font-size:13px;line-height:1.75;color:var(--muted)}
.assessment-progress{height:7px;background:#edf3ed;border-radius:9px;overflow:hidden;margin:18px 0 30px}
.assessment-progress b{display:block;height:100%;width:0;background:var(--brand);transition:.25s}
.question{font-size:21px;line-height:1.55;margin-bottom:18px}
.options{display:grid;gap:11px}
.option{padding:15px;border:1px solid var(--line);border-radius:11px;display:flex;gap:11px;align-items:center;background:#fff}
.option:hover,.option.selected{border-color:var(--brand);background:var(--mint)}
.option input{accent-color:var(--brand)}
.assessment-actions{display:flex;justify-content:space-between;margin-top:25px}
.chat{height:min(58vh,610px);display:flex;flex-direction:column}
.messages{flex:1;overflow:auto;padding:4px 3px 20px;display:flex;flex-direction:column;gap:14px}
.message{max-width:82%;padding:12px 14px;border-radius:14px;line-height:1.7;font-size:14px;white-space:pre-wrap}
.message.ai{background:var(--mint);align-self:flex-start;border-bottom-left-radius:4px}
.message.user{background:var(--brand);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.message.system{align-self:center;background:var(--warm);color:#805b27;max-width:100%;font-size:12px}
.chat-form{display:flex;gap:9px;padding-top:14px;border-top:1px solid var(--line)}
.chat-form textarea{resize:none;min-height:48px;flex:1;padding:12px;border:1px solid var(--line);border-radius:11px;outline:none}
.chat-form textarea:focus{border-color:var(--brand)}
.chat-form button{width:70px;border:0;border-radius:11px;background:var(--brand);color:#fff;font-weight:700}
.quick-asks{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.quick-asks button{background:#fff;border:1px solid var(--line);color:#547269;padding:7px 9px;border-radius:16px;font-size:12px}
.article,.post,.product{padding:18px}
.tag{display:inline-block;background:var(--mint);color:var(--brand);font-size:12px;border-radius:16px;padding:4px 8px}
.article h3,.post h3,.product h3{font-size:17px;margin:12px 0 8px}
.article p,.post p,.product p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}
.meta{display:flex;gap:10px;color:#83978f;font-size:12px;margin-top:14px}
.post-actions{display:flex;gap:16px;border-top:1px solid var(--line);margin-top:14px;padding-top:11px;color:var(--muted);font-size:13px}
.product-img{height:112px;border-radius:10px;background:linear-gradient(145deg,#d7edce,#f8e9c9);display:grid;place-items:center;font-size:44px}
.price{color:#c14d37;font-weight:800;margin-top:12px}
.profile-grid{display:grid;grid-template-columns:270px 1fr;gap:20px}
.profile-card{padding:24px;text-align:center}
.profile-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--mint);color:var(--brand);font-size:24px;font-weight:800;margin:0 auto 10px}
.profile-card p{font-size:13px;color:var(--muted)}
.list{padding:0;margin:0;list-style:none}
.list li{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:14px}
.list li:last-child{border:0}
.teacher-banner{padding:25px;background:linear-gradient(135deg,#1e705b,#469a75);color:#fff}
.teacher-banner p{opacity:.85;line-height:1.7}
.teacher-banner .button{margin-top:5px}
.workspace-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{padding:17px}
.stat b{font-size:28px;color:var(--brand);display:block}
.stat span{font-size:13px;color:var(--muted)}
.empty{padding:32px;text-align:center;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:10px 14px;border-radius:9px;background:#17382e;color:#fff;font-size:13px;transition:.2s;z-index:4}
.toast.show{opacity:1;transform:translate(-50%,0)}
.bottom-nav{display:none}

@media(max-width:800px){.topbar{height:58px;padding:0 16px}
.desktop-nav,.api-state{display:none}
main{padding:23px 16px 82px}
.hero,.layout,.profile-grid{grid-template-columns:1fr;gap:17px}
.hero-copy{padding:6px 0}
.hero h1{font-size:36px}
.hero-card{padding:20px}
.grid.four,.grid.three{grid-template-columns:repeat(2,1fr)}
.feature{min-height:145px;padding:16px}
.feature .glyph{margin-bottom:8px}
.section{margin:27px 0}
.page-head h1{font-size:25px}
.panel{padding:18px}
.layout aside{order:2}
.profile-grid .profile-card{display:none}
.workspace-stats{grid-template-columns:repeat(2,1fr)}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:64px;display:flex;justify-content:space-around;padding:6px env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom)) env(safe-area-inset-left);background:rgba(255,255,255,.96);border-top:1px solid var(--line);z-index:3}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:52px;font-size:11px;color:#6d867d}
.bottom-nav i{font-style:normal;font-size:19px;line-height:18px}
.bottom-nav a.active{color:var(--brand);font-weight:700}
.chat{height:calc(100vh - 183px);min-height:420px}
.message{max-width:90%}
.toast{bottom:76px}
.product-img{height:90px}
}
@media(max-width:380px){.grid.four,.grid.three{grid-template-columns:1fr}
.hero h1{font-size:32px}
.topbar{gap:10px}
.brand{font-size:17px}
}
.plan-card h3{margin:10px 0 0}.plan-count{color:var(--brand);font-size:20px}.checkin,.mini-button{border:1px solid var(--brand);background:#fff;color:var(--brand);border-radius:8px;padding:6px 9px;font-size:12px;white-space:nowrap}.checkin.done{background:var(--mint);border-color:#afd4bb}.profile-actions{margin-top:18px}.teacher-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.teacher-cases li>span:last-child{display:flex;align-items:flex-end;gap:8px;flex-direction:column}.teacher-cases small{display:inline-block;max-width:390px;color:var(--muted);line-height:1.45}.case-status,.order-status{font-size:12px;color:var(--brand);background:var(--mint);border-radius:14px;padding:4px 8px;white-space:nowrap}.case-status.urgent_referral{background:#fff0ed;color:var(--danger)}.teacher-count{color:var(--muted);font-size:14px;margin:12px 0 20px}.muted-inline{color:var(--muted)}
@media(max-width:800px){.teacher-grid{grid-template-columns:1fr}.teacher-cases li{align-items:flex-start}.teacher-cases small{max-width:190px}.list li{align-items:center}.checkin{padding:6px}.profile-actions .button-row{margin-top:12px}}
