/* yiwaiwai001 CMS：首页文章区 / 分类列表 / 文章详情 / 分页 */

.articles-home .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.articles-more {
  margin-top: 32px;
  text-align: center;
}

.article-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card {
  height: 100%;
  overflow: hidden;
}

.article-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: rgba(99, 102, 241, 0.08);
}

.article-card__thumb:empty {
  display: none;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__body {
  padding: 16px 18px 20px;
}

.article-card__body time {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted, #64748b);
  margin-bottom: 8px;
}

.article-card__body h3 {
  font-size: 1.0625rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

.article-card__body p {
  font-size: 0.9375rem;
  color: var(--color-muted, #64748b);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.list-empty {
  text-align: center;
  padding: 48px 0;
}

.category-count,
.category-intro {
  color: var(--color-muted, #64748b);
  margin-top: 8px;
}

.article-page .article-cover:empty {
  display: none;
}

.article-page .article-cover img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-page .article-body {
  line-height: 1.8;
}

.article-page .article-body h2,
.article-page .article-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.article-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.8125rem;
  text-decoration: none;
  color: inherit;
}

.article-more {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pg {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pg a,
.pg span {
  padding: 8px 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
}

.pg .on {
  background: var(--color-primary, #6366f1);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 992px) {
  .articles-home .articles-grid,
  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .articles-home .articles-grid,
  .news-list-grid {
    grid-template-columns: 1fr;
  }
}
