/* 1. 首頁導覽列色彩補充 */
body.page-home .main-nav a {
  color: #333;
  transition: color 0.3s;
  font-weight: 500;
}

body.page-home .main-nav a:hover {
  color: var(--color-primary);
}

body.page-home .site-header.scrolled .main-nav a {
  color: var(--color-primary-dark);
}

body.page-home .site-header.scrolled .main-nav a:hover {
  color: var(--color-primary);
}

/* 2. Hero 靜態單圖區塊 (Ken Burns 特效) */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #eef3f8;
}

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      animation: kenBurns 12s infinite alternate linear;
    }

    @keyframes kenBurns {
      0% {
        transform: scale(1);
      }

      100% {
        transform: scale(1.15);
      }
    }

    /* 柔和呼吸閃爍點 */
    .glow-point {
      position: absolute;
      top: 30%;
      left: 55%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(33, 150, 184, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
      border-radius: 50%;
      pointer-events: none;
      animation: pulseGlow 4s infinite alternate ease-in-out;
      z-index: 1;
    }

    @keyframes pulseGlow {
      0% {
        transform: scale(0.8);
        opacity: 0.4;
      }

      100% {
        transform: scale(1.3);
        opacity: 0.9;
      }
    }

    /* 3. Hero 文字特效 */
    .hero-content-v41 {
      position: relative;
      z-index: 2;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    .hero-subtitle-v41,
    .hero-title-v41,
    .hero-desc-v41,
    .hero-btn-wrap-v41 {
      opacity: 0;
      transform: translateY(30px);
    }

    .hero-subtitle-v41 {
      animation: fadeUp 1s 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
      color: var(--color-accent);
      font-weight: bold;
      letter-spacing: 2px;
      margin-bottom: 15px;
    }

    .hero-title-v41 {
      font-size: 4rem;
      font-weight: 700;
      margin-bottom: 20px;
      background: linear-gradient(90deg, #1a6b8a 0%, #1a6b8a 40%, var(--color-accent) 50%, #1a6b8a 60%, #1a6b8a 100%);
      background-size: 200% auto;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      animation: fadeUp 1s 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1), shine 3s 1.5s infinite linear;
    }

    .hero-desc-v41 {
      animation: fadeUp 1s 1.1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
      font-size: 1.2rem;
      color: #4a6a7a;
      margin-bottom: 40px;
    }

    .hero-btn-wrap-v41 {
      animation: fadeUp 1s 1.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes shine {
      to {
        background-position: 200% center;
      }
    }

    .btn--hero {
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
      color: #fff;
      padding: 15px 40px;
      text-decoration: none;
      border-radius: 30px;
      transition: all 0.3s;
      box-shadow: 0 10px 25px rgba(33, 150, 184, 0.3);
      font-weight: 600;
    }

    .btn--hero:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(33, 150, 184, 0.45);
    }

    /* 4. 產品卡片 - 使用實際產品圖 */
    .section-products {
      background: var(--color-surface);
    }

    .section-products .product-card {
      border-radius: 14px;
      border: 1px solid var(--color-border);
      overflow: hidden;
      transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
    }

    .section-products .product-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(33, 150, 184, 0.15);
    }

    .section-products .product-info {
      background: #fff;
      border-top: 1px solid var(--color-border);
    }

    /* 5. 經營理念區塊 */
    .section-philosophy {
      background: #fff;
    }

    .philosophy-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
    }

    .philosophy-visual {
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }

    .philosophy-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    @media (max-width: 991px) {
      .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .philosophy-visual {
        order: -1;
        max-height: 300px;
      }

      .hero-title-v41 {
        font-size: 2.5rem;
      }
    }

    /* 6. 全球佈局區塊 */
    .section-global {
      background: var(--color-surface);
    }

    /* 7. About Stats 樣式覆寫 */
    .section-about .stat-num {
      color: var(--color-primary);
    }

    .section-about .about-visual img {
      border-radius: 14px;
    }

    /* 8. Hexagon Vector Clusters (V44 Enhanced) */
    .hex-cluster {
      position: absolute;
      pointer-events: none;
    }

    /* 白色發光呼吸叢集 */
    .hex-light {
      z-index: 1;
      animation: hexBreathe 4s infinite alternate ease-in-out;
    }

    .hex-left {
      bottom: 2%;
      left: 2%;
      transform: scale(0.6);
      transform-origin: bottom left;
    }

    .hex-right {
      top: 17%;
      right: -1%;
      transform: scale(0.6);
      transform-origin: top right;
      animation-delay: 2s;
    }

    /* 深色背景點綴叢集 */
    .hex-dark-1 {
      top: 60%;
      /* 移到中間偏下，對齊左側手繪紅框 */
      left: 10%;
      transform: scale(0.6);
      transform-origin: center left;
      z-index: 0;
      opacity: 0.7;
    }

    .hex-dark-2 {
      bottom: -20%;
      /* 稍微往上提，對齊右下角手繪紅框 */
      right: -10%;
      /* 往左靠一點，確保大部分都在畫面內 */
      transform: scale(0.7);
      transform-origin: bottom right;
      z-index: 0;
      opacity: 0.6;
    }

    .hex-polygon {
      fill: rgba(255, 255, 255, 0.02);
      stroke: rgba(255, 255, 255, 0.6);
      stroke-width: 2;
    }

    .hex-polygon.bright {
      stroke: rgba(255, 255, 255, 1);
      fill: rgba(255, 255, 255, 0.2);
    }

    .hex-polygon-dark {
      fill: rgba(26, 107, 138, 0.03);
      stroke: rgba(26, 107, 138, 0.25);
      stroke-width: 2;
    }

    .hex-polygon-dark.filled {
      fill: rgba(26, 107, 138, 0.08);
      stroke: rgba(26, 107, 138, 0.4);
    }

    @keyframes hexBreathe {
      0% {
        opacity: 0.15;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
      }

      100% {
        opacity: 1;
        /* 變白後強烈發光 (疊加兩層發光效果) */
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
      }
    }

    /* Footer */
    .site-footer {
      background: var(--color-footer-bg);
    }