/*
 * Jizone 文章页样式（默认变体）
 * 适用范围：单篇文章页（body.single）
 * 说明：为文章正文、导航及“猜你喜欢”区块提供基础排版与间距。
 */

/* 正文排版 */
body.single .entry-content {
  line-height: 1.8;
  font-size: 16px;
  color: #222;
}

/* 面包屑（移动到标题上方） */
body.single .breadcrumbs {
  font-size: 13px;
  color: #999;
  margin: 8px;
}
body.single .breadcrumbs a { color: #666; text-decoration: none; }
body.single .breadcrumbs .current { color: #999; }

/* 标题样式贴近 JustNews */
body.single .entry-header .entry-title {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: #111;
}
@media (min-width: 992px) {
  body.single .entry-header .entry-title { font-size: 30px; }
}

/* 元信息栏：作者头像+名称、发布日期、阅读量 */
body.single .jz-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #666;
  margin-bottom: 18px;
}
body.single .jz-meta-bar .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.single .jz-meta-bar .author .author-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
body.single .jz-meta-bar .author .author-name { color: #333; }
body.single .jz-meta-bar .author .author-name:hover { color: #1677ff; }
body.single .jz-meta-bar .views { color: #999; }

body.single .post-navigation {
  margin-top: 28px;
}

/* 猜你喜欢区块容器样式（与默认变体协调） */
body.single .you-might-like {
  margin-top: 32px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
/* 猜你喜欢卡片：固定尺寸 + 文本溢出省略 */
body.single .you-might-like .yml-list { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { body.single .you-might-like .yml-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { body.single .you-might-like .yml-list { grid-template-columns: repeat(4, 1fr); } }
body.single .you-might-like .yml-item { border: 1px solid #eee; border-radius: 8px; background: #fff; padding: 10px 12px; box-sizing: border-box; height: 72px; display: flex; align-items: center; }
body.single .you-might-like .yml-thumb { display: block; width: 48px; height: 48px; min-width: 48px; min-height: 48px; flex: 0 0 48px; border-radius: 6px; overflow: hidden; margin-right: 10px; }
body.single .you-might-like .yml-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; aspect-ratio: 1 / 1; display: block; }
body.single .you-might-like .yml-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; color: #333; font-size: 14px; line-height: 1.4; }
body.single .you-might-like .yml-link:hover { color: #1677ff; }

/* 点赞按钮样式 */
body.single .jz-like-wrap {
  margin-top: 24px;
  text-align: center;
}
body.single .jz-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
}
body.single .jz-like-btn .jz-like-icon {
  color: #e74c3c;
}
body.single .jz-like-btn.liked {
  border-color: #e74c3c;
  background: #ffecec;
}

body.single .jz-author-box { margin-top: 24px; }
body.single .jz-author-box .uc-profile-header { display:flex; flex-direction:column; align-items:center; position:relative; padding:16px; background: linear-gradient(90deg,#f7fbff,#ffffff); border:1px solid #e6eef8; border-radius:12px; margin:12px 0; overflow:visible; }
body.single .jz-author-box .uc-profile-header::before { content:""; position:absolute; left:0; right:0; top:0; bottom:0; background: rgba(0,0,0,0.2); border-radius: inherit; pointer-events:none; z-index:0; }
@media (min-width: 992px) {
  body.single .jz-author-box .uc-profile-header { display:grid; grid-template-columns: 160px 1fr; grid-template-rows: auto auto; align-items:center; padding:16px; }
  body.single .jz-author-box .uc-profile-header .uc-avatar { margin-top:0; justify-self:center; z-index:1; grid-column:1; grid-row:1; }
  body.single .jz-author-box .uc-profile-header .uc-avatar, 
  body.single .jz-author-box .uc-profile-header .uc-name-row { box-sizing:border-box; }
  body.single .jz-author-box .uc-profile-header .uc-avatar .avatar { margin:0 auto; }
  body.single .jz-author-box .uc-profile-header .uc-name-row { grid-column: 1; grid-row: 2; display:block; text-align:center; justify-self:center; }
  body.single .jz-author-box .uc-profile-header .uc-name-row .uc-name { display:inline-block; }
  body.single .jz-author-box .uc-profile-header .uc-header-info { grid-column: 2; text-align:left; z-index:1; align-self:center; margin-top:-6px; }
  body.single .jz-author-box .uc-profile-header .uc-signature { margin:0; color:#fff; }
  body.single .jz-author-box .uc-profile-header .uc-name-actions { grid-column:1; grid-row:3; width:160px; justify-self:center; text-align:center; margin-top:6px; }
}
body.single .jz-author-box .uc-avatar .avatar { border:3px solid #fff; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,0.12); width:96px; height:96px; }
body.single .jz-author-box .uc-name-row { display:flex; align-items:center; gap:8px; justify-content:center; margin-bottom:16px; }
body.single .jz-author-box .uc-name-row .uc-name { margin:0; font-size:20px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,0.35); }
body.single .jz-author-box .uc-name-row .uc-name a { color:#fff; text-decoration:none; }
body.single .jz-author-box .uc-name-row .uc-name a:hover { color:#fff; }
body.single .jz-author-box .uc-profile-header .uc-avatar,
body.single .jz-author-box .uc-profile-header .uc-name-row,
body.single .jz-author-box .uc-profile-header .uc-header-info { position:relative; z-index:1; }
body.single .jz-author-box .uc-profile-header .uc-name-actions { position:relative; z-index:1; }
body.single .jz-author-box .uc-signature { color:#fff; margin:8px 0 0; text-shadow:0 1px 2px rgba(0,0,0,0.35); }
body.single .jz-author-box .button-secondary { background:#fff; color:#2271b1; border:1px solid #2271b1; padding:4px 8px; border-radius:6px; text-decoration:none; }
body.single .jz-author-box .button-secondary:hover { background:#f0f7ff; }

/* 上一篇/下一篇导航样式 */
body.single .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
body.single .post-navigation .nav-previous a,
body.single .post-navigation .nav-next a {
  display: block;
  padding: 12px 16px;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
}
body.single .post-navigation .nav-previous a:hover,
body.single .post-navigation .nav-next a:hover { background: #f0f0f0; }

/* 移动端优化 */
@media (max-width: 767px) {
  body.single .entry-header .entry-title { font-size: 22px; }
  body.single .jz-meta-bar { gap: 10px; }
  body.single .jz-meta-bar .author .author-avatar img { width: 28px; height: 28px; }
  body.single .post-navigation { flex-direction: column; }
}

/* 文章内容区图片：响应式且可点击查看 */
body.single .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 4px;
  cursor: zoom-in;
}
body.single .entry-content .wp-block-image img,
body.single .entry-content p img {
  max-width: 100%;
  height: auto;
}

/* 统一居中 WordPress 常用对齐类 */
body.single .entry-content .wp-block-image,
body.single .entry-content figure,
body.single .entry-content .aligncenter {
  text-align: center;
}
body.single .entry-content .aligncenter img {
  display: block;
  margin: 12px auto;
}

/* 图片查看器（Lightbox）样式 */
.jz-img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.jz-img-stage {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.jz-img-stage img {
  max-width: 100%;
  max-height: 92vh;
  display: block;
  object-fit: contain;
}
.jz-img-close,
.jz-img-prev,
.jz-img-next {
  position: absolute;
  background: rgba(255,255,255,0.9);
  color: #111;
  border: none;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 22px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.jz-img-close:hover,
.jz-img-prev:hover,
.jz-img-next:hover {
  background: #fff;
}
.jz-img-close { top: 16px; right: 16px; }
.jz-img-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.jz-img-next { right: 16px; top: 50%; transform: translateY(-50%); }
.jz-img-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 14px;
}
body.jz-no-scroll { overflow: hidden; }