/* ==========================================================================
   News single post stylesheet (single-post.php + single-faq.php)
   Page-specific styles only.
   - 公共布局（page-banner / page-wrap / page-sidebar / side-box / side-form）
     已提升到公共 assets/css/style.css（内容页公共布局段），这里不重复。
   - 本文只含文章详情页专属样式。
   Visual replica of the original cochecarservicing template news detail page.
   ========================================================================== */

/* ---------- 侧边栏宽度：与产品页对齐（38rem PC / 32rem ≤1200px；产品列表/详情已调） ---------- */
.page-sidebar { flex: 0 0 38rem; min-width: 0; }

/* ---------- Related Posts 列表（当前文章 current 高亮；WP 循环中判断） ---------- */
.side-posts { list-style: none; }
.side-post-link {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.6;
  color: #000;
  padding: 1rem 1rem 1rem 1.4rem;
  border-left: 3px solid transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.side-post-link p { display: inline; }
.side-post-link:hover {
  color: var(--themeColor1);
  border-left-color: var(--themeColor1);
  background: rgba(23, 42, 136, 0.04);
}
.side-posts li.current .side-post-link {
  color: var(--themeColor1);
  border-left-color: var(--themeColor1);
  background: rgba(23, 42, 136, 0.06);
  cursor: default;
}

/* ---------- 文章正文区 ---------- */
.article {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(216, 216, 216, 0.6);
  padding: 3rem 3.4rem 3.4rem;
}
.article-title {
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 2.6rem;
  line-height: 1.5;
  color: #000;
  margin: 0 0 1rem;
  text-align: center;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #666;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.article-meta .meta-label {
  color: var(--themeColor1);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
}

/* ---------- 正文富文本（对应 WP the_content 的输出） ---------- */
.article-content {
  font-size: 1.65rem;
  line-height: 1.9;
  color: var(--text-dark);
  word-break: break-word;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }
.article-content p { margin: 0 0 1.6rem; }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-family: var(--font-head);
  color: #000;
  margin: 2.4rem 0 1.2rem;
  line-height: 1.4;
}
.article-content h2 { font-size: 2.2rem; }
.article-content h3 { font-size: 1.9rem; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.6rem 0;
}
.article-content a { color: var(--themeColor1); text-decoration: underline; }
.article-content a:hover { color: var(--themeColor2); }
.article-content ul,
.article-content ol { margin: 0 0 1.6rem 2rem; }
.article-content li { margin-bottom: 0.6rem; }
.article-content blockquote {
  border-left: 4px solid var(--themeColorOrange);
  background: #f7f8fa;
  padding: 1.2rem 1.6rem;
  margin: 1.6rem 0;
  font-style: italic;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
}
.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
}
.article-content th { background: rgba(23, 42, 136, 0.06); font-weight: bold; }

/* ---------- 上一篇 / 下一篇 ----------
   仿原站：上下两行、左对齐，每行带对应文章标题；
   首篇无 Previous、末篇无 Next（首尾判断）→ 该行整块置灰不可点。 */
.article-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafbfc;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
a.nav-item:hover {
  border-color: var(--themeColor1);
  background: rgba(23, 42, 136, 0.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.nav-label {
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--themeColor1);
}
.nav-title {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
}
.nav-item.disabled {
  cursor: default;
  background: #f7f8fa;
  border-style: dashed;
}
.nav-item.disabled .nav-label,
.nav-item.disabled .nav-title { color: #aaa; font-weight: normal; }

/* ==========================================================================
   Responsive（news 专属部分；公共分栏/banner 响应式在公共 style.css）
   ========================================================================== */
@media (max-width: 1200px) {
  .page-sidebar { flex-basis: 32rem; }
  .article-title { font-size: 2.3rem; }
}

@media (max-width: 960px) {
  .article { padding: 2.6rem 2.2rem; }
}

@media (max-width: 560px) {
  .article-title { font-size: 2rem; line-height: 1.5; }
  .article-content { font-size: 1.5rem; }
  .article-nav { gap: 0.9rem; }
  .nav-item { padding: 1.1rem 1.3rem; }
}
