/* =========================================
   全局统一现代文章卡片组件 (BEM 规范)
   ========================================= */
.article-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(37, 99, 235, 0.06);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  overflow: hidden;
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}
.article-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.article-card__cover {
  width: 240px;
  flex-shrink: 0;
  position: relative;
  background: rgba(37, 99, 235, 0.05);
}
.article-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.02));
}
.article-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  pointer-events: none;
}
.article-card__tags a {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.article-card__header {
  margin-bottom: 8px;
}
.article-card__title {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.article-card__date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.article-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 8px 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.article-card__read-more {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .article-card {
    flex-direction: column;
  }
  .article-card__cover {
    width: 100%;
    height: 200px;
  }
}

/* 容器布局 */
.article-container.compact-articles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card__fallback .fallback-char {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.4;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}
