.nav-menu > li > a {
  color: #000000;
  transition: color 0.3s ease;
}

.nav-menu > li > a:hover {
  color: #106eea;
}

#pre-load {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Form Styles */
.rs-contact .contact-item p {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Toast 通知樣式 */
.custom-toast-popup {
  font-family: 'Noto Sans TC', sans-serif;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: #f5f5f5 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1rem;
  min-width: 300px;
  max-width: 400px;
  border-left: 4px solid #666666;
}

.custom-toast-title {
  color: #333333 !important;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.custom-timer-bar {
  background: #666666 !important;
}

/* 成功提示框樣式 */
.custom-success-popup {
  background: #f5f5f5 !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-success-title {
  color: #333333 !important;
  font-size: 20px;
  font-weight: 500;
}

.custom-success-text {
  color: #666666 !important;
  font-size: 16px;
}

/* 缺少欄位提示框樣式 */
.missing-fields-container {
  padding: 10px 0;
  background: #f5f5f5;
}

.missing-fields-list {
  text-align: left;
  max-height: none;
  overflow-y: visible;
}

.missing-field-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #333333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.missing-field-item:last-child {
  border-bottom: none;
}

.missing-field-item i {
  margin-right: 10px;
  color: #666666;
}

.missing-field-item span {
  font-size: 14px;
  color: #333333;
}

/* 動畫效果 */
.swal2-show {
  animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 新增必填欄位提示文字樣式 */
.required-field-notice {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 20px;
}

/* 讓必填欄位的星號為紅色 */
input::placeholder,
textarea::placeholder {
  color: #6c757d;
}

input::placeholder[required]::before,
textarea::placeholder[required]::before {
  color: #dc3545;
}

/* 表單樣式 */
.contact-wrap {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.from-control {
  background-color: #ffffff;
  border: 1px solid #dee2e6 !important;
  color: #212529;
  padding: 12px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  width: 100%;
  outline: none;
  margin-bottom: 10px;
}

.from-control:focus {
  border-color: #106eea !important;
  box-shadow: 0 0 0 2px rgba(16, 110, 234, 0.2);
}

.from-control::placeholder {
  color: #6c757d;
}

.contact-item p {
  color: #212529 !important;
  font-size: 16px;
  margin-bottom: 10px;
}

.form-check-label {
  color: #212529;
}

.form-select {
  border: 1px solid #ddd !important;
  color: #333333;
  padding: 12px 15px;
  border-radius: 5px;
  background-color: #ffffff;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: #106eea !important;
  box-shadow: 0 0 0 2px rgba(16, 110, 234, 0.2);
}

/* 提交按鈕樣式 */
.readon.details.submit {
  background-color: #ff9248;
  color: #ffffff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.readon.details.submit:hover {
  background-color: #ff7a1f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 146, 72, 0.3);
}

/* 文本區域特殊樣式 */
textarea.from-control {
  min-height: 120px;
  resize: vertical;
  border: 1px solid #ddd !important;
}

/* 錯誤訊息樣式 */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.from-control.error {
  border-color: #dc3545 !important;
}

.from-control.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* 預算下拉選單錯誤樣式 */
.form-select.error {
  border-color: #dc3545 !important;
}

.form-select.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* 調整錯誤訊息的間距 */
.contact-item .error-message {
  margin-top: 8px;
  margin-bottom: 8px;
} /* About 頁面 breadcrumbs-inner 特定樣式 */
.about-page .rs-breadcrumbs .breadcrumbs-inner {
  padding: 30px 5px 30px 5px;
}

.rs-breadcrumbs.aboutPage-bannerImg {
  height: 600px;
}

.sub-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.about-list {
  padding: 10px 25px;
}

/* 統一服務區塊高度樣式 */
.rs-services.services-style1.services-modify1 .services-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rs-services.services-style1.services-modify1 .services-item .services-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 50px 50px 45px;
}

.rs-services.services-style1.services-modify1
  .services-item
  .services-wrap
  .services-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rs-services.services-style1.services-modify1
  .services-item
  .services-wrap
  .services-content
  .services-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 確保所有區塊在同一行具有相同高度 */
.rs-services.services-style1.services-modify1 .row {
  display: flex;
  flex-wrap: wrap;
}

.rs-services.services-style1.services-modify1 .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* 作品集容器樣式 */
.portfolio-container {
  margin: 40px 0;
  padding: 0 10vh;
}

.portfolio-wrapper {
  border: 4px solid #d9d9d9;
  width: 100%;
  border-radius: 30px;
  background-color: #ffffff;
  overflow: hidden;
  padding: 30px;
}

/* 篩選導航欄樣式 */
.filter-navigation {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-label {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-right: 10px;
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
  background-color: #ff9248 !important;
  border-color: #ff9248 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 146, 72, 0.3);
}

.filter-btn:not(.active) {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: #6c757d !important;
}

.filter-btn:not(.active):hover {
  background-color: #f8f9fa !important;
  border-color: #ff9248 !important;
  color: #ff9248 !important;
}

/* 徽章樣式調整 */
.filter-btn .badge {
  font-size: 10px;
  padding: 4px 6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  color: #6c757d !important;
}

/* 覆蓋 Bootstrap 的徽章背景色 */
.filter-btn .badge.text-bg-warning,
.filter-btn .badge.text-bg-danger {
  background-color: transparent !important;
  color: #6c757d !important;
}

.filter-btn.active .badge {
  background-color: #ff9248 !important;
  color: #ffffff !important;
}

.filter-btn.active .badge.text-bg-warning,
.filter-btn.active .badge.text-bg-danger {
  background-color: #ff9248 !important;
  color: #ffffff !important;
}

.portfolio-features-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.portfolio-features-list li {
  line-height: 1.6;
  margin-bottom: 8px;
  color: #333333;
}

/* 淡入動畫 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分類標籤樣式 */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding: 0 20px 20px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* 不同類別的標籤顏色 */
.category-tag.app {
  background-color: #007bff;
  color: white;
}

.category-tag.line {
  background-color: #28a745;
  color: white;
}

.category-tag.web {
  background-color: #ffc107;
  color: #212529;
}

.category-tag.erp {
  background-color: #dc3545;
  color: white;
}

.category-tag.crm {
  background-color: #6f42c1;
  color: white;
}

.category-tag.transport {
  background-color: #fd7e14;
  color: white;
}

.category-tag.service {
  background-color: #20c997;
  color: white;
}

.category-tag.beauty {
  background-color: #e83e8c;
  color: white;
}

.category-tag.health {
  background-color: #17a2b8;
  color: white;
}

/* 標籤懸停效果 */
.category-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icons .circular-image {
  display: inline-block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.social-icons .circular-image:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.social-icons .circular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap
  .social-icons {
  background: transparent !important; /* 移除橘色背景 */
  width: 120px !important;
  right: -120px !important;
}

/* hover 時的移動距離 */
.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap:hover
  .image-wrap
  .social-icons {
  right: 0 !important;
  width: 120px !important;
}

.portfolio-img-content .sub-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #ff6d00;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  margin: 0 0 16px;
}

.breadcrumbs-inner .portfolio-img-content + ul,
.breadcrumbs-inner .portfolio-img-content .sub-text + ul,
.portfolio-img-content + ul,
.portfolio-img-content .sub-text + ul {
  list-style: disc;
  padding-left: 20px;
}

.portfolio-img-content {
  margin-top: 30px;
}

.hero {
  position: relative;
  min-height: min(72vh, 720px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(44, 62, 80, 0.4);
  z-index: 1;
}
.hero__content {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  left: 2.5%;
  right: 2.5%;
  bottom: 2%;
  max-width: 1100px;
}
.hero__mini {
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 14px);
  margin: 0;
}
.hero__title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(24px, 4vw, 40px);
  margin: 0;
}
.hero__subtitle {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.45;
  font-size: clamp(14px, 1.8vw, 18px);
  max-width: 70ch;
  margin: 0;
}

/* 作品集項目樣式 - 從 team 樣式轉換而來 */
.rs-portfolio.portfolio-style1 .portfolio-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rs-portfolio.portfolio-style1 .portfolio-item .portfolio-inner-wrap {
  overflow: hidden;
  border-radius: 70px 0px 70px 0px;
  box-shadow: 0 5px 20px rgba(34, 34, 34, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 326px; /* 圖片:文字:標籤區塊 = 6:3:1比例的圖片高度 */
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap
  a
  img {
  transform: scale(1.1);
  opacity: 1;
  transition: 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap
  .social-icons {
  text-align: center;
  position: absolute;
  right: -50px;
  bottom: 0;
  width: 50px;
  background: #ff9248;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease 0s;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap
  .social-icons
  a
  i {
  color: #fff;
  font-size: 15px;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  transition: 0.3s all ease;
  border-radius: 50%;
  margin: 0;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .image-wrap
  .social-icons
  a
  i:hover {
  color: #ff6d00;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .portfolio-content {
  text-align: center;
  margin: 0;
  padding: 20px 20px 25px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0);
  background-color: #e5161600;
  /* 讓內容區塊填滿剩餘空間 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .portfolio-content
  .portfolio-name {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  text-transform: capitalize;
  margin: 0px 0px 2px 0px;
  /* 標題固定高度 */
  flex-shrink: 0;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .portfolio-content
  .portfolio-name
  a {
  color: #0a0a0a;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .portfolio-content
  .portfolio-name
  a:hover {
  color: #ff6d00;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .portfolio-content
  .portfolio-title {
  font-size: 15px;
  line-height: 1.6;
  text-transform: capitalize;
  color: #454545;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap:hover
  .image-wrap
  a
  img {
  transform: scale(1);
  opacity: 0.7;
}

.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap:hover
  .image-wrap
  .social-icons {
  right: 0;
  width: 50px;
  opacity: 1;
  visibility: visible;
}

.rs-portfolio.portfolio-style1.team-modify1
  .portfolio-item
  .portfolio-inner-wrap {
  margin: 0 3px 0 3px;
}

/* 確保 category-tags 在底部對齊 */
.rs-portfolio.portfolio-style1
  .portfolio-item
  .portfolio-inner-wrap
  .category-tags {
  flex-shrink: 0;
  margin-top: auto;
}

/* ===== 作品集樣式 - 從 team 樣式轉換而來 ===== */
/* 主要作品集樣式 */
.rs-portfolio.portfolio-style1 {
  /* 基礎樣式 */
  .owl-stage-outer {
    padding: 20px 10px;
    margin: -20px -10px;
  }

  /* 修飾符樣式 */
  &.portfolio-modify1 {
    .portfolio-item .portfolio-inner-wrap {
      margin: 0 3px 0 3px;
    }
  }

  /* 作品集項目 */
  .portfolio-item {
    /* 作品集內層包裝 */
    .portfolio-inner-wrap {
      overflow: hidden;
      border-radius: 70px 0px 70px 0px;
      box-shadow: 0 5px 20px rgba(34, 34, 34, 0.1);

      /* 圖片區域 */
      .image-wrap {
        position: relative;
        overflow: hidden;

        /* 圖片本身 */
        a img {
          transform: scale(1.1);
          opacity: 1;
          transition: 0.3s ease-in-out;
        }

        /* 社交圖標區域 */
        .social-icons {
          text-align: center;
          position: absolute;
          right: -50px;
          bottom: 0;
          width: 50px;
          background: #ff9248;
          padding: 12px 0;
          opacity: 0;
          visibility: hidden;
          transition: all 0.4s ease 0s;

          /* 社交圖標 */
          a i {
            color: #fff;
            font-size: 15px;
            width: 35px;
            height: 35px;
            line-height: 35px;
            text-align: center;
            transition: 0.3s all ease;
            border-radius: 50%;
            margin: 0;

            &:hover {
              color: #ff6d00;
            }
          }
        }
      }

      /* 內容區域 */
      .portfolio-content {
        text-align: center;
        margin: 0;
        padding: 20px 20px 25px;
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0);
        background-color: #e5161600;

        /* 作品集名稱 */
        .portfolio-name {
          font-size: 22px;
          line-height: 30px;
          font-weight: 700;
          text-transform: capitalize;
          margin: 0px 0px 2px 0px;

          a {
            color: #0a0a0a;

            &:hover {
              color: #ff6d00;
            }
          }
        }

        /* 作品集標題 */
        .portfolio-title {
          font-size: 15px;
          text-transform: capitalize;
          color: #454545;
        }
      }

      /* 懸停效果 */
      &:hover {
        .image-wrap {
          a img {
            transform: scale(1);
            opacity: 0.7;
          }

          .social-icons {
            right: 0;
            width: 50px;
            opacity: 1;
            visibility: visible;
          }
        }
      }
    }
  }
}

/* 合作案例樣式 */
.cooperation-cases {
  margin-top: 20px;
}

.case-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-link-wrapper:hover {
  text-decoration: none;
  color: inherit;
}

.case-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-item:hover {
  background-color: #f8f9fa;
  padding: 10px;
  margin: 0 -10px 20px -10px;
  border-radius: 4px;
}

.case-image {
  flex: 0 0 30%;
  margin-right: 15px;
}

.case-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.case-content {
  flex: 0 0 70%;
}

.case-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

.case-divider {
  border: none;
  border-top: 2px solid #cccccc;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .case-item {
    flex-direction: column;
  }

  .case-image {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
  }

  .case-image img {
    max-width: 120px;
  }

  .case-content {
    flex: 0 0 auto;
  }

  .case-title {
    font-size: 15px;
  }

  .case-description {
    font-size: 13px;
  }
}

/* 標籤樣式 */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
