:root {
  --navy: #102a43;
  --navy2: #173f5f;
  --blue: #146c94;
  --cyan: #16a6b6;
  --pale: #eaf7fa;
  --ink: #172b3a;
  --muted: #5c6d7a;
  --line: #d9e4eb;
  --bg: #f6f9fb;
  --white: #fff;
  --green: #16806a;
  --shadow: 0 12px 34px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif !important; 
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   滿版容器設定 (.wrap 電腦瀏覽時滿版)
   ========================================= */
.wrap {
  width: 100%;
  padding: 0 40px;
  margin: auto;
}

.banner-wrap {
  max-width: 1160px;
}

/* =========================================
   排版文字樣式 (Typography)
   ========================================= */
h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.28;
  letter-spacing: -1px;
  color: #ffffff;
  margin: 18px 0 20px;
  font-weight: bold;
}

h1 em {
  font-style: normal;
  color: #60a5fa;
  font-size: clamp(20px, 3vw, 32px);
}

h2 {
  font-size: clamp(26px, 3vw, 33px);
  line-height: 1.35;
  margin: 9px 0 12px;
  color: #000000;
  letter-spacing: -0.5px;
  font-weight: 900;
}

/* =========================================
   Banner 區塊
   ========================================= */
#banner {
  position: relative;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 58, 138, 0.6) 100%), url("../img/banner-05.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  align-items: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

/*.eyebrow {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.3);
  letter-spacing: 1px;
}

.eyedot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(22, 166, 182, 0.12);
  margin-right: 6px;
}*/

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.hero-btn-primary {
  background: #1b7cef;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 166, 182, 0.18);
}

.hero-btn-primary:hover {
  background: #5da6ff;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: unset;
}

/* =========================================
   區塊佈局與卡片 (Features & Grids)
   ========================================= */
.section {
  padding: 76px 0;
}

.section.alt {
  background: #f8fafc;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 確保網格動畫外層滿高 */
.grid4 > .reveal-item {
  height: 100%;
  display: flex;
}

/* 所有卡片本體設定 */
.feature {
  border: 1px solid var(--line);
  background: #fff;
  padding: 23px 21px;
  min-height: 210px;
  width: 100%;
  height: 100%; /* 強制撐滿外層高度 */
  display: flex;
  flex-direction: column;
}

.feature h3 {
  font-size: 1.25rem;
  color: #102a43;
  margin: 0 0 10px;
  font-weight: 600;
}

/* 段落文字自動填補彈性空間，把底下的元素往下擠 */
.feature > p, .feature > div {
  font-size: 16px;
  color: #1e293b;
  margin: 0;
  flex-grow: 1; 
}

/* 第一章的連結自動置底 */
.feature > a:last-child {
  margin-top: auto; 
}

/* =========================================
   2. 區塊卡片的 Hover 懸浮微互動 
   ========================================= */
.feature, .step, .client, .faqitem, .trustitem {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.feature:hover, .step:hover, .client:hover, .faqitem:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 40, 80, 0.08); 
    border-color: #2563eb;
}

/* =========================================
   數字統計區塊 (無框排版設計)
   ========================================= */
.grid3-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: transparent;  
  border: none;             
  height: 100%;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px); 
}

.stat-number {
  font-size: clamp(40px, 5vw, 60px);
  color: #1b7cef;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.stat-divider {
  width: 40px;
  border-top: 3px solid #e2e8f0;
  margin: 20px 0;
}

.stat-label {
  font-size: 18px;
  font-weight: 700;
  color: #102a43;
  margin: 0;
}

/* =========================================
   進場動畫設定 (Scroll Reveal)
   ========================================= */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* =========================================
   RWD 響應式調整
   ========================================= */
@media (max-width: 992px) {
  .grid4, .grid3-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .wrap {
    padding: 0 20px;
  }
  #banner {
    min-height: 400px;
  }
  .hero-grid {
    padding: 0 20PX;
  }
  .grid4, .grid3-stats {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 54px 0;
  }
}