.product-detail-page,
.product-detail-page * {
  box-sizing: border-box;
}

.product-detail-page {
  --detail-blue: #4574bc;
  --detail-blue-dark: #315f9f;
  --detail-orange: #f4512a;
  --detail-text: #252a31;
  --detail-muted: #747b84;
  --detail-line: #e3e7ec;
  --product-blue: var(--detail-blue);
  --product-blue-dark: var(--detail-blue-dark);
  --product-text: var(--detail-text);
  --product-muted: var(--detail-muted);
  --product-line: var(--detail-line);
  padding: 0 0 92px;
  background: #fff;
  color: var(--detail-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.product-detail-page__inner {
  width: calc(100% - 48px);
  max-width: 1400px;
  margin: 0 auto;
}

.product-detail-page__breadcrumb {
  display: flex;
  min-height: 88px;
  align-items: center;
}

.product-detail-page__breadcrumb .common-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7b8189;
  font-size: 14px;
  line-height: 1.6;
}

.product-detail-page__breadcrumb .common-breadcrumb img {
  flex: 0 0 15px;
  opacity: .58;
}

.product-detail-page__breadcrumb .common-breadcrumb a {
  color: inherit;
  transition: color .22s ease;
}

.product-detail-page__breadcrumb .common-breadcrumb a:hover {
  color: var(--detail-blue);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.product-detail-panel {
  min-width: 0;
  padding: 0 18px 36px;
  border: 1px solid var(--detail-line);
  background: #fff;
}

.product-detail-panel__heading {
  min-height: 65px;
  border-bottom: 1px solid var(--detail-line);
}

.product-detail-panel__heading h1 {
  margin: 0;
  padding: 18px 0 14px;
  color: var(--detail-blue-dark);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

.product-detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr);
  gap: 42px;
  padding: 36px 0 38px;
}

.product-gallery {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.product-gallery__main {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1.13 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--detail-line);
  background: #f5f6f7;
  cursor: crosshair;
}

.product-gallery__main img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  transition: transform .4s ease;
}

.product-gallery__lens {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(69, 116, 188, .48);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 3px 13px rgba(39, 66, 105, .14);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(.96);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.product-gallery__zoom {
  position: absolute;
  top: 0;
  left: calc(100% + 42px);
  z-index: 3;
  width: calc(100% - 30px);
  aspect-ratio: 1.13 / 1;
  overflow: hidden;
  border: 1px solid #cfd5dc;
  background-color: #f5f6f7;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.product-gallery.is-zooming .product-gallery__lens,
.product-gallery.is-zooming .product-gallery__zoom {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.product-gallery__thumbs {
  position: relative;
  height: 62px;
  margin-top: 16px;
  padding: 0 32px;
}

.product-gallery__viewport {
  width: 100%;
  height: 62px;
  overflow: hidden;
}

.product-gallery__list {
  display: flex;
  width: max-content;
  height: 62px;
  gap: 10px;
  transform: translate3d(0, 0, 0);
  transition: transform .3s ease;
}

.product-gallery__thumb {
  display: flex;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid var(--detail-line);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  border-color: var(--detail-blue);
}

.product-gallery__thumb:active {
  transform: scale(.97);
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.product-gallery__arrow {
  position: absolute;
  top: 0;
  width: 25px;
  height: 62px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #9ca3ac;
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 62px;
  cursor: pointer;
  transition: color .2s ease;
}

.product-gallery__arrow:hover {
  color: var(--detail-blue);
}

.product-gallery__arrow:disabled {
  color: #d9dde2;
  cursor: default;
}

.product-gallery__arrow--prev { left: 0; }
.product-gallery__arrow--next { right: 0; }

.product-summary {
  min-width: 0;
  padding: 0 0 12px;
}

.product-summary__title {
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 1px dashed var(--detail-line);
  color: var(--detail-blue-dark);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.product-summary__description {
  min-height: 72px;
  margin-top: 18px;
  color: var(--detail-muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  text-wrap: pretty;
}

.product-summary__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--detail-line);
}

.product-summary__action {
  display: inline-flex;
  min-width: 138px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #e2e5e9;
  background: #f2f3f4;
  color: #626a74;
  font-size: 14px;
  line-height: 22px;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease, transform .22s ease;
}

.product-summary__action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-summary__action:hover {
  border-color: var(--detail-blue);
  background: var(--detail-blue);
  color: #fff;
  transform: translateY(-1px);
}

.product-summary__action:active {
  transform: translateY(1px);
}

.product-summary__hotline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 27px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--detail-line);
  color: #707780;
  font-size: 15px;
  line-height: 1.5;
}

.product-summary__hotline svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--detail-orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-summary__hotline a {
  color: var(--detail-blue);
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-detail-tabs {
  border-bottom: 1px solid var(--detail-line);
}

.product-detail-tabs__label {
  position: relative;
  display: inline-flex;
  min-width: 150px;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 26px;
  background: var(--detail-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 31px;
}

.product-detail-tabs__label::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 7px solid var(--detail-blue);
  content: "";
  transform: translateX(-50%);
}

.product-detail-content {
  min-height: 240px;
  padding: 36px 0 46px;
  color: #626a73;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  overflow-wrap: anywhere;
}

.product-detail-content img {
  max-width: 100% !important;
  height: auto !important;
}

.product-detail-content p {
  margin: 0 0 20px;
}

.product-detail-content h1,
.product-detail-content h2,
.product-detail-content h3,
.product-detail-content h4 {
  margin: 26px 0 15px;
  color: var(--detail-blue-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.product-detail-content table {
  width: 100% !important;
  margin: 18px 0 26px;
  border-collapse: collapse !important;
}

.product-detail-content table td,
.product-detail-content table th {
  padding: 10px 16px !important;
  border: 1px solid #e0e4e9 !important;
  color: #59616b;
  text-align: left;
}

.product-detail-content table tr:nth-child(odd) {
  background: #f5f6f7;
}

.product-detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 22px 0 25px;
  border-top: 1px solid var(--detail-line);
  color: #757d87;
  font-size: 14px;
  line-height: 1.65;
}

.product-detail-nav a {
  min-width: 0;
  overflow: hidden;
  color: #505862;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}

.product-detail-nav a:hover {
  color: var(--detail-blue-dark);
}

.product-detail-nav__back {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--detail-orange);
  color: #fff;
  font-size: 15px;
  transition: background-color .22s ease, transform .22s ease;
}

.product-detail-nav__back:hover {
  background: #dc3f1d;
  color: #fff;
}

.product-detail-nav__back:active {
  transform: translateY(1px);
}

.related-products {
  margin-top: 70px;
}

.related-products__heading {
  border-bottom: 1px solid var(--detail-line);
}

.related-products__heading h2 {
  position: relative;
  display: inline-flex;
  min-width: 154px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 25px;
  background: var(--detail-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
}

.related-products__heading h2::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 7px solid var(--detail-blue);
  content: "";
  transform: translateX(-50%);
}

.related-products__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.related-product {
  min-width: 0;
}

.related-product__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.24 / 1;
  overflow: hidden;
  border: 1px solid var(--detail-line);
  background: #f4f5f6;
}

.related-product__image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform .38s ease;
}

.related-product__title {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  color: #676f78;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .22s ease;
}

.related-product:hover .related-product__image img,
.related-product:focus-within .related-product__image img {
  transform: scale(1.045);
}

.related-product:hover .related-product__title,
.related-product:focus-within .related-product__title {
  color: var(--detail-blue-dark);
}

.product-detail-page a:focus-visible,
.product-detail-page button:focus-visible {
  outline: 2px solid #214f93;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .product-detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .product-detail-overview {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    gap: 26px;
  }

  .product-gallery__zoom {
    left: calc(100% + 26px);
    width: calc(100% - 36px);
  }

  .related-products__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-detail-overview {
    grid-template-columns: 1fr;
  }

  .product-summary__description {
    min-height: 0;
  }

  .product-gallery__main {
    cursor: default;
  }

  .product-gallery__lens,
  .product-gallery__zoom {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-detail-page {
    padding-bottom: 58px;
  }

  .product-detail-page__inner {
    width: calc(100% - 30px);
  }

  .product-detail-page__breadcrumb {
    min-height: 60px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail-page .product-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-detail-page .product-contact-card {
    margin-top: 0;
  }

  .product-detail-panel {
    padding: 0 14px 28px;
  }

  .product-detail-overview {
    padding: 24px 0 30px;
  }

  .product-summary__title {
    font-size: 21px;
  }

  .product-detail-content {
    padding: 30px 0 36px;
  }

  .related-products {
    margin-top: 48px;
  }

  .related-products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

@media (max-width: 560px) {
  .product-detail-page .product-sidebar,
  .product-detail-nav {
    grid-template-columns: 1fr;
  }

  .product-detail-overview {
    gap: 22px;
  }

  .product-summary__actions {
    flex-direction: column;
  }

  .product-summary__action {
    width: 100%;
  }

  .product-summary__hotline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .product-summary__hotline a {
    font-size: 17px;
  }

  .product-detail-tabs__label,
  .related-products__heading h2 {
    min-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-page *,
  .product-detail-page *::before,
  .product-detail-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
