/* css/news.css */
@charset "UTF-8";
/* ============================================================
   活動消息：文章列表 G（左圖 1/4、中標題 7/12、右日期 1/6）＋內容頁（編輯器）
   ============================================================ */
/* ---------- 文章列表 G ---------- */
.tpl-news-list .article-list {
  border-top: var(--BorderPrimary, 1px solid #d5dde6);
}
.tpl-news-list .article-item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  padding-block: 28px;
  border-bottom: var(--BorderPrimary, 1px solid #d5dde6);
}
.tpl-news-list .article-item .image-block {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  overflow: clip;
  border-radius: var(--BorderRadius, 12px);
}
.tpl-news-list .article-item .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-news-list .article-item .card-title {
  font-size: var(--FontSizeItemTitle, 20px);
  font-weight: 500;
  line-height: 1.45;
}
.tpl-news-list .article-item .card-title a {
  transition: color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
.tpl-news-list .article-item .card-title a:hover {
    color: var(--ColorPrimary, #00368c);
  }
}
.tpl-news-list .article-item .card-title a:is(:active, :focus-visible) {
  color: var(--ColorPrimary, #00368c);
}
.tpl-news-list .article-item .card-desc {
  margin-top: 8px;
  color: var(--TextColorSecondary, #4a5260);
  font-size: var(--FontSizeHint, 16px);
  line-height: 1.7;
}
.tpl-news-list .article-item {
  /* 日期：年月小字在上、日大字在下（文章 G 的辨識點） */
}
.tpl-news-list .article-item .date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6b7380;
  line-height: 1.2;
}
.tpl-news-list .article-item .date-block .day {
  margin-top: 4px;
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 700;
  color: var(--ColorPrimary, #00368c);
}
@media (hover: hover) and (pointer: fine) {
.tpl-news-list .article-item:hover .image-block img {
    transform: scale(1.05);
  }
}
/* ---------- 內容頁（編輯器） ---------- */
.tpl-news-detail .article-head {
  padding-bottom: 20px;
  border-bottom: var(--BorderSecondary, 1px solid #e6ebf1);
}
.tpl-news-detail .article-lead {
  color: var(--TextColorSecondary, #4a5260);
  font-size: var(--FontSizeItemTitle, 20px);
  line-height: 1.45;
}
.tpl-news-detail .article-figure {
  margin-block: 32px;
}
.tpl-news-detail .article-figure img {
  width: auto;
  max-height: 640px;
  border-radius: var(--BorderRadius, 12px);
}
/* ---------- RWD ---------- */
@media (max-width: 1199px) {
  .tpl-news-detail .article-head {
    text-align: center;
  }
  .tpl-news-detail .article-figure img {
    margin-inline: auto;
  }
  .tpl-news-list .article-list {
    border: 0;
  }
}
@media (max-width: 767px) {
.tpl-news-list {
    /* 手機三欄改上下疊：圖滿寬 → 標題 → 日期併成一行小字 */
  }
.tpl-news-list .article-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 24px;
    border: 0;
  }
.tpl-news-list .article-item .date-block {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0;
  }
.tpl-news-list .article-item .date-block .day {
    margin-top: 0;
    font-size: var(--FontSizeHint, 16px);
    font-weight: 400;
    color: inherit;
  }
.tpl-news-list .article-item .date-block .day::before {
    content: " / ";
    white-space: pre;
  }
}
@media (prefers-reduced-motion: reduce) {
.tpl-news-list .article-item .image-block img,
  .tpl-news-list .article-item:is(:hover, :active, :focus-visible) .image-block img {
    transform: none;
    transition: none;
  }
}