*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#253b3a;background:#f6f8f6;font-size:15px;line-height:1.65}button,input,textarea,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit;min-height:44px}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #73b9ad;outline-offset:3px}textarea,input{border:1px solid #d8e4df;border-radius:12px;background:#fff;padding:13px;color:#253b3a;max-width:100%}textarea{resize:vertical;width:100%;min-height:90px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#edf3ef;border-right:1px solid #dfe7e1;padding:34px 21px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-weight:700;font-size:22px;letter-spacing:1px}.brand-icon{width:44px;height:44px;display:grid;place-items:center;background:#24766c;color:white;border-radius:16px 16px 16px 5px;font-size:23px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#6c8279;font-weight:400;margin-top:2px}.new{background:white;border:1px solid #d5e2da;border-radius:12px;margin:35px 0 23px;color:#24766c;font-weight:600}nav{display:grid;gap:8px}nav button{display:flex;gap:15px;align-items:center;text-align:left;padding:10px 16px;border-radius:10px;font-size:20px}nav button span{font-size:15px}nav button.active{background:#dcebe3;color:#1e6b5e;font-weight:600}.side-note{margin:auto 0;padding:30px 14px;color:#72877e;font-size:12px}.tiny-leaf{font-size:26px;color:#85a797}.side-bottom{display:grid;font-size:12px;color:#698076}.side-bottom button{text-align:left;padding:5px 10px}.side-bottom small{font-size:10px;padding:14px 10px 0}.shell{margin-left:248px;min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 72% 10%,#edf4ee 0,transparent 50%)}header{height:78px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ece7;font-size:12px;color:#73857b}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5b9984;margin-right:9px}header button{font-size:12px;color:#7a8d82}main{width:min(100%,1080px);padding:55px 45px 24px;margin:0 auto;flex:1}.eyebrow{letter-spacing:3px;color:#6f8c7d;font-size:11px;font-weight:600}.hero{text-align:center;margin:15px 0 32px}.hero .symbol{margin:0 auto 19px;width:61px;height:61px;border-radius:24px;background:#e4eee5;display:grid;place-items:center;color:#5f9275;font-size:33px;box-shadow:0 8px 25px #dce7dd70}h1{font-size:31px;letter-spacing:1px;font-weight:500;line-height:1.5;margin:12px 0}h2{font-size:22px;font-weight:500;margin:5px 0 12px}h3{font-size:16px;font-weight:600;margin:0 0 8px}p{margin:8px 0;color:#677d73}.hero p{font-size:14px}.start-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:30px 0}.start-card{text-align:left;padding:22px;border:1px solid #dfe7df;background:#ffffffba;border-radius:18px;transition:transform .18s,box-shadow .18s}.start-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #224c3a0a}.start-card span{display:block;font-size:24px;color:#749883;margin-bottom:12px}.start-card strong{font-size:15px;font-weight:600}.start-card small{display:block;color:#7b8e82;font-size:12px;margin-top:5px}.composer{border:1px solid #d6e2d8;border-radius:21px;background:#fff;padding:18px 20px;box-shadow:0 8px 30px #36553e06}.composer textarea{border:0;padding:0;outline:none;min-height:78px;font-size:15px;resize:none}.composer textarea:focus-visible{outline:none}.composer:focus-within{box-shadow:0 0 0 2px #9bc6b4}.compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.intent{display:flex;gap:5px;flex-wrap:wrap}.intent button{font-size:12px;min-height:36px;padding:5px 12px;border-radius:18px;color:#708277}.intent button.selected{color:#24766c;background:#eaf2ed}.primary{background:#24766c;color:white;border-radius:12px;padding:10px 24px;font-weight:500}.primary:hover{background:#1b635a}.quiet{font-size:12px;color:#77867b;text-align:center;margin:12px 0 21px}.topics{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.topics button,.pill{border:1px solid #e2e8e0;background:#fafcf8;border-radius:24px;padding:7px 15px;font-size:12px;color:#788a79}.topics button:hover{background:#eaf2e9}.principles{display:flex;justify-content:center;gap:25px;color:#91a08f;font-size:11px;margin:30px 0 5px}footer{text-align:center;font-size:10px;color:#8a998e;padding:16px 20px 20px}.section-head{margin-bottom:26px}.section-head p{font-size:14px}.panel{background:#fff;border:1px solid #e0e8e0;border-radius:20px;padding:27px;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:7px;color:#4a6357;font-size:13px}.field.full{grid-column:1/-1}.field small{color:#819184}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.secondary{border:1px solid #dce5dc;background:#f9fbf8;border-radius:11px;padding:9px 18px}.chat-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.chat-head p{font-size:12px}.messages{display:flex;flex-direction:column;gap:18px;min-height:260px;margin-bottom:28px}.message{max-width:88%;padding:16px 20px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:17px;line-height:1.9}.message.user{align-self:flex-end;background:#e1eee5;color:#315b48;border-bottom-right-radius:4px}.message.assistant{align-self:flex-start;background:white;border:1px solid #e3e9e2;border-bottom-left-radius:4px}.message-label{display:block;font-size:10px;letter-spacing:1px;color:#8c9d8b;margin-bottom:7px}.chat-tools{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.chat-tools button{font-size:12px;color:#6f8877;min-height:38px;padding:6px 12px;border:1px solid #e0e8df;border-radius:18px}.card-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.saved-card{padding:24px;border:1px solid #dbe6da;background:#fff;border-radius:18px}.saved-card p{overflow-wrap:anywhere;font-size:14px}.saved-card small{font-size:11px;color:#8a9d8d}.saved-card .actions button{font-size:12px}.empty{padding:50px 20px;text-align:center}.empty span{font-size:42px;color:#90ad98}.class-options{display:grid;gap:14px}.class-options button{text-align:left}.class-options strong{display:block}.class-options p{font-size:13px}.class-banner{padding:13px 18px;background:#fff1dd;border:1px solid #ecdec7;color:#887254;border-radius:12px;font-size:12px;margin-bottom:20px}dialog{width:min(560px,calc(100% - 32px));border:1px solid #dce6dc;border-radius:22px;padding:30px;color:#385345;box-shadow:0 25px 90px #253e3826}dialog::backdrop{background:#1b312b50;backdrop-filter:blur(4px)}dialog p,dialog li{font-size:14px}dialog h2{font-size:21px}.dialog-close{display:block;margin:18px 0 0 auto;color:#24766c}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:12px;background:#264e42;color:white;display:none;font-size:13px;z-index:5}.toast.visible{display:block}.review-note{border-left:3px solid #9ebca5;padding-left:12px;margin-top:14px}.error{color:#945e3c;background:#fff3e8;border-radius:12px;padding:12px;font-size:13px}.mini-note{font-size:12px;color:#859586}.saved-card h3{overflow-wrap:anywhere}
@media(max-width:1050px){.sidebar{width:205px;padding:28px 15px}.brand{font-size:19px}.shell{margin-left:205px}main{padding:40px 25px}.start-card{padding:17px}.principles{gap:14px}}
@media(max-width:700px){.sidebar{position:fixed;inset:auto 0 0 0;width:100%;height:74px;padding:5px 6px 9px;border:0;border-top:1px solid #dce6dc;background:#f5f9f5f2;backdrop-filter:blur(12px);z-index:3}.brand,.new,.side-note,.side-bottom{display:none}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}nav button{display:flex;flex-direction:column;gap:0;padding:2px 0;font-size:20px;min-height:57px}nav button span{font-size:10px}.shell{margin-left:0;padding-bottom:76px}header{height:60px;padding:0 21px}header button{font-size:10px}main{padding:24px 19px 10px}.hero{margin:12px 0 23px}.hero .symbol{width:50px;height:50px;font-size:27px;margin-bottom:15px}h1{font-size:24px;letter-spacing:0}.hero p{font-size:12px}.eyebrow{font-size:9px}.start-grid{gap:8px;margin:23px 0}.start-card{padding:13px 10px;border-radius:14px}.start-card span{font-size:21px;margin-bottom:7px}.start-card strong{font-size:12px}.start-card small{font-size:10px}.composer{padding:15px;border-radius:17px}.composer textarea{font-size:14px;min-height:90px}.intent{gap:0}.intent button{padding:5px 7px;font-size:11px}.primary{padding:9px 16px;font-size:13px}.quiet{font-size:10px}.topics{gap:6px}.topics button{font-size:11px;padding:6px 10px;min-height:40px}.principles{font-size:9px;gap:12px;margin-top:23px}.form-grid,.card-list{grid-template-columns:1fr}.panel{padding:20px}.field.full{grid-column:auto}.message{max-width:96%;font-size:14px}.chat-head h2{font-size:20px}.chat-head button{font-size:12px}.toast{bottom:88px;max-width:90%;width:max-content}footer{font-size:9px;padding:14px}.class-banner{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media(prefers-reduced-transparency:reduce){.sidebar,.start-card{backdrop-filter:none;background:#f5f9f5}}

.footer-links{display:none}button{min-height:44px!important}@media(max-width:700px){.footer-links{display:flex;justify-content:center;gap:18px}.footer-links button{font-size:11px;color:#5c7a6b}dialog{max-height:calc(100dvh - 40px);overflow:auto}}

.brand{font-size:16px;gap:8px}.brand>span:last-child{white-space:nowrap}.brand-icon{flex-shrink:0;width:32px;height:36px}.brand small{white-space:normal}


/* Product identity and clear entry points */
.brand-icon{object-fit:contain;background:transparent;border-radius:0;width:38px;height:42px}.side-bottom{margin-top:auto}.brand-hero{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:36px;margin:0 0 24px;padding:0 26px}.hero-copy{flex:1}.hero-logo{width:70px;height:70px;object-fit:contain;display:block;margin-bottom:16px}.brand-hero h1{font-size:32px;line-height:1.5;font-weight:600;margin:8px 0 12px}.brand-hero p{font-size:15px;line-height:1.9}.digital-guide{margin:0;width:200px;flex-shrink:0;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end}.digital-guide img{width:100%;height:246px;object-fit:contain;object-position:center bottom;border-radius:22px}.digital-guide figcaption{text-align:center;color:#71867d;font-size:11px;margin-top:8px}.start-grid{margin:22px 0}.topics{margin-top:20px}.start-card small{line-height:1.7}.hero-logo{filter:drop-shadow(0 5px 12px #38574a12)}
@media(max-width:700px){.brand-hero{padding:0;gap:10px;margin:0 0 18px}.brand-hero h1{font-size:22px}.hero-logo{width:48px;height:48px;margin-bottom:10px}.brand-hero p{font-size:12px}.digital-guide{width:120px;align-self:center}.digital-guide img{height:185px;border-radius:16px}.digital-guide figcaption{font-size:9px}.start-grid{grid-template-columns:1fr;gap:8px}.start-card{display:grid;grid-template-columns:30px 1fr;column-gap:8px;padding:12px 16px}.start-card span{grid-row:1/3;margin:0;align-self:center}.start-card strong{font-size:14px}.start-card small{font-size:12px;margin-top:1px}header{height:52px}.topics{margin-top:16px}}

/* Reply formatting only; keep the existing chat layout. */
.message.assistant .message-body{white-space:normal}.message-body p{margin:0 0 .75em;color:inherit}.message-body ul,.message-body ol{margin:.35em 0 .75em;padding-left:1.6em}.message-body li{margin:.2em 0}.message-body>:last-child{margin-bottom:0}
