body { background-color: var(--color-bg-page); }

/* 寬度比照 /donate/、/donate/pay/ 統一為 1100px（子區塊各自已有 20px padding，與其他頁一致） */
.cd-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 0 48px;
}
/* 上方位移 = 各版型 fixed navbar 高度（common.css：桌機 170px → 捐款頁 donate_shared.css 壓縮為 90px、平板 100px、手機 80px） */
@media (max-width: 1300px) {
  .cd-page { padding-top: 100px; }
}

/* 平板（iPad 及以下） */
@media (max-width: 1024px) {
  .cd-page { padding-left: 16px; padding-right: 16px; }
  .cd-tagline__text { font-size: 1.75rem; }
  .cd-closing__text { font-size: 1.45rem; }
  .cd-description { font-size: 1.2rem; }
  .cd-description blockquote { font-size: 1.3rem; }
}

/* 小平板 / 手機橫向 */
@media (max-width: 768px) {
  .cd-page { padding-top: 80px; }
  .cd-tagline { padding-top: 28px; }
  .cd-tagline__text { font-size: 1.5rem; }
  .cd-closing__text { font-size: 1.3rem; }
  .cd-hero__title { font-size: 1.8rem; }
  .cd-hero__overlay { padding: 24px 20px; }
  .cd-hero__tagline { font-size: 1.3rem; }
}

/* 手機直向 */
@media (max-width: 480px) {
  .cd-tagline__text { font-size: 1.3rem; }
  .cd-closing__text { font-size: 1.15rem; }
  .cd-description { font-size: 1.1rem; line-height: 1.85; }
  .cd-description blockquote { font-size: 1.2rem; padding-left: 18px; }
  .cd-gallery { padding: 28px 16px 36px; }
  .cd-closing { padding: 28px 16px 0; }
}

/* Hero wrapper（不加 overflow: hidden，讓按鈕不被裁切） */
.cd-hero-wrap {
  position: relative;
  margin: 0;
}
/* Hero */
.cd-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.cd-hero--placeholder::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}
.cd-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 50%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}
.cd-hero__title {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.cd-hero__tagline {
  color: rgba(255,255,255,0.95);
  font-size: 1.7rem;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

/* 大標（hero 下方） */
.cd-tagline {
  padding: 52px 20px 0;
  text-align: center;
}
.cd-tagline__text {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--color-primary-text);
  line-height: 1.4;
  margin: 0 0 16px;
}

/* 說明內容 */
.cd-body {
  padding: 36px 20px 0;
}
.cd-description {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--color-text-primary);
  text-align: left;
}
/* 1.1em 是為正常多句段落設計的通用值，不為單一頁面的寫作習慣調整——
   句子該連在一起時請在內容裡用 <br/> 併段，不要動這裡（2026-07-08 Lynn 原則） */
.cd-description p { margin-bottom: 1.1em; }
.cd-description h2, .cd-description h3 {
  margin-top: 2em;
  font-weight: 700;
  color: var(--color-text-primary);
}
.cd-description blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--color-primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.cd-description img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
}
.cd-no-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  text-align: center;
  padding: 40px 0;
}

/* 整修過程照片輪播 */
.cd-gallery {
  margin-top: 40px;
  padding: 40px 20px 40px;
}
.cd-gallery__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.cd-gallery__label::before,
.cd-gallery__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d9ccc4;
}
.cd-gallery__label span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a0877a;
  white-space: nowrap;
}
.cd-gallery__swiper {
  padding-bottom: 8px;
}
.cd-gallery__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}
.cd-gallery__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cd-gallery__caption {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 8px 0 0;
}
.cd-gallery__swiper .swiper-button-prev,
.cd-gallery__swiper .swiper-button-next {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  top: calc(50% - 16px);
}
.cd-gallery__swiper .swiper-button-prev { left: 4px; }
.cd-gallery__swiper .swiper-button-next { right: 4px; }
.cd-gallery__swiper .swiper-button-prev::after,
.cd-gallery__swiper .swiper-button-next::after {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 700;
}

/* 結語（照片後） */
.cd-closing {
  padding: 32px 20px 0;
}
.cd-closing__text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text-secondary);
  text-align: center;
}

/* CTA 下方的統籌揭露（無勸募字號期間；campaign_no 填入後 template 自動不渲染） */
.cd-cta-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 12px 0 36px;
}

/* Mid-page 暫停點：分隔線 + 按鈕，讓讀者可以選擇捐款或繼續讀，不做成硬斷面 */
.cd-mid-break {
  margin: 20px 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cd-mid-break .cd-cta { padding: 0; }
.cd-mid-break .cd-cta-note { margin: 0; }

/* 捐款 CTA */
.cd-cta {
  padding: 28px 20px 0;
  display: flex;
  justify-content: center;
}
.cd-cta--mid .cd-cta__btn {
  box-shadow: 0 3px 12px rgba(197,58,47,0.3);
}
.cd-cta__btn {
  box-sizing: border-box;  /* 手機版 width:100% 時 padding 不撐爆版面 */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--color-primary-text);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(197,58,47,0.4);
}
.cd-cta__btn:hover {
  background: var(--color-primary-text-dark);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
  .cd-hero { aspect-ratio: 3 / 2; border-radius: 0; margin: 0; }
  .cd-hero__title { font-size: 2.3rem; }
  .cd-hero__tagline { font-size: 1.3rem; }
  .cd-tagline { padding: 36px 16px 0; }
  .cd-tagline__text { font-size: 1.5rem; }
  .cd-body { padding: 24px 16px 0; }
  .cd-gallery { padding: 36px 16px 44px; }
  .cd-closing { padding: 24px 16px 0; }
  .cd-closing__text { padding: 28px 24px; font-size: 1.35rem; }
  .cd-cta__btn { width: 100%; justify-content: center; }
}
