/* ===========================================
   NEWS DETAIL 新知文章內頁
   =========================================== */
.news-detail {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--bg-gradient);
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  color: var(--text-primary);
}

/* ── Hero 主視覺 ── */
.news-detail .article-hero {
  width: 100%;
  margin: 0;
  padding: 0;
}
.news-detail .article-hero-inner {
  width: 100%;
  aspect-ratio: 16 / 5;
  max-height: 380px;
  overflow: hidden;
  border-radius: 0;
}
.news-detail .article-hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 文章容器 ── */
.news-detail .article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
}

/* 麵包屑 */
.news-detail .article-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em 0.55em;
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.news-detail .article-crumb > * + *::before {
  content: ">";
  margin-right: 0.55em;
  color: rgba(26, 10, 46, 0.3);
}
.news-detail .article-crumb a {
  color: rgba(26, 10, 46, 0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.news-detail .article-crumb a:hover { color: var(--brand-purple); }
.news-detail .article-crumb .current { color: #444444; }

/* 標題區 */
.news-detail .article-head {
  padding-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid rgba(74, 26, 120, 0.14);
}
.news-detail .article-title {
  margin: 0.9rem 0 0.9rem;
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.news-detail .article-meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(26, 10, 46, 0.45);
}

/* ── 文章導航 ── */
.news-detail .article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid rgba(74, 26, 120, 0.12);
}
.news-detail .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid rgba(74, 26, 120, 0.22);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.news-detail .nav-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
@media(hover: hover) {
  .news-detail .nav-btn:hover {
    transform: translateY(-2px);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
  }
}

/* ── 相關文章 ── */
.news-detail .related {
  background: rgba(74, 26, 120, 0.03);
  border-top: 1px solid rgba(74, 26, 120, 0.1);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.news-detail .related-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.news-detail .related-head {
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.news-detail .related-head h2 {
  font-family: var(--font-display), "Noto Sans TC", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-purple);
}
.news-detail .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  .news-detail .related-grid { grid-template-columns: 1fr 1fr; }
  .news-detail .related-grid .overlay-card:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .news-detail { padding-top: 56px; }
  .news-detail .article-hero-inner { aspect-ratio: 16 / 10; }
  .news-detail .related-grid { grid-template-columns: 1fr; }
  .news-detail .related-grid .overlay-card:nth-child(3) { display: flex; }
  .news-detail .article-nav { gap: 0.6rem; }
  .news-detail .nav-btn { padding: 0.6em 1em; flex: 1; justify-content: center; }
}
