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

body {
  font-family: "Noto Sans", sans-serif;
  background-color: #000;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.section {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  /* min-height: 100vh;*/
}

.edm-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  background: transparent;
  overflow: hidden;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
}

/* Slider layer 特殊樣式 */
.layer.slider-layer {
  height: 100%; /* slider layer 需要明確的高度 */
  opacity: 1; /* slider layer 應該總是可見 */
}

.layer img {
  width: 100%;
  height: auto;
  display: block;
}

.bg-layer {
  position: relative;
  z-index: 1;
}

/* text-layer 類別已移除，z-index 由命名規範 v2.3 自動生成 */

/* Slider 元件樣式 */
.slider-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-image {
  position: absolute;
  width: 100%;
  height: auto;
}

/* Slider 導航點 */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* 新群組命名規範樣式 (v2.0) - 修正版 */
.group-wrapper {
  position: absolute;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.group-container {
  position: relative; /* 群組容器預設 relative */
  width: 100%;
  height: auto;
}

/* 基本圖層樣式 */
.group-container .layer {
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
}

/* 帶座標參數的群組容器為 absolute */
.group-container.absolute-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 自定義 Slider 樣式 */
.custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  pointer-events: auto;
  border-radius: 12px;
}

.custom-slider:active {
  cursor: grabbing;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Slider 子元素樣式 */
.slide-element {
  width: 100%;
  height: 100%;
}

.slide-element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 導航箭頭 - 精緻設計 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #333;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 箭頭圖標 */
.slider-arrow::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.slider-prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.slider-next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* 背景裝飾效果 */
.slider-arrow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s ease;
}

/* Hover 效果 */
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-arrow:hover::before {
  border-color: rgba(255, 255, 255, 1);
  transform: rotate(45deg) scale(1.1);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.slider-prev:hover::before {
  transform: rotate(-135deg) scale(1.1);
}

.slider-arrow:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 點擊效果 */
.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 1px 5px rgba(0, 0, 0, 0.08);
}

/* 位置調整 */
.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .slider-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
  }
  
  .slider-arrow::before {
    width: 8px;
    height: 8px;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
}

/* 群組容器樣式 */
.group-container {
  position: relative;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .edm-container {
    max-width: 100%;
  }
}

/* Section 1 群組定位規則 (群組命名規範 v2.3) */
.s1-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s1-g1-2 {
  position: absolute; /* s1-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s1-g1-3 {
  position: absolute; /* s1-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s1-g1-4 {
  position: absolute; /* s1-g1-4{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 2 群組定位規則 (群組命名規範 v2.3) */
.s2-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s2-g1-2 {
  position: absolute; /* s2-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s2-g1-3 {
  position: absolute; /* s2-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s2-g1-4 {
  position: absolute; /* s2-g1-4{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 3 群組定位規則 (群組命名規範 v2.3) */
.s3-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s3-g1-2 {
  position: absolute; /* s3-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s3-g1-3 {
  position: absolute; /* s3-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s3-g1-4 {
  position: absolute; /* s3-g1-4{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 4 群組定位規則 (群組命名規範 v2.3) */
.s4-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s4-g1-2 {
  position: absolute; /* s4-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s4-g1-3 {
  position: absolute; /* s4-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s4-g1-4 {
  position: absolute; /* s4-g1-4{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 5 群組定位規則 (群組命名規範 v2.3) */
.s5-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s5-g1-2 {
  position: absolute; /* s5-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s5-g1-3 {
  position: absolute; /* s5-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 6 群組定位規則 (群組命名規範 v2.3) */
.s6-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

.s6-g1-2 {
  position: absolute; /* s6-g1-2{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s6-g1-3 {
  position: absolute; /* s6-g1-3{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s6-g1-4 {
  position: absolute; /* s6-g1-4{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

.s6-g1-5 {
  position: absolute; /* s6-g1-5{l0t0}.svg - 有 {} 座標參數，使用 absolute，left:0% top:0% z-index:1 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1; /* 比背景層級更高 */
}

/* Section 7 群組定位規則 (群組命名規範 v2.3) */
.s7-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

/* .slider-layer.s7-g1-1 Slider 容器 */
.slider-layer.s7-g1-1 {
  position: absolute; /* Slider 容器絕對定位 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  width: 100%;
  height: 100%; /* Slider 總是占滿整個群組高度 */
  z-index: 1; /* 確保在最上層，能接收事件 */
  pointer-events: auto; /* 確保能接收觸控事件 */
}

/* .s7-g1-1 自定義 Slider 子容器 */
.s7-g1-1 .custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* Section 8 群組定位規則 (群組命名規範 v2.3) */
.s8-g1-1 {
  position: relative; /* 第1個元素永遠 relative，撐開群組高度 */
}

/* .slider-layer.s8-g1-1 Slider 容器 */
.slider-layer.s8-g1-1 {
  position: absolute; /* Slider 容器絕對定位 */
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  width: 100%;
  height: 100%; /* Slider 總是占滿整個群組高度 */
  z-index: 1; /* 確保在最上層，能接收事件 */
  pointer-events: auto; /* 確保能接收觸控事件 */
}

/* .s8-g1-1 自定義 Slider 子容器 */
.s8-g1-1 .custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* 客製化微調修正*/
.no-pointer {
  pointer-events: none;
}
.hidden {
  visibility: hidden;
}

/* Section 卡牌效果底層容器 - 僅桌機版顯示 */
.section-cards-overlay {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% - 360px - 20px - min(66px, calc((100vh - 200px) / 8))); /* 動態調整左側位置 */
  z-index: 9999;
  display: none; /* 預設隱藏 */
  flex-direction: column;
  gap: min(8px, calc((100vh - 200px) / 50)); /* 動態間距 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  max-height: calc(100vh - 100px);
  overflow: visible; /* 避免滾動，強制在 viewport 內顯示 */
  padding: 5px;
  
  /* 動態容器高度 */
  height: auto;
  max-height: none;
}

/* 只在桌機版顯示卡牌 */
@media (min-width: 1024px) {
  .section-cards-overlay {
    display: flex;
  }
}

.section-cards-overlay::-webkit-scrollbar {
  width: 6px;
}

.section-cards-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.section-cards-overlay::-webkit-scrollbar-thumb {
  background: rgba(84, 101, 227, 0.5);
  border-radius: 3px;
}

.section-cards-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 101, 227, 0.8);
}

.section-cards-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.section-card {
  /* 動態尺寸：根據 viewport 高度和卡牌數量計算 */
  width: min(66px, calc((100vh - 200px) / 8)); /* 8個卡牌 + 間距 */
  height: min(66px, calc((100vh - 200px) / 8));
  max-width: 66px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease; /* 只針對非 transform 屬性 */
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 3px solid transparent;
  background: #fff;
  will-change: transform; /* 提示瀏覽器準備 transform 動畫 */
}

.section-card:hover {
  /* 移除 transform，由 JavaScript 控制以避免衝突 */
  box-shadow: 0 8px 24px rgba(15, 64, 63, 0.3);
  border-color: #0f403f;
}

.section-card.current {
  border-color: #182648;
  box-shadow: 0 8px 24px rgba(24, 38, 72, 0.4);
}

/* 卡牌內容 - 完全獨立不受 GSAP 干擾 */
.section-card-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.section-card-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 保留原有樣式以防未來需要 */
.section-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-card-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.section-card-element {
  position: absolute;
  display: block;
}

.section-card-element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* 響應式調整 - 始終保持在左側，動態尺寸 */
@media (max-width: 1400px) {
  .section-cards-overlay {
    left: calc(50% - 340px - 15px - min(60px, calc((100vh - 180px) / 8)));
  }
  
  .section-card {
    width: min(60px, calc((100vh - 180px) / 8));
    height: min(60px, calc((100vh - 180px) / 8));
    max-width: 60px;
  }
}

@media (max-width: 768px) {
  .section-cards-overlay {
    left: calc(50% - 320px - 10px - min(54px, calc((100vh - 220px) / 8)));
    gap: min(6px, calc((100vh - 220px) / 60));
  }
  
  .section-card {
    width: min(54px, calc((100vh - 220px) / 8));
    height: min(54px, calc((100vh - 220px) / 8));
    max-width: 54px;
  }
}

/* 始終保持單列佈局 - 移除網格和橫向佈局 */

/* ========================================
   CTA Menu Box 樣式 - 高級質感版
   ======================================== */

/* Desktop: 定位在 section 側邊 */
.cta-menu-box {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% + 720px/2 + 20px); /* section max-width 720px 的右側 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  padding: 5px;
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* 當螢幕寬度不足以顯示側邊時，回到右下角 */
@media (max-width: 1100px) {
  .cta-menu-box {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
  }
}

.cta-menu-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(103, 126, 234, 0.02) 0%, 
    rgba(118, 75, 162, 0.02) 100%);
  border-radius: 28px;
  pointer-events: none;
}

.cta-menu-box:hover {
  transform: translateY(-54px) scale(1.02);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.15),
    0 12px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 1100px) {
  .cta-menu-box:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

.div-cta-element {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.div-cta-element:hover {
  transform: scale(1.12) translateY(-2px);
}

.div-cta-element:active {
  transform: scale(0.92);
}

.div-cta-icon-box.cta-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.25),
    0 3px 10px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.div-cta-icon-box.cta-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.div-cta-element:hover .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 
    0 12px 35px rgba(102, 126, 234, 0.35),
    0 5px 15px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.div-cta-element:hover .div-cta-icon-box.cta-v2::before {
  opacity: 1;
}

.cta-icon {
  font-size: 22px;
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.div-cta-element:hover .cta-icon {
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-mobile-decorated-line-v1 {
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, 
    rgba(103, 126, 234, 0.3) 0%, 
    rgba(103, 126, 234, 0.8) 50%, 
    rgba(118, 75, 162, 0.3) 100%);
  border-radius: 2px;
  margin: 10px 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(103, 126, 234, 0.2);
}

.cta-menu-box:hover .cta-mobile-decorated-line-v1 {
  opacity: 0.8;
  transform: scaleY(1.1);
}

/* CTA 文字標籤 - 只在桌面版隱藏 */
.cta-text {
  display: none;
}

/* 響應式設計 - CTA Menu Box */
@media (max-width: 768px) {
  .cta-menu-box {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow:
      0 -10px 40px rgba(0, 0, 0, 0.1),
      0 -4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.95);
  }
  
  .div-cta-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 60px;
  }

  .div-cta-icon-box.cta-v2 {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .cta-icon {
    font-size: 22px;
  }

  /* 隱藏分隔線在橫向佈局 */
  .cta-mobile-decorated-line-v1 {
    display: none;
  }
  
  /* 顯示文字標籤 */
  .cta-text {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .cta-menu-box {
    padding: 12px 15px;
    gap: 10px;
  }
  
  .div-cta-element {
    min-width: 55px;
  }

  .div-cta-icon-box.cta-v2 {
    width: 46px;
    height: 46px;
  }

  .cta-icon {
    font-size: 20px;
  }
  
  /* 小螢幕文字標籤調整 */
  .cta-text {
    font-size: 10px;
    margin-top: 3px;
  }
}

/* Contact Form 聯絡表單樣式 */
#section-contact {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* background: linear-gradient(135deg, #080f73ff 0%, #ffffffff 100%); */
  background: white;
  background: #182648;
  /* min-height: 100vh; */
  padding: 60px 20px;
  display: block !important;
  visibility: visible !important;
}

.contact-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
}

.contact-form-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 80vh; */
  /* padding: 40px 0; */
  /* background: transparent; */
}

.contact-form {
  /* background: rgba(255, 255, 255, 0.95); */
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5%;
  /* max-width: 500px; */
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.contact-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  display: block !important;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label:not(.checkbox-item) {
  display: block;
  margin-bottom: 8px;

  /* color: #333; */
  color: white;

  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* border-radius: 12px; */
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 複選框群組樣式 */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  position: relative;
  gap: 8px;
  margin-bottom: 0 !important;
}

.checkbox-item:hover {
  background-color: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.checkmark:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 文字包裝樣式 */
.checkbox-text {
  display: flex;
  align-items: center;
  line-height: 1.3;
  font-size: 14px;
  /* color: #333; */
  color: white;
  height: 20px;
}

/* 隱私權政策樣式 */
.privacy-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(20px);
}

.privacy-content {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-content p {
  margin-bottom: 8px;
}

.privacy-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.privacy-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 4px;
}

.privacy-link {
  color: #8b93ff;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #a5b4fc;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(139, 147, 255, 0.5);
}

.privacy-checkbox {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* .privacy-checkbox .checkmark {
  border-color: #667eea;
} */

/* 提交按鈕樣式 */
.submit-group {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: inline-block;
}

.btn-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  transition: all 0.3s ease;
  display: block;
  /* iOS 渲染優化 - 修復圖片邊緣被裁切問題 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;
  /* 防止子像素渲染問題 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.submit-btn:hover .btn-image {
  transform: translateY(-2px) scale(1.02);
  /* filter: brightness(1.1); */
  /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
}

.submit-btn:active .btn-image {
  transform: translateY(0) scale(0.98);
}

.submit-btn:disabled .btn-image {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(50%);
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

/* 錯誤訊息樣式 */
.error-message {
  color: #ff8a80;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 隱私權錯誤訊息特殊樣式 */
.privacy-checkbox + .error-message {
  margin-top: 6px;
  /* margin-left: 28px;  */
  font-size: 11px;
  color: #ff8a80;
  display: block;
}

/* Popup 彈窗樣式 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-success .success-icon {
  width: 60px;
  height: 60px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-error .error-icon {
  width: 60px;
  height: 60px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-content h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
}

.popup-content p {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.5;
}

.popup-close {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

/* 響應式設計 */
@media (max-width: 768px) {
  #section-contact {
    padding: 40px 15px;
  }

  .submit-btn {
    padding: 10px;
    margin-bottom: 105px; /* 直接給按鈕加間距，留10px緩衝 */
    /* iOS 特殊修復 */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  /* iOS Safari 圖片渲染修復 */
  .btn-image {
    /* 強制硬體加速，避免圖片邊緣被裁切 */
    -webkit-transform: translate3d(0, 0, 0) scale(1.001);
    transform: translate3d(0, 0, 0) scale(1.001);
    /* 確保圖片完整渲染 */
    border-radius: 0.5px; /* 微小圓角觸發正確渲染 */
    outline: 1px solid transparent; /* 透明邊框確保完整顯示 */
  }

  .contact-form {
   /* padding: 30px 20px;
    margin: 20px; */
    padding: 0;
    margin: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-group {
    padding: 16px;
  }

  .privacy-content {
    font-size: 12px;
  }

  .popup-content {
    padding: 30px 20px;
    margin: 20px;
  }
}

/* Field Box 容器樣式 */
.field-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* Submit Loader Overlay 樣式 */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
}

.loader-content {
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader 響應式設計 */
@media (max-width: 768px) {
  .loader-content {
    padding: 30px 25px;
    margin: 20px;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
    border-top-width: 3px;
  }

  .loader-text {
    font-size: 16px;
  }
}
/* Contact Form 聯絡表單樣式 */
#section-contact {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* background: linear-gradient(135deg, #080f73ff 0%, #ffffffff 100%); */
  background: white;
  background: #182648;
  /* min-height: 100vh; */
  padding: 60px 20px;
  display: block !important;
  visibility: visible !important;
}

.contact-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
}

.contact-form-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 80vh; */
  /* padding: 40px 0; */
  /* background: transparent; */
}

.contact-form {
  /* background: rgba(255, 255, 255, 0.95); */
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5%;
  /* max-width: 500px; */
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.contact-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  display: block !important;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label:not(.checkbox-item) {
  display: block;
  margin-bottom: 8px;

  /* color: #333; */
  color: white;

  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* border-radius: 12px; */
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 複選框群組樣式 */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  position: relative;
  gap: 8px;
  margin-bottom: 0 !important;
}

.checkbox-item:hover {
  background-color: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.checkmark:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 文字包裝樣式 */
.checkbox-text {
  display: flex;
  align-items: center;
  line-height: 1.3;
  font-size: 14px;
  /* color: #333; */
  color: white;
  height: 20px;
}

/* 隱私權政策樣式 */
.privacy-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(20px);
}

.privacy-content {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-content p {
  margin-bottom: 8px;
}

.privacy-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.privacy-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 4px;
}

.privacy-link {
  color: #8b93ff;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #a5b4fc;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(139, 147, 255, 0.5);
}

.privacy-checkbox {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* .privacy-checkbox .checkmark {
  border-color: #667eea;
} */

/* 提交按鈕樣式 */
.submit-group {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: inline-block;
}

.btn-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  transition: all 0.3s ease;
  display: block;
  /* iOS 渲染優化 - 修復圖片邊緣被裁切問題 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;
  /* 防止子像素渲染問題 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.submit-btn:hover .btn-image {
  transform: translateY(-2px) scale(1.02);
  /* filter: brightness(1.1); */
  /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
}

.submit-btn:active .btn-image {
  transform: translateY(0) scale(0.98);
}

.submit-btn:disabled .btn-image {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(50%);
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

/* 錯誤訊息樣式 */
.error-message {
  color: #ff8a80;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 隱私權錯誤訊息特殊樣式 */
.privacy-checkbox + .error-message {
  margin-top: 6px;
  /* margin-left: 28px;  */
  font-size: 11px;
  color: #ff8a80;
  display: block;
}

/* Popup 彈窗樣式 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-success .success-icon {
  width: 60px;
  height: 60px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-error .error-icon {
  width: 60px;
  height: 60px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-content h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
}

.popup-content p {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.5;
}

.popup-close {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

/* 響應式設計 */
@media (max-width: 768px) {
  #section-contact {
    padding: 40px 15px;
  }

  .submit-btn {
    padding: 10px;
    margin-bottom: 105px; /* 直接給按鈕加間距，留10px緩衝 */
    /* iOS 特殊修復 */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  /* iOS Safari 圖片渲染修復 */
  .btn-image {
    /* 強制硬體加速，避免圖片邊緣被裁切 */
    -webkit-transform: translate3d(0, 0, 0) scale(1.001);
    transform: translate3d(0, 0, 0) scale(1.001);
    /* 確保圖片完整渲染 */
    border-radius: 0.5px; /* 微小圓角觸發正確渲染 */
    outline: 1px solid transparent; /* 透明邊框確保完整顯示 */
  }

  .contact-form {
   /* padding: 30px 20px;
    margin: 20px; */
    padding: 0;
    margin: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-group {
    padding: 16px;
  }

  .privacy-content {
    font-size: 12px;
  }

  .popup-content {
    padding: 30px 20px;
    margin: 20px;
  }
}

/* Field Box 容器樣式 */
.field-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* Submit Loader Overlay 樣式 */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
}

.loader-content {
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader 響應式設計 */
@media (max-width: 768px) {
  .loader-content {
    padding: 30px 25px;
    margin: 20px;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
    border-top-width: 3px;
  }

  .loader-text {
    font-size: 16px;
  }
}