/* ======================================================================
   分站文章列表卡片样式（city_art_list）
   独立文件：本文件由 MofangCMS 应用自行托管，仅作用于 /city 分站文章列表页。
   站点主样式来自本地/远程存储桶，且未定义 --blue 等变量，故此处自带 :root 配色。
   ====================================================================== */

:root {
  --blue: #1a56db;
  --red: #e53131;
  --border: #e2e8f0;
  --text: #1a202c;
  --muted: #64748b;
}

/* 区块标题：渐变竖条 + 红色文章数徽章 */
.city-page .fenzhan_catalog h2.city_sec {
  display: flex; align-items: center; gap: 10px;
  font: 18px/30px "Microsoft YaHei", sans-serif; color: var(--text); font-weight: 700;
  margin: 28px 0 16px;
}
.city-page .fenzhan_catalog h2.city_sec::before {
  content: ""; display: block; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--red));
}
.city-page .fenzhan_catalog h2.city_sec .city_sec_t { font-weight: 700; }
.city-page .fenzhan_catalog h2.city_sec .city_sec_count {
  font-size: 13px; font-weight: 600; color: #fff; background: var(--red);
  border-radius: 99px; padding: 2px 11px; line-height: 20px;
}

/* 列表容器 */
.city-page .artContent .city_art_list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

/* 卡片（有封面：左图右文；无封面：整宽文字卡） */
.city-page .artContent .city-art-card {
  display: flex; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.city-page .artContent .city-art-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 36px rgba(13,59,140,.12);
  transform: translateY(-4px);
}
.city-page .artContent .city-art-card.has-cover { align-items: stretch; }
.city-page .artContent .city-art-cover {
  position: relative; width: 220px; flex-shrink: 0; overflow: hidden; background: #eef2f7;
}
.city-page .artContent .city-art-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.city-page .artContent .city-art-card:hover .city-art-cover img { transform: scale(1.06); }
.city-page .artContent .city-art-cat {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.38); backdrop-filter: blur(4px);
  padding: 4px 12px; border-radius: 99px;
}
/* 无封面卡片：栏目徽章作为标题前的行内标签（与标题同行，空间不足时整体换行） */
.city-page .artContent .city-art-headline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 8px;
}
.city-page .artContent .city-art-cat.flat {
  position: static; flex: none;
  display: inline-block; margin: 0; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--blue); background: #eff4ff;
  padding: 2px 10px; border-radius: 99px; line-height: 1.7;
}
.city-page .artContent .city-art-headline .city-art-title { flex: 1 1 auto; min-width: 0; margin: 0; }
.city-page .artContent .city-art-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  padding: 18px 20px;
}
.city-page .artContent .city-art-title {
  font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.5;
  margin: 0 0 8px; transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.city-page .artContent .city-art-card:hover .city-art-title { color: var(--blue); }
.city-page .artContent .city-art-sum {
  font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.city-page .artContent .city-art-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: auto; padding-top: 14px;
}
.city-page .artContent .city-art-date { font-size: 13px; color: var(--muted); }
.city-page .artContent .city-art-more {
  font-size: 14px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 4px; transition: gap .25s ease;
}
.city-page .artContent .city-art-card:hover .city-art-more { gap: 9px; }
.city-page .artContent .empty-tip { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; margin: 0; }

/* 窄屏堆叠：封面转顶部通栏 */
@media (max-width: 680px) {
  .city-page .artContent .city-art-card,
  .city-page .artContent .city-art-card.has-cover { flex-direction: column; align-items: stretch; }
  .city-page .artContent .city-art-cover { width: 100%; height: 180px; }
  .city-page .artContent .city-art-body { padding: 16px 18px 20px; }
}
