/* ===== CTA banner ===== */
.pm-cta {
  position: relative;
  padding: clamp(40px, 12vw, 96px) 16px; /* 上下留白（mobile-first） */
  overflow: hidden;
}

/* 背景層：使用 <picture> + object-fit:cover；加遮罩提升對比 */
.pm-cta__bg {
  position: absolute;
  inset: 0;
}
.pm-cta__bg picture,
.pm-cta__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 若要完全不裁切，可改成 contain */
  object-position: center;
}
.pm-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
}

/* 內容層 */
.pm-cta__content {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.pm-cta__title {
  margin: 0 0 clamp(16px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 8vw, 56px); /* 手機大、桌機更大 */
}

/* 按鈕：白色描邊、透明底 */
.pm-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(16px, 3.8vw, 20px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.08s ease;
  backdrop-filter: saturate(110%) blur(0.5px);
}
.pm-cta__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.pm-cta__btn:active {
  transform: scale(0.98);
}

/* 平板以上可微調排版（仍保左對齊、更像示意圖） */
@media (min-width: 768px) {
  .pm-cta {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pm-cta__title {
    font-size: clamp(40px, 6vw, 64px);
  }
}
@media (min-width: 1024px) {
  .pm-cta {
    padding-top: clamp(72px, 12vw, 140px);
    padding-bottom: clamp(72px, 12vw, 140px);
  }
}

/* === 手機版 CTA 高度增加（平板、桌機不變） === */
@media (max-width: 767.98px) {
  .pm-cta {
    min-height: clamp(320px, 55vh, 360px); /* 約略落在 340px 高度區間 */
    display: flex;
    align-items: center; /* 垂直置中 */
    justify-content: center; /* 水平置中 */
    text-align: center;
    padding: 28px 16px; /* 邊距稍收斂，符合比例 */
  }

  .pm-cta__content {
    width: 100%;
    max-width: 560px; /* 限制文字行寬，保持版心 */
  }

  .pm-cta__title {
    margin-bottom: 16px; /* 與按鈕距離微調 */
  }
}
