:root{color-scheme:light;--ink:#24352f;--muted:#69766f;--line:#e3e8e2;--paper:#f6f7f3;--green:#245b49;--green-dark:#173f36;--green-soft:#eaf2ec;--rust:#a55d44;--shadow:0 5px 22px #203b2910;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.4;cursor:not-allowed}button,a{touch-action:manipulation}a{color:var(--green);text-decoration:none}input,select{min-width:0}h1,h2,h3,p{margin-top:0}h2{font-size:21px;line-height:1.4;letter-spacing:-.4px}h3{font-size:18px;line-height:1.4}svg{width:21px;height:21px;display:block;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[hidden]{display:none!important}:focus-visible{outline:3px solid #c39f55;outline-offset:3px;border-radius:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-90px;left:20px;z-index:2000;background:#fff;padding:12px}.skip-link:focus{top:8px}.mobile-only,.mobile-nav{display:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:31px 18px 20px;z-index:30;overflow:auto}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);padding:0 5px}.seal{width:43px;height:47px;display:grid;place-items:center;background:var(--rust);color:#fff;font-family:"STKaiti","KaiTi",serif;font-size:29px;border-radius:6px;box-shadow:inset 0 0 0 3px #ffffff30;border:1px solid #864a35}.brand strong{font-size:17px;letter-spacing:.5px;white-space:nowrap}.brand small{display:block;font-size:11px;color:var(--muted);letter-spacing:1px;margin-top:3px}.nav-caption{font-size:11px;letter-spacing:1.5px;color:#89948c;margin:44px 17px 15px}.main-nav{display:grid;gap:7px}.nav-item{display:flex;gap:14px;align-items:center;padding:13px 18px;border-radius:8px;color:#68776d;font-size:15px}.nav-item.active{color:var(--green);background:var(--green-soft);font-weight:700}.nav-item.active::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}.nav-item:hover{background:#f2f5ef}.sidebar-note{margin:auto 16px;padding-top:40px;color:#89948c}.tiny-label{font-size:10px;letter-spacing:1px}.sidebar-note p{font-family:"STSong","SimSun",serif;font-size:19px;line-height:1.9;color:#53695b;margin:12px 0}.sidebar-line{display:block;width:35px;height:1px;background:#c6d0c5;margin:20px 0}.sidebar-note small{font-size:11px}.sidebar-bottom{margin:32px 12px 0;border-top:1px solid var(--line);padding-top:18px}.index-state{display:flex;align-items:center;gap:8px;color:var(--green);font-size:11px;margin-bottom:12px}.index-state i,.stats-status i{width:7px;height:7px;border-radius:50%;background:#4a8a67;display:inline-block;flex-shrink:0}.sidebar-bottom .text-button{font-size:11px;padding:4px 0}.sidebar-bottom svg{width:16px;height:16px}
.app-shell{margin-left:226px}.topbar{height:78px;border-bottom:1px solid var(--line);background:#ffffffb3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 42px}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px;color:#8b958d}.breadcrumb strong{color:var(--ink);font-weight:500}.topbar-actions{display:flex;gap:22px;align-items:center}.local-tag{color:#7d8981;font-size:11px;padding:4px 10px;border:1px solid var(--line);border-radius:5px}.text-button,.text-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--green);padding:4px 0}.text-button:hover,.text-link:hover{text-decoration:underline}.text-button svg{width:17px;height:17px}main{max-width:1510px;margin:0 auto;padding:32px 42px 0;min-height:calc(100vh - 78px)}.view{display:none;min-height:calc(100vh - 220px)}.view.active{display:block}.eyebrow{font-size:11px;color:var(--rust);font-weight:600;letter-spacing:1.7px;margin-bottom:8px}
.hero{position:relative;overflow:hidden;border-radius:14px;background:var(--green-dark);color:#fff;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);min-height:345px}.hero-content{padding:32px 38px 30px;z-index:1;position:relative}.hero-label{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:2px;color:#b7cdba}.hero-label>span{width:20px;height:1px;background:#b9a77e}.hero h1{font-family:"STSong","SimSun",serif;font-size:42px;line-height:1.3;letter-spacing:4px;font-weight:500;margin:14px 0 12px}.hero p{font-size:12px;color:#bbd0c3;line-height:1.9;margin-bottom:21px}.hero-search{display:flex;align-items:center;gap:10px;border-radius:7px;background:#fff;padding:6px 6px 6px 14px;box-shadow:0 5px 20px #0c231520;max-width:660px;color:var(--green);height:54px}.hero-search input{width:0;flex:1;border:0;outline:0;color:var(--ink);background:none;font-size:13px}.hero-search input::placeholder{color:#8c9690}.hero-search button{height:42px;display:flex;align-items:center;gap:13px;padding:0 16px;border-radius:5px;background:#c5ab79;color:#24382c;font-size:13px;font-weight:700;white-space:nowrap}.hero-search button:hover{background:#dcc391}.hero-search button svg{width:17px}.search-examples{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;margin-top:12px;color:#9eb8a7}.search-examples button{padding:1px 5px;color:#e2e9dd;font-size:11px}.search-examples button:hover{background:#ffffff19;border-radius:4px}.search-examples .hero-help{margin-left:auto;color:#d5c69e}.hero-art{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden}.art-ring{border:1px solid #c7d9b414;border-radius:50%;position:absolute;width:320px;height:320px;transform:translate(30px,4px)}.ring-two{width:410px;height:410px}.book-art{position:relative;width:159px;height:236px;background:#d5cdb0;transform:rotate(9deg);border-radius:2px 7px 7px 2px;box-shadow:-12px 14px 0 #0c2c2470,12px 19px 28px #08271d85,inset 0 0 55px #ae9b66;outline:1px solid #daceab;border:6px solid #ddcfaa;border-left:8px solid #a89468}.book-spine{position:absolute;inset:0 auto 0 4px;width:2px;background:#b19b69;box-shadow:4px 0 0 #bead87}.book-title{position:absolute;right:17px;top:20px;writing-mode:vertical-rl;border:1px solid #8b7d54;padding:10px 7px;color:#284b3a;font-family:"STKaiti","KaiTi","SimSun",serif;font-size:20px;letter-spacing:3px;background:#ebe1c0}.book-subtitle{position:absolute;left:19px;top:25px;writing-mode:vertical-rl;font-size:10px;letter-spacing:3px;color:#736b4e;font-family:serif}.book-stamp{position:absolute;left:20px;bottom:20px;border:1px solid #a15740;color:#a15740;padding:2px;writing-mode:vertical-rl;font-family:serif;font-size:14px}.art-caption{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);font-family:serif;letter-spacing:4px;color:#adbd9f;font-size:11px;white-space:nowrap}
.stats-strip{display:grid;grid-template-columns:.8fr 1.1fr 1.2fr 1.1fr;background:#fff;border:1px solid var(--line);border-radius:10px;margin:18px 0 32px;padding:22px 12px}.stats-strip>div{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 12px;border-right:1px solid var(--line)}.stats-strip>div:last-child{border:0}.stats-strip svg{width:26px;height:26px;color:#9aa99b}.stats-strip p{display:grid;gap:2px;margin:0}.stats-strip strong{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4;letter-spacing:-.5px}.stats-strip p>span{font-size:11px;color:var(--muted)}.stats-status strong{font-size:13px;color:var(--green);letter-spacing:0}.stats-status i{align-self:flex-start;margin-top:7px}.heading-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px}.heading-row h2{margin:0}.heading-row .eyebrow{margin-bottom:6px}.heading-note,.subtle{font-size:11px;color:#88938c}.entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.entry-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;padding:23px 26px 20px;transition:transform .18s,border-color .18s;color:var(--ink)}.entry-card:hover{transform:translateY(-3px);border-color:#a7bcaa;box-shadow:var(--shadow)}.entry-icon{width:43px;height:43px;background:#edf3ec;border-radius:10px;color:var(--green)}.entry-icon svg{width:23px;height:23px}.entry-icon.ochre{background:#f5f0e4;color:#a58338}.entry-icon.terracotta{background:#f6eee9;color:var(--rust)}.step-num{position:absolute;right:24px;top:21px;font-family:Georgia,serif;font-size:34px;color:#e7ebe5;font-style:italic}.entry-card h3{margin:17px 0 8px;font-size:19px}.entry-card p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:17px}.entry-card>strong{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--green);border-top:1px solid #edf0e9;padding-top:13px}.entry-card>strong svg{width:17px;height:17px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;min-width:0}.home-lower{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin-bottom:21px}.home-lower h2{font-size:17px}.how-steps{list-style:none;margin:23px 0 0;padding:0;display:grid;gap:16px}.how-steps li{display:flex;gap:13px;align-items:flex-start}.how-steps li>span{width:27px;height:27px;display:grid;place-items:center;flex-shrink:0;border:1px solid #dce5d9;color:#5c795c;border-radius:50%;font-family:Georgia,serif;font-size:12px}.how-steps strong{font-size:13px}.how-steps p{font-size:11px;margin:3px 0 0;color:var(--muted)}.lineage-preview{background:#f0f3eb}.lineage-preview>p:not(.eyebrow){font-size:12px;color:var(--muted);margin-bottom:14px}.mini-chain{display:flex;gap:22px;align-items:center;margin:28px 0 20px}.mini-chain>span{font-family:serif;font-size:25px;color:#355740}.mini-chain small{display:block;font-family:"Microsoft YaHei",sans-serif;font-size:10px;color:#81907e;margin-top:4px}.mini-chain .chain-dots{color:#a4b69c;letter-spacing:5px;flex:1;text-align:center}.chip-list{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--line);border-radius:5px;padding:6px 12px;font-size:12px;background:#f9faf7;color:var(--green)}.chip:hover{border-color:var(--green)}.small-empty{font-size:12px;color:var(--muted);padding:9px 0;line-height:1.9;margin:0}.recent-pages{margin-top:13px}.saved-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #edf0e9;padding:10px 0}.saved-row:last-child{border-bottom:0}.saved-link{flex:1;text-align:left;min-width:0;font-size:13px;color:var(--green)}.saved-row small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.remove-save{font-size:19px;color:#869084;padding:3px 9px}.data-status{font-size:12px;margin:26px 0 18px;border-top:1px solid var(--line)}.data-status>summary{cursor:pointer;padding:17px 0;display:flex;gap:8px;align-items:center;color:var(--muted);list-style:none}.data-status>summary>span:last-child{margin-left:auto;font-size:11px}.data-status>div{padding:0 20px 16px;color:var(--muted);line-height:1.9}.data-status p{margin-bottom:10px}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:22px 0 28px;margin-top:32px;color:#8b958b;font-size:10px}
.page-heading{padding:6px 0 27px}.page-heading h1{font-family:"STSong","SimSun",serif;font-weight:600;font-size:31px;letter-spacing:1px;margin-bottom:10px;line-height:1.4}.page-heading>p:last-child{font-size:13px;color:var(--muted);margin:0}.compact-heading{padding-bottom:20px}.search-controls{padding:17px 20px}.searchbar{display:flex;align-items:center;gap:12px;min-height:46px;border-bottom:1px solid var(--line);padding-bottom:14px}.searchbar>span{color:#85988a}.searchbar input{flex:1;width:0;border:0;outline:0;background:none;padding:9px 0;font-size:16px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 21px;background:var(--green);color:#fff;border:1px solid var(--green);border-radius:6px;font-size:13px;white-space:nowrap}.primary-button:hover{background:var(--green-dark)}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d4dfd2;border-radius:5px;padding:8px 12px;font-size:12px;color:var(--green);background:#fff}.secondary-button:hover{background:var(--green-soft)}.filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:14px;font-size:12px}.filter-bar>label{color:var(--muted)}select{padding:7px 30px 7px 10px;border:1px solid #dce3d8;border-radius:5px;background:#fff;color:var(--ink);max-width:100%;font-size:12px}.filter-tag{background:var(--green-soft);padding:3px 7px;border-radius:4px;color:var(--green)}#reset-search{margin-left:auto}.search-note{padding:15px 2px;font-size:12px;color:var(--muted);line-height:1.8}.result-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.85fr);gap:22px;align-items:start}.results{min-width:0}.result-tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:10px}.result-tabs button{font-size:12px;padding:7px 10px;border-radius:5px;color:var(--muted)}.result-tabs button.active{color:var(--green);background:#e7eee4;font-weight:700}.result-tabs small{font-size:10px;margin-left:6px;opacity:.8}.person-row{position:relative;display:block;width:100%;padding:17px 19px;margin-bottom:10px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff}.person-row:hover,.person-row.selected{border-color:#8faa91;background:#fcfdf9;box-shadow:0 2px 10px #23452e06}.person-row.selected{box-shadow:inset 3px 0 var(--green)}.person-line{display:flex;gap:10px;align-items:center}.person-line>strong{font-size:20px;font-weight:600;color:var(--ink)}.record-tag{display:inline-block;background:#f7f0e2;color:#97722f;font-size:10px;padding:1px 6px;border-radius:3px;vertical-align:middle}.person-line .row-arrow{margin-left:auto;color:#8da18c}.person-meta{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}.person-meta b{color:#526c57;font-weight:500}.person-source{display:block;font-size:10px;color:#84907f;margin-top:9px}.person-snippet{font-size:12px;line-height:1.8;color:#818b7d;margin:9px 0 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}mark{background:#f0e6c8;color:#625121;padding:0 1px;border-radius:2px}.page-row{display:block;text-align:left;width:100%;padding:17px;margin-bottom:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.page-row strong{font-size:14px;color:var(--green)}.page-row small{display:block;color:var(--muted);font-size:10px;margin:6px 0}.snippet{font-size:12px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}.result-pager{display:flex;justify-content:space-between;align-items:center;padding:9px 0 17px;font-size:11px;color:var(--muted);gap:10px}.result-pager button{border:1px solid var(--line);border-radius:5px;background:#fff;padding:8px 12px;font-size:12px}.result-footnote{font-size:11px;color:#8c9386;line-height:1.8;margin:15px 0}.detail{background:#fff;border:1px solid var(--line);border-radius:10px;position:sticky;top:20px;min-width:0;max-height:calc(100vh - 40px);overflow:auto}.detail-empty{padding:35px 26px;min-height:330px;text-align:center;display:grid;align-content:center;justify-items:center}.detail-empty [data-icon]{width:54px;height:54px;border-radius:50%;background:var(--green-soft);color:#78987e;margin-bottom:16px}.detail-empty h2{font-size:18px}.detail-empty p{font-size:12px;line-height:1.9;color:var(--muted);max-width:260px;margin:0}.detail-top{padding:15px 21px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:var(--muted);background:#fafbf7;position:sticky;top:0;z-index:2}.icon-button{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;font-size:24px;border-radius:5px;color:var(--muted)}.icon-button:hover{background:#e9eee4}.detail-content{padding:21px}.detail-heading{padding-bottom:17px;border-bottom:1px solid var(--line)}.detail-heading h2{font-size:29px;margin-bottom:5px}.detail-heading p{font-size:12px;color:var(--muted);margin:0}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.detail-actions .primary-button,.detail-actions .secondary-button{font-size:12px;padding:9px 12px}.review-note{font-size:11px;line-height:1.9;color:#91703a;background:#faf6eb;border:1px solid #f0e8d6;border-radius:6px;padding:10px 13px;margin:17px 0}.detail-field{padding-top:18px}.detail-field>span{font-size:11px;color:#8a9586}.detail-field>p{font-size:14px;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere}.bio-text{white-space:pre-wrap}.inline-link{border:1px solid var(--line);border-radius:4px;color:var(--green);background:#f7faf4;padding:3px 9px;font-size:12px;margin:3px 5px 3px 0}.source-button{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--green);font-size:11px;margin:4px 3px 0 0;max-width:100%;text-align:left;overflow-wrap:anywhere}.source-button:hover{background:var(--green-soft);border-color:#acbda7}.source-button svg{width:14px;height:14px}.source-meta{font-size:10px;color:var(--muted);margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.source-meta summary{cursor:pointer}.source-meta p{overflow-wrap:anywhere;line-height:1.8;margin:8px 0}.empty-state{padding:42px 23px;text-align:center;border:1px dashed #cdd9ca;border-radius:10px;background:#f9fbf6;min-height:270px;display:grid;align-content:center;justify-items:center}.empty-state>[data-icon]{color:#8da288;background:#eaf0e4;border-radius:50%;width:54px;height:54px;margin-bottom:14px}.empty-state h2{font-size:19px;margin:0 0 10px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.9;margin:0 0 16px}.empty-state .chip-list{justify-content:center}.loading{padding:30px;color:var(--muted);font-size:13px}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #d6dfd0;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin-right:9px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}
.catalog-controls{padding:18px 22px;margin-bottom:22px}.room-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.room-filters button{padding:8px 13px;font-size:12px;border-radius:5px;background:#f5f7f1;color:var(--muted)}.room-filters button.active{background:var(--green);color:#fff}.catalog-filter{display:flex;gap:11px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:3px 13px;background:#fafbf8}.catalog-filter>span{color:#8c9d88}.catalog-filter input{width:100%;padding:9px 0;border:0;outline:0;background:none;font-size:13px}.catalog-toolbar{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding-top:14px;align-items:center}.catalog-group{border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:12px;overflow:hidden}.catalog-group summary{display:flex;gap:13px;align-items:center;list-style:none;padding:19px 22px;cursor:pointer}.catalog-group summary::after{content:"＋";margin-left:auto;color:#8c9d86}.catalog-group[open] summary::after{content:"−"}.catalog-group summary>strong{font-size:16px}.catalog-group summary>span:not(.volume-tile){font-size:11px;color:var(--muted)}.volume-tile{width:35px;height:42px;border:1px solid #c5d0bf;border-left:4px solid #6e8a6d;border-radius:2px;display:flex;align-items:center;justify-content:center;color:var(--green);font-family:serif;font-size:12px;background:#f1f4eb;flex-shrink:0}.catalog-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:17px 22px;border-top:1px solid #edf0e9}.catalog-row strong{display:block;font-size:15px;font-weight:500}.catalog-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.catalog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-shrink:0}.catalog-actions button{font-size:11px}.catalog-actions .source-button{margin:0;padding:8px}.bottom-note{font-size:11px;color:var(--muted);line-height:1.9;margin-top:20px}.trunk-panel{margin-bottom:25px}.trunk-chain{display:flex;gap:23px;overflow-x:auto;padding:12px 4px 18px;scrollbar-color:#b3c3ad #f1f4ed;scrollbar-width:thin}.ancestor-card{position:relative;flex:0 0 114px;padding:17px 13px;background:#f8faf5;border:1px solid #dce5d5;border-radius:6px}.ancestor-card:not(:last-child)::after{content:"→";position:absolute;right:-20px;top:48px;color:#94aa8c;font-size:15px}.ancestor-card small{display:block;color:var(--muted);font-size:10px}.ancestor-card strong{display:block;font-size:21px;font-family:serif;margin:8px 0}.ancestor-card .source-button{font-size:10px;padding:4px 7px}.trunk-hint{font-size:11px;color:var(--muted);margin:8px 0 0}.room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.room-card{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.room-card-head{padding:22px;background:#edf3e8;border-bottom:1px solid var(--line)}.room-card:nth-child(2) .room-card-head{background:#f4f0e4}.room-card:nth-child(3) .room-card-head{background:#f4ede5}.room-card h3{font-size:21px;margin-bottom:4px}.room-card p{font-size:11px;color:var(--muted);margin:0 0 12px}.room-books{padding:10px 18px}.room-book{width:100%;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);text-align:left;font-size:12px}.room-book:last-child{border:0}.room-book span{font-size:10px;color:var(--muted)}.room-book:hover{color:var(--green)}.room-book svg{width:15px;height:15px}.framework-footnote{font-size:12px;color:var(--muted);line-height:1.9;margin:21px 0}.back-link{font-size:12px;color:var(--green);padding:0 0 14px}
.book-layout{display:grid;grid-template-columns:245px minmax(0,1fr);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;align-items:start}.book-picker{border-right:1px solid var(--line);min-width:0}.book-picker summary{list-style:none;padding:17px 14px;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);font-size:12px;pointer-events:none}.book-picker summary>span:last-child{margin-left:auto;font-size:10px;color:var(--muted)}.book-picker summary svg{width:17px;height:17px}.book-list{max-height:850px;overflow:auto}.book-row{width:100%;display:flex;align-items:center;gap:11px;padding:15px 13px;border-bottom:1px solid #edf0e9;text-align:left}.book-row.active{background:var(--green-soft);box-shadow:inset 3px 0 var(--green)}.book-row:hover{background:#f5f8f0}.book-number{font-family:serif;border:1px solid #becbb5;border-left:3px solid #809d74;background:#f1f5e8;min-width:33px;height:43px;display:grid;place-items:center;font-size:12px;color:#6a825e;border-radius:2px}.book-info strong{display:block;font-size:13px;font-weight:600}.book-info small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.book-row .chevron{margin-left:auto;color:#94a38c}.book-reader{min-width:0;background:#f1f3ec}.reader-bar{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:15px 20px;background:#fff;border-bottom:1px solid var(--line)}.reader-bar .eyebrow{font-size:10px;margin:0 0 3px;display:block}.reader-bar strong{font-size:15px}.reader-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 18px;background:#fafbf7;font-size:12px;border-bottom:1px solid var(--line)}.reader-controls button{display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 10px;border:1px solid #d6dfce;border-radius:5px;background:#fff;font-size:12px}.reader-controls button svg{width:14px;height:14px}.reader-controls input{width:62px;text-align:center;background:#fff;border:1px solid #d6dfce;border-radius:4px;padding:6px 3px;font-size:12px}.reader-controls label{margin-left:8px;color:var(--muted)}#reader-pages{color:var(--muted);font-size:11px}.reader-tools{display:flex;justify-content:space-between;gap:12px;padding:9px 18px;align-items:center;background:#f9faf5;font-size:11px}.reader-tools>div{display:flex;gap:4px}.reader-tools button{padding:4px 10px;border:1px solid #e1e6d8;border-radius:4px;background:#fff;font-size:12px}.reader-source-note{font-size:11px;line-height:1.8;padding:0 18px;margin:7px 0 9px;color:#7e8977;overflow-wrap:anywhere}.reader-source-note.estimated{color:#946e2e}.reader-stage{position:relative;min-height:300px;max-height:78vh;overflow:auto;padding:16px;overscroll-behavior:contain;background:#e7e9e0}.reader-stage>a{display:block;width:100%;min-width:0}.reader-stage img{display:block;width:100%;height:auto;box-shadow:0 3px 12px #1c301427}.image-message{padding:45px 12px;text-align:center;color:var(--muted);font-size:12px}.reader-placeholder{padding:90px 12px;text-align:center;color:var(--muted);font-size:12px}.reader-tip{display:flex;align-items:flex-start;gap:7px;padding:13px 18px;margin:0;color:#8a937f;font-size:10px;line-height:1.8}.reader-tip svg{width:15px;height:15px;margin-top:2px}
.error-banner{padding:17px;border-radius:7px;border:1px solid #e2c3b3;background:#fff1e9;color:#914c30;margin-bottom:20px;font-size:13px}.error-banner button{text-decoration:underline}dialog{padding:0;border:1px solid #dce2d5;border-radius:14px;max-width:680px;width:calc(100% - 32px);max-height:88dvh;color:var(--ink);box-shadow:0 25px 90px #09231640}dialog::backdrop{background:#11261e85;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:23px 26px;border-bottom:1px solid var(--line);background:#f8faf4}.dialog-heading h2{font-size:21px;margin:0}.help-content{padding:26px;overflow:auto;max-height:calc(88dvh - 186px)}.help-step{display:flex;gap:18px;margin-bottom:24px}.help-step>span{color:#b1c0a7;font-size:26px;font-family:Georgia,serif}.help-step h3{font-size:15px;margin:0 0 7px}.help-step p,.help-explain p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.help-explain{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.help-explain h3{font-size:15px;margin-bottom:12px}.help-explain p{margin-bottom:11px}.download-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.download-links a{font-size:11px;padding:8px 10px;border-radius:5px;background:#edf3e7}.export-label{font-size:11px;display:block;color:var(--muted);margin-top:16px}.export-controls{display:flex;gap:8px;align-items:center;margin-top:8px}.dialog-footer{padding:18px 26px;border-top:1px solid var(--line);background:#fafbf8;text-align:right}.toast{position:fixed;bottom:25px;left:calc(50% + 113px);transform:translateX(-50%);z-index:1500;background:#243f31;color:#fff;padding:12px 22px;box-shadow:0 5px 26px #0923162e;border-radius:7px;font-size:13px;max-width:calc(100vw - 30px)}
@media(min-width:1800px){main{padding-top:38px}.hero-content{padding:42px 45px 35px}.hero{min-height:375px}.hero h1{font-size:49px}.hero p{font-size:14px}.hero-search{height:59px}.hero-search button{height:45px}.hero-search input{font-size:15px}.entry-card{padding:27px 29px}.entry-card p{font-size:13px}.book-art{width:180px;height:260px}}
@media(max-width:1180px){.sidebar{width:198px;padding-left:12px;padding-right:12px}.brand{gap:8px}.brand strong{font-size:15px}.seal{width:36px;height:41px}.app-shell{margin-left:198px}main{padding:25px 26px 0}.topbar{padding:0 26px}.hero-content{padding:30px}.hero{grid-template-columns:minmax(0,1fr) 210px}.hero h1{font-size:36px}.hero-search button{gap:5px;padding:0 12px}.hero-search input{font-size:12px}.search-examples .hero-help{margin-left:0}.hero-art{padding-right:15px}.book-art{width:134px;height:205px}.book-title{font-size:17px;right:12px;top:15px;letter-spacing:2px}.book-subtitle{left:12px;font-size:9px}.book-stamp{left:12px;bottom:13px}.stats-strip{grid-template-columns:repeat(3,1fr)}.stats-strip .stats-status{display:none}.stats-strip>div:nth-child(3){border:0}.stats-strip strong{font-size:23px}.entry-card{padding:20px}.entry-card p br{display:none}.entry-card p{min-height:46px}.entry-card h3{font-size:18px}.entry-card>strong{font-size:11px}.result-layout{grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:16px}.catalog-row{flex-wrap:wrap;gap:12px}.catalog-actions{flex-shrink:1}.room-grid{gap:12px}.room-card-head{padding:18px}.room-card h3{font-size:19px}.room-books{padding:8px 14px}.room-book{flex-wrap:wrap}.book-layout{grid-template-columns:206px minmax(0,1fr)}.reader-bar{padding:13px}.reader-controls{padding:12px;gap:6px}.reader-controls label{margin-left:0}.toast{left:calc(50% + 99px)}}
@media(max-width:900px) and (min-width:761px){.hero{grid-template-columns:1fr}.hero-art{display:none}.entry-grid{gap:12px}.entry-card{padding:18px}.home-lower{grid-template-columns:1fr}.result-layout{grid-template-columns:1fr}.detail{position:static;max-height:none}.book-layout{grid-template-columns:175px minmax(0,1fr)}.book-row{padding:13px 9px;gap:8px}.book-picker summary>span:last-child{display:none}.room-grid{grid-template-columns:1fr}.room-books{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.entry-card>strong svg{display:none}.entry-card h3{font-size:17px}.step-num{font-size:29px;right:15px}.reader-bar .secondary-button{font-size:10px;padding:6px}}
@media(max-width:760px){:root{font-size:15px}.sidebar{display:none}.app-shell{margin:0}.topbar{height:60px;padding:0 18px;background:#fff}.breadcrumb{font-size:11px;gap:8px}.breadcrumb>span:first-child{color:var(--green);font-weight:700}.topbar-actions{gap:0}.local-tag{display:none}.topbar-actions .text-button{font-size:11px}.topbar-actions svg{width:16px;height:16px}main{padding:18px 16px 0;min-height:calc(100dvh - 60px)}.view{min-height:calc(100dvh - 200px)}.hero{display:block;border-radius:10px;min-height:0}.hero-content{padding:25px 21px 23px}.hero-label{font-size:10px;letter-spacing:1.5px}.hero h1{font-size:35px;line-height:1.35;margin-top:18px;margin-bottom:15px}.hero p{font-size:11px;line-height:1.9;margin-bottom:22px;max-width:245px}.mobile-only{display:inline}.hero-art{display:none}.hero-content::after{content:"陳";position:absolute;right:16px;top:42px;color:#d2dcc113;font-size:130px;font-family:serif;pointer-events:none;z-index:-1}.hero-search{padding-left:11px;gap:8px;height:50px}.hero-search>span svg{width:17px;height:17px}.hero-search input{font-size:12px}.hero-search button{height:38px;padding:0 10px;font-size:12px;gap:0}.hero-search button svg{display:none}.search-examples{gap:9px;font-size:10px;margin-top:13px}.search-examples button{font-size:11px}.search-examples .hero-help{flex-basis:100%;text-align:left;padding:5px 0 0;margin:0;color:#c4cba9}.stats-strip{margin:12px 0 25px;padding:17px 4px;border-radius:8px}.stats-strip>div{display:block;text-align:center;padding:0 3px}.stats-strip>div>[data-icon]{display:none}.stats-strip strong{font-size:23px}.stats-strip p>span{font-size:9px;line-height:1.6;max-width:104px;margin:auto}.heading-row{margin-bottom:15px;align-items:flex-start}.heading-row h2{font-size:19px}.heading-note{font-size:10px;padding-top:5px}.heading-row .eyebrow{font-size:10px}.entry-grid{grid-template-columns:1fr;gap:11px;margin-bottom:20px}.entry-card{padding:18px 17px 16px 80px;min-height:118px}.entry-icon{position:absolute;left:18px;top:20px;width:42px;height:42px}.step-num{font-size:29px;top:10px;right:18px}.entry-card h3{margin:0 0 6px;font-size:18px}.entry-card p{font-size:12px;line-height:1.8;min-height:0;max-width:calc(100% - 24px);margin:0 0 11px}.entry-card p br{display:none}.entry-card>strong{padding-top:0;border:0;font-size:11px}.entry-card>strong svg{width:16px}.home-lower{grid-template-columns:1fr;gap:14px;margin-bottom:14px}.panel{padding:20px;border-radius:8px}.home-lower h2{font-size:16px}.home-lower .heading-row{align-items:center}.heading-row .subtle{font-size:10px}.how-steps{margin-top:19px;gap:16px}.how-steps strong{font-size:13px}.how-steps p{font-size:11px;line-height:1.8}.mini-chain{margin:20px 0}.lineage-preview .eyebrow{font-size:10px}.data-status{font-size:11px;margin-top:20px}.data-status summary{font-size:11px;gap:6px}.data-status summary svg{width:17px}.data-status summary>span:last-child{font-size:10px}.data-status>div{padding:0 3px 10px}.page-heading{padding:9px 0 23px}.page-heading h1{font-size:27px;line-height:1.5;letter-spacing:0}.page-heading>p:last-child{font-size:12px;line-height:1.9}.search-controls{padding:14px}.searchbar{gap:8px;padding-bottom:12px}.searchbar input{font-size:15px}.searchbar>span svg{width:18px}.searchbar .primary-button{padding:9px 12px;font-size:12px}.filter-bar{gap:7px;font-size:11px}.filter-bar select{max-width:calc(100% - 60px);font-size:11px;padding:7px 22px 7px 7px}.filter-bar .text-button{font-size:11px}.search-note{font-size:11px;padding:13px 1px}.result-layout{display:block}.result-tabs{gap:3px}.result-tabs button{font-size:11px;padding:7px 8px}.result-tabs small{margin-left:3px;font-size:9px}.person-row{padding:17px}.person-line>strong{font-size:21px}.person-meta{font-size:12px;gap:5px 13px}.person-source{font-size:10px}.person-snippet{font-size:12px}.detail{display:none}.detail-open{overflow:hidden}.detail-open .detail{display:block;position:fixed;inset:12px 10px calc(12px + env(safe-area-inset-bottom)) 10px;z-index:200;max-height:none;border-radius:12px;box-shadow:0 0 0 100vmax #12291e80;overflow:auto;overscroll-behavior:contain}.detail-top{padding:10px 16px;font-size:12px}.detail-content{padding:20px}.detail-heading h2{font-size:30px}.detail-field>p{font-size:15px}.detail-field>span{font-size:12px}.detail-actions button{min-height:40px}.source-meta{font-size:11px}.catalog-controls{padding:15px}.room-filters{gap:6px;margin-bottom:13px}.room-filters button{font-size:11px;padding:8px 10px}.catalog-filter{padding:3px 9px;gap:7px}.catalog-filter input{font-size:12px}.catalog-filter svg{width:17px}.catalog-toolbar{font-size:10px}.catalog-toolbar .text-button{font-size:11px}.catalog-group summary{padding:16px 14px;gap:10px;flex-wrap:wrap}.catalog-group summary>strong{font-size:15px}.catalog-group summary>span:not(.volume-tile){font-size:10px}.volume-tile{width:28px;height:34px;font-size:11px}.catalog-row{padding:15px;display:block}.catalog-row>div:first-child{margin-bottom:12px}.catalog-row strong{font-size:15px}.catalog-row small{font-size:11px}.catalog-actions{gap:6px;display:flex}.catalog-actions .primary-button{padding:8px 10px;font-size:11px}.catalog-actions .source-button{font-size:10px;padding:8px 7px}.room-grid{grid-template-columns:1fr;gap:17px}.room-card-head{padding:20px}.room-card h3{font-size:22px}.room-books{padding:8px 20px}.room-book{font-size:13px;flex-wrap:nowrap}.room-book span{font-size:11px}.trunk-panel{padding:20px 16px}.trunk-panel .heading-row h2{font-size:16px}.trunk-panel .heading-row .subtle{font-size:10px}.ancestor-card{flex-basis:107px}.trunk-hint{font-size:11px}.framework-footnote{font-size:11px}.book-layout{display:block;border-radius:8px}.book-picker{border-right:0;border-bottom:1px solid var(--line)}.book-picker summary{pointer-events:auto;cursor:pointer;padding:15px;font-size:13px;background:#f9fbf5}.book-picker summary>span:last-child{font-size:11px}.book-picker summary::after{content:"⌄";margin-left:4px}.book-list{max-height:330px}.book-row{padding:13px 16px}.book-number{height:40px;min-width:32px}.book-info strong{font-size:14px}.book-info small{font-size:11px}.reader-bar{padding:14px}.reader-bar strong{font-size:14px}.reader-bar .secondary-button{padding:7px 9px;font-size:10px}.reader-bar .secondary-button svg{width:15px;height:15px}.reader-controls{padding:12px;gap:6px;justify-content:space-between;font-size:11px}.reader-controls input{width:52px;font-size:12px;padding:7px 1px}.reader-controls button{font-size:11px;padding:8px 7px;gap:2px}.reader-controls button svg{display:none}.reader-controls label{font-size:10px}.reader-controls #reader-pages{font-size:10px}.reader-tools{padding:10px 12px;font-size:11px}.reader-stage{padding:8px;min-height:230px;max-height:66dvh}.reader-tip{font-size:10px;padding:13px 12px}.reader-source-note{padding:0 12px;font-size:10px}.reader-placeholder{padding:50px 10px}.mobile-nav{position:fixed;inset:auto 0 0;z-index:50;display:flex;justify-content:space-around;background:#fffffff5;border-top:1px solid #d9e2d2;padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 14px #1d42260a;backdrop-filter:blur(12px)}.mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:54px;padding:3px 6px;font-size:10px;color:#8a9585;position:relative}.mobile-nav a.active{color:var(--green);font-weight:700}.mobile-nav a.active::before{content:"";position:absolute;top:-8px;left:calc(50% - 13px);width:26px;height:2px;background:var(--green);border-radius:0 0 4px 4px}.mobile-nav svg{width:21px;height:21px}.toast{left:50%;bottom:calc(83px + env(safe-area-inset-bottom));font-size:12px;min-width:180px;text-align:center}footer{display:block;font-size:9px;line-height:1.9;padding:20px 0 95px;margin-top:25px}footer>span{display:block}dialog{max-height:90dvh;width:calc(100% - 22px);border-radius:11px}.dialog-heading{padding:20px}.dialog-heading h2{font-size:19px}.help-content{padding:20px;max-height:calc(90dvh - 188px)}.help-step{gap:12px}.help-step h3{font-size:14px}.dialog-footer{padding:16px 20px}.export-controls{align-items:stretch;flex-wrap:wrap}.export-controls select{flex:1}.download-links a{font-size:10px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.hero-content{padding:22px 16px}.hero h1{font-size:32px}.hero-search input{font-size:11px}.hero-search button{padding:0 8px}.stats-strip strong{font-size:21px}.heading-note{display:none}.reader-controls{gap:5px;padding:10px 8px}.reader-controls button{padding:7px 5px;font-size:10px}.reader-controls input{width:46px}.catalog-actions{gap:4px}.catalog-actions .source-button{padding:8px 6px}.entry-card{padding-left:73px}.entry-icon{left:16px;width:38px;height:38px}.export-controls select{width:100%;flex-basis:100%}}
.book-title{white-space:nowrap;top:16px;bottom:16px;padding:8px 7px;font-size:18px;letter-spacing:1px;display:flex;align-items:center;justify-content:center;line-height:1.4}.sidebar-note p{font-size:16px;white-space:nowrap}.hero-content>p{font-size:13px}.entry-card>p{font-size:13px}#favorites-list{max-height:330px;overflow:auto}.empty-state .chip-list{margin-top:4px}
@media(max-width:760px){.hero-content>p{font-size:12px}.entry-card>p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
