.product-detail-container,
.related-products-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 4%;
  display: flex;
  overflow: hidden;
}

.detail-content {
  position: relative;
  display: flex;
  width: 50%;
}

.product-gallery {
  width: 100%;
  /* position: sticky; */
  /* top: 100px; */
  height: fit-content;
}

.productSwiper {
  width: 100%;
  margin-bottom: 20px;
}

.productSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.image-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  cursor: zoom-in;
}

.product-image,
.main-image {
  max-width: inherit;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}
.main-image-box {
  width: auto;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
}
.main-image-box img {
  float: left;
  height: 100%;
  width: auto;
  margin-right: 10px;
}

/* .image-container:hover .product-image {
  opacity: 0.3;
} */

.product-info-panel {
  position: relative;
  padding: 20px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.product-series {
  font-size: 14px;
  color: #c5a47e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.main-image-wrapper {
  flex: 1;
  position: relative;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}

.product-description {
  margin-bottom: 40px;
}

.product-description h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.product-description p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

.product-features {
  margin-bottom: 40px;
}

.product-features h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.product-features ul {
  list-style: none;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #666;
}

.product-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #c5a47e;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #c5a47e;
  color: #fff;
}

.btn-primary:hover {
  background-color: #b0936e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 164, 126, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #c5a47e;
  color: #c5a47e;
}

.related-products {
  width: 100%;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.related-products h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-item span {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #666;
  background-color: #f9f9f9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.breadcrumb a {
  color: #fff;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb .separator {
  opacity: 0.6;
}

@media (max-width: 1024px) {

  .image-container {
    height: 400px;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-detail-container,
  .related-products-container {
    padding: 20px 4%;
    flex-wrap: wrap;
  }

  .detail-content {
    width: 100%;
  }

  .image-container {
    height: 300px;
  }
  .product-info-panel {
    display: block;
  }
  .main-image-wrapper {
    width: 100%;
  }
  .main-image-wrapper .main-image-box {
    position: relative;
    width: 100%;
    height: auto;
  }
  .main-image-wrapper .main-image-box img {
    margin-bottom: 10px;
  }
  .product-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .product-series {
    font-size: 12px;
  }

  .product-specs {
    padding: 20px;
    gap: 15px;
  }

  .spec-value {
    font-size: 14px;
  }

  .product-description h3,
  .product-features h3,
  .related-products h3 {
    font-size: 1.1rem;
  }

  .product-description p,
  .product-features li {
    font-size: 14px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-item img {
    height: 150px;
  }

  .magnifier-result {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .product-hero {
    height: 250px;
    /* margin-top: 60px; */
  }

  .hero-content h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .image-container {
    height: 250px;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .product-specs {
    padding: 15px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 13px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ani[data-animate="fadeInUp"] {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.ani[data-animate="fadeInUp"][data-delay="0.2s"] {
  animation-delay: 0.2s;
}

.ani[data-animate="fadeInUp"][data-delay="0.4s"] {
  animation-delay: 0.4s;
}


/* 放大镜镜头 */
.zoom-lens {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid #fff;
  cursor: pointer;
  opacity: 0.4;
  transition: transform 0.1s ease-in-out; /* 平滑过渡 */
}

/* 放大镜结果显示区域 */
#zoom-result {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 20px;
  width: 300px; /* 调整显示区域大小 */
  height: 300px;
  background-color: #fff;
  display: none;
  overflow: hidden;
  z-index: 99;
}

#zoom-result img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
