/*
 * Jizone 归档/分类页文章卡片样式（默认变体）
 * 适用范围：首页、归档、分类、标签、搜索等列表页产生的 .post-card
 * 说明：提供卡片化外观与基础排版。
 */

.post-card {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.post-card .entry-title {
  margin-top: 0;
  font-size: 20px;
}

.post-card .entry-summary {
  color: #555;
}

.post-card a.entry-title {
  text-decoration: none;
}

.post-card .post-card-thumb-link {
  display: block;
  margin: -16px -16px 12px; /* 拉伸到卡片边框内缘，顶部作为视觉主图 */
  border-bottom: 1px solid #f0f0f0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
}
.post-card .post-card-thumb-link img.post-card-thumb {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .post-card .post-card-thumb-link {
    margin-bottom: 14px;
  }
}


/* 列表卡片左右布局样式（改为 Flex，保持等高） */
.post-card.post-card-row {
  padding: 0;
}
.post-card-row {
  display: flex;
  gap: 16px;
  align-items: flex-start; /* 不再强制等高，避免拉伸破坏 5:3 比例 */
}
.post-card-row .thumb-col {
  flex: 0 0 300px;
  width: 300px;          /* 与 flex-basis 对齐，明确宽度 */
  height: auto;          /* 让高度由 aspect-ratio 计算 */
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}
.post-card-row .thumb-col .post-card-thumb-link {
  margin: 0; /* 覆盖旧样式的负外边距，避免布局错乱 */
  border: 0;
  border-radius: 0;
}
.post-card-row .thumb-col .post-card-thumb-link,
.post-card-row .thumb-col img.post-card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 横向铺满，裁切居中 */
}
.post-card-row .content-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 限制右侧高度不超过左侧图片 */
  min-height: 0; /* 允许在 Flex 中正确裁剪内容 */
}
.post-card-row .content-col .entry-title {
  margin: 0 0 8px;
  font-size: 20px;
}
/* 去除标题链接下划线 */
.post-card-row .content-col .entry-title a {
  text-decoration: none;
}
.post-card-row .content-col .entry-summary {
  color: #555;
  margin-bottom: 10px;
  display: -webkit-box;           /* 文本分行裁剪 */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;          /* 控制摘要行数，避免高度超过图片 */
  overflow: hidden;
}
/* 将作者信息固定在底部，以填满右侧高度 */
/* 作者信息靠上显示并可点击 */
.post-card-row .content-col .entry-author-meta {
  margin-top: 6px; /* 更靠近标题与摘要 */
}
.post-card-row .content-col .entry-author-meta .author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}
.post-card-row .content-col .entry-author-meta .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-row .content-col .entry-author-meta .author-name a {
  color: inherit;
  text-decoration: none; /* 去除下划线 */
}
.post-card-row .content-col .entry-author-meta .author-name a:hover {
  color: #1677ff; /* hover 高亮，和分页保持一致的主题色 */
}
.post-card-row .content-col .entry-author-meta .post-date {
  color: #777;
  margin-left: 8px;
}

/* 手机端与PC布局一致，仅比例缩小 */
@media (max-width: 767px) {
  .post-card {
    padding: 12px;
    margin-bottom: 12px;
  }
  .post-card-row {
    flex-direction: row; /* 保持左右并排布局 */
    gap: 12px;           /* 间距相应缩小 */
    height: 82px;        /* 移动端卡片总高度与特色图一致 */
  }
  .post-card-row .thumb-col {
    height: 82px;
    width: 132px;
    flex: 0 0 132px; /* 固定缩略图列宽 */
    overflow: hidden;
  }
  .post-card-row .thumb-col .post-card-thumb-link,
  .post-card-row .thumb-col img.post-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .post-card-row .content-col {
    height: 82px;        /* 右侧内容列高度与缩略图一致 */
    display: flex;
    flex-direction: column;
  }
  /* 标题在移动端显示两行，字号变小避免溢出 */
  .post-card-row .content-col .entry-title {
    font-size: 14px;     /* 标题缩小到 14px */
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制为两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-card-row .content-col .entry-title a {
    white-space: normal;  /* 允许换行 */
    max-width: 100%;      /* 不再限制为固定字符宽度 */
  }
  /* 作者与日期贴到底部（延续既有设置） */
  .post-card-row .content-col .entry-author-meta {
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
  }
  .post-card-row .content-col .entry-author-meta .author-avatar {
    width: 20px;
    height: 20px;
  }
  /* 维持移动端隐藏摘要 */
  .post-card-row .content-col .entry-summary {
    display: none !important;
    margin: 0;
  }
  /* 移动端不显示文章内容摘要（保持不变） */
  .post-card-row .content-col .entry-summary {
    display: none !important;
    margin: 0;
  }
  /* 作者与日期信息对齐到内容列底部（移动端） */
  .post-card-row .content-col .entry-author-meta {
    margin-top: auto;    /* 推到内容列底部 */
    margin-bottom: 0;    /* 与卡片底边贴齐 */
    padding-bottom: 0;
    font-size: 12px;     /* 作者信息与图标缩小 */
    display: flex;
    align-items: center;
  }
  .post-card-row .content-col .entry-author-meta .author-avatar {
    width: 20px;
    height: 20px;
  }
  /* 标题颜色统一为黑色（PC与移动端通用） */
  .post-card-row .content-col .entry-title a {
    color: #000;
  }
  .post-card-row .content-col .entry-title a:hover {
    color: #000;
  }
  .post-card-row .content-col .entry-author-meta .author-avatar {
    display: none !important;
  }
  .post-card-row .content-col .entry-author-meta .author-name {
    display: none !important;
  }
  .post-card-row .content-col .entry-author-meta .post-date {
    margin-left: 0; /* 去除与作者名相关的左边距 */
  }
}

/*
 * 分页样式（数字页码）
 */
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.navigation.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation.pagination .page-numbers li a,
.navigation.pagination .page-numbers li span {
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  text-align: center;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none;
}
.navigation.pagination .page-numbers li .current {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
  box-shadow: none;
}
.navigation.pagination .page-numbers li a:hover {
  border-color: #1677ff;
  color: #1677ff;
  box-shadow: 0 2px 6px rgba(22,119,255,.2);
}
.navigation.pagination .page-numbers li .dots {
  border-color: transparent;
  box-shadow: none;
}
@media (max-width: 767px) {
  .navigation.pagination {
    margin-top: 20px;
  }
  .navigation.pagination .page-numbers li a,
  .navigation.pagination .page-numbers li span {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    padding: 0 10px;
  }
}

/* 分类页：移动端左图右文稳定布局（参考示例样式） */
@media (max-width: 768px) {
  .category .post-card-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: auto;
  }
  .category .post-card-row .thumb-col {
    width: 120px;
    flex: 0 0 120px;
    height: auto;
    aspect-ratio: 4 / 3; /* 接近示例缩略图的比例 */
    overflow: hidden;
    border-radius: 8px;
  }
  .category .post-card-row .thumb-col .post-card-thumb-link,
  .category .post-card-row .thumb-col img.post-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .category .post-card-row .content-col {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 0;
  }
  .category .post-card-row .content-col .entry-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  /* 覆盖通用规则，避免作者信息被推到最底部 */
  .category .post-card-row .content-col .entry-author-meta {
    margin-top: 6px !important;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
  }
}