.phone-1{position:fixed;right:1%;top:50%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone-1, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread , .messenger-link , .mail-1 { 
    transform: scale(0.8);
    right:0;
  }
}

/*根元素*/
:root{
--white:#ffffff; /* 背景(白) var(--white)*/
--black:#000000; /* 段落文字  var(--black)*/
--card:#f1f1f1; /* 卡片底 var(--card)*/
--text:#ffffff; /* 主要文字 var(--text)*/
--text2:#00a8ff; /* h3次要文字 var(--text2)*/
--text3:#ff6b00; /* h4次要文字 var(--text3)*/
--text4:#94a3b8; /* 次要文字 var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, #6f86d6 0%, #48c6ef 100%); /* 漸層 var(--gradient)*/
}

/*logo&頁籤選單文字區塊左右靠齊*/
.topnavbar {
    background-color: var(--custom-bg-dark);/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  display: flex;
  align-items: center;  /* center上下置中; flex-end靠下; */
  justify-content: space-around; /* 平均分配 */
  text-align: center;
}

.topnavbar .container #nav { text-align: right; }/* 讓頁籤選單文字靠右 */

/*按鈕-回首頁&搜尋*/
body[data-type="fullpage"] .navbar .container {
    margin: 0 3vw 0 auto;
}

body {
    background-color: var(--custom-bg-dark);/*背景底色*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
/* 優先套用各平台預設英文字型（蘋果 / Windows / 安卓 / 舊版系統），中文字依序遞補套用 Noto Sans TC（思源黑體），最後由系統無襯線體（sans-serif）墊底 */
}


/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 2em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(16px, 2vw, 18px);
  color:  var(--white);
}/*編輯欄文字*/

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol p{  
  line-height: 2;
  text-wrap: pretty ;  /*適用內文,段落避開孤字*/
 }

h1, h2, h3, h4, h5, h6 { 
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: var(--white);/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--custom-primary-light);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--white);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: #222;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav .subnav .has-subnav span{
    max-width: 400px;/*次頁籤文字背景最大寬度*/
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  /*background-color: var(--card);*/
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
#side ul li a {
  font-size: 16px;
  color: var(--white);
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}

.product-list-div h2 {
    text-shadow: none;
    color: var(--custom-accent);
}
.product-list-div h2 a {
    color: var(--custom-accent);
}
.product-list-div h2 a:hover {   
  color: var(--custom-accent-hover);
}
ul.product-list li a {
    color: var(--text);/*產品格文字顏色*/
    background-color: var(--custom-bg-card);/*產品格底色*/
}
ul.product-list li a:hover {
    color: var(--text2);/*產品格滑過文字顏色*/
}

ul.product-list li .desc {
    color: inherit;
}
.productdetail .detail-spec b {
    color: inherit;
    text-shadow: none;
}

.productdetail .detail-spec h2 {
    color: var(--custom-accent);
    font-size: 30px;
    text-shadow: none;
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--custom-primary);
}

a {
    color: var(--custom-accent);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

#bodyinhome .fcol:nth-child(-n+6) .container { width: 100%; padding: 0; } /*首頁-全編輯欄間距*/
#bodyinhome .fcol.fcol-3,
#bodyinhome .fcol.fcol-5 { background: var(--custom-bg-card); }

/*owl 輪播圖語法*/
@media only screen and (max-width: 1600px){ 
  .owl-carousel {
    width: 85% !important;
    margin: 0 auto;
  }
} /* 在螢幕寬度 768px 以下顯現 */

.owl-carousel.owl-theme {
  padding: 0 20px 35px;/*內距:上 左右 下;*/
}
.owl-carousel.owl-theme .owl-nav {
  position: absolute;
  margin: 0;
  top:40%;
  left: 0;
  right: 0;
  transform: translateY(0%);
}
.owl-carousel.owl-theme .owl-dots {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
}
.owl-carousel.owl-theme button:focus {
  outline: none;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
  float: left;
  transform: translateX(-100%);
}
.owl-carousel.owl-theme .owl-nav .owl-next {
  float: right;
  transform: translateX(100%);
}
.owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.owl-carousel.owl-theme .owl-nav .owl-next:hover{
  background: none;
  color: inherit;
}
.owl-carousel.owl-theme .owl-nav .fa{
  font-size: 3em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}

.owl-carousel .owl-item img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
  width: 100%;
  height: auto; 
  aspect-ratio: 4 / 3;  /*比例*/
  border: 2px solid #fff;
  box-shadow: 0 6px 5px rgba(44,44,44,0.25);
}
.owl-carousel .row-no-gutters {
    margin-right: 5px;
    margin-left: 2px;
}


/* ==========================================================================
   iYP 自訂模組總體樣式 (Prefix: custom-)
   1. 使用 CSS 原生變數 (:root) 統整全站配色、圓角與陰影，方便日後維護。
   ========================================================================== */

:root {
  /* 全站主要色系 (可在此直接更換全站主色) */
  --custom-bg-dark: #07111e;            /* 深深藍基底背景 */
  --custom-bg-card: rgba(15, 29, 49, 0.7);/* 玻璃擬態卡片背景 */
  --custom-primary: #00a8ff;            /* 科技電光藍 (主視覺) */
  --custom-primary-light: #00d2ff;      /* 冰晶亮藍 (強調文字/漸層) */
  --custom-accent: #ff6b00;             /* 活力橘 (行動呼籲 CTA 按鈕) */
  --custom-accent-hover: #ff8800;       /* 活力橘 Hover */
  
  /* 文字與邊框色系 */
  --custom-text-main: #ffffff;          /* 主要標題/白字 */
  --custom-text-muted: #94a3b8;         /* 次要灰字/說明文 */
  --custom-border-color: rgba(0, 168, 255, 0.2); /* 科技微光藍邊框 */
  --custom-border-hover: #00a8ff;       /* Hover 亮藍邊框 */

  /* 佈局與外觀參數 */
  --custom-max-width: 1600px;           /* 網頁版心最大寬度 */
  --custom-radius-sm: 6px;              /* 小圓角 (按鈕/輸入框) */
  --custom-radius-md: 10px;             /* 中圓角 (卡片) */
  --custom-radius-lg: 16px;             /* 大圓角 (大型容器) */
  --custom-transition: all 0.3s ease;   /* 全站平滑轉場 */
}

/* ==========================================================================
   全域重置與基底規範
   ========================================================================== */
.custom-wrapper {
  background-color: var(--custom-bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 168, 255, 0.08) 0%, transparent 40%);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.custom-wrapper *, .custom-wrapper *::before, .custom-wrapper *::after {
  box-sizing: border-box;
}

/* 網頁版心寬度容器 */
.custom-container {
  max-width: var(--custom-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 區塊距離規範 */
.custom-section {
  padding: 2em 0;
}

/* 高亮文字與區塊標題 */
.custom-text-highlight {
  color: var(--custom-primary-light);
  background: linear-gradient(90deg, var(--custom-primary), var(--custom-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.custom-section-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--custom-primary);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.custom-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--custom-text-main);
  margin: 0;
}

/* 區塊頂部標題列 (含「查看更多」對齊) */
.custom-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
}

.custom-more-link {
  color: var(--custom-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--custom-transition);
}

.custom-more-link:hover {
  color: var(--custom-accent);
  transform: translateX(3px);
}

/* ==========================================================================
   About Us 雙欄網格佈局 (Grid)
   ========================================================================== */
.custom-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* 左邊圖片稍微窄一點，右邊文字區寬一點 */
  gap: 50px;
  align-items: center;
}

/* 左側圖片卡片設計 */
.custom-about-image-wrapper {
  position: relative;
  padding-right: 20px;
  padding-bottom: 20px;
}

.custom-about-image-card {
  position: relative;
  border-radius: var(--custom-radius-lg);
  overflow: hidden;
  border: 1px solid var(--custom-border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  height: 480px;
}

.custom-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.custom-about-image-card:hover .custom-about-img {
  transform: scale(1.05);
}

/* 圖片深色氛圍遮罩 */
.custom-about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.1) 0%, rgba(6, 16, 30, 0.4) 100%);
}

/* 右下角 Floating Badge 經驗勳章 */
.custom-about-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(11, 26, 45, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--custom-primary);
  border-radius: var(--custom-radius-md);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 168, 255, 0.25);
  z-index: 2;
}

.custom-about-badge-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--custom-primary) 0%, var(--custom-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.custom-about-badge-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--custom-primary-light);
  display: block;
  line-height: 1.2;
}

.custom-about-badge-label {
  font-size: 12px;
  color: #cbd5e1;
}

/* 右側文案內容 */
.custom-about-description {
  color: var(--custom-text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  text-align: justify;
}

.custom-about-description strong {
  color: var(--custom-text-main);
}

/* 營業項目膠囊區 */
.custom-about-services-box {
  background-color: var(--custom-bg-card);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-md);
  padding: 20px;
  margin: 24px 0;
}

.custom-about-services-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--custom-text-main);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 膠囊標籤 (Pill Tags) */
.custom-tag {
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.2);
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--custom-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--custom-transition);
  cursor: default;
}

.custom-tag i {
  color: var(--custom-primary);
  font-size: 12px;
}

.custom-tag:hover {
  background: var(--custom-primary);
  color: #ffffff;
  border-color: var(--custom-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
}

.custom-tag:hover i {
  color: #ffffff;
}

/* 行動按鈕區 */
.custom-about-action {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-top: 25px;
}

.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--custom-radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--custom-transition);
  height: 100%;
}

.custom-btn-primary {
  background: linear-gradient(135deg, #0072ff 0%, #00a8ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.custom-btn-primary:hover {
  background: linear-gradient(135deg, #005bb5 0%, #0088cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.6);
}

.custom-btn-outline {
  background: transparent;
  color: var(--custom-text-main);
  border: 1px solid var(--custom-border-color);
}

.custom-btn-outline:hover {
  border-color: var(--custom-primary);
  color: var(--custom-primary-light);
  background: rgba(0, 168, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   響應式斷點 (RWD Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .custom-about-grid {
    grid-template-columns: 1fr; /* 平板與手機版改為單欄上下堆疊 */
    gap: 40px;
  }
  .custom-about-image-wrapper {
    padding-right: 0;
    padding-bottom: 0;
  }
  .custom-about-image-card {
    height: 360px;
  }
  .custom-about-badge {
    position: relative;
    margin-top: -30px;
    margin-left: auto;
    margin-right: 15px;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .custom-about-image-card {
    height: 250px;
  }
  .custom-about-action {
    flex-direction: column; /* 手機端按鈕改為滿寬上下堆疊 */
  }
  .custom-btn {
    width: 100%;
  }
  .custom-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
}		
		
/* ==========================================================================
   2. 5 大核心服務區 (上 3 下 2)
   ========================================================================== */
.custom-service-grid {
  display: flex ;
  flex-wrap: wrap ;
  gap: 20px ;
  width: 100%;
  box-sizing: border-box ;
  grid-template-columns: none;
}

/* 3. 卡片 <figure> 基礎定義 */
.custom-service-grid figure.custom-service-card {
  margin: 0;                /* 清除 figure 預設 margin */
  position: relative ;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--custom-radius-md) ;
  overflow: hidden;
  border: 1px solid var(--custom-border-color) ;
  background-color: #0b1a2d ;
  transition: var(--custom-transition) ;
  box-sizing: border-box ;
  cursor: pointer ;
}

/* 上排 3 張卡片寬度計算 (1/3) */
.custom-service-grid figure.custom-service-card:nth-child(-n+3) {
  width: calc((100% - 40px) / 3) ;
}

/* 下排 2 張卡片寬度計算 (1/2) */
.custom-service-grid figure.custom-service-card:nth-child(n+4) {
  width: calc((100% - 20px) / 2) ;
}

/* 4. 滿版 <a> 連結點擊層 (核心要求) */
.custom-service-grid figure.custom-service-card > a.custom-card-link-overlay {
  position: absolute ;
  top: 0 ;
  bottom: 0 ;
  left: 0 ;
  right: 0 ;
  z-index: 10 ;             /* 確保覆蓋在最上層可被點擊 */
  outline: none ;
  text-decoration: none ;
}

/* 5. 卡片內部圖片 */
.custom-service-grid .custom-card-img {
  width: 100% ;
  height: 100% ;
  object-fit: cover ;
  display: block t;
  transition: transform 0.5s ease ;
}

/* 6. <figcaption> 遮罩與文字內容區塊 */
.custom-service-grid figcaption.custom-service-overlay {
  margin: 0;
  position: absolute ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 100% ;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.25) 0%, rgba(6, 16, 30, 0.95) 85%) ;
  padding: 20px ;
  display: flex ;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 16px ;
  box-sizing: border-box ;
  z-index: 2 ;              /* 位於背景圖之上、<a> 點擊層之下 */
  pointer-events: none ;    /* 讓點擊事件直接穿透至外層 <a> */
}

/* 圓形 Icon 外框 */
.custom-service-grid .custom-service-icon-box {
  width: 54px ;
  height: 54px ;
  min-width: 54px ;          /* 防止被 Flex 壓縮 */
  border-radius: 50% ;
  background: linear-gradient(135deg, var(--custom-primary-dark) 0%, var(--custom-accent) 100%) ;
  border: 2px solid rgba(255, 255, 255, 0.8) ;
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.4) ;
  display: flex ;
  align-items: center ;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 22px !important;
  transition: var(--custom-transition) !important;
}

/* 右側內文資訊 */
.custom-service-grid .custom-service-content {
  flex: 1 ;
  min-width: 0 ;
}

.custom-service-grid .custom-service-title {
  font-size: 18px ;
  font-weight: 700 ;
  color: var(--custom-text-main) ;
  margin: 0 0 6px 0 ;
  line-height: 1.3 ;
  transition: var(--custom-transition) ;
}

.custom-service-grid .custom-service-desc {
  font-size: 13px ;
  color: var(--custom-text-muted) ;
  margin: 0 0 8px 0 ;
  white-space: nowrap ;
  overflow: hidden ;
  text-overflow: ellipsis ;
}

.custom-service-grid .custom-card-btn-text {
  color: var(--custom-accent) ;
  font-size: 13px ;
  font-weight: 600 ;
  display: inline-flex ;
  align-items: center ;
  gap: 6px ;
  transition: var(--custom-transition) ;
}

/* ==========================================================================
   7. 滑到 <figure> 範圍觸發的動態 Hover 效果
   ========================================================================== */
/* 卡片外框浮起與外發光 */
.custom-service-grid figure.custom-service-card:hover {
  border-color: var(--custom-border-hover) ;
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.35) ;
  transform: translateY(-4px) ;
}

/* 背景圖片微放大 */
.custom-service-grid figure.custom-service-card:hover .custom-card-img {
  transform: scale(1.08) ;
}

/* 圖示旋轉與光暈增強 */
.custom-service-grid figure.custom-service-card:hover .custom-service-icon-box {
  transform: scale(1.08) rotate(5deg) ;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.8) ;
}

/* 標題亮色反白 */
.custom-service-grid figure.custom-service-card:hover .custom-service-title {
  color: var(--custom-accent) ;
}

/* 連結文字與箭頭右移 */
.custom-service-grid figure.custom-service-card:hover .custom-card-btn-text {
  color: #ffffff ;
  transform: translateX(4px) ;
}

/* ==========================================================================
   8. RWD 響應式斷點
   ========================================================================== */

/* 平板斷點 (<= 992px) */
@media (max-width: 992px) {
  .custom-service-grid figure.custom-service-card:nth-child(-n+3),
  .custom-service-grid figure.custom-service-card:nth-child(n+4) {
    width: calc((100% - 20px) / 2) ;
  }
}

/* 手機斷點 (<= 640px) */
@media (max-width: 640px) {
  .custom-service-grid figure.custom-service-card:nth-child(-n+3),
  .custom-service-grid figure.custom-service-card:nth-child(n+4) {
    width: 100% ;
  }
  .custom-service-grid figure.custom-service-card {
    height: 150px ;
  }
  .custom-service-grid figcaption.custom-service-overlay {
    padding: 15px ;
    gap: 12px ;
  }
  .custom-service-grid .custom-service-icon-box {
    width: 46px ;
    height: 46px ;
    min-width: 46px ;
    font-size: 18px ;
  }
  .custom-service-grid .custom-service-title {
    font-size: 16px ;
  }
}

/* ==========================================================================
   3. 指標性工程實績區
   ========================================================================== */
.custom-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.custom-case-card {
  background: var(--custom-bg-card);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-md);
  overflow: hidden;
  transition: var(--custom-transition);
}

.custom-case-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.custom-case-info {
  padding: 20px 25px;
}

.custom-case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--custom-text-main);
  margin: 0 0 8px 0;
}

.custom-case-meta {
  font-size: 13px;
  color: var(--custom-text-muted);
  margin-bottom: 18px;
}

.custom-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--custom-primary);
  color: var(--custom-text-main);
  text-decoration: none;
  font-size: 13px;
  transition: var(--custom-transition);
}

.custom-btn-outline:hover {
  background: var(--custom-primary);
  color: var(--custom-text-main);
}

/* ==========================================================================
   4. 服務流程區(桌面端一排四欄 + 間距箭頭)
   ========================================================================== */
.custom-process-wrapper {
  display: flex;
  align-items: stretch;  /* 強制所有卡片子元素在桌面端拉伸至相同高度 */
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* 5. 單一步驟卡片 */
.custom-process-card {
  flex: 1;
  background-color: var(--custom-card-bg);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-md);
  padding: 30px 20px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  transition: var(--custom-transition);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.custom-process-card:hover {
  transform: translateY(-6px);
  border-color: var(--custom-accent);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.25);
}

/* 步驟數字標籤 */
.custom-process-number {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 14px;
  font-weight: 800;
  color: var(--custom-primary);
  background: rgba(0, 168, 255, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--custom-border-color);
}

/* 步驟圓形圖示 */
.custom-process-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--custom-primary-dark) 0%, var(--custom-accent) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.custom-process-title {
  color: var(--custom-text-main);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.custom-process-desc {
  color: var(--custom-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* 6. 步驟間引導箭頭 (桌面端向右) */
.custom-process-arrow {
  color: var(--custom-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--custom-transition);
  opacity: 0.8;
}

/* ==========================================================================
   7. RWD 響應式斷點設定 (991px 以下調整)
   ========================================================================== */

/* 平板與手機斷點 (<= 991px)：改為一排一個，箭頭向下 */
@media (max-width: 991px) {
  .custom-process-wrapper {
    flex-direction: column;           /* 轉為單欄堆疊 */
    gap: 0;                          /* 由箭頭的上下 margin 控制距離 */
  }

  .custom-process-card {
    width: 100%;
    max-width: 500px;                 /* 限制手機/平板上卡片最大寬度，避免過寬 */
    margin: 0 auto;
  }

  /* 箭頭旋轉 90 度改為向下 */
  .custom-process-arrow {
    transform: rotate(90deg);
    margin: 15px 0;
  }

  .custom-text-highlight {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 18px;
  }
}

/* 小型手機斷點 (<= 480px) */
@media (max-width: 480px) {
  .custom-section-title {
    font-size: 22px;
  }

  .custom-process-card {
    padding: 25px 18px;
  }
}

/* ==========================================================================
   5. 常見問題 FAQ
   ========================================================================== */
.custom-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-faq-item {
  background: var(--custom-bg-card);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-sm);
  padding: 18px 24px;
  transition: var(--custom-transition);
  color: var(--custom-text-muted) !important;
}

.custom-faq-item:hover {
  border-color: var(--custom-border-hover);
}

.custom-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--custom-text-main);
    background: var(--custom-bg-card);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/*Q&A手風琴*/
#accordion li div {
 display:none;
}

#accordion li>h3{
   display:block;
 /*  border:1px solid #dddddd;
   border-radius:3px; 
   background: #eeeeee;
   color:#000;*/
   margin-top: 7px;
   font-size: 18px;
   font-weight: 700;
   padding: 10px;
    width: 100%;
}
#accordion li>div{
  /* background: rgb(255,255,255,0.9);
   color:#222;
   border:1px solid #dddddd;*/
   border-radius:3px; 
   margin-top: 7px;
   padding: 10px;
}
#accordion li>h3:after {
    position: relative;
   font-family: "Font Awesome 7 Free";
   content: "\f107";
    font-size: 20px;
    float: right;
    transition: transform 0.3s ease-in-out;
}


/* ==========================================================================
   6. 預約聯絡區
   ========================================================================== */
.custom-contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;               /* 讓兩欄保持同等高度 */
  width: 100%;
  box-sizing: border-box;
}

/* 5. 左側聯絡資訊卡片 */
.custom-contact-info-card {
  flex: 1 1 420px;
  background-color: var(--custom-card-bg);
  border: 1px solid var(--custom-border-color);
  border-radius: var(--custom-radius-md);
  padding: 35px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-info-header {
  margin-bottom: 25px;
}

.custom-info-title {
  color: var(--custom-text-main);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.custom-info-desc {
  color: var(--custom-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 資訊項目列表 */
.custom-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-info-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--custom-primary-dark) 0%, var(--custom-accent) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.custom-info-text {
  display: flex;
  flex-direction: column;
}

.custom-info-label {
  font-size: 14px;
  color: var(--custom-text-muted);
  margin-bottom: 2px;
}

.custom-info-val {
  font-size: clamp(18px,2vw,20px);
  font-weight: 600;
  color: var(--custom-text-main);
  text-decoration: none;
  transition: var(--custom-transition);
}

a.custom-info-val:hover {
  color: var(--custom-accent);
}

/* 6. 右側地圖卡片與 iframe */
.custom-contact-map-card {
  flex: 1 1 500px;
  border-radius: var(--custom-radius-md);
  overflow: hidden;
  border: 1px solid var(--custom-border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.custom-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ==========================================================================
   7. RWD 響應式斷點設定
   ========================================================================== */

/* 平板斷點 (<= 992px) */
@media (max-width: 992px) {
  .custom-contact-wrapper {
    flex-direction: column;
  }
  
  .custom-contact-info-card,
  .custom-contact-map-card {
    width: 100%;
    flex: none;
  }

  .custom-contact-map-card {
    height: 380px;
    min-height: 380px;
  }
}

/* 手機斷點 (<= 640px) */
@media (max-width: 640px) {
  .custom-contact-info-card {
    padding: 25px 20px;
  }

  .custom-contact-map-card,
  .custom-map-iframe {
    height: 300px;
    min-height: 300px;
  }
}

/* ==========================================
   Footer 頁尾
   ========================================== */
#footer {
    color: #fff;
    background-color: #002e47;
}
#footer .container {
    width: 100%;
    max-width: 1600px;
}
#foot-nav {
    display: flex;
    justify-content: center;
}

/* 1. 頁尾整體外圍 */
.custom-footer-section {
  width: 100%;
  color: #e2e8f0;
  padding: 50px 20px 20px 20px;
  box-sizing: border-box;
}
/* Footer 基礎設定 */
.custom-footer {
  width: 100%;
  padding: 30px 0 20px 0;
  box-sizing: border-box;
}

/* 1. 上半部主要資訊列 Flex 橫向分佈 */
.custom-footer .custom-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* 品牌 Logo 區 */
.custom-footer .custom-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-footer .custom-footer-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--custom-radius-sm);
}

.custom-footer .custom-footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--custom-text-main);
  white-space: nowrap;
  letter-spacing: 1px;
}

/* 中間地址與信箱 */
.custom-footer .custom-footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--custom-text-muted);
}

.custom-footer .custom-footer-divider {
  color: var(--custom-border-color);
  opacity: 0.6;
}

.custom-footer .custom-footer-link {
  color: var(--custom-text-muted);
  text-decoration: none;
  transition: var(--custom-transition);
}

.custom-footer .custom-footer-link:hover {
  color: var(--custom-primary-light);
}

/* 右側電話與社群圖示 */
.custom-footer .custom-footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.custom-footer .custom-footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--custom-text-main);
  text-decoration: none;
  transition: var(--custom-transition);
}

.custom-footer .custom-footer-phone i {
  color: var(--custom-primary);
  font-size: 20px;
}

.custom-footer .custom-footer-phone:hover {
  color: var(--custom-primary-light);
}

/* 社群 Icon 列表 */
.custom-footer .custom-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-footer .custom-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--custom-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: var(--custom-transition);
}

.custom-footer .custom-social-icon:hover {
  background-color: var(--custom-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
}

/* 2. 中間科技質感分隔線 */
.custom-footer .custom-footer-line {
  width: 100%;
  height: 1px;
  background-color: var(--custom-border-color);
  margin: 20px 0 15px 0;
}

/* 3. 下半部版權宣告與標語 */
.custom-footer .custom-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--custom-text-muted);
}

.custom-footer .custom-footer-copyright {
  text-align: center;
  flex: 1;
}

.custom-footer .custom-footer-slogan {
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--custom-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   4. RWD 響應式斷點設定
   ========================================================================== */

/* 平板斷點 (<= 991px) */
@media (max-width: 991px) {
  .custom-footer .custom-footer-main {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .custom-footer .custom-footer-info {
    flex-direction: column;
    gap: 6px;
  }

  .custom-footer .custom-footer-divider {
    display: none;
  }

  .custom-footer .custom-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .custom-footer .custom-footer-copyright {
    order: 1;
  }

  .custom-footer .custom-footer-slogan {
    order: 2;
  }
}

/* 手機斷點 (<= 480px) */
@media (max-width: 480px) {
  .custom-footer {
    padding: 20px 0 15px 0;
  }

  .custom-footer .custom-footer-contact {
    flex-direction: column;
    gap: 12px;
  }

  .custom-footer .custom-footer-brand-name {
    font-size: 18px;
  }

  .custom-footer .custom-footer-phone {
    font-size: 16px;
  }
}