/* css/health.css */
@charset "UTF-8";
/* ============================================================
   衛教新知：文章列表 F（對照 lfm.com.tw 最新消息，2026-10-25）
   三欄圖卡：上方 4:3 圖、下方標題與摘要；整張卡可點進內容頁
   內容頁（對照 lfm.com.tw 文章內容頁，2026-10-27）：左單張圖片、右內文、右下回列表
   ============================================================ */
/* ---------- 列表 ---------- */
.tpl-health-list .article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 32px);
}
.tpl-health-list .card-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tpl-health-list .card-box .image-block {
  aspect-ratio: 4/3;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}
.tpl-health-list .card-box .image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--TransitionDefault, 0.4s cubic-bezier(0.22, 0.61, 0.36, 1));
}
.tpl-health-list .card-box .card-title {
  margin-top: 20px;
  text-wrap: pretty;
  font-size: var(--FontSizeItemTitle, 20px);
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.15s;
}
.tpl-health-list .card-box .description {
  margin-top: 8px;
  color: var(--TextColorSecondary, #4a5260);
  font-size: var(--FontSizeHint, 16px);
  line-height: 1.8;
}
@media (hover: hover) and (pointer: fine) {
.tpl-health-list a.card-box:hover .card-title {
    color: var(--ColorPrimary, #00368c);
  }
.tpl-health-list a.card-box:hover .image-block img {
    transform: scale(1.05);
  }
}
.tpl-health-list a.card-box:is(:active, :focus-visible) .card-title {
  color: var(--ColorPrimary, #00368c);
}
/* ---------- 內容頁 ---------- */
.tpl-health-detail .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem var(--Space5, max(5vw, 3rem));
  align-items: start;
  padding: var(--CardPadding, max(3vw, 2rem));
  background: #ffffff;
}
.tpl-health-detail .article-gallery {
  min-width: 0;
}
.tpl-health-detail .article-gallery .image-block {
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}
.tpl-health-detail .article-body p + p {
  margin-top: 16px;
}
/* ---------- RWD ---------- */
@media (max-width: 1023px) {
  .tpl-health-list .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpl-health-detail .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-health-detail .article-gallery {
    max-width: 560px;
  }
}
@media (max-width: 767px) {
.tpl-health-list .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
.tpl-health-list .card-box .image-block img,
  .tpl-health-list a.card-box:is(:hover, :active, :focus-visible) .image-block img {
    transform: none;
    transition: none;
  }
}