/* =========================================
   最新消息：列表頁 / 單篇頁
   ========================================= */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.news-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card .news-thumb { aspect-ratio: 1.91 / 1; background: var(--bg-light); overflow: hidden; }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card .news-date { font-size: 12px; color: var(--brand-red); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: var(--text-muted); flex-grow: 1; }
.news-card .card-link { margin-top: 12px; font-weight: 700; color: var(--brand-red); font-size: 14px; }

.news-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--border-color);
  font-size: 14px; font-weight: 700; color: var(--text-color);
}
.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .current { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* 側邊「近期文章」 */
.recent-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item .recent-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-light); }
.recent-post-item .recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-item .recent-title { font-size: 13px; font-weight: 600; color: var(--text-color); line-height: 1.4; }
.recent-post-item:hover .recent-title { color: var(--brand-red); }
.recent-post-item .recent-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* 單篇文章 */
.news-article { max-width: 760px; }
.news-article-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.news-article-cover { width: 100%; aspect-ratio: 1.91 / 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; background: var(--bg-light); }
.news-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-article-body { font-size: 16px; line-height: 1.85; color: var(--text-color); }
.news-article-body img { border-radius: 8px; margin: 20px 0; }
.news-article-body h2 { font-size: 22px; margin-top: 36px; }
.news-article-body h3 { font-size: 18px; margin-top: 28px; }
.news-article-body a { color: var(--brand-red); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; font-weight: 700; color: var(--brand-navy); }
