/* ==========================================================================
   Hibachi W – Blog List Page (blog-page.css)
   仅用于 blog.html?page=xxx
========================================================================== */

/* ===================== 整体节奏 ===================== */

.blog-page .th-blog-wrapper.space-top {
  padding-top: 80px;
}

.blog-page .th-blog-wrapper.space-extra-bottom {
  padding-bottom: 100px;
}

.blog-page .th-blog-wrapper {
  background-color: #f5f5f7;
}

/* 左列底部留白 */
.blog-page .th-blog-wrapper .col-xxl-8.col-lg-7 {
  margin-bottom: 40px;
}

/* ===================== 博客列表卡片 ===================== */

.blog-page .th-blog {
  margin-bottom: 22px;
}

.blog-page .blog-single {
  position: relative;
  margin-bottom: 22px;
  padding: 26px 28px;              /* ✅ 基准 padding（对齐用） */
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(1, 15, 28, 0.08);
}

.blog-page .blog-single .blog-content {
  margin: 0;
}

/* meta */
.blog-page .blog-meta {
  margin: -0.3em 0 12px;
}

.blog-page .blog-meta span {
  display: inline-block;
  margin-right: 16px;
  padding-right: 20px;
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  position: relative;
}

.blog-page .blog-meta span:after {
  content: '';
  width: 1px;
  height: 16px;
  background-color: #d1d5db;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.blog-page .blog-meta span:last-child {
  margin-right: 0;
  padding-right: 0;
}

.blog-page .blog-meta span:last-child:after {
  display: none;
}

.blog-page .blog-meta i {
  margin-right: 6px;
  color: #ff4f00;
  font-size: 13px;
}

/* 标题 */
.blog-page .blog-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
  max-width: 720px;
}

.blog-page .blog-title a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
}

.blog-page .blog-title a:hover {
  color: #ff4f00;
}

/* Read More 按钮 */
.blog-page .blog-single .hw-btn {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ===================== 分页 ===================== */

.blog-page .th-pagination {
  margin-top: 10px;
  text-align: center;
}

.blog-page .th-pagination ul {
  margin: 0;
  padding: 0;
}

.blog-page .th-pagination li {
  display: inline-block;
  margin: 0 12px;
}

.blog-page .th-pagination a,
.blog-page .th-pagination span {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  background-color: #e5e7eb;
  color: #111827;
  text-decoration: none;
}

.blog-page .th-pagination a:hover,
.blog-page .th-pagination .active {
  background-color: #ff4f00;
  color: #ffffff;
}

/* ===================== Sidebar —— ✅最终对齐方案 ===================== */

/* ✅ 去掉 sidebar 额外顶距（关键） */
.blog-page .sidebar-area {
  padding-top: 0;
}

/* Sidebar 卡片统一样式 */
.blog-page .widget {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 22px 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(1, 15, 28, 0.06);
}

.blog-page .widget:last-child {
  margin-bottom: 0;
}

/* 搜索 */
.blog-page .widget_search .search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-page .widget_search input[type="text"] {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.blog-page .widget_search button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: #ff4f00;
  color: #fff;
}

/* 分类 */
.blog-page .widget_categories .widget_title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}

.blog-page .widget_categories a {
  display: block;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
}

.blog-page .widget_categories a:hover {
  color: #ff4f00;
}

/* 作者卡片 */
.blog-page .author-widget-wrap {
  text-align: center;
}

.blog-page .author-widget-wrap .avater {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.blog-page .author-widget-wrap .avater img {
  max-width: 150px;
  border-radius: 999px;
}

.blog-page .author-widget-wrap .name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-page .author-widget-wrap .author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 14px;
}

.blog-page .author-social a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  text-align: center;
  line-height: 30px;
  font-size: 13px;
  color: #4b5563;
}

.blog-page .author-social a:hover {
  background-color: #ff4f00;
  border-color: #ff4f00;
  color: #fff;
}

/* ===================== 响应式 ===================== */

@media (max-width: 991px) {

  .blog-page .th-blog-wrapper.space-top {
    padding-top: 60px;
  }

  .blog-page .th-blog-wrapper.space-extra-bottom {
    padding-bottom: 70px;
  }

  .blog-page .blog-single {
    padding: 24px 22px;
  }

  /* 移动端不需要列对齐 */
  .blog-page .sidebar-area .widget:first-child {
    margin-top: 0;
  }
}

@media (max-width: 767px) {

  .blog-page .blog-single {
    padding: 22px 18px;
  }

  .blog-page .blog-title {
    font-size: 20px;
  }
}
/* ==== Blog 列表页：强制修正右侧 Sidebar 顶部间距 ==== */
.blog-page .th-blog-wrapper .sidebar-area {
  padding-top: 0 !important;
}
/* =====================
   Blog Pagination – Final Style
===================== */

.blog-page .th-pagination ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.blog-page .th-pagination li {
  display: inline-block;
  margin: 0 6px;
}

/* ✅ 关键：背景色加在 a 上 */
.blog-page .th-pagination li a,
.blog-page .th-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  height: 40px;
  padding: 0 12px;

  font-size: 15px;
  font-weight: 500;

  border-radius: 8px;
  background-color: #e5e7eb;   /* ✅ 默认灰背景 */
  color: #111827;

  text-decoration: none;
  transition: all 0.2s ease;
}

/* hover */
.blog-page .th-pagination li a:hover {
  background-color: #ff4f00;
  color: #ffffff;
}

/* 当前页（如果以后用 span / active） */
.blog-page .th-pagination li span,
.blog-page .th-pagination a.active {
  background-color: #ff4f00;
  color: #ffffff;
}

.blog-page .blog-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  margin-bottom: 18px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}
