/* 书卷艺术导读 BookOverview —— 框与纸面沿用 .b-reading（手抄本主框），这里只管内容排版 */
.b-layout--overview{grid-template-rows:auto 1fr}
@media(min-width:761px){
  html body:is(.ms-reader,.ms-study) .b-layout.b-layout--overview>.b-index,html body:is(.ms-reader,.ms-study) .b-layout.b-layout--overview::before{grid-row:1/span 2!important}
  html body:is(.ms-reader,.ms-study) .b-layout.b-layout--overview>.book-overview{grid-column:2!important;grid-row:2!important;margin-top:0!important}
}
html body:is(.ms-reader,.ms-study) .book-overview{--bo-gold:#9a6f1f;--bo-ink:#3a2410;--bo-soft:#5d4326;--bo-line:rgba(154,111,31,.34);--bo-ease:cubic-bezier(.32,.72,0,1);
  padding-block:.25rem .75rem}
html body:is(.ms-reader,.ms-study) .book-overview .bo-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(1.25rem,2.6vw,2.25rem);align-items:center;padding:.5rem clamp(.25rem,1.6vw,1.375rem) 0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-art{margin:0;position:relative;border-radius:.875rem;overflow:hidden;
  box-shadow:0 0 0 1px var(--bo-line),0 1.25rem 2.5rem -1.5rem rgba(60,30,0,.45)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-art img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
/* 画面边缘融进羊皮纸：压一层纸色渐隐，不改图片本身 */
html body:is(.ms-reader,.ms-study) .book-overview .bo-art::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 1.75rem .5rem rgba(246,234,216,.55)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-copy{min-width:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-eyebrow{margin:0 0 .5rem;font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase;color:var(--bo-gold);font-weight:600}
html body:is(.ms-reader,.ms-study) .book-overview .bo-title{margin:0;font-size:clamp(1.375rem,2vw,1.75rem);line-height:1.2;color:var(--bo-gold);font-weight:700;text-align:left;letter-spacing:.01em}
html body:is(.ms-reader,.ms-study) .book-overview .bo-theme{margin:.75rem 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .75rem;font-weight:600;color:var(--bo-ink);font-size:1rem}
html body:is(.ms-reader,.ms-study) .book-overview .bo-theme span{font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--bo-soft);padding:.125rem .625rem;border:1px solid var(--bo-line);border-radius:999px}
html body:is(.ms-reader,.ms-study) .book-overview .bo-desc{margin:1rem 0 0;line-height:1.75;color:var(--bo-ink);font-size:.9375rem;text-align:left}
html body:is(.ms-reader,.ms-study) .book-overview .bo-quote{margin:1.25rem 0 0;padding:.25rem 0 .25rem 1rem;border-left:2px solid var(--bo-line)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-quote blockquote{margin:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-qtext{margin:0;line-height:1.7;font-size:1rem;font-style:italic;color:var(--bo-ink);text-align:left;text-indent:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-quote figcaption{margin-top:.5rem;font-size:.8125rem;letter-spacing:.04em}
html body:is(.ms-reader,.ms-study) .book-overview .bo-quote figcaption a{color:var(--bo-gold);text-decoration:none;border-bottom:1px solid var(--bo-line);transition:border-color .5s var(--bo-ease),color .5s var(--bo-ease)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-quote figcaption a:hover{color:var(--bo-ink);border-color:var(--bo-gold)}
/* 五个学习入口：纯 CSS 单选页签，无需脚本，文字全部在 HTML 里 */
html body:is(.ms-reader,.ms-study) .book-overview .bo-tabs{position:relative;margin-top:1.5rem;padding:1.125rem clamp(.25rem,1.6vw,1.375rem) 0;border-top:1px solid var(--bo-line)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem}
html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist label{display:flex;align-items:center;justify-content:center;text-align:center;min-height:2.75rem;padding:.375rem .5rem;font-size:.875rem;line-height:1.25;color:var(--bo-ink);
  background:rgba(255,250,238,.7);border:1px solid var(--bo-line);border-radius:.75rem;cursor:pointer;
  transition:transform .5s var(--bo-ease),background-color .5s var(--bo-ease),border-color .5s var(--bo-ease),color .5s var(--bo-ease)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist label:hover{border-color:var(--bo-gold);transform:translateY(-1px)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist label:active{transform:scale(.98)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-panels{margin-top:1rem}
html body:is(.ms-reader,.ms-study) .book-overview .bo-panel{display:none;animation:bo-in .6s var(--bo-ease) both}
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(1):checked~.bo-panels .bo-panel:nth-child(1),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(2):checked~.bo-panels .bo-panel:nth-child(2),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(3):checked~.bo-panels .bo-panel:nth-child(3),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(4):checked~.bo-panels .bo-panel:nth-child(4),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(5):checked~.bo-panels .bo-panel:nth-child(5){display:block}
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(1):checked~.bo-tablist label:nth-child(1),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(2):checked~.bo-tablist label:nth-child(2),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(3):checked~.bo-tablist label:nth-child(3),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(4):checked~.bo-tablist label:nth-child(4),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(5):checked~.bo-tablist label:nth-child(5){background:linear-gradient(180deg,#f3dfae,#e2c27a);border-color:var(--bo-gold);color:#3a2410;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(1):focus-visible~.bo-tablist label:nth-child(1),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(2):focus-visible~.bo-tablist label:nth-child(2),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(3):focus-visible~.bo-tablist label:nth-child(3),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(4):focus-visible~.bo-tablist label:nth-child(4),
html body:is(.ms-reader,.ms-study) .book-overview .bo-radio:nth-of-type(5):focus-visible~.bo-tablist label:nth-child(5){outline:2px solid var(--bo-gold);outline-offset:2px}
html body:is(.ms-reader,.ms-study) .book-overview .bo-ptext{margin:0;line-height:1.75;color:var(--bo-ink);font-size:.9375rem;text-align:left;text-indent:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-link{display:inline-block;margin-top:.875rem;padding:.5rem 1.125rem;border:1px solid var(--bo-gold);border-radius:999px;color:var(--bo-gold);text-decoration:none;font-size:.875rem;font-weight:600;
  transition:background-color .5s var(--bo-ease),color .5s var(--bo-ease),transform .5s var(--bo-ease)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-link:hover{background:var(--bo-gold);color:#fff8e6}
html body:is(.ms-reader,.ms-study) .book-overview .bo-link:active{transform:scale(.98)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.625rem .875rem}
html body:is(.ms-reader,.ms-study) .book-overview .bo-list li{padding:.625rem .875rem;background:rgba(255,250,238,.55);border:1px solid var(--bo-line);border-radius:.75rem;display:flex;flex-direction:column;gap:.125rem;min-width:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-list strong{font-size:.9375rem;color:var(--bo-ink)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-list span{font-size:.8125rem;line-height:1.6;color:var(--bo-soft)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-verses a{display:flex;flex-direction:column;gap:.125rem;color:inherit;text-decoration:none}
html body:is(.ms-reader,.ms-study) .book-overview .bo-verses li{padding:0}
html body:is(.ms-reader,.ms-study) .book-overview .bo-verses a{padding:.625rem .875rem;border-radius:.75rem;transition:background-color .5s var(--bo-ease)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-verses a:hover{background:rgba(226,194,122,.3)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-verses strong{color:var(--bo-gold)}
html body:is(.ms-reader,.ms-study) .book-overview .bo-credit{margin:1.25rem clamp(.25rem,1.6vw,1.375rem) .25rem;font-size:.6875rem;line-height:1.5;color:var(--bo-soft);opacity:.8;text-align:left;text-indent:0}
@keyframes bo-in{from{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:none}}
@media(max-width:900px){html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  html body:is(.ms-reader,.ms-study) .book-overview .bo-grid{grid-template-columns:1fr;gap:1rem;padding-inline:.75rem}
  html body:is(.ms-reader,.ms-study) .book-overview .bo-tabs{padding-inline:.75rem}
  html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body:is(.ms-reader,.ms-study) .book-overview .bo-list{grid-template-columns:1fr}
  html body:is(.ms-reader,.ms-study) .book-overview .bo-credit{margin-inline:.75rem}
}
@media(prefers-reduced-motion:reduce){html body:is(.ms-reader,.ms-study) .book-overview .bo-panel{animation:none}html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist label{transition:none}}
html body:is(.ms-reader,.ms-study) .book-overview .bo-eyebrow,html body:is(.ms-reader,.ms-study) .book-overview .bo-qtext,html body:is(.ms-reader,.ms-study) .book-overview .bo-desc,html body:is(.ms-reader,.ms-study) .book-overview .bo-ptext,html body:is(.ms-reader,.ms-study) .book-overview .bo-quote figcaption,html body:is(.ms-reader,.ms-study) .book-overview .bo-theme{text-align:left!important;text-indent:0!important}
@media(max-width:760px){html body:is(.ms-reader,.ms-study) .book-overview .bo-tablist label:nth-child(5){grid-column:1/-1}}

/* ---- 三种展示模式（桌面；由 js/book-overview.js 按剩余空间设置 data-bo-mode，默认 standard）---- */
@media(min-width:761px){
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="large"] .bo-grid{grid-template-columns:1fr;gap:1.25rem}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="large"] .bo-art img{aspect-ratio:16/9;object-position:50% 22%}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="large"] .bo-title{font-size:clamp(1.625rem,2.4vw,2.125rem)}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="compact"] .bo-grid{grid-template-columns:minmax(0,3fr) minmax(0,8fr);gap:1.25rem;align-items:center}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="compact"] .bo-desc{margin-top:.625rem}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="compact"] .bo-quote{margin-top:.75rem}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="compact"] .bo-tabs{margin-top:1rem;padding-top:.875rem}
  html body:is(.ms-reader,.ms-study) .book-overview[data-bo-mode="compact"] .bo-credit{margin-top:.75rem}
}

/* 书卷导读面板拉伸到与左栏同底；内容少时在框内垂直居中，内容多时自然向下延伸 */
@media(min-width:761px){
  html body:is(.ms-reader,.ms-study) .b-layout.b-layout--overview>.book-overview{align-self:stretch!important;display:flex!important;flex-direction:column;justify-content:center}
}
html body:is(.ms-reader,.ms-study) .book-overview .bo-eyebrow,html body:is(.ms-reader,.ms-study) .book-overview .bo-quote figcaption{display:flex!important;justify-content:flex-start!important}
