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

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  overflow-x: hidden;
}

/* 7. 網頁畫面最左邊有一條紫紅色的線貫穿整個網頁 */
.purple-line-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: #d2267a;
  z-index: 1000;
}

@media (max-width: 768px) {
  .purple-line-sidebar {
    width: 7px;
  }
}

/* ==========================================
   頂部導覽列與漢堡選單樣式
   ========================================== */
.banner-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  box-sizing: border-box;
  z-index: 100;
}

.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar .logo img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* 右側按鈕群組 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 漢堡選單按鈕 (桌機預設隱藏) */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* 漢堡按鈕點擊變叉叉動畫 (Active 狀態) */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 分享按鈕 */
.share-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #ffffff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
  width: 32px;
  height: 32px;
}

/* 導覽選單預設（桌機可隱藏或依需求設計，此處主要設計為手機版側邊/下拉展開） */
.nav-menu {
  display: none;
}

/* ==========================================
   分享按鈕：769px 到 1170px 之間改為深色樣式
   ========================================== */
@media (max-width: 1175px) and (min-width: 769px) {
  .share-btn {
    color: #0f172a; /* 將白色符號改成深色 */
    background: rgba(
      255,
      255,
      255,
      0.85
    ); /* 提高背景白色的不透明度，增加對比 */
    border: 1px solid rgba(15, 23, 42, 0.2); /* 加深邊框顏色 */
  }
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 18px;
  }

  .navbar .logo img {
    height: 47px;
  }

  .hamburger-btn {
    display: flex; /* 手機版顯示漢堡按鈕 */
    width: 50px;
    height: 50px;
  }

  .hamburger-btn span {
    width: 21px;
  }

  .share-btn {
    width: 50px;
    height: 50px;
  }

  .share-btn svg {
    width: 28px;
    height: 28px;
  }

  /* 手機版下拉選單設計 */
  .nav-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    overflow: hidden;
    max-height: 0;
    border-bottom: none; /* 預設完全清除邊框，解決收合時的殘留線條 */
    transition: max-height 0.4s ease-in-out;
    box-shadow: none;
  }

  /* 展開時才顯示邊框與陰影 */
  .nav-menu.open {
    max-height: 300px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .nav-menu li a {
    display: block;
    padding: 14px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .nav-menu li a:hover {
    background-color: rgba(217, 70, 239, 0.2);
    color: #f472b6;
  }
}

/* Banner 區塊容器 */
.banner-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 1100px;
  background-image: url("../images/banner-bg-desktop.jpg"); /* 2. 桌機版底圖 */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-left: 6px; /* 避開左側紫紅線 */
}

/* 3. 第三張圖：桌機版放在中間靠頂部，手機版隱藏 */
.top-center-window {
  position: absolute;
  top: 50px;
  left: 40%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 350px;
  display: block;
}
.top-center-window img {
  width: 100%;
  height: auto;
}

/* 5. 第五張圖：主標題 (桌機版放在右側) */
.main-title {
  position: absolute;
  top: 150px;
  right: 15%;
  z-index: 15;
  max-width: 350px;
}
.main-title img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* 4. 第四張圖：桌機版放在右側主標題下方 */
.subtitle-window {
  position: absolute;
  top: 580px;
  right: 14%;
  z-index: 15;
  max-width: 380px;
}
.subtitle-window img {
  width: 100%;
  height: auto;
}

/* ==========================================
   1. 共用：乾淨俐落的像素錯位快閃進場 (Glitch Fade-In)
   ========================================== */
@keyframes pixelGlitchIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
    filter: contrast(200%) brightness(150%);
    clip-path: inset(40% 0 40% 0);
  }
  30% {
    opacity: 0.8;
    transform: translateY(4px) skewX(-5deg);
    filter: drop-shadow(3px -2px 0px rgba(255, 0, 80, 0.7));
    clip-path: inset(10% 0 60% 0);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) skewX(3deg);
    filter: drop-shadow(-3px 2px 0px rgba(0, 240, 255, 0.7));
    clip-path: inset(70% 0 10% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    clip-path: inset(0);
  }
}

/* ==========================================
   2. 原地微型像素錯位循環動畫 (Glitch Loop)
   ========================================== */
@keyframes subtlePixelGlitchLoop {
  0%,
  90%,
  100% {
    transform: translate(0, 0);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)) hue-rotate(0deg);
  }
  92% {
    transform: translate(-2px, 1px);
    filter: drop-shadow(2px -2px 0px rgba(255, 0, 80, 0.8)) brightness(1.1);
  }
  94% {
    transform: translate(2px, -1px);
    filter: drop-shadow(-2px 2px 0px rgba(0, 240, 255, 0.8)) contrast(1.2);
  }
  96% {
    transform: translate(-1px, 0);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  }
}

/* ==========================================
   各元件套用（錯開循環頻率，避免同時抖動）
   ========================================== */

/* 1. 頂部視窗：快閃進場 + 原地微型像素錯位循環 */
.top-center-window {
  animation:
    pixelGlitchIn 0.6s steps(4, end) 0.1s forwards,
    subtlePixelGlitchLoop 3.5s steps(2, start) 0.8s infinite;
  opacity: 0;
}

/* 2. 主標題：快閃進場 + 原地微型像素錯位循環 */
.main-title {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.3s forwards,
    subtlePixelGlitchLoop 4.2s steps(2, start) 1.2s infinite;
  opacity: 0;
}

/* 3. 副標題視窗：快閃進場 + 原地微型像素錯位循環 */
.subtitle-window {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.5s forwards,
    subtlePixelGlitchLoop 4.8s steps(2, start) 1.6s infinite;
  opacity: 0;
}

/* ==========================================
   6. 浮動與像素閃動動畫設定
   ========================================== */

/* 1. 定義上下浮動 + 像素閃爍的 Keyframes */
@keyframes pixelFloat {
  0% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    opacity: 1;
  }
  25% {
    /* 模擬像素階梯感微幅偏移，加上極微弱的復古亮度閃爍 */
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4)) brightness(1.08);
    opacity: 0.96;
  }
  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
    opacity: 1;
  }
  75% {
    transform: translateY(-3px);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)) brightness(0.95);
    opacity: 0.98;
  }
  100% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    opacity: 1;
  }
}

/* 2. 視窗群組基礎樣式與動態綁定 */
.floating-windows-group {
  position: absolute;
  bottom: 40px;
  right: 25%;
  width: 450px;
  height: 180px;
  z-index: 20;
}

.f-win {
  position: absolute;
  display: block;
  text-decoration: none;
  image-rendering: pixelated;
  animation: pixelFloat 3.5s ease-in-out infinite;
  transition:
    transform 0.2s ease,
    z-index 0.2s ease;
}

/* 讓圖片依據外層 a 標籤的寬度自動縮放 */
.f-win img {
  display: block;
  width: 100%;
  height: auto;
}

/* 針對每個視窗個別設定不同的「最大寬度 (max-width)」或「寬度 (width)」 */
.f-win.win-1 {
  max-width: 150px;
}
.f-win.win-2 {
  max-width: 145px;
}
.f-win.win-3 {
  max-width: 130px;
}
.f-win.win-4 {
  max-width: 150px;
}
.f-win.win-5 {
  width: 300px;
}

/* 懸停效果維持不變 */
.f-win:hover {
  animation-play-state: paused;
  transform: scale(1.08) translateY(-10px) !important;
  z-index: 50 !important;
  filter: drop-shadow(0 15px 25px rgba(217, 70, 239, 0.6)) brightness(1.15) !important;
}

/* 3. 為 5 個視窗個別設定：交錯位置、層級、不同的動畫週期與延遲 */
.f-win:nth-child(1) {
  bottom: 5px;
  left: -100px;
  z-index: 24;
  animation-delay: 0s;
  animation-duration: 3.2s;
}

.f-win:nth-child(2) {
  bottom: 55px;
  left: 30px;
  z-index: 23;
  animation-delay: 0.6s;
  animation-duration: 3.8s;
}

.f-win:nth-child(3) {
  bottom: 20px;
  left: 160px;
  z-index: 22;
  animation-delay: 1.2s;
  animation-duration: 3.4s;
}

.f-win:nth-child(4) {
  bottom: 50px;
  left: 280px;
  z-index: 21;
  animation-delay: 0.4s;
  animation-duration: 4s;
}

.f-win:nth-child(5) {
  bottom: 0px;
  left: 440px;
  z-index: 25;
  animation-delay: 1.8s;
  animation-duration: 3.6s;
}

@media (max-width: 1320px) {
  .main-title {
    top: 235px;
    right: 13%;
  }

  .subtitle-window {
    top: 640px;
    right: 11%;
  }
}

/* 響應式調整：手機版 (MaxWidth: 768px) */
@media (max-width: 768px) {
  .banner-section {
    background-image: url("../images/banner-bg-mobile.jpg"); /* 2. 手機版底圖 */
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  /* 3. 手機版隱藏第三張圖 */
  .top-center-window {
    display: none;
  }

  /* 5. 手機版：主標題改放在中間靠頂部的位置 */
  .main-title {
    position: relative;
    top: 23px !important;
    right: auto !important;
    width: 100%;
    max-width: 280px;
    margin: 20px auto;
    text-align: center;
  }

  /* 4. 手機版：第四張圖改放在右下的位置 */
  .subtitle-window {
    position: absolute;
    bottom: 30px !important;
    right: 20px !important;
    top: auto;
    max-width: 240px;
    z-index: 30;
  }

  /* 6. 手機版：隱藏第六到第十張圖 */
  .floating-windows-group {
    display: none;
  }
}

/* ==========================================
   雙11限定優惠區塊樣式
   ========================================== */
.promo-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.promo-container {
  position: relative;
  display: block;
  max-width: 900px;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* 主視窗堆疊圖片設定 */
.promo-main-img {
  width: 100%;
}

.promo-main-img img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 預設顯示桌機圖，隱藏手機圖 */
.promo-main-img .img-desktop {
  display: block;
}
.promo-main-img .img-mobile {
  display: none;
}

/* 日期視窗（疊加在左邊偏上） */
.promo-date-badge {
  position: absolute;
  top: 15%;
  left: 1%;
  width: 32%;
  max-width: 260px;
  z-index: 10;
  filter: drop-shadow(4px 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.promo-date-badge img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.promo-container:hover .promo-date-badge {
  transform: scale(1.05) rotate(-2deg);
}

/* ==========================================
   雙11優惠區塊：縮短間隔、慢速且明亮的流光效果
   ========================================== */
.promo-container {
  position: relative;
  display: block;
  max-width: 900px;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden; /* 隱藏超出容器範圍的流光 */
  border-radius: 4px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease;
}

/* 建立斜向流光光束 */
.promo-container::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.65),
    /* 中間明亮的光線 */ rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
}

/* 調整關鍵影格：將總週期縮短至 3.5 秒（其中光束掃過佔 1.8 秒，中間等待間隔變短） */
@keyframes lightSweep {
  0% {
    left: -150%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: 150%;
    opacity: 1;
  }
  55% {
    opacity: 0;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* 當圖片載入完成後（.is-loaded），改為每 3.5 秒循環一次，縮短閃過間隔 */
.promo-container.is-loaded::after {
  animation: lightSweep 4.5s ease-in-out infinite;
}

/* 滑鼠懸停（Hover）：維持低調柔和的霓虹粉紫光芒 */
.promo-container:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 20px rgba(217, 70, 239, 0.25));
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .promo-section {
    padding: 40px 15px;
  }

  /* 讓整個容器在手機版時縮小一點，並自動保持置中 */
  .promo-container {
    width: 95%; /* 您可以依需求調整這個百分比（例如 85% ~ 92%） */
    max-width: none;
    margin: 0 auto;
  }

  /* 手機版切換主視窗圖片：顯示 mobile 版，隱藏 desktop 版 */
  .promo-main-img .img-desktop {
    display: none;
  }
  .promo-main-img .img-mobile {
    display: block;
  }

  .promo-date-badge {
    top: 11%;
    left: 1%;
    width: 42%;
  }
}

/* ==========================================
   語言 2.0 專區樣式
   ========================================== */
.language-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px; /* 上下左右保留間距 */
}

/* 1. 底圖不滿版：加入容器內距與精緻陰影邊框 */
.lang-bg {
  width: 100%;
  max-width: 1400px;
  position: relative;

  overflow: hidden;
}

.lang-bg img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 桌機/手機底圖預設顯示切換 */
.lang-bg .img-desktop {
  display: block;
}
.lang-bg .img-mobile {
  display: none;
}

/* ==========================================
   語言 2.0 專區：視窗與動畫設定
   ========================================== */

/* 視窗共用樣式 */
.lang-window {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0; /* 預設隱藏，等待 JS 捲動觸發 */
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.lang-window img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ==========================================
   滾動觸發：進場後串接原地微型像素錯位循環
   ========================================== */
.lang-window.is-animated.lang-win-left {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.1s forwards,
    subtlePixelGlitchLoop 4.2s steps(2, start) 0.8s infinite;
}

.lang-window.is-animated.lang-win-right {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.3s forwards,
    subtlePixelGlitchLoop 4.8s steps(2, start) 1.2s infinite;
}

/* ==========================================
   滑鼠懸停 (Hover) 互動效果
   ========================================== */
.lang-window:hover {
  animation-play-state: paused; /* 懸停時暫停原地錯位抖動 */
  transform: scale(1.05) !important;
  filter: drop-shadow(0 15px 25px rgba(217, 70, 239, 0.6)) brightness(1.1) !important;
  z-index: 50 !important;
}

/* ==========================================
   第三張圖：左側視窗 (世界探索包) 位置設定
   ========================================== */
.lang-win-left {
  top: 38%;
  left: 10%;
  width: 38%;
  max-width: 480px;
  z-index: 10;
}

.lang-win-left .img-mobile {
  display: none;
}

/* ==========================================
   第四張圖：右側視窗 (國際職涯包) 位置設定
   ========================================== */
.lang-win-right {
  top: 18%;
  right: 8%;
  width: 36%;
  max-width: 450px;
  z-index: 15;
}
@media (max-width: 1320px) {
  .lang-win-right {
    top: 6%;
    right: 0%;
  }

  .lang-win-left {
    left: 3%;
  }
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .language-section {
    padding: 30px 15px; /* 手機版縮減外圍間距 */
  }

  .lang-bg {
    border-radius: 8px;
  }

  /* 切換手機版底圖 */
  .lang-bg .img-desktop {
    display: none;
  }
  .lang-bg .img-mobile {
    display: block;
  }

  /* 手機版視窗位置與尺寸調整 */
  .lang-win-left {
    top: 55%;
    left: 4%;
    width: 90%;
    max-width: none;
  }

  /* 切換左側視窗的手機版圖片 */
  .lang-win-left .img-desktop {
    display: none;
  }
  .lang-win-left .img-mobile {
    display: block;
    max-width: 240px;
  }

  .lang-win-right {
    top: 22%;
    left: 64%;
    width: 90%;
    max-width: none;
  }

  .lang-window img {
    max-width: 240px;
  }
}

/* ==========================================
   語言升級影片區塊樣式
   ========================================== */
.video-promo-section {
  position: relative;
  width: 100%;
  background-color: #fff; /* 配合整體網頁的主題深色背景 */
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 超連結容器 */
.video-banner-link {
  display: block;
  max-width: 750px; /* 控制視窗適中的最大寬度 */
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

/* 圖片樣式與像素渲染設定 */
.video-banner-img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated; /* 維持復古點陣風不模糊 */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  border-radius: 4px;
}

/* 滑鼠懸停 (Hover) 特效：微微放大並帶有霓虹發光感 */
.video-banner-link:hover {
  transform: scale(1.03);
}

.video-banner-link:hover .video-banner-img {
  filter: drop-shadow(0 20px 35px rgba(217, 70, 239, 0.6)) brightness(1.08);
}

/* 響應式手機版微調 */
@media (max-width: 768px) {
  .video-promo-section {
    padding: 40px 15px;
  }
}

/* ==========================================
   職涯 2.0 專區樣式
   ========================================== */
.career-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
}

/* 底圖容器：不滿版、圓角與陰影 */
.career-bg {
  width: 100%;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
}

.career-bg img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 桌機/手機底圖預設顯示切換 */
.career-bg .img-desktop {
  display: block;
}
.career-bg .img-mobile {
  display: none;
}

/* 視窗共用樣式 */
.career-window {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0; /* 預設隱藏，等待捲動觸發 */
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.career-window img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 滾動觸發：進場後串接原地微型像素錯位循環 */
.career-window.is-animated.career-win-left {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.1s forwards,
    subtlePixelGlitchLoop 4.2s steps(2, start) 0.8s infinite;
}

/* 滑鼠懸停 (Hover) 互動效果 */
.career-window:hover {
  animation-play-state: paused;
  transform: scale(1.05) !important;
  filter: drop-shadow(0 15px 25px rgba(217, 70, 239, 0.6)) brightness(1.1) !important;
  z-index: 50 !important;
}

/* ==========================================
   左側視窗 (職場進階包) 桌機版位置設定
   ========================================== */
.career-win-left {
  top: 43%;
  left: 16%;
  width: 38%;
  max-width: 480px;
  z-index: 10;
}

@media (max-width: 1320px) {
  .career-win-left {
    top: 44%;
    left: 3%;
  }
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .career-section {
    padding: 30px 15px;
  }

  .career-bg {
    border-radius: 8px;
  }

  /* 切換手機版底圖 */
  .career-bg .img-desktop {
    display: none;
  }
  .career-bg .img-mobile {
    display: block;
  }

  /* 手機版視窗位置調整，並將寬度縮小 */
  .career-win-left {
    top: 46%;
    left: 3%;
    width: 62%; /* 手機版自動縮小 */
    max-width: none;
  }
}

/* ==========================================
   生活 2.0 專區樣式
   ========================================== */
.life-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px; /* 上下左右保留間距 */
}

/* 底圖容器：不滿版、圓角與陰影 */
.life-bg {
  width: 100%;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
}

.life-bg img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 桌機/手機底圖預設顯示切換 */
.life-bg .img-desktop {
  display: block;
}
.life-bg .img-mobile {
  display: none;
}

/* 視窗共用樣式 */
.life-window {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0; /* 預設隱藏，等待捲動觸發 */
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.life-window img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 滾動觸發：進場後串接原地微型像素錯位循環 */
.life-window.is-animated.life-win-right {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.1s forwards,
    subtlePixelGlitchLoop 4.5s steps(2, start) 0.9s infinite;
}

/* 滑鼠懸停 (Hover) 互動效果 */
.life-window:hover {
  animation-play-state: paused; /* 懸停時暫停原地錯位抖動 */
  transform: scale(1.05) !important;
  filter: drop-shadow(0 15px 25px rgba(217, 70, 239, 0.6)) brightness(1.1) !important;
  z-index: 50 !important;
}

/* ==========================================
   右側視窗 (啟動人生充電包) 桌機版位置設定
   ========================================== */
.life-win-right {
  top: 22%;
  right: 10%;
  width: 38%;
  max-width: 500px;
  z-index: 10;
}

@media (max-width: 1320px) {
  .life-win-right {
    right: 0%;
  }
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .life-section {
    padding: 30px 15px; /* 手機版縮減外圍間距 */
  }

  .life-bg {
    border-radius: 8px;
  }

  /* 切換手機版底圖 */
  .life-bg .img-desktop {
    display: none;
  }
  .life-bg .img-mobile {
    display: block;
  }

  /* 手機版視窗調整：改為右上角，且寬度適度縮小 */
  .life-win-right {
    top: 0%;
    right: 1%;
    width: 66%; /* 手機版自動縮小 */
    max-width: none;
  }
}

@media (max-width: 500px) {
  .lang-win-left {
    top: 61%;
  }

  .lang-win-right {
    top: 6%;
    left: 41%;
    width: 90%;
    max-width: none;
  }

  .video-promo-section {
    padding: 80px 15px 0px 15px;
  }

  .career-section {
    min-height: 550px;
  }

  .career-win-left {
    top: 56%;
    left: 3%;
    width: 64%; /* 手機版自動縮小 */
    max-width: none;
  }

  .life-section {
    min-height: 680px;
    padding: 90px 15px 0px 15px;
  }

  .life-win-right {
    top: 12%;
    right: 2%;
    width: 70%;
    max-width: none;
  }
}

/* ==========================================
   0元起體驗講座專區樣式（調整靠攏）
   ========================================== */
.zero-upgrade-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: center; /* 讓內容整體置中 */
  align-items: center;
  gap: 40px; /* 控制左右兩張圖之間的距離，數值越小兩張圖靠得越近 */
  padding: 80px 40px;
  box-sizing: border-box;
}

/* 圖片共用樣式與超連結容器 */
.zero-item {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0; /* 預設隱藏，等待滾動觸發 */
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.zero-item img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ==========================================
   第二張圖：左側標題圖 (調整為靠向右側)
   ========================================== */
.zero-title-img {
  width: 42%;
  max-width: 580px;
  z-index: 10;
}

.zero-title-img .img-desktop {
  display: block;
}
.zero-title-img .img-mobile {
  display: none;
}

/* 捲動觸發：進場後串接原地微型像素錯位脈衝循環 */
.zero-title-img.is-animated {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.1s forwards,
    subtlePixelGlitchLoop 4.5s steps(2, start) 0.8s infinite;
}

/* ==========================================
   滑鼠懸停 (Hover) 互動效果
   ========================================== */
.zero-item:hover {
  animation-play-state: paused;
  transform: scale(1.03) !important;
  filter: drop-shadow(0 15px 25px rgba(217, 70, 239, 0.6)) brightness(1.1) !important;
  z-index: 50 !important;
}

/* ==========================================
   0元起體驗講座：右側情境圖（完全獨立，無連結、無 hover）
   ========================================== */
.zero-scene-img {
  position: relative;
  display: block;
  width: 42%;
  max-width: 580px;
  z-index: 15;
  opacity: 0; /* 預設隱藏，等待滾動觸發 */
  cursor: default !important; /* 強制游標保持預設箭頭 */
}

.zero-scene-img img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* 捲動觸發：進場後串接原地微型像素錯位循環 */
.zero-scene-img.is-animated {
  animation:
    pixelGlitchIn 0.7s steps(4, end) 0.3s forwards,
    subtlePixelGlitchLoop 5s steps(2, start) 1s infinite;
}

/* 確保不小心吃到其他 hover 時強制覆寫取消效果 */
.zero-scene-img:hover {
  transform: none !important;
  filter: none !important;
  animation-play-state: running !important; /* 讓原地閃動繼續，或者如果連閃動都不想暫停可維持 */
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .zero-upgrade-section {
    flex-direction: column;
    padding: 40px 20px;
    align-items: flex-start;
    gap: 0;
  }

  /* 手機版：左側標題圖改為偏左上 */
  .zero-title-img {
    width: 85%;
    max-width: none;
  }

  .zero-title-img .img-desktop {
    display: none;
  }
  .zero-title-img .img-mobile {
    display: block;
  }

  /* 手機版：右側情境圖改為偏右下，並與左側微微上下錯開 */
  .zero-scene-img {
    width: 85%;
    max-width: none;
    align-self: flex-end; /* 靠右對齊，製造錯落感 */
    margin-top: 20px; /* 微微上下錯開 */
  }
}
@media (max-width: 768px) {
  .zero-upgrade-section {
    padding: 0px 20px 40px 20px;
  }
}

/* ==========================================
   2. Footer 頁尾樣式（完全貼底與消除預設外距）
   ========================================== */
.site-footer {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  color: #222222;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-top: auto; /* Flexbox Sticky Footer 關鍵，強制貼底 */
}

/* 上方內容容器 */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* 社群圖示列 */
.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.footer-socials a {
  display: block;
  width: 55px;
  height: 55px;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.footer-socials img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.footer-socials a:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* 文字資訊區（歸零 p 標籤預設的 margin） */
.footer-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
  text-align: left;
}

.footer-text a {
  color: #2b2b2b;
  text-decoration: underline;
}

/* 最下方深色版權列（完全貼合最底端） */
.footer-bottom {
  width: 100%;
  background-color: #1a1512;
  padding: 20px 10px;
  text-align: center;
  margin: 0; /* 歸零外距 */
  box-sizing: border-box;
}

.footer-bottom p {
  color: #d1c9c3;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin: 0; /* 歸零文字段落外距 */
  padding: 0;
  line-height: 1.4;
}

/* ==========================================
   響應式調整：手機版 (MaxWidth: 768px)
   ========================================== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 20px;
    gap: 25px;
  }

  .footer-socials {
    gap: 12px;
    justify-content: center;
  }

  .footer-socials a {
    width: 45px;
    height: 45px;
  }

  .footer-text p {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 12px;
    padding: 0 10px;
    line-height: 1.5;
  }
}

/* ==========================================
   回到頂端按鈕樣式
   ========================================== */
.back-to-top-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;

  /* 預設隱藏與動畫過渡 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background-color 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn svg {
  width: 24px;
  height: 24px;
}

/* 顯示時的狀態 */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 滑鼠懸停特效 (呼應站點霓虹風格) */
.back-to-top-btn:hover {
  background-color: rgba(217, 70, 239, 0.3);
  border-color: rgba(217, 70, 239, 0.6);
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.8));
}

/* 手機版微調右下角間距 */
@media (max-width: 768px) {
  .back-to-top-btn {
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   回到頂端按鈕樣式 (加強對比與辨識度)
   ========================================== */
.back-to-top-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  /* 提高不透明度，並加入更明顯的白邊框與雙層陰影 */
  background-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;

  /* 預設隱藏與動畫過渡 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 255, 255, 0.15);
}

.back-to-top-btn svg {
  width: 24px;
  height: 24px;
}

/* 顯示時的狀態 */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 滑鼠懸停特效 (霓虹粉紫發光，在深色背景上也極為顯眼) */
.back-to-top-btn:hover {
  background-color: rgba(217, 70, 239, 0.3);
  border-color: rgba(217, 70, 239, 0.6);
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.8));
}

/* 手機版微調右下角間距 */
@media (max-width: 768px) {
  .back-to-top-btn {
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* -大螢幕適用------------------------------------------------------------------- */

@media (min-width: 1921px) {
  .main-title {
  }
  .subtitle-window {
    top: 590px;
    right: 14%;
  }
  .banner-section {
    min-height: 1400px;
  }

  .purple-line-sidebar {
    width: 18px;
  }

  .lang-win-right {
    right: 14%;
    max-width: 500px;
  }

  .lang-win-left {
    left: 17%;
    max-width: 500px;
  }

  .career-win-left {
    top: 45%;
    left: 20%;
  }

  .life-win-right {
    right: 12%;
    max-width: 600px;
  }
}
