/* ============================================================
   Hongping Ministries · 生命之道
   life.css — 仅供「生命启示」内容页使用的补充样式
   ------------------------------------------------------------
   只使用 style.css 里已定义的 CSS 变量（--gold / --ink / --cream …），
   不覆盖任何既有类，可与 style.css 并存、独立增删。
   ============================================================ */

/* ---------- 内容页页头：标题比栏目页小得多 ----------
   style.css 的 .page-header h1 是给"赞美诗""福音书籍"这类短栏目名设计的
   （最大 5rem）；启示命题中位数 24 字、最长 81 字，必须另设一档。 */
.life-page .page-header { min-height: auto; padding: 16vh 6vw 4vh; }
.life-page .page-header h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  line-height: 1.7;
  letter-spacing: 2px;
  max-width: 900px;
}
.life-page .page-header p { max-width: 780px; font-size: 0.97rem; line-height: 2; }
.life-page .page-header .tags { margin-top: 1.6rem; }

/* ---------- 正文排版 ---------- */
.life-article { max-width: 780px; margin: 0 auto; }

.life-article .prose p {
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 2.15;
  color: #4a3d2b;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.life-article .prose p strong {
  display: block;
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

/* ---------- 黄金生命线的分段小标题（源文件里的 "### 段N｜…"） ----------
   只有部分篇目带这层小标题；带的时候要看起来像小标题，而不是一段正文。 */
.life-article .prose h4.life-seg {
  font-family: var(--serif-cn);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  text-align: left;
}
.life-article .prose h4.life-seg:first-child { margin-top: 0; }

/* ---------- 经文支撑（默认折叠） ---------- */
.life-scripture {
  margin-top: 3.4rem;
  border-top: 1px solid rgba(58,46,32,0.12);
  border-bottom: 1px solid rgba(58,46,32,0.12);
  padding: 0.4rem 0;
}
.life-scripture summary {
  cursor: pointer; list-style: none;
  padding: 1.2rem 0;
  font-family: var(--serif-cn); font-weight: 600;
  letter-spacing: 3px; font-size: 0.92rem;
  color: var(--ink-soft);
}
.life-scripture summary::-webkit-details-marker { display: none; }
.life-scripture summary::after { content: " ＋"; color: var(--gold); }
.life-scripture[open] summary::after { content: " －"; }
.life-scripture summary:hover { color: var(--ink); }
.life-scripture .verses { padding: 0.5rem 0 2rem; }

.verse {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
  margin-bottom: 1.8rem;
}
.verse-ref {
  font-family: var(--serif-cn); font-weight: 600;
  letter-spacing: 1px; color: var(--ink); margin-bottom: 0.5rem;
}
.verse-note {
  display: block; font-family: var(--sans); font-weight: 300;
  font-size: 0.78rem; letter-spacing: 0; color: var(--ink-soft);
  margin-top: 0.25rem;
}
.verse p {
  font-family: var(--sans); font-size: 0.98rem; line-height: 2;
  color: #5a4b36; margin: 0;
}

/* ---------- 出处与翻页 ---------- */
.life-source {
  margin-top: 2.6rem; font-size: 0.88rem;
  color: var(--ink-soft); font-family: var(--sans);
}
.life-source-num {
  display: inline-block; margin-left: 0.6rem; padding: 0.15rem 0.7rem;
  border: 1px solid rgba(214,184,115,0.6); border-radius: 999px;
  font-size: 0.74rem; letter-spacing: 1px; color: #8a7448;
}
.life-pager { margin-top: 3.2rem; flex-wrap: wrap; gap: 0.8rem; }
.life-pager .btn { padding: 0.85rem 1.8rem; font-size: 0.78rem; }

/* ---------- 处境页：按讲道分组 ---------- */
.life-groups { display: grid; gap: 1.6rem; max-width: 880px; }
.life-group-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.1rem; }
.life-num {
  font-family: var(--serif-en); font-size: 1.5rem;
  color: var(--gold); line-height: 1;
}
.life-group-head h4 {
  font-family: var(--serif-cn); font-weight: 600; font-size: 1rem;
  line-height: 1.7; color: var(--ink); letter-spacing: 0.5px;
}
.life-list { list-style: none; padding: 0; margin: 0; }
.life-list li { border-top: 1px dashed rgba(58,46,32,0.12); }
.life-list li:first-child { border-top: none; }
.life-list a {
  display: block; padding: 0.85rem 0.2rem;
  font-family: var(--sans); font-size: 0.97rem; line-height: 1.75;
  color: #5a4b36; text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
}
.life-list a:hover { color: var(--ink); padding-left: 0.7rem; }
.life-list a::before { content: "· "; color: var(--gold); }

/* ---------- 入口页：处境卡片 ---------- */
.life-tags { max-width: 1040px; }
.life-tag-card { display: block; text-decoration: none; position: relative; }
.life-tag-en {
  font-family: var(--serif-en); font-style: italic;
  font-size: 0.82rem; letter-spacing: 2px; color: var(--gold);
  margin-bottom: 0.6rem;
}
.life-tag-card h4 {
  font-family: var(--serif-cn); font-weight: 700; font-size: 1.28rem;
  letter-spacing: 2px; color: var(--ink); margin-bottom: 0.7rem;
}
.life-tag-card p {
  font-family: var(--sans); font-size: 0.9rem; line-height: 1.9;
  color: var(--ink-soft); margin-bottom: 1.1rem;
}
.life-count {
  font-family: var(--sans); font-size: 0.76rem;
  letter-spacing: 1.5px; color: #7a6237;   /* 原 #8a7448 对米色底 4.46:1 不达AA，加深到约5.2:1 */
}
/* 未上线卡片：不用整卡 opacity——那会把文字也压到 ~1.9:1 读不清。
   改成分别调暗每个属性，保留最低限度的可读对比度。 */
.life-tag-card.is-soon { background: rgba(255,255,255,0.32); }
.life-tag-card.is-soon .life-tag-en { color: #a89568; }
.life-tag-card.is-soon h4 { color: #6b5f4e; }
.life-tag-card.is-soon p { color: #8a7d68; }
.life-tag-card.is-soon .life-count { color: #6b5a3a; }
.life-tag-card.is-soon:hover { transform: none; box-shadow: none; }

/* 处境标签做成可点链接时，保持 .tag 外观，不落到浏览器默认蓝紫链接色 */
a.tag-link { text-decoration: none; color: inherit; }
a.tag-link:hover { border-color: var(--gold); color: var(--ink); }

/* 跳到正文：默认移出视口，键盘 Tab 到它时才显示——标准的 skip-link 写法 */
.skip-link {
  position: absolute; top: -3rem; left: 1rem; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: 0.7rem 1.4rem; border-radius: 0 0 8px 8px;
  font-family: var(--sans); font-size: 0.85rem; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* 经文支撑折叠控件：原生 marker 换成的"＋/－"用 --gold 只有约1.9:1对比度，
   加深一档；并给 summary 加边框可点提示，不能只靠颜色区分 */
.life-scripture summary {
  border: 1px solid rgba(58,46,32,0.22); border-radius: 999px;
  padding: 0.8rem 1.4rem; width: max-content;
}
.life-scripture summary::after { content: " ＋"; color: #8a6d1f; }
.life-scripture[open] summary::after { content: " －"; }

.life-num { color: var(--ink-soft); }  /* 原 --gold 对米色底约1.9:1，数字改用已有的 ink-soft（5.17:1） */

@media (max-width: 720px) {
  .life-article .prose p { text-align: left; line-height: 2; }
  .life-pager { justify-content: center; }
}
