
/* --- 字體定義 --- */
/* 為標題組件定義字體，確保中文使用 Noto Sans TC，英文使用 Roboto */
@font-face {
  font-family: 'Noto Sans TC Title';
  src: local('Noto Sans TC');
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+F900-FAFF, U+2F800-2FA1F;
}

@font-face {
  font-family: 'Roboto Title';
  src: local('Roboto');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 基礎設定 & 變數 --- */
:root {
  --dell-dark: #0d0d0d;
  --dell-blue-deep: #000b1c;
  --dell-blue-main: #071142;
  --dell-blue-light: #2cdafc;
  --text-white: #ffffff;
  --text-gray: #cfcfcf;
  --glass-bg: rgba(6, 114, 203, 0.15);
  --border-glow: 1px solid rgba(44, 218, 252, 0.3);
  /* 字級變數（使用 vw 縮放，統一控制） */
  --fs-title-xl: clamp(28px, 4vw + 10px, 55px);
  --fs-subtitle: clamp(16px, 1.5vw + 8px, 25px);
  --fs-solution: clamp(15px, 2.2vw + 8px, 1.5rem);
  --fs-card-title: clamp(24px, 2.5vw + 8px, 35px);
  --fs-card-body: clamp(14px, 1.2vw + 6px, 18px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--dell-blue-main);
  font-family: "Roboto", "Microsoft JhengHei", sans-serif;
}
.container {
  width: 100%;
  max-width: 1480px;
  /* max-width: 80%; */
}

/* --- 通用區塊樣式 --- */
section {
  padding: 80px 2%;
  position: relative;
  display: block;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  section {
    padding: 4em 2%;
  }
}

/* 痛點分析區特殊處理 */
#pain-points {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* section 內容區域，確保在漸層之上 */
section > * {
  position: relative;
  z-index: 3; /* 確保內容在漸層過渡之上 */
}

/* 所有 section 的上方漸層過渡 */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(360deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(5 18 70) 100%);
  pointer-events: none;
  z-index: 0; /* 確保漸層在背景圖片之上 */
}

/* 所有 section 的下方漸層過渡 */
section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(180deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(7 18 67) 100%);
  pointer-events: none;
  z-index: 2; /* 確保漸層在背景圖片之上 */
}

/* 痛點分析區背景漸層 */
#pain-points {
  position: relative;
  background-image: url('../images/bg_right_top.png'), url('../images/bg_left_bottom.png'),
  radial-gradient(circle, rgba(27, 125, 195, 1) 0%, rgba(12, 52, 100, 1) 25%, rgb(7 18 67) 100%);
  background-position: top right, bottom left;
  background-repeat: no-repeat, no-repeat;
  mix-blend-mode: lighten;
  /* background-size: 50%, 50%; */
  
}

/* 確保痛點分析區的容器正確顯示 */
#pain-points .container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* 痛點卡片容器 */
.pain-points-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 10;
  width: 100%;
  visibility: visible;
  opacity: 1;
}

/* 卡片行容器 */
.cards-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
}

/* 桌面版：恢復單行布局 */
@media (min-width: 992px) {
  .pain-points-cards {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }
  
  .cards-row {
    display: contents; /* 移除行容器，讓卡片直接排列 */
  }
}

/* 痛點卡片 */
.pain-point-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 auto;
  min-width: 200px;
  max-width: 325px;
  width: 100%;
  box-sizing: border-box;
  visibility: visible;
  opacity: 1;
}

/* 覆蓋 AOS 動畫庫的隱藏樣式 */
.pain-point-card[data-aos],
.pain-point-card[data-aos].aos-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.pain-point-card[data-aos].aos-init {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 卡片圖片容器 */
.pain-point-card .card-image {
  position: relative;
  max-width: 100%;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 15px rgba(72, 243, 255, 0.5));
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.pain-point-card .card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pain-point-card .card-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #48F3FF, transparent);
  box-shadow: 0 0 8px rgba(72, 243, 255, 0.6);
}

/* 卡片連接線（可選，用於視覺連接） */
.pain-points-cards::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(72, 243, 255, 0.3) 10%, 
    rgba(72, 243, 255, 0.5) 50%, 
    rgba(72, 243, 255, 0.3) 90%, 
    transparent 100%);
  z-index: 1;
  pointer-events: none;
  display: none; /* 預設隱藏，可根據需求開啟 */
}

/* 桌面版：5個一列，使用class控制向下偏移 */
@media (min-width: 992px) {
  .pain-points-cards {
    flex-direction: row;
    flex-wrap: nowrap; /* 桌面版不換行，保持5個一列 */
    gap: 15px;
  }
  
  /* 移除行容器，讓卡片直接排列，保持正確順序 */
  .cards-row {
    display: contents;
  }
  
  /* 卡片會按照HTML順序自然排列：情境、資料、架構、安全、投資 */
  
  .pain-point-card {
    flex: 0 1 auto;
  }
}

/* 桌面版：使用class控制卡片向下偏移 */
@media (min-width: 992px) {
  .mt-8rem {
    margin-top: 5rem;
  }
}

@media (min-width: 1400px) {
  .mt-8rem {
    margin-top: 8rem;
  }
}

/* 平板以下：上方3個，下方2個水平置中，所有卡片大小相同 */
@media (max-width: 991.98px) {
  .pain-points-cards {
    flex-direction: column;
    gap: 20px;
    margin-top: 60px;
  }
  
  /* 第一行：3個卡片 */
  .cards-row-top {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  /* 第二行：2個卡片水平置中 */
  .cards-row-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  /* 計算統一的卡片寬度 */
  /* 使用 calc((100% - 2 * gap) / 3) 確保3個卡片剛好一行 */
  .pain-point-card {
    flex: 0 0 calc((100% - 30px) / 3);
    width: calc((100% - 30px) / 3);
    max-width: calc((100% - 30px) / 3);
    min-width: 0;
    box-sizing: border-box;
  }
  
  /* 平板以下調整圖片大小，確保所有卡片圖片一致 */
  .pain-point-card .card-image {
    width: 100%;
  }
  
  .pain-point-card .card-label {
    font-size: 1rem;
  }
}

/* 響應式設計 - 痛點卡片 */
/* 桌面版中等尺寸 (992px - 1200px) - 保持桌面版布局 */
@media (min-width: 992px) and (max-width: 1200px) {
  .pain-points-cards {
    gap: 25px;
  }
  
  .pain-point-card {
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 220px;
  }
}

/* 手機版：與平板使用相同排版，只調整間距和字體大小 */
@media (max-width: 768px) {
  #pain-points {
    background-image: url('../images/bg1_xs.jpg');
    background-size: cover;
    background-position: center;
  }
  
  .pain-points-cards {
    gap: 15px;
    margin-top: 50px;
  }
  
  .cards-row-top,
  .cards-row-bottom {
    gap: 12px;
  }
  
  /* 所有卡片保持相同大小，與平板一致 */
  .pain-point-card {
    flex: 0 0 calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
    min-width: 0;
  }
  
  .pain-point-card .card-image {
    width: 90%;
  }
  
  .pain-point-card .card-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .pain-points-cards {
    gap: 12px;
    margin-top: 40px;
  }
  
  .cards-row-top,
  .cards-row-bottom {
    gap: 10px;
  }
  
  /* 所有卡片保持相同大小，與平板一致 */
  .pain-point-card {
    flex: 0 0 calc((100% - 20px) / 3);
    width: calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
    min-width: 0;
  }
  
  .pain-point-card .card-image {
    width: 100%;
  }
  
  .pain-point-card .card-label {
    font-size: 0.85rem;
  }
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-white);
  text-shadow: 0 0 15px var(--dell-blue-main);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--dell-blue-light);
  margin: 15px auto 0;
}

/* --- 通用標題組件樣式 --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

/* 大標題容器 */
.section-main-title {
  font-size: var(--fs-title-xl);
  font-weight: bold;
  line-height: 1.5; /* 減少行高，減少間距 */
  margin: 0;
  padding: 0 0 10px 0;
  position: relative;
  display: block;
  width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  /* 中文使用 Noto Sans TC，英文使用 Roboto */
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  letter-spacing: 0; /* 確保沒有額外的字間距 */
  word-spacing: -0.25em; /* 使用負的 word-spacing 來移除所有 inline 元素之間的空白字符間距（包括被 <br> 分隔的情況） */
}

/* 發光動畫定義 */
@keyframes gentleGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.5),
      0 0 20px rgba(255, 255, 255, 0.3),
      0 0 30px rgba(255, 255, 255, 0.2);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(255, 255, 255, 0.7),
      0 0 25px rgba(255, 255, 255, 0.5),
      0 0 35px rgba(255, 255, 255, 0.3);
  }
}

@keyframes gentleGlowHighlight {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(54, 237, 250, 0.8),
      0 0 20px rgba(72, 243, 255, 0.473),
      0 0 30px rgba(72, 243, 255, 0.212),
      0 0 40px rgba(72, 243, 255, 0.2);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(72, 243, 255, 1),
      0 0 25px rgba(72, 243, 255, 0.8),
      0 0 35px rgba(72, 243, 255, 0.6),
      0 0 45px rgba(72, 243, 255, 0.4);
  }
}

/* 大標題文字 - 一般部分 */
.section-main-title .title-normal {
  color: var(--text-white);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2);
  display: inline;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  word-spacing: normal; /* 恢復正常的單詞間距 */
  animation: gentleGlow 3s ease-in-out infinite;
}

/* 大標題文字 - 重點部分 */
.section-main-title .title-highlight {
  color: #48F3FF;
  text-shadow: 
    0 0 10px rgba(72, 243, 255, 0.8),
    0 0 20px rgba(72, 243, 255, 0.6),
    0 0 30px rgba(72, 243, 255, 0.4),
    0 0 40px rgba(72, 243, 255, 0.2);
  display: inline;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  word-spacing: normal; /* 恢復正常的單詞間距 */
  animation: gentleGlowHighlight 3s ease-in-out infinite;
}

/* 移除標題中所有相鄰 inline 元素之間的間距 */
/* 已在 .section-main-title 上使用 word-spacing: -0.25em 統一處理 */
/* 保留此規則作為備用，處理特殊情況 */
.section-main-title .title-normal + .title-highlight,
.section-main-title .title-highlight + .title-normal,
.section-main-title .title-normal + .title-normal,
.section-main-title .title-highlight + .title-highlight,
.section-main-title span + span {
  margin-left: -0.2em; /* 備用：使用負的 margin 來移除 inline 元素之間的空白字符間距 */
}

/* 光束裝飾線段 */
.section-main-title::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  min-height: 15px;
  background-image: url('../images/line.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  z-index: 1;
}

/* 副標題 */
.section-subtitle {
  font-size: var(--fs-subtitle);
  color: #B3DEEF;
  margin-top: 10px;
  line-height: 1.6;
  font-weight: 400;
  /* 中文使用 Noto Sans TC，英文使用 Roboto */
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .section-title-wrapper {
    padding: 0 3%;
  }
  .section-main-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .section-main-title::after {
    width: 90%;
  }
  
  /* section 漸層過渡 */
  section::before,
  section::after {
    height: 10.5em;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  /* section 漸層過渡高度*/
  section::before,
  section::after {
    height: 15em;
  }
}

/* --- KV 主視覺 --- */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-background {
  position: relative;
  width: 100%;
  z-index: 1;
  background: var(--dell-blue-main);
}

.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 70%;
  max-width: 1200px;
  opacity: 1 !important;
}

.hero-title-img {
  width: 80%;
  height: auto;
  display: block;
  opacity: 1 !important;
  filter: drop-shadow(0 0 15px rgba(104, 245, 255, 0.5))
          drop-shadow(0 0 30px rgba(104, 245, 255, 0.3))
          drop-shadow(0 0 45px rgba(72, 180, 255, 0.2));
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(104, 245, 255, 0.418))
            drop-shadow(0 0 20px rgba(104, 245, 255, 0.3))
            drop-shadow(0 0 35px rgba(72, 179, 255, 0.089));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(104, 245, 255, 0.397))
            drop-shadow(0 0 40px rgba(104, 245, 255, 0.301))
            drop-shadow(0 0 60px rgba(72, 179, 255, 0.164));
  }
}

/* 桌機版特定樣式 */
@media (min-width: 768px) {
  .hero-title {
      width: 65%;
      top: 45%;
  }
}

/* 手機版特定樣式 */
@media (max-width: 767.98px) {
  .hero-title {
      width: 85%;
      left: 50%;
      top: 30%;
      transform: translate(-50%, -50%);
  }
}
/* --- KV 主視覺 end--- */

/* --- 解決方案區 --- */
#solutions {
  position: relative;
  padding-bottom: 10em;
}
.gradient-bg{
  background-image: radial-gradient(circle, rgba(27, 125, 195, 1) 0%, rgb(0 45 99) 25%, rgba(5, 18, 70, 1) 100%);
}

#solutions .container {
  position: relative;
  z-index: 10;
}

.solution-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 0;
}

.solution-image {
  width: 100%;
  max-width: 100%;
  filter: brightness(1.1) contrast(2) saturate(1.5);
  transition: filter 0.3s ease, transform 0.3s ease;
  /* aspect-ratio: 1 / 1; */
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.solution-image:hover {
  filter: brightness(1.2) contrast(5) saturate(1.3);
  transform: translateY(-10px);
}


.solution-text {
  color: var(--text-white);
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: var(--fs-solution);
  line-height: 1.5;
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  word-break: keep-all;
  margin-top: 0.5em;
  display: inline-block;
}


/* 桌面版和平板版：3個一排 */
@media (min-width: 769px) {
  .solutions-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .solution-row-top,
  .solution-row-bottom {
    display: contents;
  }
  
  .solution-item {
    margin-bottom: 0;
  }
  
  .solution-text {
    font-size: var(--fs-solution);
    line-height: 1.5;
  }
}

/* 手機版：上1下2排列 */
@media (max-width: 768px) {
  .solution-row-top {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }
  
  .solution-row-bottom {
    display: flex;
    justify-content: center;
    padding-bottom: 5%;
  }
  
  .solution-item {
    margin-bottom: 0;
  }
  
  .solution-text {
    font-size: var(--fs-solution);
    line-height: 1.5;
  }
}

/* --- Tailored 區塊 --- */
#tailored {
  position: relative;
  overflow: visible;
  background: url('../images/context_bg.jpg') center / cover no-repeat;
}

/* 通用主題標籤圖片 */
.theme-img {
  position: absolute;
  left: 0;
  top: -60%;
  transform: translateY(-50%) translateX(calc(-100vw * 0.02 - 20px)); /* 補償 section padding (2%) 和 section-title-wrapper padding (20px) */
  width: 400px;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}
@media (min-width: 768px) {
  /* 中等尺寸以上，container-fluid px-md-5 有額外 padding (3rem = 48px) */
  .theme-img {
    transform: translateY(-50%) translateX(calc(-100vw * 0.02 - 68px)); /* section padding (2%) + section-title-wrapper padding (20px) + px-md-5 padding (48px) */
  }
}
@media (max-width: 767px) {
  .theme-img {
    width: 80%;
    top: -50%;
    left: 0;
    transform: translateY(-50%) translateX(calc(-100vw * 0.02 - 20px)); /* section padding (2%) + section-title-wrapper padding (20px) */
  }
}
/* 標題容器共用樣式 */
.tailored-title-wrapper,
.simplified-title-wrapper,
.ai-ready-title-wrapper,
.trusted-title-wrapper,
.ecosystem-title-wrapper {
  position: relative;
  overflow: visible;
}

/* --- Ecosystem 區塊 --- */
#ecosystem {
  position: relative;
  overflow: visible;
  padding-bottom: 8em;
}

#ecosystem .ecosystem-title-wrapper {
  overflow: visible;
  position: relative;
}

/* Ecosystem 區塊的上方漸層過渡 */
#ecosystem::before {
  content: "";
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(360deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(5 18 69) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ecosystem 區塊的下方漸層過渡 */
#ecosystem::after {
  content: "";
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(180deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(7 18 67) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 確保 Ecosystem 區塊的內容在漸層之上，但不影響 theme-img 的 mix-blend-mode */
#ecosystem > * {
  position: relative;
  z-index: auto; /* 改為 auto 以允許 mix-blend-mode 正常工作 */
}

#ecosystem .ecosystem-title-wrapper {
  z-index: auto; /* 改為 auto 以允許 mix-blend-mode 正常工作 */
}

/* 確保標題文字在漸層之上 */
#ecosystem .section-main-title,
#ecosystem .section-subtitle {
  position: relative;
  z-index: 1;
}

#ecosystem .row {
  position: relative;
  z-index: 1; /* 內容區域保持在漸層之上 */
}

/* 確保 ecosystem 圖片水平置中 */
#ecosystem picture {
  display: block;
  text-align: center;
  margin: 0 auto;
}

#ecosystem picture img {
  display: block;
  margin: 0 auto;
}

/* 確保 theme-img 的混合效果正常 */
#ecosystem .theme-img {
  z-index: auto; /* 改為 auto 以允許 mix-blend-mode 正常工作 */
  mix-blend-mode: plus-lighter !important; /* 確保混合模式生效 */
  isolation: auto; /* 確保不創建新的堆疊上下文 */
}

/* ===== theme-img mix-blend-mode 修復 ===== */
/* 包含 theme-img 的所有父層都需要 z-index: auto，避免創建獨立堆疊上下文 */
/* 排除 #ecosystem，因為它需要漸層且內容要在漸層之上 */
section:has(.theme-img):not(#ecosystem) > *,
section:has(.theme-img):not(#ecosystem) > * > * {
  z-index: auto !important;
}

/* 禁用漸層偽元素避免干擾 mix-blend-mode */
section:has(.theme-img)::before,
section:has(.theme-img)::after {
  display: none;
}

/* --- Simplified 區塊 --- */
#simplified {
  position: relative;
  overflow: visible;
}

/* --- AI Ready 區塊 --- */
#ai-ready {
  position: relative;
  overflow: visible;
  background: url('../images/ai-ready_bg.jpg') center / 100% no-repeat;
}
@media screen and (max-width: 768px) {
    /* AI Ready 區塊手機版背景 */
    #ai-ready {
      background: url(../images/ai-ready_bg_xs.jpg) 7% -20% no-repeat;
    }
}

/* AI Ready 區塊的上方漸層過渡 */
#ai-ready::before,#tailored::before,#pain-points::before {
  content: "";
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(360deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(7 17 66) 100%);
  pointer-events: none;
  z-index: 0;
}

/* AI Ready 區塊的下方漸層過渡 */
#ai-ready::after,#tailored::after,#pain-points::after {
  content: "";
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15em;
  background: linear-gradient(180deg, rgba(5, 18, 70, 0) 17%, rgba(5, 18, 70, 1) 60%, rgb(7 18 67) 100%);
  pointer-events: none;
  z-index: -1;
}

/* AI Ready 卡片區 */
.ai-ready-cards {
  padding: 2% 0 10%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.ai-ready-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-radius: 12px;
  border: 1px solid #59FFE6;
  background: linear-gradient(216deg, rgb(0 202 255 / 55%) 5%, rgb(2 11 49 / 35%) 50%);
  backdrop-filter: blur(5px);
  height: 100%;
  gap: 20px;
}

.ai-ready-card-content {
  flex: 1;
}

.ai-ready-card-title {
  color: #fff;
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(18px, 2.5vw + 6px, 35px);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.5vw, 16px);
}

.ai-ready-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #cfe8ff;
  font-size: clamp(16px, 1.2vw + 4px, 18px);
  line-height: 1.7;
}

.ai-ready-card-list li {
  position: relative;
  padding-left: 0;
}

.ai-ready-card-icon {
  flex-shrink: 0;
  width: clamp(60px, 10vw, 140px);
  height: clamp(60px, 10vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-ready-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .ai-ready-card {
    padding: clamp(12px, 2.5vw, 24px) clamp(10px, 2vw, 20px);
    gap: clamp(10px, 2vw, 20px);
  }
  .ai-ready-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #cfe8ff;
    font-size: clamp(2.75vw, 1.2vw + 4px, 18px);
    line-height: 1.7;
  }
}

@media (max-width: 576px) {
  .ai-ready-card {
    padding: clamp(10px, 2.5vw, 20px) clamp(8px, 2vw, 16px);
    border-radius: 8px;
  }
}

/* --- Trusted 區塊 --- */
#trusted {
  position: relative;
  overflow: visible;
  background: url('../images/ecosystem_bg.jpg') center / cover no-repeat;
}

.trusted-content {
  margin-top: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.trusted-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.trusted-image img {
  max-width: 100%;
  height: auto;
}

/* Trusted 圖片上的按鈕（左下方，科技感設計） */
.trusted-image-btn {
  position: absolute;
  bottom: -3%;
  left: 5%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(10, 25, 60, 0.9) 0%, rgba(5, 18, 70, 0.95) 100%);
  border: 2px solid #48F3FF;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 24px rgba(72, 243, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(72, 243, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.trusted-image-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(72, 243, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.trusted-image-btn:hover::before {
  left: 100%;
}

.trusted-image-btn:hover {
  transform: translateY(-2px);
  border-color: #68f5ff;
  box-shadow: 
    0 12px 32px rgba(72, 243, 255, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(72, 243, 255, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(10, 25, 60, 0.95) 0%, rgba(5, 18, 70, 1) 100%);
}

.trusted-btn-text {
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(14px, 1.2vw + 6px, 18px);
  font-weight: 700;
  color: #48F3FF;
  text-shadow: 0 0 10px rgba(72, 243, 255, 0.8);
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
}

.trusted-btn-icon {
  font-size: clamp(18px, 1.5vw + 6px, 24px);
  font-weight: 700;
  color: #48F3FF;
  text-shadow: 0 0 10px rgba(72, 243, 255, 0.8);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.trusted-image-btn:hover .trusted-btn-icon {
  transform: translateX(6px);
}

.trusted-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trusted-card {
  position: relative;
  padding: 24px 28px;
  border-radius: 12px;
  background: rgba(8, 6, 40, 0.60);
  backdrop-filter: blur(3.3px);
}

.trusted-card-decor {
  display: block;
  width: 100px;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.trusted-card-title {
  color: #fff;
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(20px, 2vw + 8px, 30px);
  font-weight: 700;
  margin-bottom: 12px;
}

.trusted-card-text {
  color: #cfe8ff;
  font-size: clamp(14px, 1.2vw + 4px, 18px);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 991.98px) {
  .trusted-content {
    margin-top: 40px;
    text-align: center;
  }
  
  .trusted-image {
    margin-bottom: 30px;
  }

  /* Trusted 圖片按鈕手機版 */
  .trusted-image-btn {
    bottom: -2%;
    left: 5%;
    padding: 12px 24px;
    gap: 8px;
  }

  .trusted-btn-text {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .trusted-btn-icon {
    font-size: 18px;
  }

  .trusted-card {
    padding: 20px 22px;
  }
}

@media (max-width: 576px) {
  .trusted-card {
    padding: 16px 18px;
  }

  /* Trusted 圖片按鈕小手機版 */
  .trusted-image-btn {
    bottom: -8%;
    left: 6%;
    padding: 10px 20px;
    gap: 6px;
  }

  .trusted-btn-text {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .trusted-btn-icon {
    font-size: 16px;
  }
  
  .trusted-card-decor {
    width: 80px;
  }
}

/* --- 成功案例區塊 --- */
#success-cases {
  position: relative;
  overflow: visible;
}
#success-cases .container{
  max-width: 1480px;
}

.success-cases-cards {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}

/* 成功案例卡片連結 */
.success-case-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.success-case-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 50, 120, 0.4) 0%, rgba(5, 18, 70, 0.95) 100%);
  border-radius: 12px;
  border: 1px solid #3BD3ED;
  background: linear-gradient(162deg, rgba(0, 255, 255, 0.40) 33.85%, rgba(9, 0, 180, 0.40) 101.27%);
  backdrop-filter: blur(3.299999952316284px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease;
  cursor: pointer; /* 滑鼠游標變成手指 */
}

.success-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(72, 243, 255, 0.2);
  filter: contrast(1.15) brightness(1.15); /* 提高對比度和亮度 */
  background: linear-gradient(162deg, rgba(0, 255, 255, 0.50) 33.85%, rgba(9, 0, 180, 0.50) 101.27%); /* 提高背景透明度以增強對比 */
}

.success-case-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.success-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.success-case-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.success-case-decor {
  display: block;
  width: 60%;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.success-case-text {
  color: #cfe8ff;
  font-size: clamp(13px, 1.1vw + 4px, 16px);
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin: 0;
}

@media (max-width: 991.98px) {
  .success-cases-cards {
    margin-top: 40px;
  }
  
  .success-case-content {
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .success-case-content {
    padding: 5%;
  }
  
  .success-case-decor {
    width: 70px;
    margin-bottom: 10px;
  }
  
  .success-case-text {
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0;
  }
}

/* --- 影片專區 --- */
#videos {
  position: relative;
  overflow: visible;
}

#videos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/lines-bg.png') center / 100% no-repeat;
  mix-blend-mode: color-dodge;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  height: 100%;
}

#videos > * {
  position: relative;
  z-index: 3;
}

.video-cards {
  margin-top: 50px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

/* 影片卡片連結 */
.video-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-card {
  text-align: center;
}

.video-card-image {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #3BD3ED;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* 播放圖標 */
.video-card-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80px;
  height: 80px;
  background: rgba(0, 33, 95, 0.85);
  border: 3px solid #3BD3ED;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

/* 播放三角形 */
.video-card-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%) scale(0.8);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #3BD3ED;
  z-index: 3;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card-image:hover::before,
.video-card-image:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card-image:hover::after {
  transform: translate(-35%, -50%) scale(1);
}

.video-card-image:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(59, 211, 237, 0.3);
}

/* Hover 時圖片變暗 */
.video-card-image:hover img {
  filter: brightness(0.7);
}

.video-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.video-card-title {
  color: #fff;
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(14px, 1.3vw + 6px, 20px);
  font-weight: 500;
  line-height: 1.6;
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 991.98px) {
  .video-cards {
    margin-top: 40px;
  }
  
  .video-card-title {
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .video-card-title {
    font-size: 14px;
    margin-top: 12px;
  }
  
  .video-card-image {
    border-width: 2px;
  }
  
  /* 小屏幕播放圖標縮小 */
  .video-card-image::before {
    width: 60px;
    height: 60px;
  }
  
  .video-card-image::after {
    border-width: 12px 0 12px 20px;
  }
}

/* CTA 連結圖片 */
.cta-link {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cta-link img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1) saturate(1);
  width: 100%;
}

.cta-link:hover img {
  transform: translateY(-8px);
  filter: brightness(1.1) saturate(1.2) drop-shadow(0 8px 20px rgba(59, 211, 237, 0.4));
}

/* --- 獎品專區 Prize Section --- */
#survey {
  position: relative;
  background-image: url(../images/bg_right_top.png), url(../images/bg_left_bottom.png), 
  radial-gradient(circle, rgb(20 89 153) 0%, rgb(10 49 129) 25%, rgb(0 6 28) 100%);
  background-position: top right, bottom left;
  background-repeat: no-repeat, no-repeat;
}

#survey::after {
  background: linear-gradient(180deg, rgb(0 12 59 / 0%) 17%, rgb(0 8 39) 60%, rgb(0 5 25) 100%);
  z-index: 0;
  pointer-events: none;
}

/* 覆蓋通用 section > * 的 z-index: 3，允許 mix-blend-mode 與背景融合 */
#survey > * {
  z-index: auto !important;
}

#survey .container {
  position: relative;
}

/* 確保所有中間層級都不創建獨立堆疊上下文 */
#survey .prize-cards,
#survey .prize-card,
#survey .prize-visual {
  z-index: auto !important;
}

/* 注意事項連結樣式 */
#survey .prize-info-note {
  cursor: pointer;
}

/* 確保問卷按鈕在 ::after 漸層之上 */
#survey .survey-cta-wrapper {
  position: relative;
  z-index: 1 !important;
}

/* 獎品副標題 */
.prize-subtitle {
  font-weight: 700;
  color: #fff;
  font-size: clamp(16px, 1.8vw + 8px, 30px);
}

/* 活動資訊 */
.prize-info {
  text-align: center;
  margin-bottom: 40px;
  margin-top: -20px;
}

.prize-info-text {
  color: #B3DEEF;
  font-size: clamp(14px, 1.2vw + 6px, 25px);
  margin-bottom: 0;
  line-height: 1.6;
}

.prize-info-note {
  color: #48F3FF;
  font-size: clamp(14px, 1.2vw + 6px, 25px);
  margin: 0;
  line-height: 1.6;
}

/* 獎品卡片區域 */
.prize-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

/* 獎品卡片 */
.prize-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  padding-bottom: 5%;
}

/* 獎品背景和產品圖 */
.prize-visual {
  position: relative;
  width: 100%;
  /* aspect-ratio: 1 / 1.2; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 10px;
  overflow: visible;
}

/* 背景圖使用偽元素 - mix-blend-mode: screen 去除黑色 */
.prize-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: contrast(1.3);
}

/* 各獎項背景圖 */
.prize-card[data-prize="1"] .prize-visual::after {
  background-image: url('../images/award_1bg.png');
}

.prize-card[data-prize="2"] .prize-visual::after {
  background-image: url('../images/award_2bg.png');
}

.prize-card[data-prize="3"] .prize-visual::after {
  background-image: url('../images/award_3bg.png');
}

.prize-product {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  margin-top: 5%;
  transition: transform 0.3s ease;
}

.prize-card:hover .prize-product {
  transform: scale(1.05);
}

/* 獎品名稱 */
.prize-name {
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(16px, 1.5vw + 6px, 35px);
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: center;
}

/* 獎品價格 */
.prize-price {
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(14px, 1.2vw + 5px, 18px);
  color: #3BD3ED;
  line-height: 1.4;
}

/* 填寫問卷按鈕 */
.survey-cta-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0 60px;
}

.survey-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 80px;
  background: linear-gradient(135deg, #af00db 0%, #a50ffc 30%, #0e41cc 70%, #2f1ec4 100%);
  border: 3px solid #68f5ff;
  border-radius: 60px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(53, 73, 255, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgb(104, 245, 255),
    inset 0 0 40px rgba(175, 0, 219, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.survey-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.survey-cta-btn:hover::before {
  left: 100%;
}

.survey-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 48px rgba(53, 248, 255, 0.6),
    0 8px 24px rgba(30, 185, 196, 0.4),
    inset 0 0 30px rgba(104, 245, 255, 0.842),
    inset 0 0 60px rgba(175, 0, 219, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.781),
    inset 0 -2px 12px rgba(0, 0, 0, 0.904);
  border-color: #00fff2;
}

.survey-cta-text {
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(24px, 2.5vw + 10px, 36px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 4px;
}

.survey-cta-arrow {
  font-size: clamp(28px, 3vw + 10px, 42px);
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s ease;
}

.survey-cta-btn:hover .survey-cta-arrow {
  transform: translateX(8px);
}

/* 桌機版：3個並排 */
@media (min-width: 992px) {
  .prize-cards {
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
  }
  
  .prize-card {
    flex: 1;
    max-width: 33.333%;
  }
  
  .prize-visual {
    max-width: 100%;
  }
  
  .prize-product {
    width: 100%;
    max-width: 100%;
    /* margin-top: 50%; */
  }
}

/* 平板版及以下：上1下2 */
@media (max-width: 991.98px) {
  .prize-info-text {
    font-size: clamp(13px, 1vw + 5px, 16px);
  }
  
  .prize-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
  }
  
  .prize-card {
    width: 100%;
    max-width: none;
    flex: none;
  }
  
  /* 首獎佔滿一行並置中，內容與下方相同大小 */
  .prize-card:first-child {
    grid-column: 1 / -1;
    width: 50%;
    max-width: 50%;
  }
  
  .prize-visual {
    max-width: 100%;
  }
  
  .prize-product {
    width: 80%;
  }
}

/* 手機版：上1下2，首獎較大 */
@media (max-width: 767.98px) {
  #survey {
    padding: 50px 0 40px;
    background-image: url('../images/bg_xs.jpg');
    background-size: cover;
    background-position: center;
  }
  
  .prize-info {
    margin-bottom: 20px;
  }
  
  .prize-info-text {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .prize-info-note {
    font-size: 12px;
  }
  
  .prize-cards {
    gap: 15px 12px;
    padding-bottom: 30px;
  }
  
  /* 首獎佔滿整行，居中顯示 */
  .prize-card:first-child {
    grid-column: 1 / -1;
    width: 65%;
    max-width: 65%;
    justify-self: center;
  }
  
  /* 二獎三獎各佔一半 */
  .prize-card:nth-child(2),
  .prize-card:nth-child(3) {
    width: 100%;
    max-width: 100%;
  }
  
  .prize-visual {
    margin-bottom: 10px;
  }
  
  .prize-product {
    width: 85%;
  }
  
  .prize-name {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  .prize-price {
    font-size: 12px;
  }

  /* 問卷按鈕手機版 */
  .survey-cta-wrapper {
    padding: 10px 0 40px;
  }

  .survey-cta-btn {
    padding: 18px 40px;
    gap: 12px;
  }

  .survey-cta-text {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .survey-cta-arrow {
    font-size: 24px;
  }

  /* 產品按鈕手機版 */
  .product-cta-wrapper {
    padding: 12px 0 0;
    margin-top: 16px;
    justify-content: center !important;
    width: 100%;
  }

  .product-cta-btn {
    padding: 8px 35px;
    gap: 8px;
    display: flex;
  }

  .product-cta-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .product-cta-arrow {
    font-size: 20px;
  }
}

/* 小手機版 */
@media (max-width: 480px) {
  #survey {
    padding: 40px 0 30px;
  }
  
  .prize-cards {
    gap: 12px 10px;
  }
  
  /* 首獎佔滿整行，居中顯示 */
  .prize-card:first-child {
    width: 70%;
    max-width: 70%;
  }
  
  .prize-product {
    width: 90%;
  }
  
  .prize-name {
    font-size: 16px;
  }
  
  .prize-price {
    font-size: 11px;
  }

  /* 問卷按鈕小手機版 */
  .survey-cta-btn {
    padding: 16px 32px;
    gap: 10px;
  }

  .survey-cta-text {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .survey-cta-arrow {
    font-size: 22px;
  }

  /* 產品按鈕小手機版 */
  .product-cta-wrapper {
    padding: 10px 0 0;
    margin-top: 12px;
    justify-content: center !important; /* 小手機版水平置中 */
    width: 100%; /* 確保寬度 100% */
  }

  .product-cta-btn {
    padding: 10px 24px;
    gap: 6px;
    display: flex; /* 改為 flex 確保置中 */
  }

  .product-cta-text {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .product-cta-arrow {
    font-size: 18px;
  }
}

/* --- 活動注意事項 Modal --- */
.terms-modal-content {
  background: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terms-modal-header {
  border-bottom: none;
  padding: 30px 30px 20px;
  position: relative;
}

.terms-modal-title {
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #0672CB;
  text-align: center;
  width: 100%;
  margin: 0;
}

.terms-modal-header .btn-close {
  position: absolute;
  right: 30px;
  top: 30px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.terms-modal-header .btn-close:hover {
  opacity: 1;
}

.terms-modal-body {
  padding: 10px 30px 30px;
}

.terms-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.terms-list li {
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(16px, 1.2vw + 4px, 18px);
  color: #0E0E0E;
  line-height: 1.8;
  margin-bottom: 15px;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.terms-highlight {
  color: #0066cc;
  font-weight: 500;
}

/* 注意事項連結樣式 */
a.prize-info-note {
  color: #48F3FF;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

a.prize-info-note:hover {
  color: #7fffff;
  text-decoration: underline;
}

/* Modal 響應式 */
@media (max-width: 767.98px) {
  .terms-modal-header {
    padding: 20px 20px 15px;
  }
  
  .terms-modal-body {
    padding: 10px 20px 25px;
  }
  
  .terms-list li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
}

/* Simplified 區塊 - 產品 TAB */
.product-tabs {
  position: relative;
  margin: 20px auto;
  max-width: 1500px;
}

.product-decorative-image {
  display: none;
}

.product-pills {
  gap: 12px;
  flex-wrap: nowrap;
  margin: 0 auto;
  padding: 1.5% 12px;
  display: flex;
  font-size: clamp(14px, 2vw + 4px, 24px);
  justify-content: center;
}

.product-pills .nav-item {
  width: 250px;
}

.product-pill {
  border-radius: 95.028px;
  border: 2px solid #0adbff;
  background: transparent;
  color: #e7f8ff;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.product-pill.active,
.product-pill:hover {
  background: linear-gradient(114deg, #1c1778 45.94%, #1fffd5 110.24%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 218, 255, 0.35);
}

.product-pill:not(.active):hover {
  border-color: #35e2ff;
  color: #35e2ff;
}

.product-tab-content {
  margin: 26px auto 100px;
  max-width: 100%;
}

.product-tab-body {
  position: relative;
  padding: 5% 45px 8%;
  border-radius: 36px;
  background: url(../images/product_bg.png) -135% 35% / 85% no-repeat, 
  linear-gradient(18deg, rgba(6, 159, 255, 0.993) 10%, rgba(2, 51, 185, 0.966) 45%, rgba(6, 31, 109, 0.60) 60%);
  
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.product-tab-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.product-tab-body::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  width: 25%;
  height: 110px;
  background: url('../images/decorate.png') center / contain no-repeat;
  mix-blend-mode: screen;
  /* opacity: 0.85; */
  pointer-events: none;
  z-index: 0;
}

.product-tab-body .row {
  position: relative;
}

.product-image-frame {
  position: relative;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

/* 產品背景圖 - mix-blend-mode: screen 去除黑色 */
.product-image-frame .product-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: lighten;
  /* filter: brightness(1.5);  */
  pointer-events: none;
}

/* 產品圖 */
.product-image-frame .product-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.2); 
}

.product-text-block {
  color: #d9ecff;
  max-width: 550px;
}

/* 產品按鈕（參考 survey-cta-wrapper 風格） */
.product-cta-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 16px 0 0;
  margin-top: 20px;
}

.product-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #af00db 0%, #a50ffc 30%, #0e41cc 70%, #2f1ec4 100%);
  border: 2px solid #68f5ff;
  border-radius: 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 6px 24px rgba(53, 73, 255, 0.5),
    0 3px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(104, 245, 255, 0.3),
    inset 0 0 30px rgba(175, 0, 219, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.product-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.product-cta-btn:hover::before {
  left: 100%;
}

.product-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 48px rgba(53, 248, 255, 0.6),
    0 8px 24px rgba(30, 185, 196, 0.4),
    inset 0 0 30px rgba(104, 245, 255, 0.5),
    inset 0 0 60px rgba(175, 0, 219, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 12px rgba(0, 0, 0, 0.2);
  border-color: #00fff2;
}

.product-cta-text {
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-size: clamp(14px, 1.5vw + 6px, 20px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
}

.product-cta-arrow {
  font-size: clamp(18px, 2vw + 6px, 28px);
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s ease;
}

.product-cta-btn:hover .product-cta-arrow {
  transform: translateX(8px);
}

.product-tab-title {
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-card-title);
  margin-bottom: 12px;
}

.product-tab-text {
  color: #cfe8ff;
  font-size: var(--fs-subtitle);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-tab-list {
  padding-left: 18px;
  margin: 0;
  color: #cfe8ff;
  font-size: var(--fs-card-body);
  line-height: 1.6;
}

.product-tab-list li + li {
  margin-top: 6px;
}

@media (max-width: 991.98px) {
  .product-tab-body {
    padding: 32px 24px;
    border-radius: 30px;
    min-height: auto;
    background: url(../images/product_bg.png) 45% -198% /cover no-repeat, linear-gradient(18deg, rgba(6, 159, 255, 0.993) 10%, rgba(2, 51, 185, 0.966) 45%, rgba(6, 31, 109, 0.60) 60%);
  }
  .product-pills .nav-item {
    flex: 1 1 0;
  }
}

@media (max-width: 768px) {
  .product-tab-body::after {
    top: -9%;
    width: 45%;
    z-index: 0;
  }
  .product-tabs {
    margin-top: 30px;
  }
  
  .product-pills {
    gap: 8px;
    padding: 1.5% 8px;
  }
  
  .product-pill {
    padding: 8px 10px;
    font-size: 14px;
    border-width: 1.5px;
  }
  
  .product-decorative-image {
    top: -20px;
    width: 160px;
  }
  
  .product-tab-title,
  .product-tab-text,
  .product-tab-list {
    text-align: center;
  }
  
  .product-tab-list {
    padding-left: 0;
    list-style-position: inside;
  }
}

@media (max-width: 576px) {
  .product-pills {
    gap: 6px;
    padding: 2% 5px;
  }
  
  .product-pill {
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: 0;
  }
  
  .product-tab-body {
    padding: 22px 16px;
    border-radius: 20px;
  }
  
  .product-decorative-image {
    right: -10px;
  }
}

/* 卡片容器 */
.tailored-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 2%;
  justify-content: center;
  padding-bottom: 15%;
}

/* 卡片樣式 */
.tailored-card {
  position: relative;
  flex: 0 0 calc(20% - 16px);
  min-width: 0;
  max-width: calc(20% - 16px);
  width: calc(20% - 16px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 18, 70, 0.8);
  border: 1px solid rgba(72, 243, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .tailored-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(72, 243, 255, 0.3);
} */

/* 卡片背景圖 */
.tailored-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 各張卡片背景圖 */
.tailored-card:nth-child(1) .card-bg { background-image: url('../images/card_bg1.jpg'); }
.tailored-card:nth-child(2) .card-bg { background-image: url('../images/card_bg2.jpg'); }
.tailored-card:nth-child(3) .card-bg { background-image: url('../images/card_bg3.jpg'); }
.tailored-card:nth-child(4) .card-bg { background-image: url('../images/card_bg4.jpg'); }
.tailored-card:nth-child(5) .card-bg { background-image: url('../images/card_bg5.jpg'); }

/* 卡片內容 */
.tailored-card .card-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 5%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgb(0 9 45 / 95%) 0%, rgb(0 0 0 / 75%) 30%, #00000000 60%);
}

/* 卡片標題 */
.tailored-card .card-title {
  color: var(--text-white);
  font-family: "Noto Sans TC Title", "Roboto Title", "Noto Sans TC", "Roboto", sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: var(--fs-card-title);
  line-height: 1.3;
}

/* 卡片內文 */
.tailored-card .card-text {
  color: var(--text-gray);
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  font-size: var(--fs-card-body);
  line-height: 1.6;
  margin: 0;
}

/* 響應式設計 - Tailored 卡片 */
@media (min-width: 992px) {
  .tailored-cards {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  
  .tailored-card {
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
    width: calc(20% - 16px);
    aspect-ratio: 3 / 4;
  }
  
  .tailored-card.mt-8rem {
    margin-top: 5rem;
  }
}

@media (min-width: 1240px) {
  .tailored-card.mt-5rem {
    margin-top: 5rem;
  }
}

/* 平板：上3下2 布局，水平置中 */
@media (max-width: 1240px) {
  .tailored-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: stretch;
  }
  
  /* 每個卡片寬度為 33.33%（3個一行） */
  .tailored-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    width: calc(33.333% - 10px);
    aspect-ratio: 3 / 4;
    height: auto;
  }
  
  .tailored-card.mt-8rem,
  .tailored-card.mt-4rem {
    margin-top: 0;
  }
  
  /* 第4、5張卡片（下方那排）保持相同大小，自動置中 */
  .tailored-card:nth-child(4),
  .tailored-card:nth-child(5) {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    width: calc(33.333% - 10px);
  }
}

/* 手機版：2-2-1 布局 */
@media (max-width: 768px) {
  .tailored-title-wrapper::before {
    left: -50px;
    width: 120px;
    height: 120px;
  }
  
  .tailored-cards {
    gap: 12px;
  }
  
  /* 手機版所有卡片統一寬度 2 個一行 */
  .tailored-card,
  .tailored-card:nth-child(1),
  .tailored-card:nth-child(2),
  .tailored-card:nth-child(3),
  .tailored-card:nth-child(4),
  .tailored-card:nth-child(5) {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    width: calc(50% - 6px);
    aspect-ratio: 3 / 4;
  }
  
  .tailored-card .card-title {
    font-size: clamp(20px, 2.5vw + 8px, 35px);
    margin-bottom: 5px;
  }
  
  .tailored-card .card-text {
    font-size: clamp(11px, 1.2vw + 6px, 18px);
  }
}

/* 小手機版 */
@media (max-width: 576px) {
  .tailored-cards {
    gap: 10px;
  }
  
  /* 小手機版所有卡片統一寬度 */
  .tailored-card,
  .tailored-card:nth-child(1),
  .tailored-card:nth-child(2),
  .tailored-card:nth-child(3),
  .tailored-card:nth-child(4),
  .tailored-card:nth-child(5) {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    width: calc(50% - 5px);
    aspect-ratio: 3 / 4;
  }
}
@media (min-width: 992px) {
  .modal-lg, .modal-xl {
      --bs-modal-width: 80%;
  }
}


/* ===== 得獎公布 CSS ===== */

/* 自動開啟的圖片彈窗樣式 */
.awardOpen .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.awardOpen .btn-close {
  position: absolute;
  top: 10px;
  right: 10%;
  z-index: 9050;
  opacity: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  padding: 15px;
  background: transparent;
  border: none;
}

.awardOpen .modal-body {
  padding: 0;
  text-align: center;
}

.awardOpen .modal-body img {
  width: 100%;
  height: auto;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .awardOpen .modal-dialog {
      margin: 10px;
  }
  
  .awardOpen .btn-close {
      top: 5px;
      right: 5px;
      width: 50px;
      height: 50px;
      padding: 12px;
  }
}

@media (max-width: 480px) {
  .awardOpen .modal-dialog {
      margin: 5px;
  }
  
  .awardOpen .btn-close {
      top: 3px;
      right: 3px;
      width: 45px;
      height: 45px;
      padding: 10px;
  }
} 