
.library-hero{min-height:66svh;position:relative;display:flex;align-items:flex-end;overflow:hidden;padding:120px max(28px,calc((100vw - 1240px)/2 + 28px)) 64px;background:#090b0a}.library-hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,8,7,.86),rgba(6,8,7,.48) 47%,rgba(6,8,7,.18)),linear-gradient(0deg,rgba(6,8,7,.72),transparent 50%),url('assets/path-socrates-v14.webp') center/cover no-repeat;filter:saturate(.78) contrast(1.04)}.library-copy{position:relative;z-index:1;max-width:820px}.library-copy h1{font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(56px,8vw,104px);line-height:1;margin:0 0 22px}.library-copy>p:not(.eyebrow){font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(21px,2.1vw,29px);line-height:1.75;color:#d6d2c8;max-width:780px}.library-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.library-main{max-width:1240px;margin:0 auto;padding:78px 28px 100px}.library-toolbar{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px}.library-toolbar h2{font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(40px,5vw,64px);font-weight:500;line-height:1.1;margin:0}.book-search{min-width:min(100%,340px);display:grid;gap:7px}.book-search span{font-size:12px;letter-spacing:.14em;color:#7c817a}.book-search input{width:100%;border:1px solid rgba(17,20,18,.16);background:#fffdf8;color:#1e231f;border-radius:999px;padding:14px 18px;font-size:16px;outline:none}.book-search input:focus{border-color:#7b6948;box-shadow:0 0 0 3px rgba(123,105,72,.12)}.library-nav{display:flex;gap:9px;overflow:auto;padding:4px 0 22px;scrollbar-width:none}.library-nav::-webkit-scrollbar{display:none}.library-nav button{white-space:nowrap;border:1px solid rgba(17,20,18,.14);background:transparent;border-radius:999px;padding:10px 15px;font-size:14px;cursor:pointer}.library-nav button.active{background:#181c19;color:#f6f0e6;border-color:#181c19}.book-category{padding:54px 0;border-top:1px solid rgba(17,20,18,.12)}.book-category-head{display:grid;grid-template-columns:1.3fr .7fr;gap:28px;align-items:end;margin-bottom:24px}.book-category-head h3{font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(36px,4.6vw,58px);font-weight:500;line-height:1.1;margin:0 0 12px}.book-category-head p{font-size:18px;line-height:1.8;color:#636962;margin:0}.path-bridge{justify-self:end;text-align:right}.path-bridge span{display:block;font-size:11px;letter-spacing:.14em;color:#7f847d;margin-bottom:7px}.path-bridge a{font-family:"Iowan Old Style","Songti TC",serif;font-size:23px;color:#262c27}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.book-card{display:flex;flex-direction:column;min-width:0;background:#f8f3e9;border:1px solid rgba(17,20,18,.1);border-radius:24px;overflow:hidden;box-shadow:0 12px 32px rgba(17,20,18,.06)}.book-cover-wrap{aspect-ratio:3/4;background:#181c19;position:relative;overflow:hidden}.book-cover{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .35s ease}.book-cover.loaded{opacity:1}.fallback-cover{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 75% 16%,rgba(211,183,126,.22),transparent 28%),linear-gradient(155deg,#2b312d,#111411 64%);color:#f2eadb}.fallback-cover .fallback-kicker{font-size:10px;letter-spacing:.18em;color:#ccb98e}.fallback-cover strong{font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(22px,2.3vw,32px);font-weight:500;line-height:1.22}.fallback-cover small{font-size:13px;color:#c2c4bd;line-height:1.5}.book-body{padding:20px 20px 22px;display:flex;flex:1;flex-direction:column}.book-body h4{font-family:"Iowan Old Style","Songti TC",serif;font-size:25px;font-weight:500;line-height:1.35;margin:0 0 10px;color:#252a25}.book-meta{font-size:13px;line-height:1.65;color:#757a74;margin:0 0 14px}.book-topic{font-size:16px;line-height:1.75;color:#494f49;margin:0 0 18px}.book-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.book-tags span{border:1px solid rgba(17,20,18,.11);border-radius:999px;padding:7px 10px;font-size:12px;color:#686e68;background:#fffaf1}.status-tag{color:#8c672d!important;border-color:rgba(140,103,45,.25)!important}.cover-note{font-size:13px;line-height:1.75;color:#747a73;margin-top:28px}.empty-state{padding:70px 20px;text-align:center;border:1px dashed rgba(17,20,18,.18);border-radius:24px;color:#6f746e}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-category-head{grid-template-columns:1fr}.path-bridge{justify-self:start;text-align:left}.library-toolbar{align-items:start;flex-direction:column}.book-search{width:100%}}
@media(max-width:620px){.library-hero{min-height:72svh;padding:100px 20px 48px}.library-main{padding:58px 20px 80px}.book-grid{grid-template-columns:1fr 1fr;gap:11px}.book-card{border-radius:18px}.book-body{padding:14px 13px 16px}.book-body h4{font-size:20px}.book-meta{font-size:12px}.book-topic{font-size:14px}.fallback-cover{padding:16px}.fallback-cover strong{font-size:22px}.book-category{padding:42px 0}.library-copy h1{font-size:58px}}
@media(max-width:430px){.book-grid{grid-template-columns:1fr}.book-cover-wrap{aspect-ratio:4/5}.book-body h4{font-size:24px}}


/* V1.5.1.2 cover + media reliability upgrade */
.fallback-cover{isolation:isolate;background:#161a17!important;overflow:hidden}
.fallback-cover::before{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(7,9,8,.14),rgba(7,9,8,.83)),var(--cover-theme);background-size:cover;background-position:center;filter:saturate(.72) contrast(1.06);transform:scale(1.02);z-index:-2}
.fallback-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 18%,rgba(220,190,128,.22),transparent 34%),linear-gradient(145deg,rgba(0,0,0,.08),rgba(0,0,0,.42));z-index:-1}
.fallback-cover em{font-style:normal;font-size:10px;letter-spacing:.08em;color:rgba(245,238,225,.66);line-height:1.4}
.cover-state{position:absolute;right:10px;top:10px;z-index:5;padding:6px 9px;border-radius:999px;background:rgba(9,11,10,.64);backdrop-filter:blur(10px);color:#eee8dd;font-size:10px;letter-spacing:.06em}
.cover-state.real{background:rgba(35,74,51,.78)}.cover-state.fallback{background:rgba(93,73,40,.74)}
.book-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;padding-top:15px;border-top:1px solid rgba(17,20,18,.1)}
.book-actions a,.category-media-links a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid rgba(17,20,18,.14);border-radius:999px;padding:9px 11px;font-size:12px;line-height:1.2;color:#333a34;background:#fffaf1;transition:.2s}
.book-actions a:hover,.category-media-links a:hover{background:#1b201c;color:#fff;border-color:#1b201c;transform:translateY(-1px)}
.category-media-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.category-media-links a{font-size:13px;padding:10px 14px}
.cover-reliability{margin:18px 0 0;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#d2cec3;font-size:14px;line-height:1.75;max-width:760px}
@media(max-width:620px){.book-actions{grid-template-columns:1fr}.category-media-links a{font-size:12px}.cover-state{font-size:9px}}


/* V1.7.1 prefer real zh cover before fallback */
.book-cover-wrap{background:linear-gradient(155deg,#1a1e1b,#0f1210 65%)}
.book-cover-wrap .fallback-cover{opacity:0;pointer-events:none;transition:opacity .25s ease}
.book-cover-wrap.use-fallback .fallback-cover{opacity:1}
.book-cover-wrap .book-cover.loaded + .cover-state{}
.cover-state{max-width:70%;text-align:center}


.cover-state{display:none!important}.fallback-cover em{display:none!important}.fallback-cover .fallback-kicker{font-size:11px;letter-spacing:.12em;color:rgba(245,238,225,.72)}


/* V1.7.3 bookstore links + title display */
.book-display-title{display:block}
.book-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.book-actions a.store-link{font-size:11px;padding:10px 10px}
.book-actions a.store-link.amazon{grid-column:1/-1}
@media(max-width:860px){.book-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.book-actions{grid-template-columns:1fr 1fr}.book-actions a.store-link.amazon{grid-column:1/-1}}
@media(max-width:430px){.book-actions{grid-template-columns:1fr}.book-actions a.store-link.amazon{grid-column:auto}}


/* V1.7.4 — Reading room contrast */
.book-meta{color:#666c66}
.book-topic{color:#3f463f}
.cover-note{color:#666d66}
.book-category-head p{color:#555c55}
.path-bridge span{color:#666d66}


/* V1.7.4.1 — cover-first, single-link book cards */
.book-cover-link{display:block;text-decoration:none;color:inherit}
.book-cover-link:focus-visible{outline:3px solid rgba(123,105,72,.45);outline-offset:3px;border-radius:20px}
.book-cover-link:hover .book-cover{transform:scale(1.018)}
.book-cover{transition:opacity .35s ease,transform .35s ease}
.book-actions.single-link{display:block!important}
.book-actions.single-link .book-primary-link{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;font-size:13px;font-weight:600;letter-spacing:.02em}
.book-actions.single-link .book-primary-link:hover{background:#1b201c;color:#fff;border-color:#1b201c}
@media(max-width:620px){
  .book-cover-wrap{aspect-ratio:3/4}
  .book-body{padding:18px 17px 20px}
  .book-body h4{font-size:25px;line-height:1.42}
  .book-topic{font-size:15px;line-height:1.82}
}


/* V1.8.1 — preserve real book-cover typography; never crop the cover */
.book-cover-wrap{aspect-ratio:2/3;background:#e9e2d6}
.book-cover{object-fit:contain;background:#eee7dc}
.book-cover-wrap.use-fallback{background:#181c19}
@media(max-width:620px){
  .book-cover-wrap{aspect-ratio:2/3;max-height:none}
  .book-body h4{font-size:23px;line-height:1.48}
  .book-topic{font-size:16px;line-height:1.84}
}

/* V1.8.3 — Apple-inspired reading room cleanup */
.library-hero{padding-bottom:72px}
.library-copy .eyebrow{letter-spacing:.22em}
.library-main{max-width:1280px;padding-top:84px}
.library-toolbar{margin-bottom:32px}
.library-toolbar h2{letter-spacing:-.03em}
.library-nav{gap:10px;padding-bottom:26px}
.library-nav button{background:rgba(255,255,255,.65);border-color:rgba(17,20,18,.08);box-shadow:0 1px 1px rgba(0,0,0,.04)}
.library-nav button.active{background:#111512;color:#fff}
.book-category{padding:62px 0;border-top:1px solid rgba(17,20,18,.1)}
.book-category-head{align-items:center;margin-bottom:28px}
.book-category-head p{max-width:42em}
.category-media-links{margin-top:18px}
.category-media-links a{background:#f4efe4;color:#2b312c;border-color:rgba(17,20,18,.08)}
.path-bridge a{font-size:24px}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.book-card{
  background:rgba(255,251,244,.92);
  border:1px solid rgba(17,20,18,.08);
  border-radius:32px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(17,20,18,.06),0 1px 0 rgba(255,255,255,.9) inset;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.book-card:hover{transform:translateY(-3px);box-shadow:0 20px 42px rgba(17,20,18,.1);border-color:rgba(17,20,18,.12)}
.book-cover-link{display:block;padding:18px 18px 0}
.book-cover-link:focus-visible{outline:none}
.book-cover-link:focus-visible .book-cover-wrap{box-shadow:0 0 0 4px rgba(123,105,72,.18)}
.book-cover-wrap{
  aspect-ratio:2/3;
  border-radius:24px;
  background:linear-gradient(180deg,#f3ede1,#ebe4d6);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.book-cover{width:100%;height:100%;object-fit:contain;background:transparent;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.book-cover.loaded{opacity:1}
.book-card.has-real-cover .book-display-title{display:none}
.book-card.has-real-cover .book-meta{margin-top:0}
.book-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:0}
.book-body h4{
  font-family:"SF Pro Display",-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
  font-size:24px;
  font-weight:700;
  line-height:1.34;
  letter-spacing:-.028em;
  margin:0 0 10px;
  color:#1f2520;
}
.book-meta{font-size:14px;line-height:1.72;color:#5c645d;margin:0 0 12px}
.book-topic{font-size:15px;line-height:1.82;color:#3c433d;margin:0 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.book-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.book-tags span{background:#fff;border:1px solid rgba(17,20,18,.08);padding:7px 11px;color:#59615a}
.status-tag{background:#fbf2df!important;color:#8c672d!important;border-color:rgba(140,103,45,.18)!important}
.book-actions.single-link{display:block!important;margin-top:14px;padding-top:14px;border-top:1px solid rgba(17,20,18,.08)}
.book-actions.single-link .book-primary-link{
  width:100%;min-height:44px;border-radius:999px;background:#fff;
  border:1px solid rgba(17,20,18,.1);font-size:13px;font-weight:600;color:#222923;
}
.book-actions.single-link .book-primary-link:hover{background:#111512;color:#fff;border-color:#111512}
.fallback-cover{position:absolute;inset:0;padding:18px;background:#171b18!important;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate}
.fallback-cover::before{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(7,9,8,.28),rgba(7,9,8,.78)),var(--cover-theme);background-size:cover;background-position:center;filter:saturate(.78) blur(.2px);z-index:-2}
.fallback-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 32%,rgba(214,183,123,.18),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.18));z-index:-1}
.fallback-cover .fallback-kicker{font-size:11px;letter-spacing:.12em;color:rgba(245,238,225,.78)}
.fallback-center{display:grid;place-items:center;gap:6px;padding:0 18px;text-align:center}
.fallback-center strong{font-family:"SF Pro Display",-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:#f6efdf}
.fallback-center span{font-size:13px;color:rgba(242,234,219,.82);line-height:1.6}
.fallback-cover small{font-size:13px;color:rgba(242,234,219,.72);line-height:1.55}
.cover-state{display:none!important}
.book-cover-wrap.use-fallback{padding:0;background:#171b18}
.book-card.use-fallback-card .book-display-title{display:block}
.book-card.use-fallback-card .book-topic{-webkit-line-clamp:5}
.cover-note{margin-top:34px}
@media(max-width:1160px){
  .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .book-card{border-radius:28px}
}
@media(max-width:620px){
  .library-main{padding:58px 18px 80px}
  .book-grid{grid-template-columns:1fr;gap:16px}
  .book-category{padding:44px 0}
  .book-category-head h3{font-size:34px}
  .book-cover-link{padding:14px 14px 0}
  .book-cover-wrap{border-radius:20px;padding:14px}
  .book-body{padding:16px 16px 18px}
  .book-body h4{font-size:22px;line-height:1.4}
  .book-meta{font-size:13px}
  .book-topic{font-size:15px;-webkit-line-clamp:5}
}


/* V1.9.0 — simplified reading room + collapsible shelves */
.library-toolbar,.book-category-head,.book-card,.book-cover-wrap,.library-nav button{border-radius:30px}
.book-card{background:rgba(255,252,246,.92);border-color:rgba(17,20,18,.08);box-shadow:0 18px 44px rgba(0,0,0,.10);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.book-card:hover{transform:translateY(-2px);box-shadow:0 24px 56px rgba(0,0,0,.14)}
.book-cover-wrap{background:linear-gradient(180deg,#f3eee5,#e6ddd1)}
.fallback-cover{background:linear-gradient(180deg,#f6f0e7,#ebe2d5)!important;color:#222723;border-bottom:1px solid rgba(17,20,18,.06)}
.fallback-cover::before,.fallback-cover::after{display:none!important}
.fallback-cover .fallback-kicker{color:#7b6848;font-size:11px;letter-spacing:.12em}
.fallback-cover .fallback-center{display:flex;align-items:center;justify-content:center;gap:8px;min-height:120px}
.fallback-cover .fallback-center i{display:block;width:36px;height:4px;border-radius:999px;background:rgba(124,106,72,.35)}
.fallback-cover small{color:#7a7368;font-size:12px}
.book-body h4{font-size:24px;line-height:1.4}.book-meta{color:#6a716b}.book-topic{color:#434a43}
.category-more{display:flex;justify-content:center;margin-top:20px}.category-more-btn{appearance:none;border:1px solid rgba(17,20,18,.12);background:#fffaf1;color:#313732;border-radius:999px;padding:12px 18px;font-size:14px;cursor:pointer;transition:.2s}.category-more-btn:hover{background:#1b201c;color:#fff;border-color:#1b201c}
.cover-reliability,.cover-note{max-width:820px}
@media(max-width:620px){.book-card,.book-cover-wrap,.library-nav button{border-radius:24px}.category-more{margin-top:16px}}


/* V1.9.3 — editorial fallback cards + responsive reading optimization */
.library-main{padding-top:88px}
.book-category{scroll-margin-top:90px}
.book-grid{align-items:stretch}
.book-card{display:flex;flex-direction:column;min-height:100%}
.book-body{display:grid;grid-template-rows:auto auto 1fr auto auto;align-content:start;min-height:278px}
.book-body h4{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.book-meta,.book-topic{max-width:36ch}
.book-topic{min-height:5.4em}
.book-actions.single-link .book-primary-link{min-height:46px}
.book-card.has-real-cover .book-display-title{display:none}
.book-card.use-fallback-card .book-cover-wrap{aspect-ratio:5/4;padding:0;background:linear-gradient(180deg,#f8f3ea,#efe6d8)}
.book-card.use-fallback-card .fallback-cover{position:relative;inset:auto;height:100%;padding:18px 20px 16px;display:grid;grid-template-rows:auto 1fr auto;gap:14px;background:linear-gradient(180deg,#f8f3ea,#efe6d8)!important;color:#1f2520;border-bottom:1px solid rgba(17,20,18,.06)}
.book-card.use-fallback-card .fallback-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.book-card.use-fallback-card .fallback-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(17,20,18,.08);font-size:11px;letter-spacing:.06em;color:#726550;white-space:nowrap}
.book-card.use-fallback-card .fallback-center{display:grid;justify-items:start;align-content:center;gap:12px;min-height:0;padding:0;text-align:left}
.book-card.use-fallback-card .fallback-icon{width:60px;height:60px;display:block;position:relative;border-radius:18px;background:rgba(255,251,245,.92);border:1px solid rgba(17,20,18,.08);box-shadow:0 8px 18px rgba(17,20,18,.06)}
.book-card.use-fallback-card .fallback-icon::before{content:"";position:absolute;left:14px;right:14px;top:14px;height:12px;border-radius:6px;background:linear-gradient(180deg,#dac8a9,#cdb587)}
.book-card.use-fallback-card .fallback-icon::after{content:"";position:absolute;left:14px;right:18px;bottom:16px;height:2px;border-radius:999px;background:#c3b8a4;box-shadow:0 -8px 0 #c3b8a4,0 -16px 0 #c3b8a4}
.book-card.use-fallback-card .fallback-center strong{font-family:"SF Pro Display",-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;font-size:23px;font-weight:700;letter-spacing:-.03em;line-height:1.15;color:#222923}
.book-card.use-fallback-card .fallback-center span{font-size:14px;line-height:1.72;color:#5d645c}
.book-card.use-fallback-card .fallback-cover small{font-size:12px;line-height:1.6;color:#7f7568}
.book-card.use-fallback-card .book-display-title{display:block}
.book-card.use-fallback-card .book-meta{margin-bottom:12px}
.book-card.use-fallback-card .book-topic{min-height:0;-webkit-line-clamp:4}
@media(max-width:1160px){.book-body{min-height:288px}}
@media(max-width:860px){.book-body{min-height:0}}
@media(max-width:620px){
  .library-toolbar{gap:18px}
  .library-main{padding:58px 18px 80px}
  .book-category-head{gap:18px;margin-bottom:22px}
  .book-category-head p{font-size:17px;line-height:1.78}
  .category-media-links{gap:10px}
  .category-media-links a{width:100%;justify-content:center}
  .path-bridge{width:100%}
  .path-bridge a{font-size:22px}
  .book-body{padding:16px 16px 18px;grid-template-rows:auto auto auto auto auto}
  .book-body h4{font-size:22px;line-height:1.4;-webkit-line-clamp:4}
  .book-meta,.book-topic{max-width:none}
  .book-topic{min-height:0;-webkit-line-clamp:5}
  .book-actions.single-link .book-primary-link{font-size:14px}
  .book-card.use-fallback-card .book-cover-wrap{aspect-ratio:4/3}
  .book-card.use-fallback-card .fallback-cover{padding:16px 16px 14px;gap:12px}
  .book-card.use-fallback-card .fallback-icon{width:54px;height:54px;border-radius:16px}
  .book-card.use-fallback-card .fallback-center strong{font-size:21px}
}
@media(min-width:621px){
  .book-grid .book-card{height:100%}
}

/* V2.5.0｜閱讀書房：桌機每張書卡約佔三分之一 */
.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.zh-edition-tag{color:#7c5b31!important;border-color:rgba(124,91,49,.24)!important;background:#f3eadb!important}
.book-primary-link{background:#202720;color:#fff;border-radius:999px;padding:9px 12px;text-decoration:none}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.book-grid{grid-template-columns:1fr!important}}


/* V2.5.1 — real book cover priority. No local text substitute cover. */
.fallback-cover{display:none!important}
.cover-skeleton{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,#e9e1d4,#f8f3ea)}
.cover-skeleton span{width:34%;aspect-ratio:1;border-radius:50%;border:2px solid rgba(91,79,61,.16);border-top-color:rgba(91,79,61,.52);animation:coverSpin 1s linear infinite}
.book-cover.loaded~.cover-skeleton{display:none}
.book-cover-wrap.cover-unavailable{display:none!important}
.book-card.cover-missing .book-display-title{display:block!important}
.book-card.cover-missing{grid-template-columns:1fr!important}
@keyframes coverSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cover-skeleton span{animation:none}}

/* V2.5.2 — real-cover only policy */
.fallback-cover,.book-card.use-fallback-card .fallback-cover{display:none!important}
.book-cover-wrap.cover-unavailable{display:none!important}
.book-card.cover-missing .book-display-title{display:block!important}
.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.book-grid{grid-template-columns:1fr!important}}


/* V2.5.7 cover prefetch / local fallback presentation */
.library-hero-bg{background:linear-gradient(90deg,rgba(6,8,7,.86),rgba(6,8,7,.52) 47%,rgba(6,8,7,.18)),linear-gradient(0deg,rgba(6,8,7,.72),transparent 50%),url('assets/reading-method-thought.webp') center/cover no-repeat;filter:saturate(.82) contrast(1.03)}
.book-cover-wrap.use-fallback .fallback-cover{opacity:1;pointer-events:none}
.book-cover-wrap .fallback-cover{position:absolute;inset:0;padding:22px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 75% 16%,rgba(211,183,126,.26),transparent 28%),linear-gradient(155deg,#2a302c,#101310 64%);color:#f2eadb;border-radius:22px}
.book-cover-wrap .fallback-cover .fallback-kicker{font-size:10px;letter-spacing:.18em;color:#d8c49a;text-transform:uppercase}
.book-cover-wrap .fallback-cover strong{font-family:"Iowan Old Style","Songti TC",serif;font-size:clamp(22px,2.2vw,32px);font-weight:500;line-height:1.24}
.book-cover-wrap .fallback-cover small{font-size:13px;color:#d5d0c6;line-height:1.55}
.book-cover-wrap.cover-unavailable{display:block!important}
.book-cover-wrap.cover-unavailable .book-cover{display:none!important}
.book-cover-wrap.cover-unavailable .cover-skeleton,.book-cover-wrap.cover-unavailable .cover-state{display:none!important}
.book-card.has-real-cover .fallback-cover{opacity:0}
.book-card:not(.has-real-cover) .book-cover{opacity:0}
.book-cover-link:hover .fallback-cover{transform:scale(1.012)}
.fallback-cover{transition:opacity .28s ease,transform .35s ease}


/* =========================================================
   Reading Room — one-third cover crop
   Text-first: title / author / minimal recommendation / link.
   ========================================================= */
.book-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:stretch;
}
.book-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%;
  min-width:0;
  border-radius:24px!important;
  overflow:hidden;
  background:#fffaf2!important;
  border:1px solid rgba(24,30,26,.09)!important;
  box-shadow:0 12px 30px rgba(20,25,21,.07)!important;
}
.book-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 18px 38px rgba(20,25,21,.10)!important;
}
.book-cover-link{
  display:block!important;
  padding:0!important;
  height:auto;
  overflow:hidden;
}
.book-cover-wrap,
.book-card.use-fallback-card .book-cover-wrap,
.book-cover-wrap.cover-unavailable{
  display:block!important;
  position:relative!important;
  width:100%!important;
  aspect-ratio:2/1!important;
  max-height:none!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:#282d29!important;
}
.book-cover-wrap .cover-skeleton,
.book-cover-wrap .cover-state{
  display:none!important;
}
.book-cover{
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:auto!important;
  min-height:300%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:top center!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  opacity:0;
  transition:opacity .22s ease!important;
  transform:none!important;
}
.book-cover.loaded{opacity:1!important}
.book-cover-link:hover .book-cover{transform:none!important}
.book-card.has-real-cover .book-display-title{
  display:-webkit-box!important;
}
.book-card.has-real-cover .book-meta{margin-top:0!important}
.book-card:not(.has-real-cover) .book-cover{opacity:0!important}

/* Immediate no-spinner visual while the real cover is being fetched. */
.book-cover-wrap .fallback-cover,
.book-card.use-fallback-card .fallback-cover{
  display:flex!important;
  position:absolute!important;
  inset:0!important;
  opacity:1;
  padding:18px 20px!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  gap:5px!important;
  background:
    linear-gradient(180deg,rgba(22,27,23,.18),rgba(22,27,23,.88)),
    url('assets/reading-method-thought.webp') center 44%/cover no-repeat!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  pointer-events:none;
  transition:opacity .20s ease!important;
}
.book-card.has-real-cover .fallback-cover{opacity:0!important}
.fallback-cover::before,.fallback-cover::after{display:none!important}
.fallback-cover .fallback-kicker{font-size:10px!important;letter-spacing:.13em!important;color:#ead9b6!important}
.fallback-cover strong{font-size:18px!important;line-height:1.25!important;color:#fff!important;font-weight:650!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.fallback-cover small{font-size:12px!important;color:rgba(255,255,255,.78)!important}

.book-body{
  flex:1!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  padding:20px 20px 21px!important;
}
.book-body h4,
.book-display-title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:0 0 8px!important;
  font-family:"Iowan Old Style","Songti TC",serif!important;
  font-size:25px!important;
  line-height:1.28!important;
  font-weight:600!important;
  letter-spacing:-.018em!important;
  color:#202620!important;
}
.book-meta{
  margin:0 0 12px!important;
  color:#747b74!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.book-topic{
  margin:0 0 18px!important;
  min-height:0!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2!important;
  overflow:hidden;
  color:#464d46!important;
  font-size:14.5px!important;
  line-height:1.68!important;
}
.book-tags{display:none!important}
.book-actions.single-link{
  margin-top:auto!important;
  padding-top:14px!important;
  border-top:1px solid rgba(28,34,29,.08)!important;
}
.book-actions.single-link .book-primary-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  width:100%!important;
  padding:0 16px!important;
  border-radius:999px!important;
  background:#1a201b!important;
  color:#fff!important;
  border:1px solid #1a201b!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:650!important;
  letter-spacing:.01em;
}
.book-actions.single-link .book-primary-link:hover{background:#303830!important;border-color:#303830!important}

/* Tablet */
@media (min-width:621px) and (max-width:1000px){
  .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
  .book-cover-wrap,.book-card.use-fallback-card .book-cover-wrap,.book-cover-wrap.cover-unavailable{aspect-ratio:2.15/1!important}
  .book-body{padding:18px!important}
  .book-body h4,.book-display-title{font-size:23px!important}
}

/* Mobile */
@media (max-width:620px){
  .book-grid{grid-template-columns:1fr!important;gap:14px!important}
  .book-card{display:grid!important;grid-template-columns:34% minmax(0,1fr)!important;min-height:190px;border-radius:20px!important}
  .book-cover-link{height:100%!important;min-height:190px!important}
  .book-cover-wrap,.book-card.use-fallback-card .book-cover-wrap,.book-cover-wrap.cover-unavailable{
    width:100%!important;height:100%!important;aspect-ratio:auto!important;min-height:190px!important;
  }
  /* On phones, the cover occupies only about one third of the card width. */
  .book-cover{
    width:auto!important;height:100%!important;min-height:100%!important;min-width:300%!important;
    left:0!important;top:0!important;object-fit:cover!important;object-position:left center!important;
  }
  .book-cover-wrap .fallback-cover,.book-card.use-fallback-card .fallback-cover{
    padding:14px 10px!important;background:linear-gradient(180deg,rgba(22,27,23,.08),rgba(22,27,23,.78)),url('assets/reading-method-thought.webp') 42% center/cover no-repeat!important;
  }
  .fallback-cover .fallback-kicker{font-size:8px!important}
  .fallback-cover strong{font-size:15px!important;-webkit-line-clamp:3}
  .fallback-cover small{font-size:10px!important}
  .book-body{padding:16px 15px 15px!important}
  .book-body h4,.book-display-title{font-size:21px!important;-webkit-line-clamp:3}
  .book-meta{font-size:12px!important;margin-bottom:8px!important}
  .book-topic{font-size:13.5px!important;line-height:1.58!important;-webkit-line-clamp:2!important;margin-bottom:12px!important}
  .book-actions.single-link{padding-top:10px!important}
  .book-actions.single-link .book-primary-link{min-height:39px!important;font-size:12px!important}
}

@media (max-width:390px){
  .book-card{grid-template-columns:31% minmax(0,1fr)!important;min-height:182px}
  .book-cover-link,.book-cover-wrap,.book-card.use-fallback-card .book-cover-wrap,.book-cover-wrap.cover-unavailable{min-height:182px!important}
  .book-body{padding:14px 13px!important}
  .book-body h4,.book-display-title{font-size:20px!important}
}

/* Preserve the original cover proportions while cropping to roughly one third. */
@media (min-width:621px){
  .book-cover{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    top:0!important;
    left:0!important;
    object-fit:initial!important;
  }
}
@media (max-width:620px){
  .book-cover{
    width:300%!important;
    max-width:none!important;
    height:auto!important;
    min-width:0!important;
    min-height:100%!important;
    top:0!important;
    left:0!important;
    object-fit:initial!important;
  }
}
