/* seo-article.css — 教程/文章页正文排版，依赖 seo-landing.css 的变量与基础组件 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid var(--border-primary);
  border-bottom: none;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb + .hero {
  margin-top: 0;
}

.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.breadcrumb .crumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body {
  max-width: 860px;
}

.article-body h2 {
  margin: 36px 0 12px;
  color: var(--text-primary);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body h2:first-child {
  margin-top: 4px;
}

.article-body h3 {
  margin: 26px 0 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.article-body p {
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.85;
}

.article-body ul,
.article-body ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.85;
}

.article-body li {
  margin: 6px 0;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--text-primary);
}

.article-body table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--border-primary);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.article-body th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.article-body figure {
  margin: 22px 0;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-sunken);
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.6;
}

.article-meta {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-lead {
  margin: 0;
  max-width: 820px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 500;
}
