/* 李常受文集阅读器 —— 复用 reader.css 四主题外壳。
   适配李 markup：p.Z0(册名)/p.B0(书名)/p.daoh(导航)/hr/p.A0(章标题)/p.A*(正文段)。
   作用域 html.bk-lee。 */

/* ① 隐藏旧 chrome（册名/书名头、导航、分隔线、章标题——章标题改由 chead 显示） */
html.bk-lee.bk-ready #bk-root p.daoh,
html.bk-lee.bk-ready #bk-root hr,
html.bk-lee.bk-ready #bk-root p.Z0,
html.bk-lee.bk-ready #bk-root p.B0,
html.bk-lee.bk-ready #bk-root p.A0{ display:none !important; }

/* ② 阅读栏：收窄居中（李正文是扁平 <p>，直接约束 #bk-root） */
html.bk-lee.bk-ready #bk-root{ max-width:720px; margin:0 auto; padding:0 24px 8px; box-sizing:border-box;
  color:var(--bk-fg) !important; font-size:19.6px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

/* 正文段（统一字号，2em 缩进，两端对齐） */
/* ⚠️老李样式表(hbideLeestylesheet.css)有 body{width:94%}——把页面挤成左满右空的不对称布局(Kris反馈)。覆盖掉。 */
html.bk-lee body{ width:auto !important; margin:0 !important; }
/* ⚠️reader.css 给 #bk-root>p 加了 max-width:700+padding:0 24px(books 裸p用)——李的 #bk-root 自身已有 24px padding,
   叠加成 48px/边导致正文过窄(Kris反馈)。这里覆盖掉,恢复与书报合辑一致的宽度。 */
html.bk-lee.bk-ready #bk-root > p{ max-width:none; padding-left:0 !important; padding-right:0 !important; }
html.bk-lee.bk-ready #bk-root > p{ color:var(--bk-fg) !important; margin:.32em 0 !important; font-size:1em !important;
  text-indent:2em; text-align:left; -webkit-font-smoothing:auto !important; -moz-osx-font-smoothing:auto !important; }
html.bk-lee.bk-ready #bk-root a{ color:var(--bk-link) !important; }

/* ③ 字号 6 档 + 行距 3 档（作用到 #bk-root 与段落，段落 !important 覆盖旧绝对行高） */
/* ⭐字号统一到手机舒适尺寸(默认fs=3=18.5px，原25.5px过大)，与书报合辑一致 */
html.bk-lee[data-bk-fs="1"] #bk-root{ font-size:15.5px; } html.bk-lee[data-bk-fs="2"] #bk-root{ font-size:17px; }
html.bk-lee[data-bk-fs="3"] #bk-root{ font-size:18.5px; } html.bk-lee[data-bk-fs="4"] #bk-root{ font-size:20.5px; }
html.bk-lee[data-bk-fs="5"] #bk-root{ font-size:22.5px; } html.bk-lee[data-bk-fs="6"] #bk-root{ font-size:25px; }
html.bk-lee[data-bk-ls="1"] #bk-root > p{ line-height:1.66 !important; }
html.bk-lee[data-bk-ls="2"] #bk-root > p{ line-height:1.94 !important; }
html.bk-lee[data-bk-ls="3"] #bk-root > p{ line-height:2.3  !important; }

/* 书开卷页的章节列表（reader-lee 渲染成 .bk-chaplist，复用书报合辑样式即可） */
html.bk-lee.bk-ready #bk-root .bk-chaplist{ max-width:100%; margin:0; padding:0 0 40px; }

/* 从 bibletool 导入的章节：count_books 同款 .cont(正文段)/.cn1(小标题) 格式 */
html.bk-lee.bk-ready #bk-root .cont{ color:var(--bk-fg) !important; margin:.32em 0 !important; text-indent:2em; text-align:left;
  -webkit-font-smoothing:auto !important; -moz-osx-font-smoothing:auto !important; }
html.bk-lee.bk-ready #bk-root .cn1{ color:var(--bk-fg) !important; display:block; margin:1.7em 0 .6em !important; padding-left:13px;
  font-size:1.11em; font-weight:700; line-height:1.5; border-left:3px solid var(--bk-gold); text-indent:0; -webkit-font-smoothing:auto !important; }
.cn1{ font-size:1.11em; font-weight:700; }
html.bk-lee.bk-ready #bk-root #c, html.bk-lee.bk-ready #bk-root #c > div{ margin:0; }
html.bk-lee.bk-ready #bk-root .cont a, html.bk-lee.bk-ready #bk-root .cn1 a{ color:var(--bk-link) !important; }
/* 行距也作用到 .cont */
html.bk-lee[data-bk-ls="1"] #bk-root .cont{ line-height:1.66 !important; }
html.bk-lee[data-bk-ls="2"] #bk-root .cont{ line-height:1.94 !important; }
html.bk-lee[data-bk-ls="3"] #bk-root .cont{ line-height:2.3  !important; }

/* 篇章导航与其他书报阅读器保持同一无框形态 */
.bk-pager{ display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--bk-line); padding:14px 24px 20px; }
.bk-pager button{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 2px;
  border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--bk-fg);
  font-size:14px; font-weight:500; line-height:1; font-family:inherit; }
.bk-pager button svg{ width:17px; height:17px; color:var(--bk-gold); }

/* 窄屏动作区保持完整可操作；固定页眉由 reader.css 统一提供 */
.bk-bar-acts{ flex:1 1 auto; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; }
.bk-bar-acts .bk-bb{ flex:0 0 auto; }
.bk-bb.bk-back{ flex:0 0 44px; width:44px; min-height:44px; }
@media(max-width:360px){
  .bk-bar-acts .bk-bb.bk-lb{ flex:1 0 32px; width:32px; min-width:32px; height:54px; min-height:44px; padding:0; }
}
