/* ============================================================
   20-card.css
   首页文章卡片：post-wrap / post-cover / post-info / post-meta /
   page-nav / 标签 chip
   依赖: 00-tokens.css
   ============================================================ */

/* 文章卡片：合并 base 结构 + 后段精修 box-shadow + 进入动画 */
.post-wrap {
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 20px !important;
  background: rgba(22, 27, 34, 0.82) !important;
  border-color: rgba(48, 54, 61, 0.6) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  animation: cardFadeIn 0.6s ease-out backwards;
}

.post-wrap:hover {
  background: rgba(30, 37, 46, 0.92) !important;
  border-color: rgba(224, 139, 168, 0.4) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(224, 139, 168, 0.35),
    0 0 40px rgba(224, 139, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-6px) !important;
}

/* 卡片入场动画延迟 */
.post-wrap:nth-child(1) { animation-delay: 0.05s; }
.post-wrap:nth-child(2) { animation-delay: 0.15s; }
.post-wrap:nth-child(3) { animation-delay: 0.25s; }
.post-wrap:nth-child(4) { animation-delay: 0.35s; }
.post-wrap:nth-child(5) { animation-delay: 0.45s; }

/* 封面图 */
.post-cover {
  overflow: hidden;
  border-radius: 12px !important;
  margin: 12px !important;
  position: relative;
}

.post-cover img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 12px !important;
}

.post-wrap:hover .post-cover img {
  transform: scale(1.05);
}

/* 卡片封面图加细微渐变蒙板，信息区更易读 */
.post-cover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(13, 17, 23, 0.35));
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

/* 文章信息区 */
.post-info {
  padding: 16px 20px 20px !important;
}

/* 置顶标签 */
.post-sticky {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  color: #fff !important;
  border-radius: 0 0 8px 0 !important;
  padding: 3px 12px !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: none !important;
}

/* 文章标题 */
.post-title {
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  margin-bottom: 6px !important;
  line-height: 1.4;
  color: var(--text-0) !important;
}

/* 文章元信息 */
.post-meta {
  font-size: 0.82rem !important;
  margin-bottom: 8px !important;
}

.post-meta span {
  margin-right: 12px;
}

/* meta 默认色 */
.post-meta,
.post-meta span {
  color: var(--text-2) !important;
}

/* 日期 — meta 灰 */
.post-meta .icon-calendar,
.post-meta .icon-calendar + *,
.post-meta .icon-calendar-plus,
.post-meta .icon-calendar-plus + * {
  color: var(--text-2) !important;
}

/* 字数 */
.post-meta .icon-pencil,
.post-meta .icon-pencil + * {
  color: var(--accent) !important;
}

/* 阅读时间 — meta 灰 */
.post-meta .icon-clock,
.post-meta .icon-clock + * {
  color: var(--text-2) !important;
}

/* 分类 */
.post-meta .icon-folder,
.post-meta .icon-folder + * {
  color: var(--accent) !important;
}

/* 文章摘要 */
.post-article {
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-1) !important;
}

/* 阅读全文链接 */
.post-wrap .post-info a[href]:last-child {
  color: var(--accent) !important;
  font-weight: 500;
  font-size: 0.88rem;
}

/* 文章卡片内的标签/分类（基础结构） */
.post-wrap .post-info .post-category,
.post-wrap .post-info .post-tag {
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.78rem;
  transition: all 0.2s;
}

/* 分类配色 */
.post-wrap .post-info .post-category {
  background: rgba(247, 120, 186, 0.12) !important;
  color: var(--accent) !important;
}
.post-wrap .post-info .post-category:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* 标签配色 */
.post-wrap .post-info .post-tag {
  background: rgba(88, 166, 255, 0.12) !important;
  color: var(--accent) !important;
}
.post-wrap .post-info .post-tag:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* 文章列表外的容器 */
.article-wrap {
  border: 1px solid;
  border-radius: 12px;
}

/* 分页器美化 */
#page-nav {
  margin-top: 20px !important;
  background: transparent !important;
}

#page-nav .page-number {
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

#page-nav .page-number.current {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
