@charset "UTF-8";

/* =========================================================
   Base / Reset / Variables
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #222;
  background-color: #f2f4f8;
  scroll-behavior: smooth;
}

img{ max-width: 100%; display:block; }
a{ text-decoration:none; color: inherit; }

:root{
  /* 原本全站色系（保留） */
  --primary:#0d3b66;
  --secondary:#c99700;
  --light-bg:#f9f9fb;
  --dark-bg:#101820;
  --accent:#e57b3f;

  --text-main:#222;
  --text-muted:#6b7280;

  --border-soft:#e0e2e7;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);

  --radius-lg:18px;
  --radius-md:12px;
  --radius-sm:8px;

  /* 版面容器（全站共用） */
  --container-max: 1320px;
  --container-gutter: 24px;

  /* =====================================================
     武泰建設｜品牌色階（全站共用）
     ===================================================== */
  /* 主色（藍灰系） */
  --wt-blue-900: #161e26; /* header / footer 深底 */
  --wt-blue-800: #1e2730;
  --wt-blue-700: #28333d;

  /* 輔助灰 */
  --wt-gray-700: #3a4148;
  --wt-gray-500: #6f7780;
  --wt-gray-300: #c7ccd1;

  /* 品牌金（節制使用） */
  --wt-gold-700: #c9a85d;
  --wt-gold-500: #e8d9a8;
  --wt-gold-300: #f2ead2;

  /* 文字 */
  --wt-text-main: #1f252b;
  --wt-text-sub: #5f6770;


/* 你可以在不同頁面/不同版型改這個數字，代表「底部浮動列高度」 */

  --wt-bottom-bar-h: 72px; /* ✅ 你的手機底部電話/E-mail/LINE浮動列，先用 72px */
  --wt-backtop-size: 46px;
}


/* 共用容器 */
.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* 共用 section */
 

.section-header{
  text-align:center;
  margin-bottom: 10px;
}
.section-kicker{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-title{
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--wt-blue-900);
}
.section-subtitle{
  font-size: 14px;
  color: var(--wt-text-sub);
}

/* =========================================================
   Page Layout: footer 貼底
   ========================================================= */
.page-wrapper{
  min-height: 100vh;
  display:flex;
  flex-direction: column;
}
.page-main{
  flex: 1 0 auto;
  padding: 32px 0 32px;
  background: #f5f5f5;
}

/* Footer */

/* =========================
   WT Footer – Modern Office
   ========================= */

   /* =========================
   WT Footer – Modern Office（最終版）
   ========================= */
.site-footer{
  flex-shrink: 0;
  color: #f5f5f5;
  font-size: 11px;
  padding: 8px 0;

  background:
    linear-gradient(180deg,
      #2f414c 0%,
      #24323c 100%);

  border-top: 1px solid rgba(201,168,93,.28);
}

.site-footer{
  background:
    radial-gradient(1200px 260px at 50% 0%,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.00) 60%),
    linear-gradient(180deg,
      rgba(72,88,102,0.88),
      rgba(38,48,56,0.92)
    );
  color: rgba(255,255,255,0.86);
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}


.footer-inner{
  display:flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy{
  margin: 0;
  opacity: .7;
  font-size: 12px;
}
@media (min-width:768px){
  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* =========================================================
   Header / Footer（品牌視覺）
   ※ 注意：header.css 只管排版；顏色統一由 base.css 控制
   ========================================================= */



/* Footer：穩重純色（已在 .site-footer 基本樣式中使用 var） */

/* 全站標題色階（可套在不同頁面） */
.page-title,
.section-title{
  color: var(--wt-blue-900);
}

.page-subtitle,
.section-subtitle{
  color: var(--wt-text-sub);
}


/* =========================
   WT Header – Modern Office
   ========================= */
.site-header{
  background:
    radial-gradient(1100px 260px at 50% 0%,
      rgba(255,255,255,.28),
      rgba(255,255,255,0) 60%),
    linear-gradient(180deg,
      #5f7686 0%,     /* ⭐ 明亮藍灰 */
      #425866 48%,
      #2f414c 100%);
}



/* 金色細線：讓整個 header「活」起來 */

.site-header{
  position: relative;
}

.site-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,168,93,.85),
    transparent
  );
}


/* Header 文字更亮，英文小金點綴 */

.site-header .nav-label-zh{
  color: rgba(255,255,255,.96);
  font-weight: 500;
}

.site-header .nav-label-en{
  color: rgba(232,217,168,.85); /* 淡金，提亮整排 */
  letter-spacing: .08em;
}

.site-header .nav-divider{
  background: rgba(255,255,255,.32);
}







/* =========================
   Footer 精簡版（變薄）
   ========================= */


.site-footer .container{
  padding-top: 0;
  padding-bottom: 0;
}

.footer-simple{
  gap: 12px;
}

.fs-title{ margin-bottom: 4px; }
.fs-sub{ margin-bottom: 0; }
.fs-copy{ margin-top: 6px; }

/* =========================
   WT Back To Top（全站共用）
   - 武泰深藍＋金色點綴
   - 自動避開手機底部浮動列
   ========================= */


/* 按鈕本體 */
.wt-backtop{
  position: fixed;
  right: 16px;

  /* ✅ 避開底部浮動列 + iPhone 安全區（home indicator） */
  bottom: calc(var(--wt-backtop-offset, 14px) + env(safe-area-inset-bottom));


  width: var(--wt-backtop-size);
  height: var(--wt-backtop-size);
  border-radius: 999px;
  border: 1px solid rgba(201,151,0,.35);

  background: rgba(13,59,102,.92); /* 武泰深藍 */
  color: #fff;

  display: none; /* 由 JS 控制顯示 */
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 1200;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  backdrop-filter: blur(6px);

  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

/* Icon */
.wt-backtop-ico{
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

/* 桌機 hover 微互動 */
@media (hover:hover){
  .wt-backtop:hover{
    background: rgba(13,59,102,1);
    transform: translateY(-2px);
  }
}

/* 進場/離場狀態（JS 會加 class） */
.wt-backtop.is-show{ display:flex; }
.wt-backtop.is-hide{ display:none; }

/* 手機再瘦一點 */
@media (max-width: 600px){
  :root{
    --wt-backtop-size: 42px;
    --wt-bottom-bar-h: 64px; /* 手機底部列通常更矮，你也可依實際再調 */
  }
  .wt-backtop{
    right: 12px;
  }
  .wt-backtop-ico{
    font-size: 17px;
  }
}

/* =========================
   WT Back To Top｜顏色強化 + 光暈
   ========================= */

/* 平時狀態 */
.wt-backtop{
  background: rgba(22,30,38,.94); /* 比 footer 稍亮一階的藍灰 */
  border-color: rgba(201,168,93,.45); /* 武泰金 */
  color: var(--wt-gold-500);          /* ⭐ 箭頭改金色 */
}

/* hover / focus：外圈金色光暈 */
@media (hover:hover){
  .wt-backtop:hover{
    background: rgba(22,30,38,1);
    box-shadow:
      0 0 0 6px rgba(201,168,93,.18),   /* ⭐ 外圈光暈 */
      0 10px 26px rgba(0,0,0,.28);      /* 原本陰影保留 */
    transform: translateY(-2px);
  }
}

/* 手機點擊回饋（沒有 hover 的裝置） */
.wt-backtop:active{
  box-shadow:
    0 0 0 6px rgba(201,168,93,.22),
    0 6px 18px rgba(0,0,0,.28);
}

body{
  background-color: #f7f9fb;
}

/* =========================================================
   WT 全站：RWD 左右留白（Page Gutter）規範
   - 手機：16px（精品站基本盤）
   - 小平板：20px
   - 桌機：不強制（沿用既有 container max-width + auto）
   ========================================================= */

:root{
  --wt-gutter: 16px;
}

/* 平板稍微加大留白 */
@media (min-width: 768px){
  :root{ --wt-gutter: 20px; }
}

/* ✅ 全站容器：手機/平板統一左右留白 */
.container{
  padding-left: var(--wt-gutter);
  padding-right: var(--wt-gutter);
}


/* ✅ Sticky Footer：內容不足時 footer 貼底 */
html, body{
  height: 100%;
}

.page-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 你的主內容是 <main class="section"> ... */
.page-wrapper > main{
  flex: 1;
}

/* 保險：就算 main 結構改了，footer 也會被推到底 */
.site-footer{
  margin-top: auto;
}


/* =========================================================
   WT SVG Icons（icons.svg sprite）
   線條型 icon 必備（否則會「存在但看不到」）
   ========================================================= */

svg.trust-icon{
  width: 28px;
  height: 28px;
  display: block;

  fill: none;                 /* 線條 icon 一定要 */
  stroke: currentColor;       /* 用文字顏色畫線 */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* icon 外層決定顏色 */
.trust-ico{
  color: rgba(17,24,39,.85);  /* 深灰藍，跟你整體品牌一致 */
}

/* 金色 icon（甲級營造） */
.trust-icon--gold{
  color: var(--secondary);    /* #c99700 */
}

svg use{
  stroke: inherit;
  fill: inherit;
}


svg.trust-icon{
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

