/* blog.css — 博客列表页与文章页专用样式，引用 tokens.css 变量 */

.article-header {
  padding: var(--space-5) 0 var(--space-3);
  text-align: center;
}
.article-meta {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  margin-bottom: var(--space-2);
}
.article-meta a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-hero-image {
  max-width: 900px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-body {
  max-width: 760px;
  margin: 0 auto var(--space-6);
}
.article-body .lede {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-text);
  margin: var(--space-5) 0 var(--space-2);
}
.article-body p,
.article-body li {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.article-body ul,
.article-body ol {
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body a {
  color: white;
  text-decoration: underline;
}
.article-body strong {
  color: var(--color-text);
}

.article-inline-cta {
  text-align: center;
  margin: var(--space-5) 0;
}
.article-inline-cta img {
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-3);
}

.article-faq {
  margin-top: var(--space-5);
}
.article-faq h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
  text-align: center;
}

/* ============ Blog listing ============ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.blog-card .blog-meta {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.blog-card p.excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}
.blog-card a.read-more {
  color: var(--color-accent);
  font-weight: 600;
}
