/* ==========================================================================
   SMARTSAIL CONSULTANCY LIMITED — 網站樣式
   --------------------------------------------------------------------------
   【編輯指南】
   1. 主要顏色集中在 :root 變數，改一處全站生效。
   2. 背景圖片在 .hero-photo（Hero）與 .section-dark / .footer（深色板塊），
      圖片放在 images/ 資料夾，換圖只需替換同名檔案或改 url()。
   3. 板塊明暗節奏：Hero 深色照片 → 服務總覽 白 → 服務詳情 深色照片
      → 關於我們 淺灰 → 聯絡我們 白 → 頁腳 深色。
   ========================================================================== */

:root {
  --navy: #0a2a4a;
  --navy-dark: #061d35;
  --navy-deep: #041428;
  --gold: #c8a24b;
  --gold-light: #e0bf74;
  --gold-dark: #a98636;
  --ink: #1f2a37;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --line: #e3e9ef;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(10, 42, 74, 0.06);
  --shadow-hover: 0 8px 24px rgba(10, 42, 74, 0.12);
  --shadow-dark: 0 18px 46px rgba(0, 0, 0, 0.28);
  --nav-height: 72px;
  /* 字體：中文黑體優先（貼近紙本閱讀，避免製式感）
     macOS → 蘋方 / Windows → 微軟雅黑·正黑 / Android·Linux → 思源黑體
     英文與數字交給 Helvetica Neue / Segoe UI；零下載、開啟即顯示 */
  --font-sans: "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei",
               "Noto Sans TC", "Noto Sans CJK TC", system-ui, -apple-system, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-sans);
  --font-head: var(--font-sans);
}

/* 繁體中文：改用飽滿柔和的無襯線黑體（繁體字形） */
html[lang="zh-Hant"] {
  --font-body: var(--font-sans);
  --font-head: var(--font-sans);
}
/* 簡體中文：改用筆畫更飽滿、觀感柔和的 Noto Sans SC */
html[lang="zh-Hans"] {
  --font-body: var(--font-sans);
  --font-head: var(--font-sans);
}

/* 中文（繁/簡）共用：回歸自然字重與行距，貼近紙本閱讀、去除製式感 */
html[lang="zh-Hant"] body,
html[lang="zh-Hans"] body { font-weight: 400; letter-spacing: .01em; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] h4,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] h4 { font-weight: 700; letter-spacing: .01em; }
html[lang="zh-Hant"] .hero-title,
html[lang="zh-Hans"] .hero-title { font-weight: 600; }
html[lang="zh-Hant"] .nav-link, html[lang="zh-Hant"] .btn,
html[lang="zh-Hans"] .nav-link, html[lang="zh-Hans"] .btn { font-weight: 600; letter-spacing: .01em; }
/* 品牌字與數字保持原有襯線造型，不隨語言變動 */
html[lang="zh-Hant"] .logo, html[lang="zh-Hant"] .footer-brand, html[lang="zh-Hant"] .stat-num,
html[lang="zh-Hans"] .logo, html[lang="zh-Hans"] .footer-brand, html[lang="zh-Hans"] .stat-num { font-family: "Noto Serif TC", Georgia, "Times New Roman", serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.8;
  /* 不使用 antialiased：該屬性會讓 macOS 上的中文字筆畫變細 */
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.35; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 滾動淡入（放在元件規則之前，避免覆蓋 hover） ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
/* 沒有 JavaScript 時內容仍要正常顯示，避免整頁空白 */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------------- 導航欄 ---------------- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: var(--nav-height); }
.logo { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.logo-dot { color: var(--gold); }
.logo-sub { font-weight: 400; font-size: 17px; margin-left: 2px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 3px; margin-left: 2px; flex: 1 1 auto; min-width: 0; overflow: visible; }
.nav-link { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 500; color: var(--ink); padding: 8px 9px; border-radius: 6px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--navy); background: var(--bg-alt); }
.nav-link.active { color: var(--gold-dark); background: rgba(200,162,75,.12); }

/* 導航：帶子項的入口（牌照備考 → IIQE／SFC） */
.nav-drop { position: relative; flex: 0 0 auto; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 4px; overflow: visible; text-overflow: clip; }
.nav-mini { display: none; }
.nav-caret { width: 11px; height: 11px; flex: 0 0 auto; opacity: .5; transition: transform .22s ease; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); opacity: .8; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: -6px; min-width: 272px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 42px rgba(6,29,53,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .22s ease, visibility .2s; z-index: 90;
}
.nav-drop-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-item { display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; transition: background .18s; }
.drop-item:hover, .drop-item:focus-visible { background: var(--bg-alt); }
.drop-title { display: block; font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.drop-desc { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }

/* 「即將推出」小標（CPT 課程籌備中） */
.nav-link-soon { display: inline-flex; align-items: center; gap: 6px; overflow: visible; text-overflow: clip; }
.nav-soon {
  font-size: 9.5px; font-weight: 700; letter-spacing: .2px; line-height: 1.5;
  color: #8a6a16; background: rgba(200,162,75,.16); border: 1px solid rgba(200,162,75,.34);
  border-radius: 100px; padding: 0 6px; white-space: nowrap;
}
.mobile-link-child { padding-left: 18px; font-size: 13.5px; color: var(--muted); }
/* 防舊緩存腳本仍注入已移除業務：官網只保留 eCPD 與 AisurePass */
#navLinks a[href="#s-talent"], #mobileMenu a[href="#s-talent"],
#navLinks a[href="#s-brokerage-system"], #mobileMenu a[href="#s-brokerage-system"],
#navLinks a[href="#s-licence"], #mobileMenu a[href="#s-licence"],
#s-talent, #s-brokerage-system, #s-licence { display: none !important; }
.nav-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* 語言切換：分段膠囊（圖示 + 繁／EN），與參考站一致 */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-shrink: 0; }
.lang-globe { width: 15px; height: 15px; margin: 0 4px 0 5px; color: var(--gold-dark); flex: 0 0 auto; }
.lang-seg { display: flex; gap: 2px; }
.lang-switch .lang-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.lang-switch .lang-btn:hover { color: var(--navy); background: var(--bg-alt); }
.lang-switch .lang-btn.active { background: var(--navy); color: #fff; }
/* 登入（純文字連結）與主要行動按鈕 */
.nav-signin { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; padding: 4px 2px; }
.nav-signin:hover { color: var(--gold-dark); }
.nav-start { white-space: nowrap; flex-shrink: 0; padding: 9px 18px; font-size: 14px; box-shadow: 0 4px 14px rgba(200,162,75,.22); }
.nav-start:hover { transform: translateY(-1px); }
.lang-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; padding: 4px 8px; border-radius: 999px; transition: all .2s; white-space: nowrap; }
.nav-cta { white-space: nowrap; flex-shrink: 0; }
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* 下拉菜單最多佔滿剩餘視口高度，橫向手機也能滑到底部所有選項 */
.mobile-menu {
  display: none; flex-direction: column; padding: 12px 24px 20px;
  border-top: 1px solid var(--line); background: #fff;
/* 預留頂部聯絡欄(約 50px)與導航欄高度，確保頁面在頂部時選單也不會超出視口 */
  max-height: calc(100vh - var(--nav-height) - 56px);
  max-height: calc(100dvh - var(--nav-height) - 56px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
body.menu-open { overflow: hidden; }
.mobile-link { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-lang-row { display: flex; gap: 8px; margin: 14px 0 10px; }
.mobile-contact { text-align: center; }
.mobile-actions { display: flex; gap: 10px; margin-top: 14px; }
.mobile-actions .btn { flex: 1 1 0; }

/* ---------------- 按鈕 ---------------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all .25s; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); box-shadow: 0 8px 24px rgba(200,162,75,.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,162,75,.42); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ==========================================================================
   HERO — 照片底層 + 深色遮罩 + 網格 + 金色光暈
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 60px;
  text-align: center;
  color: #fff;
  background: var(--navy-deep);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -4;
  background: url("images/hero-bg.jpg") center 44% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(112deg, rgba(4,18,34,.91) 0%, rgba(8,34,60,.72) 42%, rgba(4,18,34,.86) 100%),
    linear-gradient(to bottom, rgba(4,18,34,.45) 0%, transparent 28%, transparent 62%, var(--navy-dark) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 12%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 12%, transparent 78%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(200,162,75,.15), transparent 52%),
    radial-gradient(circle at 88% 12%, rgba(74,144,200,.12), transparent 38%);
}
.hero-inner { position: relative; z-index: 1; }

.hero-kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; letter-spacing: 3px; color: var(--gold-light); margin-bottom: 18px; }
.kicker-line { display: block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-title { font-size: 42px; font-weight: 500; color: #fff; max-width: 900px; margin: 0 auto 22px; text-shadow: 0 4px 26px rgba(0,0,0,.45); }
.hero-title em { font-style: normal; color: var(--gold-light); position: relative; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 數字亮點（收進 Hero，深色背景下更安靜） ---------------- */
.hero-stats {
  max-width: 780px; margin: 52px auto 0; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stats .stat-item { text-align: center; padding: 4px 18px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stats .stat-item:last-child { border-right: none; }
.hero-stats .stat-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,.62); letter-spacing: 1px; margin-top: 6px; }

/* ==========================================================================
   板塊明暗節奏
   ========================================================================== */
.section { padding: 100px 0; position: relative; }
.section-light { background: radial-gradient(circle at 8% 4%, rgba(10,42,74,.045), transparent 42%), #fff; }
.section-soft { background: var(--bg-alt); }
.section-dark {
  color: #fff;
  background-color: var(--navy-deep);
  background-image: linear-gradient(rgba(4,18,34,.87), rgba(4,18,34,.91)), url("images/about-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 12%, rgba(200,162,75,.10), transparent 40%);
}
.section-dark > .container { position: relative; }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.68); }

.section-title { text-align: center; font-size: 33px; font-weight: 700; margin-bottom: 14px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); margin: 16px auto 0; border-radius: 2px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 15.5px; }

/* ---------------- 服務卡片（淺色板塊，桌面 5 項一行） ---------------- */
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 16px 20px; display: flex; flex-direction: column; overflow: hidden;
  transition: opacity .75s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(200,162,75,.6); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: rgba(200,162,75,.6); letter-spacing: 1px; }
.service-icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(10,42,74,.06); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: background .3s, color .3s, transform .3s; }
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: var(--navy); color: var(--gold-light); transform: rotate(-6deg); }
.service-name { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
.service-card-desc { font-size: 12.5px; line-height: 1.7; color: var(--muted); flex: 1; }
.service-more { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }
.service-more svg { width: 15px; height: 15px; transition: transform .25s; }
.service-card:hover .service-more svg { transform: translateX(5px); }

/* ---------------- 首頁產品展示（横向卡 + 設備預覽；原創版式） ---------------- */
.showcase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.showcase-hint { font-size: 12.5px; color: var(--muted); }
.showcase-arrows { display: flex; gap: 8px; }
.sc-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 21px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sc-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.showcase-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.showcase-card {
  flex: 0 0 calc((100% - 60px) / 4); min-width: 300px; scroll-snap-align: start;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 20px; text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s, opacity .75s ease;
}
/* 卡片頭：序號 + 標籤，序號同時表達「四條路徑」 */
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-width: 0; height: 24px; }
.sc-index { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--gold-dark); letter-spacing: .8px; white-space: nowrap; flex: 0 0 auto; }
.sc-index i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.showcase-card:hover { transform: translateY(-3px); border-color: rgba(200,162,75,.5); }
.sc-tags { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; overflow: hidden; }
.showcase-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: var(--gold-dark); background: rgba(200,162,75,.1); border-radius: 100px; padding: 4px 11px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-soon { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: #fff; background: var(--navy); border-radius: 100px; padding: 4px 11px; white-space: nowrap; flex: 0 0 auto; }
.showcase-title { font-size: 22px; line-height: 1.28; letter-spacing: -.3px; color: var(--navy-deep); margin: 0 0 6px; }
.showcase-title a { color: inherit; text-decoration: none; }
.showcase-sub { font-size: 13.5px; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
/* 卡片要點：改為一條細金線引導的純文字，不再用圓點 */
.sc-facts { list-style: none; margin: 18px 0 20px; padding: 2px 0 2px 14px; border-left: 2px solid rgba(200,162,75,.32); display: grid; gap: 6px; min-width: 0; }
.sc-facts li { font-size: 12.8px; line-height: 1.65; color: var(--muted); min-width: 0; overflow-wrap: break-word; word-break: break-word; }
/* ---------------- 服務詳情（深色玻璃卡片） ---------------- */
.service-detail {
  display: grid; grid-template-columns: 180px 1fr; gap: 42px; align-items: start;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  border-left: 3px solid rgba(200,162,75,.55);
  border-radius: var(--radius);
  padding: 38px 44px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
  scroll-margin-top: 120px;
  transition: opacity .75s ease, transform .45s ease, background .3s, border-color .3s, box-shadow .3s;
}
.service-detail:hover { background: rgba(255,255,255,.085); border-left-color: var(--gold-light); box-shadow: var(--shadow-dark); }
.service-detail.flip { grid-template-columns: 1fr 180px; border-left: 1px solid rgba(255,255,255,.11); border-right: 3px solid rgba(200,162,75,.55); }
.service-detail.flip .detail-visual { order: 2; }
.service-detail.flip .detail-body { order: 1; }
.service-detail.flip:hover { border-right-color: var(--gold-light); }

.detail-visual { display: flex; justify-content: center; padding-top: 6px; }
.detail-icon { width: 104px; height: 104px; border-radius: 50%; background: rgba(200,162,75,.11); border: 1px solid rgba(200,162,75,.38); color: var(--gold-light); display: flex; align-items: center; justify-content: center; transition: transform .35s, background .35s; }
.service-detail:hover .detail-icon { transform: scale(1.06); background: rgba(200,162,75,.18); }
.detail-icon svg { width: 46px; height: 46px; }
.detail-num { font-size: 14px; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; }
.detail-title { font-size: 24px; margin: 6px 0 12px; color: #fff; }
.detail-intro { color: rgba(255,255,255,.75); font-size: 15.5px; margin-bottom: 20px; max-width: 640px; }
/* 三點賣點膠囊：標題下先給結論（官方認可 / 即時發證 / 時數入帳） */
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.detail-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 26px; border-radius: 999px; background: rgba(200,162,75,.14); border: 1px solid rgba(200,162,75,.48); color: var(--gold-light); font-size: 12.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.detail-chip::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(200,162,75,.16); }
.detail-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.detail-bullets li { position: relative; padding-left: 22px; font-size: 14.5px; color: rgba(255,255,255,.86); }
.detail-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
/* 詳情區課程名連結（如 eCPD 四大主題，點擊進入介紹頁對應章節） */
.detail-bullets li a { color: var(--gold-light); border-bottom: 1px dashed rgba(224,191,116,.6); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.detail-bullets li a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------------- 關於我們（淺灰） ---------------- */
.about-text { max-width: 820px; margin: 0 auto 50px; text-align: center; color: var(--muted); font-size: 16px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item { background: #fff; border-radius: var(--radius); padding: 32px 28px; text-align: center; border-top: 3px solid var(--gold); box-shadow: var(--shadow); transition: opacity .75s ease, transform .45s ease, box-shadow .3s; }
.value-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.value-item h4 { font-size: 19px; margin-bottom: 10px; }
.value-item p { font-size: 14.5px; color: var(--muted); }

/* ---------------- 聯絡我們（頁面收尾區塊） ---------------- */
.contact { background: radial-gradient(circle at 50% 0%, rgba(200,162,75,.09), transparent 55%), #fff; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 24px 32px; text-align: center; box-shadow: var(--shadow); transition: opacity .75s ease, transform .45s ease, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; align-items: center; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(200,162,75,.45); }
.contact-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: rgba(200,162,75,.14); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 20px; word-break: break-all; }
.contact-card .btn { margin-top: auto; }
.contact-cta { max-width: 1040px; margin: 26px auto 0; padding: 26px 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff;
  background: linear-gradient(115deg, var(--navy-deep) 0%, #16304d 62%, #1d3f61 100%);
  box-shadow: 0 18px 40px rgba(6,26,46,.18); position: relative; overflow: hidden; }
.contact-cta::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200,162,75,.28), transparent 68%); pointer-events: none; }
.contact-cta p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 660px; position: relative; z-index: 1; }
.contact-cta .btn { flex-shrink: 0; position: relative; z-index: 1; }

/* 複製成功提示 */
.copy-toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px); background: rgba(6,26,46,.94); color: #fff; font-size: 14px; padding: 11px 20px; border-radius: 100px; box-shadow: 0 10px 26px rgba(6,26,46,.28); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2000; border: 1px solid rgba(200,162,75,.4); }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 頁腳（深色 + 照片） ---------------- */
.footer {
  position: relative; color: rgba(255,255,255,.75); padding: 46px 0 36px; font-size: 14px;
  background-color: var(--navy-deep);
  background-image: linear-gradient(rgba(4,18,34,.94), rgba(4,18,34,.96)), url("images/about-bg.jpg");
  background-size: cover; background-position: center 70%;
  border-top: 2px solid var(--gold);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; }
.footer-brand { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: #fff; }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.62); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   響應式斷點
   --------------------------------------------------------------------------
   ≥1280      桌面：4 欄卡片、完整 8 項菜單 + 聯絡按鈕
   1024–1180  平板橫向／小桌面：3 欄卡片、完整菜單（頂部聯絡按鈕讓位）
   641–1023   平板直向／大手機：2 欄卡片、漢堡菜單
   ≤640       手機：1 欄卡片、漢堡菜單
   ≤380       窄屏手機：壓縮導航尺寸，避免橫向溢出
   增刪服務或改文案請動 content.js；此處只管排版。
   ========================================================================== */

/* 中小桌面／平板橫向：保留完整 8 項菜單，僅讓頂部聯絡按鈕讓位 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-cta { display: none; }
}

/* ≤1180：服務卡片改 3 欄（3+2，不再落單）、詳情圖示欄收窄 */
@media (max-width: 1180px) {
  .showcase-card { flex-basis: calc((100% - 20px) / 2); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .service-card { padding: 28px 22px 22px; }
  .service-num { top: 16px; right: 18px; font-size: 13px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .service-icon svg { width: 24px; height: 24px; }
  .service-name { font-size: 17px; }
  .service-card-desc { font-size: 13.5px; }
  .service-more { margin-top: 16px; font-size: 13px; }
  .service-detail, .service-detail.flip { grid-template-columns: 150px 1fr; }
  .service-detail.flip { grid-template-columns: 1fr 150px; }
}

/* ≤1023：改用漢堡菜單 */
@media (max-width: 1023px) {
  .nav-links, .nav-signin { display: none; }
  .hamburger { display: flex; }
}
/* 1024–1199：縮短牌照備考標籤、收緊字距，避免出現省略號 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links { gap: 0; }
  .nav-link { font-size: 12.4px; padding: 8px 7px; }
  .nav-full { display: none; }
  .nav-mini { display: inline; }
  .nav-caret { width: 10px; height: 10px; }
}
@media (max-width: 560px) {
  .nav-start { display: none; }
  .logo { font-size: 19px; }
}

/* ≤900：Hero 與板塊留白縮減 */
@media (max-width: 900px) {
  .showcase-card { flex-basis: 78%; }
  .hero { padding: 64px 0 56px; }
  .hero-photo { animation: none; }
  .hero-title { font-size: 32px; }
  .hero-stats { margin-top: 44px; padding-top: 28px; }
  .hero-kicker { font-size: 12px; gap: 10px; letter-spacing: 2px; }
  .kicker-line { width: 20px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 641–900：詳情改單欄，但寬度仍足夠保留兩欄要點 */
@media (min-width: 641px) and (max-width: 900px) {
  .service-detail, .service-detail.flip {
    grid-template-columns: 1fr; padding: 28px 30px; gap: 18px;
    border-right: none; border-left: 3px solid rgba(200,162,75,.55);
  }
  .service-detail.flip .detail-visual { order: 0; }
  .service-detail.flip .detail-body { order: 1; }
  .detail-visual { justify-content: flex-start; }
  .detail-icon { width: 76px; height: 76px; }
  .detail-icon svg { width: 34px; height: 34px; }
  .detail-bullets { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); justify-self: center; width: 100%; }
  .contact-cta { flex-direction: column; text-align: center; padding: 24px 22px; }
  .contact-cta p { max-width: none; }
}

/* ≤640：手機全面單欄；頂部兩行顯示電話與電郵，放大觸摸目標 */
@media (max-width: 640px) {
  .showcase-card { flex-basis: 86%; padding: 18px 16px 16px; }
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: 28px; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-stats { margin-top: 34px; padding-top: 22px; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-stats .stat-item { padding: 4px 6px; }
  .hero-stats .stat-num { font-size: 24px; }
  .hero-stats .stat-label { font-size: 11.5px; letter-spacing: 0; margin-top: 5px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 30px 24px 24px; }
  .service-num { top: 16px; right: 18px; font-size: 13px; }
  .service-icon { width: 52px; height: 52px; margin-bottom: 18px; }
  .service-icon svg { width: 26px; height: 26px; }
  .service-name { font-size: 18px; }
  .service-card-desc { font-size: 14px; }
  .service-more { margin-top: 16px; font-size: 13.5px; }
  .service-detail, .service-detail.flip {
    grid-template-columns: 1fr; padding: 26px 22px; gap: 18px;
    border-right: none; border-left: 3px solid rgba(200,162,75,.55);
  }
  .service-detail.flip .detail-visual { order: 0; }
  .service-detail.flip .detail-body { order: 1; }
  .detail-visual { justify-content: flex-start; }
  .detail-icon { width: 68px; height: 68px; }
  .detail-icon svg { width: 30px; height: 30px; }
  .detail-bullets { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; gap: 16px; }
  .contact-card, .contact-card:last-child { max-width: none; grid-column: auto; padding: 30px 22px 26px; }
  .contact-cta { flex-direction: column; align-items: stretch; margin-top: 18px; padding: 22px 20px; gap: 14px; text-align: center; }
  .contact-cta p { font-size: 14.5px; }
  .contact-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .lang-btn { padding: 6px 9px; font-size: 12px; }
  .mobile-menu { padding: 10px 20px 18px; }
}

/* ≤380：窄屏手機，壓縮導航確保 Logo／語言／漢堡都放得下 */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .logo { font-size: 18px; }
  .logo-sub { font-size: 14px; }
  .nav-inner { gap: 6px; }
  .nav-right { gap: 5px; }
  .lang-btn { padding: 5px 6px; font-size: 11px; }
  .hamburger { padding: 4px; }
  .hamburger span { width: 20px; }
  .hero-title { font-size: 27px; }
  .hero-kicker { letter-spacing: 1.5px; }
}

@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* SEO: 頁腳公司簡介（靜態可索引文字） */
.footer-desc { max-width: 760px; margin: 0 auto; font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,.62); }

/* ==========================================================================
   AisurePass — 第 3 項服務（Aisure 旗下產品，點擊跳轉至 AisurePass 系統）
   ========================================================================== */

/* 導航：產品入口以金色標示，帶外鏈箭頭 */
.nav-link-product { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-dark); font-weight: 700; background: rgba(200,162,75,.10); }
.nav-link-product:hover { color: var(--navy); background: rgba(200,162,75,.22); }
.nav-link-product svg { width: 12px; height: 12px; flex: 0 0 auto; opacity: .8; }
.mobile-link-product { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--gold-dark); font-weight: 700; }
.mobile-link-product svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* 服務總覽：產品卡片（金色頂條常駐 + 淺金漸層） */
.service-card-ext { background: linear-gradient(180deg, rgba(200,162,75,.09), #fff 62%); border-color: rgba(200,162,75,.45); }
.service-card-ext::before { transform: scaleX(1); }
.service-card-ext .service-icon { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: var(--gold-light); }
.service-card-ext .service-num { color: var(--gold-dark); }

/* 服務詳情：AisurePass 詳情板塊 */
.service-detail.detail-ext { background: linear-gradient(125deg, rgba(200,162,75,.14), rgba(255,255,255,.05) 58%); border-left-color: var(--gold); }
.detail-badge { display: inline-block; margin-left: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(200,162,75,.18); border: 1px solid rgba(200,162,75,.5); color: var(--gold-light); font-size: 12px; font-weight: 600; letter-spacing: .5px; vertical-align: 2px; }
.detail-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.detail-cta .btn { display: inline-flex; align-items: center; gap: 9px; }
.detail-cta .btn svg { width: 16px; height: 16px; }
.detail-cta-sub { font-size: 13.5px; color: rgba(255,255,255,.62); }

@media (max-width: 768px) {
  .detail-badge { margin-left: 8px; font-size: 11.5px; padding: 3px 10px; }
  .detail-chips { gap: 7px; margin-bottom: 14px; }
  .detail-chip { font-size: 11.5px; padding: 5px 11px 5px 23px; }
  .detail-chip::before { left: 10px; width: 5px; height: 5px; margin-top: -2.5px; }
  .detail-cta { margin-top: 22px; gap: 12px; }
  .detail-cta .btn { width: 100%; justify-content: center; }
  .detail-cta-sub { width: 100%; color: rgba(255,255,255,.7); }
}

/* ==========================================================================
   系統介面預覽（主頁詳情區）— 純 HTML/CSS 繪製，讓訪客無需登入即可看到系統樣貌
   ========================================================================== */
.detail-preview { grid-column: 1 / -1; order: 3; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.dp-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--gold-light); margin-bottom: 14px; }
.dp-label svg { width: 16px; height: 16px; flex: 0 0 auto; }
.dp-note { text-align: center; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 14px; }

/* 通用窗口外框 */
.pv { background: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.32); color: var(--ink); font-family: var(--font-sans); max-width: 620px; margin: 0 auto; }
.pv-bar { display: flex; align-items: center; gap: 16px; padding: 11px 18px; background: var(--navy-deep); color: #fff; }
.pv-brand { font-weight: 800; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.pv-brand b { color: var(--gold-light); }
.pv-nav { display: flex; gap: 16px; }
.pv-nav em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.6); white-space: nowrap; }
.pv-nav em.on { color: #fff; font-weight: 700; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.pv-avatar { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.pv-timer { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.pv-app { font-size: 11px; font-weight: 700; color: var(--gold-light); border: 1px solid rgba(224,191,116,.5); border-radius: 100px; padding: 3px 9px; white-space: nowrap; }
.pv-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--gold-dark); }
.pv-track { height: 5px; border-radius: 100px; background: #e9eef3; overflow: hidden; }
.pv-track i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pv-track.big { height: 6px; margin: 4px 0 20px; }

/* --- eCPD 課程中心 --- */
.pv-cpd-body { padding: 24px 26px 26px; }
.pv-cpd-hd { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pv-cpd-hd h4 { font-size: 20px; margin: 4px 0 5px; color: var(--navy); }
.pv-cpd-hd p { font-size: 12.5px; color: var(--muted); }
.pv-ringbox { text-align: center; flex: 0 0 auto; }
.pv-ring { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #e9eef3 0); position: relative; }
.pv-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.pv-ring span { position: relative; font-size: 18px; font-weight: 800; color: var(--navy); }
.pv-ring small { font-size: 10px; }
.pv-ringbox > small { font-size: 10.5px; color: var(--muted); }
.pv-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pv-course { border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; background: #fff; }
.pv-course-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.pv-ci { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.pv-ci.gold { background: rgba(200,162,75,.16); color: var(--gold-dark); }
.pv-ci.blue { background: rgba(10,42,74,.09); color: var(--navy); }
.pv-tag { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--gold-dark); background: rgba(200,162,75,.12); border-radius: 100px; padding: 3px 8px; }
.pv-course > b { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.pv-course > small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 11px; }
.pv-cf { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.pv-cf b { font-size: 11px; }
.pv-cf b.ok { color: #2f8f5b; }
.pv-cf b.mid { color: var(--gold-dark); }
.pv-cf b.mute { color: var(--muted); }

/* --- AisurePass 做題介面 --- */
.pv-sp-body { padding: 20px 26px 22px; }
.pv-sp-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-paper { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.pv-qcount { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pv-qcount b { color: var(--gold-dark); font-size: 13px; }
.pv-question { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }
.pv-qno { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 4px; padding: 2px 6px; margin-right: 7px; vertical-align: 1px; }
.pv-options { display: grid; gap: 8px; }
.pv-opt { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; font-size: 12.5px; color: var(--ink); }
.pv-opt > span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.pv-opt.right { border-color: #2f8f5b; background: rgba(47,143,91,.06); color: #236c47; font-weight: 600; }
.pv-opt.right > span { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.pv-opt.right > b { margin-left: auto; color: #2f8f5b; }
.pv-feedback { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; border-radius: 8px; padding: 11px 13px; background: rgba(47,143,91,.07); border-left: 3px solid #2f8f5b; }
.pv-feedback b { font-size: 11.5px; color: #236c47; white-space: nowrap; }
.pv-feedback span { font-size: 11px; line-height: 1.55; color: var(--muted); }
.pv-sp-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pv-mini { font-size: 10.5px; color: var(--muted); }
.pv-next { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 7px 14px; }

/* 平板：eCPD 環與標題堆疊 */
@media (max-width: 900px) {
  .pv-cpd-hd { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pv-ringbox { display: flex; align-items: center; gap: 10px; }
  .pv-ring { margin: 0; width: 54px; height: 54px; }
  .pv-ring span { font-size: 15px; }
}
/* 手機：壓縮內距、單欄課程、隱藏次要導航與統計改 2 欄 */
@media (max-width: 640px) {
  .detail-preview { margin-top: 24px; padding-top: 20px; }
  .pv-bar { gap: 10px; padding: 10px 12px; }
  .pv-nav em:not(.on) { display: none; }
  .pv-brand { font-size: 12px; }
  .pv-app { display: none; }
  .pv-cpd-body, .pv-sp-body { padding: 16px 15px 18px; }
  .pv-cpd-hd h4 { font-size: 18px; }
  .pv-course-grid { grid-template-columns: 1fr; }
  .pv-question { font-size: 13px; }
  .pv-opt { font-size: 11.5px; padding: 8px 10px; }
  .pv-feedback { flex-direction: column; gap: 4px; }
  .dp-note { font-size: 11px; }
}

/* --- 真實截圖畫廊（AisurePass / BrokerMate）--- */
.pv.pv-shot { padding: 0; background: #fff; }
.pv-gallery { position: relative; }
.pv-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pv-stage { position: relative; }
.pv-slide { display: none; margin: 0; }
.pv-slide img { display: block; width: 100%; height: auto; }
.pv-slide figcaption { font-size: 11.5px; color: var(--muted); text-align: center; padding: 9px 12px 11px; background: #fff; border-top: 1px solid var(--line); }
/* radio -> 對應圖片的顯示切換 */
/* 縮略圖切換器 */
.pv-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px 12px 14px; background: var(--bg-alt); border-top: 1px solid var(--line); flex-wrap: wrap; }
.pv-thumb { cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; transition: all .18s ease; user-select: none; }
.pv-thumb:hover { color: var(--navy); border-color: var(--gold); }
.pv-radio:focus-visible ~ .pv-thumbs label { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .pv-thumb { font-size: 10.5px; padding: 5px 11px; }
  .pv-slide figcaption { font-size: 10.5px; padding: 8px 10px; }
}

/* ---------- 聯絡方式：合并为一卡（桌面三欄 / 手機三行） ---------- */
.contact-panel { max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.contact-row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 34px 24px 30px; min-width: 0; }
.contact-row + .contact-row { border-left: 1px solid var(--line); }
.contact-row .contact-icon { margin-bottom: 16px; }
.contact-info h3 { font-size: 17px; margin-bottom: 8px; }
.contact-info p { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 20px; word-break: break-all; }
.contact-row .btn { margin-top: auto; }
@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-row { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 18px 20px; }
  .contact-row + .contact-row { border-left: none; border-top: 1px solid var(--line); }
  .contact-row .contact-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
  .contact-row .contact-icon svg { width: 23px; height: 23px; }
  .contact-info { flex: 1; min-width: 0; }
  .contact-info h3 { font-size: 15px; margin-bottom: 4px; }
  .contact-info p { font-size: 15px; margin-bottom: 0; }
  .contact-row .btn { margin-top: 0; flex-shrink: 0; padding: 9px 16px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .contact-row { flex-wrap: wrap; gap: 12px 14px; padding: 16px 18px; }
  .contact-info { flex-basis: calc(100% - 62px); }
  .contact-row .btn { margin-left: 62px; }
}

/* ===== 首頁新增：信任 / 場景 / FAQ ===== */
.trust-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; }
.trust-card { background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; box-shadow:var(--shadow); }
.trust-card h3 { font-size:17px; color:var(--navy); margin-bottom:8px; }
.trust-card p { font-size:14px; color:var(--muted); line-height:1.75; }
.case-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.case-card { background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.case-card h3 { color:var(--gold-dark); font-size:17px; margin-bottom:8px; }
.case-card p { color:var(--ink); font-size:14px; line-height:1.75; }
.cases-note { margin-top:14px; font-size:12px; color:var(--muted); }
.faq-list { display:grid; gap:12px; max-width:860px; margin-bottom:18px; }
.faq-item { background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:14px 18px; }
.faq-item summary { cursor:pointer; font-weight:700; color:var(--navy); }
.faq-item p { margin-top:10px; color:var(--muted); line-height:1.75; font-size:14px; }

/* ==========================================================================
   2026-11-29 主頁重構：節奏、可讀性、無障礙與新板塊
   ========================================================================== */
.section { padding: 88px 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 92px; }

/* Hero 雙 CTA：主要動作金色、次要動作描邊 */
.hero-actions { gap: 12px; }
.hero-actions .btn { min-width: 190px; }

/* 詳情文案收緊，避免手機端過度捲動 */
.detail-intro { font-size: 15px; line-height: 1.85; max-width: 680px; }
.detail-bullets li { font-size: 14px; line-height: 1.65; }
.detail-chip { font-size: 12px; }
.pv-opt i { font-style: normal; }
.pv-sfc .pv-sp-hd { align-items: flex-start; flex-direction: column; gap: 3px; }
.pv-sfc .pv-question { margin-bottom: 12px; }
.pv-sfc .pv-opt { padding: 8px 12px; }

/* 企業方案 */
.enterprise-section .value-item { min-height: 150px; }
.enterprise-cta { margin-top: 30px; text-align: center; }

/* 舊截圖畫廊切換器：只保留現用的兩組，移除已下線業務的 id */
#pv-sp-1:checked ~ .pv-stage .pv-slide:nth-child(1),
#pv-sp-2:checked ~ .pv-stage .pv-slide:nth-child(2),
#pv-sp-3:checked ~ .pv-stage .pv-slide:nth-child(3),
#pv-ins-1:checked ~ .pv-stage .pv-slide:nth-child(1),
#pv-ins-2:checked ~ .pv-stage .pv-slide:nth-child(2),
#pv-ins-3:checked ~ .pv-stage .pv-slide:nth-child(3) { display: block; }
#pv-sp-1:checked ~ .pv-thumbs label[for="pv-sp-1"],
#pv-sp-2:checked ~ .pv-thumbs label[for="pv-sp-2"],
#pv-sp-3:checked ~ .pv-thumbs label[for="pv-sp-3"],
#pv-ins-1:checked ~ .pv-thumbs label[for="pv-ins-1"],
#pv-ins-2:checked ~ .pv-thumbs label[for="pv-ins-2"],
#pv-ins-3:checked ~ .pv-thumbs label[for="pv-ins-3"] { color: #fff; background: var(--navy); border-color: var(--navy); }

@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .hero-actions .btn { min-width: 0; }
  .pv-sfc .pv-sp-hd { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .detail-intro { font-size: 14.5px; line-height: 1.8; }
  .enterprise-section .value-item { min-height: 0; }
  .pv-sfc .pv-sp-hd { flex-direction: column; align-items: flex-start; }
  .pv-sfc .pv-paper { font-size: 11px; }
}

/* 詳情頁簽（深色板塊；一次只顯示一項業務） */
.detail-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:-10px 0 32px; }
.detail-tab { border:1px solid rgba(255,255,255,.26); background:rgba(255,255,255,.07); color:rgba(255,255,255,.78); border-radius:999px; padding:10px 20px; font-size:14px; font-weight:700; letter-spacing:.2px; transition:all .22s; }
.detail-tab:hover { color:#fff; border-color:var(--gold-light); background:rgba(200,162,75,.16); }
.detail-tab.active { color:var(--navy-deep); border-color:var(--gold-light); background:linear-gradient(135deg,var(--gold-light),var(--gold)); box-shadow:0 6px 18px rgba(200,162,75,.25); }
.service-detail[hidden] { display:none !important; }
@media (max-width:640px) {
  .detail-tabs { gap:8px; margin:-6px 0 24px; }
  .detail-tab { padding:8px 13px; font-size:12.5px; }
}

/* 手機 Hero 標題按語意分段換行，避免在詞中斷行 */
@media (max-width: 640px) {
  .hero-title { font-size: 27px; line-height: 1.4; }
  .hero-title span, .hero-title em { display: block; }
}

/* 桌面 Hero 標題收窄字級，避免末段孤字換行 */
.hero-title { font-size: 40px; max-width: 980px; text-wrap: balance; }
@media (max-width: 640px) { .hero-title { font-size: 27px; max-width: none; } }

/* ==========================================================================
   2026-11-29：Hero 與服務合併，三張大卡放進首屏
   ========================================================================== */
.hero { padding: 62px 0 152px; }

.services-merged { position: relative; z-index: 3; margin-top: -126px; padding: 0 0 68px; }
.services-panel {
  background: #fff; border-radius: 20px; padding: 30px 30px 20px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 70px rgba(4,18,34,.22);
}
.services-panel .section-title { font-size: 29px; margin-bottom: 10px; }
.services-panel .section-title::after { margin-top: 12px; }
.services-panel .section-sub { margin-bottom: 24px; font-size: 15px; }

/* 面板底部小注：兩條跨服務口徑（備考不計學時、CPD 與 CPT 分開計） */
.services-note {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.75; color: var(--muted); text-align: center;
}

/* 桌面：四欄並列純文字卡（無截圖、無陰影，只留標題與要點） */
.showcase-card { flex: none; min-width: 0; width: 100%; padding: 24px 22px 20px; border-radius: 15px; }
.showcase-title { font-size: 23px; min-height: 54px; display: flex; align-items: flex-start; font-weight: 700; }
.showcase-title a { color: inherit; text-decoration: none; }
.showcase-title a:hover { color: var(--gold-dark); }
.showcase-sub { font-size: 13px; margin-bottom: 0; min-height: 20px; font-weight: 600; color: var(--navy); }
.sc-facts li { font-size: 12.5px; }
.showcase-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
@media (min-width: 901px) {
  .showcase-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; padding: 0; scroll-snap-type: none; }
  .sc-head { margin-bottom: 14px; }
}
.sc-detail { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--gold-dark); text-decoration: none; }
.sc-detail svg { width: 14px; height: 14px; transition: transform .25s; }
.sc-detail:hover { color: var(--navy); }
.sc-detail:hover svg { transform: translateX(4px); }
.sc-go {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 7px;
  border: 1px solid rgba(200,162,75,.55); background: transparent; color: var(--gold-dark);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.sc-go:hover { background: rgba(200,162,75,.1); border-color: var(--gold); }

/* 手機端滑動提示與箭頭（桌面隱藏） */
.showcase-head { display: none; }

@media (max-width: 1023px) {
  .services-merged { margin-top: -112px; }
  .sc-go { padding: 7px 12px; }
}
@media (max-width: 900px) {
  .hero { padding: 76px 0 138px; }
  .services-merged { margin-top: -106px; padding-bottom: 64px; }
  .services-panel { padding: 24px 22px 16px; border-radius: 16px; }
  .showcase-head { display: none; }
  .showcase-rail { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; padding: 0; scroll-snap-type: none; }
  .showcase-card { flex: none; scroll-snap-align: none; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 120px; }
  .hero-title { font-size: 27px; }
  .services-merged { margin-top: -96px; padding-bottom: 52px; }
  .services-panel { padding: 20px 16px 14px; }
  .services-panel .section-title { font-size: 24px; }
  .services-panel .section-sub { font-size: 13.5px; margin-bottom: 12px; }
  .showcase-card { padding: 20px 18px 16px; }
  .showcase-title { font-size: 21px; }
  .sc-head { margin-bottom: 12px; }
  .sc-facts li { font-size: 12.4px; }
}

/* 首屏收緊：Hero 文案間距與面板標題壓縮，讓四張卡完整落在第一屏 */
.hero { padding: 44px 0 140px; }
.hero-kicker { margin-bottom: 16px; }
.hero-title { margin-bottom: 18px; }
.services-merged { margin-top: -126px; }
.services-panel { padding-top: 26px; }
.services-panel .section-title { font-size: 26px; margin-bottom: 8px; }
.services-panel .section-title::after { margin-top: 8px; }
.services-panel .section-sub { margin-bottom: 14px; font-size: 14.5px; }
.showcase-card { padding-bottom: 12px; }
.hero { padding-top: 38px; }
.services-panel { padding-top: 22px; }
.services-panel .section-title { margin-bottom: 6px; }
.services-panel .section-sub { margin-bottom: 10px; }
