/* =========================================================================
   果秝國際 — 元件樣式層
   建構於 design-system.css 的 token 之上。Mobile-first：
   基礎樣式寫給手機，用 min-width 往上加桌機樣式。
   ========================================================================= */

/* =========================================================================
   版面容器
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

.container--prose { max-width: var(--w-prose); }

.section { padding-block: var(--sp-section); }
.section--alt { background: var(--c-surface-alt); }
.section--tint { background: var(--c-brand-tint); }
.section--dark { background: var(--c-surface-dark); }
.section--dark h2,
.section--dark h3 { color: var(--c-inverse); }
.section--dark p { color: rgba(255, 255, 255, 0.82); }

/* 區塊標題 --------------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--sp-7);
}

/* 小標籤：用深琥珀而非品牌黃，確保白底可讀 */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-3);
}

/* 標題中的強調字：改用「黃色底線」而不是黃色文字，
   文字本身維持墨黑，對比 16.88:1 */
.section-title .hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
/* 實測 Noto Sans TC：line-height 1.25 時，基線距框底 0.19em，
   中文字墨跡下緣約在 0.095em 處。色條從那裡起算才會貼齊字身底部。 */
.section-title .hl::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--c-brand);
  border-radius: 2px;
  z-index: -1;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--c-muted);
}

/* =========================================================================
   按鈕
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

/* 主要按鈕：黃底 + 墨黑字 = 10.93:1（舊版是黃底白字 1.54:1） */
.btn--primary {
  background: var(--c-brand);
  color: var(--c-ink);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover {
  background: var(--c-brand-bright);
  box-shadow: 0 8px 22px rgba(217, 187, 40, 0.45);
}

/* 次要按鈕：深色實心 */
.btn--dark {
  background: var(--c-ink);
  color: var(--c-inverse);
}
.btn--dark:hover { background: #33373d; }

/* 外框按鈕 */
.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border-strong);
}
.btn--outline:hover {
  border-color: var(--c-ink);
  background: var(--c-surface-alt);
}

/* 深色底上的外框按鈕。 */
.section--dark .btn--outline {
  color: var(--c-inverse);
  border-color: rgba(255, 255, 255, 0.65);
}
.section--dark .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* LINE 按鈕：保留 LINE 官方綠當底色，文字用墨黑取得 7.48:1
   （官方綠配白字只有 2.26:1，不可用） */
.btn--line {
  background: var(--c-line);
  color: var(--c-ink);
}
.btn--line:hover { background: var(--c-line-deep); }

.btn--lg {
  min-height: 56px;
  padding: var(--sp-4) var(--sp-7);
  font-size: var(--fs-lg);
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* =========================================================================
   頁首 + 導覽
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
  padding-block: var(--sp-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 38px; width: auto; object-fit: contain; }
.brand__mark { height: 40px; }

/* 漢堡按鈕（僅手機顯示） */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-right: -0.5rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--c-surface-alt); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* 展開時變成 X */
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* --- 手機：導覽為滑出抽屜 --- */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(84vw, 340px);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: calc(64px + var(--sp-5)) var(--sp-5) var(--sp-6);
  background: var(--c-surface);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.nav[data-open='true'] {
  transform: translateX(0);
  visibility: visible;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.nav__link:hover { background: var(--c-brand-tint); }

/* 目前所在頁面 */
.nav__link[aria-current='page'] {
  background: var(--c-brand-tint-2);
  color: var(--c-ink);
}

.nav__cta { margin-top: var(--sp-4); }

/* 抽屜開啟時的背景遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(27, 29, 33, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
  border: 0;
  cursor: pointer;
}
.nav-scrim[data-open='true'] { opacity: 1; visibility: visible; }

body.is-locked { overflow: hidden; }

/* =========================================================================
   Hero 輪播
   ========================================================================= */
/* 首圖的橫幅原圖是 2.84～2.95 的超寬比例，硬塞進手機的直式視窗會被裁掉
   六成以上的畫面，只剩一片黃底 —— 這就是舊版在手機／平板看起來很怪的原因。
   解法是分段式的美術指導（art direction）：

     < 900px ：手機首圖 + 等比例裁切鋪滿，文字疊在圖上（不露淡黃色底）
     >= 900px：寬版 Banner + 文字疊在圖上

   文字疊在圖上時不再加黑色壓暗層。 */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-surface);
}

.hero .swiper-slide {
  position: relative;
  display: block;
  height: 100%;
}

/* --- 圖片區：鋪滿容器，多出來的部分裁掉（含圖檔底部淺色） --- */
.hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background: var(--c-surface);
}
.hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* 從中心放大，上下左右都會裁到，不只裁兩側 */
  transform: scale(1.2);
  transform-origin: center center;
}

/* 壓暗漸層已關閉 */
.hero__scrim { display: none; }

/* --- 文字與按鈕：桌機疊在圖上；手機版按鈕改到封面下方 --- */
.hero__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  text-align: center;
  pointer-events: none;
}
.hero__overlay a { pointer-events: auto; }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.hero .btn-row { width: 100%; max-width: 22rem; }
.hero .btn-row .btn { flex: 1 1 100%; }

/* logo2.png 是白色版字標，只在深色底（桌機疊字）才看得見。
   手機／平板的淡黃面板上會整個消失，而且正上方的頁首已經有品牌標誌了，
   重複出現沒有意義 —— 直接隱藏。 */
.hero__logo { display: none; }

/* 疊在黃色首圖上：各尺寸都用與桌機相同的白字／白框 */
.hero__title {
  color: var(--c-inverse);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  max-width: 20ch;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  max-width: 30ch;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero .btn-row { width: 100%; max-width: 22rem; }
.hero .btn-row .btn { flex: 1 1 100%; }

.hero__actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--sp-7);
}

.hero .btn--outline {
  color: var(--c-inverse);
  border-color: rgba(255, 255, 255, 0.65);
}
.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* 價格標記 —— 淡黃面板上需要描邊才看得出邊界 */
.hero__badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-brand);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  box-shadow: inset 0 0 0 2px var(--c-brand-deep), var(--sh-sm);
}
.hero__badge b { font-size: var(--fs-md); font-weight: var(--fw-black); }

/* Swiper 控制項 */
.hero .swiper-button-next,
.hero .swiper-button-prev {
  z-index: 11;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 50%;
  background: rgba(27, 29, 33, 0.45);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero .swiper-button-next::after,
.hero .swiper-button-prev::after { font-size: 18px; font-weight: 700; }
.hero .swiper-button-next:hover,
.hero .swiper-button-prev:hover { background: rgba(27, 29, 33, 0.7); }
/* rewind 模式下不應出現停用狀態；若 residual class 殘留也不要擋點擊 */
.hero .swiper-button-disabled,
.hero .swiper-button-lock {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* 分頁圓點：疊在黃色首圖上，用白色才看得見 */
.hero .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.5;
}
.hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--c-brand);
  width: 26px;
  border-radius: var(--r-pill);
}

/* 手機與平板都隱藏左右箭頭：
   這兩個尺寸是「圖 + 文字」堆疊版面，箭頭會垂直置中到整張投影片，
   剛好卡在圖片和文字面板的交界處，看起來像浮在半空中。
   這兩種尺寸都是觸控裝置，直接滑就好。 */
@media (max-width: 899px) {
  .hero .swiper-button-next,
  .hero .swiper-button-prev { display: none; }
  .hero__img {
    object-position: center bottom;
    transform-origin: center bottom;
  }
  .hero .swiper-slide { height: 100%; }
  .hero__media {
    height: calc(100svh - 64px);
    min-height: 320px;
  }
  .hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-start;
    padding-top: 16%;
  }
  .hero__content {
    position: static;
    padding: 0 var(--sp-4);
  }
  /* 封面內的按鈕改到區塊外，放在「為什麼選擇果秝」上方 */
  .hero__actions { display: none; }
  .hero .swiper-pagination { bottom: 12px; top: auto; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  background: var(--c-surface);
}
.hero-cta .btn {
  width: 100%;
  max-width: 22rem;
}

/* =========================================================================
   信任列（服務特色 4 項）
   ========================================================================= */
.trust-strip { background: var(--c-surface); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5) var(--sp-3);
}

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

/* 黃圓框、白底，透明底 PNG 圖示直接顯示原色。 */
.trust-item__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-3);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--c-brand);
}
.trust-item__icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.trust-item h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-1);
}
.trust-item p {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-snug);
}

/* =========================================================================
   拍貼版型卡（取代原本的 00021~00025.jpg 圖片文字）
   改成真 HTML，好處：可被搜尋引擎讀取、可縮放、可翻譯、螢幕閱讀器可讀
   ========================================================================= */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.template-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.template-card__figure {
  position: relative;
  width: 100%;
  /* overflow 不是 visible 時，aspect-ratio 才不會被圖片原始高度蓋掉 */
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-brand-tint);
}
.template-card__figure img {
  position: absolute;
  inset: var(--sp-4);
  width: calc(100% - 2 * var(--sp-4));
  height: calc(100% - 2 * var(--sp-4));
  object-fit: contain;
}

.template-card__body {
  padding: var(--sp-4);
  border-top: 3px solid var(--c-brand);
  flex: 1;
}
.template-card__body h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
}
.template-card__meta {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-2);
}
.template-card__body p {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-snug);
}

/* =========================================================================
   規格 / 優勢清單（取代 00033.jpg）
   ========================================================================= */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-md);
}
.spec-item dt {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  line-height: var(--lh-snug);
}
.spec-item dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-snug);
}

/* 機台尺寸圖：永遠跟著欄寬等比縮放，不被原圖尺寸撐破 */
.machine-split { min-width: 0; }
.machine-figure {
  min-width: 0;
  max-width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-brand-tint);
}
.machine-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  object-fit: contain;
}

/* =========================================================================
   LINE 導流橫幅
   ========================================================================= */
.line-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--c-surface-dark);
  border-radius: var(--r-lg);
  text-align: center;
}
.line-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}

/* =========================================================================
   活動實績
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-surface-sunken);
}
.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover .gallery-card__media img { transform: scale(1.05); }

.gallery-card__tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-brand);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.gallery-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.gallery-card__body h3 { font-size: var(--fs-md); color: var(--c-ink); }
.gallery-card__body p {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-snug);
}
.gallery-card__date {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-muted);
}

/* =========================================================================
   常見問題（原生 details/summary — 免 JS、鍵盤可操作、Google 可讀）
   ========================================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: var(--w-prose);
  margin-inline: auto;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--c-brand-deep); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--tap-min);
  padding: var(--sp-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--c-brand-tint-2);
  color: var(--c-ink);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--c-brand);
}

.faq-item__body {
  padding: 0 var(--sp-4) var(--sp-4);
  color: var(--c-body);
  font-size: var(--fs-base);
}
.faq-item__body p + p { margin-top: var(--sp-3); }

/* =========================================================================
   聯絡區 + 表單
   ========================================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.contact-card {
  padding: var(--sp-5);
  background: var(--c-surface-alt);
  border-radius: var(--r-lg);
  border-top: 5px solid var(--c-brand);
  align-self: start;
}
.contact-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.contact-list li { display: flex; align-items: center; gap: var(--sp-3); }
.contact-list img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-body);
  font-weight: var(--fw-bold);
  text-decoration: none;
  word-break: break-word;
}
.contact-list a:hover { color: var(--c-ink); text-decoration: underline; }

.contact-note {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* 表單 ------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

.req { color: var(--c-danger); }

.form-control {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--sp-3);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  /* 16px 以上可避免 iOS Safari 聚焦時自動放大頁面 */
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-control:hover { border-color: var(--c-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--c-brand-deep);
  box-shadow: 0 0 0 3px rgba(234, 208, 65, 0.35);
}
/* 使用者輸入過且格式錯誤才提示，不是一載入就滿江紅 */
.form-control:user-invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(192, 38, 38, 0.14);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234b5056' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 12px;
  padding-right: var(--sp-8);
}

.form-hint {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.form-status {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.form-status--ok {
  background: #e8f6ec;
  color: #17612f;
  border: 1px solid #b6dfc2;
}

/* =========================================================================
   手機固定 CTA 列 — 租賃詢價最重要的轉換入口
   讓使用者在任何捲動位置都能一鍵撥號 / 加 LINE / 送出詢價
   ========================================================================= */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-mobilebar);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border-top: 1px solid var(--c-border);
  /* iPhone 底部安全區 */
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 14px rgba(27, 29, 33, 0.1);
}

.mobile-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.mobile-cta a:active { background: var(--c-surface-alt); }
.mobile-cta a img { width: 20px; height: 20px; object-fit: contain; }
.mobile-cta .is-primary { background: var(--c-brand); }

/* 有固定 CTA 列時，頁尾要留出空間免得被蓋住 */
body.has-mobile-cta { padding-bottom: 58px; }

/* =========================================================================
   CTA 條
   ========================================================================= */
.cta-band {
  background: var(--c-brand);
  text-align: center;
}
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.cta-band p {
  color: #3d3a1f;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-5);
  max-width: 40ch;
  margin-inline: auto;
}

/* =========================================================================
   麵包屑
   ========================================================================= */
.breadcrumb {
  padding-block: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
}
.breadcrumb li + li::before { content: '/'; margin-right: var(--sp-2); color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumb [aria-current='page'] { color: var(--c-ink); font-weight: var(--fw-bold); }

/* =========================================================================
   內容頁排版（SEO 文章頁）
   ========================================================================= */
.page-hero {
  padding-block: var(--sp-7) var(--sp-6);
  background: var(--c-brand-tint);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.page-hero p {
  font-size: var(--fs-md);
  color: var(--c-body);
  max-width: 46ch;
}

.prose { max-width: var(--w-prose); margin-inline: auto; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-8);
  padding-top: var(--sp-2);
  scroll-margin-top: 6rem;
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-6);
}
.prose p { font-size: var(--fs-md); line-height: var(--lh-normal); }
.prose ul,
.prose ol { padding-left: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.prose li { font-size: var(--fs-md); line-height: var(--lh-snug); }
.prose li::marker { color: var(--c-brand-deep); font-weight: 700; }
.prose a { color: var(--c-accent-ink); font-weight: var(--fw-bold); }
.prose strong { color: var(--c-ink); }

/* 重點提示框 */
.callout {
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-brand-tint);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-md);
}
.callout p { font-size: var(--fs-base); }
.callout strong { color: var(--c-ink); }

/* 表格：窄螢幕可橫向捲動，頁面本身不會左右晃 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table-scroll th,
.table-scroll td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.table-scroll th {
  background: var(--c-brand-tint);
  color: var(--c-ink);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.table-scroll tr:last-child td { border-bottom: 0; }

/* 相關文章 */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.related-card {
  display: block;
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.related-card:hover { border-color: var(--c-brand-deep); box-shadow: var(--sh-md); }
.related-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.related-card p { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-snug); }

/* =========================================================================
   頁尾
   ========================================================================= */
.site-footer {
  background: var(--c-surface-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--sp-7) var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer h2,
.site-footer h3 {
  color: var(--c-inverse);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.footer-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-list a:hover { color: var(--c-brand); text-decoration: underline; }

.footer-bottom {
  padding-top: var(--sp-5);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
}

/* =========================================================================
   斷點：往上加桌機樣式
   ========================================================================= */

/* --- 平板 --- */
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .template-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .line-banner { flex-direction: row; justify-content: center; gap: var(--sp-5); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }

  .hero .btn-row { max-width: none; width: auto; }
  .hero .btn-row .btn { flex: 0 1 auto; }
}

/* --- 桌機：導覽列改為橫向，收起漢堡與手機 CTA --- */
@media (min-width: 900px) {
  .nav-toggle,
  .nav-scrim,
  .mobile-cta { display: none; }

  body.has-mobile-cta { padding-bottom: 0; }

  .nav {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .nav__link {
    min-height: 40px;
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
  }
  .nav__link[aria-current='page'] {
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--c-brand);
    border-radius: 0;
  }

  .nav__cta { margin-top: 0; margin-left: var(--sp-3); }
  .nav__cta .btn { min-height: 42px; padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }

  .site-header__inner { min-height: 72px; }
  .brand img { height: 44px; }

  /* 桌機：文字疊回圖片上。圖片用接近原圖的 2.85 比例，
     再用 max-height 收住，避免超寬螢幕時首圖高到把內容擠出畫面外。 */
  .hero .swiper-slide { display: block; }

  .hero__media {
    height: auto;
    aspect-ratio: 2.85 / 1;
    max-height: 640px;
    min-height: 460px;
  }

  /* 桌機文字疊在照片上，不再加黑色壓暗層，讓主圖原色呈現。 */
  .hero__scrim { display: none; }

  .hero__content {
    gap: var(--sp-5);
  }

  .hero__logo {
    display: block;
    height: 62px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  }

  /* 桌機首圖是深色漸層底，外框按鈕改白色 */
  .hero__title {
    font-size: var(--fs-4xl);
    max-width: none;
  }

  .hero__sub {
    font-size: var(--fs-lg);
    max-width: 46ch;
  }

  .hero__badge { box-shadow: var(--sh-md); }
  .hero-cta { display: none; }
  /* 只上移按鈕，標題／Logo 維持置中 */
  .hero__actions { bottom: 5.75rem; }

  .template-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 5fr 7fr; gap: var(--sp-7); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }

  .machine-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--sp-6);
    align-items: stretch;
  }
  /* 尺寸圖依欄寬等比縮放；min-width:0 讓欄位能隨視窗變窄 */
  .machine-figure {
    position: static;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .machine-figure img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    object-fit: contain;
  }
  .spec-grid {
    height: 100%;
    grid-auto-rows: 1fr;
    align-content: stretch;
  }
  .spec-item {
    height: 100%;
    justify-content: center;
    gap: var(--sp-2);
  }
  .spec-item dt {
    font-size: 1.0625rem; /* 17px：比原本略大，最長標題仍單行 */
    white-space: nowrap;
  }
  .spec-item dd {
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
  }

  .page-hero { padding-block: var(--sp-9) var(--sp-8); }
}

/* --- 大桌機 --- */
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* =========================================================================
   列印
   ========================================================================= */
@media print {
  .site-header,
  .mobile-cta,
  .hero,
  .cta-band,
  .nav-scrim { display: none !important; }
  body { color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 11px; }
}
