/* B2 產品與目的地：旅行小圖只出現在電腦，方案與購買邏輯維持原版。 */
.b2-product .section { padding-block: 36px; }
.b2-product .section--below-header { padding-top: 10px; }
.b2-product .product-head__row { align-items: center; }
.b2-product .product-head__flag { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; box-shadow: 0 0 0 1px var(--color-rule); }
.b2-product .product-shell--soon .product-head__flag { filter: grayscale(1); opacity: .65; }
.b2-product .b2-product-notice { min-width: 0; }
.b2-product .b2-product-art { display: none; }
.b2-product .b2-product-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.b2-product .faq-item summary::after { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-cream-deep); color: var(--color-ink); font-size: 20px; font-weight: 400; line-height: 1; }
.b2-destinations .dest-region__title { display: flex; align-items: center; gap: 12px; }
.b2-destinations .b2-region-icon { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
@media (min-width: 1024px) {
  .b2-product .section { padding-block: 48px; }
  .b2-product .section--below-header { padding-top: 24px; }
  .b2-product .b2-product-art { display: block; width: min(336px, 50%); aspect-ratio: 3 / 2; margin-top: 16px; }
  .b2-product .b2-product-intro--soon { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 20px; align-items: center; }
  .b2-product .b2-product-art--region { width: 64px; height: 64px; margin-top: 0; aspect-ratio: 1; filter: grayscale(1); opacity: .55; }
}
@media (forced-colors: active) {
  .b2-product .b2-product-art,
  .b2-destinations .b2-region-icon { forced-color-adjust: none; background: #FAF6EE; }
}

.b2-product .product-head__flag[src*="Malaysia.png"],
.b2-product .product-head__flag[src*="Philippines.png"],
.b2-product .product-head__flag[src*="China.png"],
.dest-card .dest-card__image[src*="Malaysia.png"],
.dest-card .dest-card__image[src*="Philippines.png"],
.dest-card .dest-card__image[src*="China.png"],
.dest-card .dest-card__flag-img[src*="Malaysia.png"],
.dest-card .dest-card__flag-img[src*="Philippines.png"],
.dest-card .dest-card__flag-img[src*="China.png"] { object-position: 0 50%; }

/* R10：左側依序為頁頭、覆蓋、購前資訊，右側選購卡沿用原本的 sticky。
   插圖使用獨立軌道跨頁頭及覆蓋兩列，不與標題或電信標籤共用空間。 */
.product-page-wrap > .line-places { padding: 0; }
@media (min-width: 1024px) {
  .product-page-wrap {
    grid-template-columns: minmax(0, 1fr) 192px clamp(40px, 4vw, 56px) clamp(360px, 36%, 440px);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head art . buy" "info info . buy";
    column-gap: 0;
    row-gap: 24px;
  }
  .product-page-wrap.product-page-wrap--places {
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head art . buy" "places art . buy" "info info . buy";
  }
  .b2-product .product-page-wrap > .product-head,
  .b2-product .product-page-wrap > .line-places { padding-inline-end: 24px; }
  .product-page-wrap > .coming-soon-alt { grid-area: alt; }
  .product-page-wrap > .line-places { grid-area: places; }
  .b2-product .product-page-wrap > .b2-product-art { grid-area: art; align-self: start; justify-self: end; width: 192px; margin: 0; }
  .product-shell--soon .product-page-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "head" "alt" "buy" "info";
  }
  .b2-product .product-shell--soon .product-page-wrap > .product-head { padding-inline-end: 0; }
  .b2-product main:has(.product-shell--soon) > .more-faq .more-fold { max-width: 760px; margin-inline: auto; }
}

/* R10：覆蓋緊接 H1；購買前保留手機條件，其餘補充內容收進頁底。 */
.line-places #line-places-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.line-places .section__head { margin: 0; }
.line-places .line-places__facts { margin-top: 0; }
.line-places .line-places__row dd { word-break: keep-all; }
@media (max-width: 767px) { .b2-product .product-head-bar { display: none; } }
.product-info__lead { margin: 0 0 16px; font-size: var(--fs-3); line-height: 1.6; overflow-wrap: anywhere; }
.product-info__lead a { margin-left: 4px; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.product-info__alt { display: block; margin-top: 4px; color: var(--color-ink-soft); font-size: var(--fs-4); }
.product-info__alt a { margin-left: 0; font-weight: 700; }
.b2-product .more-faq { padding-top: 0; }
.more-fold { background: var(--color-paper); border-radius: 16px; box-shadow: var(--shadow-card); }
.more-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 16px 22px; list-style: none; font-size: var(--fs-3); font-weight: 700; line-height: 1.6; cursor: pointer; }
.more-fold > summary::-webkit-details-marker { display: none; }
.more-fold > summary::after { content: '+'; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; background: var(--color-cream-deep); font-weight: 700; }
.more-fold[open] > summary::after { content: '−'; }
.more-fold__body { padding: 0 16px 16px; }
.more-fold .section { padding: 12px 0; }
.more-fold .container { width: 100%; max-width: none; padding: 0; margin: 0; }
.more-fold .reading-col { max-width: var(--container-narrow); }
.more-fold .price-fold { margin-top: 12px; }
.more-fold .product-head__desc { margin-top: 12px; }
.more-fold .price-table-block__note { font-size: var(--fs-4); font-weight: 400; line-height: 1.5; }
.more-fold .info-steps { list-style: none; counter-reset: product-use; display: grid; gap: 12px; }
.more-fold .info-steps li { position: relative; padding-left: 36px; min-width: 0; }
.more-fold .info-steps li::before { counter-increment: product-use; content: counter(product-use); position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--color-cream-deep); color: var(--color-ink); font-size: var(--fs-4); font-weight: 700; }
.more-fold .info-steps__title { display: block; color: var(--color-ink); font-size: var(--fs-3); font-weight: 700; }
.more-fold .info-steps li > span { display: block; font-size: var(--fs-3); overflow-wrap: anywhere; }
.more-fold .info-guide-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: var(--fs-4); text-decoration: underline; text-underline-offset: 3px; }

/* R10：每天價幫助比較，總價留在摘要；單一主按鈕接文字式加車。 */
.plan-selector .plan-selector__tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan-selector .plan-selector__tier-head .plan-selector__label { margin: 0 0 4px; }
.plan-selector .plan-selector__unit { font-size: var(--fs-4); color: var(--color-ink-soft); }
.plan-selector .plan-selector__actions { grid-template-columns: minmax(0, 1fr); gap: 0; }
.plan-selector .plan-selector__cart { justify-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--color-ink); font: inherit; font-size: var(--fs-4); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan-selector .plan-selector__qty-row { margin-top: 0; margin-bottom: 12px; }
@media (min-width: 340px) and (max-width: 389px) {
  .plan-selector .speed-tier-card { display: flex; min-height: 56px; }
  .plan-selector .speed-tier-card__pricing { margin: 0 0 0 auto; }
  .plan-selector .speed-tier-card__speed, .plan-selector .speed-tier-card.is-active .speed-tier-card__speed { font-size: var(--fs-3); }
}

/* R10 回饋2（10-17）：產品頁間距只用兩檔，手機與桌面同值——
   塊與塊之間 --space-8（32px）：頁頭（H1＋覆蓋）／選購卡／買之前先看這些／常見問題／也看看這些地方／頁尾；
   塊內 --space-3（12px）：H1 → 覆蓋、覆蓋兩行之間、H2 → 內容、段落 → 清單、清單項之間。
   例外只有 H1 → 副標維持 --space-2（§7.6 標題↔副標 8）。
   取代先前疊出來的值：section 上下各 36／48（常見問題下方疊成 72／96）、網格 gap 24、
   手機隱藏麵包屑後留下的 margin-top 16、覆蓋列上下 8＋8、折疊間 10、推薦卡間 6／16。 */
.b2-product { --pp-block: var(--space-8); --pp-inner: var(--space-3); }
/* 頁面層：主區塊只給上內距＝一個塊間，下內距歸零；頁尾自帶 32px 上內距，最後一區不再疊。 */
.b2-product main > .section { padding-block: var(--pp-block) 0; }
/* header 盒內 logo 墨下方已有約 27px 空氣，第一塊只補 --space-2，logo 墨 → 第一塊墨約等於一個塊間。 */
.b2-product main > .section--below-header { padding-top: var(--space-2); }
/* 產品網格：不用統一 gap，改由子項上邊距給塊間；覆蓋與 H1 同一塊，用塊內。 */
.b2-product .product-page-wrap { gap: 0; margin-top: 0; }
.b2-product .product-page-wrap > * { margin-block: 0; }
.b2-product .product-page-wrap > * + * { margin-top: var(--pp-block); }
.b2-product .product-page-wrap > .line-places { margin-top: var(--pp-inner); }
@media (min-width: 768px) { .b2-product .product-page-wrap { margin-top: var(--pp-inner); } } /* 麵包屑 → H1（麵包屑 768 起才顯示） */
.b2-product .product-head .product-head__desc { margin-top: var(--space-2); }
.b2-product .b2-product-notice > * { margin: var(--pp-inner) 0 0; }
.b2-product .line-places__facts { display: grid; gap: var(--pp-inner); }
.b2-product .line-places .line-places__row { padding-block: 0; }
/* 買之前先看這些 */
.b2-product .product-info .section__head { margin-bottom: var(--pp-inner); }
.b2-product .product-info .product-info__lead { margin-bottom: var(--pp-inner); }
.b2-product .product-info .faq-list { gap: var(--pp-inner); }
/* 常見問題卡內：標題列 → 內容、題目之間用塊內；本線問答／網路問答／使用方式與價格三組之間用塊間。 */
.b2-product .more-fold__body { padding-top: var(--pp-inner); }
.b2-product .more-fold .section { padding: 0; }
.b2-product .more-fold__body > * { margin-block: 0; }
.b2-product .more-fold__body > * + * { margin-top: var(--pp-inner); }
.b2-product .more-fold__body > .section + * { margin-top: var(--pp-block); }
.b2-product .more-fold .section__head { margin-bottom: var(--pp-inner); }
.b2-product .more-fold .faq-list { gap: var(--pp-inner); }
/* 也看看這些地方 */
.b2-product main > .section > .container > .section__head { margin-bottom: var(--pp-inner); }
.b2-product main > .section .grid-cards { gap: var(--pp-inner); }
@media (min-width: 1024px) {
  /* 兩欄：右欄購買卡與頁頭同頂。 */
  .b2-product .product-page-wrap > [data-render-plan-selector] { margin-top: 0; }
}
/* R10 回饋2（2026-10-17 定案）：電腦版常見問題放進左欄，接在「買之前先看這些」下面一個塊間；
   原本放在兩欄下方、容器寬，左欄比購買卡短的那段（日本約 62px）會變成折疊與常見問題之間的空洞。 */
@media (min-width: 1024px) {
  .b2-product .product-page-wrap { grid-template-rows: auto auto 1fr; grid-template-areas: "head art . buy" "info info . buy" "faq faq . buy"; }
  .b2-product .product-page-wrap.product-page-wrap--places { grid-template-rows: auto auto auto 1fr; grid-template-areas: "head art . buy" "places art . buy" "info info . buy" "faq faq . buy"; }
  /* 插圖跟隨頁頭與電信兩行的文字高度，不以固有尺寸撐高網格。 */
  .b2-product .product-page-wrap.product-page-wrap--places > .b2-product-art { contain: size; align-self: stretch; aspect-ratio: auto; height: auto; }
  .b2-product .product-page-wrap.product-page-wrap--places > .b2-product-art img { object-position: right top; }
  .b2-product .product-shell--soon .product-page-wrap { grid-template-rows: repeat(5, auto); grid-template-areas: "head" "alt" "buy" "info" "faq"; }
  .b2-product .product-page-wrap > .more-faq { grid-area: faq; }
}

/* 常見問題的展開符號與購前資訊折疊對齊，標題字重維持原值。 */
.b2-product .more-fold > summary { padding-right: 18px; }
.b2-product .more-fold > summary::after { font-size: 20px; font-weight: 400; }

/* B1 等距版（R10 回饋2，2026-10-17 定案）：推薦改成貼在推薦卡上邊框右側的小標籤（不佔行內寬度），三張卡的 Mbps 同一 x。
   標籤高 22px、一半（11px）壓在上邊框外；三張卡之間統一 --space-4（16px），推薦卡不再單獨加上邊距，卡距上下一致。 */
.plan-selector .speed-tier-grid { gap: var(--space-4); }
.plan-selector .speed-tier-card--rec .speed-tier-card__badge {
  position: absolute;
  top: 0;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-cream-deep);
  color: var(--color-ink);
  font-size: var(--fs-4);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
/* 選中時邊框由 1px 變 2px，標籤位置跟著補 1px，選中前後不跳動 */
.plan-selector .speed-tier-card--rec.is-active .speed-tier-card__badge { top: -1px; right: 11px; }
@media (forced-colors: active) {
  .plan-selector .speed-tier-card--rec .speed-tier-card__badge { border: 1px solid CanvasText; }
}

/* 強制色彩沿用已選勾號，放回單選圓點範圍以免推動網速欄。 */
@media (forced-colors: active) {
  .plan-selector .speed-tier-card.is-active .speed-tier-card__name::before {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    text-align: center;
    line-height: 16px;
    background: Canvas;
    color: CanvasText;
    border-radius: 999px;
    pointer-events: none;
  }
}

/* R10 第3輪（10-18 負責人定）：頁底描述句與地區句收進小折疊「方案簡介」，內文與其他折疊答案同字級同色，兩句之間塊內距 */
.b2-product .more-fold .about-fold .product-head__desc { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.b2-product .more-fold .about-fold .product-head__desc + .product-head__desc { margin-top: var(--pp-inner); }

/* R10 第3輪（10-18 負責人定 V1）：當地電信寫成一句「使用當地 … 網路」。標籤只給讀屏；電信名粗體墨色，連接詞常規；、照原文顯示。
   電信名連同後面的「、」（最後一個連同「網路」）是一個不拆的單位（carrier-item），只在單位之間換行；名稱比整行還長時才在單位內換行。
   行級規則只作用在當地電信那一行（:has(.carrier-chips)），城市專頁等其他行照舊。 */
.b2-product .line-places__row:has(.carrier-chips) { display: block; }
.b2-product .line-places__row:has(.carrier-chips) dt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.b2-product .line-places__row:has(.carrier-chips) dd { font-size: var(--fs-3); line-height: 1.6; color: var(--color-ink-soft); text-wrap: pretty; word-break: normal; }
.b2-product .line-places .lp-say { white-space: nowrap; }
.b2-product .line-places .carrier-chips { display: inline; }
.b2-product .line-places .carrier-item { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.b2-product .line-places .carrier-chip { display: inline; max-width: none; padding: 0; background: none; border: 0; border-radius: 0; font-size: inherit; font-weight: 700; line-height: inherit; color: var(--color-ink); white-space: normal; overflow-wrap: anywhere; }
.b2-product .line-places .carrier-item > .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }

/* 涵蓋 N 國（負責人 11-05：H1 正下方一眼看到，不用展開）：「涵蓋 30 國：」粗體墨色接國名一整段，同當地電信那行的字級；
   每個國名連同「、」是不拆的單位（coverage-country），只在國與國之間換行。 */
.b2-product .product-head__countries { margin: 8px 0 0; font-size: var(--fs-3); line-height: 1.6; color: var(--color-ink-soft); text-wrap: pretty; word-break: normal; }
.b2-product .product-head__countries > strong { color: var(--color-ink); }
.b2-product .coverage-country { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* R10 第3輪（10-18 負責人定方案⑤）：「選網速」同一行接淺墨小字「全方案吃到飽」，不另起一行 */
.plan-selector .plan-selector__tier-head .plan-selector__label { gap: 8px; align-items: baseline; }
.plan-selector .plan-selector__tag { color: var(--color-ink-soft); font-size: var(--fs-4); font-weight: 400; }

/* R10 第3輪 b（10-19 複核）：產品頁「加購天數」折疊改成單段後，「前往加購天數頁面」補回原 .info-sub a 的上下內距 10，點擊高度回到 44（DESIGN_SPEC §3.2），連結整段不拆行；
   本線常見問題的加購題（答案連到 topup.html）末行不留單字，用 text-wrap: pretty；不支援的瀏覽器照一般換行 */
.b2-product .product-info .info-topup a { padding-block: 10px; white-space: nowrap; }
.b2-product .line-faq .faq-item__body:has(> a[href="topup.html"]) { text-wrap: pretty; }

/* 10-18 負責人選樣稿 5 號：多國方案標題同一行的短說明「跨國通用」（取代地區小字；較小較淺，與標題同基線；間距只用標題後的半形空格，320 寬放得下四個字；放不下時整段換到下一行） */
.b2-destinations .dest-region__note { font-family: var(--font-sans); font-size: var(--fs-14); font-weight: 400; color: var(--color-ink-muted); white-space: nowrap; }
