﻿/* ========================================
   CN/biz 統一樣式表 v3 — 緊湊商務風格
   單一引用入口，覆蓋所有頁面公共樣式
   品牌色：#10B981 / #059669 / #047857
   ======================================== */

/* ========== CSS 變數 ========== */
:root {
  --primary:        #10B981;
  --primary-dark:   #059669;
  --primary-darker: #047857;
  --text-main:      #0f172a;
  --text-muted:     #4b5563;
  --text-light:     #6b7280;
  --bg-page:        #f8fafc;
  --bg-white:       #ffffff;
  --border:         #e5e7eb;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.06);
  --nav-h:          42px;   /* 一級導航高度 */
  --tab-h:          36px;   /* 二級Tab導航高度 */
}

/* ========== 全域性基礎 ========== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.9375rem;   /* 15px 基準，移動端稍小 */
  /* 覆蓋 common.css 的 body{padding-top:80px}：
     我們的 #navbar 是 fixed 定位、高度 42px，
     body 只需要 42px 給它留出空間 */
  padding-top: var(--nav-h) !important;
  margin-top: 0 !important;
}

a { color: inherit; text-decoration: none; }

/* ========== 全域性標題體系 ==========
   統一覆蓋 Tailwind text-* 和各頁面內聯 font-size
   ======================================== */
h1 {
  font-size: 1.5rem !important;       /* 24px */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
h2 {
  font-size: 1.25rem !important;      /* 20px */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.0625rem !important;    /* 17px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}
h4 {
  font-size: 0.9375rem !important;    /* 15px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}
h5 {
  font-size: 0.875rem !important;     /* 14px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
}
h6 {
  font-size: 0.8125rem !important;    /* 13px */
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Hero 內標題繼承白色（顏色不用 !important，讓下方 Hero 規則覆蓋） */
.hero h1, .hero h2, .hero h3, .hero h4,
[class*="-hero"] h1, [class*="-hero"] h2,
[class*="-hero"] h3, [class*="-hero"] h4 {
  color: #fff;
}

/* 綠色/深色漸變背景區域內的標題統一為白色
   適用於 from-[#10B981]、from-green、bg-gradient-to-* 等區塊 */
[class*="from-green"] h1,
[class*="from-green"] h2,
[class*="from-green"] h3,
[class*="from-green"] h4 {
  color: #fff !important;
}

/* 凡帶 text-white 的標題（Tailwind 內聯寫法），確保白色不被全域性 h* 顏色覆蓋 */
h1.text-white, h2.text-white, h3.text-white, h4.text-white {
  color: #fff !important;
}
p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 14px;
}

ul, ol {
  color: var(--text-muted);
  line-height: 1.85;
  margin: 14px 0;
  padding-left: 22px;
}
li { margin-bottom: 8px; }

/* ========== 一級導航 ========== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);  /* 只向下1px，不產生模糊擴散 */
  border-bottom: none;
}

#navbar .container,
#navbar .flex.items-center,
#navbar .flex.items-center.justify-between {
  height: var(--nav-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Logo 高度適配 */
#navbar img { height: 28px !important; max-height: 28px !important; }

/* 下拉選單層級 */
.dropdown { position: relative; }
.dropdown-content { z-index: 190 !important; }

/* ========== common.css 衝突修復 ========== */
/* common.css 的 .hero 背景定義與我們的品牌色衝突 */
body.has-biz-nav .hero,
body.compact-business .hero {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}
/* common.css 的 .timeline 中心對齊 / float 佈局與我們的左對齊衝突 */
body.has-biz-nav .timeline::before {
  left: 6px !important;
  top: 4px !important;
  bottom: 4px !important;
  width: 2px !important;
  transform: none !important;
}
body.has-biz-nav .timeline::after {
  content: '' !important;
  display: table !important;
  clear: both !important;
}
body.has-biz-nav .timeline { overflow: hidden; }
body.has-biz-nav .timeline-content {
  width: 100% !important;
  float: none !important;
  text-align: left !important;
}
body.has-biz-nav .timeline-item:nth-child(odd) .timeline-content,
body.has-biz-nav .timeline-item:nth-child(even) .timeline-content {
  float: none !important;
  text-align: left !important;
}

/* ========== 二級 Tab 導航 ========== */
.biz-tab-navigation {
  background: #fff;
  border-bottom: 2px solid var(--primary);  /* 底部綠色高亮線 */
  border-top: none;  /* 去掉頂部邊框，與導航無縫銜接 */
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* ========== 全域性寬度對齊（修復導航與主體寬度不一致問題） ==========
   將一級導航(#navbar)、二級導航、麵包屑、主體內容容器統一鎖定到
   max-w-7xl (80rem / 1280px)，覆蓋各頁面 HTML 中混用的
   max-w-6xl / max-w-7xl 不一致情況，以及 #navbar 預設無 max-width
   的問題（在 ≥1536px 螢幕上 .container 會擴充套件到 1536px）。
   ============================================================ */
body.has-biz-nav #navbar > .container,
body.compact-business #navbar > .container,
body.business-style #navbar > .container,
.biz-tab-navigation > .container,
body.has-biz-nav nav[aria-label="麵包屑"].container,
body.has-biz-nav main > .container,
body.has-biz-nav main > nav.container,
body.compact-business nav[aria-label="麵包屑"].container,
body.compact-business main > .container,
body.business-style nav[aria-label="麵包屑"].container,
body.business-style main > .container {
  max-width: var(--shell-max-rem, 90rem) !important;   /* 等同 Tailwind max-w-7xl */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 主體內容容器：相容 HTML 中直接用 max-w-6xl 的寫法，統一升級為 80rem */
body.has-biz-nav .max-w-6xl,
body.compact-business .max-w-6xl,
body.business-style .max-w-6xl {
  max-width: var(--shell-max-rem, 90rem) !important;
}

/* 統一水平內邊距：一級導航 / 二級導航 / 麵包屑 / 主體在各斷點保持一致，
   避免主體使用 px-6 而導航使用 lg:px-8 造成的 8px 錯位。 */
body.has-biz-nav #navbar > .container,
body.compact-business #navbar > .container,
body.business-style #navbar > .container,
.biz-tab-navigation > .container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
@media (min-width: 768px) {
  body.has-biz-nav #navbar > .container,
  body.compact-business #navbar > .container,
  body.business-style #navbar > .container,
  .biz-tab-navigation > .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
@media (min-width: 1024px) {
  body.has-biz-nav #navbar > .container,
  body.compact-business #navbar > .container,
  body.business-style #navbar > .container,
  .biz-tab-navigation > .container {
    padding-left: 1.5rem !important;  /* 與主體 px-6 保持一致，不再升到 px-8 */
    padding-right: 1.5rem !important;
  }
}

.biz-tab-nav-container {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f0f0f0;
  padding: 4px 0;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.biz-tab-nav-container::-webkit-scrollbar { height: 3px; }
.biz-tab-nav-container::-webkit-scrollbar-track { background: #f0f0f0; }
.biz-tab-nav-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.biz-tab-item {
  padding: 5px 10px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: color .2s, background .2s, border-color .2s;
}

.biz-tab-item i { font-size: 0.8125rem; }

.biz-tab-item:hover {
  color: var(--primary);
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.biz-tab-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-weight: 600;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16,185,129,.2);
}

/* ========== 頁面主體偏移 ========== */
/* body 已經有 padding-top: 42px（給 fixed 導航留出空間） */
/* main 和內容容器不需要額外偏移 */
body.has-biz-nav .max-w-6xl.mx-auto.px-6,
body.has-biz-nav main,
body.compact-business .max-w-6xl.mx-auto.px-6,
body.compact-business main,
body.business-style .max-w-6xl.mx-auto.px-6,
body.business-style main {
  padding-top: 0;
}

/* 當 Tab導航在 main 外部時，main.pt-0 重置 padding-top */
/* （Tab導航本身擐開了高度，main 不需要額外偏移） */
body.has-biz-nav main.pt-0,
body.compact-business main.pt-0,
body.business-style main.pt-0 {
  padding-top: 0 !important;
}

/* ========== Hero 區域 ========== */
.hero,
.comparison-hero, .roi-hero, .case-hero, .pricing-hero,
.guide-hero, .checklist-hero, .workflow-hero, .toolkit-hero,
.cert-hero, .vendor-hero, .feature-hero, .hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16,185,129,.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero h1, .hero p,
[class*="-hero"] h1, [class*="-hero"] p { color: #fff; position: relative; z-index: 1; }

/* Hero 標題統一：強制覆蓋 Tailwind 的 text-3xl / text-4xl / text-5xl 等 */
.hero h1, [class*="-hero"] h1 {
  font-size: 1.5rem !important;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Hero 內 h2（如精選案例大標題） */
.hero h2, [class*="-hero"] h2 {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Hero 副標題（p / .tagline） */
.hero p, [class*="-hero"] p {
  font-size: 0.9rem !important;
  opacity: .92;
  max-width: 680px;
  margin: 0 auto 6px;
  line-height: 1.5;
}

/* Hero 內 span/div 文字（如徽章文字） */
.hero span, [class*="-hero"] span { color: inherit; }

/* Hero 內嵌徽章/標籤 */
.hero .inline-flex, [class*="-hero"] .inline-flex {
  margin-bottom: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
}

/* Hero 統計 */
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 10px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-number { font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-label  { font-size: 0.7rem; color: rgba(255,255,255,.85); margin-top: 4px; }

/* Hero 標籤橫排 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Hero 內 slogan（company-overview 等使用） */
.hero .slogan {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin: 6px auto;
  opacity: .95;
}

/* ========== Section 卡片 ========== */
.section-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .2s;
}
.section-card:hover {
  box-shadow: var(--shadow-md);
}

/* section-card 變體 */
.section-card.critical {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.section-card.important {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

/* section-card h2 圖示+文字橫排 */
.section-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* section-icon 圖示圓形徽章 */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.section-icon.critical {
  background: #ef4444;
}
.section-icon.important {
  background: #f59e0b;
}

/* critical/important 下 h2 底線顏色 */
.section-card.critical h2 { border-bottom-color: #ef4444; }
.section-card.important h2 { border-bottom-color: #f59e0b; }

.section-card h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 20px 0 12px;
}

.section-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 12px 0 6px;
}

/* ========== 表格 ========== */
.biz-table, .mode-table, .comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(226,232,240,.8);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.biz-table thead, .mode-table thead, .comparison-table thead {
  background: linear-gradient(135deg, var(--primary-darker), #065f46);
}

.biz-table th, .mode-table th, .comparison-table th {
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  border: none;
  background: transparent;
}

.biz-table td, .mode-table td, .comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226,232,240,.8);
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.6;
}

.biz-table tbody tr:nth-child(even),
.mode-table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) { background: #fafbfd; }

.biz-table tbody tr:hover,
.mode-table tbody tr:hover,
.comparison-table tbody tr:hover { background: #f0fdf4; }

.biz-table tbody tr:last-child td,
.mode-table tbody tr:last-child td,
.comparison-table tbody tr:last-child td { border-bottom: none; }

.biz-table td:first-child,
.mode-table td:first-child,
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary-darker);
  background: #f8fafc;
}

/* ========== 特性項 ========== */
.feature-item {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-item h4 { font-weight: 600; color: var(--primary-darker); margin-bottom: 4px; font-size: 0.9rem; }
.feature-item p  { color: var(--text-muted); line-height: 1.5; margin: 0; font-size: 0.85rem; }

/* ========== 高亮框 ========== */
.highlight-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid rgba(16,185,129,.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.highlight-box h4 { color: var(--primary-darker); font-weight: 700; margin-bottom: 8px; font-size: 0.9375rem; }
.highlight-box p, .highlight-box ul { color: #065f46; line-height: 1.55; font-size: 0.875rem; }
.highlight-box .price { font-size: 2rem; font-weight: 700; color: var(--primary-darker); margin: 8px 0; }
.highlight-box .note  { color: #065f46; font-size: 0.85rem; line-height: 1.5; }

/* ========== 優勢卡片 ========== */
.advantage-card, .advantage-grid .advantage-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.advantage-card .icon { font-size: 2rem; margin-bottom: 10px; }
.advantage-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary-darker); margin: 0 0 6px; }
.advantage-card p  { color: var(--text-muted); line-height: 1.55; font-size: 0.875rem; }
.advantage-card ul { color: var(--text-muted); font-size: 0.875rem; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

/* ========== 卡片網格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.card-item {
  background: var(--bg-white);
  border: 1.5px solid rgba(226,232,240,.8);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-item h4 { color: var(--primary-darker); font-weight: 600; margin-bottom: 6px; font-size: 0.9375rem; }
.card-item p  { color: var(--text-light); font-size: 0.875rem; line-height: 1.55; }

/* ========== 徽章 ========== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 5px;
}

.badge-outline {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary-darker);
  background: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 5px;
}

/* ========== 平臺徽章 ========== */
.platform-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(16,185,129,.25);
  display: inline-block;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.platform-badge:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16,185,129,.35);
}

.platform-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* ========== CTA 區域 ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  margin-top: 24px;
}

.cta-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.cta-section p  { color: #fff; opacity: .95; margin-bottom: 16px; font-size: 0.9rem; }

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--primary-darker);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  margin: 4px 6px;
  transition: box-shadow .2s;
}

.cta-button:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ========== 價格卡 ========== */
.price-tag {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: center;
}
.price-tag .price-label  { font-size: 0.875rem; opacity: .9; margin-bottom: 6px; }
.price-tag .price-value  { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.price-tag .price-note   { font-size: 0.8rem; opacity: .9; margin-top: 4px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price-tag { padding: 14px 14px; }
  .price-tag .price-value { font-size: 1.4rem; }
}

/* ========== index.html 專屬元件 ========== */

/* 分類區塊標題 */
.category-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.category-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-right: 14px;
  box-shadow: 0 4px 12px rgba(16,185,129,.2);
}
.category-title h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin: 0; letter-spacing: -.01em; }
.category-title p  { margin: 2px 0 0; color: var(--text-muted); font-size: 0.875rem; }

/* 資源卡片 */
.resource-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1.5px solid rgba(226,232,240,.8);
  height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.resource-card:hover {
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 6px 20px rgba(16,185,129,.1);
  transform: translateY(-2px);
}
.resource-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(16,185,129,.2);
}
.resource-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--primary-darker); letter-spacing: -.01em; }
.resource-card p  { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; margin-bottom: 14px; flex-grow: 1; }
.resource-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: var(--primary-darker);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(16,185,129,.2);
}

/* 主按鈕 */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(16,185,129,.2);
  width: 100%;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16,185,129,.28);
}

/* 外鏈卡片 */
.external-link-card {
  background: var(--bg-white);
  border: 1.5px solid rgba(226,232,240,.8);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.external-link-card:hover {
  border-color: rgba(16,185,129,.3);
  box-shadow: 0 4px 14px rgba(16,185,129,.1);
  transform: translateY(-1px);
}
.external-link-card h4 { color: var(--primary-darker); font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.external-link-card p  { color: var(--text-light); font-size: 0.85rem; }

/* ========== 漢堡選單 ========== */
.burger-menu { position: relative; width: 22px; height: 18px; cursor: pointer; }
.burger-bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #1D2129;
  transition: all .28s ease;
}
.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 8px; }
.burger-bar:nth-child(3) { top: 16px; }
.burger-menu.active .burger-bar:nth-child(1) { transform: rotate(45deg); top: 8px; }
.burger-menu.active .burger-bar:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-bar:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* 移動端導航動畫 */
#mobileNav { max-height: 0; overflow: hidden; transition: max-height .3s ease-in-out; }
#mobileNav.open { max-height: 90vh; overflow-y: auto; }
#mobileNav a { padding: 11px 14px; font-size: 15px; border-radius: 7px; transition: all .2s ease; display: block; }
#mobileResourcesMenu { transition: all .3s ease-in-out; }

/* ========== 浮動聯絡按鈕 ========== */
.floating-contact { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  cursor: pointer;
  color: #fff;
  font-size: 20px;
}

.floating-btn-primary  { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.floating-btn-secondary{ background: linear-gradient(135deg, #6366f1, #4f46e5); }

.floating-tooltip {
  position: absolute;
  right: 60px;
  background: #fff;
  color: #1f2937;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
  z-index: 1000;
}

.floating-btn:hover .floating-tooltip { opacity: 1; visibility: visible; }

/* ========== 移動端 ========== */
@media (max-width: 768px) {
  body { font-size: 0.875rem; }

  /* ---- 全域性標題移動端縮放 ---- */
  h1 { font-size: 1.2rem !important; }
  h2 { font-size: 1.05rem !important; }
  h3 { font-size: 0.9375rem !important; }
  h4 { font-size: 0.875rem !important; }

  /* 導航 */
  #navbar { --nav-h: 38px; }

  /* 移動端選單定位修復 */
  #mobileMenu { top: 38px !important; max-height: calc(100vh - 38px) !important; }
  #navbar .container,
  #navbar .flex.items-center,
  #navbar .flex.items-center.justify-between { height: 38px !important; }
  #navbar img { height: 24px !important; }

  .biz-tab-navigation { top: 38px; }
  .biz-tab-item { padding: 4px 8px; font-size: 0.75rem; }
  .biz-tab-item i { font-size: 0.75rem; }

  /* 頁面偏移：移動端 body 已有 padding-top: 38px，main 不需額外偏移 */
  body.has-biz-nav .max-w-6xl.mx-auto.px-6,
  body.has-biz-nav main,
  body.compact-business .max-w-6xl.mx-auto.px-6,
  body.compact-business main,
  body.business-style .max-w-6xl.mx-auto.px-6,
  body.business-style main { padding-top: 0; }

  /* 移動端 body 的 padding-top 覆蓋 */
  body { padding-top: 38px !important; }

  /* Hero */
  .hero, [class*="-hero"] { padding: 14px 14px; margin-bottom: 12px; border-radius: 10px; }
  .hero h1, [class*="-hero"] h1 { font-size: 1.1rem !important; margin-bottom: 5px; }
  .hero p,  [class*="-hero"] p  { font-size: 0.8rem !important; }
  .hero-stats { gap: 16px; }
  .hero-stat-number { font-size: 1.1rem; }
  .hero-stat-label  { font-size: 0.6rem; }

  /* Section 卡片 */
  .section-card { padding: 16px; margin-bottom: 14px; }
  .section-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
  .section-card h3 { font-size: 0.9375rem; margin: 12px 0 8px; }

  /* 表格 — 橫向滾動 */
  .biz-table, .mode-table, .comparison-table {
    font-size: 0.78rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .biz-table th, .mode-table th, .comparison-table th { padding: 8px 8px; font-size: 0.78rem; }
  .biz-table td, .mode-table td, .comparison-table td { padding: 8px 8px; font-size: 0.78rem; }

  /* 優勢卡片 */
  .advantage-grid { grid-template-columns: 1fr; gap: 10px; }
  .advantage-card { padding: 14px; }
  .advantage-card .icon { font-size: 1.6rem; margin-bottom: 8px; }
  .advantage-card h3 { font-size: 0.9375rem; }

  /* 卡片網格 */
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-item { padding: 14px; }

  /* highlight-box */
  .highlight-box { padding: 14px 16px; }
  .highlight-box .price { font-size: 1.5rem; }

  /* CTA */
  .cta-section { padding: 20px 16px; }
  .cta-section h3 { font-size: 1.1rem; }
  .cta-button { padding: 9px 18px; font-size: 0.85rem; margin: 3px 4px; display: block; }

  /* 浮動按鈕 */
  .floating-btn { width: 44px; height: 44px; font-size: 18px; }
  .floating-contact { bottom: 16px; right: 16px; }

  /* 分類標題 */
  .category-icon { width: 36px; height: 36px; font-size: 1.1rem; margin-right: 10px; }
  .category-title h2 { font-size: 1.15rem; }

  /* 資源卡片 */
  .resource-card { padding: 16px; }
  .resource-card-icon { width: 36px; height: 36px; font-size: 1.2rem; margin-bottom: 10px; }
  .resource-card h3 { font-size: 0.9375rem; }
  .resource-card p  { font-size: 0.825rem; }

  /* 主按鈕 */
  .btn-primary { padding: 9px 14px; font-size: 0.85rem; }

  /* 外鏈卡片 */
  .external-link-card { padding: 14px; }

  /* 移動端導航字型縮小 */
  #mobileNav a { font-size: 14px; padding: 10px 12px; }

  /* 場景卡片 */
  .scenario-card { padding: 12px 14px; margin-bottom: 8px; }

  /* 階段卡片 */
  .phase-card { padding: 16px; margin-bottom: 12px; }

  /* 清單項 */
  .checklist-item { padding: 9px 10px; }

  /* 案例卡片 */
  .case-card { padding: 14px; }

  /* 認證卡片 */
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert-card { padding: 14px; }
  .cert-icon { font-size: 1.75rem; }

  /* 時間軸 */
  .timeline-item { padding-left: 28px; margin-bottom: 16px; }
  .timeline-dot { width: 12px; height: 12px; left: 0; }

  /* 過濾標籤 */
  .filter-tab { padding: 5px 12px; font-size: 0.78rem; }

  /* 度量卡片 */
  .metric-card { padding: 14px; }
  .metric-value { font-size: 1.5rem; }
}

/* ========== 手機端進一步緊湊 ========== */
@media (max-width: 576px) {
  body { font-size: 0.8125rem; }

  h1 { font-size: 1.05rem !important; }
  h2 { font-size: 0.95rem !important; }
  h3 { font-size: 0.875rem !important; }
  h4 { font-size: 0.8125rem !important; }

  p { line-height: 1.7; margin: 0 0 10px; }
  ul, ol { margin: 10px 0; }
  li { margin-bottom: 6px; }

  .hero, [class*="-hero"] { padding: 12px 10px; margin-bottom: 10px; border-radius: 8px; }
  .hero h1, [class*="-hero"] h1 { font-size: 1rem !important; margin-bottom: 4px; }
  .hero p, [class*="-hero"] p { font-size: 0.75rem !important; }
  .hero-stats { gap: 12px; margin-top: 8px; }
  .hero-stat-number { font-size: 0.95rem; }
  .hero-stat-label { font-size: 0.55rem; }
  .hero-tags { gap: 5px; margin-top: 8px; }
  .hero-tag { padding: 3px 10px; font-size: 0.7rem; }

  .section-card { padding: 14px; margin-bottom: 12px; }
  .section-card h2 { font-size: 0.95rem; margin-bottom: 14px; padding-bottom: 8px; gap: 8px; }
  .section-card h3 { font-size: 0.85rem; margin: 14px 0 8px; }
  .section-icon { width: 26px; height: 26px; font-size: 0.75rem; }

  .biz-table, .mode-table, .comparison-table { font-size: 0.72rem; }
  .biz-table th, .mode-table th, .comparison-table th { padding: 6px; font-size: 0.72rem; }
  .biz-table td, .mode-table td, .comparison-table td { padding: 6px; font-size: 0.72rem; }

  .feature-item { padding: 10px 12px; margin-bottom: 10px; }
  .feature-item h4 { font-size: 0.8rem; }
  .feature-item p { font-size: 0.78rem; }

  .highlight-box { padding: 14px 16px; margin: 14px 0; }
  .highlight-box .price { font-size: 1.3rem; }

  .advantage-grid { gap: 8px; }
  .advantage-card { padding: 14px; }
  .advantage-card .icon { font-size: 1.4rem; margin-bottom: 6px; }

  .card-grid { gap: 8px; }
  .card-item { padding: 12px; }

  .cta-section { padding: 16px 12px; }
  .cta-section h3 { font-size: 0.95rem; }
  .cta-button { padding: 8px 14px; font-size: 0.8rem; }

  .floating-btn { width: 40px; height: 40px; font-size: 16px; }
  .floating-contact { bottom: 12px; right: 12px; gap: 8px; }

  .resource-card { padding: 12px; }
  .resource-card h3 { font-size: 0.85rem; }
  .resource-card p { font-size: 0.78rem; }

  .scenario-card { padding: 10px 12px; }
  .phase-card { padding: 12px; }
  .checklist-item { padding: 7px 8px; }
  .case-card { padding: 12px; }
  .cert-card { padding: 12px; }
  .guarantee-box { padding: 14px 16px; }
  .tool-card { padding: 12px; }
  .vendor-card { padding: 12px; }
  .metric-card { padding: 10px; }
  .metric-value { font-size: 1.2rem; }
  .external-link-card { padding: 12px; }
  .timeline-item { padding-left: 22px; margin-bottom: 12px; }
  .filter-tab { padding: 4px 10px; font-size: 0.72rem; }
}

/* ========== 額外元件（各頁面專屬） ========== */

/* 精選案例大卡片 — success-stories 使用 */
.case-card-featured {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.case-card-featured h2 { font-size: 1.2rem !important; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.case-card-featured h3 { font-size: 1.05rem !important; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }

/* 案例資料指標網格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-item {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .case-card-featured .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-value { font-size: 1.1rem; }
}

/* 場景卡片 — service-package 使用 */
.scenario-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.scenario-card h4 { color: var(--primary-darker); font-weight: 600; margin-bottom: 4px; font-size: 0.9375rem; }
.scenario-card p  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; margin: 0; }

/* 階段卡片 — implementation-checklist 使用 */
.phase-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* 清單項 */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(226,232,240,.5);
  cursor: pointer;
  transition: background .15s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: #f8fffe; }
.checklist-item input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); width: 16px; height: 16px; }

/* 進度條 */
.progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
  width: 0%;
}

/* 分類頭部 */
.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(16,185,129,.15);
}

/* 優先順序徽章 */
.priority-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
}
.priority-high   { background: #fee2e2; color: #b91c1c; }
.priority-medium { background: #fef9c3; color: #854d0e; }
.priority-low    { background: #e0f2fe; color: #0369a1; }

/* 案例卡片 — business-roi 使用 */
.case-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
/* 強制覆蓋 Tailwind text-2xl / text-3xl */
.case-card h3 { color: var(--text-main); font-size: 1.0rem !important; font-weight: 700; margin-bottom: 4px; }
.case-card h2 { color: var(--primary-darker); font-size: 1.1rem !important; font-weight: 700; margin-bottom: 8px; }

/* 認證卡片 */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.cert-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cert-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cert-card h3 { color: var(--primary-darker); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cert-card p  { color: var(--text-muted); font-size: 0.85rem; }

/* 時間軸 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 1px;
  opacity: .4;
}
.timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 20px;
}
.timeline-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(16,185,129,.3);
}
.timeline-content { }
.timeline-content h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
.timeline-content p  { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* 過濾標籤 — success-stories 使用 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16,185,129,.2);
}

/* 指標卡片 — ROI頁使用 */
.metric-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.1;
  margin-bottom: 4px;
}
.metric-label { color: var(--text-muted); font-size: 0.825rem; }

/* 表格推薦列高亮 */
.highlight-cell {
  background: #f0fdf4 !important;
}

/* 推薦徽章（表頭內） */
.recommended-badge {
  display: inline-block;
  background: #fff;
  color: var(--primary-darker);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* 決策框 */
.decision-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.decision-box:hover {
  border-color: rgba(16,185,129,.4);
}

/* 低代碼標籤粗體樣式 */
.vendor-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.vendor-card:hover { border-color: rgba(16,185,129,.4); }

/* 工具卡片 */
.tool-card {
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}

/* 提示框 */
.tip-box {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  font-size: 0.875rem;
  color: #92400e;
}

/* 警告框 */
.warning-box {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  font-size: 0.875rem;
  color: #991b1b;
}

/* 保障框 */
.guarantee-box {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 14px 0;
}

/* ========== 站內關聯導航 ========== */
.site-cross-links {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0 20px;
}
.site-cross-links h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-cross-links h3 i { color: var(--primary); font-size: 0.9rem; }
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.cross-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all .2s;
  text-decoration: none;
}
.cross-link-item:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.12);
  transform: translateY(-1px);
}
.cross-link-item i {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .site-cross-links { padding: 16px; margin: 20px 0 14px; }
  .site-cross-links h3 { font-size: 0.95rem; margin-bottom: 12px; }
  .cross-link-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cross-link-item { padding: 8px 10px; font-size: 0.78rem; }
}

/* ============================================================
   專案流程 / Process 頁面專屬元件
   ============================================================ */

/* --- 商務徽章（Hero 內） --- */
.commercial-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

/* --- 階段區塊 --- */
.phase-section {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 28px 20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* --- 階段頭部 --- */
.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* --- 階段編號圓圈 --- */
.phase-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

/* --- 階段標題 --- */
.phase-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --- 時間軸連線線 --- */
.timeline-connector {
  width: 3px;
  height: 36px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary) 0,
    var(--primary) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: 2px;
}

/* --- 步驟卡片 --- */
.step-card {
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.step-card:hover {
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 2px 8px rgba(16,185,129,.08);
}

/* --- 步驟標題行 --- */
.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

/* --- 步驟圖示 --- */
.step-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* --- 清單（帶勾選圖示） --- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  border-bottom: 1px dashed #e5e7eb;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '\f00c';
  font-family: FontAwesome;
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- 流程頁移動端適配 --- */
@media (max-width: 768px) {
  .phase-section { padding: 20px 16px 14px; }
  .phase-number { width: 40px; height: 40px; min-width: 40px; font-size: 1.1rem; }
  .phase-title { font-size: 1.05rem; }
  .step-card { padding: 16px; }
  .step-icon { width: 30px; height: 30px; min-width: 30px; font-size: 0.8rem; }
  .timeline-connector { height: 24px; }
}
@media (max-width: 576px) {
  .phase-section { padding: 16px 12px 12px; }
  .phase-header { gap: 10px; margin-bottom: 16px; padding-bottom: 12px; }
  .phase-number { width: 36px; height: 36px; min-width: 36px; font-size: 1rem; }
  .phase-title { font-size: 0.95rem; }
  .step-card { padding: 14px 12px; margin-bottom: 12px; }
  .step-title { font-size: 0.9rem; gap: 8px; }
  .step-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 8px; font-size: 0.75rem; }
  .checklist li { padding: 5px 0 5px 24px; font-size: 0.82rem; }
  .checklist li::before { font-size: 0.7rem; }
  .timeline-connector { height: 18px; }
}

/* ========== v4 商務中心重構 ========== */
.biz-hub-hero { text-align: center; padding: 2rem 1.25rem; }
.biz-hub-hero__eyebrow { font-size: .8125rem; color: rgba(255,255,255,.85); margin-bottom: .75rem; }
.biz-hub-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.biz-path-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .biz-path-grid { grid-template-columns: repeat(3, 1fr); } }
.biz-path-card {
  display: block; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.biz-path-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.biz-path-card--featured { border-color: var(--primary); background: #ecfdf5; }
.biz-path-card__num {
  display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%; font-size: .8125rem; font-weight: 700; margin-bottom: .5rem;
}
.biz-path-card h3 { font-size: 1rem !important; margin-bottom: .35rem; }
.biz-path-card p { font-size: .8125rem; margin-bottom: .75rem; }
.biz-path-card__link { font-size: .8125rem; font-weight: 600; color: var(--primary-dark); }

.biz-mode-mini {
  position: relative; padding: 1.125rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
.biz-mode-mini--hot { border-color: var(--primary); }
.biz-mode-mini__badge {
  position: absolute; top: -.5rem; right: .75rem; background: var(--primary); color: #fff;
  font-size: .625rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
}
.biz-mode-mini h3 { font-size: .9375rem !important; }
.biz-mode-mini__price { font-size: 1.125rem; font-weight: 800; color: var(--primary-darker); margin: .25rem 0 .5rem; }
.biz-mode-mini a { font-size: .8125rem; font-weight: 600; color: var(--primary-dark); }

.biz-tool-link {
  display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: #fff;
}
.biz-tool-link i { color: var(--primary); font-size: 1.25rem; margin-top: .15rem; }
.biz-tool-link strong { display: block; font-size: .875rem; color: var(--text-main); }
.biz-tool-link span { font-size: .75rem; color: var(--text-light); }

.biz-cta-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, #064e3b, #047857) !important; color: #fff; border: none !important;
}
.biz-cta-bar h2, .biz-cta-bar p { color: rgba(255,255,255,.92) !important; }
.biz-cta-bar__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.biz-cta-bar__btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 600; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
}
.biz-cta-bar__btn--primary { background: #fff; color: #065f46; border-color: #fff; }

.biz-check-summary { list-style: none; padding: 0; margin: 1rem 0; }
.biz-check-summary li {
  padding: .45rem 0 .45rem 1.25rem; position: relative; font-size: .875rem; border-bottom: 1px solid #f1f5f9;
}
.biz-check-summary li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.biz-pricing-tabs__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.biz-pricing-tabs__btn {
  padding: .5rem 1rem; border: 1px solid var(--border); border-radius: .5rem; background: #fff;
  font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--text-muted);
}
.biz-pricing-tabs__btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.biz-pricing-tabs__panel { display: none; }
.biz-pricing-tabs__panel.is-active { display: block; }
.biz-pricing-tabs__panel h3 { font-size: 1.0625rem !important; margin-bottom: .5rem; }
.biz-pricing-tabs__panel ul { margin: .75rem 0; }

/* ========== pricing.html 商務報價頁 ========== */
.pricing-hero--pro {
  text-align: left;
  padding: 1.75rem 1.5rem 0;
  background: linear-gradient(135deg, #064e3b 0%, #047857 45%, #059669 100%);
}
.pricing-hero__inner { position: relative; z-index: 1; max-width: 640px; }
.pricing-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem;
}
.pricing-hero--pro h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  text-align: left; margin-bottom: .5rem;
}
.pricing-hero__lead {
  font-size: .9rem !important; opacity: .92; text-align: left;
  max-width: none; margin-bottom: 1rem !important; line-height: 1.6;
}
.pricing-hero__actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 1.25rem; }
.pricing-hero__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: .5rem; font-size: .8125rem; font-weight: 700;
}
.pricing-hero__btn--primary { background: #fff; color: #065f46; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.pricing-hero__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.pricing-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.18); margin-top: .5rem;
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .pricing-metrics { grid-template-columns: repeat(4, 1fr); } }
.pricing-metric {
  padding: .875rem 1rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.pricing-metric:last-child { border-right: none; }
.pricing-metric__val { display: block; font-size: 1.125rem; font-weight: 800; color: #fff; line-height: 1.2; }
.pricing-metric__lbl { display: block; font-size: .6875rem; color: rgba(255,255,255,.78); margin-top: .2rem; }

.pricing-intro__text { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: .875rem; }
.pricing-intro__tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.pricing-intro__tags span { font-size: .8125rem; font-weight: 600; color: var(--primary-darker); }
.pricing-intro__tags i { color: var(--primary); margin-right: .25rem; }

.pricing-plans { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .pricing-plans { grid-template-columns: repeat(3, 1fr); } }
.pricing-plan {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; overflow: hidden; display: flex; flex-direction: column;
}
.pricing-plan--featured { border-color: var(--primary); box-shadow: 0 8px 24px rgba(16,185,129,.12); }
.pricing-plan__head {
  padding: 1rem 1.125rem; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.pricing-plan--featured .pricing-plan__head { background: linear-gradient(180deg, #ecfdf5, #f0fdf4); }
.pricing-plan__tag {
  display: inline-block; font-size: .625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); margin-bottom: .35rem;
}
.pricing-plan--featured .pricing-plan__tag { color: var(--primary-dark); }
.pricing-plan__head h3 { font-size: 1rem !important; margin-bottom: .15rem; }
.pricing-plan__sub { font-size: .75rem; color: var(--text-muted); margin: 0; }
.pricing-plan__price {
  padding: .875rem 1.125rem; border-bottom: 1px solid var(--border);
}
.pricing-plan__amount { font-size: 1.75rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.pricing-plan--featured .pricing-plan__amount { color: var(--primary-darker); }
.pricing-plan__unit { font-size: .8125rem; color: var(--text-muted); }
.pricing-plan__note { font-size: .6875rem; color: var(--text-muted); margin-top: .25rem; }
.pricing-plan__body { padding: 1rem 1.125rem; flex: 1; }
.pricing-plan__body ul { list-style: none; padding: 0; margin: 0; }
.pricing-plan__body li {
  font-size: .8125rem; color: var(--text-muted); padding: .35rem 0 .35rem 1.125rem;
  position: relative; border-bottom: 1px solid #f1f5f9;
}
.pricing-plan__body li:last-child { border-bottom: none; }
.pricing-plan__body li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-size: .75rem;
}
.pricing-plan__foot { padding: 0 1.125rem 1.125rem; }
.pricing-plan__link {
  display: block; text-align: center; padding: .55rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 700; border: 1px solid var(--border); color: var(--text-main);
}
.pricing-plan__link--primary { background: var(--primary); color: #fff; border-color: var(--primary); }

.pricing-section-lead { font-size: .8125rem; color: var(--text-muted); margin: -.25rem 0 1rem; line-height: 1.6; }
.pricing-table-note { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.55; }
.pricing-table-note strong { color: var(--text-main); }

.pricing-scenarios { display: grid; grid-template-columns: 1fr; gap: .875rem; }
@media (min-width: 768px) { .pricing-scenarios { grid-template-columns: repeat(3, 1fr); } }
.pricing-scenario {
  padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fafbfc;
}
.pricing-scenario__title { font-size: .875rem; font-weight: 700; color: var(--primary-darker); margin-bottom: .35rem; }
.pricing-scenario__budget { font-size: 1.125rem; font-weight: 800; color: var(--text-main); margin-bottom: .5rem; }
.pricing-scenario p { font-size: .8125rem; margin: 0; line-height: 1.55; }

.biz-pricing-tabs__panel .pricing-deliverables {
  display: grid; grid-template-columns: 1fr; gap: .625rem; margin: 1rem 0;
}
@media (min-width: 640px) { .biz-pricing-tabs__panel .pricing-deliverables { grid-template-columns: repeat(2, 1fr); } }
.pricing-deliverable {
  padding: .625rem .75rem; background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .8125rem;
}
.pricing-deliverable strong { display: block; color: var(--text-main); margin-bottom: .15rem; }

.pricing-pay-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .pricing-pay-grid { grid-template-columns: repeat(2, 1fr); } }
.pricing-pay-item {
  padding: .875rem 1rem; border-left: 3px solid var(--primary);
  background: #f8fafc; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pricing-pay-item h4 { font-size: .875rem; font-weight: 700; margin-bottom: .25rem; color: var(--text-main); }
.pricing-pay-item p { font-size: .8125rem; margin: 0; color: var(--text-muted); line-height: 1.55; }

.biz-faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; overflow: hidden; margin-bottom: .625rem;
}
.biz-faq-item__q {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .875rem 1rem; cursor: pointer; font-size: .875rem; font-weight: 600;
  color: var(--text-main); transition: background .15s;
}
.biz-faq-item__q:hover { background: #f8fafc; }
.biz-faq-item__q i { color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.biz-faq-item.is-open .biz-faq-item__q i { transform: rotate(180deg); }
.biz-faq-item__a {
  display: none; padding: 0 1rem 1rem; font-size: .8125rem; color: var(--text-muted); line-height: 1.65;
}
.biz-faq-item.is-open .biz-faq-item__a { display: block; }
.biz-faq-item__a ul, .biz-faq-item__a ol { margin: .5rem 0 0 1rem; }
.biz-faq-item__a li { margin-bottom: .25rem; }

.pricing-decision { background: #f8fafc; border: 1px solid var(--border); }
.pricing-decision__grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .pricing-decision__grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-decision__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem;
}
.pricing-decision__card h4 { font-size: .875rem; font-weight: 700; color: var(--primary-darker); margin-bottom: .5rem; }
.pricing-decision__card p { font-size: .8125rem; margin: 0 0 .35rem; color: var(--text-muted); line-height: 1.55; }
.pricing-decision__result {
  margin-top: .75rem; padding: .625rem .75rem; background: #ecfdf5;
  border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 600; color: #065f46;
}

/* 模式詳情 — 靜態商務文件式 */
.pricing-modes-detail__intro { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.pricing-modes-detail__intro h2 { margin-bottom: .35rem; }
.pricing-modes-detail__toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
  margin-top: .875rem; font-size: .8125rem;
}
.pricing-modes-detail__toc-link {
  color: var(--primary-darker); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pricing-modes-detail__toc-sep { color: #cbd5e1; user-select: none; }

.pricing-mode-spec {
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
.pricing-mode-spec:last-child { border-bottom: none; padding-bottom: 0; }
.pricing-mode-spec--alt { background: linear-gradient(180deg, #fafbfc 0%, transparent 100%); margin: 0 -2rem; padding-left: 2rem; padding-right: 2rem; }

.pricing-mode-spec__head { margin-bottom: 1rem; }
.pricing-mode-spec__title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .625rem; margin-bottom: .25rem; }
.pricing-mode-spec__title-row h3 { font-size: 1.125rem !important; margin: 0; color: var(--text-main); }
.pricing-mode-spec__subtitle { font-size: .8125rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.pricing-mode-spec__badge {
  display: inline-block; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: .25rem; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.pricing-mode-spec__badge--rec { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.pricing-mode-spec__badge--flex { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.pricing-mode-spec__meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem; margin-bottom: 1rem;
}
@media (min-width: 640px) { .pricing-mode-spec__meta { grid-template-columns: repeat(4, 1fr); } }
.pricing-mode-spec__meta-item {
  padding: .625rem .75rem; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.pricing-mode-spec__meta-label {
  display: block; font-size: .6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: .2rem;
}
.pricing-mode-spec__meta-value { display: block; font-size: .8125rem; font-weight: 700; color: var(--text-main); line-height: 1.35; }

.pricing-mode-spec__fit {
  font-size: .8125rem; color: var(--text-muted); line-height: 1.65;
  margin: 0 0 1.125rem; padding: .75rem 1rem; background: #fff; border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pricing-mode-spec__section-title {
  font-size: .8125rem !important; font-weight: 700; color: var(--text-main);
  text-transform: uppercase; letter-spacing: .04em; margin: 1.25rem 0 .625rem;
}
.pricing-mode-spec__table { margin-bottom: .5rem; }
.pricing-mode-spec__table th { font-size: .75rem; }
.pricing-mode-spec__table td { font-size: .8125rem; vertical-align: top; }
.pricing-mode-spec__terms {
  margin-top: 1rem; padding: .75rem 1rem; background: #f8fafc;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .8125rem; color: var(--text-muted); line-height: 1.65;
}
.pricing-mode-spec__terms p { margin: 0; }

/* FAQ 靜態列表 */
.pricing-faq-list { margin: 0; padding: 0; }
.pricing-faq-list__item {
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.pricing-faq-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.pricing-faq-list__item dt {
  font-size: .875rem; font-weight: 700; color: var(--text-main); margin-bottom: .5rem;
}
.pricing-faq-list__item dd {
  margin: 0; font-size: .8125rem; color: var(--text-muted); line-height: 1.65;
}
.pricing-faq-list__item dd p { margin: 0 0 .5rem; }
.pricing-faq-list__item dd p:last-child { margin-bottom: 0; }
.pricing-faq-list__item dd ul, .pricing-faq-list__item dd ol { margin: .35rem 0 0 1.125rem; }
.pricing-faq-list__item dd li { margin-bottom: .2rem; }
