/* 画廊容器 */
* {
  box-sizing: border-box;
}
.gallery-container {
  position: relative;
  width: 360px;
}
/* 大图展示区 */
.main-image-container {
  position: relative;
  width: 360px;
  height: 360px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #e5e5e5;
}
.main-image,
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 细节浮层 */
.detail-overlay {
  position: absolute;
  display: none;
  width: 60px;
  height: 60px;
  background: #09f;
  border: 1px solid #aaa;
  opacity: 0.5;
  filter: alpha(opacity=50);
  pointer-events: none;
}
/* 细节独立放大框 */
.zoom-box {
  position: absolute;
  top: 0;
  left: 110%;
  z-index: 2;
  display: none;
  width: 540px;
  height: 540px;
  overflow: hidden;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
}
.zoom-image {
  position: absolute;
  width: 200%;
  height: 200%;
  max-width: 200%;
  object-fit: contain;
}
/* 小图滚动区 */
.thumbnail-scroller {
  position: relative;
  padding: 0 8px;
  margin-top: 20px;
}
.thumbnails {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.thumbnails::-webkit-scrollbar {
  display: none;
}
/* 小图样式 */
.thumbnail {
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 0 3px;
  border: 2px solid #f1f1f1;
  transition: all 0.3s ease;
  cursor: pointer;
}
.thumbnail.active {
  border-color: #19833e;
}
/* 导航箭头 */
.scroll-arrow {
  position: absolute;
  top: 0;
  width: 10px;
  height: 80px;
  color: #707070;
  line-height: 80px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #f3f3f3;
  cursor: pointer;
}
.scroll-arrow:hover {
  border-color: #e1e1e1;
}
.arrow-prev {
  left: -7px;
}
.arrow-next {
  right: -7px;
}
