/* 全域自訂樣式 */

body {
  line-height: 1.3;
  overflow-x: hidden;
}

img {
  pointer-events: none;
}

h1 {
  font-size: 48px;
  margin: 0;
}

h2 {
  font-size: 24px;
  margin: 0;
  line-height: 29px;
}

h3 {
  font-size: 20px;
  margin: 0;
}

p {
  margin: 0;
}

.blank-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow-x: hidden;
}

:root {
  --wp--preset--font-size--medium: clamp(
    1rem,
    1rem + ((1vw - 0.2rem) * 0.227),
    1rem
  );
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== Unified H2 Section Title Decoration (non-homepage) ===== */
body:not(.home) .section-h2-deco {
  position: relative;
  width: 430px;
  max-width: 100%;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: center;
}

body:not(.home) .section-h2-deco__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
}

body:not(.home) .section-h2-deco__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #e6433e;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 480px) {
  body:not(.home) .section-h2-deco {
    width: 252px;
    height: 26px;
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 97px 0 69px;
  align-items: center;
}

/* page h1 title */
.page-title-section {
  width: 100%;
  max-width: 764px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 0px;
  box-sizing: border-box;
  gap: 36px;
  text-align: center;
  font-size: 48px;
  color: #fff;
  font-family: Inter;
}
.pahe-h1-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-h1 {
  align-self: stretch;
  position: relative;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}
.page-h1-sub {
  position: relative;
  font-size: 24px;
  font-weight: 500;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.pahe-h1-des-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 24px;
  text-align: left;
  font-size: 20px;
  color: #e6433e;
}
.highlight-des-wrap {
  height: 54px;
  width: 100%;
  max-width: 764px;
  border-radius: 36.5px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-des {
  position: relative;
}
.service-area-inner {
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #fea500;
}
.area-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.area-icon {
  height: 49px;
  width: 39.2px;
  position: relative;
}
.area-text {
  position: relative;
  font-weight: 500;
}
.area-hr {
  height: 46px;
  width: 1px;
  position: relative;
  border-right: 1px solid #fff;
  box-sizing: border-box;
}
.area-text2 {
  position: relative;
  color: #fff;
  max-width: 540px;
}

/* page h2 title */

.page-inner-wrap {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: left;
  font-family: Inter;
}
.page-head-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  isolation: isolate;
  gap: 10px;
}
.page-title-h2 {
  position: relative;
  font-weight: 500;
  z-index: 0;
  flex-shrink: 0;
  color: #e6433e;
  margin: 0;
}
.page-title-dec-img {
  position: absolute;
  margin: 0 !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  flex-shrink: 0;
}
.page-sub {
  align-self: stretch;
  position: relative;
  font-size: 20px;
  color: #000;
  text-align: center;
}
.page-des {
  position: relative;
  color: #000;
  margin: 0;
  max-width: 700px;
}

/* page btn */
.page-btn-wrap {
  width: 100%;
  max-width: 200px;
  height: 51px;
  position: relative;
  text-align: left;
  font-size: 16px;
  color: #000;
  font-family: Inter;
  justify-self: center;
}

.page-btn-link {
  text-decoration: none;
}

.page-btn-text-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #000;
  border-bottom: none;
  height: 32px;
  background-color: #fff;
}

.page-btn-skew-box-icon {
  border: 1px solid #000;
  transform: skew(25deg);
  height: 20px;
  background-color: #e6433e;
  position: relative;
  left: 5px;
}

.page-btn-text {
  position: relative;
}

.page-btn-icon {
  height: 21px;
  width: 21px;
  border-radius: 10.5px;
}

.net-plan-ellipse-circle {
  width: 4px;
  height: 4px;
  background-color: #fea500;
  border-radius: 50%;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
  /* 首頁行動裝置區塊改為顯示（已取消隱藏） */
  /* .home .pricing-plans,
  .home .xinhe-highlight,
  .home .s1-section {
    display: none !important;
  } */

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  .page-title-section {
    gap: 7px;
    padding: 0;
  }

  .pahe-h1-head {
    gap: 3px;
  }

  .page-h1 {
    font-size: 13px;
    line-height: 22px;
  }

  .page-h1-sub {
    font-size: 12px;
    font-weight: 400;
  }

  .pahe-h1-des-container {
    font-size: 10px;
    gap: 10px;
  }

  .highlight-des-wrap {
    max-width: 285px;
    height: 28px;
    padding: 12px 20px;
  }

  .service-area-inner {
    gap: 8px;
    text-align: center;
  }

  .area-wrap {
    gap: 4px;
  }

  .area-hr {
    height: stretch;
    width: 1px;
    border: none;
    background-color: #fff;
  }

  .area-text2 {
    max-width: 100%;
    text-align: center;
  }

  .page-inner-wrap {
    gap: 24px;
  }

  .page-des {
    max-width: 100%;
  }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  :root {
    --wp--preset--font-size--medium: 12px;
  }

  .mobile-only {
    display: block;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 13px;
    line-height: 22px;
  }

  p {
    font-size: 12px;
  }

  .hero-section {
    padding: 18.1px 0;
  }

  .center-text {
    text-align: center;
  }

  .container {
    max-width: 300px;
  }

  .page-btn-wrap {
    max-width: 120px;
  }
  .page-btn-text-box {
    gap: 11px;
    height: 26px;
  }
  .page-btn-text {
    font-size: 12px;
  }

  .page-btn-icon {
    width: 15px;
    height: 15px;
  }

  .page-btn-skew-box-icon {
    height: 15px;
    left: 4px;
  }

  .desktop-only {
    display: none !important;
  }
  .highlight-des-wrap {
    height: auto;
    padding: 10px 16px;
    border-radius: 20px;
  }

  .area-icon {
    height: 16px;
    width: auto;
  }

  .area-text {
    font-size: 12px;
    white-space: nowrap;
  }

  .area-text2 {
    font-size: 10px;
  }

  .page-head-wrap {
    gap: 12px;
  }

  .page-sub {
    font-size: 12px;
  }

  .page-title-h2 {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  /* 各分頁 H2 統一手機版樣式（排除首頁） */
  body:not(.home) main h2 {
    font-weight: 600;
    line-height: 22px;
  }
}

/* 首頁 broadband-highlight：行動裝置往左移 1rem，並避免路由器圖造成整頁右側溢出 */
@media (max-width: 640px) {
  .broadband-highlight {
    overflow-x: hidden;
  }
  .broadband-highlight__router {
    transform: translateX(4rem) translateY(2rem) scale(1.2);
  }
}

/* 首頁「寬頻獨家優惠」標題外框：行動裝置直接沿用同頁標題的 SVG 外框（與服務特色等一致） */
@media (max-width: 640px) {
  .broadband-highlight__brand-mark img {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .broadband-highlight__brand-mark::before,
  .broadband-highlight__brand-mark::after,
  .broadband-highlight__brand-mark span::before,
  .broadband-highlight__brand-mark span::after {
    display: none !important;
    content: none !important;
  }
  .broadband-highlight__brand-mark span {
    font-size: 16px;
  }
}

/* 首頁核心特色（寬頻配套）行動裝置：五個紅框改得更扁一點，對齊設計稿 */
@media (max-width: 640px) {
  .broadband-highlight__features-wrap {
    /* 只保留行動端調整：不要讓卡片撐太寬，對齊設計稿留邊 */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .broadband-highlight__features {
    gap: 32px;
  }

  .broadband-highlight__feature {
    /* 內文大外框：依設計稿（只行動裝置） */
    display: flex;
    width: 256px;
    height: 64px;
    padding: 36px 18px 23px 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid var(--0001, #e6433e);
    background: #ffffff;
    box-sizing: border-box;
  }

  .broadband-highlight__feature-title {
    /* 標題框（橢圓）：依你提供的 CSS（只行動裝置） */
    display: flex;
    width: 128px;
    height: 32px;
    padding: 6px 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid var(--0001, #e6433e);
    background: #ffffff;
    box-sizing: border-box;
    /* 保留主樣式中的絕對定位（top/left/transform） */

    /* 核心特色：行動裝置標題文字（13B） */
    color: #000;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px; /* 169.231% */
  }

  .broadband-highlight__feature-text {
    /* 核心特色：行動裝置內文（12） */
    flex: 1 0 0;
    color: #000;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
}

/* ==========================================================================
   Section 5 – 實績案例 Swiper 覆蓋
   ========================================================================== */
.about_s5_trackrecord__slider {
  display: none;
  width: 100%;
  padding-bottom: 40px; /* 給 pagination 留空間 */
}

.about_s5_trackrecord.is-expanded .about_s5_trackrecord__slider {
  display: block; /* 展開時顯示 Swiper */
}

/* Swiper Pagination 樣式覆蓋 */
.about_s5_trackrecord__slider .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1px solid #e6433e;
  opacity: 1;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.about_s5_trackrecord__slider .swiper-pagination-bullet-active {
  background: #e6433e;
  transform: scale(1.05);
}

.about_s5_trackrecord__slider .swiper-pagination-bullets {
  bottom: 0px !important;
}

/* 行動端：不使用 Swiper，改用 CSS grid（與好評推薦一致，不會溢出） */
@media (max-width: 768px) {
  .about_s5_trackrecord__slider {
    padding-bottom: 0;
  }
  .about_s5_trackrecord__slider .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    transform: none !important;
    width: auto !important;
  }
  .about_s5_trackrecord__slider .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }
  /* 預設隱藏所有 slide，只顯示當頁的 */
  .about_s5_trackrecord__slider .swiper-slide {
    display: none !important;
  }
  .about_s5_trackrecord__slider .swiper-slide.is-active-page {
    display: block !important;
  }
  /* 隱藏 Swiper 自帶 pagination，改用自製 */
  .about_s5_trackrecord__slider .swiper-pagination {
    display: none !important;
  }
  /* 自製分頁點 */
  .trackrecord-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .trackrecord-mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e6433e;
    padding: 0;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;
  }
  .trackrecord-mobile-dot.is-active {
    background: #e6433e;
    transform: scale(1.05);
  }
}
/* 好評推薦 slider viewport */
.testimonials-slider-viewport {
  overflow: hidden;
  width: 100%;
}

@media (min-width: 769px) {
  .trackrecord-mobile-dots,
  .testimonials-mobile-dots {
    display: none;
  }

  /* 桌機版：好評推薦滑動分頁點 */
  .testimonials-desktop-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .testimonials-desktop-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e6433e;
    padding: 0;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;
  }
  .testimonials-desktop-dot.is-active {
    background: #e6433e;
    transform: scale(1.05);
  }
}

/* 行動端：好評推薦滑動分頁點 */
@media (max-width: 768px) {
  .testimonials-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .testimonials-mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e6433e;
    padding: 0;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;
  }
  .testimonials-mobile-dot.is-active {
    background: #e6433e;
    transform: scale(1.05);
  }
}

/* ==========================================================================
   全站統一進場動畫
   ========================================================================== */
.fade-in-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in-up-element.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up-element {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 首頁「服務亮點」— 電腦端：「使用直覺」與「費用透明」膠囊背景色對調（行動端維持原狀） */
@media (min-width: 768px) {
  body.home
    .service-features__item:nth-child(3)
    .service-features__badge--orange {
    background: #e6433e;
  }

  body.home .service-features__item:nth-child(4) .service-features__badge--red {
    background: #fea500;
  }
}

/* ==========================================================================
   首頁「服務亮點」— 行動裝置排版（Figma 2162:7036，僅 body.home，不影響桌面）
   左欄寬 147px／右欄 144px；說明多數左對齊，「費用透明」單則置中（見 template）
   ========================================================================== */
@media (max-width: 767px) {
  body.home .service-features__inner {
    gap: 22px;
  }

  body.home .service-features__eyebrow {
    margin: 0;
    text-align: center;
    width: 100%;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    color: #e6433e;
  }

  /* 與稿一致：兩欄固定比例 + 16px 欄距；整體置中 */
  body.home .service-features__grid {
    display: grid;
    grid-template-columns: minmax(0, 147px) minmax(0, 144px);
    justify-content: center;
    align-items: start;
    row-gap: 28px;
    column-gap: 16px;
    width: 100%;
    max-width: min(307px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.home .service-features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  body.home .service-features__icon-wrap {
    width: 100px;
    height: 100px;
    border-width: 1.25px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  body.home .service-features__icon {
    width: 50px;
    height: 50px;
  }

  /* 圖示＋標籤＋內文：與稿相同為欄內水平置中；內文區塊寬度依左／右欄 */
  body.home .service-features__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  body.home .service-features__item:nth-child(odd) .service-features__content {
    max-width: 147px;
  }

  body.home .service-features__item:nth-child(even) .service-features__content {
    max-width: 144px;
  }

  /* 膠囊固定 144px 寬，與稿一致 */
  body.home .service-features__badge {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    min-height: 24px;
    height: 24px;
    margin: 0;
    padding: 4px;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
  }

  /* 小內文 12：Figma 元件為 leading-normal（與設計 token 小內文12 並用） */
  body.home .service-features__text {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    color: #000000;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  body.home .service-features__text--align-center {
    text-align: center;
  }
}

@media (max-width: 320px) {
  body.home .service-features__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 100%;
  }
}

/* ==========================================================================
   首頁「方案懶人包」— 行動裝置（Figma 2162:7102，僅 body.home）
   - simple-animation.js 已排除 .plan-features，此區不套用進場 fade-in-up
   - 卡片半透明毛玻璃透出底圖；打勾＋膠囊與內文排版對齊設計稿
   - 區隔線改不顯示（避免黑線 SVG 被拉成塊），見下方 max-width:960px 規則
   ========================================================================== */
@media (max-width: 767px) {
  body.home .plan-features__bg-mark {
    z-index: 0;
    opacity: 0.42;
    /* 行動端底圖放大 1.3 倍，可超出懶人包卡片範圍（區塊已 overflow:visible）；整體再下移 1rem */
    transform: translateX(-50%) translateY(1rem) scale(1.3);
    transform-origin: center center;
  }

  body.home .plan-features__header,
  body.home .plan-features__summary,
  body.home .plan-features__features-wrap,
  body.home .plan-features__cta-wrap {
    position: relative;
    z-index: 1;
  }
}

/* 區隔列：SVG 為黑線且易被拉成塊狀；首頁改不渲染分隔（欄位間距由 summary-grid gap 負責） */
@media (max-width: 960px) {
  body.home .plan-features__summary-sep {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body.home .plan-features__summary {
    width: 100%;
    max-width: 271px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 19.3px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
  }

  body.home .plan-features__summary .plan-features__eyebrow {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    color: #e6433e;
    text-align: center;
    width: 100%;
    margin: 0;
  }

  body.home .plan-features__summary-line {
    margin-top: 16px;
    width: 100%;
    height: 5px;
    border-radius: 20px;
    background: #fea500;
  }

  body.home .plan-features__summary-grid {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 218px;
    margin-left: auto;
    margin-right: auto;
  }

  body.home .plan-features__summary-item {
    max-width: 218px;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* 打勾圖示與膠囊：與稿相同重疊（圖左、膠囊 left:22px、寬 146px、高 28px、圓角 17px） */
  body.home .plan-features__summary-title-row {
    position: relative;
    width: 168px;
    height: 28px;
    margin: 0 auto;
    display: block;
  }

  body.home .plan-features__summary-title-row img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 27.84px;
    height: 28px;
    margin: 0;
    z-index: 1;
  }

  body.home .plan-features__summary-title {
    position: absolute;
    left: 22px;
    top: 0;
    box-sizing: border-box;
    width: 146px;
    min-height: 28px;
    height: 28px;
    margin: 0;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6433e;
    border-radius: 17px;
    background: #ffffff;
    color: #e6433e;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    white-space: nowrap;
  }

  body.home .plan-features__summary-text {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 218px;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    color: #000000;
    text-align: center;
  }
}

/* ==========================================================================
   首頁「核心特色」六卡片 — Figma 2162:7116（僅 body.home，≤640px）
   黃線：card-line.svg（#FEA500）；標題 13B／內文 12，與稿一致
   ========================================================================== */
@media (max-width: 640px) {
  body.home .plan-features__features-wrap .plan-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 140px));
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 296px;
    margin-left: auto;
    margin-right: auto;
  }

  body.home .plan-features__features-wrap .plan-features__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 140px;
    min-height: 142px;
    height: auto;
    margin: 0;
    border: 1px solid #e6433e;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3.8px);
    -webkit-backdrop-filter: blur(3.8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: visible;
    text-align: center;
  }

  body.home .plan-features__features-wrap .plan-features__card-title {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 108px;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
    color: #e6433e;
    text-align: center;
  }

  /* 黃色分隔線：與稿一致使用 card-line.svg，全寬 108px、視覺 1px 高 */
  body.home .plan-features__features-wrap .plan-features__card-divider {
    width: 100%;
    max-width: 108px;
    height: 1px;
    min-height: 1px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center;
  }

  body.home .plan-features__features-wrap .plan-features__card-divider img {
    display: block !important;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: fill;
  }

  body.home .plan-features__features-wrap .plan-features__card-text {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 108px;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    color: #000000;
    text-align: center;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
  }
}

/* ==========================================================================
   首頁「北視獨家優惠」方案卡片 — Figma（341:4462／341:4485／341:4490／341:4495 等，僅 body.home）
   行動版斷點與 main.css 一致：≤960px 為三欄改直向卡片；桌面 ≥961px 不受影響
   ========================================================================== */
@media (max-width: 960px) {
  body.home .user-types__plan-top .user-types__plan-col {
    gap: 4px;
    align-items: center;
    justify-content: center;
  }

  /* 三張卡片內文字皆強制單行（標籤、數值、月費列、價格、備註） */
  body.home .user-types__plan-card .user-types__plan-label,
  body.home .user-types__plan-card .user-types__plan-value,
  body.home .user-types__plan-card .user-types__price-pill,
  body.home .user-types__plan-card .user-types__price-list span,
  body.home .user-types__plan-card .user-types__price-single,
  body.home .user-types__plan-card .user-types__price-note {
    white-space: nowrap;
  }

  body.home .user-types__plan-label {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    color: #000000;
  }

  body.home .user-types__plan-value {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
    color: #e6433e;
  }

  /* 「月費參考」：高 24px、圓角膠囊、12px 白字（取代 scale 0.7 按鈕）；寬度為卡片內 80% */
  body.home .user-types__price-pill {
    transform: none;
    min-width: 0;
    width: 70%;
    max-width: none;
    min-height: 24px;
    height: auto;
    padding: 4px 16px;
    border-radius: 60px;
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    box-sizing: border-box;
  }

  body.home .user-types__price-area {
    margin-top: 12px;
    gap: 12px;
  }

  body.home .user-types__price-list {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    color: #000000;
  }

  body.home .user-types__price-list strong {
    color: #e6433e;
    font-weight: 600;
  }

  body.home .user-types__price-single {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    color: #000000;
  }

  body.home .user-types__price-note {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }
}

/* 首頁「北視獨家優惠」— 電腦端第三張方案卡：頂欄三欄紅字強制單行（欄寬改三等分以免超出固定欄寬） */
@media (min-width: 961px) {
  body.home .user-types__plan-card:nth-child(3) .user-types__plan-top {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  }

  body.home .user-types__plan-card:nth-child(3) .user-types__plan-value {
    white-space: nowrap;
  }
}

/* ==========================================================================
   首頁行動端 — Figma（首頁 Frame 331:3929 等）
   手機小主標14 / 小內文12 / 手機版內文13 / 手機板標題13B（僅 body.home，不影響內頁）
   ========================================================================== */
@media (max-width: 640px) {
  body.home .service-features__brand-mark span,
  body.home .broadband-highlight__brand-mark span,
  body.home .cable-feature__brand-mark span,
  body.home .plan-features__brand-mark span,
  body.home .user-types__brand-mark span,
  body.home .pricing-plans__brand-mark span,
  body.home .xinhe-highlight__brand-mark span,
  body.home .s1-section__brand-mark span {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: #e6433e;
  }

  body.home .service-features__description,
  body.home .broadband-highlight__description,
  body.home .cable-feature__description,
  body.home .plan-features__description,
  body.home .user-types__description,
  body.home .pricing-plans__description,
  body.home .xinhe-highlight__description,
  body.home .s1-section__description {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .service-features__eyebrow,
  body.home .broadband-highlight__eyebrow,
  body.home .cable-feature__eyebrow,
  body.home .plan-features__eyebrow {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    color: #e6433e;
  }

  body.home .service-features__badge {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  body.home .service-features__text {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .broadband-highlight__feature-title {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  body.home .broadband-highlight__feature-text {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .cable-feature__point-text {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .plan-features__card-title {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  body.home .plan-features__card-text {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .xinhe-highlight__mobile-label {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
  }

  body.home .xinhe-highlight__cell {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
  }

  /* 吉元獨家優惠 — 文字卡（Figma 2164:6952）：字族與小內文 12 / 標題 13 半粗 */
  body.home .pricing-plans__card .pricing-plans__field-label,
  body.home .pricing-plans__card .pricing-plans__field-text,
  body.home .pricing-plans__card .pricing-plans__price-pill,
  body.home .pricing-plans__card .pricing-plans__price-item,
  body.home .pricing-plans__card .pricing-plans__price-single,
  body.home .pricing-plans__card .pricing-plans__price-note {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
  }

  body.home .pricing-plans__card .pricing-plans__field-value {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
  }

  body.home .pricing-plans__card .pricing-plans__price-item strong {
    font-weight: 400;
    color: #e6433e;
  }
}

/* 首頁「吉元獨家優惠」— 電腦端：三張卡「方案類型／內容／速率／適合對象」列與並排對齊（第一張與右兩張同列等高） */
@media (min-width: 961px) {
  @supports (grid-template-rows: subgrid) {
    body.home .pricing-plans__grid {
      grid-template-rows: repeat(4, auto);
    }

    body.home .pricing-plans__card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: 1 / span 4;
      grid-template-columns: minmax(0, 1fr);
      row-gap: 16px;
      height: auto;
      min-height: 0;
      /* 原 card 16px14px + card-top 8px10px（紅／金）內距，card-top 改 display:contents 後合併於此 */
      padding: 24px 24px 16px;
    }

    body.home .pricing-plans__card:nth-child(1) {
      grid-column: 1;
    }

    body.home .pricing-plans__card:nth-child(2) {
      grid-column: 2;
    }

    body.home .pricing-plans__card:nth-child(3) {
      grid-column: 3;
    }

    body.home .pricing-plans__card-top {
      display: contents;
    }

    body.home .pricing-plans__card .pricing-plans__price-box {
      margin-top: 0;
    }
  }
}

@media (max-width: 768px) {
  body.home .mobile-menu__item {
    font-family: Inter, "Noto Sans JP", "Noto Sans TC", sans-serif;
  }
}
