/* ============================================================
   SKH Story Article Shared Styles
   stories 2 篇（mr-zhu, rebirth-couple）共用版型
   引用 global-tokens.css 之後載入
   建立日期：2026-06-29
   ============================================================ */

/* ─────────────────────────────────────────────
   1. STORY BASE 故事基礎
   ───────────────────────────────────────────── */

section {
  scroll-margin-top: 5rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: var(--text-lg);
  line-height: 1.85;
  color: #2a2a2a;
}

p:last-child {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────
   2. HERO（暗色全幅）
   ───────────────────────────────────────────── */

.hero {
  background: var(--color-slate-950);
  color: white;
  padding: 9rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(227, 127, 127, 0.18) 0%, transparent 65%);
}

.hero-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-brand);
  border: 1px solid var(--color-brand-a40);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 1.75rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  position: relative;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: 2.25rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-meta span {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}


/* ─────────────────────────────────────────────
   3. NUMBERS BAR 數字條
   ───────────────────────────────────────────── */

.numbers {
  background: var(--color-brand);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.num-item {
  padding: 1.25rem 2.25rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.num-item:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .num-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .num-item:last-child { border-bottom: none; }
}

.num-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  line-height: var(--leading-snug);
}

.num-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
  letter-spacing: var(--tracking-wide);
}


/* ─────────────────────────────────────────────
   4. ARTICLE WRAP 文章容器
   ───────────────────────────────────────────── */

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}


/* ─────────────────────────────────────────────
   5. OPENING QUOTE 開場引言
   ───────────────────────────────────────────── */

.opening-quote {
  background: var(--color-brand-light);
  border-left: 4px solid var(--color-brand);
  padding: 1.75rem 2rem;
  margin-bottom: 3.5rem;
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

.opening-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: var(--color-brand-dark);
  font-weight: 400;
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────
   6. SECTION LABEL 段落標題
   ───────────────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3.5rem 0 1.25rem;
}

.section-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  flex-shrink: 0;
}

.section-label h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
}

hr.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin: 3rem 0;
}


/* ─────────────────────────────────────────────
   7. PULL QUOTE 拉引語
   ───────────────────────────────────────────── */

.pull-quote {
  margin: 2.25rem 0;
  padding: 1.75rem 2.25rem 1.75rem 3.25rem;
  background: var(--color-slate-950);
  border-radius: var(--radius-xl);
  position: relative;
}

.pull-quote::before {
  content: '\275D';
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 28px;
  color: var(--color-brand);
  opacity: 0.7;
  line-height: 1;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: #fff;
  margin-bottom: 0;
}

.pull-quote .attr {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 10px;
  font-family: var(--font-body);
}


/* ─────────────────────────────────────────────
   8. HIGHLIGHT 螢光標記
   ───────────────────────────────────────────── */

.highlight {
  background: linear-gradient(120deg, rgba(227, 127, 127, 0.18) 0%, rgba(227, 127, 127, 0.08) 100%);
  padding: 1px 4px;
  border-radius: var(--radius-xs);
}


/* ─────────────────────────────────────────────
   9. RISK TAGS 風險標籤
   ───────────────────────────────────────────── */

.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.75rem 0;
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid;
}

.risk-tag.red {
  background: #fff5f5;
  border-color: rgba(200, 90, 80, 0.3);
  color: var(--color-brand-dark);
}

.risk-tag.orange {
  background: #fff8f0;
  border-color: var(--color-brand-a30);
  color: var(--color-brand);
}


/* ─────────────────────────────────────────────
   10. COMPARE BOX 前後對比
   ───────────────────────────────────────────── */

.compare-box {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

@media (max-width: 560px) {
  .compare-box { grid-template-columns: 1fr; }
}

.compare-item {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.compare-item.before { background: #f0f0f0; }
.compare-item.after  { background: var(--color-slate-950); }

.compare-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.compare-item.before .compare-label { color: #6b6b6b; }
.compare-item.after  .compare-label { color: var(--color-brand); }

.compare-val {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-none);
  margin-bottom: 0.5rem;
}

.compare-item.before .compare-val { color: #1a1a1a; }
.compare-item.after  .compare-val { color: #fff; }

.compare-desc { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.compare-item.before .compare-desc { color: #6b6b6b; }
.compare-item.after  .compare-desc { color: rgba(255, 255, 255, 0.55); }


/* ─────────────────────────────────────────────
   11. DATA TABLE 數據表格
   ───────────────────────────────────────────── */

.data-table {
  margin: 2.25rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table-header {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: var(--color-slate-950);
  padding: 12px 16px;
}

.data-table-header span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: var(--tracking-wider);
}

.data-table-header span:nth-child(2) { color: rgba(255, 100, 100, 0.85); text-align: center; }
.data-table-header span:nth-child(3) { color: rgba(255, 200, 120, 0.9); text-align: center; }
.data-table-header span:nth-child(4) { color: rgba(100, 200, 120, 0.95); text-align: center; }

.data-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: center;
}

.data-row:last-child { border-bottom: none; }
.data-row:nth-child(even) { background: var(--color-surface-dim); }

.data-name   { font-size: var(--text-base); color: #1a1a1a; }
.data-before { text-align: center; font-size: var(--text-base); font-weight: 500; color: var(--color-brand-dark); }
.data-mid    { text-align: center; font-size: var(--text-base); font-weight: 500; color: #c97a2a; }
.data-after  { text-align: center; font-size: var(--text-base); font-weight: 600; color: #2a8a4a; }

.data-note {
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
  padding: 12px 20px;
  background: var(--color-surface-dim);
  font-style: italic;
}

@media (max-width: 560px) {
  .data-table-header { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 10px; }
  .data-table-header span { font-size: 12px; }
  .data-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 10px; }
  .data-name { font-size: 13px; }
  .data-before, .data-mid, .data-after { font-size: 13px; }
}


/* ─────────────────────────────────────────────
   12. FINAL QUOTE 結尾語錄
   ───────────────────────────────────────────── */

.final-quote {
  margin-top: 3.5rem;
  padding: 2.75rem 2.5rem;
  background: var(--color-slate-950);
  border-radius: var(--radius-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(227, 127, 127, 0.15) 0%, transparent 60%);
}

.final-quote p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.85;
  color: #fff;
  position: relative;
  margin-bottom: 0;
}

.final-quote p em {
  font-style: normal;
  color: var(--color-brand);
}

.final-quote .final-attr {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.32);
  margin-top: 1.25rem;
  position: relative;
  font-family: var(--font-body);
}


/* ─────────────────────────────────────────────
   13. ENDING PROSE 結尾散文
   ───────────────────────────────────────────── */

.ending-prose {
  margin-top: 2.5rem;
  padding: var(--space-3xl) 2.25rem;
  background: var(--color-brand-light);
  border-radius: var(--radius-xl);
}

.ending-prose p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.75;
  color: var(--color-brand-dark);
  font-weight: 500;
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────
   14. VIDEO CTA 影片連結
   ───────────────────────────────────────────── */

.video-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 1rem 2rem;
  background: var(--color-slate-950);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: opacity var(--duration-fast);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.video-cta:hover { opacity: 0.82; }

.play-icon {
  width: 36px;
  height: 36px;
  background: var(--color-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-icon svg {
  width: 13px;
  fill: white;
  margin-left: 2px;
}

.video-cta span {
  font-size: var(--text-base);
  color: #fff;
  font-weight: 500;
}

.video-cta .dur {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}


/* ─────────────────────────────────────────────
   15. BOTTOM CTA 底部行動呼籲
   ───────────────────────────────────────────── */

.bottom-cta {
  background: var(--color-warm-bg-light);
  padding: 4.5rem 1.5rem 6rem;
  text-align: center;
  border-top: 1px solid #ede9e3;
}

.bottom-cta p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: 1px solid var(--color-brand-a30);
  padding-bottom: 3px;
  transition: gap var(--duration-base), border-color var(--duration-base);
  margin-top: var(--space-2xl);
}

.closing-link:hover {
  gap: 16px;
  border-color: var(--color-brand);
}
