.product-detail-page {
  --detail-blue: #086cf0;
  --detail-ink: #102746;
  --detail-muted: #70819a;
  background: #fff;
}

.product-detail-page .product-detail-main {
  padding-top: var(--header-height);
  overflow: hidden;
  /* 覆盖全站样式中 main 的深灰背景，保持详情页的浅色排版可读。 */
  color: var(--detail-ink) !important;
  background: linear-gradient(180deg, #f8fbff 0, #fff 30%, #fff 100%) !important;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(1390px, calc(100% - 80px));
  margin: 0 auto;
  padding: 20px 0 10px;
  color: #50637e;
  font-size: 13px;
}

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

.detail-breadcrumb strong {
  color: var(--detail-ink);
  font-weight: 700;
}

.detail-product-hero,
.detail-section {
  width: min(1390px, calc(100% - 80px));
  margin: 0 auto;
}

.detail-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 8px 0 42px;
}

.detail-gallery {
  min-width: 0;
}

.detail-main-visual {
  display: grid;
  height: clamp(300px, 37vw, 500px);
  overflow: hidden;
  place-items: center;
  border-radius: 4px;
  background: #eef5fb;
  box-shadow: 0 15px 36px rgb(28 75 130 / 10%);
}

.detail-main-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbnails {
  display: flex;
  gap: 13px;
  margin-top: 12px;
}

.detail-thumb {
  width: 76px;
  height: 55px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f4f8fc;
  cursor: pointer;
}

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

.detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-product-copy {
  min-width: 0;
}

.detail-kicker,
.detail-section-kicker {
  margin: 0 0 8px;
  color: #536784;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.detail-product-copy h1,
.detail-section h2 {
  margin: 0;
  color: var(--detail-ink);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 900;
  line-height: 1.25;
}

.detail-product-copy h1 small {
  display: block;
  margin-top: 3px;
  color: #536784;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.detail-title-rule,
.detail-section-line {
  display: block;
  width: 40px;
  height: 3px;
  margin: 13px 0 19px;
  background: var(--detail-blue);
}

.detail-summary,
.detail-section-copy > p:not(.detail-section-kicker) {
  color: #50637e;
  font-size: 14px;
  line-height: 2;
}

.detail-summary {
  margin: 0 0 7px;
}

.detail-intro {
  margin: 0;
  color: #50637e;
  font-size: 13px;
  line-height: 1.9;
}

.detail-pending-note {
  margin: 18px 0 26px;
  color: #50637e;
  font-size: 14px;
  line-height: 2;
}

.product-detail-main [hidden] {
  display: none !important;
}

.detail-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 27px;
}

.detail-highlights > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-highlight-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--detail-blue);
  background: #e8f2ff;
  font-size: 22px;
  font-weight: 900;
}

.detail-highlights strong {
  color: var(--detail-ink);
  font-size: 13px;
}

.detail-highlights small {
  margin-top: 3px;
  color: #50637e;
  font-size: 12px;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.detail-button {
  display: inline-flex;
  min-width: 155px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 17px;
  border: 1px solid var(--detail-blue);
  border-radius: 4px;
  color: var(--detail-blue);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, background .2s, transform .2s;
}

.detail-button span {
  font-size: 17px;
}

.detail-button:hover {
  color: #fff;
  background: var(--detail-blue);
  transform: translateY(-2px);
}

.detail-button-primary {
  color: #fff;
  background: var(--detail-blue);
}

.detail-button-primary:hover {
  background: #0054c9;
}

.detail-section {
  padding: 66px 0;
  border-top: 1px solid #edf2f8;
}

.detail-section h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.detail-section-line {
  margin: 10px 0 19px;
}

.detail-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(35px, 7vw, 105px);
  align-items: center;
}

.detail-section-copy > p:not(.detail-section-kicker) {
  margin: 0 0 8px;
}

.detail-description {
  color: #405674;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.detail-description img,
.detail-description video {
  max-width: 100%;
  height: auto;
}

.detail-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.detail-intro-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 22px;
}

.detail-intro-button {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

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

.detail-intro-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: 3px;
  object-fit: cover;
}

.detail-section-image {
  min-width: 0;
}

.detail-section-image img {
  display: block;
  width: 100%;
  max-height: 370px;
  object-fit: contain;
}

.detail-section-heading {
  text-align: left;
}

/* 产品参数：整幅参数图，随容器宽度自适应缩放 */
.detail-params-media {
  display: grid;
  margin-top: 20px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e5edf6;
  border-radius: 6px;
  background: #fff;
}

.detail-params-media img {
  display: block;
  width: 100%;
  max-width: 1390px;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 17px;
  margin-top: 20px;
}

.feature-grid article {
  min-width: 0;
  padding: 18px 8px;
  text-align: center;
}

.feature-grid article > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--detail-blue);
  background: #eaf3ff;
  font-size: 28px;
  font-weight: 900;
}

.feature-grid article > span img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.feature-grid h3 {
  margin: 0 0 7px;
  color: var(--detail-ink);
  font-size: 14px;
}

.feature-grid p {
  margin: 0;
  color: #7c8ba0;
  font-size: 11px;
  line-height: 1.7;
}

.detail-principle {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
  gap: 45px;
  align-items: center;
}

.principle-steps {
  display: flex;
  gap: 10px;
  align-items: center;
}

.principle-steps > div {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.principle-steps img {
  display: block;
  width: 100%;
  height: 135px;
  object-fit: contain;
}

.principle-steps b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-right: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--detail-blue);
  font-size: 11px;
}

.principle-steps span {
  color: #61738d;
  font-size: 11px;
}

.principle-steps i {
  flex: 0 0 auto;
  color: var(--detail-blue);
  font-size: 27px;
  font-style: normal;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 5px;
}

.detail-parameters table {
  width: 100%;
  min-width: 890px;
  border-collapse: collapse;
  color: #536782;
  font-size: 11px;
  text-align: center;
}

.detail-parameters th {
  padding: 10px 8px;
  color: #fff;
  background: var(--detail-blue);
  font-weight: 700;
  line-height: 1.45;
}

.detail-parameters td {
  padding: 9px 8px;
  border-bottom: 1px solid #fff;
  background: #f1f6fc;
}

.detail-parameters tr:nth-child(even) td {
  background: #e8f0fa;
}

.detail-showcase {
  background: #f8fbff;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}

.showcase-main {
  display: grid;
  min-height: 390px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e5edf6;
  border-radius: 6px;
  background: #fff;
}

.showcase-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: contain;
}

.showcase-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.showcase-thumb {
  width: 100%;
  aspect-ratio: 1.35;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #e5edf6;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.showcase-thumb:hover,
.showcase-thumb.is-active {
  border-color: var(--detail-blue);
  box-shadow: 0 5px 15px rgb(28 75 130 / 12%);
  transform: translateY(-2px);
}

.showcase-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-related {
  padding-bottom: 84px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5edf6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(28 75 130 / 6%);
  transition: transform .2s, box-shadow .2s;
}

.related-card:hover {
  box-shadow: 0 15px 32px rgb(28 75 130 / 13%);
  transform: translateY(-5px);
}

.related-photo {
  display: grid;
  height: 170px;
  place-items: center;
  overflow: hidden;
  background: #f5f9fd;
}

.related-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s;
}

.related-card:hover .related-photo img {
  transform: scale(1.04);
}

.related-card-copy {
  padding: 15px 16px 17px;
}

.related-card-copy h3 {
  margin: 0;
  color: var(--detail-ink);
  font-size: 16px;
}

.related-card-copy p {
  min-height: 22px;
  margin: 7px 0 12px;
  color: var(--detail-muted);
  font-size: 12px;
}

.related-card-copy span {
  color: var(--detail-blue);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .detail-product-hero,
  .detail-section {
    width: calc(100% - 48px);
  }

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

  .detail-main-visual {
    height: min(56vw, 480px);
  }

  .detail-product-copy {
    max-width: 720px;
  }

  .detail-introduction,
  .detail-principle {
    grid-template-columns: 1fr;
  }

  .detail-section-image {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .showcase-main,
  .showcase-main img {
    min-height: 320px;
  }

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

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

@media (max-width: 600px) {
  .detail-breadcrumb,
  .detail-product-hero,
  .detail-section {
    width: calc(100% - 32px);
  }

  .detail-breadcrumb {
    padding: 13px 0 5px;
    font-size: 11px;
  }

  .detail-product-hero {
    gap: 25px;
    padding-bottom: 30px;
  }

  .detail-main-visual {
    height: 270px;
  }

  .detail-thumbnails {
    gap: 7px;
  }

  .detail-thumb {
    width: 64px;
    height: 46px;
  }

  .detail-product-copy h1 {
    font-size: 30px;
  }

  .detail-summary,
  .detail-section-copy > p:not(.detail-section-kicker) {
    font-size: 13px;
    line-height: 1.9;
  }

  .detail-highlights {
    gap: 5px;
    margin: 20px 0;
  }

  .detail-highlights strong {
    font-size: 11px;
  }

  .detail-highlights small {
    font-size: 12px;
  }

  .detail-actions {
    gap: 8px;
  }

  .detail-button {
    min-width: 0;
    flex: 1;
    padding-inline: 8px;
    font-size: 12px;
  }

  .detail-section {
    padding: 43px 0;
  }

  .detail-intro-images {
    gap: 5px;
    margin-top: 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .feature-grid article {
    padding: 13px 4px;
  }

  .feature-grid article > span {
    width: 49px;
    height: 49px;
    font-size: 23px;
  }

  .showcase-main,
  .showcase-main img {
    min-height: 240px;
  }

  .showcase-thumbs {
    gap: 7px;
  }

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

  .related-photo {
    height: 120px;
  }

  .related-card-copy {
    padding: 11px 10px 13px;
  }

  .related-card-copy h3 {
    font-size: 13px;
  }

  .related-card-copy p,
  .related-card-copy span {
    font-size: 10px;
  }

  .principle-steps {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .principle-steps i {
    transform: rotate(90deg);
  }
}
