/* 字型風格規範 */
.font-en-display {
  font-family: 'Cormorant Garamond', serif;
}
.font-heading {
  font-family: 'Noto Serif TC', serif;
}
.font-body {
  font-family: 'Noto Sans TC', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* 常用組件按鈕 */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #FF6B35;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: 2px solid #FF6B35;
}
.btn-cta-primary:hover {
  background-color: #E85620;
  border-color: #E85620;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.45);
  color: #FFFFFF;
}

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #00A89E;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid #00A89E;
  transition: all 0.3s ease;
}
.btn-outline-teal:hover {
  background-color: #00A89E;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 158, 0.25);
}

/* 區塊標題模組 */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-sub-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #00A89E;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-main-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 40px;
  font-weight: 900;
  color: #083B4C;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
.section-main-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #00A89E, #FF6B35);
  border-radius: 4px;
}
.section-desc-text {
  font-size: 18px;
  color: #555555;
  margin-top: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* 裝飾向量波浪 */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  z-index: 1;
}

/* 信任指標與數據統計 (Trust Stats) */
.stats-section {
  background-color: #F8F9FA;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 45px 35px;
  box-shadow: 0 15px 45px rgba(8, 59, 76, 0.08);
  border: 1px solid rgba(0, 168, 158, 0.15);
  margin-top: 30px;
  position: relative;
}
.stat-card {
  text-align: center;
  position: relative;
  padding: 10px 15px;
}
.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #E2E8F0;
}
.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: #00A89E;
  line-height: 1;
}
.stat-symbol {
  font-size: 28px;
  font-weight: 700;
  color: #FF6B35;
}
.stat-label {
  font-size: 18px;
  font-weight: 700;
  color: #083B4C;
  margin-bottom: 4px;
}
.stat-subtext {
  font-size: 16px;
  color: #666666;
}

/* 數據區塊標題與引言 (Stats Intro) */
.stats-intro {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #555555;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}
.stats-grid .stat-card .stat-symbol {
  font-size: 26px;
}
.stats-footnote {
  max-width: 820px;
  margin: 40px auto 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.stats-footnote iconify-icon {
  font-size: 28px;
  color: #00A89E;
  flex-shrink: 0;
  margin-top: 2px;
}
.stats-footnote p {
  font-size: 16px;
  line-height: 1.9;
  color: #555555;
}

/* 服務流程 (Process Timeline) */
.process-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF;
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.process-step-wrap {
  position: relative;
}
.process-step-wrap:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #00A89E, #FF6B35);
}
.process-step-wrap:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -34px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #FF6B35;
  border-top: 2px solid #FF6B35;
}
.process-step {
  position: relative;
  text-align: center;
  padding: 32px 22px 28px;
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  transition: all 0.3s ease;
  height: 100%;
}
.process-step:hover {
  border-color: #00A89E;
  box-shadow: 0 12px 30px rgba(0, 168, 158, 0.12);
  transform: translateY(-4px);
}
.process-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 700;
  color: #FF6B35;
  line-height: 1;
  margin-bottom: 12px;
}
.process-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 168, 158, 0.12), rgba(255, 107, 53, 0.12));
  border: 1px solid rgba(0, 168, 158, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step-icon iconify-icon {
  font-size: 30px;
  color: #00A89E;
}
.process-step-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #083B4C;
  margin-bottom: 12px;
}
.process-step-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555555;
}

.partner-section {
  padding: 70px 0;
  background-color: #FFFFFF;
}
/* 合作案例標誌列 (Trust Badges) */
.partner-banner {
  margin-top: 0;
  text-align: center;
  position: relative;
}
.partner-tagline {
  font-family: 'Noto Serif TC', serif;
  font-size: 31px;
  font-weight: 700;
  color: #083B4C;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.partner-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.partner-pill {
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}
.partner-pill:hover {
  border-color: #00A89E;
  background: #F0FDFB;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 168, 158, 0.12);
}
.partner-pill iconify-icon {
  font-size: 26px;
  color: #00A89E;
}
.partner-pill span {
  font-size: 20px;
  font-weight: 700;
  color: #083B4C;
}
.partner-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* 光點裝飾 (Decorative Blob) */
.about-deco-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 168, 158, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* 3 大分類特色卡片連結 (带角度的青色裝飾塊) */
.featured-categories-section {
  padding: 110px 0;
  background-color: #F8F9FA;
  position: relative;
  overflow: hidden;
}
.category-deco-blob {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 168, 158, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.categories-swiper-container {
  overflow: hidden;
  padding-bottom: 45px;
}
.categories-swiper-container .swiper-slide {
  height: auto;
}
.categories-swiper-container .category-card {
  height: 100%;
}
.categories-swiper-container .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.category-card {
  background: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(8, 59, 76, 0.08);
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 168, 158, 0.18);
}
.category-card-img-wrap {
  height: 260px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.category-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}
.category-card:hover .category-card-img-wrap img {
  transform: scale(1.08);
}
/* 角度青色裝飾塊 */
.category-angle-deco {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 45px;
  background: #00A89E;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 85%);
  z-index: 2;
  transform: translateZ(0);
}
.category-angle-white {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 101%;
  height: 35px;
  background: #FFFFFF;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
  z-index: 3;
  transform: translateZ(0);
}
.category-card-body {
  padding: 35px 30px 32px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.category-top-tag {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00A89E;
  color: #FFFFFF;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
}
.category-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 26px;
  font-weight: 700;
  color: #083B4C;
}
.category-card-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 26px;
}
.category-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid #EDF2F7;
  color: #083B4C;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.3s;
}
.category-card:hover .category-action-link {
  color: #00A89E;
}
.category-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F0FDFB;
  color: #00A89E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.category-card:hover .category-arrow-circle {
  background: #00A89E;
  color: #FFFFFF;
  transform: translateX(5px);
}

/* 案例展示 Swiper 輪播區塊 (Cases Showcase) */
.cases-section {
  padding: 120px 0;
  background-color: #FFFFFF;
  position: relative;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.case-slide-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(8, 59, 76, 0.08);
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}
.case-slide-card:hover {
  box-shadow: 0 20px 40px rgba(0, 168, 158, 0.2);
  transform: translateY(-6px);
}
.case-img-box {
  height: 250px;
  width: 100%;
  position: relative;
}
.case-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(8, 59, 76, 0.85);
  backdrop-filter: blur(4px);
  color: #00FFEF;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}
.case-info-box {
  padding: 24px;
}
.case-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 21px;
  font-weight: 700;
  color: #083B4C;
  margin-bottom: 10px;
}
.case-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
}
.swiper-pagination-bullet {
  background: #FF6B35 !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: #00A89E !important;
  width: 28px !important;
  border-radius: 10px !important;
}

/* 行動呼籲 Banner (CTA Section) */
.cta-banner-section {
  background: linear-gradient(135deg, #083B4C 0%, #004D5A 60%, #00A89E 100%);
  padding: 100px 0;
  position: relative;
  color: #FFFFFF;
  overflow: hidden;
}
.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.cta-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 22px;
}
.cta-subtitle {
  font-size: 20px;
  color: #E2E8F0;
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.btn-line-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #06C755;
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.4);
  transition: all 0.3s ease;
}
.btn-line-cta:hover {
  background-color: #05ae4a;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(6, 199, 85, 0.5);
  color: #FFFFFF;
}
.btn-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-phone-cta:hover {
  background: #FFFFFF;
  color: #083B4C;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}
/* 滾動動畫輔助 class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   響應式設計 (Responsive Breakdown)
=================================================== */
@media (max-width: 1400px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-step-wrap:nth-child(3)::after,
  .process-step-wrap:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .hero-title {
    font-size: 42px;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step-wrap:nth-child(2)::after,
  .process-step-wrap:nth-child(2)::before {
    display: none;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: #FFFFFF;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 24px;
    transition: left 0.35s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 17px;
  }
  .section-main-title {
    font-size: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    margin-top: -30px;
    padding: 30px 20px;
  }
  .stat-card::after {
    display: none !important;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .process-step-wrap::after,
  .process-step-wrap::before {
    display: none;
  }
  .back-to-top {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 20px;
  }
}