/* ==========================================================================
   ARTICLE — 單篇新聞內容頁
   Layered over styles.css + news.css. Editorial reading layout that mirrors
   the news list design language: white hero → paper body → brand accents.
   Body content is rendered from the article backend (news-data.js).
   ========================================================================== */

/* ------------------------------------------------------------------
   HERO — white editorial header with breadcrumb, category, title, meta
------------------------------------------------------------------ */
.ar-hero {
  position: relative;
  padding: 140px 0 40px;
  background: #FFFFFF;
  color: #14111C;
  overflow: hidden;
  border-bottom: 1px solid #EFEAF0;
}
.ar-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,17,28,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,17,28,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.55;
}
.ar-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

/* Breadcrumb */
.ar-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
  color: #7A7289;
  margin-bottom: 26px;
}
.ar-crumbs a {
  color: #7A7289;
  text-decoration: none;
  transition: color .2s;
}
.ar-crumbs a:hover { color: #EC0677; }
.ar-crumbs .sep { color: #C9C2D2; }
.ar-crumbs .current {
  color: #14111C;
  font-weight: 600;
  max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Category pill */
.ar-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-zh);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(138,43,226,0.08);
  color: #6B1FA8;
  margin-bottom: 22px;
}
.ar-cat .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EC0677;
  box-shadow: 0 0 10px rgba(224,23,143,0.55);
}

.ar-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #14111C;
  margin-bottom: 26px;
}

/* Meta row: source · date · share */
.ar-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px;
}
.ar-meta-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #4A4458;
}
.ar-meta-src {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: #14111C;
}
.ar-meta-src::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #EC0677;
}
.ar-meta-date { font-family: var(--font-en); color: #7A7289; }
.ar-meta-sep { color: #D5CEDD; }

.ar-share {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.ar-share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid rgba(20,17,28,0.1);
  color: #4A4458;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.ar-share-btn:hover {
  border-color: #EC0677;
  color: #EC0677;
  transform: translateY(-2px);
}
.ar-share-btn.copied {
  border-color: #2BB673; color: #2BB673;
}

/* ------------------------------------------------------------------
   BODY canvas — paper
------------------------------------------------------------------ */
.ar-body {
  background: #FAF8F5;
  padding: 56px 0 90px;
}
.ar-col {
  max-width: 820px;
  margin: 0 auto;
}

/* Cover image */
.ar-cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: -96px 0 44px;
  background: linear-gradient(135deg, #E5DFFA, #FBE7F2);
  box-shadow: 0 30px 60px -30px rgba(20,17,28,0.28);
  border: 1px solid rgba(255,255,255,0.7);
}
.ar-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ------------------------------------------------------------------
   PROSE — article rich text typography
------------------------------------------------------------------ */
.nw-prose {
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.9;
  color: #2E2838;
}
.nw-prose > * + * { margin-top: 20px; }
.nw-prose strong { color: #14111C; font-weight: 700; }
.nw-prose a {
  color: #C70063;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-prose h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #14111C;
  margin-top: 44px;
}
.nw-prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: #14111C;
  margin-top: 34px;
}

.nw-prose ul,
.nw-prose ol {
  padding-left: 1.4em;
  margin-top: 18px;
}
.nw-prose li { margin-top: 12px; }
.nw-prose li:first-child { margin-top: 0; }

.nw-prose img {
  width: 100%;
  border-radius: 16px;
  margin-top: 32px;
}

/* ------------------------------------------------------------------
   END-OF-ARTICLE CTA — low-key, aligned to the reading column
------------------------------------------------------------------ */
.ar-cta {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 26px 30px;
  background: var(--bg-ink-3, #14111C);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px -24px rgba(20,17,28,0.6);
}
.ar-cta-text {
  display: flex; flex-direction: column; gap: 4px;
}
.ar-cta-text strong {
  font-size: 18px; font-weight: 800;
  color: #fff;
}
.ar-cta-text span {
  font-size: 14px; color: rgba(255,255,255,0.65);
}
.ar-cta .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .ar-cta { flex-direction: column; align-items: flex-start; }
  .ar-cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------
   RELATED — 近期消息 (reuses .nw-card from news.css)
------------------------------------------------------------------ */
.ar-related {
  background: #FFFFFF;
  border-top: 1px solid #EFEAF0;
  padding: 70px 0 90px;
}
.ar-related-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.ar-related-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #14111C;
}
.ar-related-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  color: #EC0677;
  text-decoration: none;
  white-space: nowrap;
}
.ar-related-more:hover { gap: 10px; }
.ar-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .ar-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ar-hero { padding: 110px 0 32px; }
  .ar-cover { margin: -64px 0 32px; }
  .nw-prose { font-size: 16px; }
  .nw-prose .lead { font-size: 18px; }
  .ar-share { margin-left: 0; width: 100%; }
  .ar-related-grid { grid-template-columns: 1fr; }
  .ar-promo { padding: 34px 22px; }
}
