:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f8f8f2;--paper:#fffefa;--white:#fff;--ink:#232c22;--muted:#5f6558;--olive:#3b5539;--deep:#284129;--line:#e5e7de;--wash:#edf0e6;--radius:15px;--serif:"Casebook Serif", "Songti SC", STSong, SimSun, "Noto Serif CJK SC", serif;--sans:Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif}@font-face{font-family:Casebook Serif;src:url(/art/casebook-serif.woff2)format("woff2");font-style:normal;font-weight:600 900;font-display:swap}*{box-sizing:border-box}html{min-width:300px}body{background:var(--bg);color:var(--ink);font-family:var(--sans);margin:0;font-size:16px}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}button,input,textarea{-webkit-tap-highlight-color:transparent}img{max-width:100%;display:block}svg{flex:none}h1,h2,h3,p,figure{margin:0}[hidden]{display:none!important}:focus-visible{outline-offset:3px;outline:3px solid #7a8b59}.sr-only,.skip-link:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip-link:focus{background:var(--white);z-index:30;padding:12px;position:fixed;top:12px;left:12px}.app-shell{grid-template-columns:224px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{z-index:12;background:var(--paper);border-right:1px solid var(--line);flex-direction:column;align-self:start;height:100dvh;padding:28px 18px 20px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;width:fit-content;padding:0 8px;display:flex}.brand-mark{color:#fff9e8;background:var(--deep);border-radius:13px;place-items:center;width:43px;height:43px;display:grid}.brand strong,.brand small{display:block}.brand strong{color:var(--deep);font-family:var(--serif);letter-spacing:.045em;font-size:22px;font-weight:760;line-height:1.14}.brand small{color:var(--muted);letter-spacing:.08em;margin-top:4px;font-size:12px}.navigation{gap:5px;margin-top:44px;display:grid}.nav-label{color:var(--muted);letter-spacing:.06em;padding:0 12px 7px;font-size:13px}.navigation a{color:#4d594b;border-radius:9px;align-items:center;gap:11px;min-height:43px;padding:9px 12px;font-size:15px;display:flex}.navigation a:hover{background:#f1f2eb}.navigation a.current{color:var(--deep);background:#e7eddf;font-weight:700}.sidebar-bottom{border-top:1px solid var(--line);margin-top:auto;padding-top:18px}.shop-link{color:var(--olive);border-radius:9px;align-items:center;gap:8px;margin:0 -2px;padding:9px 8px;display:flex}.shop-link:hover{background:var(--wash)}.shop-icon{background:var(--wash);border-radius:8px;flex:none;place-items:center;width:30px;height:32px;display:grid}.shop-link strong,.shop-link small{white-space:nowrap;display:block}.shop-link strong{font-size:14px}.shop-link small{color:var(--muted);margin-top:3px;font-size:12px}.shop-link>svg{margin-left:auto}.workspace{flex-direction:column;min-width:0;min-height:100vh;display:flex}.topbar{background:var(--paper);border-bottom:1px solid var(--line);z-index:8}.topbar-inner{justify-content:space-between;align-items:center;gap:15px;max-width:1456px;min-height:69px;margin:auto;padding:0 35px;display:flex}.topbar-location,.topbar-actions{align-items:center;gap:16px;display:flex}.topbar-location{color:#35442f;white-space:nowrap;font-size:15px;font-weight:720}.global-search,.library-search{color:var(--muted);border:1px solid var(--line);background:#f6f7f1;border-radius:9px;align-items:center;gap:9px;padding:0 11px;display:flex;position:relative}.global-search{width:clamp(220px,27vw,330px)}.global-search:focus-within,.library-search:focus-within{outline:2px solid #9ea891}.global-search input,.library-search input{background:0 0;border:0;outline:none;width:100%;min-width:0;padding:10px 0;font-size:14px}.global-search input:focus-visible,.library-search input:focus-visible{outline:0}kbd{background:var(--paper);white-space:nowrap;border:1px solid #dfe3d8;border-radius:5px;padding:3px 5px;font-family:inherit;font-size:11px}.search-popover{z-index:9;border:1px solid var(--line);background:var(--paper);border-radius:11px;width:min(360px,84vw);min-width:100%;max-height:min(65vh,440px);padding:6px;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto;box-shadow:0 10px 30px #252c2417}.search-popover a{color:var(--ink);border-radius:7px;align-items:center;gap:10px;padding:10px;font-size:15px;display:flex}.search-popover a:hover{background:var(--wash)}.search-popover small{color:var(--muted);margin-top:3px;font-size:12px;display:block}.search-popover p{padding:13px;font-size:14px;line-height:1.5}.avatar{width:36px;height:36px;color:var(--olive);font-family:var(--serif);background:#e9edde;border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid}.avatar:hover{background:#dce5d3}.mobile-toggle,.mobile-overlay{display:none!important}.main-content{flex:1;width:100%;max-width:1456px;margin:0 auto;padding:31px 35px 56px}.main-content:focus{outline:none}.hero{isolation:isolate;background:#f3e7d0 url(/art/hero.webp) 50%/cover no-repeat;border:1px solid #e6dfc9;border-radius:17px;align-items:center;min-height:358px;display:flex;position:relative;overflow:hidden}.hero-content{z-index:1;padding:32px 0 35px clamp(30px,4.3vw,64px);position:relative}.eyebrow{color:var(--olive);letter-spacing:.1em;align-items:center;gap:9px;font-size:14px;font-weight:750;display:flex}.eyebrow>span{background:#84936b;width:20px;height:1px;display:inline-block}.hero h1{letter-spacing:.025em;color:#233a26;font-size:clamp(46px,5vw,77px);line-height:1.05;font-family:var(--serif);margin:14px 0 11px;font-weight:800}.hero-description{color:#4c5841;line-height:1.7}.hero-actions,.button-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px;display:flex}.button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:9px 16px;font-size:15px;font-weight:680;line-height:1.35;display:inline-flex}.button.primary{color:#fffefa;background:var(--deep);border-color:var(--deep)}.button.primary:hover:not(:disabled){background:#385b38;border-color:#385b38}.button.soft{color:var(--deep);background:var(--paper);border-color:#d9dfd0}.hero .button.soft{background:#fffaebc9;border-color:#a7aa8a}.button.soft:hover{background:#ebf0e4}.button:disabled,.prompt-list button:disabled{opacity:.53}.dashboard-cases,.dashboard-library{margin-top:31px}.section-head{justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px;display:flex}.section-head h2,.page-head h1{color:var(--deep);font-family:var(--serif);letter-spacing:.025em;font-weight:800}.section-head h2{font-size:28px;line-height:1.2}.section-head p{color:var(--muted);margin-top:7px;font-size:15px;line-height:1.5}.quiet-link,.back-link,.card-link,.text-button{color:var(--olive);align-items:center;gap:7px;font-size:14px;font-weight:700;display:inline-flex}.quiet-link{white-space:nowrap;padding-bottom:3px}.quiet-link:hover,.back-link:hover,.card-link:hover,.text-button:hover{text-underline-offset:3px;text-decoration:underline}.progress-count{color:var(--deep);background:#e8eedf;border-radius:99px;padding:4px 9px;font-size:13px;font-weight:700;display:inline-flex}.case-grid,.article-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.case-card,.article-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);flex-direction:column;min-width:0;transition:box-shadow .15s,border-color .15s;display:flex;overflow:hidden}.case-card:hover,.article-card:hover{border-color:#c9d3bd;box-shadow:0 5px 18px #2e462b0c}.case-cover{isolation:isolate;color:#f4eddc;place-items:center;min-height:138px;display:grid;position:relative;overflow:hidden}.case-olive .case-cover{background:#484434}.case-clay .case-cover{background:#71513c}.case-ink .case-cover{background:#3f544c}.case-photo{z-index:-1;background:#514b38 url(/art/apothecary.webp) 50% 57%/cover no-repeat;position:absolute;inset:0}.case-clay .case-photo{background-image:linear-gradient(120deg,#432a2360,#1e28172e),url(/art/gouqi.webp);background-position:50% 52%}.case-ink .case-photo{background-image:linear-gradient(110deg,#142e2f45,#12222120),url(/art/books.webp);background-position:50% 54%}.case-emblem{background:#2d3d35a3;border:1px solid #f2e8d48c;border-radius:50%;place-items:center;width:91px;height:91px;display:grid}.case-clay .case-emblem{background:#693f2dd1}.cover-tag{color:#fbf8ec;background:#233629df;border-radius:6px;padding:5px 8px;font-size:13px;font-weight:650;position:absolute;top:12px;left:12px}.case-body,.article-body{flex:1;padding:15px 17px 17px}.case-body{flex-direction:column;align-items:flex-start;display:flex}.card-meta,.article-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;min-height:20px;font-size:13px;display:flex}.card-meta>span{align-items:center;gap:4px;display:inline-flex}.card-meta>span:not(:first-child):before{content:"";border-left:1px solid #dce1d4;height:11px;margin-right:5px}.card-meta .solved-badge{color:var(--olive)}.case-body h3,.article-body h3{margin-top:6px;font-size:20px;font-weight:760;line-height:1.35}.case-body h3 a:hover,.article-body h3 a:hover{color:var(--olive);text-underline-offset:3px;text-decoration:underline}.card-description{color:var(--muted);margin-top:7px;font-size:15px;line-height:1.6}.card-link{margin-top:auto;padding-top:13px}.shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;display:grid}.shortcut{border:1px solid var(--line);background:var(--paper);border-radius:12px;align-items:center;gap:10px;padding:13px;display:flex}.shortcut:hover{background:#fafcf6;border-color:#bed0b7}.shortcut-icon{width:42px;height:42px;color:var(--deep);background:#eaf0e1;border-radius:11px;flex:none;place-items:center;display:grid}.shortcut-lessons{color:#765634;background:#f3eadb}.shortcut-practice{color:#365c51;background:#eaf0ed}.shortcut-assistant{color:#665274;background:#eee9f1}.shortcut strong,.shortcut small{display:block}.shortcut strong{font-size:15px}.shortcut small{color:var(--muted);margin-top:4px;font-size:13px;line-height:1.3}.page-head{margin:15px 0 24px}.page-head h1{margin-top:9px;font-size:clamp(39px,5vw,59px);line-height:1.15}.page-head>p:last-child{color:var(--muted);margin-top:10px;line-height:1.65}.back-link{min-height:36px;padding-right:10px}.filters{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:13px;margin:0 0 19px;display:flex}.pills{flex-wrap:wrap;gap:8px;display:flex}.pills button,.prompt-list button{border:1px solid var(--line);background:var(--paper);color:var(--olive);border-radius:99px;min-height:38px;padding:8px 12px;font-size:14px}.pills button[aria-pressed=true]{color:var(--deep);background:#e9efdf;border-color:#c8d6bd;font-weight:700}.pills button:hover,.prompt-list button:hover:not(:disabled){background:var(--wash);border-color:#b3c3a8}.library-search{width:min(230px,100%)}.article-image{background:var(--wash);height:154px;display:block;overflow:hidden}.article-image img{object-fit:cover;width:100%;height:100%}.article-meta{justify-content:space-between;min-height:32px}.article-category{color:var(--olive);background:#edf1e7;border-radius:6px;padding:4px 8px;display:inline-flex}.article-subtitle{color:var(--muted);margin-top:5px;font-size:14px}.article-symbol{width:38px;height:36px;color:var(--olive);align-items:center;margin-top:10px;display:grid}.lesson-symbol{color:#765634}.icon-button{width:34px;height:34px;color:var(--olive);background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:inline-grid}.icon-button:hover{background:var(--wash)}.empty-state{text-align:center;border-radius:var(--radius);color:var(--olive);border:1px dashed #ced6c4;justify-items:center;gap:14px;padding:30px 16px;display:grid}.empty-state h2,.empty-state h3{font-size:19px}.reading-width{max-width:840px}.paper-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);min-width:0;padding:clamp(16px,2.4vw,30px)}.paper-panel h2{color:var(--deep);font-size:21px;line-height:1.35}.reading-image{max-width:580px;margin-bottom:20px}.reading-image img{object-fit:cover;border-radius:10px;width:100%;max-height:315px}.reading-image figcaption{color:var(--muted);margin-top:7px;font-size:13px}.reading-panel section{margin-top:20px}.reading-panel p,.scene p{color:#465043;line-height:1.75}.reading-panel section p,.scene p{margin-top:7px}.scene{grid-template-columns:minmax(0,1fr) minmax(155px,34%);align-items:center;gap:20px;display:grid}.scene-art{background:#544836 url(/art/apothecary.webp) 50% 54%/cover no-repeat;border-radius:9px;width:100%;height:100%;min-height:115px}.case-clay .scene-art{background-image:url(/art/gouqi.webp)}.case-ink .scene-art{background-image:url(/art/books.webp)}.reading-panel .reading-intro{color:var(--deep);font-weight:680}.source-line{border-top:1px solid var(--line);margin-top:23px;padding-top:15px}.source-line a{color:var(--olive);text-underline-offset:3px;align-items:center;gap:7px;font-size:14px;text-decoration:underline;display:inline-flex}.investigation-grid{grid-template-columns:1fr 1fr;align-items:start;gap:16px;margin-top:16px;display:grid}.panel-title{justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.panel-title>span{color:var(--olive);white-space:nowrap;font-size:14px}.meter{background:var(--wash);border-radius:99px;height:6px;margin-bottom:16px;overflow:hidden}.meter span{background:#678563;border-radius:99px;height:100%;transition:width .2s;display:block}.clue-list{gap:8px;display:grid}.clue{border:1px solid var(--line);border-radius:9px;overflow:hidden}.clue button{text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;min-height:59px;padding:10px;display:flex}.clue button:hover,.clue button[aria-expanded=true]{background:#f2f4eb}.clue button:focus-visible{outline-offset:-3px}.clue button>svg{color:var(--olive);margin-left:auto}.clue .turned{transform:rotate(90deg)}.clue-icon{width:33px;height:33px;color:var(--olive);background:#eaf0e3;border-radius:8px;flex:none;place-items:center;display:grid}.clue strong{font-size:15px}.clue small{color:var(--muted);margin-top:3px;font-size:13px;display:block}.clue p{color:#465043;border-top:1px solid var(--line);padding:10px 13px 13px;line-height:1.65}.evidence-link{white-space:normal;margin-top:16px}.deduction-empty{text-align:center;min-height:175px;color:var(--muted);border:1px dashed #d7ddce;border-radius:9px;place-items:center;gap:11px;padding:16px;display:grid}.question-choices{border:0;min-width:0;margin:0 0 15px;padding:0}.question-choices legend{padding:0 0 11px;font-size:17px;font-weight:730;line-height:1.45}.choice{cursor:pointer;border:1px solid var(--line);border-radius:8px;align-items:center;gap:9px;min-height:44px;margin-bottom:7px;padding:8px 10px;font-size:15px;display:flex}.choice:focus-within{outline-offset:1px;outline:2px solid #8d9e7c}.choice input{opacity:0;width:1px;height:1px;position:absolute}.choice.selected,.choice:hover{background:#f0f4e9;border-color:#c4d1b8}.choice.choice-correct{color:var(--deep);background:#e8f1e1}.choice.choice-wrong{color:#783e30;background:#fbede7;border-color:#e5caba}.choice>svg{margin-left:auto}.choice-letter{width:24px;height:24px;color:var(--olive);background:#e4eadc;border-radius:5px;flex:none;place-items:center;font-size:13px;font-weight:760;display:grid}.feedback{border-radius:8px;margin:0 0 12px;padding:10px 13px;line-height:1.55}.feedback p{margin-top:4px;font-size:15px}.right-answer{color:var(--deep);background:#eaf1e4}.wrong-answer{color:#733f32;background:#f8ede6}.review-list{gap:12px;margin-bottom:17px;display:grid}.review-list>div{border-bottom:1px solid var(--line);padding-bottom:10px}.review-list strong{align-items:center;gap:7px;display:flex}.review-list p{color:var(--muted);margin:5px 0 0 25px;line-height:1.5}.assistant-intro{align-items:flex-start;gap:12px;display:flex}.assistant-intro p{color:var(--muted);margin-top:5px;line-height:1.55}.prompt-list{flex-wrap:wrap;gap:7px;margin:17px 0;display:flex}.chat-history{gap:13px;display:grid}.exchange{justify-items:start;gap:8px;min-width:0;display:grid}.user-msg{max-width:92%;color:var(--deep);overflow-wrap:anywhere;background:#e9efdf;border-radius:10px 10px 2px;justify-self:end;padding:9px 12px;line-height:1.55}.assistant-msg{border:1px solid var(--line);color:#434d40;border-radius:10px 10px 10px 2px;max-width:95%;padding:11px 13px}.assistant-msg strong{color:var(--olive);margin-bottom:5px;font-size:13px;display:block}.assistant-msg p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.assistant-msg.pending{align-items:center;gap:8px;display:flex}.answer-references{flex-wrap:wrap;gap:7px;margin-top:10px;display:flex}.answer-references a{color:var(--deep);background:var(--wash);border-radius:6px;align-items:center;gap:6px;padding:6px 8px;font-size:14px;display:inline-flex}.answer-references a:hover{text-decoration:underline}.text-button{background:0 0;border:0;padding:3px 0}.question-form{border:1px solid var(--line);background:#fcfcf8;border-radius:10px;margin-top:8px;padding:9px}.question-form textarea{resize:vertical;background:0 0;border:0;width:100%;min-height:65px;padding:8px;display:block}.form-actions{justify-content:space-between;align-items:center;gap:10px;padding:0 4px;display:flex}.form-actions small{color:var(--muted);font-size:13px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.stat{color:var(--olive);gap:7px;display:grid}.stat>span{font-size:14px}.stat>strong{font-size:30px}.notebook-list{padding:7px 16px}.notebook-list a{color:var(--olive);align-items:center;gap:10px;padding:12px 0;display:flex}.notebook-list a+a{border-top:1px solid var(--line)}.notebook-list a:hover strong{text-decoration:underline}.notebook-list a span{white-space:nowrap;margin-left:auto;font-size:14px}.footer{background:var(--paper);border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px;padding:13px 35px;font-size:13px;display:flex}@media (max-width:1090px){.app-shell{grid-template-columns:191px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.topbar-inner,.main-content,.footer{padding-left:24px;padding-right:24px}.hero{min-height:337px}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:820px){.app-shell{display:block}.sidebar{visibility:hidden;width:232px;transition:transform .18s ease-out;position:fixed;inset:0 auto 0 0;transform:translate(-103%)}.sidebar.is-open{visibility:visible;transform:translate(0)}.mobile-toggle{margin-left:-5px;display:inline-grid!important}.mobile-overlay{z-index:11;background:#202b2366;border:0;position:fixed;inset:0;display:block!important}.topbar-location{gap:6px}.topbar-inner{min-height:58px}.topbar-actions{gap:9px}.global-search{width:clamp(160px,41vw,310px)}kbd{display:none}.main-content{padding-top:20px}.hero h1{font-size:clamp(46px,8.5vw,64px)}}@media (max-width:615px){.topbar-inner,.main-content,.footer{padding-left:15px;padding-right:15px}.topbar-inner{gap:6px}.topbar-location{gap:3px;font-size:14px}.topbar-actions{gap:6px}.global-search{gap:5px;width:clamp(111px,43vw,220px);padding:0 8px}.global-search input{font-size:13px}.avatar{width:32px;height:32px}.hero{background-image:linear-gradient(90deg,#f3e7d0 4%,#f3e7d0f2 42%,#f3e7d08c 78%),url(/art/hero.webp);background-position:50%,67%;min-height:310px}.hero-content{padding:22px 17px}.hero h1{font-size:clamp(46px,11vw,55px)}.hero .eyebrow{letter-spacing:.04em}.hero-description{color:#344530;max-width:265px}.hero-break{display:none}.hero-actions{margin-top:16px}.section-head{align-items:flex-start;gap:7px}.section-head h2{font-size:25px}.section-head p{font-size:14px}.case-grid,.investigation-grid{grid-template-columns:1fr}.scene{grid-template-columns:1fr;gap:13px}.scene-art{min-height:110px}.case-cover{min-height:145px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.article-image{height:125px}.article-body{padding:10px 11px 14px}.article-body h3{font-size:17px}.article-body .card-description{font-size:14px}.stats-grid{gap:7px}.stat{padding:11px 8px}.stat>strong{font-size:22px}}@media (max-width:359px){.topbar-location>span{display:none}.global-search{width:min(64vw,220px)}.article-grid{grid-template-columns:1fr}.shortcut{gap:7px;padding:8px}.shortcut-icon{width:34px;height:34px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
