/* 理念段落（原理念介紹頁，2026-11-04 併入首頁）。任何首頁版本都能用：head 前加 $siteExtraCss[] = 'site-philosophy'。
   只用 --s-* token，三種配色共用；元件本體在 site.css。 */
#philosophy { position: relative; z-index: 2; } /* z-index：蓋過版本 B 的飛行月亮；錨點讓開頁首靠 html 的 scroll-padding-top */
#philosophy .site-pagehead { padding-bottom: clamp(48px, 5vw, 72px); }
.sp-page .site-quote-line, .sp-descent .site-quote-line { text-wrap: balance; }

/* ---------- 理念介紹：八章故事 ---------- */
.sp-soulmate { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(56px, 6vw, 96px); }
.sp-story .site-chapter { min-height: 60vh; padding-top: 5vh; padding-bottom: 5vh; }
.sp-story .site-chapter__no { font-size: clamp(64px, 6.2vw, 96px); }
.sp-chapter__kind { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: .04em; }
.sp-story .site-story__no { min-width: 0; }

/* 交給我們：大句子＋拱門 */
.sp-promise { padding-top: clamp(72px, 8vw, 128px); padding-bottom: clamp(72px, 8vw, 128px); }
.sp-promise .site-statement { margin-bottom: 0; font-size: clamp(23px, 2.3vw, 32px); text-wrap: balance; }
.sp-promise__head { margin-bottom: 0; }
.sp-promise .site-arch img { object-position: 78% 50%; }
.sp-promise .site-lead { margin-top: 0; }
.sp-promise .site-quote-line { margin-top: clamp(56px, 6vw, 88px); }

/* 五月數據：金色刻度環，弧長＝數值 */
.sp-dial-row.site-stats { border: 0; gap: clamp(16px, 3vw, 48px); }
.sp-dial.site-stat { padding: 0; border: 0; }
.sp-dial__ring { position: relative; display: grid; place-items: center; width: min(100%, 216px); aspect-ratio: 1; margin: 0 auto; }
.sp-dial__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.sp-dial__track { stroke: var(--s-hair); stroke-width: 1; }
.sp-dial__fill { stroke: var(--s-accent); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: var(--v) 1; transition: stroke-dasharray 1.9s cubic-bezier(.65, 0, .25, 1) .25s; }
.site-motion .sp-dial:not(.site-in) .sp-dial__fill { stroke-dasharray: 0 1; }
.sp-dial .site-stat__value { font-size: clamp(46px, 4.6vw, 68px); }
.sp-dial .site-stat__label { margin-top: 20px; }

/* 街頭月老：拱門相片＋請柬表單 */
.sp-descent__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sp-descent__head { margin-bottom: clamp(28px, 3vw, 40px); }
.sp-descent__head .site-lead { margin-bottom: 8px; }
.sp-descent__en { margin: 0; font-family: var(--latin); font-style: italic; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--s-accent); }
.sp-descent__photo { position: relative; box-sizing: border-box; width: min(100%, 366px); padding: 13px; }
.sp-descent__photo .site-split__ring { width: 116%; translate: -50% -50%; }
.sp-descent__photo .site-arch { width: 100%; aspect-ratio: 4 / 4.8; }
.sp-descent__photo .site-arch img { object-position: 50% 18%; }
.matchmaker-descent__body.sp-descent__card { max-width: none; width: 100%; margin: 0; }
.sp-descent__field--full { grid-column: 1 / -1; }
.sp-descent__card .matchmaker-descent__cta { display: flex; width: 100%; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .sp-descent__grid { grid-template-columns: minmax(0, 1fr); }
  .sp-descent__card { max-width: 640px !important; margin: 0 auto !important; }
  .sp-descent__aside { text-align: center; }
  .sp-descent__photo { margin: 0 auto; }
  .sp-descent__head.site-head--left { text-align: center; }
  .sp-descent__head.site-head--left .site-divider, .sp-descent__head.site-head--left .site-vrule { margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  /* 手機版章節：沒有拱門的章節不必把編號壓上照片 */
  .sp-story .site-chapter { min-height: 0; padding: 30px 0; text-align: center; }
  .sp-story .site-chapter__no.sp-chapter__no--plain { margin-top: 0; font-size: 60px; filter: none; background-image: var(--s-num); padding: 0 .12em; }
  .sp-story .site-chapter__no { justify-self: center; margin-left: auto; margin-right: auto; }
  .sp-story .site-chapter__media::after { content: ""; position: absolute; inset: auto 0 0; z-index: 2; height: 36%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5)); pointer-events: none; }
  .sp-story .site-chapter__kind { justify-content: center; }
  .sp-story .site-chapter__kind::after { display: none; }
  .sp-story .site-chapter > p:not(.site-chapter__no) { margin-left: auto; margin-right: auto; }
  .sp-promise__head.site-head--left { text-align: center; }
  .sp-promise__head.site-head--left .site-divider, .sp-promise__head.site-head--left .site-vrule { margin-left: auto; margin-right: auto; }
}
@media (max-width: 860px) {
  .sp-dial-row.site-stats { row-gap: 40px; }
  .sp-dial.site-stat, .sp-dial.site-stat:nth-child(n + 3) { border: 0; }
}
@media (max-width: 420px) {
  .sp-promise .site-statement { font-size: 20px; letter-spacing: .05em; }
}
@media (max-width: 640px) {
  .sp-descent__card { padding-left: 20px; padding-right: 20px; }
}
