/* ============================
   Hibachi W – Blog Detail Page
   /home/assets/css/pages/blog-detail.css
   页面类：.blog-detail-page
   只给 /blog-details/... 用
============================ */

/* ========== 1. 面包屑区域 ========== */

.blog-detail-page .breadcumb-blog-detail {
  background-color: #111827;      /* 深色背景 */
  color: #ffffff;
  padding: 72px 0 56px;
}

.blog-detail-page .breadcumb-content {
  text-align: center;
}

.blog-detail-page .breadcumb-title {
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.25;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}

/* 面包屑菜单 */
.blog-detail-page .breadcumb-menu {
  max-width: 100%;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.blog-detail-page .breadcumb-menu li {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  color: #e5e7eb;
}

.blog-detail-page .breadcumb-menu li a {
  color: #e5e7eb;
  text-decoration: none;
}

.blog-detail-page .breadcumb-menu li a:hover {
  color: #ff4f00;
}

.blog-detail-page .breadcumb-menu li:last-child {
  color: #ffb454; /* 当前页面稍微亮一点 */
}

/* ========== 2. 详情主体容器 ========== */

/* 只给 body 下面的第一个详情 section 用，避免内层重复 */
.blog-detail-page > .th-blog-wrapper.blog-details.space-top {
  padding-top: 64px;
}

.blog-detail-page > .th-blog-wrapper.blog-details.space-extra-bottom {
  padding-bottom: 96px;
}

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

/* 左边文章卡片 */
.blog-detail-page .th-blog.blog-single {
  position: relative;
  margin-bottom: 40px;
  padding: 32px 32px 30px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(1, 15, 28, 0.08);
}

.blog-detail-page .th-blog.blog-single .blog-img {
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f3f4f6;
}

/* ========== 3. Meta 行（作者 / 日期） ========== */

.blog-detail-page .blog-meta {
  display: block;
  margin: -0.3em 0 22px 0;
  font-size: 14px;
  color: #6b7280;
}

.blog-detail-page .blog-meta span,
.blog-detail-page .blog-meta a {
  display: inline-block;
  position: relative;
  margin-right: 16px;
  padding-right: 18px;
}

.blog-detail-page .blog-meta span:after,
.blog-detail-page .blog-meta a:after {
  content: '';
  height: 16px;
  width: 1px;
  background-color: #d1d5db;
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -8px;
}

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

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

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

/* ========== 4. 文章正文（标题、段落、列表、链接） ========== */

/* 限制正文阅读宽度 */
.blog-detail-page .th-blog.blog-single .blog-content {
  max-width: 760px;       /* 控制一行字数，提升阅读体验 */
  margin-left: auto;
  margin-right: auto;
}

/* 正文里的 h1–h4，只作用在详情内容 */
.blog-detail-page .th-blog.blog-single .blog-content h1 {
  font-size: 34px;
  line-height: 1.25;
  color: #111827;
  font-weight: 700;
  margin: 40px 0 18px;
}

.blog-detail-page .th-blog.blog-single .blog-content h2 {
  font-size: 26px;
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}

.blog-detail-page .th-blog.blog-single .blog-content h3 {
  font-size: 21px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.4;
  margin: 24px 0 12px;
}

.blog-detail-page .th-blog.blog-single .blog-content h4 {
  font-size: 19px;
  color: #374151;
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 10px;
}

/* 段落 */
.blog-detail-page .th-blog.blog-single .blog-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 18px;
}

/* 对齐辅助类 */
.blog-detail-page .text-justify {
  text-align: justify;
}

.blog-detail-page .text-center {
  text-align: center;
}

/* 列表 */
.blog-detail-page .th-blog.blog-single .blog-content ul {
  margin: 12px 0 22px 1.3rem;
  padding: 0;
}

.blog-detail-page .th-blog.blog-single .blog-content ul li {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 10px;
}

/* 正文中的链接 */
.blog-detail-page .th-blog.blog-single .blog-content a {
  color: #ff4f00;
  text-decoration: underline;
}

.blog-detail-page .th-blog.blog-single .blog-content a:hover {
  color: #c43b00;
}

/* 价格 / 重点词（用 strong 包裹） */
.blog-detail-page .th-blog.blog-single .blog-content strong {
  color: #ff4f00;
  font-weight: 600;
}

/* ========== 5. 底部 CTA 按钮 ========== */

.blog-detail-page .blog-cta-wrap {
  margin: 36px auto 20px;
  padding-top: 28px;
  text-align: center;
}

.blog-detail-page .blog-cta-icon {
  margin-left: 0.5em;
  font-size: 1em;
}

/* ========== 6. Share Links 区域 ========== */

.blog-detail-page .share-links {
  margin: 32px 0 0;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}

.blog-detail-page .share-links-title {
  font-size: 18px;
  color: #111827;
  font-weight: 700;
  margin-right: 10px;
}

.blog-detail-page .share-links .social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-detail-page .share-links .social-links li {
  display: inline-block;
  margin-left: 6px;
}

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

.blog-detail-page .share-links .social-links a:hover {
  background-color: #ff4f00;
  border-color: #ff4f00;
  color: #ffffff;
}

/* ========== 7. 侧边栏（和列表页统一） ========== */

.blog-detail-page .sidebar-area--blog-detail {
  padding-top: 0;
}

.blog-detail-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-detail-page .widget:last-child {
  margin-bottom: 0;
}

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

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

.blog-detail-page .widget_search .search-form input[type="text"]::placeholder {
  color: #9ca3af;
}

/* 搜索按钮：40px 正方形 */
.blog-detail-page .widget_search .search-form button {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 999px;
  border: none;
  background-color: #ff4f00;
  color: #ffffff;
  cursor: pointer;
}

.blog-detail-page .widget_search .search-form button i {
  line-height: 40px;
}

/* 分类列表 */
.blog-detail-page .widget_categories .widget_title {
  margin: 0 0 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.blog-detail-page .widget_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-detail-page .widget_categories li {
  margin-bottom: 8px;
}

.blog-detail-page .widget_categories li:last-child {
  margin-bottom: 0;
}

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

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

/* 作者卡片（整合 + 居中对齐） */
.blog-detail-page .author-widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blog-detail-page .author-widget-wrap .avater {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

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

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

.blog-detail-page .author-widget-wrap .author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 14px;
  max-width: 260px;     /* 限宽防止一行太长 */
  margin-left: auto;
  margin-right: auto;
}

.blog-detail-page .author-widget-wrap .author-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

.blog-detail-page .author-widget-wrap .author-social a:hover {
  background-color: #ff4f00;
  border-color: #ff4f00;
  color: #ffffff;
}

/* ========== 8. 响应式适配 ========== */

@media (max-width: 991px) {
  .blog-detail-page > .th-blog-wrapper.blog-details.space-top {
    padding-top: 48px;
  }

  .blog-detail-page > .th-blog-wrapper.blog-details.space-extra-bottom {
    padding-bottom: 72px;
  }

  .blog-detail-page .th-blog.blog-single {
    padding: 26px 24px 26px;
  }

  .blog-detail-page .th-blog.blog-single .blog-content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .blog-detail-page .breadcumb-blog-detail {
    padding: 56px 0 40px;
  }

  .blog-detail-page .breadcumb-title {
    font-size: 24px;
  }

  .blog-detail-page .th-blog.blog-single {
    padding: 24px 18px 26px;
  }

  .blog-detail-page .th-blog.blog-single .blog-content h1 {
    font-size: 28px;
  }

  .blog-detail-page .th-blog.blog-single .blog-content h2 {
    font-size: 20px;
  }
}
/* =====================================
   修复 Blog 顶部 Hero 未满屏问题
===================================== */

/* 顶部黑色区域强制撑满视口 */
.blog-detail-page .breadcumb-blog-detail {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 56px 0 40px;
}

/* 解除 container 对宽度的限制 */
.blog-detail-page .breadcumb-blog-detail .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* 内容真正居中的安全区 */
.blog-detail-page .breadcumb-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* 标题稳定排版 */
.blog-detail-page .breadcumb-title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
