/* =============================================
   Single Post — 文章详情页样式
   品牌色：Navy #1E3A5F / Gold #E8A838
   ============================================= */

/* --- 全宽覆盖 --- */
.post-page { margin: 0; padding: 0; width: 100% !important; max-width: 100% !important; }

/* --- 通用容器 --- */
.post-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   文章头部（Hero 风格）
   ============================================= */
.post-header {
  background: #1E3A5F;
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}
.post-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 标题 */
.post-header__title {
  font-size: 36px; font-weight: 700; color: #ffffff;
  margin: 0 0 10px; line-height: 1.3;
}

/* 元信息 */
.post-header__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; font-size: 14px; color: rgba(255,255,255,0.8);
}
.post-header__cat {
  background: rgba(232,168,56,0.2); color: #E8A838;
  padding: 3px 12px; border-radius: 3px; font-size: 13px; font-weight: 600;
}

/* 面包屑 */
.post-breadcrumb {
  background: #f5f7f8; padding: 16px 0; font-size: 13px;
  color: #5f6b7a; border-bottom: 1px solid #e5e7eb;
}
.post-breadcrumb__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.post-breadcrumb a { color: #5f6b7a; text-decoration: none; transition: color 0.3s ease; }
.post-breadcrumb a:hover { color: #E8A838; }
.post-breadcrumb__sep { margin: 0 8px; color: #E8A838; }

/* =============================================
   两列布局
   ============================================= */
.post-content-area { padding: 48px 0 72px; background: #ffffff; }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

/* =============================================
   正文排版
   ============================================= */
.post-article .entry-content { font-size: 16px; color: #4b4f58; line-height: 1.8; }
.post-article .entry-content h2 {
  font-size: 26px; font-weight: 700; color: #3a3a3a; line-height: 1.3;
  margin: 48px 0 16px; padding-left: 16px; border-left: 4px solid #E8A838;
  scroll-margin-top: 100px;
}
.post-article .entry-content h3 {
  font-size: 20px; font-weight: 600; color: #3a3a3a; line-height: 1.35;
  margin: 32px 0 12px; scroll-margin-top: 100px;
}
.post-article .entry-content h4 { font-size: 17px; font-weight: 600; color: #3a3a3a; margin: 24px 0 10px; }
.post-article .entry-content p { margin: 0 0 18px; }
.post-article .entry-content ul, .post-article .entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.post-article .entry-content li { margin-bottom: 6px; line-height: 1.8; }
.post-article .entry-content strong { color: #1E3A5F; font-weight: 600; }
.post-article .entry-content a { color: #1E3A5F; text-decoration: underline; text-underline-offset: 3px; }
.post-article .entry-content a:hover { color: #E8A838; }
.post-article .entry-content blockquote {
  margin: 24px 0; padding: 16px 20px; border-left: 4px solid #E8A838;
  background: #faf6ed; border-radius: 0 8px 8px 0; font-style: italic; color: #3a3a3a;
}
.post-article .entry-content blockquote p { margin: 0; }
.post-article .entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.post-article .entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post-article .entry-content th { background: #1E3A5F; color: #ffffff; padding: 10px 14px; text-align: left; font-weight: 600; }
.post-article .entry-content td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; }
.post-article .entry-content tr:nth-child(even) td { background: #f9fafb; }

/* =============================================
   相关服务内链
   ============================================= */
.post-related-services { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.post-related-services__title { font-size: 18px; font-weight: 700; color: #3a3a3a; margin: 0 0 16px; }
.post-related-services__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.post-related-services__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: #f5f7f8; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #3a3a3a; text-decoration: none; transition: all 0.2s;
}
.post-related-services__link:hover { background: rgba(232,168,56,0.1); border-color: #E8A838; color: #1E3A5F; }
.post-related-services__icon { width: 16px; height: 16px; color: #E8A838; }

/* =============================================
   律所简介卡片
   ============================================= */
.post-author-card {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 36px; padding: 24px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb;
}
.post-author-card__logo {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: #1E3A5F; color: #E8A838; display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.post-author-card__name { font-size: 16px; font-weight: 700; color: #3a3a3a; margin: 0 0 8px; }
.post-author-card__bio { font-size: 14px; color: #4b4f58; line-height: 1.7; margin: 0 0 10px; }
.post-author-card__link { font-size: 14px; color: #1E3A5F; text-decoration: none; font-weight: 600; }
.post-author-card__link:hover { color: #E8A838; }

/* =============================================
   相关文章
   ============================================= */
.post-related-articles { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.post-related-articles__title { font-size: 18px; font-weight: 700; color: #3a3a3a; margin: 0 0 20px; }
.post-related-articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-related-articles__item {
  text-decoration: none; border-radius: 8px; overflow: hidden;
  border: 1px solid #e5e7eb; transition: box-shadow 0.3s;
}
.post-related-articles__item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.post-related-articles__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-related-articles__item-title {
  font-size: 14px; font-weight: 600; color: #3a3a3a;
  margin: 12px 14px 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-related-articles__date { display: block; font-size: 12px; color: #6b7280; margin: 0 14px 14px; }

/* =============================================
   侧边栏
   ============================================= */
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }

/* TOC 目录 */
.post-sidebar__toc { background: #f9fafb; border-radius: 8px; padding: 24px; }
.post-sidebar__title {
  font-size: 16px; font-weight: 700; color: #3a3a3a;
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #E8A838;
}
.post-sidebar__toc-nav a {
  display: block; padding: 6px 0; font-size: 14px; color: #5f6b7a;
  text-decoration: none; line-height: 1.5; border-left: 2px solid transparent; padding-left: 12px; transition: all 0.2s;
}
.post-sidebar__toc-nav a:hover { color: #1E3A5F; }
.post-sidebar__toc-nav a.is-active { color: #1E3A5F; font-weight: 600; border-left-color: #E8A838; }
.post-sidebar__toc-nav a.toc-h3 { padding-left: 24px; font-size: 13px; }
.post-sidebar__toc.is-empty { display: none; }

/* CTA */
.post-sidebar__cta { background: #1E3A5F; border-radius: 8px; padding: 28px 24px; text-align: center; }
.post-sidebar__cta-title { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 8px; }
.post-sidebar__cta-text { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0 0 18px; }
.post-sidebar__cta-btn {
  display: block; padding: 12px 24px; background: #E8A838; color: #1E3A5F;
  font-size: 15px; font-weight: 600; border-radius: 4px; border: 2px solid #E8A838;
  text-decoration: none; text-align: center; transition: all 0.3s; margin-bottom: 12px;
}
.post-sidebar__cta-btn:hover { background: transparent; color: #ffffff; border-color: #ffffff; }
.post-sidebar__cta-phone { display: block; font-size: 18px; font-weight: 700; color: #E8A838; text-decoration: none; margin-bottom: 8px; }
.post-sidebar__cta-phone:hover { color: #f0c36a; }
.post-sidebar__cta-wechat { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }
.post-sidebar__cta-wechat strong { color: #E8A838; }

/* =============================================
   阅读进度条
   ============================================= */
.post-progress-bar {
  position: fixed; top: 0; left: 0; width: 0%;
  height: 3px; background: #E8A838; z-index: 9999; transition: width 0.1s linear;
}

/* =============================================
   Responsive — Tablet (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .post-header { padding: 48px 0; }
  .post-header__title { font-size: 32px; }
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .post-sidebar__toc { flex: 1 1 100%; }
  .post-sidebar__cta { flex: 1 1 100%; }
  .post-related-articles__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Responsive — Mobile (max 768px)
   ============================================= */
@media (max-width: 768px) {
  .post-header { padding: 40px 0; }
  .post-header__inner { padding: 0 20px; }
  .post-header__title { font-size: 26px; margin-bottom: 8px; }
  .post-header__meta { font-size: 13px; gap: 8px; }
  .post-breadcrumb { font-size: 12px; }
  .post-breadcrumb__inner { padding: 0 20px; }
  .post-content-area { padding: 32px 0 48px; }
  .post-container { padding: 0 20px; }
  .post-article .entry-content { font-size: 15px; }
  .post-article .entry-content h2 { font-size: 22px; padding-left: 12px; margin-top: 36px; }
  .post-article .entry-content h3 { font-size: 18px; }
  .post-author-card { flex-direction: column; align-items: center; text-align: center; }
  .post-related-articles__grid { grid-template-columns: 1fr; }
  .post-related-services__link { padding: 8px 14px; font-size: 13px; }
}

/* =============================================
   Responsive — Small Mobile (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .post-header { padding: 32px 0; }
  .post-header__title { font-size: 22px; }
  .post-article .entry-content { font-size: 14px; }
  .post-article .entry-content h2 { font-size: 20px; padding-left: 10px; }
  .post-article .entry-content h3 { font-size: 16px; }
  .post-sidebar__cta { padding: 22px 18px; }
}
