#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
 
  z-index: 0;
  pointer-events: none;
}
body > *:not(#bg-canvas) {
  position: relative;
  z-index: 1;
}

body {
  font-family: "Microsoft JhengHei", 
  sans-serif;
  margin:0; 
  padding:0; 
  line-height:1.6; 
  color:#2b2b2b;
  font-family: Arial, Helvetica, sans-serif; /*全域字體樣式*/
  background: #000000; /*全域背景顏色*/
  scroll-behavior: smooth;
}
html { scroll-behavior: smooth; }

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

/*---------------------------------- Header---------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5% 5%  1% 5%;
  position: fixed;
  width: 100%;
  background:rgba(14, 14, 14, 0.98);
  z-index: 1000;
  /* border-radius: 0 0 30px 30px; 左下與右下圓角 */
}

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; /* 捲動後顏色 */
}

/* 響應 */
@media (max-width: 768px) {
  header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1% 5% 1% 5%;
  position: fixed;
  width: 100%;
  height: 70px;   /* 可以設一個最小高度 */
  z-index: 1000;
  background:linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(252, 252, 252, ) 100%);/* About 區塊漸層 */
  }

  header img {
  height: auto;
  width: 40%;
  }

  .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);
  }

  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 ;
    border-radius: 0 0 200px 200px; /* 左下與右下圓角 */

    
} 
.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; /* 不影響點擊 */
  border-radius: 0 0 200px 200px; /* 左下與右下圓角 */
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.466) 40%, rgba(10, 10, 10, 0) 100%); /* 遮罩顏色可調整 */
  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;  /* h2粗體調整normal 或 bold */
  margin: 10px 0;
}
/* Hero文字區塊第三行有橫線的小標題 */
.hero-subtitle {
  display: flex;           /* 讓 hr 和文字同一行 */
  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響應式 ------------------- */


@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;
  }
}

/* -------------------------------About-------------------------------- */
.about {
    padding: 10% 0% 10% 0%;
   
    justify-content: center;
    background:linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(0, 0, 0) 10%);/* Solutions 區塊漸層 */
    
}

.about-section {
  display: grid;
  
  grid-template-columns: 50% 50%;
  gap: 5px;
  max-width: 80%;
  justify-content: center;
  margin: 0 auto;
  background-color: transparent;
  
}

.about-card {
  background-color: transparent;
  box-shadow: 0 4px 15px transparent;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: pre-line;
  gap: 50px;
}

.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, 26px);
  line-height: 1.8;
  color: #ffffff;
  text-align: left;
}

/* RWD 小螢幕上下排列，標題貼近文字卡片 */
@media screen and (max-width: 768px) {
  .about {padding: 25% 0% 10% 0%;}
  .about-section {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-card {
    width: 100%;
  }

  .about-left h2 {
    margin: 0;
    font-size: 28px; 
  }

  .about-right p {
    font-size: 20px;
    text-align: left;
    margin-top: 5%; /* 與標題保持距離 */
  }
}

/* -------------------------------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: 36px;
  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: 18px;
  color: #1b1b1b;
}

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

/* 響應式 */
@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: 28px;
    text-align: center; /* 手機版置中比較好看 */
  }

  .pain-points-column h3 {
    text-align: center;
  }
}



/* -------------------------------Solutions---------------------------- */
.solutions {
  
    background:linear-gradient(to bottom, rgba(0, 0, 0, 1) 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%;
}
@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: 38px;
  
  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;
}

@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;   /* logo格子寬度 */
  height: 150px;  /* logo格子高度 */
  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%); /* 移動整列一半，正好接上重複列 */
  }
}

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

/* ---------------------------------Contact--------------------------- */

.contact {
  align-items: center;      /* 水平置中 */
  padding: 2% 7% 2% 7%;
  background-size: cover;
  background-repeat: no-repeat;
  
}

.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.icon-title {
  max-width: 300px;
  display: flex;
  justify-content: center;
}

/* 左邊聯絡資訊 */
.contact-left {
  display: flex;
  justify-content: center;
  gap: 50px;
  line-height: 1.8;
}

/* 各 contact 項目 */
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.contact-item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

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

.contact-item p {
  font-size: 18px;
 
}
/* 響應式 */
@media (max-width: 1280px) {
  .icon-title {
    align-items: flex-start;   /* 靠左 */
    max-width: 300px;
    margin-bottom: 2%;
    padding-bottom: 12%;
  } 

  .contact-wrapper {
    padding-bottom: 15%;
    gap: 30px;
  }

  /* 手機版：改為直向排列，但每個項目內保持橫向 */
  .contact-left {
    flex-direction: column;   /* 整體直向排列 */
    align-items: flex-start;  /* 左對齊 */
    gap: 30px;
    width: 100%;              /* 占滿容器寬度 */
  }

  .contact-item {
    flex-direction: row;      /* icon + 文字橫向排列 */
    align-items: center;      /* 垂直置中 */
    justify-content: flex-start; /* 靠左 */
    text-align: left;         /* 文字靠左 */
    width: 100%;
    gap: 15px;
  }

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





/* ----------------------------------------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);
}
