/**
 * 详情页两种非正常态（本站增量样式，基础 styles.css 零改动）
 *
 * 基础正文容器只有「有内容」一种版式：内容下架或服务端限制阅读时，
 * 容器里没有任何文字，页面上就是一段空白。这里给这两种状态一个居中的
 * 说明块，基础 .post-entry / .article 的原有内边距与字号不覆盖。
 *
 * 评论空态同理：实测全站 plnum>0 的信息为 0 条，评论区必须给真实空态。
 * 由 server/lsrong-shell-plugin.ts 追加在基础 <head> 之后，保证覆盖顺序。
 * 基础 html{font-size:100px}，故 .16rem = 16px。
 */

.lsrong-detail-notice {
  padding: .6rem .2rem;
  text-align: center;
}
.lsrong-detail-notice p {
  margin: 0 0 .24rem;
  font-size: .16rem;
  line-height: 1.8;
  letter-spacing: .02em;
  color: #666;
}
.lsrong-detail-notice .btn {
  font-size: .14rem;
  cursor: pointer;
}

.lsrong-comment-empty {
  padding: .32rem 0;
  font-size: .14rem;
  line-height: 1.8;
  letter-spacing: .02em;
  text-align: center;
  color: #b1b1b1;
}

/* ------------------------------------------------------------------
 * 详情页左侧栏目菜单
 * 基础把「全部 + 所有子栏目」都渲染成同一个 icon-web（channelIcon 只取
 * classpath 第一段），整列图标完全一样。图标本身已由数据层 menuIcon()
 * 按栏目分配成不同字形，这里只调整字形尺寸与选中态：
 *   · 未选中＝灰字 + 灰线性图标；选中/悬停＝白底胶囊 + 橙色图标与文字
 *   · 对齐参照基础侧栏：图标略大、行距克制、胶囊带极浅投影
 * ------------------------------------------------------------------ */
.post-menus .part-list-title .items .item {
  line-height: 1.65;
  margin-bottom: .45em;
}
.post-menus .item > a.item-wrap {
  display: flex;
  align-items: center;
  min-height: 2.5em;
  padding: .2em .7em;
  border-radius: .55em;
  -webkit-transition: background-color .2s, color .2s, box-shadow .2s;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.post-menus .item .item-ico {
  display: inline-block;
  width: 1.9em;
  height: 1.9em;
  line-height: 1.9em;
  margin-right: .6em;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  vertical-align: middle;
  flex: 0 0 auto;
}
.post-menus .item .item-ico .ico {
  font-size: 1.5em;
  line-height: 1;
  margin: 0;
  color: inherit;
}
.post-menus .item .item-ico .ico::before {
  font-size: 1em;
  line-height: 1;
  margin: 0;
  width: 1em;
  color: inherit;
}
.post-menus .item .item-title {
  font-size: 1em;
  font-weight: normal;
}
.post-menus .item a.item-wrap:hover,
.post-menus .item.current a.item-wrap {
  background-color: #fff;
  color: var(--lsr-primary);
  -webkit-box-shadow: 0 .04rem .18rem rgba(0, 0, 0, .07);
  box-shadow: 0 .04rem .18rem rgba(0, 0, 0, .07);
}
.post-menus .item.current a.item-wrap {
  font-weight: 600;
}

/* 新闻资讯详情是另一套侧栏 DOM（.s-menu / .hy-menu-item），
   图标同样走 menuIcon()，这里只统一字形大小与对齐 */
.s-menu .hy-menu-item .ico,
.s-menu .hy-menu-item .ico::before {
  font-size: 1.2em;
  line-height: 1;
  margin: 0 .35em 0 0;
  width: 1em;
  vertical-align: -.1em;
}

/* ------------------------------------------------------------------
 * 详情页右栏「榜上有名 联系我们」卡（.hangye-welcome）
 * 基础字号基线：.w-title 185.71%(26px)、.wc-ico 214.29%(30px)、
 * .w-subtitle/.wc-title 100%(14px)。窄侧栏（内容宽约 232px）里
 * 26px 标题「榜上有名 联系里奥模板」被挤成两行、30px 图标偏大、
 * 四项能力标签偏小，头重脚轻。这里收敛比例：标题一行放下、
 * 图标与标签协调。该卡只在桌面右栏出现（移动端右栏整体不渲染），
 * 故无需 media 分段。
 * ------------------------------------------------------------------ */
.hangye-welcome .w-title {
  font-size: 145%;
  line-height: 1.25;
}
.hangye-welcome .wc-ico {
  font-size: 175%;
}
.hangye-welcome .wc-title {
  font-size: 105%;
}
/* ------------------------------------------------------------------
 * 详情页正文图片：按原图比例自适应（用户 2026-11-23 反馈「宽对了高不对」）
 *
 * 帝国编辑器写入正文的图片带内联 style="width:1000px; height:3404px"。
 * 内联样式优先级高于普通 CSS 规则：max-width:100% 把宽度压到容器宽(375px)，
 * 但 height:3404px 内联值仍锁死原图高度 → 图片被拉成「宽 375 / 高 3404」细长条
 * （实测 /templates/500 第 1 张 natural 1000×3404，渲染 375×3404，比例失真）。
 * 用 !important 覆盖内联的非 important 高宽，让浏览器按 natural 比例等比缩放。
 * 模板 / 下载 / 新闻详情页都加载本文件，统一覆盖。
 * ------------------------------------------------------------------ */
.post-article .article img,
.post-article.article img,
.lsr-news-article img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}

/* ------------------------------------------------------------------
 * H5 相关阅读缩略图错位（用户 2026-11-23 反馈「右侧图片错位」）
 *
 * 基础 h5：.item-thumb 为 position:absolute; right:0; top:0; width:110px，
 * .thumb 用 padding-top:64.5% 撑高 ≈71px；它相对 .item-main(position:relative)
 * 定位，而 .item-main 只有一行标题高 ≈22px → 图片底部溢出卡片约 22px，
 * 且顶部与标题齐平、日期行却在上方，视觉上「图片下沉/错位」。
 * 修法：给 .item-main 一个 min-height 与图片同高，让卡片包住图片；
 * 图片改 top:50% + translateY(-50%) 垂直居中；标题用 flex 垂直居中于该高度。
 * 仅 h5 生效，PC 版式不动。
 * ------------------------------------------------------------------ */
@media (max-width: 767.5px) {
  .post-related-new .item-f-article .item-main {
    min-height: 71px;
    padding-right: 125px;
  }
  .post-related-new .item-f-article .item-thumb {
    top: 50%;
    transform: translateY(-50%);
  }
  .post-related-new .item-f-article .item-title {
    display: flex;
    align-items: center;
    min-height: 71px;
    margin-bottom: 0;
    padding-right: 0;
  }
  .post-related-new .item-f-article .item-title a {
    padding-bottom: 0;
  }
}
