/* rl-article.css —— 文章页正文与区块补充样式（置于 design-v3.css 之后）
   依赖 design-v3.css 定义的品牌色变量：--c-navy / --c-deep / --c-seal / --c-paper / --c-soft / --c-line */

/* 1. 非 .rl-article 包裹的文章正文（如 Markdown 新文与早期文章） */
html body.single-post:not(.rlx-wrapped) .entry-content p {
  margin: 22px 0;
  font-size: 16.5px;
  line-height: 2;
  color: #333D4B;
}
html body.single-post:not(.rlx-wrapped) .entry-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-deep, #14283f);
  margin: 48px 0 12px;
  line-height: 1.6;
}
html body.single-post:not(.rlx-wrapped) .entry-content h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 17px;
  background: var(--c-seal, #b8442e);
  margin-right: 14px;
  vertical-align: -2px;
}
html body.single-post:not(.rlx-wrapped) .entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-deep, #14283f);
  margin: 32px 0 8px;
  line-height: 1.5;
}
html body.single-post:not(.rlx-wrapped) .entry-content blockquote {
  margin: 30px 0;
  padding: 6px 26px;
  border-left: 3px solid var(--c-seal, #b8442e);
  color: var(--c-navy, #1e3a5f);
  font-weight: 600;
  font-size: 17.5px;
  background: none;
}
html body.single-post:not(.rlx-wrapped) .entry-content ul,
html body.single-post:not(.rlx-wrapped) .entry-content ol {
  margin: 22px 0;
  padding-left: 22px;
}
html body.single-post:not(.rlx-wrapped) .entry-content li {
  margin: 8px 0;
  font-size: 16.5px;
  line-height: 2;
}
html body.single-post:not(.rlx-wrapped) .entry-content a {
  color: var(--c-navy, #1e3a5f);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-line-2, #d4d1c9);
}
html body.single-post:not(.rlx-wrapped) .entry-content a:hover {
  text-decoration-color: var(--c-navy, #1e3a5f);
}

/* 2. 目录 hover 与分隔 */
html body.single-post :is(.article-toc, .rl-article-toc) a:hover {
  color: var(--c-navy, #1e3a5f) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 3. 正文表格 */
html body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #333D4B;
}
html body.single-post .entry-content thead th {
  background: var(--c-soft, #f3f2ed);
  color: var(--c-deep, #14283f);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--c-navy, #1e3a5f);
}
html body.single-post .entry-content tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-line, #e5e3dd);
  vertical-align: top;
}
html body.single-post .entry-content tbody tr:nth-child(even) {
  background: var(--c-paper, #fafaf7);
}
html body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 4. 强调框与文末说明 */
html body.single-post .rn-callout,
html body.single-post .rl-callout {
  padding: 18px 22px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
}
html body.single-post .article-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line, #e5e3dd);
  font-size: 14px;
  line-height: 1.85;
}

/* 5. 文末推广引导段落（#23，替代旧内联蓝色样式） */
html body.single-post .rl-article-cta {
  margin: 28px 0 18px;
  padding: 18px 22px;
  background: var(--c-soft, #f3f2ed);
  border-left: 3px solid var(--c-navy, #1e3a5f);
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  line-height: 2;
  color: #333D4B;
}
html body.single-post .rl-article-cta a {
  color: var(--c-navy, #1e3a5f);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--c-seal, #b8442e);
}
html body.single-post .rl-article-cta a:hover {
  color: var(--c-seal, #b8442e);
}

/* 6. 相关服务列表 */
html body.single-post .rl-related-services {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body.single-post .rl-rs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.single-post .rl-rs-link {
  font-weight: 600;
  text-decoration: none;
}
html body.single-post .rl-rs-link:hover {
  color: var(--c-seal, #b8442e) !important;
}

/* 6. 文末上一篇 / 下一篇导航 */
html body.single-post .post-navigation {
  max-width: 820px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-line, #e5e3dd);
}
html body.single-post .post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
html body.single-post .post-navigation .nav-previous,
html body.single-post .post-navigation .nav-next {
  flex: 1 1 0;
  min-width: 0;
}
html body.single-post .post-navigation .nav-next {
  text-align: right;
}
html body.single-post .post-navigation a {
  display: inline-block;
  color: var(--c-navy, #1e3a5f);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
html body.single-post .post-navigation a:hover {
  color: var(--c-seal, #b8442e);
}
html body.single-post .post-navigation a p {
  margin: 0;
}

/* 7. 移动端适配 */
@media (max-width: 768px) {
  html body.single-post:not(.rlx-wrapped) .entry-content {
    padding: 8px 20px 36px !important;
  }
  html body.single-post .post-navigation .nav-links {
    flex-direction: column;
    gap: 14px;
  }
  html body.single-post .post-navigation .nav-next {
    text-align: left;
  }
}
