/* === 3D 輪播容器 === */
.carousel {
  position: relative;
  width: 50%;
  height: 600px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10%;
}
/* === 主要容器 === */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 500px;
  transform-style: preserve-3d;
}
/* === 每張卡片 === */
.person-card {
  position: absolute;
  top: 50%;
  width: 240px;
  height: 400px;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 1.2s ease;
  opacity: 0.6;
}
.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* === 位置分佈（以百分比距離平均） === */
.person-card.active {
  left: 50%;
  transform: translate(-50%, -50%) translateZ(250px);
  opacity: 1;
  z-index: 6;
}
.person-card.next1 {
  left: 70%;
  transform: translate(-50%, -50%) rotateY(-20deg) translateZ(100px);
  opacity: 0.9;
  z-index: 5;
}
.person-card.next2 {
  left: 85%;
  transform: translate(-50%, -50%) rotateY(-35deg) translateZ(0);
  opacity: 0.7;
  z-index: 4;
}
.person-card.prev1 {
  left: 30%;
  transform: translate(-50%, -50%) rotateY(20deg) translateZ(100px);
  opacity: 0.9;
  z-index: 5;
}
.person-card.prev2 {
  left: 15%;
  transform: translate(-50%, -50%) rotateY(35deg) translateZ(0);
  opacity: 0.7;
  z-index: 4;
}
/* === 右側說明框 === */
#infoBox {
  position: absolute;
  right: -100%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  width: 75%;
}
#infoBox h2 {
  font-size: 40px;
  margin-bottom: 10px;
}
#infoBox p {
  font-size: 21px;
  line-height: 1.6;
}
/* === 左右控制按鈕 === */
.btn-area {
  position: absolute;
  width: 130px;
  bottom: -100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}
.btn-area button {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #fff;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.3s;
}
.btn-area button:hover {
  background: rgba(255, 255, 255, 1);
  color: #000;
}
@media (max-width: 991px) {
  .carousel {
    position: relative;
    width: 90%;
    height: 600px;
    padding-left: 0%;
    align-items: flex-start;
    justify-content: flex-start;
  }
  #infoBox {
    position: absolute;
    right: 0%;
    top: 90%;
    transform: translateY(-50%);
    text-align: left;
    width: 100%;
  }
  #infoBox h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  #infoBox p {
    font-size: 16px;
    line-height: 1.6;
  }
  /* === 每張卡片 === */
  .person-card {
    width: 200px;
    height: 320px;
  }
  /* === 左右控制按鈕 === */
  .btn-area {
    bottom: -80%;
    ;
  }
}