.ciye-book-banner,.ciye-reader,.ciye-book-directory{--reading-ink:#5b4a3a;--reading-accent:#ac542c;color:var(--reading-ink);font-family:STSong,"Songti SC",SimSun,serif}
.ciye-book-banner{background:#fbf3e7 url('../images/wuming-landscape.webp') right 55%/100% auto no-repeat;border-bottom:1px solid #ead9c0}
.ciye-book-banner .wrap,.ciye-reader .wrap,.ciye-book-directory.wrap{max-width:1240px;width:calc(100% - 80px)}
.ciye-book-banner__inner{display:flex;align-items:center;gap:34px;padding:28px 0;min-height:264px}
.ciye-book-cover-link{display:block;flex-shrink:0;width:148px}
.ciye-book-cover{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;box-shadow:0 5px 14px #5b4a3a26;border-radius:3px}
.ciye-book-banner__copy{max-width:520px}
.ciye-book-banner .ciye-library-label{font-size:15px;letter-spacing:2px;color:#ac542c;margin:0 0 9px}
.ciye-book-name{font:600 46px/1.3 "Source Han Serif SC","Noto Serif CJK SC","Songti SC",SimSun,serif;letter-spacing:4px;margin:0 0 8px}
.ciye-book-name a{color:inherit}
.ciye-book-description{font-size:17px;line-height:1.8;margin:0 0 12px;max-width:34em}
.ciye-book-count{font-size:14px;letter-spacing:2px;color:#7b6755;margin:0}
.ciye-book-actions{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:18px;font-size:14px}
.ciye-reading-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 16px;color:#ac542c;border:1px solid #c97a52;border-radius:3px;background:#fffaf1;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
.ciye-reader{padding:30px 0 64px;background:#fbf3e7}
.ciye-reader .wrap{max-width:1280px;padding:0}
.ciye-reader__layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:70px;align-items:start}
.ciye-reader__directory{position:sticky;top:24px;min-width:0;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-right:20px;border-right:1px solid #ead9c0}
.ciye-reader__directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ead9c0;padding-bottom:12px}
.ciye-reader__directory h2,.ciye-book-directory h2{font:600 22px/1.6 "Source Han Serif SC","Noto Serif CJK SC","Songti SC",SimSun,serif;margin:0;letter-spacing:2px}
.ciye-directory-close{display:none;align-items:center;gap:5px;border:0;background:transparent;font:inherit;font-size:13px;min-height:44px;cursor:pointer;color:#7b6755}
.ciye-reader-ready .ciye-directory-close{display:inline-flex}
.ciye-volume{border-bottom:1px solid #ead9c0}
.ciye-volume summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:50px;padding:8px 0;font-size:15px;font-weight:600}
.ciye-volume summary::-webkit-details-marker,.ciye-devlog-group summary::-webkit-details-marker{display:none}
.ciye-volume summary small{font-size:12px;color:#887563;font-weight:400;white-space:nowrap;margin-left:auto}
.ciye-volume summary>.dashicons{font-size:16px;width:16px;height:16px;flex-shrink:0}
.ciye-volume[open]>summary{color:#ac542c}
.ciye-volume[open]>summary>.dashicons,.ciye-devlog-group[open]>summary>.dashicons{transform:rotate(90deg)}
.ciye-volume__chapters{list-style:none;margin:0;padding:4px 0 12px 14px}
.ciye-reader__directory .ciye-volume__chapters{max-height:276px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.ciye-volume__chapters li{margin:0;padding:0}
.ciye-volume__chapters a{display:block;padding:10px 12px;border-left:2px solid #ead9c0;color:#5b4a3a;font-size:15px;line-height:1.6;text-decoration:none}
.ciye-volume__chapters a[aria-current="page"]{color:#ac542c;background:#f9e9d7;border-left-color:#ac542c;font-weight:600}
.ciye-volume__chapters a:hover{color:#ac542c;background:#f9e9d7}
.ciye-reader__book-link{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:14px;color:#7b6755;margin-top:14px}
.ciye-reader__article{min-width:0}
.ciye-reader__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #ead9c0;padding-bottom:20px;margin-bottom:22px}
.ciye-reader__heading h1{font:600 30px/1.5 "Source Han Serif SC","Noto Serif CJK SC","Songti SC",SimSun,serif;letter-spacing:1px;margin:0 0 8px}
.ciye-reader__meta{color:#ac542c;font-size:15px;line-height:1.7;margin:0}
.ciye-reader__meta span{margin-left:14px;padding-left:14px;border-left:1px solid #d9c3a8;color:#887563;white-space:nowrap}
.ciye-directory-toggle{display:none}
.ciye-reader-ready .ciye-directory-toggle{display:inline-flex}
.ciye-reader .ciye-reader__content{font-size:20px;line-height:2.05;color:#5b4a3a}
.ciye-reader .ciye-reader__content p{margin:0 0 20px;text-indent:2em}
.ciye-reader .ciye-reader__content>p:first-of-type::first-letter{float:none;font:inherit;color:inherit;margin:0;padding:0}
.ciye-reader__pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:32px;padding-top:20px;border-top:1px solid #ead9c0;font-size:14px}
.ciye-reader__pagination a{display:inline-flex;align-items:center;gap:6px;color:#ac542c;min-height:44px}
.ciye-reader__pagination [aria-disabled]{color:#887563;font-size:13px}
.ciye-reader__neighbor{display:none}
.ciye-reader--collapsed .ciye-reader__layout,.ciye-reader--no-book .ciye-reader__layout{grid-template-columns:minmax(0,820px);justify-content:center}
.ciye-reader--collapsed .ciye-reader__directory{display:none}
.ciye-book-directory{padding-top:36px;padding-bottom:64px}
.ciye-book-directory>h2{margin-bottom:20px}
.ciye-book-directory .ciye-volume__chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 24px}
.ciye-book-directory .ciye-volume:not([open])>.ciye-volume__chapters{display:none}
.ciye-book-directory .ciye-volume summary{font-size:18px;min-height:64px}
.ciye-reader a:focus-visible,.ciye-reader button:focus-visible,.ciye-volume summary:focus-visible,.ciye-devlog-group summary:focus-visible{outline:2px solid #ac542c;outline-offset:3px}
.ciye-reading-dialog{inset:0 0 0 auto;width:min(360px,calc(100vw - 24px));max-width:none;height:100dvh;max-height:none;margin:0;padding:18px 20px;border:0;background:#fffaf1;color:#5b4a3a}
.ciye-reading-dialog::backdrop{background:#372c2373}
.ciye-reading-dialog .ciye-reader__directory{position:static;max-height:none;padding:0;border:0;overflow:visible;font-family:STSong,"Songti SC",SimSun,serif}
.ciye-reading-dialog .ciye-volume__chapters{max-height:276px;overflow:auto;scrollbar-width:thin}
.ciye-reading-dialog .ciye-directory-close{display:inline-flex}
.ciye-reading-open{overflow:hidden}
.ciye-home-cover{display:block;width:176px;flex:0 0 176px}
.ciye-home-cover img{display:block;width:100%;height:auto;box-shadow:0 5px 14px #5b4a3a26}
@media(max-width:900px){
 .ciye-book-banner .wrap,.ciye-reader .wrap,.ciye-book-directory.wrap{width:calc(100% - 40px)}
 .ciye-reader__layout{grid-template-columns:250px minmax(0,1fr);gap:28px}
 .ciye-reader__heading h1{font-size:26px}.ciye-reader__meta span{display:block;margin:4px 0 0;padding:0;border:0}
}
@media(max-width:760px){
 .ciye-book-banner{background-position:65% center}.ciye-book-banner__inner{min-height:200px;padding:24px 0;gap:22px}
 .ciye-book-cover-link{width:100px}.ciye-book-name{font-size:32px;letter-spacing:3px}.ciye-book-description{font-size:14px;line-height:1.65}.ciye-book-count{font-size:12px;letter-spacing:1px}
 .ciye-book-banner .ciye-library-label{font-size:13px;margin-bottom:5px}.ciye-book-actions{gap:12px;font-size:13px}
 .ciye-reader{padding-top:24px}.ciye-reader__layout{display:block}.ciye-reader__heading h1{font-size:25px}.ciye-reader__heading{padding-bottom:18px;margin-bottom:22px}
 .ciye-reader__directory{position:static;max-height:none;border-right:0;padding:0;margin-bottom:24px}
 .ciye-reader .ciye-reader__content{font-size:18px;line-height:2.05}.ciye-reader__pagination{font-size:13px;gap:8px}
 .ciye-reader__pagination .dashicons{width:16px;font-size:16px}.ciye-book-directory .ciye-volume__chapters{grid-template-columns:1fr}
 .ciye-home-cover{width:130px;flex-basis:130px}
}
@media(prefers-reduced-motion:reduce){.ciye-reader *{scroll-behavior:auto}}

/* Scoped immersive controls: other pages keep their existing header. */
.ciye-floating-reader body{padding-top:74px}
.ciye-floating-reader .site-header.site-header--drawer .bar{height:74px;min-height:74px}
.ciye-floating-reader .site-header.site-header--drawer .main-navigation a{font-size:16px}
.ciye-floating-reader{--reading-header-top:0px}
.ciye-floating-reader:has(body.admin-bar){--reading-header-top:32px}
.ciye-floating-reader .site-header{position:fixed;top:var(--reading-header-top);left:0;right:0;z-index:30;transition:transform .18s ease,visibility .18s}
.ciye-reading-header-hidden .site-header{transform:translateY(calc(-100% - var(--reading-header-top)));visibility:hidden}
.ciye-reading-header-close{display:inline-flex;align-items:center;gap:5px;min-height:44px;border:0;background:transparent;font:inherit;font-size:13px;color:#7b6755;cursor:pointer;white-space:nowrap}
.ciye-floating-reader .site-header .wrap{max-width:1280px}
.ciye-floating-reader .site-header .bar{gap:20px}
.ciye-reading-tools{position:fixed;z-index:25;right:max(24px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);width:70px;padding:8px 9px;background:#fffaf1;border:1px solid #ead9c0;border-radius:18px;box-shadow:0 4px 18px #5b4a3a15}
.ciye-reading-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:50px;min-height:76px;padding:7px 0;border:0;background:transparent;color:#ac542c;font:14px/1.4 "Microsoft YaHei",sans-serif;cursor:pointer}
.ciye-reading-tools button+button{border-top:1px solid #ead9c0}
.ciye-reading-tools .dashicons{font-size:22px;width:22px;height:22px}
.ciye-reading-tools button[aria-expanded=true]{color:#763c20}
.ciye-reading-tools button:focus-visible,.ciye-reading-top-edge:focus-visible,.ciye-reading-header-close:focus-visible{outline:2px solid #ac542c;outline-offset:3px}
.ciye-reading-top-edge{position:fixed;z-index:29;top:var(--reading-header-top);left:50%;transform:translateX(-50%);width:80px;min-height:24px;background:#fffaf1;border:1px solid #ead9c0;border-top:0;border-radius:0 0 12px 12px;color:#ac542c;cursor:pointer;visibility:hidden}
.ciye-reading-header-hidden .ciye-reading-top-edge{visibility:visible}
.ciye-floating-reader .ciye-reader--collapsed .ciye-reader__layout{grid-template-columns:minmax(0,820px)}
.ciye-floating-reader .ciye-reader__content{padding-bottom:80px;font-size:22px;line-height:1.95}
.ciye-floating-reader .ciye-reading-dialog{width:min(360px,calc(100vw - 24px))}
.ciye-floating-reader .ciye-reading-dialog::backdrop{background:#372c234d}
.ciye-drawer-floating-close{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));right:20px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;background:#fffaf1;border:1px solid #ead9c0;border-radius:12px;color:#ac542c;font:14px/1.5 "Microsoft YaHei",sans-serif;cursor:pointer}
.ciye-floating-reader .ciye-reading-dialog{padding-bottom:90px}
@media(max-width:1100px) and (min-width:761px){.ciye-floating-reader .ciye-reader .wrap{width:calc(100% - 190px);margin-left:55px}.ciye-floating-reader .desktop-navigation ul.main-navigation{gap:14px}}
@media(max-width:760px){
 .ciye-floating-reader body{padding-top:60px}
 .ciye-floating-reader .site-header.site-header--drawer .bar{height:60px;min-height:60px}
 .ciye-floating-reader .ciye-reader__content{font-size:18px;line-height:2.05}
 .ciye-floating-reader:has(body.admin-bar){--reading-header-top:46px}
 .ciye-reading-tools{right:max(12px,env(safe-area-inset-right));top:auto;bottom:calc(20px + env(safe-area-inset-bottom));transform:none;width:56px;padding:5px}
 .ciye-reading-tools button{width:44px;min-height:52px;font-size:12px;gap:1px}
 .ciye-reading-tools .dashicons{font-size:20px;width:20px;height:20px}
 .ciye-floating-reader .ciye-reader .wrap{width:calc(100% - 96px);margin-left:20px}
 .ciye-floating-reader .ciye-reader__heading h1{font-size:23px}
 .ciye-floating-reader .ciye-directory-toggle{padding:7px 9px}
 .ciye-reading-header-close{font-size:12px}.ciye-reading-header-close .dashicons{display:none}
 .ciye-reading-top-edge{min-height:28px;width:64px}
}
@media(prefers-reduced-motion:reduce){.ciye-floating-reader .site-header{transition:none}}

/* Devlogs share the reading controls while keeping editorial paragraph layout. */
.ciye-log-reader .ciye-reader__heading h1{font-size:30px;line-height:1.6;letter-spacing:1px}
.ciye-log-reader .ciye-log-eyebrow{color:#ac542c;font-size:13px;letter-spacing:1px;margin:0 0 10px}
.ciye-reader.ciye-log-reader .ciye-reader__content{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:17px;line-height:2}
.ciye-reader.ciye-log-reader .ciye-reader__content p{text-indent:0;margin:0 0 24px}
.ciye-log-directory a{display:flex;align-items:flex-start;gap:12px}
.ciye-log-number{color:#ac542c;flex:0 0 24px;font:13px/1.9 "Microsoft YaHei",sans-serif}
.ciye-reading-dialog .ciye-log-volume .ciye-volume__chapters{max-height:calc(100dvh - 290px)}
.ciye-log-comments{margin-top:40px;padding-top:24px;border-top:1px solid #ead9c0}
@media(max-width:760px){.ciye-log-reader .ciye-reader__heading h1{font-size:24px;line-height:1.65}.ciye-log-reader .ciye-reader__heading{flex-wrap:wrap}.ciye-reader.ciye-log-reader .ciye-reader__content{font-size:16px;line-height:2}.ciye-log-comments input:not([type=checkbox]),.ciye-log-comments textarea{max-width:100%;box-sizing:border-box}}

.ciye-reader.ciye-log-reader .ciye-reader__content{max-width:700px}
.ciye-log-reader .ciye-reader__content h2{font:600 23px/1.6 STSong,SimSun,serif;letter-spacing:1px;margin:38px 0 16px;color:#5b4a3a}
.ciye-log-reader .ciye-reader__content .ciye-log-lead{font-size:19px;line-height:1.85;color:#6c4d36;margin-bottom:28px}
.ciye-log-reader .ciye-reader__content .ciye-log-status{font-size:13px;line-height:1.8;color:#7b6755;margin:0 0 16px}
.ciye-devlog-hub.wrap{max-width:920px;padding-top:46px;padding-bottom:64px}
.ciye-devlog-hub__intro{max-width:740px;margin-bottom:38px}
.ciye-devlog-hub .ciye-log-eyebrow{font-size:13px;color:#ac542c;letter-spacing:2px;margin:0 0 12px}
.ciye-devlog-hub h1{font-size:36px;line-height:1.5;margin:0 0 18px}
.ciye-devlog-hub__summary{font-size:16px;line-height:1.9}
.ciye-devlog-hub__summary p{margin:0 0 10px}
.ciye-devlog-hub__summary h2{font-size:17px;margin:18px 0 6px;letter-spacing:1px}
.ciye-devlog-hub__list-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid #ead9c0}
.ciye-devlog-hub__list-head h2{font-size:23px;margin:0}
.ciye-devlog-hub__list-head>span{font-size:13px;color:#7b6755}
.ciye-log-index{list-style:none;margin:0;padding:0}
.ciye-log-index li{display:grid;grid-template-columns:34px minmax(0,1fr) 44px;gap:18px;padding:24px 0;border-bottom:1px solid #ead9c0}
.ciye-log-index__number{font-size:14px;color:#ac542c;padding-top:29px}
.ciye-log-index h3{font-size:22px;line-height:1.6;margin:3px 0 7px;letter-spacing:1px}
.ciye-log-index h3 a{color:#5b4a3a}
.ciye-log-index p{font-size:15px;line-height:1.8;color:#7b6755;margin:0}
.ciye-log-index .ciye-log-index__date{font-size:12px}
.ciye-log-index__open{display:flex;align-items:center;justify-content:center;min-height:44px;color:#ac542c}
@media(max-width:760px){.ciye-devlog-hub.wrap{padding-top:26px}.ciye-devlog-hub h1{font-size:28px}.ciye-log-index li{grid-template-columns:26px minmax(0,1fr) 30px;gap:10px;padding:20px 0}.ciye-log-index h3{font-size:20px}.ciye-log-index p{font-size:14px}.ciye-log-reader .ciye-reader__content h2{font-size:21px;margin-top:30px}.ciye-log-reader .ciye-reader__content .ciye-log-lead{font-size:17px}}
