:root{
  --navy: #0a1420;
  --navy-2: #0d1b2e;
  --gold: #e8b95b;
  --gold-2: #d4a017;
  --gray-bg: #f7f7f7;
  --text-dark: #1a1a1a;
  --text-gray: #6b6b6b;
  --white: #ffffff;

  /* ================= 字級系統 (Type Scale) =================
     全站字級統一從這組變數取用，不再各元件各自寫死數字。
     由小到大：2xs(標籤/待補提示) → xs(輔助小字) → sm(眼眉/標籤)
     → base(內文) → md(強調內文/按鈕) → lg(卡片/項目標題)
     → xl(品牌名稱等單一強調字) → 2xl → 3xl → 4xl → 5xl → 6xl → 7xl(Hero 主標) */
  --fs-2xs: 11px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 1rem;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 36px;
  --fs-5xl: 40px;
  --fs-6xl: 44px;
  --fs-7xl: 52px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;
  color:var(--text-dark);
  background:var(--white);
  line-height:1.6;
}
img{max-width:100%; display:block;}
/* <picture> 只是為了 AVIF→JPG 的格式挑選而存在，本身不該產生任何盒子。
   display:contents 讓它從版面樹中消失，裡面的 <img> 就等同直接放在原本的
   父層（flex / grid / 絕對定位容器）底下，維持既有版型不受影響。 */
picture{display:contents;}
.container{max-width:1200px; margin:0 auto; padding:0 40px;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 32px;
  border-radius:6px;
  font-weight:700;
  font-size:var(--fs-base);
  text-decoration:none;
  cursor:pointer;
  border:2px solid transparent;
  transition:all .2s ease;
}
.btn-icon{
  width:18px;
  height:18px;
  flex-shrink:0;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
}
.btn-primary:hover{filter:brightness(1.08);}
.btn-secondary{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,.5);
}
.btn-secondary:hover{border-color:var(--gold); color:var(--gold);}

/* ================= HERO ================= */
.hero{
  background:var(--navy);
  color:var(--white);
  position:relative;
  overflow:hidden;
  min-height:640px;
  display:flex;
  align-items:center;
}
.hero-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:76% 44%;
  z-index:1;
}
.hero-scrim{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(100deg,
    rgba(6,12,19,.96) 0%,
    rgba(6,12,19,.88) 26%,
    rgba(6,12,19,.55) 46%,
    rgba(6,12,19,.15) 66%,
    rgba(6,12,19,0) 82%);
}
.hero-inner{
  position:relative;
  z-index:3;
  max-width:1400px;
  margin:0 auto;
  width:100%;
}
.hero-content{
  max-width:600px;
  padding:100px 40px 90px 60px;
  position:relative;
}
.hero-tag-urgent{
  color:var(--gold);
  font-weight:700;
}
.hero-tag-icon{
  width:14px;
  height:14px;
  margin-right:4px;
  vertical-align:-2px;
}
.hero-tag{
  display:inline-block;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  padding:8px 18px;
  border-radius:30px;
  font-size:var(--fs-sm);
  color:#cfd6df;
  margin-bottom:28px;
}
.hero-title{
  font-size:var(--fs-7xl);
  font-weight:900;
  line-height:1.25;
  margin-bottom:22px;
  letter-spacing:.5px;
}
.hero-title .line-gold{
  color:var(--gold);
  display:block;
}
.hero-sub{
  font-size:var(--fs-base);
  color:#c3cad3;
  max-width:480px;
  margin-bottom:36px;
}
.hero-cta{
  display:flex;
  gap:16px;
  margin-bottom:44px;
}
.hero-brand-row{
  display:flex;
  align-items:center;
  gap:20px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.12);
  margin-bottom:26px;
}
.brand-badge{
  width:56px; height:56px;
  border-radius:12px;
  background:linear-gradient(135deg,#16273d,#0a1420);
  border:1px solid rgba(232,185,91,.5);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand-badge svg{width:30px; height:30px;}
.brand-badge-img{width:32px; height:32px; object-fit:contain;}
.brand-name{
  font-size:var(--fs-xl);
  font-weight:700;
  color:var(--white);
}
.brand-name span{color:var(--gold);}
.brand-slogan{
  font-size:var(--fs-sm);
  color:#dcc27f;
  margin-top:2px;
}
.hero-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:24px 24px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:var(--fs-xs);
  color:#b7bfc9;
}
.trust-item svg{width:16px; height:16px; color:var(--gold); flex-shrink:0;}

/* ================= SECTION SHARED ================= */
.section{
  padding:90px 0;
}
.section-head{
  max-width:640px;
  margin-bottom:50px;
}
.section-eyebrow{
  font-size:var(--fs-sm);
  font-weight:700;
  color:var(--gold-2);
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:10px;
}
.section-title{
  font-size:var(--fs-4xl);
  font-weight:900;
  color:var(--text-dark);
  margin-bottom:14px;
  line-height:1.35;
}
.section-desc{
  font-size:var(--fs-base);
  color:var(--text-gray);
}
.section-title-onDark{color:var(--white);}

/* ================= 痛點區 ================= */
.pain-section{background:var(--gray-bg);}

/* 桌機：左側文字／右側卡片，比照 template001.jpg 版型 */
.pain-layout{
  display:flex;
  align-items:flex-start;
  gap:48px;
}
.pain-aside{
  flex:0 0 260px;
  max-width:260px;
}
.pain-aside .section-title,
.pain-aside .section-desc{margin-bottom:0;}
.pain-aside .section-title{margin-bottom:14px;}

.pain-eyebrow-box{
  display:block;
  width:100%;
  box-sizing:border-box;
  background:var(--gold);
  border:none;
  border-radius:0;
  color:var(--navy);
  font-weight:900;
  font-size:var(--fs-4xl);
  padding:10px 16px;
  margin-bottom:16px;
  text-align:justify;
  text-align-last:justify;
  text-justify:inter-character;
}

.pain-cards-col{
  flex:1;
  min-width:0; /* 讓 flex 子項可以正確觸發水平捲動 */
}
.pain-cards-wrap{
  /* overflow-x:auto 會讓瀏覽器把 overflow-y 自動視為 auto（規範規定只要有一軸不是
     visible，另一軸沒設就會變 auto），所以垂直方向也會被裁切，hover 上移的卡片
     跟陰影才會被切掉。用上下 padding 撐出裁切的緩衝空間，再用等值負 margin 把
     多出來的高度收回去，不影響外部版面，但裁切邊界往外推，卡片就有地方可以浮起來。 */
  padding:16px 0;
  margin:-16px 0;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.pain-cards-wrap::-webkit-scrollbar{display:none;}

.pain-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px, 1fr);
  gap:24px;
}
.pain-card{
  position:relative;
  height:420px;
  border-radius:14px;
  box-shadow:0 4px 18px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
  scroll-snap-align:start;
}
.pain-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 26px rgba(0,0,0,.15);
}

/* 圖片區：滿版鋪滿整張卡片（目前用漸層＋圖示佔位，之後直接換成真實照片） */
.pain-card-visual{
  position:absolute;
  inset:0;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--navy-2), var(--navy));
  display:flex;
  align-items:center;
  justify-content:center;
}
.pain-card-visual::after{
  content:"圖片待補";
  position:absolute;
  top:14px;
  right:16px;
  font-size:var(--fs-2xs);
  color:rgba(255,255,255,.4);
}
.pain-card-visual svg{width:52px; height:52px; color:var(--gold); opacity:.9;}

/* 已放入真實照片的卡片：鋪滿整區、移除「圖片待補」標籤 */
.pain-card-visual.has-image::after{display:none;}
.pain-card-visual.has-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 文字壓在圖片上，底部由下往上的黑色漸層確保可讀性 */
.pain-card-body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  border-radius:0 0 14px 14px;
  overflow:hidden;
  padding:80px 22px 24px;
  background:linear-gradient(to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.78) 30%,
    rgba(0,0,0,.4) 62%,
    rgba(0,0,0,0) 100%);
}
.pain-card-title{
  font-size:var(--fs-lg);
  font-weight:700;
  margin-bottom:8px;
  color:var(--white);
}
.pain-card-text{
  font-size:var(--fs-xs);
  color:rgba(255,255,255,.82);
}

/* 切換按鈕：只有在四張卡片無法完整顯示（觸發水平捲動）時，才由 JS 顯示 */
.pain-nav{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}
.pain-nav[hidden]{display:none;}
.nav-circle{
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid #ddd;
  background:var(--white);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  color:var(--text-dark);
  font-size:var(--fs-lg);
  padding:0;
}
.nav-circle:hover{background:var(--navy); border-color:var(--navy); color:var(--white);}
.nav-circle:disabled{opacity:.35; cursor:default; background:var(--white); color:var(--text-dark);}

/* ================= 品牌解法 ================= */
.solution-section{
  background:linear-gradient(120deg,#0d1b2e 0%, var(--navy) 60%);
  color:var(--white);
}
.solution-inner{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:60px;
  align-items:center;
}
.solution-visual{
  position:relative;
  height:460px;
  border-radius:16px;
  background:radial-gradient(circle at 50% 30%, #1b2d47 0%, #0a1420 75%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid rgba(232,185,91,.15);
}
.solution-visual svg{width:150px; height:150px; opacity:.9;}
.solution-visual-img{
  width:auto;
  height:60%;
  max-width:70%;
  object-fit:contain;
}
.solution-eyebrow{
  font-size:var(--fs-lg);
  color:#dcdfe4;
  margin-bottom:10px;
}
/* 包住標題＋副標的外層：寬度用 fit-content，會自動貼合裡面最寬的那一行（"典洪科技"），
   .solution-subtitle 是 block 元素，會自動撐滿這個寬度，
   再靠 text-align-last:justify 把字距撐開，就能跟標題等寬，不用 JS 量測。 */
.solution-heading{
  width:fit-content;
}
.solution-title{
  font-size:var(--fs-6xl);
  font-weight:900;
  margin-bottom:6px;
  white-space:nowrap;
}
.solution-subtitle{
  font-size:var(--fs-2xl);
  font-weight:700;
  color:var(--gold);
  margin-bottom:24px;
  text-align:justify;
  text-align-last:justify;
  text-justify:inter-character;
}
.solution-para{
  font-size:var(--fs-base);
  color:#c3cad3;
  margin-bottom:16px;
  max-width:560px;
}
.solution-para-highlight{
  color:var(--gold);
  font-weight:700;
  font-size:var(--fs-lg);
}
/* 這段要包黃色邊框、寬度撐滿：<p> 本來就是 block 元素，
   真正限制寬度的是共用 .solution-para 的 max-width:560px，
   所以這裡改成 max-width:none 搭配 width:100% 才會撐滿，單靠 display:block 沒用。 */
.solution-para-boxed{
  display:block;
  width:100%;
  max-width:none;
  box-sizing:border-box;
  border:2px solid var(--gold);
  border-radius:8px;
  padding:16px 20px;
}
.solution-quote{
  /* 這裡原本是 inline-block（會依內容縮小），改成 block + width:100% 才會撐滿寬度 */
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-top:18px;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
  font-weight:700;
  font-size:var(--fs-xl);
  padding:14px 24px;
  border-radius:8px;
}

/* ================= 服務區 ================= */
.service-section{background:var(--white);}
.service-inner{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:60px;
  align-items:flex-start;
}
.service-visual{
  position:relative;
  border-radius:18px;
  height:640px;
  background:linear-gradient(160deg,#1b2d47,#0a1420);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.service-visual svg{width:120px;height:120px;opacity:.85;}
.service-visual .placeholder-tag{
  position:absolute;
  bottom:16px;
  left:16px;
  font-size:var(--fs-2xs);
  color:rgba(255,255,255,.4);
  border:1px dashed rgba(255,255,255,.3);
  padding:4px 10px;
  border-radius:20px;
}

/* 已放入真實照片：滿版鋪底，浮動標籤保留在上面 */
.service-visual.has-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.service-badge-float{
  position:absolute;
  top:24px;
  left:24px;
  background:var(--white);
  color:var(--navy);
  font-weight:700;
  font-size:var(--fs-xs);
  padding:10px 18px;
  border-radius:30px;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
}

/* 圖片外層 wrapper：本身不裁切（overflow 預設 visible），
   讓右上角的圓形徽章可以跨出圖片邊緣，又不會被 .service-visual 的 overflow:hidden 裁掉 */
.service-visual-wrap{
  position:relative;
}
.service-badge-circle{
  position:absolute;
  top:-22px;
  right:-22px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:700;
  font-size:var(--fs-xl);
  line-height:1.35;
  padding:14px 20px;
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  z-index:2;
}
.service-list{
  display:flex;
  flex-direction:column;
}
.service-item{
  display:flex;
  gap:18px;
  padding:22px 0;
  border-bottom:1px solid #e9e9e9;
}
.service-item:first-child{padding-top:0;}
.service-icon{
  width:44px; height:44px;
  border-radius:50%;
  background:var(--navy);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.service-icon svg{width:20px; height:20px; color:var(--gold);}
.service-icon.icon-lg svg{width:28px; height:28px;}
.service-item-title{
  font-size:var(--fs-xl);
  font-weight:700;
  margin-bottom:4px;
  color:var(--text-dark);
}
.service-item-title span{color:var(--gold-2);}
.service-item-text{
  font-size:var(--fs-xs);
  color:var(--text-gray);
}

/* ================= 服務對象 ================= */
.target-section{background:#eee;}
.target-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  margin-bottom:36px;
}
.target-card-visual{
  height:200px;
  border:2px dashed #d6d6d6;
  border-radius:12px;
  background:#f5f5f5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:20px;
  text-align:center;
  margin-bottom:18px;
  overflow:hidden;
  position:relative;
}
.target-card-visual svg{width:32px; height:32px; color:#b8b8b8;}

/* 已放入真實照片：滿版鋪底、移除虛線與上傳提示樣式 */
.target-card-visual.has-image{
  border:none;
  padding:0;
  background:none;
}
.target-card-visual.has-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.target-card-placeholder-text{
  font-size:var(--fs-xs);
  color:#8c8c8c;
}
.target-card-browse{
  font-size:var(--fs-xs);
  color:#8c8c8c;
}
.target-card-browse span{
  color:var(--gold-2);
  text-decoration:underline;
  cursor:pointer;
}
.target-card-title{
  font-size:var(--fs-lg);
  font-weight:700;
  margin-bottom:8px;
  color:var(--text-dark);
}
.target-card-text{
  font-size:var(--fs-xs);
  color:var(--text-gray);
}
.target-footer-quote{
  position:relative;
  z-index:0; /* 讓這個元素自己建立新的堆疊層，::before 的 z-index:-1 才會被限制在它內部，
                不然會直接沉到 .target-section 的底色（#eee）後面，整塊看不見 */
  display:inline-block;
  font-size:var(--fs-xl);
  font-weight:700;
  color:var(--navy);
  line-height:1.7;
  padding:16px 0px 16px 24px;
}
.target-footer-quote::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100px;
  height:100%;
  background:var(--gold);
  z-index:-1;
}

/* ================= 差異化比較 ================= */
.compare-section{background:var(--white);}
.compare-list{
  display:flex;
  flex-direction:column;
  margin-bottom:36px;
}
.compare-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
  padding:26px 0;
  border-bottom:1px solid #ececec;
}
.compare-row:first-child{padding-top:0;}
.compare-left{
  font-size:var(--fs-base);
  color:var(--text-gray);
}
.compare-right{
  display:flex;
  align-items:center;
  gap:16px;
}
.compare-check{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.compare-check svg{width:16px; height:16px; color:var(--white);}
.compare-right-text{
  font-size:var(--fs-base);
  font-weight:700;
  color:var(--text-dark);
}
.compare-summary{
  position:relative;
  z-index:0; /* 讓這個元素自己建立新的堆疊層，::before 的 z-index:-1 才會被限制在它內部 */
  display:inline-block;
  font-size:var(--fs-xl);
  font-weight:700;
  color:var(--navy);
  line-height:1.65;
  max-width:680px;
  padding:16px 0px 16px 24px;
}
.compare-summary-sub{
  /* 這裡要改成 display:block，讓這段文字建立自己的區塊、套用自己的 line-height，
     不然行距會被外層 .compare-summary（字比較大、line-height:1.65）的「行框基準」撐大，
     即使字級縮小了，行距看起來還是很鬆。 */
  display:block;
  font-size:var(--fs-xs);
  line-height:1.6;
  font-weight:400;
  color:var(--text-gray);
}
.compare-summary-strong{
  color:var(--navy);
  font-weight:700;
}
.compare-summary::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100px;
  height:100%;
  background:var(--gold);
  z-index:-1;
}

/* ================= 最終 CTA ================= */
.cta-section{
  background:var(--navy);
  color:var(--white);
}
.cta-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
  align-items:start;
}
.cta-title{
  font-size:var(--fs-5xl);
  font-weight:900;
  line-height:1.35;
  margin-bottom:18px;
}
.cta-title .line-gold{
  color:var(--gold);
  display:block;
}
.cta-subtitle{
  font-size:var(--fs-base);
  font-weight:700;
  color:var(--gold);
  margin-bottom:26px;
}
.cta-subtitle-brand{
  text-decoration:underline;
  text-underline-offset:3px;
  font-size: var(--fs-xl);
}
.section-title-underline{
  text-decoration:underline;
  text-underline-offset:3px;
}
.cta-checklist{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:32px;
}
.cta-check-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:var(--fs-base);
  color:#dfe3e8;
}
.cta-check-item svg{width:16px; height:16px; color:var(--gold); flex-shrink:0;}
.cta-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.cta-contact{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:6px 28px;
}
.cta-contact-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.cta-contact-row:last-child{border-bottom:none;}
.cta-contact-label{
  font-size:var(--fs-sm);
  color:#9aa4b0;
  white-space:nowrap;
}
.cta-contact-value{
  font-size:var(--fs-sm);
  font-weight:700;
  color:var(--white);
  text-align:right;
}
.cta-contact-note-row{
  justify-content:flex-start;
}
.cta-contact-note{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:var(--fs-xs);
  color:#9aa4b0;
}
.cta-contact-note-icon{
  width:14px;
  height:14px;
  flex-shrink:0;
}
.cta-contact-note-gold{
  color:var(--gold);
}
.cta-contact-link{
  text-decoration:underline;
  text-underline-offset:3px;
}
.cta-contact-link:hover{color:var(--gold);}

/* ================= Footer ================= */
.site-footer{
  background:var(--navy);
  border-top:1px solid rgba(255,255,255,.1);
  padding:22px 0;
}
.site-footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.site-footer-text{
  font-size:var(--fs-xs);
  color:#8d95a0;
}
/* 桌機：公司資訊與地址排同一行，中間用「｜」分隔（分隔線用 ::before 產生，不寫進 HTML） */
.footer-addr::before{
  content:"｜";
  margin:0 2px;
}

/* PWA 安裝按鈕（放在 footer 右下角）：預設用 [hidden] 屬性隱藏，
   由 js/main.js 依瀏覽器情況（Android 可安裝 / iOS 手動安裝 / 已安裝）決定要不要顯示。 */
.pwa-install-wrap{
  position:relative;
  display:inline-flex;
  flex-shrink:0;
}
.footer-install-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.3);
  background:transparent;
  color:#c7cdd6;
  font-size:var(--fs-xs);
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  transition:all .2s ease;
}
.footer-install-btn:hover{border-color:var(--gold); color:var(--gold);}
.footer-install-icon{width:14px; height:14px; flex-shrink:0;}
.pwa-ios-tip{
  position:absolute;
  bottom:calc(100% + 12px);
  right:0;
  width:240px;
  max-width:calc(100vw - 40px);
  background:var(--navy-2);
  border:1px solid rgba(255,255,255,.15);
  border-radius:8px;
  padding:14px 30px 14px 16px;
  font-size:var(--fs-xs);
  line-height:1.6;
  color:var(--white);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:20;
}
.pwa-ios-tip::after{
  content:"";
  position:absolute;
  top:100%;
  right:16px;
  border:6px solid transparent;
  border-top-color:var(--navy-2);
}
.pwa-ios-tip-close{
  position:absolute;
  top:6px;
  right:8px;
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:none;
  color:#9aa4b0;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.pwa-ios-tip-close:hover{color:var(--white);}

/* ================= RESPONSIVE ================= */
@media (max-width:1024px){
  .hero{min-height:600px; align-items:flex-start;}
  .hero-media{object-position:80% 42%;}
  .hero-scrim{
    background:linear-gradient(175deg,
      rgba(6,12,19,.95) 0%,
      rgba(6,12,19,.86) 42%,
      rgba(6,12,19,.4) 70%,
      rgba(6,12,19,.05) 90%);
  }
  .hero-content{padding:64px 28px 56px;}
  /* flex-direction 改為 column 後，主軸變成垂直方向，
     align-items 預設的 flex-start 只會讓子項目依內容寬度顯示（不會撐滿），
     導致內層可捲動的卡片列失去寬度限制、把整個版面撐開。改用 stretch 讓子項目滿版寬度。 */
  .pain-layout{flex-direction:column; align-items:stretch; gap:28px;}
  .pain-aside{flex:0 0 auto; max-width:none;}
  .pain-cards-col{min-width:0;}
  .pain-nav{justify-content:center;}
  .solution-inner, .service-inner{grid-template-columns:1fr;}
  .solution-visual{height:300px;}
  .service-visual{height:320px;}
  .service-badge-circle{width:104px; height:104px; font-size:var(--fs-xs); top:-18px; right:-18px;}
  .target-grid{grid-template-columns:1fr;}
  .cta-inner{grid-template-columns:1fr; gap:36px;}
}
@media (max-width:640px){
  .container{padding:0 20px;}
  /* 手機板讓兩個按鈕維持同一列、平分寬度滿版，不因為文字長度不同而寬度不一 */
  .hero-cta, .cta-buttons{flex-wrap:nowrap;}
  .hero-cta .btn, .cta-buttons .btn{flex:1; padding-left:12px; padding-right:12px; white-space:nowrap;}
  .hero{min-height:560px;}
  .hero-media{object-position:82% 60%;}
  .hero-scrim{
    background:linear-gradient(180deg,
      rgba(6,12,19,.96) 0%,
      rgba(6,12,19,.9) 28%,
      rgba(6,12,19,.35) 42%,
      rgba(6,12,19,.05) 82%);
  }
  .hero-content{padding:52px 20px 44px;}
  .hero-title{font-size:34px;} /* Hero 主標在手機版的專屬縮小值，不套用 --fs-7xl */
  /* 用 vw 而非 % 設定卡片寬度：在 overflow-x:auto 的捲動容器裡，
     百分比沒有明確的計算基準，會讓卡片寬度整個跑掉，vw 則以視窗寬度為準，穩定可靠。 */
  .pain-grid{grid-auto-columns:minmax(240px, 82vw);}
  .pain-card{height:340px;}
  .pain-card-body{padding:64px 20px 20px;}
  /* 手機板改放圖片左下角，並放大圓圈 */
  .service-badge-circle{
    width:120px;
    height:120px;
    font-size:var(--fs-xl);
    padding:14px 24px;
    top:auto;
    right:auto;
    bottom:10px;
    left:10px;
  }
  .compare-row{grid-template-columns:1fr; gap:12px; padding:20px 0;}
  .cta-title{font-size:var(--fs-3xl);}
  .cta-contact{padding:4px 20px;}
  .cta-contact-row{flex-direction:column; align-items:flex-start; gap:4px; padding:14px 0;}
  .cta-contact-value{text-align:left;}
  .section{padding:60px 0;}
  .section-title{font-size:var(--fs-3xl);}
  .hero-trust-row{gap:16px 22px;}
  /* 手機板空間較窄，公司資訊跟安裝按鈕改成上下排列，按鈕貼右下角 */
  .site-footer .container{flex-direction:column; align-items:flex-start;}
  .pwa-install-wrap{align-self:flex-end;}
  /* 手機板地址換到下一行，並拿掉桌機用的「｜」分隔線 */
  .footer-addr{display:block;}
  .footer-addr::before{content:none;}
}
