:root{
  --deep:#0C447C;
  --deep-dark:#042C53;
  --ocean:#378ADD;
  --sun:#EF9F27;
  --sun-dark:#854F0B;
  --circ:#0F6E56;
  --circ-light:#E1F5EE;
  --coral:#D85A30;
  --coral-dark:#993C1D;
  --sand:#F1EFE8;
  --sand-line:#E1DED2;
  --ink:#1E2320;
  --ink-soft:#5A5F5A;
  --white:#FFFFFF;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Noto Sans TC', sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.serif{font-family:'Noto Serif TC', serif;}
img{max-width:100%;display:block;}
.wrap{max-width:1120px;margin:0 auto;padding:0 32px;width:100%;}
a{color:inherit;text-decoration:none;}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* 💡 1. 預設改為深色底 */
  background: rgba(26, 43, 76, 0.92); 
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 深色底時改用淡白線，比較美觀 */
  transition: background 0.3s ease, border 0.3s ease; /* 讓變色過程有滑順的動畫 */
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }

/* 💡 2. 預設文字狀態：公司名稱（.brand）改為白字 */
.brand { 
  display: flex; align-items: center; gap: 10px; 
  font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 19px; 
  color: #ffffff; 
  transition: color 0.3s ease;
}
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--sun); }

/* 💡 3. 預設文字狀態：選單文字（ul a）改為白字 */
.nav ul { display: flex; gap: 36px; list-style: none; font-size: 14px; }
.nav ul a { 
  color: #ffffff; 
  text-decoration: none; 
  transition: color 0.3s ease; 
}
.nav ul a:hover { color: var(--sun); } /* 深色底時，Hover 建議改成亮色（如金黃色 var(--sun)）更清晰 */


/* ========================================================
   💡 4. 滾動後的狀態（畫面往下移時，回復您原本的白底灰字）
======================================================== */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--sand-line);
}

/* 滾動後：公司名稱變回原本的深色 */
.nav.scrolled .brand {
  color: var(--deep-dark);
}

/* 滾動後：選單文字變回原本的灰色，Hover 變回原本的 var(--deep) */
.nav.scrolled ul a {
  color: var(--ink-soft);
}
.nav.scrolled ul a:hover {
  color: var(--deep);
}

/* +++++++++++++++++ 漢堡按鈕基本樣式 (預設電腦版隱藏) ++++++++++++++ */
#navToggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

#navToggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff; /* 預設深色導覽列時為白線 */
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 當導覽列滾動變白底時，漢堡按鈕的線變成深色 */
.nav.scrolled #navToggle span {
  background-color: var(--ink);
}

/* 點擊展開時的漢堡變形動畫 (X字型) */
#navToggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#navToggle.active span:nth-child(2) {
  opacity: 0;
}
#navToggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== RWD 手機版切換顯示 (860px以下) ========== */
@media (max-width: 860px) {
  /* 顯示漢堡按鈕 */
  #navToggle {
    display: flex;
  }

  /* 調整原本手機版選單的定位，改為點擊後才拉開的下拉選單 */
  .nav .nav-links {
    display: none; /* 預設隱藏 */
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: rgba(26, 43, 76, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 當導覽列滾動變白底時，手機下拉選單也同步變白底 */
  .nav.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--sand-line);
  }

  /* 讓選單項目滿版直列排 */
  .nav .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav .nav-links a {
    display: block;
    padding: 15px 0;
    width: 100%;
  }

  /* 當變白底時的選單字體顏色微調 */
  .nav.scrolled .nav-links a {
    color: var(--ink-soft);
  }

  /* 關鍵：當 JS 把選單加上 .active 時才顯示選單 */
  .nav .nav-links.active {
    display: flex;
  }
}
/* +++++++++++++++++++++++++++++ */

  /* ---------- BANNER ---------- */
  .banner {
    position: relative;
    width: 100%;             /* 確保父層有完整寬度 */
    height: 200px;
    display: flex; 
    align-items: flex-end;
    overflow: hidden;
  }
  
  .banner-media {
    position: absolute; 
    inset: 0;
    width: 100%;             /* 確保中介層撐滿 */
    height: 100%;
    overflow: hidden;
    will-change: transform;
  }
  
  .banner-slide {
    position: absolute; 
    inset: 0;
    width: 100%;             
    height: 100%;   
    background-size: 100% 100%;         
    background-repeat: no-repeat; 
    background-position: center;
    opacity: 0;
    transform: scale(1.14);
    transition: opacity 1.8s var(--ease, ease-in-out), transform 6s linear; 
  }
  
  /* 加上偽元素遮罩 */
  .banner-slide::after {
    content: "";
    position: absolute;
    inset: 2;
    /* background-color: rgba(44, 63, 154, 0.5); /* 0.4 代表 40% 的黑色透明度，可自行調整 */ 
    /* background-color: rgba(0, 0, 0, 0.5);  */
    z-index: 1; /* 確保遮罩在圖片上方 */
  }
    
  .banner-slide.active {
    opacity: 1;
    transform: scale(1.02);
    z-index: 1;
  }

.map-container iframe {
  width: 100%;
  height:450px !important; /* 強制覆蓋可能殘留的 100hv 錯誤 */

}

/* ---------- wave divider (signature element) ---------- */
.wave{width:100%;height:44px;display:block;}
.wave path{fill:var(--white);}

/* ---------- 讓每個主要區塊都滿版螢幕高度，並讓內容垂直置中 ---------- */
.hero,
.section,
.cert-band,
.local{
  min-height:calc(100vh - 60px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* ============ 1. HERO ============ */
.hero {
  position: relative;
  width: 100%;
  
  /* 💡 核心修改：刪除 aspect-ratio，統一在這裡控制您要的高度 */
  height: calc(100vh - 52px); /* 52px 是您 nav 的高度，這樣寫能讓 hero 完美塞滿剩餘螢幕，不超出畫面 */
  
  padding: 0;
  overflow: hidden;
  color: #fff;
}

/* 🎬 底層影片與 🖼️ 上層 PNG 遮罩圖，要跟著 hero 一起縮放 */
/* 底層影片：強制撐滿並裁切適應 */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 中層 PNG 遮罩：強行拉伸填滿，完美對齊影片 */
.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%; /* 確保圖片不留白、強行填滿 */
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}



/* 最上層內容層 */
.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}


/* 光暈特效層：確保覆蓋在影片與遮罩之上，或依視覺需求調整 z-index */
.hero::before {
  content: "";
  position: absolute; /* 💡 確保這行有寫 */
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(239,159,39,0.18) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08) 0, transparent 40%);
  pointer-events: none;
  z-index: 1.5; /* 💡 改為 1.5，讓它在影片(1)之上，遮罩(2)之下 */
}


.hero .wrap{position:relative;text-align:center;max-width:760px;}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;letter-spacing:0.08em;color:#B5D4F4;
  border:1px solid rgba(181,212,244,0.35);
  padding:6px 16px;border-radius:20px;margin-bottom:28px;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--sun);}
.hero h1{
  font-size:44px;font-weight:600;line-height:1.5;letter-spacing:0.01em;
  margin-bottom:20px;
}
.hero h1 em{font-style:normal;color:var(--sun);}
.hero p.sub{
  font-size:17px;color:#CFE1F5;max-width:520px;margin:0 auto 40px;
}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.btn{
  display:inline-block;padding:14px 28px;border-radius:8px;font-size:14px;font-weight:500;
  transition:transform .15s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--sun);color:#3A2503;}
.btn-ghost{border:1px solid rgba(255,255,255,0.35);color:#fff;}


/* ============ 2. FOUR PILLARS ============ */
#pillars {
  /* 強制覆蓋掉其他 class 的背景設定 */
  background-image: url('../img/bg_pillars.png') !important; 
  background-color: transparent !important; 
  
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;  
  
  /* 關鍵修改 1：設定你要的固定高度，並使用 Flexbox 讓整個 wrap 水平垂直置中 */
  height: calc(100vh - 40px) !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  /* 🎬 關鍵修正 1：把視差滾動的釘住功能，直接綁在最外層盒子身上 */
  background-attachment: fixed !important; 
}

/* 確保內部包裝區塊寬度 100% */
#pillars .wrap {
  width: 100%;
}

.section{padding:50px 0;}
.section-head{max-width:600px;margin:0 auto 56px;text-align:center;}
.section-head .kicker{
  font-size:13px;letter-spacing:0.12em;color:var(--sun-dark);font-weight:500;
  display:block;margin-bottom:14px;
}
.section-head h2{font-size:30px;font-weight:600;color:var(--ink);margin-bottom:14px;}
.section-head p{color:var(--ink-soft);font-size:15px;}

/* 關鍵修改 2：電腦版預設 4 欄 */
.pillars{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar{
  border:1px solid var(--sand-line);border-radius:14px;padding:32px 24px;
  border-top:4px solid #b89742;/* var(--accent, var(--deep)) */
  border-bottom:4px solid #b89742;
  transition:box-shadow .2s ease, transform .2s ease;
  
  /* 關鍵修改 3：卡片內部圖文改為垂直方向排版，並全部水平居中 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pillar:hover{box-shadow:0 12px 32px rgba(12,68,124,0.08);transform:translateY(-3px);}

.pillar .icon{
  width:55px;height:55px;border-radius:10px;
  background:var(--icon-bg, var(--sand));
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;font-size:20px;
  background-size: contain;      
  background-repeat: no-repeat;  
  background-position: center;   
}
.pillar h3{font-size:16px;font-weight:500;margin-bottom:10px;color:var(--ink);}
.pillar p{font-size:13.5px;color:var(--ink-soft);margin-bottom:20px;min-height:60px;}
.pillar .stat{font-family:'Noto Serif TC',serif;font-size:26px;font-weight:600;color:var(--accent,var(--deep));}
.pillar .stat-label{font-size:12px;color:var(--ink-soft);margin-top:2px;}

.p-sun{--accent:var(--sun-dark); --icon-bg:#fff;}
.p-ocean{--accent:var(--deep); --icon-bg:#fff;}
.p-coral{--accent:var(--coral-dark); --icon-bg:#fff;}
.p-circ{--accent:var(--circ); --icon-bg:#fff;}


/* ============ 3. STAT STRIP ============ */

.stat-strip {
  /* 關鍵修改 1：在網格底圖上方，疊加一層 85% 透明度的金色遮罩 (#b89742) 
     rgba(184, 151, 66, 0.85) 就是金色 #b89742 的透明度寫法 */
  background-image: linear-gradient(rgba(184, 151, 66, 0.3), rgba(184, 151, 66, 0.3)), 
                    url('../img/bg_stat-strip.png') !important; 
  
  /* 寬度 100% 完全符合左右撐滿，高度 auto 等比例自動適應（不變形、不重複） */
  background-size: 100% auto !important; 
  background-repeat: no-repeat !important; 
  background-position: center center !important; 

  padding: 40px 0; 
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
  width: 100% !important;
  display: block !important;
}

/* 關鍵修改 2：因為背景變成了高質感的霧金色，原本的文字與數字顏色需要微調 */
.stat-strip .num {
  font-family: 'Noto Serif TC', serif !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  /* 數字改用深藍色（var(--deep-dark)），在金底上會非常有皇家豪門大廠的穩重質感 */
  color: var(--deep-dark) !important; 
}

.stat-strip .lbl {
  font-size: 12.5px !important;
  /* 描述文字用原本的優雅深灰，對比度極佳、非常好閱讀 */
  color: var(--ink) !important; 
  margin-top: 6px !important;
  line-height: 1.5;
}



/* 4 欄等分置中，徹底解決原本偏左的視覺盲點 */
.stat-strip .wrap {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; 
  gap: 8px;
  text-align: center;
}

/* 關鍵修正：確保 4 個格子預設是顯示的（不加 opacity: 0），排除所有衝突 */
.stat-strip .wrap > div {
  opacity: 1 !important;
  transform: none !important;
}
/* 關鍵新增 2：設定數字跳動的初始狀態（預設先縮小到 0 且透明） */
/* .stat-strip .wrap > div {
  opacity: 0;
  transform: scale(0.3);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
} */


/* 定義數字從 0 變動到目標變數的純 CSS 動畫路徑 */
@keyframes countRun {
  from { --count: 0; }
  to { --count: var(--target); }
}

@keyframes countRun100 {
  from { --count: 0; }
  to { --count: 100; }
}





/* 關鍵新增 3：當網頁滑到時，JS 會自動加上 .active，觸發由小到大Q彈跳動的動畫 */
.stat-strip .wrap > div.active {
  opacity: 1;
  transform: scale(1);
}

/* 關鍵新增 4：讓 4 個數據產生前後依序跳出的層次感（Delay 延遲） */
.stat-strip .wrap > div:nth-child(1).active { transition-delay: 0s; }
.stat-strip .wrap > div:nth-child(2).active { transition-delay: 0.15s; }
.stat-strip .wrap > div:nth-child(3).active { transition-delay: 0.3s; }
.stat-strip .wrap > div:nth-child(4).active { transition-delay: 0.45s; }


/* ============ 4. COMPANY INTRO (tech & sustainability) ============ */
#intro {
  /* 強制覆蓋掉其他 class 的背景設定 */
  background-image: url('../img/bg_intro.png') !important; 
  background-color: transparent !important; /* 確保原背景色變透明 */
  
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;  
  min-height: 100vh; 
  background-attachment: fixed !important; 
}

.split-row{
  display:grid;grid-template-columns:1fr 1.1fr;gap:64px;align-items:center;
  padding:64px 0;
}
.split-row.reverse{grid-template-columns:1.1fr 1fr;}
.split-row.reverse .media{order:2;}
.split-row.reverse .copy{order:1;}

.media {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  
  /* 關鍵修改：確保背景圖片滿版且置中 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* 原有的設定 */
  background-image: linear-gradient(135deg, var(--deep) 0%, var(--ocean) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  width: 100%;  /* 確保寬度填滿父層 */
  height: 100%; /* 確保高度填滿父層 */
}

.copy .tag{
  display:inline-block;font-size:12px;letter-spacing:0.1em;color:var(--sun-dark);
  background:#FCEAC7;padding:5px 12px;border-radius:20px;margin-bottom:16px;font-weight:500;
}
.copy h3{font-size:24px;font-weight:600;margin-bottom:14px;}
.copy p{color:var(--ink-soft);font-size:14.5px;margin-bottom:20px;}
.copy ul{list-style:none;}
.copy ul li{
  display:flex;gap:10px;font-size:14px;color:var(--ink);padding:8px 0;
  border-top:1px solid var(--sand-line);
}
.copy ul li:first-child{border-top:none;}
.copy ul li .mk{color:var(--sun-dark);font-weight:600;}

/* ============ 5. CERTIFICATION BAND ============ */
#cert {
  background-image: url('../img/bg_cert.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  padding: 80px 0; /* 給予適當的上下留白，讓背景的流動感完美呈現 */
}

.cert-band{background:var(--deep-dark);color:#fff;padding:80px 0;}
.cert-band .section-head h2{color:#fff;}
.cert-band .section-head p{color:#AFC7E0;}
.cert-band .section-head .kicker{color:var(--sun);}
.cert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.cert-item{
  border:1px solid rgba(255,255,255,0.14);border-radius:10px;
  padding:20px;display:flex;align-items:center;gap:12px;font-size:13.5px;color:#DCE9F5;
}
.cert-item .ck{
  width:26px;height:26px;border-radius:50%;background:var(--sun);color:#3A2503;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0;
}

/* ============ 6. CIRCULAR BIOTECH ============ */
.biotech{background:var(--circ-light);}
.flow{display:flex;align-items:center;justify-content:center;gap:0;margin-top:48px;flex-wrap:wrap;}
.flow .node{
  background:#fff;border:1px solid #C9E8DC;border-radius:12px;
  padding:20px 22px;text-align:center;min-width:140px;
}
.flow .node .n-icon{font-size:22px;margin-bottom:8px;}
.flow .node .n-title{font-size:13.5px;font-weight:500;color:var(--ink);}
.flow .arrow{color:var(--circ);font-size:20px;padding:0 14px;}



/* ============ 7. LOCAL ECONOMY ============ */
#local {
  position: relative; 
  overflow: hidden;   
  width: 100%;  
  height: calc(100vh - 40px) !important; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 關鍵新增：完美的偽元素設定，徹底避開 transform 衝突 */
#local::before {
  content: "";
  position: absolute;
  
  /* 🎬 關鍵修正 1：不用 transform，改用負外距向外吃 20px，完美消除模糊帶來的周邊白邊 */
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  
  /* 🎬 關鍵修正 2：直接把 fixed 視差屬性寫在帶有背景圖的偽元素身上 */
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
                    url('../img/bg_local.jpg') !important; 
  background-attachment: fixed !important; 
  background-size: cover !important; /* 視差 fixed 時，背景大小必須用 cover 才會完美 */
  background-repeat: no-repeat;
  background-position: center;
  
  /* 🎬 關鍵修正 3：只保留模糊，絕對不寫 transform! */
  filter: blur(8px);       
  z-index: 1;    
}

/* 確保裡面的內容（文字和卡片）浮在霧化背景之上，保持清晰 */
#local .wrap {
  position: relative;
  z-index: 2; 
  width: 100%;
}

.local{padding:100px 0;}
.local-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:48px;}
.local-card{
  border-radius:14px;padding:28px;
  border:1px solid darkgray;
  background: rgba(255, 255, 255, 0.3) !important; 
  text-align:center;
}
.local-card .num{font-family:'Noto Serif TC',serif;font-size:32px;font-weight:600;color:blue;}
.local-card .lbl{font-size:15px;color:#000;margin-top:6px;}

/* 讓大標題（h2）加上白光 */
.local h2, #local h2 {
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 
               0 0 20px rgba(255, 255, 255, 1);
}

/* 讓下方的灰色副標題（p）也加上白光 */
.local p, #local p {
  color: #222 !important; 
  text-shadow: 0 0 12px rgba(255, 255, 255, 1),
               0 0 15px rgba(255, 255, 255, 1);
}
.local kicker, #local kicker {
  color: #fff !important; 
  text-shadow: 0 0 12px rgba(255, 255, 255, 1),
               0 0 15px rgba(255, 255, 255, 1);
}


/* ---------- footer ---------- */
.footer {
  background-color: #1a2b4c; /* 您指定的深藍色底 */
  color: #ffffff;
  padding: 60px 20px 40px 20px;
  font-family: "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 1px;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* 💡 關鍵修改：改為居中對齊 */
  align-items: flex-start;
  gap: 80px; /* 💡 設定欄位與欄位間距，在大螢幕下均勻散開 */
  padding-bottom: 40px;
}

/* 核心欄位共同樣式 */
.footer-column {
  /* 💡 移除原本的 flex:1，改用內容寬度，避免左側區塊被強行拉大造成偏左 */
  flex: 0 1 auto; 
}

/* 左欄：Logo與社群 */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.footer-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid #b89742; /* 金色外框 */
  border-radius: 50%; /* 圓形外框 */
  background: transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #b89742; /* 金色 Font Awesome 圖標 */
  transition: fill 0.2s ease;
}
.icon-btn:hover {
  background-color: #b89742; /* 滑鼠移入時，金色填滿圓框 */
}
.icon-btn:hover svg {
  fill: #1a2b4c; /* 滑鼠移入時，圖標變為深藍色 */
}

/* 中欄：關係企業 */
.company-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.company-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  white-space: nowrap; /* 避免文字意外斷行 */
}

/* 右欄：聯絡資訊 */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
/* Font Awesome 聯絡小圖標樣式 */
.contact-list .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
}
.contact-list .icon svg {
  width: 16px;
  height: 16px;
  fill: #b89742; /* 您指定的金色圖標顏色 */
}
.contact-list .text {
  white-space: nowrap;
}

/* 版權宣告 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 25px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.social-icons {
  display: flex;
  gap: 30px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 金色圓角方形外框，大小適中穩定 */
  width: 36px;
  height: 36px;
  background-color: #b89742; 
  border-radius: 12px;
  
  text-decoration: none;
  transition: transform 0.2s ease;
}

/* 讓內部左右兩個 SVG 完美置中，大小固定為 24px */
.icon-btn svg {
  width: 26px;        /* 👈 在這裡改大小才有反應！ */
  height: 26px;       /* 👈 在這裡改大小才有反應！ */
  fill: #1a2b4c;      /* 確保圖標維持深藍色線條 */
  display: block;
}

/* 💡 專門控制中間 LINE 純文字的魔術樣式 */
.line-text-btn span {
  color: #1a2b4c;          /* 完美的深藍色字體 */
  font-family: "Arial Black", "Impact", sans-serif; /* 💡 強制使用世界上最粗、最硬挺的英文字型 */
  font-size: 22px;         /* 字體大小，可改 13px 或 15px 直到您覺得最舒服 */
  font-weight: 900;        /* 絕對極粗體 */
  letter-spacing: -0.5px;  /* 讓英文字母緊湊一點，更像官方 Logo */
  line-height: 1;
  display: block;
}

/* 滑鼠懸停微放大 */
.icon-btn:hover {
  transform: scale(1.08);
}

.icon {
  font-size:60px;
  font-weight: bold;
  width: 26px;        
  height: 26px;      
  border-color:#b89742;      
  display: block;
}



/* ============  MAP ============ */
.map-container iframe {
  width: 100%;
  height:450px !important; /* 強制覆蓋可能殘留的 100hv 錯誤 */
  border: 0;
}

/* 疊加在地圖上的公司 Logo */
.company-logo {
  position: absolute;
  top: 20px;       /* 距離地圖頂部 20 像素 */
  right: 20px;     /* 🌟 改為距離地圖「右側」 20 像素 */
  width: 120px;    /* 設定您的 Logo 寬度 */
  height: auto;
  z-index: 999;    /* 確保 Logo 永遠在地圖的最上層 */
  pointer-events: none; /* 讓滑鼠點擊可以穿透 Logo，不影響操作地圖 */
}




/* RWD 響應式：當螢幕小於 992px 時自動斷行改為上下排列 */
@media (max-width: 992px) {
  .contact-layout-grid {
    flex-direction: column;
    gap: 30px;
  }
  .contact-card-wrapper,
  .contact-info-wrapper {
    width: 100%;
    flex: none;
  }
}

/* RWD 響應式：當手機板螢幕小於 600px 時表單內部輸入框改為全滿版單欄 */
@media (max-width: 600px) {
  .contact-group {
    flex: 1 1 100% !important;
  }
  .contact-card-wrapper {
    padding: 25px 20px;
  }
}



/* ========================================================
   RWD 手機與平板自適應優化 (螢幕小於 992px 時自動重排)
======================================================== */
@media (max-width: 992px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 45px;
  }
  .footer-left {
    align-items: center;
  }
  .contact-list li {
    justify-content: center;
  }
}



/* ========================================================
   RWD 手機版自適應優化 (螢幕小於 768px 時觸發)
======================================================== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px 20px;
  }
  
  .footer-wrap {
    flex-direction: column; /* 橫式改直式排列 */
    gap: 40px;
  }
  
  .footer-links {
    width: 100%;
    flex-direction: column; /* 連結群組也改為直式 */
    gap: 30px;
  }
  
  .link-group h4 {
    margin-bottom: 10px;
  }
}


/* ---------- responsive ---------- */
@media (max-width:860px){
  .hero h1{font-size:30px;}
  .pillars{grid-template-columns:repeat(2,1fr);}
  .stat-strip .wrap{grid-template-columns:repeat(2,1fr);row-gap:24px;}
  .split-row,.split-row.reverse{grid-template-columns:1fr;gap:28px;}
  .split-row.reverse .media,.split-row.reverse .copy{order:initial;}
  .cert-grid{grid-template-columns:1fr;}
  .local-grid{grid-template-columns:1fr;}
  .nav ul{display:none;}
  .flow{flex-direction:column;}
  .flow .arrow{transform:rotate(90deg);padding:6px 0;}
}

/* ===================================================
   關鍵修改 4：RWD 響應式手機自適應媒體查詢（Media Queries）
   =================================================== */

/* 平板與大螢幕手機：寬度小於 1024px 時，自動變為「2 欄」 */
@media (max-width: 1024px) {
  #pillars {
    height: auto !important; /* 在手機平板上內容變多，高度改為自動避免內容溢出 */
    padding: 60px 0;
  }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 一般直向手機：寬度小於 576px 時，自動變為「單欄」 */
@media (max-width: 576px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 16px; /* 手機版間距微調窄一點點 */
  }
}





/* ==========================================================================
   全新專屬聯絡我們區塊 (CONTACT V2) - 獨立樣式
   ========================================================================== */

/* 區塊背景與間距 */
.contact-section {
  background-color: #f7f5f0; /* 灰米色溫暖背景 */
  padding: 60px 20px;
  font-family: "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* 限制最大寬度並置中 */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 主標題：聯絡方式 */
.contact-main-title {
  text-align: center;
  font-size: 28px;
  color: #1a2a4a; /* 深藍色調 */
  margin-bottom: 40px;
  position: relative;
  letter-spacing: 2px;
}

/* 標題下方的裝飾金線 */
.contact-main-title::after {
  content: "";
  display: block;
  width: 160px;
  height: 2px;
  background-color: #bfa15f; /* 鑫台集團金線色 */
  margin: 12px auto 0 auto;
}

/* 左右佈局：2/3 表單與 1/3 資訊 */
.contact-layout-grid {
  display: flex;
  gap: 50px; /* 左右區塊的間距 */
  align-items: flex-start;
}

/* 表單卡片外殼 (桌機版佔約 2/3 寬度，實際比例由下方桌機版專屬區塊設定) */
.contact-card-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 輕微的卡片陰影 */
  box-sizing: border-box;
}

/* 右側資訊外殼 (桌機版佔約 1/3 寬度) */
.contact-info-wrapper {
  padding-top: 15px; /* 微調高度使其與左側表單卡片完美平齊 */
  box-sizing: border-box;
}

/* 表單內部小標：商務合作提案 */
.contact-form-title {
  font-size: 24px;
  color: #1b365d;
  text-align: center;
  margin-top: 0;
  margin-bottom: 35px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 表單內容格線：將輸入框自動排為兩欄 */
.contact-form-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px; /* 上下間距 24px，左右間距 20px */
}

/* 預設每個輸入框群組佔一半寬度 (兩欄並排) */
.contact-group {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 合作需求與按鈕需要 100% 滿版 */
.contact-full-width {
  flex: 1 1 100% !important;
}

/* 輸入框標籤文字 */
.contact-label {
  font-size: 15px;
  color: #4a4a4a;
  margin-bottom: 8px;
  font-weight: bold;
}

/* 必填星號 */
.contact-required {
  color: #d9534f;
  margin-left: 2px;
}

/* 統一輸入框樣式 (包含 input, select, textarea) */
.contact-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  background-color: #f5f5f5; /* 淺灰色填滿 */
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333333;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* 輸入框點擊聚焦時的效果 */
.contact-input:focus {
  background-color: #ffffff;
  border-color: #bfa15f;
  box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.15);
}

/* 調整 textarea 縮放 */
.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* 下拉選單美化外殼 */
.contact-select-box {
  position: relative;
  width: 100%;
}

/* 調整下拉選單右側箭頭間距 */
.contact-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* 自訂下拉選單小箭頭圖示 */
.contact-select-box::after {
  content: "▼";
  font-size: 10px;
  color: #888888;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 送出按鈕區域容器 */
.contact-submit-area {
  margin-top: 10px;
}

/* 提交按鈕主樣式 */
.contact-btn {
  width: 100%;
  padding: 14px;
  background-color: #b48b3b; /* 截圖中的深金/咖啡黃色 */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

/* 按鈕懸浮與點擊效果 */
.contact-btn:hover {
  background-color: #9d752e;
}
.contact-btn:active {
  transform: scale(0.99);
}

/* 右側聯絡資訊列表樣式 */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  font-size: 16px;
  color: #333333;
  line-height: 2; /* 增加行高方便閱讀 */
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

/* 正方形點點裝飾 */
.contact-bullet {
  color: #bfa15f;
  margin-right: 10px;
  font-size: 12px;
  line-height: 2.2;
}

.contact-info-list strong {
  color: #1a2a4a;
  white-space: nowrap;
}

/* RWD 響應式：當螢幕小於 992px 時自動斷行改為上下排列 */
@media (max-width: 992px) {
  .contact-layout-grid {
    flex-direction: column;
    gap: 40px;
  }
  .contact-card-wrapper,
  .contact-info-wrapper {
    width: 100%;
    flex: none;
  }
}

/* RWD 響應式：當手機板螢幕小於 600px 時表單內部輸入框改為全滿版單欄 */
@media (max-width: 600px) {
  .contact-group {
    flex: 1 1 100% !important;
  }
  .contact-card-wrapper {
    padding: 25px 20px;
  }
}


/* 新增右側標題的專屬樣式 */
.contact-right-title {
  font-size: 24px;
  color: #1a2a4a; /* 深藍色調 */
  margin-top: 0;
  margin-bottom: 25px; /* 與下方電話的間距 */
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* 標題下方的金線效果 (若不需要金線，可將此段全刪除) */
.contact-right-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #bfa15f; /* 金線色 */
  margin-top: 8px;
}

/* 強制將表單卡片寬度縮小（僅限桌機版，避免蓋掉手機版 RWD 單欄排版） */
@media (min-width: 993px) {
  .contact-card-wrapper {
    flex: 0 0 55% !important; /* 強制設定卡片只佔外層的 55% 寬度 */
    max-width: 55% !important;
  }

  /* 讓右側資訊區塊補滿剩餘寬度 */
  .contact-info-wrapper {
    flex: 1 1 auto !important;
  }
}


