/* ==========================================================================
   FastSIGN 產品頁共用樣式（Cloud / Pro）
   - 相容 Bootstrap 4.0，僅覆寫 .fs-page 範圍內元素，不影響站上其他頁面
   - 不依賴任何 JavaScript；FAQ 以原生 <details>/<summary> 呈現
   - 響應式斷點沿用 Bootstrap 4：576 / 768 / 992 / 1200px
   ========================================================================== */




/* ---------- 基礎 ---------- */
.fs-page {
  color: #152743;
  background: #fff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
}
.fs-page h1,
.fs-page h2,
.fs-page h3 {
  font-weight: 700;
  line-height: 1.35;
  color: #152743;
}
.fs-page h1 { font-size: 2.25rem; letter-spacing: -.02em; }
.fs-page h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.fs-page h3 { font-size: 1.3rem; margin-bottom: .3rem;}
.fs-page p,
.fs-page li,
.fs-page td { color: #304359; }

/* 內文行距統一：全頁共用 --fs-lh（以「FastSIGN Cloud 和 FastSIGN Pro 怎麼選」表格文字為基準）
   要整頁調整行距，只改這個數值；加上 main 是為了壓過 style.css 對 p / li 的設定 */
.fs-page { --fs-lh: 1.75; --fs-fz: 1rem; }   /* --fs-fz：內文字級（1rem = 16px） */
main.fs-page p,
main.fs-page li,
main.fs-page td,
main.fs-page th,
main.fs-page dt,

main.fs-page summary {
font-size: 1rem;
font-size: var(--fs-fz);
line-height: 1.75;
line-height: var(--fs-lh);
}

main.fs-page dd{
font-size:28px;
color: #174eb3;	
}

.fs-page a { color: #1749a0; }
.fs-page a:hover { color: #0f3a80; }

/* 頁內導覽錨點：避免固定頁首遮住標題 */
.fs-page [id] { scroll-margin-top: 5rem; }

/* 鍵盤焦點可見（滑鼠點擊不顯示藍框，只有用 Tab 鍵操作時才顯示） */
.fs-page a:focus,
.fs-page summary:focus,
.fs-page [tabindex]:focus {
  outline: 3px solid #1457a4;
  outline-offset: 3px;
}
/* 支援 :focus-visible 的瀏覽器：取消滑鼠點擊後的外框；舊瀏覽器忽略此段，維持上面的行為 */
.fs-page a:focus:not(:focus-visible),
.fs-page summary:focus:not(:focus-visible),
.fs-page [tabindex]:focus:not(:focus-visible) {
  outline: 0;
}

/* ---------- 區塊 ---------- */
.fs-band { padding: 2.75rem 0; }
.fs-tint { background: #f4f7fc; }
.fs-hero {
  background: #eef4ff;
  background: linear-gradient(115deg, #f4f8ff, #e6f0ff);
  border-bottom: 1px solid #dce5f1;
  padding: 2.75rem 0;
}
.fs-hero .fs-tagline { font-size: 1.3rem; font-weight: 700; color: #1d3a63; }
.fs-hero .fs-lead { font-size: 1.05rem; color: #354d6c; max-width: 36rem; }
.fs-page .fs-eyebrow { color: #1749a0; font-weight: 700; font-size: .9rem; }
.fs-page .fs-note { font-size: .9rem; color: #384a5e; }
.fs-page .fs-updated { font-size: .8rem; color: #6b7a90; }

/* 區塊副標題（h2 下方的說明句）：字級比內文大，只改 --fs-subtitle-fz 即可調整。
   手機 1.0625rem（17px），768px 以上 1.125rem（18px） */
.fs-page { --fs-subtitle-fz: 1.0625rem; }
.fs-page .fs-subtitle {
  font-size: 1.0625rem;
  font-size: var(--fs-subtitle-fz);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .fs-page { --fs-subtitle-fz: 1.125rem; }
}

/* ---------- 圖片 ---------- */
.fs-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(17, 58, 113, .12);
}

/* ---------- 頁內導覽（手機可左右滑動） ---------- */
.fs-nav {
  background: #fff;
  border-bottom: 1px solid #dce5f1;
}
.fs-nav .nav {
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fs-nav .nav-link {
  white-space: nowrap;
  color: #254269;
  font-weight: 600;
  padding: .85rem 1.5rem;
}
.fs-nav .nav-link:hover { color: #1749a0; }

/* ---------- 標籤與按鈕 ---------- */
/* 全頁按鈕統一用 Hero 的藍：主色 #0e6eb8、文字／深色 #0e5a96、hover #0b5a98 */
.fs-page .badge-primary,
.fs-page .btn-primary {
  background-color: #0e6eb8;
  border-color: #0e6eb8;
  color: #fff;
}
.fs-page .btn-outline-primary {
  color: #0e5a96;
  border-color: #0e6eb8;
  background-color: transparent;
}
.fs-page .btn-primary:hover,
.fs-page .btn-outline-primary:hover {
  background-color: #0b5a98;
  border-color: #0b5a98;
  color: #fff;
}
.fs-page { --fs-btn-radius: .3rem; }   /* 全頁按鈕圓角（含 Hero、btn-lg），要調整只改這裡 */
.fs-page .btn { font-weight: 700; border-radius: .375rem; border-radius: var(--fs-btn-radius); }
.fs-page .btn-lg { font-size: 1.05rem; }
/* 成組按鈕（Hero、功能區 CTA、頁尾 CTA）：寬度統一，不隨字數改變。
   只作用在 .col-sm-auto 內的按鈕，方案價格卡裡的按鈕不受影響。
   要調整寬度只改 --fs-btn-w；手機（< 576px）維持滿版 */
.fs-page { --fs-btn-w: 12rem; }
@media (min-width: 576px) {
  .fs-page .col-sm-auto > .btn {
    width: 12rem;
    width: var(--fs-btn-w);
    max-width: 100%;
    white-space: nowrap;
  }
}
.fs-tag {
  display: inline-block;
  background: #e6efff;
  color: #164482;
  border-radius: .25rem;
  padding: .2rem .55rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
/*	border: 1px solid #000;*/
}
.fs-step-badge {
  display: inline-block;
  background: #174eb3;
  color: #fff;
  border-radius: .25rem;
  padding: .15rem .55rem;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

/* ---------- 卡片 ---------- */
.fs-card {
  border: 1px solid #dce5f1;
  border-radius: .65rem;
  background: #fff;
}
.fs-card .card-body { padding: 1.35rem; }

/* 「哪些工作適合用…」卡片：上方 icon、標題與對象標籤同一列（放不下時標籤自動換到下一行）
   icon 大小只改 --fs-card-icon-size；想讓標題與標籤固定上下排列，把 .fs-card-head 的 display 改成 block */
.fs-card--usecase { --fs-card-icon-size: 62px; }
.fs-card-icon {
  display: block;
  width: 48px;
  width: var(--fs-card-icon-size);
  height: 48px;
  height: var(--fs-card-icon-size);
  object-fit: contain;
  margin-bottom: .75rem;
}
.fs-card-head {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: .35rem;
}
.fs-card-head h3,
.fs-card-head p { margin: 0 .75rem .25rem 0; }
.fs-page .fs-label { color: #1749a0; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }

/* 步驟列表 */
.fs-process { padding-left: 0; list-style: none; margin-bottom: 0; }
.fs-process > li { padding: 1rem 0; }
.fs-process > li + li { border-top: 1px solid #dce5f1; }
.fs-process-num { padding-left: 1.25rem; list-style: decimal; }
.fs-process-num > li { padding: .65rem 0; }

/* 重點面板 */
.fs-panel {
  border: 1px solid #dce5f1;
  background: #eaf2ff;
  border-radius: .9rem;
  padding: 1.5rem;
}

/* ---------- 表格 ---------- */
.fs-table {
  position: relative;
  border: 1px solid #dce5f1;
  border-radius: .65rem;
}
.fs-table .table {
  min-width: 36rem;
  margin-bottom: 0;
  color: #152743;
}
.fs-table .table th,
.fs-table .table td {
  padding: .7rem;
  vertical-align: top;
  border-color: #dce5f1;
}
.fs-table .table thead th {
  background: #18335c;
  color: #fff;
  border-color: #18335c;
}
.fs-table tbody tr:nth-child(even) { background: #f7faff; }
.fs-table th[scope="row"] { width: 12%; }
.fs-table .fs-col-focus { background: #eaf2ff; }

/* ---------- 方案價格卡 ---------- */
.fs-plan {
  border: 1px solid #dce5f1;
  border-radius: .75rem;
  background: #fff;
}
.fs-plan .card-body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 1.35rem;
}
.fs-plan .fs-plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.fs-plan .fs-plan-price { font-size: 1.6rem; font-weight: 700; color: #174eb3; line-height: 1.3; margin-bottom: .1rem; }
.fs-plan .fs-plan-term { font-size: .85rem; color: #5a6b82; margin-bottom: 1rem; }
.fs-plan ul { padding-left: 1.1rem; margin-bottom: 1.25rem; }
.fs-plan li { margin-bottom: .25rem; }
.fs-plan .btn { margin-top: auto; }
.fs-plan-pro { background: #f4f7fc; }

/* ---------- 成果數據 ---------- */
.fs-impact .fs-card { background: #f2f9f5; border-color: #fff; text-align: center; }
.fs-impact dt { font-weight: 400; color: #3a4c66; }
.fs-page .fs-impact dd { font-size: 1.5rem; font-weight: 700; color: #17563d; margin: .4rem 0 0; }

/* ---------- 客戶 Logo ---------- */
.fs-client {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 1rem .5rem;
}
.fs-client img {
  width: 78px;
  height: 52px;
  object-fit: contain;
  margin-bottom: .5rem;
}
.fs-client span { font-size: .9rem; color: #254269; }

/* ---------- FAQ（原生 details，不需 JS） ---------- */
.fs-faq details {
  border: 1px solid #dce5f1;
  background: #fff;
}
.fs-faq details + details { border-top: 0; }
.fs-faq details:first-child { border-radius: .65rem .65rem 0 0; }
.fs-faq details:last-child { border-radius: 0 0 .65rem .65rem; }
.fs-faq summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  background: #f7f9fc;
  padding: 1rem 3rem 1rem 1rem;
  font-weight: 700;
  color: #152743;
}
.fs-faq summary::-webkit-details-marker { display: none; }
.fs-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: .85rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #174eb3;
}
.fs-faq details[open] summary::after { content: "\2212"; }
.fs-faq details[open] summary { border-bottom: 1px solid #dce5f1; }
.fs-faq .fs-faq-answer { padding: 1rem; }
.fs-faq .fs-faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA 區 ---------- */
.fs-cta-box {
  background: #f4f7fc;
  border-radius: .75rem;
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}
.fs-start { background: #eaf2ff; border-top: 1px solid #dce5f1; text-align: center; }




/* ---------- 響應式（Bootstrap 4 斷點） ---------- */
@media (min-width: 576px) {
  .fs-page h1 { font-size: 2.75rem; }
}
@media (min-width: 768px) {
  .fs-band,
  .fs-hero { padding: 3.75rem 0; }
  .fs-page h2 { font-size: 1.9rem; }
  .fs-hero .fs-tagline { font-size: 1.55rem; }
  .fs-panel { padding: 2rem; }
}
@media (min-width: 992px) {
  .fs-band,
  .fs-hero { padding: 4.5rem 0; }
  .fs-page h1 { font-size: 3.4rem; }
  .fs-page h2 { font-size: 2.15rem; }
  .fs-hero .fs-tagline { font-size: 1.75rem; }
}
@media (max-width: 575.98px) {
  .fs-table th[scope="row"] { width: auto; }
  .fs-page .fs-impact dd { font-size: 1.25rem; }
}

/* 列印時展開所有 FAQ 答案無法以 CSS 控制，改為隱藏導覽與按鈕 */
@media print {
  .fs-nav,
  .fs-page .btn { display: none; }
}

/* ---------- Pro／Cloud 比較表（.fs-compare） ---------- */
.fs-compare {
  --fs-navy: #1b355e;
  --fs-pro: #eef4ff;
  --fs-line: #dde3ec;
  --fs-text: #1f2a3a;
  --fs-muted: #5b6678;
  --fs-lh: 1.6;          /* 此表自己的行距，維持原本 1.6 */
  --fs-fz: 15px;         /* 此表自己的字級 */
  color: #1f2a3a;
  color: var(--fs-text);
}
.fs-compare *,
.fs-compare *::before,
.fs-compare *::after { box-sizing: border-box; }
.fs-page .fs-compare h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #1b355e;
  color: var(--fs-navy);
  line-height: 1.3;
}
.fs-compare .fs-compare-lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: #5b6678;
  color: var(--fs-muted);
  line-height: 1.7;
}
.fs-compare .fs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dde3ec;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  background: #fff;
  position: relative; /* 讓表格內 .sr-only 文字留在捲動區內，避免手機出現橫向捲軸 */
}
.fs-compare table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.fs-compare th,
.fs-compare td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  color: #1f2a3a;
  color: var(--fs-text);
  border-bottom: 1px solid #dde3ec;
  border-bottom: 1px solid var(--fs-line);
}
.fs-compare thead th {
  background: #1b355e;
  background: var(--fs-navy);
  color: #fff;
  font-weight: 700;
  vertical-align: top;
}
.fs-compare thead th small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: .9;
}
.fs-compare tbody th[scope="row"] { font-weight: 700; width: 30%; }
.fs-compare tbody td:nth-child(2) { background: #eef4ff; background: var(--fs-pro); width: 40%; }
.fs-compare tbody tr.cat th {
  background: #e9eef6;
  color: #1b355e;
  color: var(--fs-navy);
  font-weight: 700;
  padding: 10px 18px;
  width: auto;
}
.fs-compare tbody tr:last-child th,
.fs-compare tbody tr:last-child td { border-bottom: 0; }
.fs-compare .yes { color: #1a7f4b; font-weight: 700; }
.fs-compare .no { color: #9aa3b2; }
.fs-compare .fs-compare-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #5b6678;
  color: var(--fs-muted);
}
@media (max-width: 640px) {
  .fs-compare { --fs-fz: 14px; }
  .fs-page .fs-compare h2 { font-size: 24px; }
  .fs-compare th,
  .fs-compare td { padding: 12px; font-size: 14px; }
}

/* ---------- Cloud 首屏 Banner（.fs-hero--cloud）：整幅背景插圖＋文字靠右 ----------
   底圖 1920×700：插圖在左、右側留白放文字。可調整的變數：
   --fs-hero-bg        底圖路徑（相對於這支 CSS）
   --fs-hero-bg-color  底圖外的填色（與底圖底色相同）
   --fs-hero-art-h     手機／平板時底圖顯示高度（文字排在插圖下方）
   --fs-hero-art-crop  手機／平板時裁掉底圖上方空白的比例（0.16 = 裁掉 16%）
   --fs-hero-text-x    桌機文字起始位置（插圖右緣約在 54%）
   --fs-hero-title-fz  桌機標題字級（隨視窗寬度縮放）
   ------------------------------------------------------------------------ */
.fs-hero--cloud {
  --fs-hero-bg: url("../images/fastsign_cloud/2026/hero_01.png");
  --fs-hero-bg-color: #d9eff4;
  --fs-hero-art-h: 62vw;
  --fs-hero-art-crop: .16;
  --fs-hero-text-x: 57.3%;
  --fs-hero-title-fz: 2.7vw;
  background-color: #d9eff4;
  background-color: var(--fs-hero-bg-color);
  background-image: var(--fs-hero-bg);
  background-repeat: no-repeat;
  background-position: left top;
  background-position: left calc(var(--fs-hero-art-h) * var(--fs-hero-art-crop) * -1);
  background-size: auto 62vw;
  background-size: auto var(--fs-hero-art-h);
  border-bottom: 0;
  padding: calc(48vw + 1rem) 0 2.25rem;
  padding: calc(var(--fs-hero-art-h) * (1 - var(--fs-hero-art-crop)) + 1rem) 0 2.25rem;
}
.fs-hero--cloud .fs-hero-label {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: .4rem .85rem;
  background: #18335c;
  line-height: 1.4;
  font-size: 1.2rem;
}
.fs-hero--cloud .fs-hero-label strong,
.fs-hero--cloud .fs-hero-label span { color: #fff; }
.fs-hero--cloud h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #3b7cc2;
}
.fs-hero--cloud .fs-nowrap { white-space: nowrap; }
.fs-hero--cloud .fs-tagline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #3b7cc2;
}
.fs-hero--cloud .fs-lead {
  color: #514e4d;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 36rem;
}
.fs-hero--cloud .fs-note { color: #3f5670; }
.fs-hero--cloud .btn {
  padding: .6rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 平板（576–991px）：插圖固定高度，文字排在下方 */
@media (min-width: 576px) {
  .fs-hero--cloud { --fs-hero-art-h: 340px; }
  .fs-hero--cloud h1 { font-size: 2.5rem; }
  .fs-hero--cloud .fs-tagline { font-size: 1.6rem; }
}

/* 桌機（≥992px）：底圖鋪滿寬度，文字靠右並垂直置中 */
@media (min-width: 992px) {
  .fs-hero--cloud {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: 36.46vw;               /* = 700 / 1920，底圖完整顯示的高度 */
    padding: 3rem 0;
    background-position: left bottom;  /* 文字較高時，多出的空間在上方，與底圖同色 */
    background-size: 100% auto;
  }
  .fs-hero--cloud .container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .fs-hero--cloud .fs-hero-cloud-text {
    margin-left: 57.3%;
    margin-left: var(--fs-hero-text-x);
    max-width: 44rem;
    padding-right: 1.5rem;
  }
  .fs-hero--cloud h1 {
    font-size: clamp(1.75rem, 2.7vw, 3.5rem);
    font-size: clamp(1.75rem, var(--fs-hero-title-fz), 3.5rem);
  }
  .fs-hero--cloud .fs-tagline { font-size: clamp(1.6rem, 2.5vw, 3.25rem); }
  .fs-hero--cloud .fs-lead { font-size: clamp(1rem, .92vw, 1.125rem); }
}
