/*
  礁溪長老教會｜網站示意版本
  ------------------------------------------------
  這份檔案控制網站的顏色、字體與排版。
  想改顏色時，可先從下方 :root 內的色碼開始修改。
*/

:root {
  --warm-white: #f7f3ec;
  --paper: #fffdf8;
  --soft-gray: #e7e3dc;
  --concrete: #b9b8b3;
  --brick: #a04f3f;
  --brick-dark: #7e3d32;
  --charcoal: #292c2c;
  --charcoal-soft: #494c4b;
  --muted: #6f706d;
  --line: rgba(41, 44, 44, 0.14);
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(58, 46, 40, 0.08);
  --radius-small: 6px;
  --radius: 10px;
  --radius-large: 14px;

  /* 兩種字型由 index.html 的官方字體樣式載入；手機不改用另一種字型。 */
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --container: 1160px;
  --header-height: 82px;
}

/* 基本設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 分類切換及提示視窗使用 hidden 隱藏，避免其他 display 樣式覆蓋它。 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open,
body.photo-viewer-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.28;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--charcoal);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(160, 79, 63, 0.55);
  outline-offset: 4px;
}

/* 共用標題與按鈕 */
.eyebrow {
  margin-bottom: 12px;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  max-width: none;
  gap: 70px;
}

.section-heading h2,
.contact-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-intro {
  margin: 18px 0 0;
  color: var(--charcoal-soft);
  font-size: 1.06rem;
}

.section-heading-split .section-intro {
  margin: 0 0 5px;
}

.section-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 11px;
  color: var(--brick-dark);
  border: 1px solid rgba(160, 79, 63, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  font-size: 0.78rem;
}

.section-demo-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brick);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.button-primary {
  color: var(--white);
  border-color: var(--brick);
  background: var(--brick);
}

.button-primary:hover {
  border-color: var(--brick-dark);
  background: var(--brick-dark);
}

.button-ghost {
  color: var(--charcoal);
  border-color: rgba(41, 44, 44, 0.42);
  background: rgba(255, 255, 255, 0.2);
}

.button-ghost:hover {
  border-color: var(--charcoal);
  background: rgba(255, 255, 255, 0.5);
}

.demo-tag {
  display: inline-block;
  padding: 3px 8px;
  color: var(--brick-dark);
  border: 1px solid rgba(160, 79, 63, 0.2);
  border-radius: 99px;
  background: rgba(160, 79, 63, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* 頂部導覽列 */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(41, 44, 44, 0.09);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.18) 44% 100%),
    var(--brick);
}

.brand-cross,
.brand-cross::after {
  display: block;
  width: 3px;
  height: 22px;
  background: var(--white);
  content: "";
}

.brand-cross::after {
  width: 14px;
  height: 3px;
  transform: translate(-5px, 7px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 0;
  color: var(--charcoal-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brick);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--brick-dark);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 首頁主視覺 */
.hero {
  position: relative;
  display: flex;
  min-height: 660px;
  height: auto;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 0 50px;
  background:
    linear-gradient(90deg, rgba(247, 243, 236, 0.98) 0%, rgba(247, 243, 236, 0.86) 47%, rgba(247, 243, 236, 0.2) 73%),
    linear-gradient(135deg, #d5d3ce 0%, #b6b5b0 58%, #8b8c89 100%);
}

.hero::before {
  position: absolute;
  inset: var(--header-height) auto 0 9%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(41, 44, 44, 0.16), transparent);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.8vw, 5.7rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1 span {
  display: inline;
}

.hero-message {
  margin-bottom: 22px;
  color: var(--charcoal-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 影音仍可從首頁直達，但不與兩個主要來訪入口競爭。 */
.hero-media-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 8px;
  color: var(--charcoal-soft);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-media-link:hover { color: var(--brick-dark); }

/* 首頁主日資訊：桌機與手機都顯示，避免重要資料被藏起來 */
.hero-service {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 2px 18px;
  padding: 15px 18px;
  border: 1px solid rgba(41, 44, 44, 0.18);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius-small);
  background: rgba(255, 253, 248, 0.76);
}

.hero-service span {
  grid-row: span 2;
  color: var(--brick-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-service strong {
  font-family: var(--font-serif);
  font-size: 1.13rem;
  font-weight: 600;
}

.hero-service small {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.concrete-plane {
  position: absolute;
  top: 7%;
  right: 0;
  width: 39%;
  height: 93%;
  background:
    repeating-linear-gradient(0deg, transparent 0 115px, rgba(255, 255, 255, 0.13) 115px 116px),
    linear-gradient(145deg, #bbb9b4, #7d807e);
  box-shadow: -35px 0 80px rgba(39, 40, 39, 0.14);
  clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%);
}

.brick-plane {
  position: absolute;
  right: 23%;
  bottom: -2%;
  width: 23%;
  height: 76%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(91, 40, 32, 0.25) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 65px, rgba(91, 40, 32, 0.16) 65px 66px),
    var(--brick);
  clip-path: polygon(30% 0, 100% 8%, 100% 100%, 0 100%);
  opacity: 0.94;
}

.hero-cross {
  position: absolute;
  z-index: 2;
  top: 25%;
  right: 10%;
  width: 13px;
  height: 190px;
  background: rgba(247, 243, 236, 0.88);
  box-shadow: 0 0 42px rgba(255, 248, 224, 0.55);
}

.hero-cross::after {
  position: absolute;
  top: 48px;
  left: -49px;
  width: 112px;
  height: 13px;
  background: inherit;
  box-shadow: inherit;
  content: "";
}

.light-beam {
  position: absolute;
  z-index: 1;
  top: -30%;
  right: -2%;
  width: 43%;
  height: 110%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 249, 220, 0.62) 52%, transparent 76%);
  filter: blur(10px);
  transform: rotate(-9deg);
}

.demo-banner {
  color: var(--warm-white);
  background: var(--charcoal);
}

.demo-banner .container {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 12px;
}

.demo-banner span {
  display: grid;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-style: italic;
}

.demo-banner p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* 教會介紹 */
.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.story-card,
.values-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 243, 236, 0.42);
}

.story-card-large {
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.87), rgba(247, 243, 236, 0.7)),
    var(--warm-white);
}

.card-number {
  position: absolute;
  top: 25px;
  right: 30px;
  color: rgba(41, 44, 44, 0.11);
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1;
}

.card-kicker {
  margin-bottom: 16px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.story-card h3 {
  max-width: 550px;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 600;
}

.story-card > p:not(.card-kicker):not(.demo-note) {
  position: relative;
  z-index: 1;
  color: var(--charcoal-soft);
}

.demo-note {
  display: inline-block;
  margin-top: 18px;
  padding-left: 12px;
  color: var(--muted);
  border-left: 2px solid var(--brick);
  font-size: 0.76rem;
}

/* 【照片輪播樣式】等比例滿版填滿；邊緣可能裁切，不改原檔、不加轉場。 */
.photo-carousel {
  position: relative;
  min-width: 0;
}

.story-card-large .photo-carousel { margin-top: 28px; }

.photo-slide {
  margin: 0;
}

.photo-slide + .photo-slide {
  margin-top: 24px;
}

.photo-carousel.is-ready .photo-slide {
  margin-top: 0;
}

.photo-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-controls {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  aspect-ratio: 3 / 2;
  pointer-events: none;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 48px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.38);
  color: #fff;
  font: 42px/1 Georgia, serif;
  pointer-events: auto;
  cursor: pointer;
}

.photo-previous { left: 8px; }
.photo-next { right: 8px; }
.photo-arrow:hover { background: rgba(20, 20, 20, 0.65); }

.photo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* 指示不覆蓋照片：超過五張用張數，三張等短清單才使用圓點。 */
.photo-indicators { display: grid; justify-items: center; gap: 7px; padding-top: 12px; }
.photo-counter { margin: 0; color: var(--charcoal-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.photo-hint { margin: 0; color: var(--muted); font-size: 0.78rem; }

/* 圓點僅作位置提示；手動切換用左右兩個 48px 大按鈕。 */
.photo-dot {
  display: grid;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-dot::before {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.photo-dot[aria-current="true"]::before { border-color: var(--brick); background: var(--brick); }
/* 保留上下捲頁與雙指縮放，只接管橫向換圖；不拖曳原圖到桌面。 */
.photo-frame[role="button"], .photo-viewer-image-wrap { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab; }
.photo-frame[role="button"].is-dragging, .photo-viewer-image-wrap.is-dragging { cursor: grabbing; }
.photo-frame img, .photo-viewer-image-wrap img { -webkit-user-drag: none; }
.photo-arrow:focus-visible {
  outline: 2px solid white;
  outline-offset: -2px;
}

/* 原生放大視窗：完整照片 contain，不拉伸、不裁切；關閉後回到原本位置。 */
.photo-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); border: 0; color: var(--warm-white); background: rgba(18, 20, 20, 0.96); }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.photo-viewer::backdrop { background: rgba(0, 0, 0, 0.8); }
.photo-viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-viewer-heading p { margin: 0; font-variant-numeric: tabular-nums; }
.photo-viewer-close { min-width: 88px; min-height: 48px; padding: 8px 14px; color: inherit; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-small); background: transparent; cursor: pointer; }
.photo-viewer-close:hover { background: rgba(255, 255, 255, 0.12); }
.photo-viewer-stage { position: relative; min-height: 0; min-width: 0; }
.photo-viewer-image-wrap { width: 100%; height: 100%; }
.photo-viewer-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.photo-viewer-help { margin: 0; text-align: center; color: #d4d1cb; font-size: 0.85rem; }
.photo-viewer :focus-visible { outline-color: white; }

.source-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.history-timeline {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-timeline li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.history-year {
  color: var(--brick);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
}

.history-timeline h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.history-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.building-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
}

.building-copy h3 {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.reference-links span {
  color: var(--muted);
}

.reference-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brick-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.values-card {
  color: var(--warm-white);
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.values-card .card-kicker {
  color: #d9a99d;
}

.values-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-card li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.values-card li span {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.people-area {
  margin-top: 110px;
}

.subheading {
  max-width: 600px;
  margin-bottom: 40px;
}

.subheading h3 {
  margin-bottom: 15px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.subheading > p:last-child {
  color: var(--muted);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.person-card-featured {
  grid-column: span 3;
  display: grid;
  min-height: 260px;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
  overflow: hidden;
  padding: 0;
}

.person-photo-frame {
  min-height: 260px;
  overflow: hidden;
  background: #e8e5de;
}

.person-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-photo-placeholder {
  display: flex;
  min-height: 260px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.person-photo-placeholder small {
  font-size: 0.85rem;
}

/* 長執與同工只有文字，不保留頭像空位；高度依實際介紹內容決定。 */
.person-card:not(.person-card-featured) .person-role {
  margin-top: 0;
}

.person-card-featured .person-info {
  align-self: center;
  padding: 28px 32px 28px 0;
}

.person-role {
  margin: 15px 0 4px;
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.person-info h4 {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.person-info > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* 聚會資訊 */
.gatherings-section {
  color: var(--warm-white);
  background: var(--charcoal);
}

.gatherings-section .eyebrow {
  color: #d9a99d;
}

.gatherings-section .section-intro {
  color: rgba(255, 255, 255, 0.66);
}

.gatherings-section .section-demo-label {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.gathering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gathering-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gathering-card:hover {
  border-color: rgba(217, 169, 157, 0.55);
  background: rgba(255, 255, 255, 0.065);
}

.gathering-card-primary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--brick-dark);
}

.gathering-type {
  margin-bottom: 8px;
  color: #d9a99d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.gathering-card h3 {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.gathering-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.gathering-card dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}

.gathering-card dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.gathering-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
}

/* 消息報告：日期在左，摘要與可展開的全文在右。 */
.news-section {
  background: var(--warm-white);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-status {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.news-label {
  font-size: 0.95rem;
  color: var(--brick-dark);
}

.news-body .news-import img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
}

.news-import { overflow-x: auto; }
.news-import table { border-collapse: collapse; max-width: 100%; }
.news-import th, .news-import td { padding: 8px; border: 1px solid var(--line); }
.news-body ol { padding-left: 24px; }
.news-body a { color: var(--brick-dark); text-decoration: underline; }

.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 35px;
  padding: 32px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.45);
}

.news-item time {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  line-height: 1;
}

.news-item time span {
  margin-bottom: 9px;
  color: var(--brick);
  font-family: var(--font-serif);
  font-size: 2.85rem;
}

.news-item time small {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.news-content h3 {
  margin: 9px 0 7px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.news-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.news-details {
  margin-top: 12px;
}

.news-details summary {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: var(--brick-dark);
  border-radius: var(--radius-small);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.news-details summary::-webkit-details-marker {
  display: none;
}

.news-details summary:hover {
  background: var(--soft-gray);
}

.details-open,
.news-details[open] .details-closed {
  display: none;
}

.news-details[open] .details-open {
  display: inline;
}

.news-details[open] summary > span:last-child {
  transform: rotate(180deg);
}

.news-body {
  max-width: 780px;
  margin-top: 14px;
  padding: 20px 0 4px 22px;
  border-left: 2px solid var(--line);
}

.news-body p,
.news-body li {
  color: var(--charcoal-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.news-body p {
  margin-bottom: 16px;
}

.news-body h4 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.news-body ul {
  padding-left: 24px;
}

.news-body figure {
  margin: 24px 0;
}

.news-body img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 影音專區 */
.videos-section {
  background: var(--paper);
}

.video-thumbnail {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
}

.play-button {
  position: relative;
  z-index: 3;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  padding: 0;
  color: var(--charcoal);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 30px rgba(41, 44, 44, 0.18);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.play-button span[aria-hidden="true"] {
  margin-left: 4px;
}

.play-button:hover {
  color: var(--white);
  background: var(--brick);
}

.play-button-small {
  width: 58px;
  height: 58px;
}

.thumbnail-label {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 22px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(41, 44, 44, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* 12 個分類直接顯示並自動換行；選中狀態以磚紅色與字重區分。 */
.video-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
}

.video-category-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.video-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.video-category-button {
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  color: var(--charcoal);
  border: 1px solid var(--concrete);
  border-radius: var(--radius-small);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}

.video-category-button:hover {
  border-color: var(--brick);
}

.video-category-button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--brick);
  background: var(--brick);
  font-weight: 600;
}

.video-playlist-link {
  justify-self: start;
  overflow-wrap: anywhere;
}

#video-filter-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-results-heading {
  margin: 32px 0 24px;
}

.video-results-heading h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
}

.video-filter-status {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.video-empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--concrete);
  border-radius: var(--radius);
  background: var(--warm-white);
}

.video-empty-state p {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.video-empty-state span,
.video-noscript-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.video-tone-one {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent),
    #8a8c88;
}

.video-tone-two {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent),
    #a04f3f;
}

.video-tone-three {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent),
    #666966;
}

.mini-cross {
  position: absolute;
  top: 25px;
  right: 34px;
  width: 5px;
  height: 74px;
  background: rgba(255, 255, 255, 0.32);
}

.mini-cross::after {
  position: absolute;
  top: 20px;
  left: -18px;
  width: 42px;
  height: 5px;
  background: inherit;
  content: "";
}

.video-card-copy {
  padding: 25px;
}

.video-card-copy time {
  color: var(--brick);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.video-card-copy h4 {
  margin: 10px 0 7px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}

/* 只顯示來源能提供的資料；原始標題可展開核對，不必另填講員或摘要。 */
.video-thumbnail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-original-title {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.video-original-title summary {
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
}

.video-original-title p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.video-channel-fallback {
  margin: 20px 0 0;
}

.video-card-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 整張縮圖都可點擊，圓形播放圖示仍沿用原本樣式。 */
.video-play-trigger {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-play-trigger:hover .play-button,
.video-play-trigger:focus-visible .play-button {
  color: var(--white);
  background: var(--brick);
}

.video-play-trigger:focus-visible {
  outline-offset: -4px;
}

.video-watch-link {
  font-size: 0.95rem;
}

/* 【翻頁樣式】消息每頁 5 篇、影音每頁 9 支；只有多頁時才顯示。 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.pagination-button {
  min-height: 48px;
  padding: 10px 18px;
  color: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.pagination-button:hover:not(:disabled) {
  color: var(--brick);
  border-color: var(--brick);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 原生站內播放視窗：手機也保留至少 200px 的播放器高度。 */
.video-player-dialog {
  position: fixed;
  inset: 0;
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  color: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.video-player-dialog::backdrop {
  background: rgba(30, 33, 32, 0.78);
}

.video-player-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.video-player-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.video-player-heading button {
  flex-shrink: 0;
}

.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: var(--charcoal);
}

.video-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .pagination p {
    order: -1;
    flex-basis: 100%;
  }

  .video-player-dialog {
    padding: 16px;
  }
}

.text-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 8px 0;
  color: var(--charcoal);
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--brick);
}

/* 聯絡資訊恢復頁尾磚紅色版面，正式內容不退回假資料。 */
.contact-section {
  padding: 100px 0 80px;
  color: var(--warm-white);
  background: linear-gradient(115deg, rgba(160, 79, 63, 0.95) 0 38%, rgba(126, 61, 50, 0.98) 38% 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.contact-heading .eyebrow { color: #f0c8bf; }
.contact-copy, .contact-map { min-width: 0; }
.contact-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.contact-heading > p:not(.eyebrow) { max-width: 420px; margin: 22px 0; color: rgba(255, 255, 255, 0.85); }
.contact-details { display: grid; font-style: normal; }
.contact-details > div { min-width: 0; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.contact-details > div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.contact-label { display: block; margin-bottom: 7px; color: #f0d9d3; font-size: 0.9rem; }
.contact-details p { margin: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.contact-details a { display: inline-flex; min-height: 44px; align-items: center; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-giving-link { display: inline-flex; min-height: 48px; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
/* 桌機右側地圖；手機沿用 contact-grid 的單欄規則，地圖自然排在聯絡資料後。 */
.contact-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--radius); background: var(--paper); }
.map-directions-link { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: var(--radius); font-weight: 600; }
.map-directions-link:hover { background: rgba(255, 255, 255, 0.12); }
.map-note { margin: 12px 0 0; color: #f0d9d3; font-size: 0.9rem; }
@media (max-width: 680px) { .contact-map iframe { height: 280px; } }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links a { display: inline-flex; min-height: 48px; align-items: center; }
/* 奉獻僅列教會核准的帳戶，不做線上付款。 */
.giving-section { background: var(--paper); }
.giving-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.giving-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--warm-white); }
.giving-card h3 { margin-bottom: 16px; font-size: 1.3rem; }
.giving-notice { color: var(--brick-dark); }
.giving-card dl { margin: 20px 0 0; }
.giving-card dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.giving-card dt { color: var(--muted); }
.giving-card dd { margin: 0; overflow-wrap: anywhere; }

.social-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 50px;
}

.social-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.social-icon-youtube {
  font-size: 0.55rem;
}

.site-footer {
  padding: 48px 0 25px;
  color: rgba(255, 255, 255, 0.76);
  background: #202222;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 38px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.brand-mark-light {
  background: rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
}

.back-to-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.86rem;
}

.back-to-top:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-warning {
  color: #d9a99d;
}

/* 示意功能提示視窗 */
.demo-dialog[hidden] {
  display: none;
}

.demo-dialog {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 25, 25, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 42px;
  border-radius: var(--radius-large);
  text-align: center;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 44px;
  height: 44px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--brick);
  font-family: var(--font-serif);
  font-style: italic;
}

.dialog-card h2 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
}

.dialog-card p {
  margin-bottom: 25px;
  color: var(--muted);
}

/* 平板版 */
@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 84px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 243, 236, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .primary-nav.open {
    max-height: calc(100vh - var(--header-height));
    padding: 14px 24px 24px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .primary-nav a {
    min-height: 50px;
    padding: 13px 8px;
    border-bottom: 1px solid rgba(41, 44, 44, 0.08);
  }

  .primary-nav a::after {
    display: none;
  }

  .hero-inner {
    align-items: center;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading-split .section-intro {
    max-width: 620px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .story-card-large {
    grid-row: auto;
    min-height: 0;
  }

  .building-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .person-card-featured {
    grid-column: span 2;
  }

  .gathering-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    gap: 60px;
  }
}

/* 手機版 */
@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 0;
    height: auto;
    max-height: none;
    align-items: flex-start;
    /* 導覽 64px + 裝飾 120px + 留白 20px；不靠固定視窗高度擠小文字。 */
    padding: calc(var(--header-height) + 140px) 0 28px;
    background: var(--warm-white);
  }

  .hero::before {
    display: none;
  }

  /* 原背景不換，只將手機装飾縮短並移到導覽列下方，避免遮住十字架。 */
  .hero-art {
    top: var(--header-height);
    right: 0;
    bottom: auto;
    height: 120px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 8.5vw, 2.25rem);
    line-height: 1.3;
    letter-spacing: 0.03em;
  }

  .hero h1 span {
    display: inline;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero-message {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  /* 手機先保留一句歡迎詞，桌機原本的第二句不變。 */
  .hero-welcome-extra { display: none; }

  .hero-service {
    grid-template-columns: 76px 1fr;
    gap: 2px 12px;
    padding: 13px 14px;
    background: var(--paper);
  }

  .hero-service strong {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  .hero-actions .button {
    width: 100%;
    padding-inline: 14px;
  }

  .concrete-plane {
    top: 0;
    width: 75%;
    height: 100%;
  }

  .brick-plane {
    right: 25%;
    width: 43%;
    height: 86%;
  }

  .hero-cross {
    top: 16px;
    right: 15%;
    width: 8px;
    height: 88px;
  }

  .hero-cross::after {
    top: 26px;
    left: -24px;
    width: 56px;
    height: 8px;
  }

  .demo-banner .container {
    align-items: flex-start;
    padding-block: 15px;
  }

  .demo-banner p {
    line-height: 1.55;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .contact-heading h2 {
    font-size: 2.25rem;
  }

  .section-intro {
    font-size: 0.97rem;
  }

  .story-card,
  .story-card-large,
  .values-card {
    min-height: 0;
    padding: 30px 25px;
  }

  .story-card-large {
    padding-bottom: 30px;
  }

  .card-number {
    top: 20px;
    right: 22px;
    font-size: 3rem;
  }

  .people-area {
    margin-top: 75px;
  }

  .building-story {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
    gap: 24px;
  }

  .people-grid,
  .person-card-featured {
    grid-template-columns: 1fr;
  }

  .person-card-featured,
  .person-card {
    grid-column: auto;
  }

  .person-photo-frame {
    width: 180px;
    min-height: 240px;
    margin: 24px auto 0;
    border-radius: var(--radius);
  }

  .person-photo-placeholder {
    min-height: 240px;
  }

  .person-photo {
    height: 240px;
  }

  .person-card-featured .person-info {
    padding: 0 24px 24px;
  }

  .gathering-grid {
    grid-template-columns: 1fr;
  }

  .gathering-card {
    min-height: 0;
    padding: 28px;
  }

  .news-item {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 25px 0;
  }

  /* 手機把日期放在上方，讓全文及海報可以使用整個內容寬度。 */
  .news-item time {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .news-item time span {
    margin-bottom: 0;
    font-size: 2.25rem;
  }

  .news-body {
    padding-left: 12px;
  }

  .video-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
  }

  /* 手機每排兩個分類，保留足夠的點擊面積與中文字空間。 */
  .video-category-button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 8px;
    overflow-wrap: anywhere;
  }

  .video-playlist-link {
    width: 100%;
  }

  .video-results-heading {
    margin-top: 24px;
  }

  .news-content h3 {
    font-size: 1.16rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 72px 0 56px;
    background: linear-gradient(165deg, rgba(160, 79, 63, 0.98) 0 32%, rgba(126, 61, 50, 0.99) 32% 100%);
  }

  .giving-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .giving-grid .section-heading { margin-bottom: 0; }
  .giving-card { padding: 24px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-details p {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  .social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .social-button {
    justify-content: center;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    gap: 10px;
  }

  .dialog-card {
    padding: 38px 24px 28px;
  }
}

/* 尊重使用者「減少動態效果」的系統設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
