/* 知识书架：以书为中心。书封负责辨认，留白负责秩序，粘土色负责动作。 */
:root{--paper:#fffdf7;--paper-strong:#fff;--paper-soft:#f5f1ea;--ink:#151b1e;--ink-soft:#3e4545;--muted:#686e6b;--faint:#8c908b;--line:#e8e4dc;--line-strong:#cdc8bd;--clay:#ce7b51;--clay-deep:#993c1d;--clay-pale:#fdf6f1;--mist:#e8f0ed;--font-body:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--font-display:"Iowan Old Style","Songti SC","STSong",serif;--ease:cubic-bezier(.22,1,.36,1);font-synthesis:none;color-scheme:light}
html[data-theme="dark"]{--paper:#151411;--paper-strong:#1d1c18;--paper-soft:#24231f;--ink:#f0ede4;--ink-soft:#d5d0c5;--muted:#b5b0a5;--faint:#8d887e;--line:#36342c;--line-strong:#605b50;--clay:#e6a47c;--clay-deep:#ffc29e;--clay-pale:#2f241d;--mist:#262f2b;color-scheme:dark}
*{box-sizing:border-box}html{background:var(--paper);color:var(--ink);scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);font:14px/1.6 var(--font-body);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--clay);outline-offset:4px}[hidden]{display:none!important}.shelf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shelf-topbar{width:min(1240px,calc(100% - 96px));height:88px;display:flex;align-items:center;gap:14px;margin:auto}.shelf-brand{display:inline-flex;gap:10px;align-items:center;font-size:15px;letter-spacing:.03em;font-weight:600}.shelf-brand-mark{display:block;flex:none;width:30px;height:34px;overflow:visible}.shelf-brand-cover{fill:var(--paper);stroke:var(--ink);stroke-width:2.6}.shelf-brand-spine{fill:none;stroke:var(--line-strong);stroke-width:2.4}.shelf-brand-glyph{fill:var(--ink)}.shelf-topbar-actions{display:flex;align-items:center;gap:16px;margin-left:auto}.shelf-new-book{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border:0;border-radius:24px;background:var(--ink);color:var(--paper);font-size:13px;font-weight:600;transition:transform .22s var(--ease),opacity .2s}.shelf-new-book:hover{transform:translateY(-2px)}.shelf-new-book:active{transform:scale(.96)}.shelf-new-book>span{font-size:20px;font-weight:400;line-height:1}.shelf-quiet-button{border:0;padding:8px 0;background:none;color:var(--muted);font-size:12px}.shelf-quiet-button:hover{color:var(--ink)}.shelf-theme-toggle{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:50%;background:none;color:var(--muted);font-size:15px}.shelf-theme-toggle:hover{color:var(--ink);background:var(--paper-soft)}.shelf-theme-toggle [data-theme-text]{display:none}
.shelf-home{width:min(1144px,calc(100% - 128px));margin:30px auto 80px;min-height:calc(100dvh - 270px)}.shelf-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.shelf-eyebrow{font-size:12px;color:var(--muted);letter-spacing:.12em;margin-bottom:9px}.shelf-library-heading h1{font:500 42px/1.15 var(--font-display);letter-spacing:-.045em}.shelf-library-heading h1>span{color:var(--clay)}.shelf-library-count{color:var(--faint);font-size:12px;padding-bottom:3px}
.shelf-resume{display:flex;align-items:center;gap:22px;margin:0 0 24px;padding:15px 23px;border-radius:12px;background:var(--paper-soft);transition:transform .25s var(--ease)}.shelf-resume:hover{transform:translateY(-2px)}.shelf-resume-spine{display:block;width:33px;height:46px;flex-shrink:0;background:var(--resume-paper,var(--clay-pale));border:1px solid rgba(21,27,30,.1);border-radius:1px 4px 4px 1px;box-shadow:inset 3px 0 0 rgba(21,27,30,.1),3px 4px 7px rgba(21,27,30,.06);transform:rotate(-6deg)}.shelf-resume-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.shelf-resume-copy small{font-size:11px;letter-spacing:.03em;color:var(--muted)}.shelf-resume-copy strong{font-size:15px;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.shelf-resume-action{margin-left:auto;white-space:nowrap;color:var(--clay-deep);font-size:12px}.shelf-resume-action span{display:inline-block;margin-left:14px;transition:transform .25s var(--ease)}.shelf-resume:hover .shelf-resume-action span{transform:translateX(4px)}
.shelf-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 20px;border-bottom:1px solid var(--line);margin-bottom:28px}.shelf-catalog-tabs{display:flex;align-items:center;gap:23px;white-space:nowrap}.shelf-catalog-tabs button{position:relative;border:0;background:none;padding:7px 0;color:var(--muted);font-size:13px}.shelf-catalog-tabs button[aria-pressed="true"]{color:var(--ink);font-weight:600}.shelf-catalog-tabs button[aria-pressed="true"]::after{content:"";position:absolute;bottom:-21px;left:0;right:0;height:2px;border-radius:2px;background:var(--ink)}.shelf-catalog-tools{display:flex;align-items:center;gap:18px}.shelf-search{display:flex;align-items:center;gap:8px;background:var(--paper-soft);border-radius:9px;padding:8px 11px;width:260px;color:var(--muted)}.shelf-search:focus-within{outline:2px solid var(--clay);outline-offset:2px}.shelf-search svg{width:16px;height:16px;flex-shrink:0}.shelf-search input{background:none;border:0;outline:none!important;color:var(--ink);width:100%;min-width:0;font-size:12px;padding:0;line-height:20px}.shelf-search input::placeholder{color:var(--muted)}.shelf-search kbd{font:10px var(--font-body);white-space:nowrap;opacity:.6}.shelf-search:focus-within kbd{display:none}.shelf-sort select{color:var(--muted);background:none;border:0;font-size:12px;cursor:pointer;max-width:96px;padding:4px 14px 4px 0}.shelf-search-status{color:var(--muted);font-size:12px;margin:-16px 0 22px}
.shelf-project-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:42px 34px;align-items:start;min-height:150px}.shelf-book-item{position:relative;min-width:0;animation:shelf-book-arrive .4s var(--ease) both;animation-delay:calc(var(--book-order,0)*25ms)}.shelf-book-card{display:block;aspect-ratio: .73;position:relative;border-radius:2px 8px 8px 2px;color:var(--cover-ink,#151b1e);background:var(--cover-paper,#f5f1ea);box-shadow:1px 2px 3px rgba(21,27,30,.05),4px 9px 13px -9px rgba(21,27,30,.3);transform-origin:left center;transition:transform .38s var(--ease);overflow:hidden}.shelf-book-card::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(21,27,30,.12),rgba(255,255,255,.3) 2px,transparent 6px,rgba(21,27,30,.035) 9px,transparent 12px);pointer-events:none}.shelf-book-card::after{content:"";position:absolute;inset:1px 1px 1px 10px;border:1px solid rgba(21,27,30,.07);border-radius:0 7px 7px 0;pointer-events:none}.shelf-book-card:hover,.shelf-book-card:focus-visible{transform:translateY(-7px) rotate(-1deg);box-shadow:2px 3px 4px rgba(21,27,30,.04),7px 18px 22px -14px rgba(21,27,30,.38)}.shelf-book-card:active{transform:translateY(-3px) scale(.985)}.shelf-book-card.is-opening{transform:translateY(-8px) scale(1.035)}.shelf-book-card-content{position:absolute;inset:23px 19px 21px 26px;display:flex;flex-direction:column}.shelf-book-edition{font-size:8px;letter-spacing:.15em;opacity:.64;font-weight:550}.shelf-book-symbol{font:500 53px/1.15 var(--font-display);opacity:.24;margin-top:18px;letter-spacing:-.05em}.shelf-book-card-content strong{font:550 20px/1.4 var(--font-display);letter-spacing:.02em;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:auto}.shelf-cover-rule{width:24px;height:1px;margin-top:15px;background:currentColor;opacity:.38}.shelf-book-item:nth-child(4n+2) .shelf-book-symbol{align-self:flex-end;font-style:italic}.shelf-book-item:nth-child(4n+3) .shelf-book-symbol{align-self:center;font-size:61px}.shelf-book-item:nth-child(4n) .shelf-book-edition{border-bottom:1px solid rgba(21,27,30,.15);padding-bottom:13px}.shelf-book-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:11px;line-height:1.4}.shelf-book-preview{min-height:32px;padding:5px 0 5px 8px;border:0;background:none;color:var(--muted);font-size:11px;flex-shrink:0}.shelf-book-preview:hover{color:var(--clay-deep)}.shelf-book-note{display:block;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5}.shelf-book-state{display:block;color:var(--clay-deep);font-size:11px;margin-top:7px}.shelf-book-card.is-generating::after{animation:shelf-generating-cover 1.8s ease-in-out infinite;background:rgba(255,255,255,.2)}.shelf-book-card[aria-disabled="true"]{cursor:default}.shelf-card-retry{border:0;background:none;color:var(--clay-deep);font-size:11px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}.shelf-card-error{color:var(--clay-deep);font-size:11px;margin-top:5px}
.shelf-project-list.is-searching{display:flex;flex-direction:column;gap:0}.shelf-search-result{display:flex;align-items:center;gap:18px;width:100%;padding:17px 4px;border-bottom:1px solid var(--line)}.shelf-search-result:hover{background:var(--paper-soft)}.shelf-result-cover{width:37px;height:49px;flex-shrink:0;border-radius:1px 4px 4px 1px;background:var(--cover-paper,var(--paper-soft));box-shadow:inset 4px 0 0 rgba(21,27,30,.1),2px 3px 6px rgba(21,27,30,.08);display:grid;place-items:center;color:var(--cover-ink,var(--ink));font:18px var(--font-display)}.shelf-result-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.shelf-result-copy strong{font-size:14px;font-weight:550}.shelf-result-copy small{font-size:11px;color:var(--muted)}.shelf-result-arrow{margin-left:auto;color:var(--faint);font-size:18px;padding-right:10px}.shelf-empty{font-size:13px;color:var(--muted);grid-column:1/-1;padding:32px 0}.shelf-empty-state{text-align:center;padding:28px 0 54px}.shelf-empty-book{position:relative;width:128px;height:171px;margin:0 auto 30px;padding:24px 18px;text-align:left;border:1px solid var(--line-strong);border-radius:2px 8px 8px 2px;background:var(--paper-soft);box-shadow:inset 7px 0 0 rgba(21,27,30,.035),5px 10px 16px -13px rgba(21,27,30,.3);transform:rotate(-7deg);font:22px/1.5 var(--font-display);color:var(--muted)}.shelf-empty-book i{position:absolute;right:-14px;bottom:16px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font:24px var(--font-body);color:var(--paper);background:var(--ink);box-shadow:0 0 0 5px var(--paper)}.shelf-empty-state h2{font:25px var(--font-display);margin-bottom:9px}.shelf-empty-state p{font-size:13px;color:var(--muted);margin-bottom:23px}.shelf-footer{width:min(1144px,calc(100% - 128px));margin:0 auto 26px;display:flex;justify-content:space-between;gap:20px;color:var(--faint);font-size:10px;letter-spacing:.03em}.shelf-footer-dot{padding:0 8px}
.shelf-import-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 42px);padding:30px 34px 23px;margin:auto;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 80px rgba(21,27,30,.16);overflow-y:auto}.shelf-import-dialog[open]{animation:shelf-launcher-arrive .26s var(--ease)}.shelf-import-dialog::backdrop{background:rgba(21,27,30,.25)}.shelf-import-heading{display:flex;align-items:flex-start;justify-content:space-between}.shelf-import-heading p{color:var(--clay-deep);font-size:11px;letter-spacing:.08em;margin-bottom:7px}.shelf-import-heading h2{font:30px/1.35 var(--font-display);letter-spacing:-.03em}.shelf-dialog-close{background:none;border:0;color:var(--muted);font-size:24px;padding:0 2px;line-height:1.2}.shelf-import-intro{font-size:12px;color:var(--muted);margin:12px 0 23px;line-height:1.8}.shelf-launcher{padding:0;margin:0;background:none}.shelf-launcher:focus-within{isolation:isolate}.shelf-source-tabs{display:flex;gap:5px;background:var(--paper-soft);border-radius:9px;padding:4px;margin-bottom:18px}.shelf-source-tabs button{flex:1;border:0;border-radius:6px;padding:8px 7px;background:none;color:var(--muted);font-size:12px}.shelf-source-tabs button[aria-pressed="true"]{background:var(--paper-strong);box-shadow:0 1px 3px rgba(21,27,30,.08);color:var(--ink);font-weight:600}.shelf-source-panel{margin-bottom:19px}.shelf-folder-control{display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative;min-height:87px;padding:18px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--paper-soft);cursor:pointer}.shelf-folder-control:focus-within{outline:2px solid var(--clay);outline-offset:3px}.shelf-folder-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.shelf-folder-control strong{display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere}.shelf-folder-control small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.shelf-source-action{font-size:11px;white-space:nowrap;color:var(--clay-deep)}.shelf-field-label{display:block;margin-bottom:7px;font-size:11px;color:var(--muted)}.shelf-import-name,.shelf-repo-input{width:100%;height:43px;border:1px solid var(--line-strong);border-radius:8px;background:var(--paper-strong);color:var(--ink);font-size:13px;padding:0 12px;outline:none}.shelf-import-name:focus,.shelf-repo-input:focus{border-color:var(--clay);box-shadow:0 0 0 3px var(--clay-pale)}.shelf-field-help{font-size:10px;color:var(--muted);margin-top:6px}.shelf-import-summary{color:var(--muted);font-size:11px;line-height:1.7;margin-top:12px}.shelf-import-summary:empty{display:none}.shelf-import-submit{width:100%;height:45px;display:flex;align-items:center;justify-content:center;gap:13px;padding:0 16px;margin-top:19px;border:0;border-radius:9px;background:#993c1d;color:#fffdf7;font-size:13px;font-weight:600;transition:transform .2s var(--ease),opacity .2s}.shelf-import-submit:hover{transform:translateY(-1px)}.shelf-import-submit:active{transform:scale(.985)}.shelf-import-submit:disabled{opacity:.58;transform:none}.shelf-submit-arrow{font-size:18px}.shelf-import-status{margin-top:12px;font-size:11px;line-height:1.7;color:var(--muted)}.shelf-import-status:empty{display:none}.shelf-import-status[data-state="error"]{color:var(--clay-deep)}.shelf-import-secondary{display:flex;justify-content:center;gap:22px;margin-top:10px}.shelf-import-secondary button{border:0;padding:3px;background:none;color:var(--clay-deep);font-size:11px}.shelf-local-note{font-size:9px;text-align:center;color:var(--muted);margin-top:15px}.shelf-reading-journey{display:flex;justify-content:center;gap:27px;margin:24px 0 0;padding:15px 0 0;list-style:none;border-top:1px solid var(--line);font-size:10px;color:var(--faint)}.shelf-reading-journey li+li::before{content:"→";margin-left:-18px;margin-right:9px;color:var(--line-strong)}.shelf-generating{margin-top:16px}.shelf-generating-bar{height:3px;overflow:hidden;border-radius:3px;background:var(--paper-soft)}.shelf-generating-bar i{display:block;height:100%;width:40%;border-radius:3px;background:var(--clay);animation:shelf-generation-progress 1.6s ease-in-out infinite}.shelf-generating-stage{margin-top:9px;text-align:center;font-size:11px;color:var(--muted)}
.shelf-page::before{content:"";position:fixed;inset:0;z-index:200;background:var(--paper);pointer-events:none;opacity:0}.shelf-page.shelf-is-opening-book::before{animation:shelf-open-book .22s var(--ease) forwards}
@keyframes shelf-launcher-arrive{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shelf-book-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes shelf-open-book{to{opacity:1}}@keyframes shelf-generation-progress{from{transform:translateX(-100%)}to{transform:translateX(350%)}}@keyframes shelf-generating-cover{50%{opacity:.3}}
@media(min-width:1400px){.shelf-project-list{gap:44px 44px}.shelf-book-card-content strong{font-size:22px}}
@media(max-width:1050px){.shelf-home,.shelf-footer{width:calc(100% - 80px)}.shelf-topbar{width:calc(100% - 64px)}.shelf-project-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:35px 27px}.shelf-book-card-content{inset:20px 17px 19px 24px}.shelf-book-card-content strong{font-size:18px}.shelf-book-symbol{font-size:44px}}
@media(max-width:760px){.shelf-home{margin-top:30px}.shelf-home,.shelf-footer{width:calc(100% - 44px)}.shelf-topbar{width:calc(100% - 36px);height:73px;gap:10px}.shelf-topbar-actions{gap:12px}.shelf-brand{font-size:13px;gap:7px}.shelf-brand-mark{width:25px;height:28px}.shelf-new-book{padding:8px 13px;font-size:11px}.shelf-quiet-button{font-size:11px}.shelf-library-heading h1{font-size:35px}.shelf-library-count{font-size:10px}.shelf-resume{padding:16px 18px;gap:17px;margin-bottom:25px}.shelf-resume-copy strong{font-size:13px}.shelf-catalog-toolbar{flex-wrap:wrap;gap:17px;margin-bottom:25px;padding-bottom:15px}.shelf-catalog-tabs{order:2;gap:21px}.shelf-catalog-tabs button[aria-pressed=true]::after{bottom:-16px}.shelf-catalog-tools{width:100%;gap:13px}.shelf-search{width:auto;flex:1}.shelf-sort select{font-size:11px}.shelf-project-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 23px}.shelf-book-card-content{inset:19px 15px 17px 22px}.shelf-book-card-content strong{font-size:18px}.shelf-book-symbol{font-size:43px;margin-top:12px}.shelf-book-item:nth-child(4n+3) .shelf-book-symbol{font-size:47px}.shelf-book-edition{font-size:7px;letter-spacing:.08em}.shelf-resume-action{font-size:11px}.shelf-resume-action span{margin-left:7px}}
@media(max-width:480px){.shelf-topbar-actions{gap:11px}.shelf-topbar .shelf-quiet-button{font-size:0}.shelf-topbar .shelf-quiet-button::after{content:"设置";font-size:11px}.shelf-topbar .shelf-new-book{padding:8px 10px}.shelf-library-heading{margin-bottom:25px}.shelf-library-count{max-width:105px;text-align:right}.shelf-eyebrow{font-size:10px}.shelf-project-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 25px}.shelf-book-card-content{inset:20px 18px 20px 23px}.shelf-book-card-content strong{font-size:20px}.shelf-book-symbol{font-size:48px}.shelf-book-edition{font-size:8px}.shelf-footer{font-size:9px;flex-direction:column;gap:6px}.shelf-import-dialog{padding:26px 23px 20px}.shelf-import-heading h2{font-size:28px}.shelf-resume-action{font-size:11px}.shelf-resume-action span{display:none}.shelf-resume-copy small{font-size:10px}.shelf-search kbd{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.shelf-book-card:hover{transform:none}}

.shelf-load-more{grid-column:1/-1;justify-self:center;align-self:center;border:1px solid var(--line-strong);border-radius:24px;padding:9px 22px;color:var(--muted);background:none;font-size:12px;margin:12px auto}.shelf-load-more:hover{color:var(--ink);background:var(--paper-soft)}.shelf-search-result.is-pending{cursor:default}.shelf-search-pending-actions{margin-left:auto;display:flex;align-items:center;gap:14px}
