/* HERO欄位 */
.main-article-card{
  padding: 0;
}
.hero {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  /*  背景圖 + 漸層淡出 + 原始比例靠右 */
  background: linear-gradient(to right, rgba(224,240,255,0.95) 0%, rgba(224,240,255,0.6) 20%, rgba(224,240,255,0.3) 40%), url('../images/environment04.jpg') no-repeat right center;
  background-size: 80% auto; /* 再縮小一點點 */
  background-position: top right; /* 保持靠右裁切左邊 */
  background-color: #dbeaf7; /* 左側補上藍色背景 */
  background-repeat: no-repeat;
  background-position: right center;
}

.hero-text {
  flex: 2;
  width: 100%;
  padding-bottom: 2rem; /* 底部空間 */
}

.hero-text h1 {
  font-size: 3rem;
  color: #003d73;
  margin-bottom: 0rem;
  margin-top: 1rem;
}

.hero-text h3 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  margin-top: 0rem;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.hero-text a {

}

.hero-text .image-button {
  display: inline-block;
  width: 125px;
  height: auto;
  margin: 0 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-text .image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持圖片比例或裁切填滿 */
  display: block;
}

.hero-text .image-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-image img {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  display: block;
  justify-content: start;
}


/* 服務特色 */

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem 1rem;
  gap: 1rem;
}

.feature {
  flex: 0 1 17%;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature img {
  width: 100%;
  max-width: 300PX;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  object-fit: contain;
}

.feature h3 {
  color: #004b8a;
  margin-bottom: 0.5rem;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature a {
  background-color: #0073e6;
  color: #fff;
  padding: 0.75rem 1.5rem;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

@media (max-width: 900px) {
  /* Hero 區塊 */
  .hero {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    background: linear-gradient(to right, rgba(224,240,255,0.7)), url('../images/environment04.jpg') no-repeat right center;
    background-size: auto;
    background-position: center; /* 保持靠右裁切左邊 */
  }
  .hero-image {
    width: 100%;
    margin-bottom: 1rem;
  }
  .hero-image img {
    width: 80vw;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
  font-size: 1.8rem;
  line-height: 1.4;
  }
  .feature {
    flex: 1 1 calc(50% - 2rem);
  }
}
