/*
Theme Name:   GCreate Lite
Theme URI:    https://www.gcreate.com.tw
Description:  GCreate 輕量子主題 - 精準複製原站設計
Author:       GCreate 創意數位科技
Template:     generatepress
Version:      1.0.0
*/

/* =====================================================
   設計 Tokens（完全對齊 Elementor Global Kit #4575）
   ===================================================== */
:root {
  /* 品牌色 */
  --gc-blue:        #004580;   /* primary */
  --gc-navy:        #0A2240;   /* secondary / footer bg */
  --gc-blue-bright: #1A3299;   /* 6f92b58 */
  --gc-yellow:      #FFC600;   /* accent */
  --gc-orange:      #FF671D;   /* c8290cc */

  /* 文字 / 灰階 */
  --gc-text:        #373A36;
  --gc-gray-dark:   #5B6670;
  --gc-gray-mid:    #7B868C;
  --gc-gray-light:  #A2A9AD;
  --gc-gray-pale:   #CFD2D3;
  --gc-surface:     #F3F5F6;
  --gc-white:       #FFFFFF;

  /* 字型：系統字型堆疊（免載網路字型，CJK 用系統內建高品質字體）*/
  --gc-font:        -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Heiti TC', sans-serif;

  /* 版型 */
  --gc-max-w:       1400px;
  --gc-max-w-inner: 1230px;
  --gc-radius-pill: 600px;
  --gc-radius-sm:   10px;
  --gc-header-h:    70px;       /* sticky height */

  /* 動畫 */
  --gc-ease:        0.2s ease;
}

/* =====================================================
   Reset
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--gc-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gc-text);
  background: var(--gc-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =====================================================
   工具類
   ===================================================== */
.gc-container {
  width: 100%;
  max-width: var(--gc-max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.gc-inner {
  max-width: var(--gc-max-w-inner);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =====================================================
   CTA 按鈕（與原站一致：黃底、深藍字、圓角 pill）
   ===================================================== */
.gc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--gc-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--gc-radius-pill);
  border: 1px solid var(--gc-blue);
  background: var(--gc-yellow);
  color: var(--gc-blue);
  white-space: nowrap;
  transition: background var(--gc-ease), color var(--gc-ease);
}
.gc-btn:hover { background: var(--gc-white); color: var(--gc-blue); }

/* =====================================================
   Header
   ===================================================== */
.gc-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--gc-white);
  box-shadow: 0 0 24px rgba(0,0,0,.15);
}
.gc-header-main {
  display: flex;
  align-items: center;
  max-width: var(--gc-max-w);
  margin-inline: auto;
  padding: 0 24px;
  height: var(--gc-header-h);
  gap: 12px;
}
.gc-header-logo { flex: 0 0 auto; line-height: 0; }
.gc-header-logo img { height: 44px; width: auto; }

/* =====================================================
   Desktop Nav
   ===================================================== */
.gc-nav { flex: 1; display: flex; justify-content: center; }

.gc-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}

/* Top-level item */
.gc-nav-item { position: relative; }

/* Top-level link */
.gc-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--gc-text);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--gc-ease);
  cursor: pointer;
}
.gc-nav-link:hover,
.gc-nav-link.is-active { color: var(--gc-blue); }

/* Chevron icon */
.gc-chevron {
  flex-shrink: 0;
  transition: transform var(--gc-ease);
}
.gc-nav-item--has-dropdown:hover .gc-chevron,
.gc-nav-item--has-dropdown.is-open .gc-chevron { transform: rotate(180deg); }

/* Dropdown — hidden by default, shown on hover via JS class OR CSS hover */
.gc-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--gc-white);
  border-radius: var(--gc-radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity var(--gc-ease), transform var(--gc-ease), visibility var(--gc-ease);
}

/* Show on CSS hover OR JS .is-open class */
.gc-nav-item--has-dropdown:hover .gc-dropdown,
.gc-nav-item--has-dropdown.is-open .gc-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bridge gap so moving mouse to dropdown doesn't close it */
.gc-nav-item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0; right: 0;
  height: 14px;
}

/* Dropdown links */
.gc-dropdown li { margin: 0; }
.gc-dropdown-link {
  display: block;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--gc-text);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--gc-ease), color var(--gc-ease);
}
.gc-dropdown-link:hover,
.gc-dropdown-link.is-active {
  background: var(--gc-blue);
  color: var(--gc-white);
}

/* Header CTAs */
.gc-header-ctas { flex: 0 0 auto; display: flex; gap: 8px; }

/* Hamburger */
.gc-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  margin-left: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.gc-menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gc-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.gc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   Mobile Off-canvas
   ===================================================== */
.gc-offcanvas {
  position: fixed;
  inset: 0;
  background: rgba(0,69,128,.96);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  overflow-y: auto;
  transform: translateX(100%);
  /* 關閉時 visibility:hidden → 內部連結移出 Tab 順序（無障礙：aria-hidden 不含可聚焦子系）
     visibility 延遲 .28s 切換，讓滑出動畫照常播放 */
  visibility: hidden;
  transition: transform .28s cubic-bezier(.4,0,.2,1), visibility 0s .28s;
}
.gc-offcanvas.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}

.gc-offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
}
.gc-offcanvas-backdrop.is-visible { display: block; }

/* Top bar（已移除 logo，只留關閉鈕靠右）*/
.gc-offcanvas-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
  flex-shrink: 0;
}

.gc-offcanvas-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--gc-white);
  flex-shrink: 0;
  transition: background var(--gc-ease);
  cursor: pointer;
}
.gc-offcanvas-close:hover { background: rgba(255,255,255,.3); }
.gc-offcanvas-close svg { pointer-events: none; }

/* Off-canvas nav */
.gc-offcanvas-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.gc-offcanvas-list { list-style: none; margin: 0; padding: 0; }

.gc-offcanvas-item { border-bottom: 1px solid rgba(255,255,255,.1); }

.gc-offcanvas-row {
  display: flex;
  align-items: stretch;
}
.gc-offcanvas-link {
  display: block;
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color var(--gc-ease);
}
.gc-offcanvas-link:hover,
.gc-offcanvas-link--active { color: var(--gc-yellow); }

.gc-offcanvas-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  color: rgba(255,255,255,.7);
  border-left: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: color var(--gc-ease), background var(--gc-ease);
  flex-shrink: 0;
}
.gc-offcanvas-toggle:hover { background: rgba(255,255,255,.08); color: var(--gc-white); }
.gc-offcanvas-toggle svg { transition: transform .2s ease; pointer-events: none; }
.gc-offcanvas-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Sub-menu */
.gc-offcanvas-submenu {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  background: rgba(0,0,0,.18);
}
.gc-offcanvas-submenu.is-open { display: block; }
.gc-offcanvas-item .gc-offcanvas-link--sub {
  padding: 12px 20px 12px 36px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gc-offcanvas-item .gc-offcanvas-link--sub:hover { color: var(--gc-yellow); }

/* Off-canvas CTAs */
.gc-offcanvas-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 0;
  flex-shrink: 0;
}
.gc-btn--full { width: 100%; justify-content: center; }

/* =====================================================
   LINE Floating Button
   ===================================================== */
.gc-line-float {
  position: fixed;
  right: 0;
  /* 回頂按鈕在 bottom:30px（達 78px），LINE 浮鈕置於其上方 */
  bottom: 96px;
  z-index: 990;
}
.gc-line-float a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 14px 0 0 14px;
  padding: 10px 8px;
  box-shadow: 0 0 10px 3px rgba(0,0,0,.18);
  text-decoration: none;
  transition: box-shadow var(--gc-ease);
}
.gc-line-float a:hover { box-shadow: 0 0 14px 5px rgba(0,0,0,.22); }
.gc-line-float span {
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: .04em;
}

/* =====================================================
   Footer — 對齊截圖比例與 Elementor CSS 數值
   ===================================================== */
.gc-footer {
  font-family: var(--gc-font);
  background: #0A2240;
}

/* ── 主體 ─────────────────────────────────────────── */
.gc-footer-body {
  border-top: 1px solid #93A2B0;
  padding: 40px 30px;
}
.gc-footer-wrap {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  /* 品牌寬、導覽中、CTA 窄而精緻 */
  grid-template-columns: 2.2fr 1.4fr 0.9fr;
  gap: 24px 48px;
  align-items: stretch;
}

/* ── 欄1：品牌 ───────────────────────────────────── */
.gc-fcol--brand { display: flex; flex-direction: column; gap: 0; }

.gc-fname {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0 0 14px;
}

.gc-ftagline {
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85);
  margin: 0 0 28px;
  word-break: keep-all;
}

/* 聯絡列表 */
.gc-fcontacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-fcontacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}
.gc-fcontacts li svg {
  flex-shrink: 0;
  margin-top: 2px;
  fill: #fff;
}
.gc-fcontacts a {
  color: #fff;
  text-decoration: none;
  transition: color var(--gc-ease);
}
.gc-fcontacts a:hover { color: #049AE2; }

/* ── 欄2：導覽 ───────────────────────────────────── */
.gc-fcol--nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gc-fnav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gc-fnav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* 第二欄左側 border */
.gc-fnav + .gc-fnav {
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.gc-fnav a {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  transition: color var(--gc-ease);
}
.gc-fnav a:hover { color: #13adf4; }

.gc-fregions {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* ── 欄3：線上諮詢 CTA（精緻、不過大）─────────────── */
.gc-fcol--cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gc-fcta-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #FFC600;
  border-radius: 18px;
  padding: 28px 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255,198,0,.18);
  transition: background var(--gc-ease), transform var(--gc-ease), box-shadow var(--gc-ease);
}
.gc-fcta-card:hover {
  background: #FFD033;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,198,0,.3);
}

.gc-fcta-label {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #004580;
  line-height: 1.2;
  white-space: nowrap;
}

.gc-fcta-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* ── 底部 copyright bar ──────────────────────────── */
.gc-footer-bar {
  background: #0A2240;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 14px 30px;
}
.gc-footer-bar p {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin: 0;
}

/* =====================================================
   Footer RWD
   ===================================================== */
@media (max-width: 1024px) {
  .gc-footer-wrap {
    grid-template-columns: 1.9fr 1.3fr 0.9fr;
    gap: 20px 32px;
  }
  .gc-fname { font-size: 26px; }
  .gc-fcta-label { font-size: 19px; }
  .gc-fcta-card { padding: 24px; }
  .gc-fcta-icon { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
  .gc-footer-body { padding: 32px 20px; }
  .gc-footer-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  /* 品牌欄橫跨兩欄 */
  .gc-fcol--brand { grid-column: 1 / -1; }
  /* 導覽欄 + CTA 欄各佔一欄 */
  .gc-fcol--nav { grid-column: 1; }
  .gc-fcol--cta {
    grid-column: 2;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .gc-fcta-card { padding: 24px 28px; gap: 12px; }
  .gc-fcta-label { font-size: 20px; }
  .gc-fcta-icon { width: 48px; height: 48px; }
  .gc-ftagline { font-size: 14px; }
  .gc-fcontacts li { font-size: 14px; }
  .gc-line-float { bottom: 96px; }
}

@media (max-width: 480px) {
  .gc-footer-body { padding: 24px 16px; }
  .gc-footer-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gc-fcol--nav { grid-column: 1; }
  .gc-fcol--cta {
    grid-column: 1;
    justify-content: stretch;
  }
  /* 手機：CTA 變橫向滿版條，省空間 */
  .gc-fcta-card {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 18px 24px;
    border-radius: 14px;
  }
  .gc-fcta-icon { width: 40px; height: 40px; }
  .gc-fnav-grid { grid-template-columns: 1fr 1fr; }
  .gc-footer-bar { padding: 12px 16px; }
  .gc-line-float { bottom: 90px; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .gc-nav-link { font-size: 14px; padding-left: 12px; padding-right: 12px; }
  .gc-header-main { padding: 20px 24px; }
}

@media (max-width: 767px) {
  .gc-nav { display: none; }
  .gc-header-ctas { display: none; }
  .gc-menu-toggle { display: flex; }
  .gc-header-main { height: 64px; }
}

/* =====================================================
   文章頁排版（single.php 用）
   ===================================================== */
.gc-single-post h1 {
  border-left: 5px solid blue;
  font-size: 24px;
  padding-left: 10px;
  line-height: 40px;
  font-weight: 600;
  margin: 20px 0;
  background-color: #eaeaea;
}
.gc-single-post h2 {
  border-left: 5px solid green;
  font-size: 24px;
  padding-left: 10px;
  line-height: 38px;
  font-weight: 600;
  margin: 20px 0;
  background-color: #eaeaea;
}
.gc-single-post h3 {
  border-left: 5px solid #FC6D25;
  font-size: 20px;
  padding-left: 10px;
  line-height: 30px;
  font-weight: 600;
  margin: 10px 0;
}
.gc-single-post h4 {
  border-left: 5px solid #ff8100;
  font-size: 18px;
  padding-left: 10px;
  line-height: 28px;
  font-weight: 500;
  margin: 10px 0;
}
.gc-single-post p,
.gc-single-post li { font-size: 18px; line-height: 2; }

/* =====================================================
   內頁共用 Banner（aboutus / seo-service 等）
   對齊正式站 page_bn_all01：置中白字，藍色淡疊加
   ===================================================== */
.gc-page-hero {
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #1a3299;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 50px;
}
/* 後面緊接深/灰色區塊的頁面：移除 banner 下方留白 */
.gc-seohealth .gc-page-hero,
.gc-plugins .gc-page-hero { margin-bottom: 0; }
.gc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, transparent 0, transparent 60%, rgba(35,67,172,.12) 100%),
    rgba(35,67,172,.12);
  pointer-events: none;
}
.gc-page-hero-title {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #ffffff;
  margin: 0;
  padding: 24px;
}

/* 內頁共用 section 標題 */
.gc-page-eyebrow {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #222222;
  margin-bottom: 8px;
}
.gc-page-section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 4px;
  color: var(--gc-blue-bright);
  margin: 0 auto 24px;
}

@media (max-width: 767px) {
  .gc-page-hero { min-height: 160px; margin-bottom: 32px; }
  .gc-page-hero-title { font-size: 24px; letter-spacing: 3px; }
}

/* =====================================================
   通用 CTA 區塊（single / work / success-case 共用）
   ===================================================== */
.gc-single-cta {
  background: linear-gradient(135deg, var(--gc-blue) 0%, var(--gc-blue-bright) 100%);
  padding: 56px 0;
  text-align: center;
  color: #fff;
}
.gc-single-cta-title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: #fff; margin-bottom: 10px; }
.gc-single-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.gc-single-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gc-single-cta .gc-btn--white { background: #fff; }
.gc-single-cta .gc-btn--white:hover { background: var(--gc-yellow); }

/* =====================================================
   內頁 Archive Banner（藍底環形紋路）+ 麵包屑
   work / category / contact 共用
   ===================================================== */
.gc-archive-head {
  position: relative;
  padding: 56px 0 48px;
  background-color: #06294d;
  background-image:
    linear-gradient(120deg, rgba(6,41,77,.92) 0%, rgba(10,52,99,.78) 55%, rgba(26,50,153,.55) 100%),
    url('../../uploads/page_bn_all01.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.gc-archive-head > .gc-container { position: relative; z-index: 1; }
.gc-archive-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.gc-archive-desc { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.85); max-width: 760px; margin-bottom: 8px; }
.gc-archive-count {
  display: inline-block;
  font-size: 14px;
  color: var(--gc-navy);
  background: var(--gc-yellow);
  padding: 4px 16px;
  border-radius: 100px;
  font-weight: 600;
}

/* 麵包屑（深色文字版，用於文章單頁白底）*/
.gc-breadcrumb {
  font-size: 13px;
  color: var(--gc-gray-dark);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.gc-breadcrumb a { color: var(--gc-gray-dark); transition: color var(--gc-ease); }
.gc-breadcrumb a:hover { color: var(--gc-blue); }
.gc-breadcrumb .is-current,
.gc-breadcrumb .last { color: var(--gc-text); font-weight: 500; }
.gc-breadcrumb .separator { color: var(--gc-gray-light); }

/* 麵包屑在藍底 banner 內 → 白色 */
.gc-archive-head .gc-breadcrumb { color: rgba(255,255,255,.7); }
.gc-archive-head .gc-breadcrumb a { color: rgba(255,255,255,.7); }
.gc-archive-head .gc-breadcrumb a:hover { color: #fff; }
.gc-archive-head .gc-breadcrumb .is-current { color: #fff; }

/* =====================================================
   回到頂部按鈕（原生，取代 WPFront Scroll Top 外掛）
   ===================================================== */
.gc-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 991;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gc-yellow);
  color: var(--gc-blue-bright);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  cursor: pointer;
}
.gc-scrolltop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.gc-scrolltop:hover { background: #FFD33A; }
.gc-scrolltop svg { pointer-events: none; }

@media (max-width: 767px) {
  .gc-scrolltop { right: 16px; bottom: 24px; width: 44px; height: 44px; }
}

/* =====================================================
   Gravity Forms 自訂樣式（已停用 GF 內建 CSS，全部自刻）
   ===================================================== */

/* 表單容器 / 欄位清單 → flex 兩欄佈局 */
.gform_wrapper form { margin: 0; }
.gform_wrapper .gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
}
.gform_wrapper .gfield {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 100%;
  min-width: 0;
}
/* 兩欄（公司名稱 / 公司聯絡電話 等） */
.gform_wrapper .gfield.gf_left_half,
.gform_wrapper .gfield.gf_right_half {
  flex: 1 1 calc(50% - 8px);
}

/* 標籤 + 必填星號 */
.gform_wrapper .gfield_label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--gc-text);
  margin-bottom: 7px;
  line-height: 1.4;
}
.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required_asterisk { color: #C10230; margin-left: 2px; }

/* 欄位說明 / 子標籤 */
.gform_wrapper .gfield_description,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gform-field-label--type-sub {
  font-size: 12px;
  color: var(--gc-gray-mid);
  margin-top: 4px;
  display: block;
}

/* 輸入框 / textarea / select */
.gform_wrapper .gfield input[type="text"],
.gform_wrapper .gfield input[type="email"],
.gform_wrapper .gfield input[type="tel"],
.gform_wrapper .gfield input[type="url"],
.gform_wrapper .gfield input[type="number"],
.gform_wrapper .gfield textarea,
.gform_wrapper .gfield select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--gc-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gc-text);
  background: #fff;
  border: 1px solid var(--gc-gray-pale);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--gc-ease), box-shadow var(--gc-ease);
}
.gform_wrapper .gfield textarea { min-height: 120px; resize: vertical; }
.gform_wrapper .gfield select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6670' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.gform_wrapper .gfield input::placeholder,
.gform_wrapper .gfield textarea::placeholder { color: var(--gc-gray-light); }
.gform_wrapper .gfield input:focus,
.gform_wrapper .gfield textarea:focus,
.gform_wrapper .gfield select:focus {
  outline: none;
  border-color: var(--gc-blue);
  box-shadow: 0 0 0 3px rgba(0,69,128,.12);
}

/* Email 雙欄（輸入/確認）等複合欄位 */
.gform_wrapper .ginput_complex { display: flex; flex-wrap: wrap; gap: 12px; }
.gform_wrapper .ginput_complex > span { flex: 1 1 calc(50% - 6px); min-width: 0; }
.gform_wrapper .ginput_full { flex: 1 1 100%; }

/* Radio / Checkbox */
.gform_wrapper .gfield_radio,
.gform_wrapper .gfield_checkbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gform_wrapper .gfield_radio li,
.gform_wrapper .gfield_checkbox li,
.gform_wrapper .gchoice { display: flex; align-items: center; gap: 8px; }
.gform_wrapper .gfield_radio input,
.gform_wrapper .gfield_checkbox input { width: 18px; height: 18px; accent-color: var(--gc-blue); flex-shrink: 0; margin: 0; }
.gform_wrapper .gfield_radio label,
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gchoice label { font-size: 15px; color: var(--gc-text); margin: 0; cursor: pointer; }

/* reCAPTCHA 間距 */
.gform_wrapper .ginput_recaptcha { margin-top: 4px; }

/* 驗證 / 錯誤訊息 */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select { border-color: #C10230; }
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message {
  font-size: 13px;
  color: #C10230;
  margin-top: 5px;
}
.gform_wrapper .gform_validation_errors {
  background: #FDECEF;
  border: 1px solid #F3B8C2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #C10230;
  font-size: 14px;
}
.gform_confirmation_message {
  background: var(--gc-surface);
  border-left: 4px solid var(--gc-blue);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--gc-text);
}

/* 送出區 + 按鈕：黃底深藍字圓角 pill */
.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer { text-align: left; margin-top: 24px; padding: 0; }
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper input.gform_button,
.gform_wrapper .gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 36px;
  font-family: var(--gc-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--gc-blue);
  background: var(--gc-yellow);
  border: 1px solid var(--gc-blue);
  border-radius: var(--gc-radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,198,0,.3);
  transition: background var(--gc-ease), transform var(--gc-ease), box-shadow var(--gc-ease);
}
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper input.gform_button:hover,
.gform_wrapper .gform_button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,198,0,.4);
}

/* 隱藏欄位 / 蜜罐 */
.gform_wrapper .gform_hidden,
.gform_wrapper .gform_validation_container { display: none !important; }

@media (max-width: 480px) {
  .gform_wrapper .gfield.gf_left_half,
  .gform_wrapper .gfield.gf_right_half { flex: 1 1 100%; }
  .gform_wrapper .ginput_complex > span { flex: 1 1 100%; }
}
