/* --- 1. 基礎重置與全域設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.hero {
  height: 90vh;
  background: linear-gradient(var(--companyLogo), var(--Highlights), var(--companyLogo));
  background-size: cover;
  background-position: center;

  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content {
  height: 90vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1,
.hero-content img {
  grid-area: 1 / 1;
}

.hero-content img {
  max-height: 90vh;
  max-width: 100vw;
  width: 100%;
  height: 100%;
  filter: blur(0.6px);
  /* object-fit: cover; */
  /* 裁切多餘部分，圖片不變形且完整填滿 div */
}

.hero-content h1 {
  border-radius: 8px;
  padding: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  font-size: 3rem;
}

.application-section,
.products-section,
.about-section,
.container {
  padding: 60px 10%;
  text-align: center;
  min-height: 80vh;
}



.product-container,
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  max-height: 55vh;
  padding: 30px 20px;
  transition: 0.3s;
}

.product-card:hover {
  color: #0056b3;
}
.product-card:hover .product-img{
  border: 4px #0056b3 solid;
}
.product-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: var(--companyLogo);
  transition: 0.3s ease;
}

.product-card-name {
  font-size: 1.12rem;
  font-weight: 800;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 40px;
}

.about-container a {
  text-decoration: none;
}

.about-card {
  border-radius: 8px;
  color: var(--font-color);
  height: clamp(200px, 20vw, 400px);
  align-content: center;
  align-items: center;
}

.about-card:hover {
  color: var(--link-content-hover);
}

.about-card h3 {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.split-section {
  display: flex;
  flex-wrap: wrap;
}

.split-box {
  flex: 1;
  padding: 100px 50px;
  color: var(--font-color);
  text-align: center;
  background: #003a70;
  border-left: 1px solid var(--font-color);;
}
.split-box button:hover {
  background: var(--button-coler-hover)
}
.split-box button {
  font-size: 1rem;
  color: var(--text-color);
  padding: 8px;
  background: var(--button-coler);
  border:none;
}

/* ---  RWD 手機版設定 (768px 以下) --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .logo-img {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40px;
  }

  .hero {
    height: fit-content;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    height: 30vh;
  }

  .product-card {
    height: 40vh;
  }

  .split-section {
    flex-direction: column;
  }

  .arrow {
    display: none;
  }

}

/* ---  RWD 電腦版動畫設定 (768px 以上) --- */
@media (min-width: 768px) {
  .product-card-scale {
    animation: wipeEnterLeft 1.5s ease forwards;
    /* 預設先隱藏 (擦入前狀態) */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }

  @keyframes wipeEnterLeft {
    0% {
      clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }

    100% {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
  }
}