* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
  color: #fff;
}

body {
  background-image: url("image/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* 頁首 */
header {
  background-color: #353434;
  height: 80px;
  width: 100%;
  color: #fdfbee;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  flex-wrap: wrap;
}

h1 {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  line-height: 80px;
  text-decoration: none;
  white-space: nowrap;
}

header ul {
  display: flex;
  gap: 4vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

header li {
  display: inline-block;
}

header a {
  color: #fdfbee;
  text-decoration: none;
  font-size: 16px;
}

header a:hover {
  text-decoration: underline;
}

/* 橫幅區 */
.banner {
  height: 95vh;
  background-image: url("image/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fdfbee;
}

.banner-text {
  position: absolute;
  top: 100px;
  left: 120px;
}

.banner-text h2 {
  font-size: 36px;
  font-weight: bold;
  line-height:25px;
  margin-bottom: 20px;
}

.banner-text p {
  font-size: 36px;
  font-weight: bold;
  line-height: 50px;
  margin-bottom: 20px;
}

.banner-text a {
  font-size: 60px;
  font-weight: bold;
  text-decoration: none;
  color: #3DC4C5;
}
/* 文字往右移 */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 初始狀態：隱藏並位移左邊 */
.banner-text {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

/* 加入這個 class 時才觸發動畫 */
.banner-text.animate-in {
  animation: slideInFromLeft 1s ease-out forwards;
}


.menu-section {
  display: flex;
  flex-direction: column;
  background-color: #000;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid #333;
  overflow: hidden;
  height: 80px; /* 初始高度遮住一半主標 */
  transition: all 0.4s ease;
  position: relative;
  color: #888;
}

.menu-item:hover {
  height: 120px;
  background-color: #111;
  color: #ccc;
}

.menu-left {
  padding-left: 120px; /* 對齊 banner 的文字起點 */
  flex-shrink: 0;
}

.menu-title {
  font-size: 60px;
  font-weight: bold;
  color: #888;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  transition: all 0.4s ease;
}

.menu-item:hover .menu-title {
  color: #4BCCCD;
  max-width: 100%;
}

.menu-desc {
  font-size: 18px;
  color: #aaa;
  line-height: 1.6;
  padding-left: 60px;
  flex-grow: 1;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.menu-item:hover .menu-desc {
  opacity: 1;
}

.menu-icon {
  font-size: 24px;
  color: #ccc;
  margin-right: 40px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item:hover .menu-icon {
  transform: scale(1.2);
  color: #fff;
}
/* 頁尾 */
footer {
  text-align: center;
  padding: 20px;
  background-color: #00000017;
  color: #888;
  font-size: 14px;
}

footer .social-icons {
  margin-bottom: 20px;
}
/* 交互 */
.carousel {
  position: relative;
  width: 95%;
  margin: 60px auto;
  overflow: hidden;
  background-color: #000;
  padding: 20px 0;
  color: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

.carousel-item {
  flex: 0 0 calc(33.33% - 20px); /* 每排3張 */
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height:450px; /* 或你想要的固定高度 */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  font-size: 40px;
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.product-slider-search {
  background-color: #000;
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.slider-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.slider-text p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 30px;
}

.product-slider-search {
  background-color: #000;
  background-size: cover;
  background-position: center;
  padding: 40px 20px 60px; 
  margin-top: -40px;       
  text-align: center;
  color: #fff;
}

.slider-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.slider-text p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 30px;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: #111;
  border-radius: 50px;
  padding: 10px 20px;
  border: 2px solid #4bcccd;
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: #888;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  padding-left: 10px;
}

.search-bar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.fixed-image-scroll-text {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.fixed-image-scroll-text {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: #000;
}
.more-btn {
  margin-top: 16px;
  padding: 12px 24px;
  background-color: #4bcccd;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: glowPulse 2.5s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(75, 204, 205, 0.4);
}
.more-btn:hover {
  background-color: #39b5ba;
  transform: translateY(-5px);
  animation: none;
  box-shadow: 0 0 30px rgba(75, 204, 205, 0.9);
}
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(75, 204, 205, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(75, 204, 205, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(75, 204, 205, 0.4);
  }
}
@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-slider-search {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.product-slider-search.visible {
  animation: slideUpFadeIn 1s ease forwards;
}


.more-btn-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
}



/* 關於我們 */
.image-side {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-side {
  width: 50%;
  padding: 60px;
  overflow-y: auto;
  background-color: #000;
  color: #fff;            
}

.text-content h2 {
  font-size: 36px;
  color: #4bcccd; 
  margin-bottom: 20px;
}

.text-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #f0f0f0; }

/* 響應式調整（手機版變上下） */
@media (max-width: 768px) {
  .fixed-image-scroll-text {
    flex-direction: column;
  }

  .image-side,
  .text-side {
    width: 100%;
    position: static;
    height: auto;
  }

  .image-side img {
    height: auto;
  }

  .text-side {
    padding: 30px 20px;
  }
}
.contact-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #000;
  color: #fff;
  padding: 60px 0; /* 上下 padding，左右我們單獨控制 */
}

.contact-info {
  width: 50%;
  padding-left: 120px; 
  padding-right: 40px;
  font-family: Arial, sans-serif;
}

.contact-info h2 {
  color: #4bcccd;
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #eaeaea;
}

.contact-map {
  width: 50%;
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 響應式調整：手機版改為上下排、居中 */
@media (max-width: 768px) {
  .contact-info,
  .contact-map {
    width: 100%;
    padding: 20px;
    height: auto;
  }

  .contact-info {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-map {
    height: 300px;
  }
}
/* icon*/
.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.icon {
  position: relative;
  width: 32px;  /*  可自行調整圖示尺寸 */
  height: 32px;
  display: inline-block;
}

.icon img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.icon .hover {
  opacity: 0;
}

.icon:hover .default {
  opacity: 0;
}

.icon:hover .hover {
  opacity: 1;
}
/* 跑馬燈*/
.hashtag-marquee {
  overflow: hidden;
  background-color:#00000017;
  padding: 10px 0;
}

.hashtag-track {
  display: flex;
  width: max-content;
  gap: 40px; /*  圖片之間的間距（可調小） */
  animation: scroll-hashtag 20s linear infinite; /* 此處可調速度（越小越快） */
}

.hashtag-track img {
  height: 36px; /* 調整圖片高度 */
  object-fit: contain;
  flex-shrink: 0;
}

/*  跑馬燈動畫（水平連續滑動） */
@keyframes scroll-hashtag {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /*  往左滑動50%距離，若圖片足夠即無縫 */
}}
/* 回彈按鈕*/
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent; /* 若圖片已有底色，可透明 */
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 999;
  display: none; /* 預設隱藏，滾動後出現 */
  padding: 0;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4)); /* ✅ 可加陰影讓圖更立體 */
  transition: transform 0.3s ease;
}

.back-to-top:hover img {
  transform: scale(1.1); /* ✅ 滑鼠移上放大一點點 */
}


/* RWD 響應式設計 */
@media (max-width: 1024px) {
  .banner-text {
    top: 150px;
    left: 60px;
  }

  .menu-left {
    padding-left: 60px;
  }

  .carousel-item {
    flex: 0 0 calc(50% - 20px); /* 平板每排 2 張 */
  }

  .text-side {
    padding: 40px;
  }

  .contact-info {
    padding-left: 60px;
    padding-right: 20px;
  }

  header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: auto;
  }

  h1 {
    font-size: 26px;
    line-height: 80px;
    text-align: left;
  }

  header ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .banner-text {
    top: 120px;
    left: 30px;
  }

  .menu-title {
    font-size: 36px;
  }

  .menu-desc {
    font-size: 16px;
    padding-left: 20px;
  }

  .carousel-item {
    flex: 0 0 100%; /* 手機每排 1 張 */
  }

  .carousel-track {
    gap: 10px;
  }

  .slider-text h2 {
    font-size: 24px;
  }

  .slider-text p {
    font-size: 16px;
  }

  .text-side {
    padding: 30px 20px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-map {
    height: 300px;
    padding: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top img {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: auto;
  }

  header ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }

  header li {
    margin: 5px 0;
  }

  h1 {
    font-size: 24px;
    text-align: center;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .banner-text h2,
  .banner-text p {
    font-size: 24px;
    line-height: 1.4;
  }

  .banner-text a {
    font-size: 32px;
  }

  .menu-title {
    font-size: 28px;
  }

  .menu-icon {
    font-size: 20px;
    margin-right: 20px;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .search-bar input {
    font-size: 14px;
  }

  .carousel-track {
    gap: 10px;
  }

  h1 {
    font-size: 22px;
  }

  header ul {
    gap: 8px;
  }

  header a {
    font-size: 15px;
  }
}
