/* ==========================================================================
   SAiGEN Services Industries Page - Quiet Luxury Custom Stylesheet
   ========================================================================== */
:root {
  --bs-body-font-family: "Inter", sans-serif;
  --bs-body-bg: #f7f9fb;
  --bs-body-color: #191c1e;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

/* 🌟 核心修正：產業矩陣卡片獨立自適應高度，右邊絕不留白 */
.industry-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto !important;
}

.industry-card .card-detail {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.industry-card[data-open="false"] .card-detail {
  display: none !important;
}

.industry-card[data-open="false"] .expand-icon {
  transform: rotate(-180deg);
}

.expand-icon {
  transition: transform 0.3s ease;
}

/* 🌟 合作歷程 5 階段階梯卡：強制大螢幕下一排 5 個完美並列 */
@media (min-width: 1200px) {
  .row.g-3 > .col-xl {
    flex: 1 0 0% !important;
    max-width: 20% !important;
  }
}

/* 高級微互動卡片懸停感 */
.transition-hover {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.transition-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(15, 28, 54, 0.08) !important;
}
.roadmap-indicator-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: #725b38;
}
.consulting-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 利用 CSS mask 做出從左到右清晰到半透明的濾鏡感 */
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}
/* ==========================================================================
   顧問視角插頁 - 深度再加深專屬樣式
   ========================================================================== */
.consulting-immersive-section .consulting-bg-img {
  object-position: center 40%;
  filter: brightness(1.05) contrast(1.08);
}

/* 🌟 色階再次加深的左深右淺濾鏡（左側沉穩扎實，右側保留精緻輪廓） */
.consulting-immersive-section .consulting-custom-filter {
  background: linear-gradient(
    90deg,
    rgba(12, 22, 40, 0.82) 0%,
    /* 左側深度加強，營造頂級企業官網的沉穩感 */ rgba(12, 22, 40, 0.6) 35%,
    /* 中間平滑過渡 */ rgba(12, 22, 40, 0.25) 70%,
    /* 右側漸漸放輕 */ rgba(12, 22, 40, 0.08) 100%
      /* 右側邊緣保有微光透出的質感 */
  ) !important;
}
/* 輔助工具類別 */
.text-xxs {
  font-size: 0.65rem;
  line-height: 1rem;
}

svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.step-badge {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
}
/* 右上方「循序演進式諮詢交付」的精緻引導線 */
.roadmap-chart-container {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(114, 91, 56, 0.12) !important;
}

/* 🌟 優化微互動：確保群組整體不抖動，僅讓內圈圓點產生高級的呼吸感與陰影回饋 */
.roadmap-svg-wrapper svg .chart-node {
  cursor: pointer;
}

/* 讓節點內圈在滑鼠懸停時產生平滑、有質感的放大與光暈，絕不位移抖動 */
.roadmap-svg-wrapper svg .chart-node circle {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    fill 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.roadmap-svg-wrapper svg .chart-node:hover circle:first-child {
  transform: scale(1.2);
  fill: #fdf8f2; /* 懸停時帶出極淡的香檳金底色 */
}

.roadmap-svg-wrapper svg .chart-node:hover circle:last-child {
  transform: scale(1.3);
}
/* 精緻捲軸 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #eceef0;
}
::-webkit-scrollbar-thumb {
  background: #75777e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #725b38;
}
/* 手機版篩選按鈕等比例均分，絕不破版 */
.industry-filter-tabs {
    width: 100%;
}
.industry-filter-tabs .industry-tab-btn {
    flex: 1 1 0% !important;
    font-size: 0.78rem !important; /* 在手機上自動微調字級，確保文字完美塞入 */
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 手機版橫向滾動篩選列優化 */
.industry-filter-tabs::-webkit-scrollbar {
    display: none; /* 隱藏 Chrome/Safari 捲軸 */
}

.industry-tab-btn {
    white-space: nowrap; /* 強制文字不換行 */
}

@media (min-width: 768px) {
    .industry-filter-tabs .industry-tab-btn {
        flex: 0 1 auto !important;
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
        font-size: 0.875rem !important;
    }
}