: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;
}

.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-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.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;
}

.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;
}

.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);
}

.carousel-caption h2 {
  color: var(--background-color);
  font-weight: bold;
}

.carousel-caption p {
  color: var(--light-gold);
}

/* Banner樣式更新 */
.carousel {
  position: relative;
}

.banner-slide {
  height: 600px;
  background-size: cover;  /* 預設所有圖片都是滿版 */
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item:nth-child(2) .banner-slide {
  background-size: contain;  /* 第二張圖片完整顯示 */
  background-color: #f8f8f8;  /* 第二張圖片的背景色 */
  background-position: 80% center;  /* 圖片靠右對齊 */
}

.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: 25px 60px;
  max-width: 100%;
  margin: 0;
  border-left: none;
  transform: none;
  z-index: 10;
}

.carousel-caption h2 {
  color: var(--background-color);
  font-weight: bold;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.carousel-caption p {
  color: var(--light-gold);
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px 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: 20;
  pointer-events: none;
}

.banner-text-content {
  position: relative;
  padding: 40px;
  max-width: 60%;
}

@media (max-width: 992px) {
  .banner-slide {
      height: 450px;
  }
  
  .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) {
  .banner-slide {
      height: 300px;
  }
  
  .carousel-caption {
      padding: 15px 25px;
      max-width: 100%;
  }
  
  .carousel-caption h2 {
      font-size: 1.5rem;
      margin-bottom: 6px;
      line-height: 1.2;
  }
  
  .carousel-caption p {
      font-size: 0.95rem;
      margin-bottom: 6px;
  }
  
  .carousel-caption .banner-description {
      font-size: 0.85rem;
      max-width: 100%;
  }
  
  .banner-text-content {
      max-width: 100%;
      padding: 15px;
  }
  
  .carousel-item:nth-child(2) .banner-slide {
      background-position: center;  /* 手機版居中顯示 */
  }
}

/* 響應式設計更新 */
@media (max-width: 768px) {
  .carousel-caption,
  .banner-text-content {
      max-width: 100%;
      padding: 20px;
  }

  .carousel-caption h2 {
      font-size: 1.8rem;
      margin-bottom: 10px;
  }

  .carousel-caption p {
      font-size: 1.2rem;
      margin-bottom: 15px;
  }

  .carousel-caption .banner-description {
      font-size: 1rem;
      max-width: 100%;
  }
}

/* Footer樣式 */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
}

.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-logo {
  width: 200px;
  height: auto;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.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 {
  opacity: 1;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.02); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.timeline-connector.visible {
  animation: pulse 3s infinite ease-in-out;
}

/* 響應式調整 */
@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;
}

.process-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  min-height: 180px;
  margin: 0 auto 1.5rem;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: visible;
  position: relative;
}

.process-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.process-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.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-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  margin: 10px auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Logo 樣式 */
.navbar-logo {
  height: 40px;
  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 {
  transform: translateY(-3px);
}

.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;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 25px 0;
  }
  
  .feature-list li {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .product-item h3 {
    white-space: normal;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .feature-card, .video-section {
    padding: 15px;
    margin-bottom: 25px;
  }
  
  .video-wrapper {
    padding-bottom: 56.25%; /* 16:9 比例，更適合手機 */
    margin-top: 10px;
  }
}

@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-image img {
    max-width: 80%;
    max-height: 80%;
  }
  
  .process-text {
    font-size: 1.1rem;
  }
  
  .process-text-en {
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 5px;
  }
  
  .video-section, .feature-card {
    padding: 12px 8px;
  }
  
  .carousel-caption {
    padding: 12px 20px;
  }
  
  .carousel-caption h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  
  .carousel-caption p {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .banner-text-content {
    padding: 10px;
  }
  
  .product-item h3 {
    font-size: 0.8rem;
    white-space: normal;
  }
  
  .row.g-3 {
    margin-left: -5px;
    margin-right: -5px;
  }
  
  .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .feature-list li {
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.2;
  }
}

/* 統一的響應式設計 */
@media (max-width: 992px) {
  .footer {
    padding: 2.5rem 0;
  }
  
  .footer h5 {
    font-size: 1.3rem;
  }
  
  .footer p {
    font-size: 1rem;
  }
  
  .footer-logo {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 30px;
  }
  
  .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;
  }
}

/* Logo 樣式 */
.navbar-logo {
  height: 40px;
  width: auto;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-top: 1rem;
}



/* 下拉選單樣式 */
.dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  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) {
  .navbar {
    padding: 0.3rem 0.6rem;
  }
  
  .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;
    }
}
