/* ==========================================================================
   吳卿金雕 — news.css（僅「最新消息」頁載入，搭配 home.css 的共用質感）
   消息列表的雜誌式條列沿用 home.css 的 #news 樣式
   1. 頁首
   2. 分類篩選列
   3. 消息列表
   4. 訂閱
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 頁首
   -------------------------------------------------------------------------- */
.news-hero { min-height: min(78svh, 740px); }
.news-hero .page-hero__bg img { object-position: 50% 30%; animation: none; transform: none; }
.news-hero .page-hero__title { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.4rem); letter-spacing: 0.16em; }
.news-hero .feature-hero__sub { letter-spacing: 0.24em; }
@media (max-width: 980px) {
  .news-hero .page-hero__bg img { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   2. 分類篩選列（與作品集頁一致）
   -------------------------------------------------------------------------- */
.news-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.news-section .works-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0.65rem 0.65rem 0.65rem 0.9rem;
  background: rgba(14, 14, 17, 0.78);
  border: 1px solid rgba(214, 180, 108, 0.22);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.news-section .filters { gap: 0.35rem; }
.news-section .filter-btn {
  padding: 0.65em 1.35em;
  border-color: transparent;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.news-section .filter-btn:hover { color: var(--gold-200); border-color: rgba(214, 180, 108, 0.3); }
.news-section .filter-btn[aria-pressed="true"],
.news-section .filter-btn.is-active {
  color: #171208;
  background: linear-gradient(135deg, #f2e5c4 0%, #d6b46c 45%, #a8823f 100%);
  box-shadow: 0 8px 22px rgba(200, 164, 92, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.news-section .filter-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  margin-left: 0.5em;
  padding: 0 0.35em;
  font-style: italic;
  border-radius: 999px;
  background: rgba(214, 180, 108, 0.12);
  opacity: 1;
}
.news-section .filter-btn[aria-pressed="true"] .filter-btn__count { background: rgba(23, 18, 8, 0.15); }
.news-section .works-count {
  margin: 0;
  padding-right: 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}
.news-section .works-count b {
  margin-right: 0.3em;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  vertical-align: -0.12em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 760px) {
  .news-section .works-toolbar { border-radius: 18px; padding: 0.75rem; justify-content: center; }
  .news-section .filters { justify-content: center; }
  .news-section .works-count { width: 100%; padding-right: 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   3. 消息列表：第一則置頂強調
   -------------------------------------------------------------------------- */
#news .news-card:not(.is-hidden):first-child .news-card__body,
#news .news-list > .news-card:first-of-type .news-card__body {
  background: linear-gradient(110deg, rgba(214, 180, 108, 0.09), transparent 70%);
}
#news .news-list > .news-card:first-of-type .news-card__title { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); color: var(--gold-100, #f7ecd0); }
#news .news-list > .news-card:first-of-type .news-card__meta time { font-size: 2.2rem; }
#news .news-card__title a { transition: color 0.4s var(--ease); }
#news .news-card:hover .news-card__title a { color: var(--gold-200); }
.news-section .empty-state {
  max-width: 1080px;
  margin-inline: auto;
  border: 1px solid rgba(214, 180, 108, 0.25);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(214, 180, 108, 0.08), transparent 70%), #111114;
  border-radius: 2px;
}
.news-section .empty-state a { color: var(--gold-300); border-bottom: 1px solid rgba(214, 180, 108, 0.4); }

/* --------------------------------------------------------------------------
   4. 訂閱
   -------------------------------------------------------------------------- */
#subscribe .contact-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold-grad);
}
#subscribe .section-head__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem) !important; }
#subscribe .info-card { background: #111114; border-color: rgba(214, 180, 108, 0.16); border-radius: 2px; }
#subscribe .info-card__icon { width: 44px; height: 44px; background: radial-gradient(circle at 30% 25%, rgba(242, 229, 196, 0.14), transparent 65%); color: var(--gold-300); }

/* --------------------------------------------------------------------------
   5. 文章內頁（news/*.html）與相關消息
   -------------------------------------------------------------------------- */
.article-hero-band { min-height: min(64svh, 600px); }
.article-hero-band .page-hero__bg img { object-position: 50% 50%; animation: none; transform: none; opacity: 0.55; }
.article-hero-band .page-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); letter-spacing: 0.1em; line-height: 1.35; }
.article-section { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.article-wrap { max-width: 780px; margin-inline: auto; }
.article-wrap .article-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(214, 180, 108, 0.2);
}
.article-wrap .article-meta { margin: 0; }
.article-meta__cat {
  padding: 0.35em 1em;
  border: 1px solid rgba(214, 180, 108, 0.45);
  border-radius: 999px;
  color: var(--gold-300);
}
.article-meta time { font-family: var(--font-en); font-style: italic; font-size: 1.05rem; color: var(--gold-200); letter-spacing: 0.08em; }
.article-wrap .article-body { max-width: none; }

.related-news__head { text-align: center; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); }
.related-news__head .section-head__desc { margin-inline: auto; }
.related-news__all { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 640px) {
  .article-hero-band { min-height: 0; }
  .article-wrap .article-header { justify-content: center; }
  .article-wrap .article-meta { justify-content: center; }
  .article-wrap .article-footer { justify-content: center; }
}
