section {
  /* border-bottom: 5px solid var(--Text); */
  border-bottom: 5px solid var(--Main);
}

/*sectionSilder*/
.sectionSilder {
  width: 100vw;
  height: 100vh !important;
  position: relative;
  height: auto;
  overflow: hidden;
  line-height: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* 特別指定只有 sectionSilder 下的 image-container */
.sectionSilder .image-container {
  width: 100%;
  height: 100%;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mySwiper4 {
  height: 100%;
}

.sectionSilder .swiper-slide {
  display: block;
}

.sectionSilder .mySwiper4,
.sectionSilder .swiper-wrapper,
.sectionSilder .swiper-slide {
  width: 100%;
  line-height: 0;
}

.sectionSilder .swiper-slide img {
  width: 100%;
  height: 100%;
  /* height: auto; */
  object-fit: cover;
  display: block;
}

.part1 {
  /* padding: 200px 0 100px 0; */
  padding: 150px 0 100px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.part1::before {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--Gray);
  z-index: 0;
}

.mySwiper {
  width: 80%;
}

.mySwiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 讓圖片容器高度一致 */
.mySwiper .image-container {
  width: 100%;
  height: 400px; /* 固定高度，可以根據需要調整 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mySwiper img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto; /* 讓高度自動調整，以維持原始比例 */
  max-width: 90%; /* 確保圖片不會超過容器寬度 */
  max-height: 90%; /* 確保圖片不會超過容器高度 */
  object-fit: contain; /* 確保圖片完整顯示且保持比例 */
  object-position: center;
}

.swiper-slide {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}

.swiper-slide p {
  width: 90%;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--Text);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 40px;
}

.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
  pointer-events: auto !important; /* 強制啟用點擊事件 */
}

.part2 {
  padding: 100px 200px 200px 200px;
}

.part2Title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-items: center;
  /* margin-bottom: 100px; */
  margin-bottom: 30px;
}

.part2 h1 {
  font-size: 3vw;
  font-weight: 500;
  color: var(--Text);
  margin: 0;
}

.part2 h1 span {
  font-weight: 400;
  font-size: 0.6em;
  vertical-align: top;
}

/*DropDownList A*/
.dropDown {
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.dropDownHeader {
  width: 100%;
  height: 40px;
  border-radius: 20px 20px;
  border: 1px solid var(--Gray);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.dropDownBody {
  /* opacity: 0;
  transition: 0.5s;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px 10px;
  border: 1px solid var(--Gray);
  display: flex;
  flex-direction: column;
  gap: 10px; */

  position: absolute; /* 絕對定位 */
  top: 100%; /* 從父元素底部開始 */
  left: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;

  width: 100%;
  padding: 0;
  margin-top: 5px; /* 與 header 的間距 */
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--Gray); /* 確保背景色 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加陰影提升層次感 */
}

.dropDownBody.active {
  /* opacity: 1;
  transition: 0.5s; */

  opacity: 1;
  height: auto;
  padding: 10px;
  pointer-events: auto;
  border: 1px solid var(--Gray);
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.dropDownBody .btn {
  width: 100%;
  height: 25px;
  font-size: 14px;
}

/* 確保 checkbox 標籤正確對齊 */
.dropDownBody div {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 當下拉選單開啟時增加 z-index，確保在最上層 */
.dropDown:focus-within,
.dropDown:hover {
  z-index: 10;
}

.mySwiper2 {
  width: 100%;

  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mySwiper2 .product-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  /*position: absolute;
  top: 0;
  left: 0;
  width: 90%; 
  height: 90%; 
  margin: auto;
  right: 0;
  bottom: 0;
  object-fit: contain; 
  max-height: 90%;
  max-width: 90%; */
}

.mySwiper2 i {
  color: darkred;
  position: absolute;
  bottom: 350px; /* 從底部算起 */
  right: 100px; /* 從右側算起 */
  font-size: 36px;
  z-index: 10;
  cursor: pointer;
  transition: 0.3s;
}

/* .mySwiper2 img,
.mySwiper3 img {
  width: 100%;
} */

.mySwiper3 {
  /* width: 70%; */
  width: 50%;
  /* height: 20%; */
  box-sizing: border-box;
  padding: 10px 0;
  margin: 0 auto;
}

.mySwiper3 .swiper-slide {
  width: 20%;
  aspect-ratio: 1/1;
  opacity: 0.4;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--Text);
  cursor: pointer;
}

.mySwiper3 .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mySwiper3 .swiper-slide-thumb-active {
  opacity: 1;
}

.productBrief {
  /* margin: 100px 0; */
  margin: 30px 0;
  width: 70%;
  display: block;
  font-size: 24px;
  line-height: 1.5em;
}

.productTable {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 24px;
}

.productTable tr {
  border-bottom: 1px solid var(--Gray);
}

.productTable tr:last-child {
  border-bottom: none;
}

.productTable tr td {
  padding: 15px 15px;
}

.productTable tr td:first-child {
  width: 30%;
  font-weight: bold;
}

.share {
  font-size: 24px;
  padding: 15px 15px;
}

.share span {
  margin-left: 20px;
  margin-right: 20px;
}

.compare.lightboxContainer {
  /* max-width: 768px; */
  max-width: 1280px;
}

.lightBoxHeader {
  width: 100%;
  padding: 20px 20px;
  display: flex;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--Gray);
}

.lightBoxHeaderTitle {
  flex-basis: calc(80% - 20px);
}

.lightboxContent {
  width: 100%;
}

.compaireTable {
  width: 100%;
  position: relative;
  overflow: auto;
}

.compaireTable table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.compaireTable table td {
  text-align: center;
  padding: 15px 15px;
  width: 100px;

  word-wrap: break-word;
  hyphens: manual;
}

.spec-value {
  display: inline-block; /* 使每個規格值作為一個整體 */
  white-space: nowrap; /* 防止規格值內部換行 */
  margin-bottom: 3px; /* 值之間添加間距 */
}

.compaireTable table th {
  width: 100px;
  background: var(--Bg);
}

.compaireTable table th img {
  width: 95%;
  display: block;
  margin: 0 auto;
}

.compaireTable table td:first-child {
  text-align: right;
}

.compaireTable table td:first-child,
.compaireTable table th:first-child {
  position: sticky;
  left: 0;
  /* 首行永遠固定於左 */
  z-index: 5;
  font-weight: bold;
}

.compaireTable tbody tr:nth-child(odd),
.compaireTable tbody tr:nth-child(odd) td {
  background: var(--Bg);
  border-bottom: 1px solid var(--Gray);
}

.compaireTable tbody tr:nth-child(even),
.compaireTable tbody tr:nth-child(even) td {
  background: var(--Bg);
  border-bottom: 1px solid var(--Gray);
}

.compaireTable tbody tr:last-child,
.compaireTable tbody tr:last-child td {
  border-bottom: none;
}

/*////RWD////*/
@media screen and (min-width: 2000px) {
  /* .section4 {
    max-width: 1920px;
    margin: 0 auto;
  }

  .section4 .swiper-slide img {
    width: 1920px;
    max-width: 1920px;
    display: block;
    margin: 0 auto;
  } */
}

@media screen and (max-width: 1660px) {
}

@media screen and (max-width: 1440px) {
}

@media screen and (max-width: 1366px) {
}

@media screen and (max-width: 1280px) {
}

@media (orientation: landscape) and (max-height: 800px) {
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 768px) {
  .mySwiper .image-container {
    height: 250px; /* 在小螢幕上稍微降低高度 */
  }

  .mySwiper img {
    width: 60%; /* 在小螢幕上稍微放大圖片 */
  }

  .mySwiper2 i {
    top: 20px;
    right: 20px;
  }
}

@media (orientation: landscape) and (max-height: 768px) {
  .mySwiper .image-container {
    height: 250px; /* 在小螢幕上稍微降低高度 */
  }

  .mySwiper img {
    width: 60%; /* 在小螢幕上稍微放大圖片 */
  }

  .mySwiper2 i {
    top: 20px;
    right: 20px;
  }
}

@media (orientation: portrait) and (max-height: 1180px) {
  .part1 {
    padding: 100px 0;
  }

  .part2 {
    padding: 100px 50px;
  }

  .productBrief,
  .share {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 5vw;
  }

  .mySwiper3 {
    width: 90%;
    margin: 0 auto;
  }

  .sectionSilder .swiper-slide img {
    /* width: auto; */
    height: 100%;
  }
}

@media (orientation: portrait) and (max-height: 1024px) {
}

@media (orientation: portrait) and (max-width: 480px) {
  .section4 {
    width: 100vw;
  }

  .part2 h1 {
    font-size: 6vw;
  }

  .mySwiper .image-container {
    height: 250px; /* 在更小的螢幕上進一步降低高度 */
  }

  .mySwiper img {
    width: 100%; /* 在更小的螢幕上進一步放大圖片 */
  }

  .part2Title {
    justify-content: flex-start;
    flex-wrap: wrap;
    /* gap: 20px; */
    gap: 70px;
  }

  .productBrief {
    /* margin: 50px 0; */
    margin: 20px 0;
    font-size: 16px;
  }

  .productTable,
  .share {
    font-size: 14px;
  }

  .part2 {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .mySwiper2 {
    width: 80%;
    max-height: 60vh; /* 進一步減少在小屏幕上的高度 */
    order: 3;
  }

  .mySwiper2 i {
    top: 20px;
    right: 20px;
  }

  .mySwiper2 .product-img {
    width: 80%;
    height: 40vh; /* 小屏幕上減少到40%的視窗高度 */
  }
  .mySwiper3 {
    width: 20%;
    order: 2;
  }
  .mySwiper2 .swiper-slide img {
    transform-origin: center center;
    /* transform: rotate(-90deg); */
  }
  .mySwiper3 .swiper-wrapper {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .mySwiper3 .swiper-slide {
    width: 100% !important;
    aspect-ratio: 1/1;
  }
  .part2Title {
    margin: 0;
  }
  .productBrief {
    order: 4;
  }
  .productTable {
    order: 5;
  }
  .share {
    order: 6;
  }
}

/*Iphone XR 414*896 */
@media (orientation: portrait) and (max-height: 896px) {
}

/*Iphone 12Pro 390*844 */
@media (orientation: portrait) and (max-height: 844px) {
}

/*Iphone 10 375*812 */
@media (orientation: portrait) and (max-height: 812px) {
}

/*Iphone 8Plus 414*736 */
@media (orientation: portrait) and (max-height: 736px) {
}

/*Iphone 8 375*667 */
@media (orientation: portrait) and (max-height: 667px) {
}

@media screen and (max-width: 360px) {
}

@media screen and (max-width: 320px) {
}

@media (orientation: landscape) {
  .mySwiper2 .product-img {
    width: 60%;
    margin: 0 auto;
    /* 轉90 */
    transform: rotate(-90deg);
  }
}

@media (orientation: portrait) {
  .mySwiper2 .product-img {
    /* width: 100%;
    height: 60vh;
    object-fit: contain; */

    width: 85%;
    height: 50vh; /* 使用視窗高度的50%，而不是60% */
    object-fit: contain;
  }
}
