/* index-style.css */

/* 輪播區塊 */
#carousel {
  max-width: 100%;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5; /* 桌機比例 */
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track a {
  flex: 0 0 100%;
  display: block;
}

.carousel-track img {
  width: 100%; 
  height: 100%;
  display: block;
  object-fit: cover;  /* 填滿容器，避免留白 */
}

.carousel-track picture {
  width: 100%;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.5);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem 1rem;
}

/* 務必加上這兩段，讓箭頭分開到左右兩側 */
.arrow.left { 
  left: 10px; 
}

.arrow.right { 
  right: 10px; 
}




/* 經銷品牌區塊設定 */
#brands {
  padding: 80px 20px;
  background-color: #FFFFFF; /* 比純白深一點點，讓白色卡片更跳 */
  text-align: center;
}

#brands h3 {
  color: #d35400; /* 統一使用深橘色，跟特色區一致 */
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2.2rem;
  font-weight: bold;
}

#brands .brand-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 40px;
  display: block;
}

.brand-grid {
  display: grid;
  /* 讓卡片大一點，Logo 會更清晰 */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

/* 品牌卡片：懸浮動畫核心 */
.brand-card {
  background: #ffffff;
  padding: 15px;
  border-radius: 15px;
  /* 使用非常輕微的陰影，看起來更精緻 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px; /* 增加高度讓大 Logo 有空間 */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f2f2f2;
  text-decoration: none;
}

/* 懸浮狀態 (Hover) */
.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(230, 126, 34, 0.12); /* 淡淡的橘色投影 */
  border-color: #fce4d6;
}

.brand-card img {
  max-width: 100%; /* 讓 Logo 更大 */
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.brand-card:hover img {
  transform: scale(1.05); /* 圖片微幅放大 5% */
}




/* 針對特色介紹區塊 */
/* 特色區 */
/* 針對特色介紹區塊 */
#features {
  background-color: #FFF5EE; /* 奶油粉橘背景 */
  padding: 80px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center; /* 關鍵：確保裡面的 h3 標題置中 */
}

/* 頂部裝飾線 */
#features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #e67e22, #f39c12);
}

#features h3 {
  font-size: 2rem;
  color: #d35400; /* 修改：改為深橘色標題，與下方一致 */
  margin-top: 0;
  margin-bottom: 40px;
  display: inline-block; /* 配合 margin: 0 auto 置中 */
  width: 100%;
  font-weight: bold;
}

/* 標題下方小裝飾線 */
#features h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #e67e22;
  margin: 15px auto 0; /* 讓這條線也在標題正下方置中 */
  border-radius: 2px;
}

/* 容器與卡片 */
.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* 自動調整排版：寬螢幕 4 個，中型螢幕 2 個，手機 1 個 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px;
  padding: 0 40px;
}

.feature-item {
  background: #ffffff;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.1); 
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-item h4 {
  color: #e67e22; /* 標題橘色 */
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.feature-item p strong {
  color: #d35400; /* 關鍵字顯示為橘色 */
  font-weight: bold;
}




@media (max-width: 768px) {
	
#carousel {
  margin-bottom: 0 !important; /* 確保容器底部沒有間距 */
  padding-bottom: 0 !important;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9 !important; 
}	
	
.carousel-track img {
  width: 100%;
  height: 100%;       /* 關鍵：強制高度填滿容器 */
  object-fit: contain;  /* 關鍵：讓圖片自動縮放填滿而不變形，且不留白 */
  display: block;
}

  .arrow {
    padding: 5px 10px !important;
    font-size: 1rem !important;
    background-color: rgba(255, 255, 255, 0.3) !important; /* 更透明 */
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* 縮小經銷品牌區塊上方的間距 */
#brands {
  padding: 40px 15px !important; /* 稍微增加內距，不要貼得太緊 */
} 
 
#features {
    background-color: #FFF5EE !important; /* 確保底色不是白色 */
    padding: 60px 0 !important;
  }

  /* 關鍵：調整容器寬度與佈局 */
  .feature-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 25px !important; /* 💡 這裡最重要！增加左右間距，讓卡片兩側「露出」粉橘底色 */
    gap: 25px !important;       /* 卡片與卡片間的距離 */
  }

  /* 強化卡片立體感 */
  .feature-item {
    background: #ffffff !important;
    padding: 35px 25px !important;
    border-radius: 20px !important;
    margin: 0 !important; /* 清除所有可能跑版的 margin */
    
    /* 增加陰影強度 */
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.12) !important; 
    border: 1px solid rgba(230, 126, 34, 0.1) !important;
    
    text-align: center;
  }

  /* 文字細節調整 */
  #features h3 {
    font-size: 1.6rem !important;
    margin-bottom: 30px !important;
  }
  .feature-item h4 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }
  .feature-icon {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
  }

}


