#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

}

/* 讓除背景 canvas 以外的內容都顯示在前面 */
body > :not(#bg-canvas) {position: relative;z-index: 1;background-color: black;z-index: 0;}
 /*單間行距 跟 全域字體*/
body {line-height:1.6; font-family: Arial, Helvetica, sans-serif;background-color: black;}
/* 滑順滾動 */
html { scroll-behavior: smooth; }

/* ---------------------------------全局卡片樣式---------------------------------- */
.v-card {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}






/*---------------------------------- Header------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1% 15%;
  position: fixed;
  width: 100%;
  background:rgba(14, 14, 14, 0.98);
  z-index: 1000;
}

header img {
  height: 50px;
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
  margin-right: 20px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #3ba0ff;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}

nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none  ;
  margin: 0;
  padding: 0;

}

.nav-list li {
  margin-left: 40px;
}

.nav-list a {
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 6px 12px; /* 給點空間讓底色看起來舒適 */
  border-radius: 6px; /* 可選，讓底色圓角 */
}

.nav-list a:hover {
  background-color: rgba(100, 100, 100, 0.5); ; /* 半透明白色底 */
  color: #ffffff; /* 可保留文字白色 */
}

nav.scrolled .nav-list a {
  color: #27a9ff; /* 捲動後顏色 */
}


/* ------------header rwd----- */
@media (max-width: 768px) {
  header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4% 4% ;
  position: fixed;
  width: 100%;
  height: auto;   /* 可以設一個最小高度 */
  z-index: 1000;
  background:linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
  }

 header img {
  width: auto;
  max-width: 140px;
  height: auto;
}
  .hamburger {display: flex;}


  /* 漢堡打開變叉叉 */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }
  body.nav-open {
    overflow: hidden;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(63, 63, 63, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 50px;
    transition: right 0.4s ease;
    z-index: 1050;
  }

  nav.active {
    right: 0; /* 展開時滑入 */
  }

  .nav-list {
    flex-direction: column;
    margin: 0;
  }

  .nav-list li {
    margin: 20px 0;
  }
  .nav-list a {
    font-size: 24px;
  }
  .hamburger span {
    height: 4px;  /* 漢堡線粗細 */
  }
}





/* -------------------------------Hero--------------------------------- */
.hero {
    
    text-align: center;
    min-height: 100vh;    /* 讓 Hero 區塊至少佔滿一個螢幕高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgb(0, 0, 0);
    padding: 0 5%;        /* 小螢幕留一些內距 */
    box-sizing: border-box;
    border: 0px ;
} 
.hero-bg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* 在文字後面 */
  opacity: 1;           /* 可調整透明度 */
  pointer-events: none; /* 不影響點擊 */
  
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.466) 40%, rgba(0, 0, 0, 0) 80%);
  z-index: 0;
}



/* Hero文字區塊 */
.hero-text {
    display: flex;
    flex-direction: column; /* 讓 h1 和 p 上下排列 */
    justify-content: center; /* 讓文字區塊在垂直方向置中 */
    color: #ffffff;
}
/* Hero文字區塊第一行英文 */
.hero-text h1 {
  font-size: 52px;      
  font-weight: bold;
  margin: 0;
  justify-content: center;
  
}
/* Hero文字區塊第二行 */
.hero-text h2 {
  font-size: 46px;       
  font-weight: normal;
  margin: 10px 0;
}
/* Hero文字區塊第三行有橫線的小標題 */
.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* Hero文字區塊第三行的橫線*/
.hero-subtitle .line {
  width: 80px;
  height: 2px;
  background-color: #ffffff;
  border: none;            /* 去掉預設邊框 */
}
/* Hero文字區塊第三行的小標題文字 */
.hero-subtitle span {
  display: inline-block;
  line-height: 1;          /* 與線高度一致 */
  vertical-align: middle;  /* 垂直置中 */
  font-size: 32px;
}
/* ----------- hero rwd ------------- */
@media (max-width: 768px) {
  .hero {border-radius: 0 0 50px 50px;}
  .hero-bg {border-radius: 0 0 50px 50px;}
  .hero-text h1 {font-size: 24px;}
  .hero-text h2 {font-size: 20px;}
  .hero-subtitle span {font-size: 18px;}
  .hero-subtitle .line {width: 32px;}
}

@media (max-width: 480px) {
  .hero-text h1 {font-size: 20px;}
  .hero-text h2 {font-size: 20px;}
  .hero-subtitle span {font-size: 18px;}
  .hero-subtitle .line {width: 28px;}
}


.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(59, 160, 255, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1200;
}

.scroll-top:hover {
  background: rgba(59, 160, 255, 1);
  transform: scale(1.1);
}


/* --------------------------------------------About------------------------------------------- */

.about {
    padding: 10% 14%;
    background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(0, 0, 0) 10%);
}

.about-section {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    max-width: 80%;
    margin: 0 auto;
    align-items: center; /* 垂直置中 */
}

.about-card {
    background-color: transparent;
    width: 100%;
    white-space: pre-line;
}

/* 左側標題 */
.about-left .about-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.about-left h2 {
    font-size: clamp(28px, 3vw, 32px);
    margin: 0;
    text-align: left; /* 桌面版靠左 */
    background: linear-gradient(45deg, #ffffff, #38acfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 右側文字 */
.about-right p {
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.8;
    color: #ffffff;
    text-align: left; /* 桌面版靠左 */
}

/* ---------about rwd------------- */
@media screen and (max-width: 768px) {
    .about {padding: 25% 0% 10% 0%;text-align: center;}
    .about-section {grid-template-columns: 1fr;justify-items: center;text-align: center;}
    .about-left .about-card {display: block;text-align: center;}
    .about-left h2 {margin: 0 auto;text-align: center;font-size: 28px;}
    .about-right {text-align: center;margin: 0 auto;}
    .about-right p {text-align: left;font-size: 16px;}
}





/* --------------------------------------------pain------------------------------------------- */
.pain-points {
  display: flex;
  justify-content: center;
  padding: 5% 5%;
  background: rgb(0, 0, 0);
}
/* 卡片本體 */
.pain-points .container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  
  z-index: 2;
}

.pain-points-column {
  flex: 1;
  align-self: center;
}

.pain-points-column h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;

   background: linear-gradient(90deg, #ffffff, #38acfa); /* 漸層色 */
  -webkit-background-clip: text;   /* 只套用到文字 */
  -webkit-text-fill-color: transparent; /* 讓文字本體透明 */
  background-clip: text;
  color: transparent;
}

.pain-points-column h3 {
  font-size: 20px;
  align-self: flex-end;
  margin-bottom: 5%;
  font-weight: normal;
  text-align: center;
  
  background: linear-gradient(90deg, #ffffff, #ffffff); /* 漸層色 */
  -webkit-background-clip: text;   /* 只套用到文字 */
  -webkit-text-fill-color: transparent; /* 讓文字本體透明 */
  background-clip: text;
  color: transparent;
}

.pain-point-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 1) ;
  padding: 5%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  z-index: 2;
  
}

.pain-point-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  align-content: center;
  justify-content: center;
}

.pain-point-text h4 {
  margin: 0;
  font-size: 16px;
  color: #1b1b1b;
}

.pain-point-text p {
  margin: 4px 0 0;
  color: #363636;
  font-size: 14px;
}

/* ---------pain rwd----------- */
@media (max-width: 768px) {
  .pain-points .container {
    flex-direction: column;
    gap: 30px; /* 調整間距 */
  }

  .pain-points-column {
    width: 90%;
    margin-bottom: 0; /* 避免重複 margin */
  }

  .pain-point-item {
    width: 100%;
  }

  .pain-points-column h2 {
    font-size: 26px;
    text-align: center; /* 手機版置中比較好看 */
  }

  .pain-points-column h3 {
    text-align: center;
  }
  .pain-point-text p {
  margin: 4px 0 0;
  color: #363636;
  font-size: 14px;
}
}



/* -----------------------------------------Solutions------------------------------------ */
.solutions {
  
    background:linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(179, 205, 235, 0.95) 70%);/* Solutions 區塊漸層 */
    padding: 5% 5%;
    scroll-margin-top: 70px; /* header 高度 */
    border-radius: 0 0 200px 200px; /* 左下與右下圓角 */
    text-align: center;

   
}
/* 九大服務標題文字 */
.solutions h2 {
  display: inline-block; /* 讓背景大小跟文字一致 */
  font-size: 42px;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 3%;

  /* 漸層文字 */
  background: linear-gradient(90deg, #ffffff, #38acfa); /* 漸層色 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.solutions-container {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.solutions-img {
  width: 100%;
  height: 200px; /* 可調整 */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  margin-bottom: 16px;
}

.solutions-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例填滿 */
  display: block;
}

.solutions-card {
   width: 100%;
  max-width: 350px;         /* 最大寬度 */
  min-height: 450px;       /* 最小高度 */
  background-color: #ffffff; /* 背景 */
  border-radius: 30px;      /* 圓角 */
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 陰影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 滑鼠 hover 動畫 */
}

.solutions-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(66, 148, 255, 0.18), 0 4px 12px rgba(0,0,0,0.10);
}

.solutions-card .overlay {
  display: none; /* 不需要遮罩可隱藏 */
}

/* 九大服務卡的卡片規格 */
.solutions-content {
  padding: 2%   10% 5% 10%;
  position: relative;
  z-index: 2;

  color: #222;
  text-align: left;
  width: 100%;
}
/* 九大服務卡的編號 */
.solutions-number {
  font-size: 42px;
  font-weight: bold;
  color: #555555;
  margin-bottom: 16px;
  font-family: 'Courier New';
}


/* 九大服務卡的英文標題 */
.solutions-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #000000;
}
/* 九大服務卡的中文標題 */
.solutions-subtitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #000000;
}
/* 九大服務卡的內容 */
.solutions-chinesetext {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 0;
  color: #333;
  padding: 0% 5% 0% 5%;
}
/* -------------solutions rwd ------------------*/
@media screen and (max-width: 768px){
  .solutions {
    padding: 20% 5% 10% 5%;
    border-radius: 0 0 20px 20px;
  }
  .solutions h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 32px;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 5%;
}
}





/*-------------------------------------map-------------------------------*/
.map-section {padding: 60px 20px;text-align: center;}
.map-section h2 {font-size: 36px;margin-bottom: 40px;color: #222;}
.map-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 500px;
  border: 0;
  position: relative;
}
/* -----------map rwd ---------------*/
@media (max-width: 768px) {
  .map-wrapper iframe {
    height: 300px;
  }
}





/* -------------------------------------Partners -------------------------------- */
.logos {padding: 5% 0 5% 0; background: transparent; text-align: center;}
.logos h2 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fda2da, #ffffff); /* 漸層色 */

}

.logo-marquee {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
}

.logo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  width: max-content; /* 寬度自動擴展 */
  animation: marquee 60s linear infinite; /* 調整跑馬燈速度 */
}

.logo-marquee:hover .logo-track {animation-play-state: paused;} /* 滑鼠停在區塊上暫停 */
.logo-box {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.logo-box img {max-width: 100%;max-height: 100%;object-fit: contain;display: block;}

/* 無縫滑動動畫 */
@keyframes marquee {
  0% {
    transform: translateX(0); 
  }
  100% {
    transform: translateX(-50%); /* 移動整列一半，正好接上重複列 */
  }
}

/* ----------------Partners rwd-------------- */
@media (max-width: 768px) {
  .logo-box {
    width: 120px;
    height: 90px;
  }
  .logo-track {
    gap: 20px;
    animation-duration: 80s; /* 手機可稍快 */
  }
}





/* -----------------------------------------Contact----------------------------------------- */
.contact {
  display: flex;
  justify-content: center;
  padding: 5% 7% 5% 7%  ;
  background-repeat: no-repeat;
  background-size: cover;
  color: #000000;
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}

.contact-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-main-img {
  width: 100%; 
  border-radius: 12px;
}

.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  line-height: 1.8;
}

.icon-title {
  max-width: 250px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item img {
  width: 36px;
  height: 36px;
}

.contact-item h1 {
  font-size: 20px;
  margin: 0;
}

.contact-item p {
  font-size: 16px;
  margin: 0;
}

/* 可點擊連結 */
.contact-link {
  color: #000000;
  text-decoration: none;
  transition: 0.3s;
}
.contact-link:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* -----------contact rwd -------------------*/
@media (max-width: 1024px) {
  .contact{padding-bottom: 20%;}
  .contact-wrapper {flex-direction: column;gap: 40px;align-items: flex-start;}
  .contact-left {justify-content: flex-start;align-items: flex-start;}
  .contact-right {width: 100%;text-align: left;}
  .contact-item {justify-content: left;}
}




/* -----------back to top button -------------------*/
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #0055ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.back-to-top:hover {
  background-color: #0b7dff;
  transform: scale(1.2);
}

.back-to-top[v-cloak], .back-to-top[style*="display: none"] {
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ----------- ----------------*/
/* 小螢幕手機、平板 */
@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}






/* ----------------------------------------Footer ------------------------------*/
footer { 
  position: relative;
  text-align:center; 
  padding:1% 0% 1% 0%; 
  font-size: large;
  
  background:rgb(0, 0, 0); 
  color:#ffffff; 
}





/*---------------------------------------- AOS 特效 -----------------------------------*/
[data-aos] {
  opacity: 0;
  transform: translateY(50px);
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-in-out;
}

[data-aos].aos-animate {
  opacity: 1;   
  transform: translateY(0);
}
