
.img-thumbnail {
  width: 100%;
  height: 100%;
  display: block; 
}
.img-fluid {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.product-details-img {
  position: relative;
  z-index: 1;
  background-color: #fff;
  width: 100%;
  height: 430px;
  display: flex;
  gap: 20px;
}

/* 缩略图容器样式 */
.thumbnail-gallery {
  width: 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnail-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;  
  overflow: hidden;
  position: relative;
}

.thumbnail-item {
  width: 100px;
  height: 100px;
  cursor: pointer;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  display: none; /* 默认隐藏所有缩略图 */
}

.thumbnail-item.visible {
  display: block; /* 只显示可见的缩略图 */
}

.thumbnail-item:hover {
  border-color: #dee2e6;
}

.thumbnail-item.active {
  border-color: #9fd456;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  background: transparent;
  display: block;
}

/* 主图容器样式 */
.main-image-container {
  flex: 1;
  position: relative;
  background: transparent;
  width: 100%;
  overflow: hidden;
}

.main-image-wrapper {
  width: 100%;
  position: relative;
  aspect-ratio: 4/3;
  height: 100%;
  overflow: hidden;
  border: var(--bs-border-width) solid var(--bs-border-color);
  box-sizing: border-box;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 缩略图导航按钮 */
.thumbnail-nav {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.thumbnail-nav-btn {
  width: 100%;
  height: 30px;
  /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)); */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 18px;
  color: #333;
  pointer-events: auto;
  opacity: 1;
  border: 1px solid #e0e0e0;
  background-color: #f0f0f0;
}

.thumbnail-nav-btn.prev {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.thumbnail-nav-btn.next {
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.thumbnail-nav-btn:hover {
  color: #333;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 992px) {
}

@media (max-width: 576px) {
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}
.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.ti-chevron-left {
  transform: rotate(90deg);
}
.ti-chevron-right {
  transform: rotate(90deg);
}
