/*==================================================
=                  變數與基本設定                  =
==================================================*/
:root {
  --primary-color: #221814;  /* 標準色-黑色 K100 */
  --secondary-color: #BF8615; /* 標準色-金色 C30 M50 Y100 */
  --metallic-gold: linear-gradient(90deg, #BF8615 0%, #E5C389 100%); /* 金屬金漸層 */
  --text-color: #333333;
  --background-color: #FEFEFE; /* 輔助色-白色 */
  --dark-black: #000000;
  --light-gold: #E5C389;
}

/*==================================================
=                   全局樣式                     =
==================================================*/
body {
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.6;
  padding-top: 76px;
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-right: 0;
}

/* 輪播圖下框線 - 從左到右由細變粗 */
.banner-container {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.banner-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #BF8615 0%, #E5C389 100%);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/*==================================================
=                  導航欄樣式                    =
==================================================*/
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  transition: padding 0.3s ease;
}

/* 漢堡選單按鈕樣式 */
.navbar-toggler {
  padding: 8px 10px;
}

.navbar-toggler-icon {
  width: 1.3em;
  height: 1.3em;
}

.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  max-width: 70%; /* 限制寬度，避免在小螢幕上佔據太多空間 */
}

.navbar-nav .nav-link {
  position: relative;
  padding: 8px 15px;
  margin: 0 5px;
  transition: all 0.3s ease;
  color: var(--primary-color) !important;
  font-size: 1rem !important;  /* 確保所有導航項目字體大小一致 */
  font-weight: 500;
  white-space: nowrap; /* 避免文字換行導致覆蓋 */
  border-radius: 4px; /* 預設就有圓角 */
}

.navbar-nav .nav-link:hover {
  background: var(--metallic-gold);
  color: var(--background-color) !important;
  border-radius: 4px;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active:hover {
  background: var(--metallic-gold);
  color: var(--background-color) !important;
  border-radius: 4px;
}

/*==================================================
=                   區塊樣式                     =
==================================================*/
.section {
  padding: 0px 0;
  overflow: visible;
  width: 100%;
}

.section:not(.quality-section) {
  background-color: var(--background-color);
}

.section:not(.quality-section):nth-child(even) {
  background-color: #f8f9fa;
}

.main-section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.main-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--metallic-gold);
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.8rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--metallic-gold);
}

.content {
  margin-bottom: 30px;
}

.container {
  margin: 0 auto;
  padding: 0 15px;
  overflow: visible;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
  background: var(--metallic-gold);
  border: none;
  color: var(--background-color);
}

.btn-primary:hover {
  background: var(--secondary-color);
  border: none;
}

.carousel-caption {
  background: linear-gradient(90deg, rgba(34, 24, 20, 0.9) 0%, rgba(34, 24, 20, 0.8) 70%, rgba(34, 24, 20, 0) 100%);
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  border-left: 4px solid var(--secondary-color);
}

/* 移除重複的輪播標題樣式，已在下方定義 */

/*==================================================
=               Banner與輪播樣式                 =
==================================================*/
.carousel {
  position: relative;
  overflow: hidden;
}

.banner-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#mainBanner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.carousel-inner {
  width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* 輪播箭頭按鈕樣式 */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  position: absolute;
  opacity: 0.8; /* 增加透明度，避免完全遮擋內容 */
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Custom carousel controls */
.custom-carousel-control {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-carousel-control:hover {
  opacity: 1;
  background-color: var(--secondary-color) !important; /* Gold color on hover */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  background-position: center;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* 所有輪播圖使用相同的樣式 */
/* .carousel-item:nth-child(2) .banner-slide 特殊樣式已移除 */

.carousel-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: auto;
  text-align: left;
  background: linear-gradient(90deg, rgba(34, 24, 20, 0.7) 0%, rgba(34, 24, 20, 0.6) 40%, rgba(34, 24, 20, 0) 100%);
  padding: 3% 5%;
  max-width: 100%;
  margin: 0;
  border-left: none;
  transform: none;
  z-index: 10;
  width: 70%;
  pointer-events: none; /* Allow clicks to pass through */
}

.carousel-caption h2 {
  color: var(--background-color);
  font-weight: bold;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1%;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.carousel-caption p {
  color: var(--light-gold);
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 1%;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-caption .banner-description {
  color: var(--background-color);
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.5;
  margin-bottom: 0;
}

/* 固定文字容器 */
.banner-text-container {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.banner-text-content {
  position: relative;
  padding: 40px;
  max-width: 60%;
}

@media (max-width: 1920px) {
  /* 在小螢幕上保持輪播圖比例，但不改變尺寸 */
  
  .carousel-caption {
      padding: 20px 40px;
      max-width: 85%;
  }
  
  .carousel-caption h2 {
      font-size: 1.8rem;
      margin-bottom: 8px;
  }
  
  .carousel-caption p {
      font-size: 1.1rem;
      margin-bottom: 10px;
  }
  
  .banner-text-content {
      max-width: 80%;
  }
  
  .feature-list li {
      white-space: normal;
  }
}

@media (max-width: 768px) {
  body {
      padding-top: 56px; /* 減少頂部空間，適應較小的導航欄 */
  }
  
  /* 確保在移動設備上內容不會被導航欄遮擋 */
  main {
      padding-top: 15px;
  }
  
  /* 確保輪播圖在移動設備上正確顯示 */
  .banner-container {
      margin-top: -5px; /* 調整與導航欄的間距 */
  }
  
  /* 確保導航欄不會遮擋內容 */
  .navbar {
      height: auto;
      min-height: 56px;
  }
  
  .carousel-caption {
      padding: 15px 25px;
      max-width: 100%;
      width: 100%;
      text-align: center;
      background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(34,24,20,0.8) 100%);
      left: 0;
      right: 0;
  }
  
  .carousel-caption h2 {
      font-size: 1.5rem;
      margin-bottom: 6px;
      line-height: 1.2;
      text-align: center;
  }
  
  .carousel-caption p {
      font-size: 0.95rem;
      margin-bottom: 6px;
      text-align: center;
  }
  
  .carousel-caption .banner-description {
      font-size: 0.85rem;
      max-width: 100%;
      text-align: center;
      margin: 0 auto;
  }
  
  .banner-text-content {
      max-width: 100%;
      padding: 15px;
      text-align: center;
  }
}

/* 特別為響應式設計的中央標題 */
.caption-centered-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* 降低層級，確保不會覆蓋控制按鈕 */
  pointer-events: none;
  background: rgba(34, 24, 20, 0.4); /* 進一步降低透明度 */
}

.caption-centered {
  text-align: center;
  background: transparent;
  padding: 15px 20px;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  pointer-events: auto;
  position: relative; /* 確保正確定位 */
  z-index: 10; /* 確保文字在最上層 */
}

.caption-centered h2 {
  color: var(--background-color);
  font-weight: bold;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
  text-align: center;
}

.caption-centered p {
  color: var(--light-gold);
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  margin-bottom: 5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  text-align: center;
}

/* 響應式設計更新 */
@media (max-width: 768px) {
  .carousel-caption {
      max-width: 100%;
      padding: 20px;
      left: 0;
      right: 0;
      width: 100%;
      text-align: center;
      background: rgba(34, 24, 20, 0.7);
  }

  .banner-text-content {
      max-width: 100%;
      padding: 0;
  }

  .carousel-caption h2 {
      font-size: 1.8rem;
      margin-bottom: 10px;
      text-align: center;
  }

  .carousel-caption p {
      font-size: 1.2rem;
      margin-bottom: 15px;
      text-align: center;
  }

  .carousel-caption .banner-description {
      font-size: 1rem;
      max-width: 100%;
      text-align: center;
      margin: 0 auto;
  }
  
  /* Enhanced mobile navigation buttons */
  .carousel-control-prev,
  .carousel-control-next {
      width: 40px;
      height: 40px;
      background-color: rgba(0, 0, 0, 0.6);
      border-radius: 50%;
      z-index: 20;
  }
}

/*==================================================
=                   頁尾樣式                     =
==================================================*/
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
  width: 100%;
}

.footer h5 {
  font-weight: bold;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.footer p {
  margin-bottom: 0.7rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--light-gold);
}

.footer .copyright {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-container {
  margin-right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info {
  flex: 1;
}

/* Footer links styling */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light-gold);
}

/* Responsive footer */
/* 已合併到響應式設計區塊 */

.footer-logo {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* Banner輪播效果 */
.carousel-item {
  transition: transform 1.2s ease-in-out;  /* 調整過渡時間和效果 */
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}



.vision-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.vision-section .row {
  width: 100%;
  margin: 0;
}

.vision-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*==================================================
=                 公司特色樣式                   =
==================================================*/
.company-features {
  position: relative;
  overflow: visible;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.company-features .container {
  max-width: 100%;
  padding: 0;
}

.company-features::before,
.company-features::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100vw;
  height: 10px;
  background-color: var(--secondary-color);
  transform: translateX(calc((1200px - 100vw) / 2));
}

.company-features::before {
  top: 0;
  clip-path: polygon(0 0, 30% 100%, 100% 100%, 100% 0);
}

.company-features::after {
  bottom: 0;
}

@media (max-width: 1200px) {
  .company-features::before,
  .company-features::after {
      transform: translateX(0);
      left: 0;
      width: 100vw;
  }
}

/* 公司介紹時間軸樣式 */
.timeline-container {
  position: relative;
  min-height: 60vh;  
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;  
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 180, 216, 0.15) 100%);  /* 漸層背景 */
  overflow: visible;  
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/company/pattern.png') repeat;  /* 添加紋理 */
  opacity: 0.1;
  z-index: 0;
}

.timeline-circle {
  position: relative;
  width: 400px;  
  height: 400px;
  margin: 0 auto;
  z-index: 1;
  background: transparent;  /* 移除背景 */
}

/*==================================================
=                  時間軸樣式                    =
==================================================*/
.timeline-card {
  position: absolute;
  width: 180px;  
  opacity: 0;
  transform: translateY(30px);  
  transition: all 0.6s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;  
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  left: 50%;
  top: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 2;  
  backdrop-filter: blur(5px);  /* 磨砂玻璃效果 */
}

.timeline-card h3 {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;  
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.timeline-card p {
  color: #333;
  font-size: 0.85rem;  
  line-height: 1.3;
  margin: 0;
}

.timeline-card.visible {
  opacity: 1;
  transform: none;  
}

.timeline-card.pos-0.visible { transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg); }
.timeline-card.pos-1.visible { transform: translate(-50%, -50%) rotate(72deg) translateX(150px) rotate(-72deg); }
.timeline-card.pos-2.visible { transform: translate(-50%, -50%) rotate(144deg) translateX(150px) rotate(-144deg); }
.timeline-card.pos-3.visible { transform: translate(-50%, -50%) rotate(216deg) translateX(150px) rotate(-216deg); }
.timeline-card.pos-4.visible { transform: translate(-50%, -50%) rotate(288deg) translateX(150px) rotate(-288deg); }

/*==================================================
=               時間軸連接器樣式                 =
==================================================*/
.timeline-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;  
  height: 300px;
  border: 2px dashed rgba(0, 123, 255, 0.4);  /* 調整連接線顏色 */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
  background: transparent;  /* 移除背景 */
}

/* 合併重複的timeline-connector.visible樣式 */
.timeline-connector.visible {
  opacity: 1;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.02); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* 已合併到上方 */

/* 響應式調整 */
@media (max-width: 768px) {
  .timeline-circle {
      width: 100%;
      height: auto;
  }

  .timeline-card {
      position: relative;
      width: 100%;
      max-width: 280px;
      transform: none !important;
      margin: 1rem auto;
      opacity: 0;
      left: auto;
      top: auto;
  }

  .timeline-card.visible {
      opacity: 1;
      transform: translateY(0) !important;
  }

  .timeline-connector {
      display: none;
  }
}

/*==================================================
=               品質保證區域樣式                 =
==================================================*/
.quality-section {
  position: relative;
  padding: 60px 0 70px;
  background: #f8f9fa;
  overflow: visible;
}

.quality-section .section-title {
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

/*==================================================
=                 流程容器樣式                   =
==================================================*/
.process-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.process-item {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  text-align: center;
  margin: 0 10px 30px;
  transition: transform 0.3s ease;
  position: relative; /* 確保定位正確 */
  z-index: 1; /* 避免被其他元素覆蓋 */
}

.process-image {
  width: 100%;
  max-width: 380px;
  height: 260px;
  margin: 0 auto 1.5rem;
  background-color: transparent;
  border-radius: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.process-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px transparent;
  background-color: transparent !important;
}

.process-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  background-color: transparent;
}

.process-image img:hover {
  background-color: transparent;
}

.process-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 0.8rem;
  line-height: 1.4;
}

.process-text-en {
  font-size: 1rem;
  color: #777;
  font-weight: normal;
  margin-top: 0.3rem;
  display: block;
}

.spindle-wrapper {
  text-align: center;
  padding: 2rem 0;
}

.spindle-main {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.spindle-main img {
  width: 100%;
  height: auto;
}

.spindle-caption {
  font-size: 1.1rem;
  color: var(--primary-color);
  line-height: 1.4;
}

/*==================================================
=                   文字樣式                     =
==================================================*/
.caption-text-en {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-top: 0.3rem;
}

@media (max-width: 992px) {
  .quality-section {
    padding: 40px 0;
  }
  
  .process-container {
    justify-content: center;
  }
  
  .process-item {
    min-width: 220px;
    max-width: 280px;
    margin: 0 15px 40px;
  }
  
  .process-image {
    max-width: 240px;
    min-height: 160px;
    padding: 1rem;
  }
  
  .process-text {
    font-size: 1.3rem;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .quality-section {
    padding: 30px 0 40px;
  }
  
  .quality-section .section-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
  }
  
  .process-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .process-item {
    margin-bottom: 3rem;
    padding: 0;
    width: 100%;
    max-width: 260px;
  }

  .process-item:last-child {
    margin-bottom: 1.5rem;
  }

  .process-image {
    max-width: 200px;
    min-height: 140px;
    height: auto;
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .process-image img {
    max-width: 85%;
    max-height: 85%;
  }
  
  .process-text {
    font-size: 1.2rem;
    margin-top: 0.8rem;
  }
  
  .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 10px auto;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .video-section {
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
  }

  .process-text-en {
      font-size: 0.8rem;
  }

  .spindle-caption {
      font-size: 1rem;
  }

  .caption-text-en {
      font-size: 0.85rem;
  }
  
  .feature-list li {
      white-space: normal;
  }
  
  .product-item h3 {
      white-space: normal;
  }
}

/*==================================================
=              公司與產品介紹樣式                =
==================================================*/
.company-intro,
.product-intro {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/*==================================================
=              圖片與媒體容器樣式                =
==================================================*/
.feature-card .col-5.d-flex {
  padding-top: 20px;
}

.feature-card .img-fluid {
  margin-bottom: 15px;
}

/* 影片容器樣式 - 全局 */
.video-container-new {
  position: relative;
  width: 100%;
  padding-top: 10%; /* 調整為10%的高度 */
  overflow: hidden;
  margin-top: 15px;
}

.video-container-new iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 按鈕居中樣式 */
.feature-footer {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Logo 樣式 */
.navbar-logo {
  height: 50px;
  width: auto;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-top: 1rem;
}

/*==================================================
=                   卡片樣式                     =
==================================================*/
.feature-card {
  height: auto;
  min-height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px 15px 15px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.video-section {
  height: auto;
  min-height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px 15px 15px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
}

.feature-list li {
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  line-height: 1.3;
  white-space: nowrap;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list li i {
  color: var(--secondary-color);
  margin-right: 8px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-list li.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  width: 100%;
  overflow: visible;
}

/*==================================================
=                 產品項目樣式                   =
==================================================*/
.product-items {
  margin-top: 15px;
  margin-left: -15px;
  margin-right: -15px;
}

.product-item {
  background: white;
  border-radius: 8px;
  padding: 12px 5px;
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  width: 100%;
}

/* 已合併到上方product-item:hover樣式 */

.product-item img {
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-item h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: visible;
  line-height: 1.3;
  padding: 0 5px;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}

/* 調整標題大小 */
.section-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

/* 影片區塊樣式 */
.video-section {
  margin-bottom: 20px;
  height: auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例，更適合各種設備 */
  height: 0;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.company-features {
  padding-top: 40px;
  padding-bottom: 40px;
  overflow: visible;
  width: 100%;
}

@media (max-width: 992px) {
  .feature-card, .video-section {
    margin-bottom: 30px;
  }
  
  .video-wrapper {
    padding-bottom: 65%;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
}

/* 小螢幕手機 (576px以下) */
@media (max-width: 576px) {
  /* 區塊相關 */
  .section {
    padding: 20px 0;
    overflow: visible;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  /* 流程相關 */
  .process-item {
    max-width: 220px;
  }
  
  .process-image {
    max-width: 180px;
    min-height: 120px;
  }
  
  .process-text {
    font-size: 1.1rem;
  }
  
  /* 產品相關 */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info h4 {
    font-size: 1rem;
  }
  
  .product-item h3 {
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.2;
  }
  
  .container {
    padding: 0 5px;
  }
  
  .video-section, .feature-card {
    padding: 12px 8px;
  }
}

/*==================================================
=                  響應式設計                    =
==================================================*/
/* 將所有響應式設計統一整理到這個區塊 */

/* 大螢幕設備 (1920px以下) */
@media (max-width: 1920px) {
  /* 輪播圖相關樣式 */
  .carousel-caption {
      padding: 20px 40px;
      max-width: 85%;
  }
  
  .carousel-caption h2 {
      font-size: 1.8rem;
      margin-bottom: 8px;
  }
  
  .carousel-caption p {
      font-size: 1.1rem;
      margin-bottom: 10px;
  }
  
  .banner-text-content {
      max-width: 80%;
  }
  
  .feature-list li {
      white-space: normal;
  }
}

/* 平板設備 (992px以下) */
@media (max-width: 992px) {
  /* 導航欄相關 */
  .navbar-logo {
    height: 55px;
    width: auto;
    margin-right: 10px;
  }
  
  /* 頁尾相關 */
  .footer {
    padding: 2.5rem 0;
  }
  
  .footer h5 {
    font-size: 1.3rem;
  }
  
  .footer p {
    font-size: 1rem;
  }
  
  .footer-logo {
    width: 100px;
  }
  
  /* 區塊相關 */
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  /* 特色卡片相關 */
  /* 重複定義，已在其他地方定義 */
  /* .feature-icon {
    height: 160px;
  } */
  
  .feature-title {
    font-size: 1.3rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  /* 產品相關 */
  .product-grid {
    gap: 10px;
  }
  
  .product-image {
    height: 100px;
  }
  
  .product-info h4 {
    font-size: 0.85rem;
  }
  
  /* 品質保證區域 */
  .quality-section {
    padding: 40px 0;
  }
  
  .process-container {
    justify-content: center;
  }
  
  .process-item {
    min-width: 220px;
    max-width: 280px;
    margin: 0 15px 40px;
  }
  
  .process-image {
    max-width: 240px;
    min-height: 160px;
    padding: 1rem;
  }
  
  .process-text {
    font-size: 1.3rem;
    margin-top: 1rem;
  }
}

/* 手機設備 (768px以下) */
@media (max-width: 768px) {
  /* 全局相關 */
  body {
    padding-top: 56px; /* 減少頂部空間，適應較小的導航欄 */
  }
  
  /* 區塊相關 */
  .section {
    padding: 25px 0;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  /* 輪播圖相關 */
  .carousel-caption {
    padding: 15px 25px;
    max-width: 100%;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(34,24,20,0.8) 100%);
    left: 0;
    bottom: 0;
    right: 0;
  }
  
  .carousel-caption h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .carousel-caption .banner-description {
    font-size: 1rem;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  /* 導航控制按鈕 */
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 20;
  }
  
  /* 頁尾相關 */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-logo-container {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .footer h5 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
  }
  
  .footer p {
    font-size: 1rem;
  }
  
  /* 特色卡片相關 */
  .feature-box {
    margin-bottom: 30px;
  }
  
  /* 重複定義，已在其他地方定義 */
  /* .feature-icon {
    height: 200px;
  } */
  
  .video-feature .feature-icon {
    height: 250px;
  }
  
  .feature-list li {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .feature-card, .video-section {
    padding: 15px;
    margin-bottom: 25px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  
  .features-container .row {
    margin-bottom: 20px;
    overflow: visible;
  }
  
  .feature-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, #BF8615 0%, #E5C389 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(191, 134, 21, 0.3);
    z-index: 1;
  }
  
  .feature-circle i {
    color: white;
    font-size: 24px;
  }
  
  .feature-circle svg {
    width: 28px;
    height: 28px;
    fill: white;
  }
  
  .feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .feature-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .feature-footer {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 10px;
    text-align: center;
  }
  
  /* 網頁版產品網格樣式 - 不影響響應式 */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* 增加間距 */
    margin-bottom: 25px; /* 增加底部外邊距 */
    width: 100%;
    padding-bottom: 10px; /* 增加底部內邊距 */
  }
  
  .product-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: visible; /* 改為可見溢出 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin-bottom: 15px; /* 增加底部外邊距 */
    padding-bottom: 10px; /* 增加底部內邊距 */
  }
  
  .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .product-image {
    height: 160px; /* 增加高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 20px; /* 增加底部內邊距 */
    background-color: white;
    flex: 1;
    position: relative;
    overflow: visible; /* 改為可見溢出 */
  }
  
  .product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .product-item:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-info {
    padding: 12px 10px 15px; /* 增加底部內邊距 */
    text-align: center;
    background: linear-gradient(90deg, rgba(191, 134, 21, 0.1) 0%, rgba(229, 195, 137, 0.1) 100%);
    position: relative;
    z-index: 1;
    margin-bottom: 5px; /* 增加底部外邊距 */
  }
  
  .product-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .company-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .highlight-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
  }
  
  .highlight-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: normal; /* 允許文字換行 */
    line-height: 1.4;
  }
  
  /* 響應式設計媒體查詢 */
  @media (max-width: 1399px) {
    .product-image {
      height: 130px;
    }
  }
  
  @media (max-width: 1199px) {
    .product-image {
      height: 120px;
    }
    
    .product-info h4 {
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 991px) {
    .features-container .row {
      margin-bottom: 30px;
    }
    
    .feature-card {
      margin-bottom: 0;
      padding-bottom: 20px;
    }
    
    .product-image {
      height: 110px;
      padding: 8px;
    }
    
    .product-info {
      padding: 10px 8px;
    }
    
    .product-info h4 {
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 767px) {
    .row.g-2 > .col-md-4 {
      margin-bottom: 30px;
    }
    
    .row.g-2 > .col-md-4:last-child {
      margin-bottom: 10px;
    }
    
    .feature-header h3 {
      font-size: 1.3rem;
    }
    
    .feature-icon {
      width: 50px;
      height: 50px;
    }
    
    .feature-icon svg {
      width: 24px;
      height: 24px;
    }
    
    .highlight-item span {
      font-size: 0.9rem;
    }
    
    /* 手機版特殊處理 - 確保產品完整顯示 */
    .feature-body .product-grid {
      /* 保持網格布局但調整參數 */
      grid-template-columns: repeat(2, 1fr);
      gap: 20px; /* 增加間距 */
      max-width: 450px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 40px; /* 進一步增加底部外邊距 */
      padding-bottom: 25px; /* 進一步增加底部內邊距 */
    }
    
    .feature-body .product-item {
      overflow: visible;
      margin-bottom: 30px; /* 進一步增加底部外邊距 */
      padding-bottom: 25px; /* 進一步增加底部內邊距 */
    }
    
    .product-image {
      height: 180px; /* 進一步增加高度 */
      padding: 15px 10px 30px; /* 進一步增加底部內邊距 */
    }
    
    /* 增加特定的底部空間 */
    .feature-footer {
      margin-top: 30px; /* 增加頂部外邊距 */
      padding-top: 30px; /* 增加頂部內邊距 */
      padding-bottom: 20px; /* 增加底部內邊距 */
    }
    
    .product-info h4 {
      font-size: 0.9rem;
    }
    
    .feature-footer {
      padding-top: 25px;
      padding-bottom: 15px;
    }
  }
  
  @media (max-width: 575px) {
    .feature-card {
      padding: 20px 15px 30px; /* 增加底部內邊距 */
      margin-bottom: 30px; /* 增加底部外邊距 */
    }
    
    .feature-body .product-grid {
      max-width: 100%;
      gap: 15px; /* 增加間距 */
      margin-bottom: 35px; /* 進一步增加底部外邊距 */
      padding-bottom: 25px; /* 進一步增加底部內邊距 */
    }
    
    .feature-body .product-item {
      margin-bottom: 25px; /* 進一步增加底部外邊距 */
      padding-bottom: 20px; /* 進一步增加底部內邊距 */
    }
    
    .product-image {
      height: 160px; /* 進一步增加高度 */
      padding: 10px 10px 25px; /* 進一步增加底部內邊距 */
    }
    
    .product-info {
      padding: 10px 5px 15px; /* 進一步增加底部內邊距 */
      margin-bottom: 10px; /* 增加底部外邊距 */
    }
    
    .product-info h4 {
      font-size: 0.8rem;
      line-height: 1.3;
    }
    
    .feature-header {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      margin-bottom: 20px;
    }
    
    .feature-icon {
      margin: 0;
    }
  }
  
  @media (max-width: 450px) {
    .feature-card {
      padding: 20px 15px 35px; /* 進一步增加底部內邊距 */
      margin-bottom: 35px; /* 進一步增加底部外邊距 */
    }
    
    .feature-body .product-grid {
      gap: 12px;
      margin-bottom: 30px; /* 進一步增加底部外邊距 */
      padding-bottom: 20px; /* 增加底部內邊距 */
    }
    
    .feature-body .product-item {
      margin-bottom: 20px; /* 進一步增加底部外邊距 */
      padding-bottom: 15px; /* 進一步增加底部內邊距 */
    }
    
    .product-image {
      height: 140px; /* 進一步增加高度 */
      padding: 8px 8px 20px; /* 進一步增加底部內邊距 */
    }
    
    .product-info {
      padding: 8px 5px 12px; /* 進一步增加底部內邊距 */
      margin-bottom: 8px; /* 增加底部外邊距 */
    }
    
    .product-info h4 {
      font-size: 0.75rem;
      line-height: 1.2;
    }
  }
  
  @media (max-width: 380px) {
    .feature-card {
      padding: 20px 15px 40px; /* 進一步增加底部內邊距 */
      margin-bottom: 40px; /* 進一步增加底部外邊距 */
    }
    
    .feature-body .product-grid {
      gap: 10px;
      margin-bottom: 35px; /* 進一步增加底部外邊距 */
      padding-bottom: 25px; /* 進一步增加底部內邊距 */
    }
    
    .feature-body .product-item {
      margin-bottom: 25px; /* 進一步增加底部外邊距 */
      padding-bottom: 20px; /* 進一步增加底部內邊距 */
    }
    
    .product-image {
      height: 130px; /* 進一步增加高度 */
      padding: 8px 8px 25px; /* 進一步增加底部內邊距 */
    }
    
    .product-info {
      padding: 8px 5px 15px; /* 進一步增加底部內邊距 */
      margin-bottom: 10px; /* 增加底部外邊距 */
    }
    
    /* 確保底部按鈕有足夠空間 */
    .feature-footer {
      margin-top: 35px; /* 進一步增加頂部外邊距 */
      padding-top: 35px; /* 進一步增加頂部內邊距 */
      padding-bottom: 25px; /* 進一步增加底部內邊距 */
    }
  }
  
  .video-wrapper {
    padding-bottom: 56.25%; /* 16:9 比例，更適合手機 */
    margin-top: 10px;
  }
  
  /* 產品相關 */
  .product-item h3 {
    white-space: normal;
    font-size: 1rem;
  }
  
  /* 品質保證區域 */
  .quality-section {
    padding: 30px 0 40px;
  }
  
  .quality-section .section-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
  }
  
  .process-container {
    flex-direction: column;
    align-items: center;
  }
  
  .process-item {
    max-width: 300px;
    margin: 0 0 40px;
  }
  
  .process-image {
    max-width: 200px;
    min-height: 140px;
  }
  
  .process-text {
    font-size: 1.2rem;
  }
  
  .process-text-en {
    font-size: 0.85rem;
  }
  
  .navbar-logo {
    height: 30px;
    width: auto;
  }
  
  .footer {
    padding: 2rem 0;
    text-align: center;
  }
  
  .footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-logo {
    width: 150px;
    margin: 1.5rem auto 0;
  }
  
  .col-md-4.text-md-end {
    text-align: center !important;
    margin-top: 1.5rem;
  }
}




/*==================================================
=                 下拉選單樣式                   =
==================================================*/
.dropdown-menu {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto; /* 避免下拉選單過長導致內容被遮擋 */
  border: none;
  border-radius: 8px;
  border-top: 3px solid var(--secondary-color);
}

.dropdown-item {
  color: var(--primary-color);
}

.dropdown-item:hover {
  background: var(--metallic-gold);
  color: var(--background-color);
}

/* 下拉選單樣式更新 */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 確保下拉選單位置正確 */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  top: 100%;
  left: 0;
}

/* 響應式設計 */
@media (max-width: 992px) {
  .navbar {
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 6px 12px;
    margin: 0 3px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  .navbar {
    padding: 0.3rem 0.6rem;
    width: 100%;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding-left: 20px;
    border: none;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    transform: none;
  }
  
  .navbar-nav .nav-link {
    padding: 8px 10px;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/*==================================================
=               下拉選單箭頭樣式                 =
==================================================*/
.hide-caret::after {
  display: none !important;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .nav-link {
  padding-right: 15px;  
}

.nav-item.dropdown:hover .nav-link {
  padding-right: 30px;
  transition: padding-right 0.3s ease;
}

.nav-item.dropdown::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary-color);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  pointer-events: none; 
}

.nav-item.dropdown:hover::after {
  opacity: 1;
}

/* 在hover時改變箭頭顏色 */
.nav-item.dropdown:hover::after {
  border-top-color: white;
}

/* 響應式設計中的箭頭 */
@media (max-width: 768px) {
  .nav-item.dropdown:hover .nav-link {
      padding-right: 40px;
  }
  .nav-item.dropdown::after {
      right: 25px;
  }
}

.navbar-nav .nav-link {
  font-size: 1rem !important;
}

.navbar-nav .nav-link.active {
  font-size: 1rem !important;
}

.navbar-nav .nav-item .nav-link {
  font-size: 1rem !important;
}

/*==================================================
=               流程線與點的樣式                 =
==================================================*/
.process-line {
    position: absolute;
    height: 2px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    z-index: 0;
}

.process-line-1 {
    top: 80px;
    left: 20%;
    width: 20%;
}

.process-line-2 {
    top: 80px;
    left: 50%;
    width: 20%;
}

.process-line-3 {
    top: 80px;
    left: 80%;
    width: 20%;
}

.process-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(191, 134, 21, 0.2);
}

.process-dot-1 {
    top: 80px;
    left: 20%;
    transform: translate(-50%, -50%);
}

.process-dot-2 {
    top: 80px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.process-dot-3 {
    top: 80px;
    left: 80%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .process-line, .process-dot {
        display: none;
    }
    
    /* Hide carousel indicators on mobile devices */
    .carousel-indicators {
        display: none !important;
    }
}

/*==================================================
=                高級公司特色區塊樣式                  =
==================================================*/
.company-features-premium {
    padding: 100px 0;
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
}

.premium-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.premium-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,249,249,0.9) 100%);
    z-index: 1;
}

.premium-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(191, 134, 21, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.header-content {
    position: relative;
    padding: 30px 0;
    max-width: 800px;
    margin: 0 auto;
}

.section-badge-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E5C389 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(191, 134, 21, 0.25);
    position: relative;
    z-index: 2;
}

.badge-connector {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: var(--metallic-gold);
    z-index: 1;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--metallic-gold);
    display: inline-block;
}

.title-line {
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), #E5C389);
    flex: 1;
    margin: 0 10px;
}

.section-title-premium {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--metallic-gold);
    transition: width 0.5s ease;
}

.section-header:hover .section-title-premium::after {
    width: 100px;
}

.section-subtitle-premium {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* 浮動裝飾元素 */
.floating-gear {
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23bf8615" opacity="0.1"><path d="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    animation: rotate 20s linear infinite;
}

.gear-1 {
    width: 180px;
    height: 180px;
    top: 5%;
    right: 5%;
    opacity: 0.07;
}

.gear-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 5%;
    opacity: 0.05;
    animation-direction: reverse;
    animation-duration: 25s;
}

.gear-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 15%;
    opacity: 0.04;
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-dots {
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 10%;
    background-image: radial-gradient(rgba(191, 134, 21, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E5C389 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(191, 134, 21, 0.2);
}

.bg-highlight {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 134, 21, 0.1) 0%, rgba(191, 134, 21, 0.05) 50%, transparent 70%);
    z-index: 0;
}

.left-highlight {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -200px;
}

.right-highlight {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -150px;
}

.precision-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.precision-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    border: 1px solid rgba(191, 134, 21, 0.15);
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.precision-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(191, 134, 21, 0.05) 0%, rgba(191, 134, 21, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.precision-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(191, 134, 21, 0.1);
}

.precision-badge:hover::before {
    opacity: 1;
}

.precision-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    position: relative;
}

.precision-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--metallic-gold);
    transition: transform 0.3s ease;
}

.precision-badge:hover .precision-icon svg {
    transform: scale(1.1);
}

.precision-badge span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* 特色區塊網格佈局 */
.premium-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* 高級特色卡片樣式 - 與基本特色卡片樣式區分 */
.premium-feature-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--secondary-color);
}

.premium-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), #E5C389);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-feature-card:hover::before {
    opacity: 1;
}

.premium-feature-card-header {
    padding: 30px 30px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
    position: relative;
    margin-right: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E5C389 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(191, 134, 21, 0.2);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}

.premium-feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.icon-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 70px;
    height: 70px;
    border: 2px dashed rgba(191, 134, 21, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.feature-title-wrapper {
    flex: 1;
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.feature-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.feature-content {
    padding: 30px;
    flex: 1;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* 統計數據樣式 */
.feature-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 5px;
    background: rgba(249, 249, 249, 0.5);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--metallic-gold);
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--secondary-color), #E5C389);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* 亮點樣式 */
.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    width: calc(50% - 8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(191, 134, 21, 0.1);
    border-color: rgba(191, 134, 21, 0.1);
}

.highlight-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(249, 249, 249, 0.8);
    border-radius: 8px;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--metallic-gold);
    transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon svg {
    transform: scale(1.1);
}

.highlight-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 底部按鈕樣式 */
.features-container {
    margin: 0 0 20px;
}

.feature-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background: rgba(249, 249, 249, 0.3);
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E5C389 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(191, 134, 21, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.feature-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(191, 134, 21, 0.25);
    color: white;
}

.feature-btn:hover::before {
    left: 100%;
}

.feature-btn .btn-arrow {
    width: 18px;
    height: 18px;
    fill: white;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.feature-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/*==================================================
=                 視頻卡片樣式                   =
==================================================*/
.video-card {
    overflow: visible;
}

.video-card-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 2;
}

.premium-video-container:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(191, 134, 21, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.play-button svg {
    width: 35px;
    height: 35px;
    fill: white;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.play-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.video-card-container:hover .play-button {
    transform: scale(1.1);
    background: var(--metallic-gold);
}

.premium-video-container:hover .play-button svg {
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    color: white;
}

.video-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(191, 134, 21, 0.8);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 90%;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/*==================================================
=                 產品展示樣式                   =
==================================================*/
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(191, 134, 21, 0.15);
}

.product-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(249, 249, 249, 0.5);
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    transition: all 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-badge.hot {
    background: #e74c3c;
}

.product-badge.new {
    background: #3498db;
}

.product-details {
    padding: 20px;
    text-align: center;
}

.product-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-specs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 249, 249, 0.8);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.spec-icon {
    margin-right: 5px;
    font-size: 1rem;
}

.spec-text {
    color: var(--secondary-color);
    font-weight: 500;
}

.product-link {
    color: var(--metallic-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--metallic-gold);
    transition: width 0.3s ease;
}

.product-link:hover {
    color: var(--secondary-color);
}

.product-link:hover::after {
    width: 100%;
}



/*==================================================
=                 特色區塊樣式                   =
==================================================*/
.feature-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.feature-block {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-block:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/*==================================================
=                 特色卡片樣式                   =
==================================================*/
.feature-card {
    height: 100%;
    background-color: #f9f6f0; /* Light cream/beige color instead of white */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Add subtle variation to each card */
.col-md-4:nth-child(1) .feature-card {
    background-color: #f8f4ec; /* Slightly different shade for first card */
}

.col-md-4:nth-child(2) .feature-card {
    background-color: #f9f6f0; /* Original shade for second card */
}

.col-md-4:nth-child(3) .feature-card {
    background-color: #f7f3ea; /* Slightly different shade for third card */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #BF8615 0%, #E5C389 100%);
}

/* 基本視頻容器樣式 */
.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    line-height: 0;
    font-size: 0;
}

/* 高級視頻容器樣式 - 與基本視頻容器區分 */
.premium-video-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.premium-video-container:hover .video-thumbnail {
    transform: scale(1.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: 0 12px 30px rgba(191, 134, 21, 0.12);
    transform: translateY(-5px);
}

.feature-header {
    padding: 1.2rem 1.5rem 0.8rem;
    border-bottom: 1px solid rgba(191, 134, 21, 0.15); /* Changed to gold-tinted border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f1e6; /* Slightly darker than the card background */
}

/* Add subtle variation to each card header */
.col-md-4:nth-child(1) .feature-header {
    background-color: #f3eee2; /* Slightly different shade for first card */
}

.col-md-4:nth-child(2) .feature-header {
    background-color: #f5f1e6; /* Original shade for second card */
}

.col-md-4:nth-child(3) .feature-header {
    background-color: #f2ede0; /* Slightly different shade for third card */
}

.feature-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 重複定義，已在其他地方定義 */
/* .feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(191, 134, 21, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.feature-icon i {
    color: #bf8615;
    font-size: 18px;
}



/* Special styling for the video card */
.col-md-4:nth-child(2) .feature-body {
    padding: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.col-md-4:nth-child(2) .feature-body p {
    padding: 0.8rem 1.5rem;
    margin-top: 0;
}

/* Removed feature-footer as buttons are no longer needed */
/* Instead, add padding to the bottom of feature-body */
.feature-body {
    padding: 1.2rem 1.5rem 1.5rem;
    flex: 1;
    background: linear-gradient(to bottom, rgba(249, 246, 240, 0.8) 0%, rgba(249, 246, 240, 0.95) 100%);
}

/* Footer styles removed as they're no longer needed */

/* Enhanced responsive styling for feature cards */
@media (max-width: 991px) {
    .features-container .row {
        margin: 0 -10px;
    }
    
    .features-container .col-md-4 {
        padding: 0 10px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .feature-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .features-container .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .feature-card {
        height: auto;
        max-width: 450px;
        margin: 0 auto 20px;
    }
    
    .feature-header {
        padding: 1rem 1.2rem 0.7rem;
    }
    
    .feature-body {
        padding: 1rem 1.2rem 1.2rem;
    }
    
    .col-md-4:nth-child(2) .feature-body p {
        padding: 0.7rem 1.2rem;
    }
    
    /* Make cards clickable to their respective pages */
    .col-md-4:nth-child(1) .feature-card {
        cursor: pointer;
        position: relative;
    }
    
    .col-md-4:nth-child(1) .feature-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .col-md-4:nth-child(3) .feature-card {
        cursor: pointer;
        position: relative;
    }
    
    .col-md-4:nth-child(3) .feature-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .feature-card {
        max-width: 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/*==================================================
=                   按鈕樣式                     =
==================================================*/
.btn-feature {
    display: inline-block;
    background: linear-gradient(90deg, #BF8615 0%, #E5C389 100%);
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 134, 21, 0.3);
    border: none;
    /* 移除min-width屬性，避免hover時變成長方形 */
}

.btn-feature:hover {
    background: linear-gradient(90deg, #E5C389 0%, #BF8615 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(191, 134, 21, 0.4);
    border-radius: 50px; /* 確保懸停時保持圓形 */
}

/*==================================================
=                 公司簡介區塊                   =
==================================================*/
.stats-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #bf8615;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #777;
}

.highlight-list {
    margin: 20px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid rgba(191, 134, 21, 0.3);
}

.highlight-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid rgba(191, 134, 21, 0.7);
    transform: translateX(3px);
}

.highlight-item i {
    color: #bf8615;
    font-size: 22px;
    margin-right: 12px;
}

.highlight-item span {
    font-size: 17px;
    color: #555;
    font-weight: 500;
}

/* 影片區塊 */
.video-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid rgba(191, 134, 21, 0.5); /* Stronger gold border */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: #000; /* Black background for video */
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    transition: opacity 0.3s ease;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    z-index: 2;
}

.video-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(191, 134, 21, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 播放按鈕懸停效果 */
.play-button:hover {
    background-color: rgba(191, 134, 21, 1);
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

.play-button:hover {
    background-color: rgba(191, 134, 21, 1);
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30; /* 提高z-index確保影片顯示在最上層 */
    display: none;
    background-color: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Direct iframe in video-box (for the homepage) */
.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10; /* Ensure iframe is above other elements */
}

/* 產品介紹區塊 */
/* 合併product-grid樣式 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-item {
    transition: transform 0.3s ease;
}

.product-item:hover {
    background-color: rgba(249, 249, 249, 0.5);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 正方形比例 */
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(249, 249, 249, 0.5);
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80%;
    max-width: 80%;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.product-tag.hot {
    background-color: #e74c3c;
}

.product-tag.new {
    background-color: #2ecc71;
}

.product-info {
    padding: 12px 5px 5px;
}

.product-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.product-specs {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
}

/* 響應式設計 */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.btn-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* 響應式設計 */
@media (max-width: 991px) {
    .info-columns {
        flex-direction: column;
    }
    
    .video-card-container {
        height: 350px;
    }
    
    .video-content h3 {
        font-size: 1.6rem;
    }
    
    .video-content p {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    .premium-video-container {
        height: 300px;
    }
    
    .video-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .video-content h3 {
        font-size: 1.4rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .company-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}

/* 響應式設計 */
@media (max-width: 991px) {
    .features-row {
        flex-direction: column;
    }
    
    .feature-box {
        width: 100%;
    }
    
    .video-wrapper {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .company-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
    }
    
    .video-wrapper {
        height: 200px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 高級功能卡片樣式 */
.premium-feature-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 40px;
}

.premium-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(191, 134, 21, 0.15);
}

.premium-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--metallic-gold);
    transition: height 0.5s ease;
}

.premium-feature-box:hover::before {
    height: 100%;
}

/* 裝飾元素 */
.feature-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 1;
}

.decoration-line {
    position: absolute;
    top: 20px;
    right: -40px;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 134, 21, 0.3), transparent);
    transform: rotate(-45deg);
}

.decoration-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--metallic-gold);
    opacity: 0.2;
}

/* 特殊卡片樣式 */
.company-box, .product-box {
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.03);
}

.tech-box {
    grid-column: span 2;
    margin-top: 20px;
    background: linear-gradient(135deg, #fafafa 0%, white 100%);
}

.premium-feature-content {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.premium-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 3px 8px rgba(191, 134, 21, 0.3);
    margin-right: 25px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.premium-feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    z-index: -1;
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.premium-feature-box:hover .premium-feature-icon::after {
    transform: rotate(90deg);
}

.premium-feature-text {
    flex: 1;
}

.premium-feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
}

.premium-feature-desc {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.premium-svg {
    width: 32px;
    height: 32px;
    fill: white;
    transition: all 0.3s ease;
}

.premium-feature-box:hover .premium-svg {
    transform: scale(1.1);
}

/* 統計數據樣式 */
.premium-feature-details {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
}

.premium-feature-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--metallic-gold);
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--secondary-color), #E5C389);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* 公司亮點樣式 */
.company-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 0 10px;
    position: relative;
    z-index: 2; /* 確保內容在最上層 */
    margin-top: 20px; /* 將整個區塊往上移動，跟分隔線更近 */
}

.highlight-item {
    display: flex;
    align-items: center;
    background: rgba(249, 249, 249, 0.7);
    border-radius: 10px;
    padding: 15px 20px;
    width: calc(50% - 10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    overflow: hidden; /* 防止內容溢出 */
}

.highlight-item:hover {
    background: rgba(249, 249, 249, 0.9);
    box-shadow: 0 8px 20px rgba(191, 134, 21, 0.08);
    transform: translateY(-3px);
}

.highlight-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--metallic-gold);
}

.highlight-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 按鈕樣式 */
.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E5C389 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(191, 134, 21, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    max-width: 250px;
    margin: 0 auto;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.premium-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(191, 134, 21, 0.3);
    color: white;
}

.premium-btn:hover::before {
    left: 100%;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    fill: white;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.premium-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* 影片容器樣式 */
.video-box {
    padding: 0;
    overflow: hidden;
}

.premium-video-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    z-index: 2;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.premium-video-container:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(191, 134, 21, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.play-button svg {
    width: 35px;
    height: 35px;
    fill: white;
    margin-left: 5px;
}

.premium-video-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--metallic-gold);
}

.video-title-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 3;
    max-width: 80%;
}

.video-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(191, 134, 21, 0.8);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 10px;
}

.video-title-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0 0 10px 0;
}

.video-title-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 產品展示樣式 */
.premium-products-showcase {
    margin-top: 20px;
}

.product-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.product-item-premium {
    background: rgba(249, 249, 249, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-item-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(191, 134, 21, 0.15);
}

.product-image-wrapper {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 140px;
    transition: all 0.5s ease;
}

.product-item-premium:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-info-premium {
    padding: 15px 20px;
    text-align: center;
}

.product-info-premium h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-specs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.product-specs span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: rgba(249, 249, 249, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--metallic-gold);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 25px;
}

.category-tag {
    background: rgba(249, 249, 249, 0.8);
    border: 1px solid rgba(191, 134, 21, 0.1);
    color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 5px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    background: rgba(191, 134, 21, 0.1);
    transform: translateY(-2px);
}

.product-link {
    color: var(--metallic-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--metallic-gold);
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--secondary-color);
}

.product-link:hover::after {
    width: 100%;
}

/* 技術優勢樣式 */
.tech-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tech-advantage-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #E5C389);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: -1;
}

.tech-advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(191, 134, 21, 0.1);
}

.tech-advantage-item:hover::before {
    opacity: 1;
    height: 6px;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(249, 249, 249, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--metallic-gold);
}

.advantage-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.advantage-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.5;
}

/* 響應式設計 */
@media (max-width: 1199px) {
    .tech-advantages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .premium-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-box {
        grid-column: auto;
    }
    
    .premium-feature-box {
        padding: 30px;
    }
    
    .premium-feature-content {
        flex-direction: column;
        text-align: center;
    }
    
    .premium-feature-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .premium-feature-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .product-showcase-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tech-advantages {
        grid-template-columns: 1fr;
    }
    
    .company-highlights {
        flex-direction: column;
    }
    
    .highlight-item {
        width: 100%;
    }
    
    .section-title-premium {
        font-size: 1.8rem;
    }
    
    .section-subtitle-premium {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .section-title-premium {
        font-size: 2rem;
    }
    
    .premium-feature-box {
        padding: 25px;
    }
    
    .premium-video-container {
        height: 250px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 25px;
        height: 25px;
    }
    
    .video-title-overlay h3 {
        font-size: 1.2rem;
    }
    
    /* 優化移動版公司簡介卡片 */
    .company-highlights {
        gap: 10px;
        padding: 0 5px;
    }
    
    .highlight-item {
        width: 100%; /* 在移動版上每個項目佔滿整行 */
        padding: 8px 12px;
    }
    
    .highlight-item i {
        font-size: 0.9rem;
        min-width: 20px;
    }
    
    .highlight-item span {
        font-size: 0.9rem;
    }
    
    /* 確保卡片在移動設備上正確顯示 */
    .feature-card {
        margin-bottom: 20px;
        overflow: visible;
        z-index: 1;
    }
}

.feature-card-front, .feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.feature-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(191, 134, 21, 0.1);
}

.feature-card-back {
    background: white;
    transform: rotateY(180deg);
    border: 1px solid rgba(191, 134, 21, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
}

/* 重複定義，已在其他地方定義 */
/* .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--metallic-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(191, 134, 21, 0.2);
} */

.feature-svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.feature-card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* 功能列表樣式 */
.feature-list-new {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.feature-list-new li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
    color: var(--text-color);
}

.feature-check-new {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--metallic-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-check-new::before {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* 按鈕樣式 */
.btn-card {
    display: inline-block;
    padding: 10px 25px;
    background: var(--metallic-gold);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(191, 134, 21, 0.2);
}

.btn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(191, 134, 21, 0.3);
}

/* 新的視頻容器樣式 - 沒有白色背景 */
.video-container-new {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.video-container-new iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    color: white;
}

.feature-card-action {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* 影片卡片樣式 */
.video-card {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container-new {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.video-container-new iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 0;
}

.video-overlay .feature-card-title,
.video-overlay .feature-card-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 產品卡片樣式 */
.product-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.product-item-new {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item-new:hover img {
    transform: scale(1.1);
}

.product-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 15px 10px 10px;
    transition: all 0.3s ease;
}

.product-item-new:hover .product-item-overlay {
    background: linear-gradient(to top, rgba(191, 134, 21, 0.9), rgba(191, 134, 21, 0) 90%);
}

.product-item-overlay h4 {
    color: white;
    font-size: 0.85rem;
    margin: 0 0 8px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-product-new {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-product-new:hover {
    background: white;
    color: var(--secondary-color);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-card {
        grid-column: span 2;
    }
    
    .feature-card {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-card {
        grid-column: span 1;
    }
    
    .feature-card {
        height: 350px;
    }
    
    .feature-card-title {
        font-size: 1.4rem;
    }
}

.feature-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.feature-details {
    flex: 1;
    margin-bottom: 20px;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-item {
    display: flex;
    align-items: center;
    background-color: rgba(191, 134, 21, 0.05);
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background-color: rgba(191, 134, 21, 0.1);
    transform: translateX(5px);
}

.highlight-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: var(--metallic-gold);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.highlight-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.highlight-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.feature-action {
    margin-top: auto;
}

/* 已刪除重複樣式，使用上方定義的.btn-feature樣式 */

/* 刪除btn-feature::before樣式 */

/* 刪除重複的hover樣式 */

/* 刪除使用::before的樣式 */

/* 影片區塊樣式 */
.video-feature .feature-icon {
    height: 220px;
}

/* 基本視頻容器樣式 */
.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    line-height: 0;
    font-size: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #000;
    border: 3px solid rgba(191, 134, 21, 0.5);
    font-size: 0; /* Remove any potential spacing */
    line-height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
    display: block;
}

/* 產品展示樣式 */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.product-item-compact {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(191, 134, 21, 0.1);
}

.product-item-compact:hover {
    background-color: rgba(191, 134, 21, 0.05);
    transform: translateX(5px);
}

.product-image-compact {
    width: 80px;
    height: 80px;
    min-width: 80px;
    overflow: hidden;
    position: relative;
}

.product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item-compact:hover .product-image-compact img {
    transform: scale(1.1);
}

.product-info-compact {
    padding: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-info-compact h4 {
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.3;
}

.btn-product-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 24px;
    background: var(--metallic-gold);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-product-compact:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
    margin: 10px 0 0;
    font-style: italic;
}

/* 響應式設計 - 公司簡介區塊 */
@media (max-width: 1199px) {
    .company-highlights {
        margin-top: 20px;
    }
    
    .highlight-item {
        padding: 16px 20px;
    }
    
    .highlight-item i {
        font-size: 21px;
    }
    
    .highlight-item span {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .company-highlights {
        margin-top: 10px;
    }
    
    .highlight-item {
        padding: 15px 18px;
        width: 100%; /* 在平板上改為單欄顯示 */
        margin-bottom: 12px;
    }
    
    /* 增加卡片之間的間距 */
    .col-md-4.mb-4 {
        margin-bottom: 25px !important;
    }
}

@media (max-width: 767px) {
    .company-highlights {
        margin-top: 25px;
        margin-bottom: 100px;
    }
    
    .highlight-item {
        padding: 14px 16px;
        margin-bottom: 10px;
    }
    
    /* 增加三大卡之間的間距 */
    .col-md-4.mb-4 {
        margin-bottom: 60px !important;
    }
    
    .highlight-item i {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .highlight-item span {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .company-highlights {
        margin-top: 15px;
        margin-bottom: 30px;
    }
    
    .highlight-item {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .highlight-item i {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .highlight-item span {
        font-size: 15px;
    }
}
