/*==================================================
=                  變數與基本設定                  =
==================================================*/
: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;
}

/* Logo 樣式 */
.navbar-logo {
  height: 50px;
  width: auto;
}
/*==================================================
=                 下拉選單樣式                   =
==================================================*/
.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;
}
/*==================================================
=                 下拉箭頭樣式                   =
==================================================*/
.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;
}

.nav-item.dropdown:hover::after {
  border-top-color: white;
}

/* 確保所有導航項目字體大小一致 */
.navbar-nav .nav-link,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item .nav-link {
  font-size: 1rem !important;
}

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

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

.section:nth-child(even) {
  background-color: #f8f9fa;
}
.indexsection-title {
  color: #BF8619; /* 輔助色：金色 */
  font-weight: bold;
  font-size: 2rem; /* 更進一步縮小標題 */
  margin-top: 1rem; /* 更進一步減少上方間距 */
  margin-bottom: 0.5rem; /* 更進一步減少下方間距 */
  position: relative;
  padding-bottom: 0.5rem; /* 更進一步減少底部填充 */
  text-align: left;
  z-index: 2;
  letter-spacing: 1px; /* 保留字距 */
}
.indexsection-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--metallic-gold);
}
.section-title {
  color: #BF8619; /* 輔助色：金色 */
  font-weight: bold;
  font-size: 2rem; /* 更進一步縮小標題 */
  margin-top: 1rem; /* 更進一步減少上方間距 */
  margin-bottom: 1rem; /* 更進一步減少下方間距 */
  position: relative;
  padding-bottom: 0.5rem; /* 更進一步減少底部填充 */
  text-align: center;
  z-index: 2;
  letter-spacing: 1px; /* 保留字距 */
}

.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;
}
/*--------------------------------------------------
-               輪播基本結構                  -
--------------------------------------------------*/
.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 {
  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;
}

.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-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-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%;
}

/*--------------------------------------------------
-               中央標題樣式                  -
--------------------------------------------------*/
.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: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  text-align: center;
}
/*--------------------------------------------------
-               頁尾基本樣式                  -
--------------------------------------------------*/
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
  width: 100%;
}

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

.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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 170px;
}

.footer-info p {
  line-height: 1;
  margin: 0.3rem 0;
  padding: 0.2rem 0;
  color: white;
  opacity: 0.9;
}

.footer-info .copyright {
  line-height: 1;
  margin: 0.3rem 0;
  padding: 0.2rem 0;
  color: white;
  opacity: 0.8;
}

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

/*==================================================
=               品質保證區域樣式                 =
==================================================*/
.quality-section {
  position: relative;
  padding: 60px 0 70px;
  background: #FEFEFE;
  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;
}
/*==================================================
=                 特色卡片樣式                   =
==================================================*/
.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;
}

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

.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 */
}

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

.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%);
}

/*==================================================
=                 產品項目樣式                   =
==================================================*/

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

.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;
}
/*==================================================
=                高級公司特色區塊樣式                  =
==================================================*/
.company-features-premium {
    padding: 10px 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;
}

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

/* 浮動裝飾元素 */
.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;
}

.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;
}

.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);
}

/* 底部按鈕樣式 */
.features-container {
    margin: 0 0 20px;
}
/*==================================================
=                 產品展示樣式                   =
==================================================*/
/* Company and Product Introduction Section Styles */
.company-product-showcase {
  padding: 60px 0 10px;
  position: relative;
  overflow: hidden;
}

/* Section Headers */
.section-header {
  margin-bottom: 30px;
  position: relative;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, #BF8615, #E6A82E);
  margin-bottom: 20px;
}

/* Company Introduction Section */
.company-intro-section {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}

.company-image-container {
  flex: 1 1 500px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  max-height: 555px;
}

.company-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.company-image-container:hover .company-main-image {
  transform: scale(1.05);
}

.company-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px;
  color: white;
}

.company-image-overlay h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-image-overlay p {
  font-size: 1.2rem;
  margin: 10px 0 0;
  opacity: 0.9;
}

.company-details {
  flex: 1 1 500px;
  padding: 0 30px 0 50px;
}

.company-description {
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #555;
}

.company-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.highlight-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

.highlight-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.highlight-box:hover .highlight-icon-img {
  transform: scale(1.1);
}

.highlight-content h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.highlight-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Product Introduction Section */
.product-intro-section {
  padding: 20px 0;
}

/* Side-by-side Product Columns */
.product-columns {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.product-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card {
  height: 90%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Horizontal layout for product cards (image left, text right) */
.product-card.horizontal {
  flex-direction: row;
  align-items: stretch;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #BF8615, #E6A82E);
}

.product-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image-wrapper {
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* Adjust image wrapper for horizontal layout */
.product-card.horizontal .product-image-wrapper {
  flex: 0 0 30%;
  height: auto;
  min-height: 100px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  display: block;
  padding: 10px;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Adjust content for horizontal layout */
.product-card.horizontal .product-content {
  flex: 0 0 60%;
  padding: 30px;
}

.product-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.product-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #BF8615;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  flex-grow: 1;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #555;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.product-features li:hover {
  transform: translateX(5px);
  color: #333;
}

.product-features li i {
  color: #BF8615;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .product-columns {
      gap: 20px;
  }
  
  .product-image-wrapper {
      height: 180px;
  }
  
  .product-image {
      max-height: 150px;
  }
  
  .product-content {
      padding: 20px;
  }
  
  .product-content h3 {
      font-size: 1.3rem;
  }
  
  .product-features li {
      font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .product-columns {
      flex-direction: column;
      gap: 30px;
  }
  
  .product-column {
      width: 100%;
  }
  
  .product-image-wrapper {
      height: 200px;
  }
  
  .product-image {
      max-height: 160px;
  }
}

@media (max-width: 575.98px) {
  .product-image-wrapper {
      height: 180px;
  }
  
  .product-image {
      max-height: 140px;
  }
  
  .product-content {
      padding: 15px;
  }
  
  .product-content h3 {
      font-size: 1.2rem;
      margin-bottom: 15px;
  }
  
  .product-features li {
      font-size: 0.95rem;
      margin-bottom: 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .company-image-container {
      flex: 1 1 400px;
  }
  
  .company-details {
      padding: 30px 20px 0 30px;
  }
}

@media (max-width: 991.98px) {
  .company-intro-section {
      flex-direction: column;
  }
  
  .company-image-container {
      margin-bottom: 30px;
      max-height: 400px;
  }
  
  .company-details {
      padding: 20px 0;
  }
  
  .company-highlights-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .product-category, .product-category.reverse {
      flex-direction: column;
      padding: 25px;
  }
  
  .product-category::before, .product-category.reverse::before {
      width: 100%;
      height: 5px;
      top: 0;
      left: 0;
      right: auto;
      background: linear-gradient(to right, #BF8615, #E6A82E);
  }
}

@media (max-width: 767.98px) {
  .company-product-showcase {
      padding: 40px 0;
  }
  
  .section-header h2 {
      font-size: 1.8rem;
  }
  
  .company-image-overlay h2 {
      font-size: 2rem;
  }
  
  .company-image-overlay p {
      font-size: 1rem;
  }
  
  .company-description {
      font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .company-highlights-grid {
      grid-template-columns: 1fr;
  }
  
  .highlight-box {
      padding: 15px;
  }
  
  .highlight-icon {
      width: 40px;
      height: 40px;
  }
  
  .highlight-content h4 {
      font-size: 1rem;
  }
  
  .product-category-details h3 {
      font-size: 1.5rem;
  }
  
  .product-features li {
      font-size: 0.95rem;
  }
}

/*====================================================================================================================*/
/*==================================================
=                 COMPANY.HTML CSS                  =
==================================================*/
/*====================================================================================================================*/
/* 公司介紹頁面樣式 */
.company-page {
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  color: #221814; /* 標準色：黑色 */
  background-color: #FEFEFE; /* 白色背景 */
  position: relative;
}

/* 公司願景背景 */
.company-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/company/info.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.3;
  z-index: -1;
}

/* 頂部橫幅樣式 */
.company-banner {
  position: relative;
  overflow: visible;
}

/* 添加幾何裝飾元素 */
.company-banner::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  width: 120px;
  height: 120px;
  border: 4px solid rgba(191, 134, 25, 0.15); /* 淡金色邊框 */
  transform: rotate(-15deg);
  z-index: 1;
}

.company-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 25%;
  width: 80px;
  height: 80px;
  background-color: rgba(191, 134, 25, 0.1); /* 淡金色 */
  transform: rotate(30deg);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-text-block {
  background: #221814; /* 標準色：黑色 */
  color: #FEFEFE; /* 白色文字 */
  padding: 2rem; /* 統一四周padding */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); /* 保留傾斜效果 */
}

/* 添加裝飾線 */
.banner-text-block::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: linear-gradient(to bottom, rgba(191, 134, 25, 0), rgba(191, 134, 25, 0.8), rgba(191, 134, 25, 0)); /* 金色漸變 */
}

.banner-text {
  max-width: 600px;
  position: relative;
  width: 100%;
  text-align: center;
}

.banner-text h2 {
  font-size: 2.2rem; /* 稍微增加字體大小 */
  font-weight: bold;
  margin-bottom: 1.5rem; /* 增加下方間距 */
  line-height: 1.3;
  color: #BF8619; /* 輔助色：金色 */
  position: relative;
  transform: skewX(0); /* 移除傾斜效果，使文字正常顯示 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* 保留文字陰影 */
  text-align: center;
  width: 100%;
  letter-spacing: 1px;
}

.banner-image-block {
  position: relative;
  height: 100%;
}

.banner-image-block {
  max-height: 300px; /* 限制圖片區塊高度 */
  overflow: hidden;
}

.banner-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 300px; /* 限制圖片高度 */
}

/* 公司概況區塊樣式 */
.company-profile {
  background-color: rgba(254, 254, 254, 0.8); /* 原色 + 80% 不透明度 */
  margin-top: 0.3rem; /* 更進一步減少與上方 section 的間距 */
  position: relative;
  overflow: visible;
  padding: 0.5rem 0; /* 更進一步減少上下填充 */
}
/* 資訊內容 */
.info-content {
  flex: 1;
}

/* 統一服務區塊文字樣式 */
.service-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
  color: #FEFEFE; /* 白色文字 */
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px; /* 增加字距 */
  padding-bottom: 0.5rem; /* 增加段落間隔 */
}

/* 公司特色區域 */
.company-features {
  position: relative;
  padding: 4rem 0;
  background: #f8f9fa;
}

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

.company-features .row {
  margin: 0;
}

.company-features .col-md-4 {
  padding: 0;
}

.feature-item {
  /* 確保元素有基本樣式 */
  position: relative;
  overflow: hidden;
}

.feature-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover .feature-content {
  opacity: 1;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #BF8619; /* 輔助色：金色 */
}

.feature-content p {
  font-size: 1rem;
  margin: 0;
  color: #221814; /* 標準色：黑色 */
}


@keyframes floatAnimation {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, 15px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, rgba(191, 134, 25, 0.2), rgba(191, 134, 25, 1), rgba(191, 134, 25, 0.2)); /* 金色漸變線 */
  border-radius: 3px;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(191, 134, 25, 0.1); /* 淡金色 */
  border-radius: 50%;
  z-index: -1;
}

/* 移除英文小標題樣式 */

.strength-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 1.8rem 1.8rem 3rem 1.8rem; /* 增加底部填充 */
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible; /* 確保內容不被裁剪 */
  height: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(191, 134, 25, 0.1);
  border-top: 3px solid #BF8619; /* 統一使用實心金色邊框 */
}


/* 移除混亂的裝飾元素 */
.strength-content::before {
  display: none;
}

.strength-content::after {
  display: none;
}

/* 統一小標題樣式 */
.strength-title {
  color: #BF8619; /* 輔助色：金色 */
  font-size: 1.3rem; /* 稍微減小字體 */
  font-weight: bold;
  margin-bottom: 0.8rem; /* 減少下方間距 */
  position: relative;
  padding-bottom: 0.6rem; /* 減少底部填充 */
  display: inline-block;
  border-bottom: 2px solid rgba(191, 134, 25, 0.3); /* 保留下底線 */
  letter-spacing: 0.5px; /* 保留字距 */
}

.strength-title::before {
  display: none;
}

/* 統一技術實力文字樣式 */
.strength-text {
  margin-bottom: 1rem; /* 減少下方間距 */
  line-height: 1.6; /* 縮小行高 */
  text-align: justify;
  position: relative;
  padding-left: 0;
  margin-left: 0;
  flex: 1; /* 讓文字區塊自動填充剩餘空間 */
  color: #221814;
  font-size: 1rem; /* 稍微減小字體 */
  letter-spacing: 0.5px; /* 保留字距 */
}

/* 移除英文文字樣式 */

/* 卡片圖片樣式 */
.card-image-container {
  position: absolute;
  top: auto;
  bottom: 5px; /* 增加底部距離 */
  margin-top: auto;
  right: 30px; /* 右側留一點空間 */
  width: 220px;
  height: 160px;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 3;
  border: none;
  transition: all 0.3s ease;
  background-color: #fff;
}

.card-image {
  width: 110%; /* 圖片放大 110% */
  height: 110%; /* 圖片放大 110% */
  object-fit: cover;
  object-position: center;
  background-color: #fff;
  transform: scale(1.15); /* 額外放大圖片 */
  transform-origin: center; /* 以中心點為基準放大 */
}

/* 技術實力區塊的圖標裝飾 */
.strength-icon {
  width: 40px; /* 減小圖標大小 */
  height: 40px; /* 減小圖標大小 */
  background-color: rgba(191, 134, 25, 0.1); /* 淡金色背景 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; /* 減少下方間距 */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(191, 134, 25, 0.2);
}

.strength-icon i {
  color: #BF8619; /* 金色圖標 */
  font-size: 24px;
}

/* 客戶服務區塊樣式 */
.customer-service {
  margin-top: 2rem; /* 減少與上方 section 的間距 */
  position: relative;
  overflow: visible;
}

/* 添加幾何裝飾元素 */
.customer-service::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 20%;
  width: 180px;
  height: 180px;
  border: 3px solid rgba(191, 134, 25, 0.1); /* 淡金色邊框 */
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); /* 五邊形 */
  z-index: 1;
  transform: rotate(-10deg);
}

.customer-service::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 15%;
  width: 150px;
  height: 150px;
  background-color: rgba(34, 24, 20, 0.05); /* 淡黑色 */
  border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%; /* 不規則形狀 */
  z-index: 1;
}

.service-content-block {
  background: #221814; /* 標準色：黑色 */
  color: #FEFEFE; /* 白色文字 */
  padding: 3rem 2rem; /* 增加內部空間 */
  min-height: 400px; /* 減少高度 */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); /* 添加傾斜效果 */
}

/* 添加裝飾元素 */
.service-content-block::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border: none; /* 淡金色邊框 */
  transform: rotate(45deg);
  z-index: 0;
}

.service-content-block::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: 40px;
  height: 40px;
  background-color: rgba(191, 134, 25, 0.1); /* 淡金色 */
  border-radius: 50%;
  z-index: 0;
}

.service-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.service-content .section-title {
  color: #BF8619; /* 輔助色：金色 */
  text-align: left;
  margin-top: 1rem; /* 添加標題上方的間距 */
  margin-bottom: 2rem;
  position: relative;
  transform: skewX(-5deg); /* 添加傾斜效果 */
}

.service-content .section-title::after {
  background: linear-gradient(to right, #BF8619, rgba(191, 134, 25, 0.3)); /* 金色漸變 */
  left: 0;
  transform: none;
  height: 4px;
  width: 120px;
  border-radius: 2px;
}

.service-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.1rem;
  color: #FEFEFE; /* 白色文字 */
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(191, 134, 25, 0.4); /* 淡金色邊框 */
}

.service-text:last-child {
  position: relative;
}

.service-text:last-child::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, rgba(191, 134, 25, 0), rgba(191, 134, 25, 0.5)); /* 金色漸變 */
}

.service-image-block {
  background: #FEFEFE; /* 白色背景 */
  min-height: 400px; /* 減少高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* 統一使用較小的 padding */
  position: relative;
  z-index: 2;
  overflow: visible;
}

.service-image {
  max-height: 450px;
  object-fit: contain;
  position: relative;
  transform: rotate(-3deg); /* 添加輕微旋轉效果 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* 添加陰影效果 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image-block:hover .service-image {
  transform: rotate(-3deg) translateY(-8px); /* 懸停時上浮效果 */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.container-fluid {
  padding: 0;
}


/*====================================================================================================================*/
/*==================================================
=                 EQUIPMENT.HTML CSS                  =
==================================================*/
/*====================================================================================================================*/
/* 頁面標題區域 */
.equipment-page .page-header {
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.equipment-page .page-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.equipment-page .page-header .header-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0;
  width: 100%;
}

.equipment-page .page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.equipment-page .page-header .subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.equipment-page .page-header .intro-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 90%;
}

/* 設備區域共用樣式 */
.equipment-section {
  padding: 4rem 0;
  background: #fff;
}

.equipment-section:nth-child(even) {
  background: #f8f9fa;
}

.equipment-section h2 {
  color: #221814;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #BF8619;
}

.equipment-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 設備摘要樣式 */
.equipment-summary {
  background-color: #221814;
  color: #FEFEFE;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .col-lg-6.d-flex .equipment-summary {
      min-width: 650px;
  }
  
  .equipment-item-simple {
      min-width: 280px;
  }
}

.equipment-item-simple {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid #BF8619;
}

.equipment-item-simple .name {
  font-weight: 600;
  color: #FEFEFE;
  font-size: 0.9rem;
}

.equipment-item-simple .quantity {
  color: #BF8619;
  font-weight: 700;
}

/* 生產工具區域樣式 */
.production-tools {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.production-tools .equipment-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.production-tools .equipment-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: #FEFEFE;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
  min-height: 250px;
  align-items: stretch;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.production-tools .equipment-info {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  flex: 1;
  justify-content: center;
  background-color: #FEFEFE;
  position: relative;
  z-index: 1;
}

.production-tools .equipment-info h2 {
  font-size: 18px;
  color: #221814;
  margin: 0 0 1rem 0;
  padding: 0 0 0.6rem 0;
  border-bottom: 2px solid #BF8619;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.production-tools .equipment-image {
  width: 400px;
  min-width: 400px;
  height: 100%;
  background: #f1f1f1;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-right: none;
  position: relative;
  border-left: 1px solid #eee;
}

/* 雙圖片顯示樣式 */
.production-tools .dual-image {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.production-tools .image-primary,
.production-tools .image-secondary {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.production-tools .image-primary {
  border-bottom: 1px solid #eee;
}

.production-tools .image-secondary {
  background-color: #f8f8f8;
}

.production-tools .equipment-image img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 10px;
}

.production-tools .specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
  flex: 1;
}

.production-tools .spec-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #eee;
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.production-tools .spec-label {
  color: #221814;
  font-size: 0.9rem;
  width: 40%;
  line-height: 1.2;
}

.production-tools .spec-value {
  color: #221814;
  font-size: 0.9rem;
  text-align: right;
  width: 60%;
  line-height: 1.2;
}

/* 檢驗工具區域樣式 */
.inspection-tools .equipment-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.inspection-tools .equipment-item {
  background: #FEFEFE;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.inspection-tools .equipment-info {
  padding: 1rem;
}

.inspection-tools .equipment-info h2 {
  font-size: 15px;
  color: #221814;
  margin: 0 0 0.5rem 0;
  padding: 0 0 0.3rem 0;
  border-bottom: 2px solid #BF8619;
}

.inspection-tools .equipment-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  margin: 0 0 1rem 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.inspection-tools .equipment-image img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 雙圖片布局樣式 */
.image-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 1rem 0;
  height: 200px;
  background: #f8f9fa;
  padding: 1rem;
}

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.image-container {
  height: 200px;
  overflow: hidden; 
  width: 100%;
  display: inline-block; 
  margin: 0;
  padding: 0;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block; 
  margin: 0 auto;
}
.image-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0;
  width: 100%;
  margin: 0 auto 0.5rem auto;
  height: 200px;
  background: #f8f9fa;
}
.image-container:first-child {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  margin: 0;
  transform: translateY(-10px);
}
.image-container:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  margin: 0;
  transform: translateY(10px);
}

/*==================================================
=           響應式                 =
==================================================*/
@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;
  }
  
  /* 輪播圖相關樣式 */
  .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: 1399px) {
  .product-image {
    height: 130px;
  }
}
/*====================================================================================================*/
@media (max-width: 1199px) {
  .product-image {
    height: 120px;
  }
  
  .product-info h4 {
    font-size: 0.9rem;
  }
}
/*====================================================================================================*/
@media (max-width: 1200px) {
  .company-features::before,
  .company-features::after {
      transform: translateX(0);
      left: 0;
      width: 100vw;
  }
    .production-tools .equipment-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .production-tools .equipment-image {
        width: 100%;
        min-width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: none;
    }
    
    .production-tools .equipment-info {
        padding: 2rem;
    }
    
    .inspection-tools .equipment-details {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
/*====================================================================================================*/
@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;
  }

  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .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-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;
  }

  .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;
  }

  .navbar {
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 6px 12px;
    margin: 0 3px;
  }
  .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;
}
  .strength-content {
    min-height: 350px;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  }

}
/*====================================================================================================*/
@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;
  }

  .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 {
  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;
}

.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;
}

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-list li {
  font-size: 1rem;
  margin-bottom: 8px;
}

.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;
}

.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; /* 進一步增加底部內邊距 */
}

/* 增加特定的底部空間 */
.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;
}

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;
}
.nav-item.dropdown:hover .nav-link {
  padding-right: 40px;
}
.nav-item.dropdown::after {
  right: 25px;
}
.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;
}
.production-tools .equipment-item {
  flex-direction: column;
  min-height: auto;
}

.production-tools .equipment-image {
  width: 100%;
  min-width: 100%;
  height: 250px;
}

.production-tools .equipment-info {
  padding: 1.8rem 1.5rem;
}

.inspection-tools .equipment-details {
  grid-template-columns: 1fr;
}

.production-tools .spec-label,
.production-tools .spec-value {
  font-size: 0.8rem;
}

.equipment-page .page-header {
  min-height: auto;
  padding-top: 60px;
}

.equipment-page .page-header .intro-text {
  max-width: 100%;
}

@media (max-width: 767px) {
  .strength-content {
    min-height: 0;
    margin-bottom: 2rem;
    min-height: 450px;
  }
}

}
