/* =====================================================
   Chi-Yuan Exclusive Offers — Page-scoped CSS
   All rules scoped under .tmpl-chi-yuan-exclusive-offers
   ===================================================== */

.tmpl-chi-yuan-exclusive-offers {
  /* 與 .shared-bottom-sections --ab-font 一致 */
  --cyeo-font: "Inter", "Noto Sans TC", "Noto Sans JP", sans-serif;
  font-family: var(--cyeo-font);
  color: #111;
}

.tmpl-chi-yuan-exclusive-offers * {
  box-sizing: border-box;
}

.tmpl-chi-yuan-exclusive-offers img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tmpl-chi-yuan-exclusive-offers a {
  color: inherit;
  text-decoration: none;
}

.tmpl-chi-yuan-exclusive-offers p {
  margin: 0;
}

/* ========================= Shared CTA Button ========================= */

.tmpl-chi-yuan-exclusive-offers .cyeo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 200px;
  height: 51px;
  margin: 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  top: -10px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-cta__inner img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

/* ========================= Section 1 — Hero ========================= */

.tmpl-chi-yuan-exclusive-offers .cyeo-s1 {
  position: relative;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  height: 60px;
  background: #e6433e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 260px;
  z-index: 2;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__header-inner {
  width: 100%;
  display: flex;
  gap: 33px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__logo {
  width: 168px;
  height: 34px;
  flex: 0 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav a {
  opacity: 0.95;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav a:hover,
.tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav a:focus-visible,
.tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__hero {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 490px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/chi-yuan-exclusive-offers/s1_hero_bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__content {
  position: relative;
  z-index: 1;
  width: min(764px, calc(100% - 3rem));
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__title {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__subtitle {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__pill {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 36.5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__pill-text {
  color: #e6433e;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__service {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #fff;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__service-badge {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__service-icon {
  width: 39px;
  height: 49px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__service-label {
  color: #fea500;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__divider {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__divider img {
  width: 1px;
  height: 45px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s1__service-area {
  font-size: 20px;
  line-height: 1.4;
  max-width: 525px;
}

/* ========================= Section 2 — 吉元有線電視方案 ========================= */

.tmpl-chi-yuan-exclusive-offers .cyeo-s2 {
  padding: 36px 0 60px;
  background: #fff;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__inner {
  position: relative;
  width: min(1368px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* 進場動畫：全站 section 會加 translateY，易影響絕對定位與層疊；此區改為僅淡入，喇叭圖才不會被「帶偏」或蓋住 */
.tmpl-chi-yuan-exclusive-offers .cyeo-s2.fade-in-up-element {
  transform: none;
  transition: opacity 0.8s ease-out;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2.fade-in-up-element.is-inview {
  transform: none;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: min(430px, 100%);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__title-deco {
  position: relative;
  width: 430px;
  height: 38px;
  display: grid;
  place-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__title-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__title {
  position: relative;
  margin: 0;
  color: #e6433e;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__desc {
  width: min(700px, 100%);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  text-align: left;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__type-label {
  color: #e6433e;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-triangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 80px;
  display: flex;
  justify-content: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-triangle img {
  width: 80px;
  height: 56px;
  /* Set exact height of SVG to ensure aspect ratio */
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-body {
  width: 294px;
  max-width: 100%;
  border: 1px solid #000;
  background: #fff;
  padding: 66px 17px 24px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--short .cyeo-s2__card-body {
  height: 246px;
  padding-top: 66px;
  padding-bottom: 24px;
  justify-content: flex-start;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--tall .cyeo-s2__card-body {
  height: 465px;
  padding-top: 68px;
  padding-bottom: 22px;
  justify-content: flex-start;
  gap: 23px;
}

/* Card 1 specific gap */
.tmpl-chi-yuan-exclusive-offers
  .cyeo-s2__card:nth-child(1)
  .cyeo-s2__card-body {
  gap: 26px;
}

/* Tall cards title spacing fix to match 16px gap before first group */
.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--tall .cyeo-s2__card-title {
  margin-bottom: -7px;
}

/* Card 4 specific spacing */
.tmpl-chi-yuan-exclusive-offers
  .cyeo-s2__card:nth-child(4)
  .cyeo-s2__card-body {
  gap: 0;
}

.tmpl-chi-yuan-exclusive-offers
  .cyeo-s2__card:nth-child(4)
  .cyeo-s2__card-sub-text {
  margin-top: auto;
  margin-bottom: 8px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(4) .cyeo-s2__price {
  margin-bottom: auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  width: 260px;
  max-width: 100%;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-sub-text {
  font-size: 16px;
  text-align: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__plan-group {
  width: 260px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__plan-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  font-size: 16px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__price {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #e6433e;
  font-size: 16px;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__price--center {
  justify-content: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__price img {
  width: 18px;
  height: 20px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__highlight-box {
  width: 260px;
  max-width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe1e0;
  font-size: 16px;
  text-align: center;
  padding: 0 12px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__megaphone {
  position: absolute;
  z-index: 12;
  right: clamp(12px, 4vw, 56px);
  bottom: 5.5rem;
  transform: translate(-13rem, -1.7rem);
  width: 122px;
  height: 107px;
  pointer-events: none;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__megaphone img {
  width: 100%;
  height: 100%;
  transform: scale(0.9);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s2__disclaimer {
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(180.764deg, #e6433e 0%, #802523 137.82%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 228px;
  align-self: flex-end;
  margin-right: 10%;
  transform: translate(7rem, -5rem);
  /* Move 3rem right and 3rem up */
}

/* ========================= Section 3 — 苗栗吉元有線電視 ========================= */

.tmpl-chi-yuan-exclusive-offers .cyeo-s3 {
  padding: 44px 0 60px;
  background-image: url("../img/chi-yuan-exclusive-offers/s3_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
  /* 垂直方向仍讓人物可跨區；電腦端見下方 overflow-x: clip */
}

/* 進場動畫：全站 section 的 translateY 會影響層疊；此區改為僅淡入，人物裝飾才能跨區顯示 */
.tmpl-chi-yuan-exclusive-offers .cyeo-s3.fade-in-up-element {
  transform: none;
  transition: opacity 0.8s ease-out;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3.fade-in-up-element.is-inview {
  transform: none;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(
    255,
    255,
    255,
    0.9
  ); /* Add an overlay if text needs contrast, adjust as needed */
  z-index: 0;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__inner {
  position: relative;
  z-index: 2;
  width: min(1368px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: min(430px, 100%);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__title-deco {
  position: relative;
  width: 430px;
  height: 38px;
  display: grid;
  place-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__title-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__title {
  position: relative;
  margin: 0;
  color: #e6433e;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__desc {
  width: min(700px, 100%);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__type-label {
  color: #e6433e;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__cols {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 240px));
  gap: 44px;
  justify-content: center;
  align-items: start;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__col {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-header {
  width: 100%;
  height: 92px;
  border: 1px solid #e6433e;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-title {
  color: #e6433e;
  font-size: 20px;
  line-height: 1.2;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-sub {
  font-size: 16px;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 161px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-list--single {
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 24px;
  padding: 3px 13px;
  background: #e6433e;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-val {
  font-size: 16px;
  color: #000;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__single-price {
  font-size: 16px;
  color: #000;
  text-align: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__note-box {
  width: 100%;
  min-height: 58px;
  padding: 10px 30px;
  background: #ffe1e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
}

/* Person Decoration (Bottom Left) — 在 ::before 遮罩之上、主內容之下；整段 S3 z-index 高於 S4 才能跨區不被下一區白底蓋住 */
.tmpl-chi-yuan-exclusive-offers .cyeo-s3__person-deco {
  position: absolute;
  left: 0;
  bottom: -10rem;
  width: 800px; /* 320px * 2.5 = 800px */
  max-width: 60%; /* Allow it to take up more space on large screens */
  z-index: 1;
  pointer-events: none;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s3__person-deco img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom left;
}

/* 電腦端：人物裝飾略向左；僅裁切水平方向溢出，避免整頁橫向捲動（不影響下方跨區顯示） */
@media (min-width: 769px) {
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3 {
    overflow-x: clip;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__person-deco {
    transform: translateX(-5rem);
  }
}

/* ========================= Section 4 — 吉元網路方案 ========================= */

.tmpl-chi-yuan-exclusive-offers .cyeo-s4 {
  position: relative;
  z-index: 1;
  padding: 64px 0 60px;
  background: #fff;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__inner {
  width: min(1368px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: min(430px, 100%);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__title-deco {
  position: relative;
  width: 430px;
  height: 38px;
  display: grid;
  place-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__title-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__title {
  position: relative;
  margin: 0;
  color: #e6433e;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__desc {
  width: min(700px, 100%);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__tables {
  width: 100%;
  display: flex;
  gap: 72px;
  align-items: flex-start;
  justify-content: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__table {
  flex: 0 1 563px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6433e;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-bar--mt {
  margin-top: 39px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-rows {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__speed-box {
  width: 132px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
  font-size: 20px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__speed-box--wide {
  font-size: 16px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 0 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell img {
  width: 19px;
  height: 26px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell span {
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__note-cell {
  width: 286px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbdbdb;
  font-size: 16px;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__note-cell--narrow {
  width: 203px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__quote {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 20px;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__bracket {
  width: 18px;
  height: 98px;
  flex: 0 0 auto;
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__bracket--right {
  transform: scaleX(-1);
}

.tmpl-chi-yuan-exclusive-offers .cyeo-s4__quote-text {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  max-width: 660px;
}

/* ========================= Responsive ========================= */

@media (max-width: 1024px) {
  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__header {
    padding: 6px 24px;
    position: sticky;
    transform: none;
    left: 0;
    max-width: none;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__hero {
    max-width: none;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav {
    gap: 18px;
    font-size: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__cols {
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 28px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__tables {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table {
    width: 100%;
    max-width: 650px;
  }
}

/* ========================= Mobile RWD (≤ 768px) — Figma 375px ========================= */

@media (max-width: 768px) {
  /* 覆蓋 custom.css 的 section { align-items: center }，避免區塊內容被置中產生多餘空白 */
  .tmpl-chi-yuan-exclusive-offers section {
    align-items: stretch;
  }

  /* ========== S1：Hero Banner ========== */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__header {
    padding: 6px 16px;
    position: sticky;
    transform: none;
    left: 0;
    max-width: none;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__header-inner {
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__logo {
    width: 140px;
    height: auto;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__nav {
    display: none;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__hero {
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 136;
    min-height: auto;
    margin: 0 auto;
    padding: 0;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__hero::before {
    inset: 0;
    background: none;
    background-image: url("../img/吉元獨家優惠_banner_M.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__content {
    display: none;
  }

  /* ========== 共用：CTA 按鈕 ========== */
  .cyeo-s2 .cyeo-cta {
    margin-top: -25px;
  }
  .tmpl-chi-yuan-exclusive-offers .cyeo-cta {
    width: 123px;
    height: 42px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-cta__inner {
    font-size: 14px;
    gap: 8px;
    top: -8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-cta__inner img {
    width: 16px;
    height: 16px;
  }

  /* ========== 共用：標題裝飾 ========== */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__title-deco,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__title-deco,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__title-deco {
    width: 252px;
    height: 26px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__title,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__title,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__title {
    font-size: 13px;
    font-weight: 600;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__subtitle,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__subtitle,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__subtitle {
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__desc,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__desc,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__type-label,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__type-label {
    font-size: 14px;
  }

  /* ========== S2：吉元有線電視方案 ========== */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2 {
    padding: 24px 0 36px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__inner {
    width: calc(100% - 56px);
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__heading {
    width: 100%;
    gap: 8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(1) {
    order: 1;
  }
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(2) {
    order: 3;
  }
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(3) {
    order: 4;
  }
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(4) {
    order: 2;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-triangle {
    width: 40px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-triangle img {
    width: 40px;
    height: 22px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-body {
    width: 100%;
    padding: 28px 10px 14px;
    gap: 10px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--short .cyeo-s2__card-body {
    height: auto;
    min-height: 178px;
    padding-top: 28px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--tall .cyeo-s2__card-body {
    height: auto;
    padding-top: 28px;
    gap: 8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card--tall .cyeo-s2__card-title {
    margin-bottom: 0;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s2__card:nth-child(1)
    .cyeo-s2__card-body,
  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s2__card:nth-child(4)
    .cyeo-s2__card-body {
    gap: 10px;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s2__card:nth-child(4)
    .cyeo-s2__card-sub-text {
    margin-top: 0;
    margin-bottom: 0;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card:nth-child(4) .cyeo-s2__price {
    margin-bottom: 0;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-title {
    font-size: 14px;
    width: auto;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__card-sub-text {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__plan-group {
    width: 100%;
    gap: 4px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__plan-row {
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 4px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__price {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__price img {
    width: 14px;
    height: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__highlight-box {
    width: 100%;
    height: auto;
    min-height: 28px;
    font-size: 12px;
    padding: 6px 8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__megaphone {
    display: block;
    position: static;
    transform: none;
    width: 86px;
    height: 76px;
    align-self: flex-start;
    margin-left: 26px;
  }

  /* 免責：整塊水平置中，內文靠左（多行視覺仍置中） */
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__disclaimer {
    transform: none;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: -56px;
    text-align: left;
    max-width: 182px;
    font-size: 12px;
    transform: translate(3rem, -1.5rem);
  }

  /* ========== S3：苗栗吉元有線電視 ========== */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3 {
    padding: 24px 0 28px;
    overflow-x: hidden; /* 裁切人物圖水平溢出；不支援 clip 時仍有效 */
    overflow-x: clip;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__inner {
    width: calc(100% - 60px);
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__heading {
    gap: 8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__col {
    gap: 14px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-header {
    height: 92px;
    padding: 17px 4px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-title {
    font-size: 13px;
    font-weight: 600;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__col-sub {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-list {
    width: 100%;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-row {
    gap: 8px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__badge {
    width: 86px;
    min-width: auto;
    height: 24px;
    padding: 3px 13px;
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__price-val {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__single-price {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__note-box {
    min-height: 58px;
    font-size: 12px;
    padding: 10px 11px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__person-deco {
    width: 148px;
    max-width: 40%;
    bottom: -1rem;
    left: 0;
    transform: translateX(-1.5rem);
  }

  /* ========== S4：吉元網路方案 ========== */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4 {
    padding: 20px 0 24px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__inner {
    width: calc(100% - 48px);
    gap: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__heading {
    gap: 6px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__tables {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table {
    width: 100%;
    max-width: none;
    gap: 10px;
    flex: 0 0 auto;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-bar {
    height: 28px;
    font-size: 13px;
    font-weight: 600;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-bar--mt {
    margin-top: 0;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table-rows {
    gap: 10px;
  }

  /* S4 第一張表：光纖網路 — 橫向行 */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:first-child .cyeo-s4__row {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__speed-box {
    width: 76px;
    height: 24px;
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__speed-box--wide {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell img {
    width: 12px;
    height: 16px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell span {
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__price-cell {
    gap: 4px;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:first-child
    .cyeo-s4__note-cell {
    width: auto;
    flex: 1;
    height: 24px;
    font-size: 12px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__note-cell,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__note-cell--narrow {
    height: 24px;
    font-size: 12px;
  }

  /* S4 第二張表：有線電視單辦 ＋ 網路+電視合併 — 兩欄並排 */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child > :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child > :nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child > :nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:last-child
    .cyeo-s4__table-bar {
    font-size: 13px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__table:last-child .cyeo-s4__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:last-child
    .cyeo-s4__speed-box,
  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:last-child
    .cyeo-s4__speed-box--wide {
    width: 100%;
    font-size: 12px;
    border: none;
    background: none;
    height: auto;
  }

  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:last-child
    .cyeo-s4__note-cell,
  .tmpl-chi-yuan-exclusive-offers
    .cyeo-s4__table:last-child
    .cyeo-s4__note-cell--narrow {
    width: 100%;
    height: 24px;
    font-size: 12px;
  }

  /* S4 引用框 — 括號左右 */

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__quote {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__bracket {
    display: block;
    width: 14px;
    height: auto;
    max-height: 60px;
    flex: 0 0 14px;
  }

  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__quote-text {
    font-size: 12px;
    max-width: 200px;
  }
}

/* ==========================================================================
   全站區塊內文統一排版：電腦端與行動端（僅內文置左、行高 1.5；標題維持置中）
   ========================================================================== */
.tmpl-chi-yuan-exclusive-offers .cyeo-s1__subtitle,
.tmpl-chi-yuan-exclusive-offers .cyeo-s2__subtitle,
.tmpl-chi-yuan-exclusive-offers .cyeo-s3__subtitle,
.tmpl-chi-yuan-exclusive-offers .cyeo-s4__subtitle {
  text-align: left;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__header,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__header,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__header,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__header {
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
    box-sizing: content-box;
  }
}

@media (max-width: 480px) {
  .tmpl-chi-yuan-exclusive-offers .cyeo-s1__subtitle,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s2__subtitle,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s3__subtitle,
  .tmpl-chi-yuan-exclusive-offers .cyeo-s4__subtitle {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }
}
