@charset "UTF-8";

/** 媒体查询 */

/** 布局 */

.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.image-preview-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.image-preview-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.preview-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.preview-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.preview-btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.preview-btn.prev {
  left: 0;
}

.preview-btn.next {
  right: 0;
}

.preview-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.875rem;
  cursor: pointer;
}

.preview-indicator {
  position: absolute;
  bottom: -1.875rem;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 0.875rem;
}

/* 使产品图片可点击 */

.product-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.02);
}

/* 响应式调整 */

@media (max-width: 768px) {
  .preview-btn {
    font-size: 1.2rem;
    padding: 0.5rem;
  }
}

.ant-carousel {
  border: 0.0625rem solid #dddddd !important;
}

.ant-carousel .slick-dots,
.slick-thumb {
  height: auto !important;
  text-align: left !important;
  bottom: -10.625rem !important;
  display: flex !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  cursor: grab !important;
  scroll-behavior: smooth !important;
  will-change: scrollLeft !important;
  transform: translateZ(0) !important;
}

@media (max-width: 768px) {
  .ant-carousel .slick-dots,
  .slick-thumb {
    display: none !important;
  }
}

.ant-carousel .slick-slide img {
  display: block !important;
  margin: auto !important;
  max-width: 100% !important;
  max-height: 31.25rem;
}

.ant-carousel .slick-thumb li {
  width: 8.75rem !important;
  height: 8.75rem !important;
  margin: 0 !important;
  margin-right: 0.875rem !important;
  border: 0.0625rem solid #dddddd !important;
  flex-shrink: 0 !important;
}

.ant-carousel li.slick-active {
  border: 0.125rem solid #2459a9 !important;
}

.ant-carousel .slick-thumb li img {
  width: 99% !important;
  height: 99% !important;
  filter: grayscale(100%) !important;
}

.ant-carousel .slick-thumb li.slick-active img {
  filter: grayscale(0%) !important;
}

.product-detail {
  padding: 3.75rem 0;
}

.product-detail .detail-info {
  grid-template-columns: minmax(18.75rem, 37.5rem) 1fr;
  align-items: flex-start;
  gap: 8.125rem;
}

.product-detail .product-info {
  display: grid;
  gap: 0.3rem;
  font-size: 1.5rem;
  color: #000000;
  align-content: start;
}

@media (min-width: 768px) {
  .product-detail .product-info {
    min-height: 43.75rem;
  }
  .product-detail .maxw1600 {
      display: flex;
      flex-direction: column;
      gap: 8rem;
  }
  .product-detail .detail-info .product-gallery {
    position: sticky;
    top: 6.25rem; 
  } 
}

.product-detail .product-title {
  font-weight: bold;
  font-size: 1.5rem;
  color: #000000;
}

.product-detail .product-description {
  font-size: 1rem;
  color: #000000;
  line-height: 1.5rem;
}

.product-detail h5 {
  font-size: 1rem;
  color: #000000;
}

.product-detail .information {
  margin-top: 1.25rem;
}

.product-detail .params {
  gap: 0.9375rem 2.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.product-detail .btns {
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.25rem;
}

.product-detail .btns .btn {
  height: 3.75rem;
  border-radius: 1.875rem 1.875rem 1.875rem 1.875rem;
  border: 0.0625rem solid #707070;
  font-size: 1.25rem;
  color: #000000;
  padding: 0 1.25rem;
}

.product-detail .btns .ant-btn-primary {
  color: #fff !important;
  border-color: #2459a9 !important;
}

.product-detail .product {
  margin-top: 5rem;
}

.product-detail .product > h3 {
  font-weight: bold;
  font-size: 1.875rem;
  color: #000000;
  margin-bottom: 1.875rem;
}

@media (max-width: 768px) {
  .product-detail {
    padding: 1.875rem 0;
  }

  .product-detail .detail-info {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
  }

  .product-detail .detail-info .product-gallery {
    width: 100%;
  }

  .product-detail .product-info {
    font-size: 1rem;
  }

  .product-detail .product-title {
    font-size: 1.25rem;
  }

  .product-detail .product-description {
    font-size: 1rem;
    line-height: 1.875rem;
  }

  .product-detail h5 {
    font-size: 1.25rem;
  }

  .product-detail .btns {
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0;
  }

  .product-detail .btns .btn {
    height: 2.5rem;
    font-size: 1rem;
    padding: 0 1.25rem;
  }

  .product-detail .product {
    margin-top: 1.875rem;
  }

  .product-detail .product > h3 {
    font-size: 1.25rem;
  }
}