/* 從 設計稿/文章頁.html 的 <style> 複製（WP 測試用） */

/* ---- 文章頁專用 ---- */
.post-head { max-width: 860px; }
.post-head h1 { font-size: clamp(30px, 4vw, 46px); text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--ink-soft); margin-top: 18px; }
.tag { background: var(--paper); color: var(--teal-deep); border-radius: 999px; padding: 4px 14px; font-weight: 500; text-decoration: none; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.reviewer .ph { width: 48px; height: 48px; border-radius: 50%; padding: 0; font-size: 11px; }
.reviewer p { font-size: 15px; line-height: 1.5; }
.reviewer small { display: block; color: var(--ink-soft); font-size: 13px; }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 80px); align-items: start; }

/* 重點整理：讀者 10 秒內知道答案 */
.summary { background: var(--mist); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 44px; }
.summary h2 { font-size: 21px; margin-bottom: 12px; }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.post-body { font-size: 18px; line-height: 1.95; }
.post-body h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 52px 0 16px; scroll-margin-top: 96px; }
.post-body h3 { font-size: 21px; margin: 32px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 18px; }
.post-body li { margin-bottom: 6px; }
.post-body figure { margin: 28px 0; }
.post-body figure .ph { aspect-ratio: 16 / 9; }
.post-body figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 24px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--mist); color: var(--teal-deep); font-weight: 500; }
.table-wrap { overflow-x: auto; }

.post-end { margin-top: 48px; display: grid; gap: 28px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { background: var(--paper); border-radius: var(--r-md); padding: 22px; text-decoration: none; color: var(--ink); display: grid; gap: 10px; }
.related a:hover { box-shadow: 0 12px 24px -18px rgba(11,92,94,.5); }
.related .tag { justify-self: start; background: var(--mist); font-size: 13px; }
.related h3 { font-size: 19px; }
.related span.d { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .post-body { font-size: 17px; }
}

/* WP 版：重點整理放在文章內容裡，標題不要套內文大標題的間距 */
.post-body .summary h2 { font-size: 21px; margin: 0 0 12px; }
.post-body .wp-block-table table { width: 100%; }

/* 媒體報導文章：封面、圖片來源、原報導連結 */
.post-body .post-cover { margin: 0; }
.post-body .post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.post-body .cover-credit { font-size: 14px; color: var(--ink-soft); margin: 8px 0 36px; }
.post-body .source { margin-top: 36px; padding: 22px 24px; background: var(--mist); border-radius: var(--r-md); font-size: 16px; }
.post-body .source a { margin-left: 8px; font-weight: 500; }
