/* =========================================
   文章列表优化 — 参考 zeli.app 简洁风格
   ========================================= */

/* 文章卡片整体 */
.post-list .post-card {
  margin: 0.6rem 0;
  border-radius: 10px;
  border: 1px solid var(--block-border);
  background: var(--card);
  box-shadow: none;
  transition: all 0.25s ease;
}

.post-list .post-card:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
  border-color: var(--theme);
  transform: translateY(-2px);
}

.post-list .post-card:hover img {
  transform: scale(1.03);
  filter: brightness(85%);
}

/* 文章内容区 */
.post-list .md-text {
  padding: 1.25rem 1.5rem;
}

/* 标题 - 更大更醒目 */
.post-list .post-title {
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  margin: 0.25rem 0 0.5rem 0 !important;
  line-height: 1.5 !important;
  color: var(--text-p0) !important;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.post-list .post-card:hover .post-title {
  color: var(--theme) !important;
}

/* 摘要 */
.post-list .excerpt {
  margin: 0.5rem 0 !important;
}

.post-list .excerpt > p {
  margin: 0.4rem 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  color: var(--text-p2) !important;
  /* 两行截断 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* meta 信息区 */
.post-list .meta.cap {
  margin: 0.5rem 0 0 !important;
  padding-top: 0.5rem;
  border-top: 1px solid var(--block-border);
  font-size: 0.82rem;
}

.post-list .meta.cap #post-meta {
  color: var(--text-p3) !important;
  font-size: 0.8rem;
}

.post-list .meta.cap .cap {
  color: var(--text-p3);
}

/* 分类标签 - 更突出 */
.post-list .meta.cap .breadcrumb {
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.12));
  color: var(--theme) !important;
  border: none !important;
  transition: all 0.2s ease;
}

.post-list .post-card:hover .meta.cap .breadcrumb {
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(236,72,153,0.22));
}

/* 封面图优化 */
.post-list .post-card .post-cover {
  height: 220px !important;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: 0;
  width: 100% !important;
}

.post-list .post-card .post-cover img {
  transition: transform 0.5s ease, filter 0.3s ease;
  object-fit: cover;
}

/* 置顶文章 */
.post-list .post-card .pin img {
  height: 1.2em;
}

/* 分页器 */
.paginator {
  margin-top: 1.5rem;
}

/* ====== 响应式 ====== */
@media screen and (max-width: 667px) {
  .post-list .post-card {
    margin: 0.4rem 0;
    border-radius: 8px;
  }
  
  .post-list .md-text {
    padding: 0.8rem 1rem;
  }
  
  .post-list .post-title {
    font-size: 1.05rem !important;
  }
  
  .post-list .excerpt > p {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2;
  }
  
  .post-list .post-card .post-cover {
    height: 180px !important;
  }
}

/* ====== 暗色模式适配 ====== */
#ZYDark .post-list .post-card {
  background: #141829;
  border-color: #2a2f4a;
}

#ZYDark .post-list .post-card:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
  border-color: #7c3aed;
}

#ZYDark .post-list .meta.cap {
  border-top-color: #2a2f4a;
}

#ZYDark .post-list .meta.cap .breadcrumb {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(236,72,153,0.2));
}
