/* ---------- 1. 字體（若 Astra 的 Fonts 已設定好，可刪掉這一段） ---------- */
body,
.entry-content,
button, input, select, textarea {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
h1, h2, h3, h4, .entry-title {
  font-family: "Noto Serif TC", "PingFang TC", serif;
}

/* ---------- 2. 文章標題區 ---------- */
.single-post .entry-title {
  font-size: 38px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.single-post .entry-meta,
.single-post .post-meta {
  font-size: 13.5px;
  color: #6e6a61;
}

/* ---------- 3. 內文基礎 ---------- */
.single-post .entry-content {
  font-size: 17.5px;
  line-height: 2.05;
  color: #2c2a25;
}
.single-post .entry-content p {
  margin: 0 0 1.6em;
}

/* 標題與下方段落要黏在一起：上距大、下距小 */
.single-post .entry-content h2 {
  font-size: 30px;
  line-height: 1.55;
  font-weight: 700;
  margin: 2.4em 0 0.7em;
}
.single-post .entry-content h3 {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 700;
  margin: 1.9em 0 0.6em;
}

/* ---------- 4. 內文連結：中文只靠顏色辨識度不夠，一定要有底線 ---------- */
.single-post .entry-content a {
  color: #b4522c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.single-post .entry-content a:hover {
  color: #8f3f20;
}

/* ---------- 5. 清單 ---------- */
.single-post .entry-content ul,
.single-post .entry-content ol {
  line-height: 2;
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}
.single-post .entry-content li {
  margin-bottom: 0.5em;
}

/* ---------- 6. 引言 ---------- */
.single-post .entry-content blockquote {
  border-left: 3px solid #2f5d3a;
  background: none;
  padding: 0.2em 0 0.2em 1.3em;
  margin: 1.9em 0;
  color: #4a463f;
  font-style: normal;
}

/* ---------- 7. 圖片與圖說 ---------- */
.single-post .entry-content figure img {
  border-radius: 10px;
}
.single-post .entry-content figcaption {
  font-size: 13.5px;
  color: #6e6a61;
  text-align: center;
  margin-top: 0.8em;
  line-height: 1.8;
}

/* ---------- 8. 表格（手機可橫向捲動） ---------- */
.single-post .entry-content .wp-block-table {
  overflow-x: auto;
  margin: 1.9em 0;
}
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.8;
}
.single-post .entry-content th {
  background: #f1efe7;
  font-weight: 700;
  text-align: left;
}
.single-post .entry-content th,
.single-post .entry-content td {
  border: 1px solid #e4ded2;
  padding: 12px 16px;
}

/* =========================================================
   以下是文章元件。
   用法：選取區塊 → 右側邊欄「進階」→「附加 CSS 類別」
   填入 class 名稱（例如 llh-summary）
   ========================================================= */

/* ---------- 重點摘要框：llh-summary ---------- */
.llh-summary {
  background: #edf1e9;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 1.9em 0 2.2em;
}
.llh-summary::before {
  content: "三句話重點";
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2f5d3a;
  margin-bottom: 12px;
}
.llh-summary ul,
.llh-summary p:last-child {
  margin-bottom: 0;
}

/* ---------- 安全提醒框：llh-warning ---------- */
.llh-warning {
  background: #fbf1e9;
  border: 1px solid #e0bfa8;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 1.9em 0;
}
.llh-warning::before {
  content: "安全提醒";
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b4522c;
  margin-bottom: 10px;
}
.llh-warning p:last-child {
  margin-bottom: 0;
}

/* ---------- 補充說明：llh-note ---------- */
.llh-note {
  border-left: 3px solid #c9bfa9;
  padding-left: 20px;
  color: #4a463f;
  font-size: 16px;
  margin: 1.6em 0;
}

/* ---------- 參考資料：llh-refs ---------- */
.llh-refs {
  font-size: 14.5px;
  line-height: 2;
  color: #4a463f;
}
.llh-refs li {
  margin-bottom: 0.4em;
}
.llh-refs a {
  word-break: break-all;
}

/* ---------- 作者卡：llh-author ---------- */
.llh-author {
  background: #ffffff;
  border: 1px solid #e4ded2;
  border-radius: 12px;
  padding: 26px 28px;
  margin: 2.4em 0 1.6em;
}
.llh-author p:last-child {
  margin-bottom: 0;
}

/* ---------- 免責聲明：llh-disclaimer ---------- */
.llh-disclaimer {
  background: #f1efe7;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 2.2em;
  font-size: 13px;
  line-height: 1.95;
  color: #6e6a61;
}
.llh-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---------- 9. 手機 ---------- */
@media (max-width: 768px) {
  .single-post .entry-title {
    font-size: 28px;
    line-height: 1.5;
  }
  .single-post .entry-content {
    font-size: 16.5px;
    line-height: 2;
  }
  .single-post .entry-content h2 {
    font-size: 24px;
    margin-top: 2em;
  }
  .single-post .entry-content h3 {
    font-size: 19px;
  }
  .llh-summary,
  .llh-warning,
  .llh-author {
    padding: 20px 22px;
  }
}

/* ---------- 10.（選用）強制文章內容寬度 ----------
   建議先用 Customize → Post Types → Posts 裡的內容寬度設定。
   那裡調不到想要的值，再把下面這段的註解拿掉。

.single-post .site-content .ast-container {
  max-width: 760px;
}
------------------------------------------------- */

/* ---------- 結論框：llh-key ---------- */
/* 用途：研究已經支持的結論、本段的重點判斷 */
.llh-key {
  border-left: 4px solid #2f5d3a;
  background: #f4f7f2;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 1.9em 0;
}
.llh-key::before {
  content: "重點";
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2f5d3a;
  margin-bottom: 8px;
}
.llh-key p {
  margin-bottom: 0;
  font-size: 16.5px;
  line-height: 1.95;
}
 
/* ---------- 目錄：llh-toc ---------- */
.llh-toc {
  background: #f1efe7;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 2.2em;
}
.llh-toc::before {
  content: "本文目錄";
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6e6a61;
  margin-bottom: 14px;
}
.llh-toc ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}
.llh-toc li {
  margin-bottom: 0.3em;
  font-size: 15.5px;
}
.llh-toc a {
  color: #23211d;
  text-decoration: none;
}
.llh-toc a:hover {
  color: #b4522c;
  text-decoration: underline;
}
 
/* ---------- 錨點跳轉時不被標頭遮住 ---------- */
.single-post .entry-content h2[id] {
  scroll-margin-top: 90px;
}
 
/* ---------- 警告框內的清單不要貼邊 ---------- */
.llh-warning ul,
.llh-warning ol {
  margin-bottom: 0.6em;
}
 
/* ---------- 手機 ---------- */
@media (max-width: 768px) {
  .llh-key {
    padding: 18px 20px;
  }
  .llh-key p {
    font-size: 16px;
  }
  .llh-toc {
    padding: 20px 22px;
  }
  .llh-toc li {
    font-size: 15px;
  }
}
 
