/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* 高度：手機較高、桌機更沉穩 */
  min-height: clamp(56vh, 64vh, 70vh);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.cta-banner__inner {
  width: min(1100px, 92vw);
  display: grid;
  gap: clamp(16px, 4vw, 28px);
  justify-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}

.cta-banner__title {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  /* 手機大、桌機更大；中文更有份量 */
  font-size: clamp(28px, 6.2vw, 56px);
  letter-spacing: 0.5px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  /* 讓多行置中更漂亮 */
  max-width: 16ch;
}

/* 膠囊描邊按鈕（依你先前風格） */
.btn-cta-outline {
  --c: #ffffff;
  --c2: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  color: var(--c);
  background: transparent;
  border: 2px solid var(--c2);
  font-weight: 800;
  font-size: clamp(14px, 2.8vw, 18px);
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  backdrop-filter: saturate(120%) blur(1px);
}
.btn-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
.btn-cta-outline:active {
  transform: translateY(0);
}

/* 讓 <picture>/<img> 像背景一樣鋪滿 */
.cta-banner__media,
.cta-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cta-banner__img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  z-index: -2;
}

/* 原本的暗化層，改掛在 .cta-banner 上即可 */
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: -1;
}

/* ===== Desktop tweaks ===== */
@media (min-width: 992px) {
  .cta-banner {
    min-height: 68vh;
  }
  .cta-banner__title {
    max-width: 18ch;
  }
}

/* 手機：CTA 內距 & 標題間距 */
@media (max-width: 576px) {
  .cta-banner__inner {
    padding: 56px 18px 28px; /* 上下內距拉大 */
  }
  .cta-banner__title {
    margin: 0 0 16px; /* 標題與按鈕的距離 */
    line-height: 1.5; /* 文字更緊實不擠 */
    font-size: clamp(24px, 8vw, 32px); /* 如需，也可稍縮字級 */
    text-wrap: balance; /* 多行字更均衡（支援的瀏覽器會生效） */
  }
  .cta-banner__actions {
    margin-top: 6px; /* 按鈕區與標題再留一點空 */
  }
}
