:root {
  --product-blue: #bf2323;
  --product-blue-dark: #74191a;
  --product-ink: #172132;
  --product-muted: #647084;
  --product-line: #e5eaf0;
  --product-surface: #f4f7fa;
  --product-white: #fff;
  --product-layer-modal: 10020;
}

html {
  scroll-behavior: smooth;
}

.product-detail {
  color: var(--product-ink);
  background: var(--product-white);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
  width: min(1320px, 92%);
  min-height: 660px;
  margin: 0 auto;
  padding: 70px 0 82px;
  box-sizing: border-box;
}

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

.product-image-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 34px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 46%, rgba(191, 35, 35, 0.06), transparent 52%),
    linear-gradient(145deg, #f9fbfc 0%, #eef3f7 100%);
  border: 0;
  border-radius: 4px 30px 4px 30px;
  box-sizing: border-box;
}

.product-image-stage::before {
  display: none;
}

.product-image-link {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.product-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.product-media[hidden] {
  display: none;
}

.product-main-image {
  display: block;
  width: auto;
  max-width: 92%;
  max-height: 440px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.product-zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 120px;
  height: 120px;
  background: rgba(191, 35, 35, 0.12);
  box-shadow: inset 0 0 0 1px rgba(191, 35, 35, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-image-link.is-zooming .product-zoom-lens {
  opacity: 1;
}

.product-zoom-preview {
  position: absolute;
  top: 0;
  left: calc(100% + clamp(18px, 3vw, 48px));
  z-index: 20;
  width: min(480px, 42vw);
  height: 100%;
  min-height: 500px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 24px 60px rgba(6, 46, 99, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.24s ease;
}

.product-image-stage.is-zooming .product-zoom-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.product-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #506078;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(191, 35, 35, 0.1);
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.18s ease;
}

.product-zoom-hint svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.product-image-link.is-zooming .product-zoom-hint {
  opacity: 0;
}

.product-video-panel {
  position: relative;
  z-index: 1;
}

.product-main-video {
  display: block;
  width: 100%;
  max-height: 440px;
  background: #071525;
  border-radius: 3px 18px 3px 18px;
}

.product-thumbnails {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 68px;
  padding: 6px;
  background: #fff;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-thumb.is-active {
  box-shadow: inset 0 -3px 0 var(--product-blue);
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-thumb:hover {
  box-shadow: inset 0 -3px 0 rgba(191, 35, 35, 0.32);
  transform: translateY(-2px);
}

.product-thumb:focus-visible {
  outline: 3px solid rgba(191, 35, 35, 0.28);
  outline-offset: 3px;
}

.product-video-thumb {
  overflow: hidden;
  background: #071525;
}

.product-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  pointer-events: none;
}

.product-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.product-video-play::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--product-blue);
}

.product-image-count {
  margin-left: auto;
  color: #9aa4b3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.product-image-count strong {
  color: var(--product-blue);
  font-size: 18px;
  font-weight: 600;
}

.product-summary {
  align-self: center;
}

.product-kicker,
.product-section-heading > span {
  display: block;
  margin-bottom: 18px;
  color: var(--product-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.product-summary h1 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.product-description {
  max-width: 42em;
  margin: 28px 0 0;
  color: var(--product-muted);
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
  text-wrap: pretty;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
}

.product-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-action-primary {
  color: #fff;
  background: var(--product-blue);
  box-shadow: 0 12px 24px rgba(191, 35, 35, 0.16);
}

.product-action-primary:hover,
.product-action-primary:focus-visible {
  color: #fff;
  background: var(--product-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(191, 35, 35, 0.22);
}

.product-action-phone {
  color: var(--product-blue-dark);
  background: #eef4fb;
  border-color: #dce7f4;
  font-variant-numeric: tabular-nums;
}

.product-action-phone:hover,
.product-action-phone:focus-visible {
  color: var(--product-blue);
  background: #e5eef9;
  border-color: #c9daee;
  transform: translateY(-2px);
}

.product-action:active {
  transform: translateY(0) scale(0.985);
}

.product-action:focus-visible,
.product-tabs a:focus-visible,
.product-tabs button:focus-visible,
.related-product-card:focus-visible,
.product-page-links a:focus-visible,
.quote-modal button:focus-visible,
.quote-modal input:focus-visible,
.quote-modal textarea:focus-visible {
  outline: 3px solid rgba(191, 35, 35, 0.28);
  outline-offset: 3px;
}

.product-service-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 24px;
  color: #7b8696;
  font-size: 13px;
  border-top: 1px solid var(--product-line);
}

.product-service-note span {
  position: relative;
  padding-left: 16px;
}

.product-service-note span::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--product-blue);
  border-radius: 50%;
}

.product-tabs {
  position: sticky;
  top: 102px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
  backdrop-filter: blur(12px);
}

.product-tabs-inner {
  display: flex;
  justify-content: center;
  width: min(1320px, 92%);
  margin: 0 auto;
}

.product-tabs a,
.product-tabs button {
  position: relative;
  min-width: 150px;
  padding: 23px 24px 21px;
  color: #5d6878;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-tabs a::after,
.product-tabs button::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: -1px;
  left: 25%;
  height: 3px;
  background: var(--product-blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.product-tabs a:hover,
.product-tabs a.is-active,
.product-tabs button:hover {
  color: var(--product-blue);
}

.product-tabs a:hover::after,
.product-tabs a.is-active::after,
.product-tabs button:hover::after {
  transform: scaleX(1);
}

.product-content,
.related-products {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 96px 0 110px;
  scroll-margin-top: 180px;
}

.product-content {
  padding-top: 42px;
}

.product-section-heading {
  margin-bottom: 50px;
  text-align: center;
}

.product-section-heading > span {
  margin-bottom: 12px;
}

.product-section-heading h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.product-section-heading h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--product-blue);
}

.product-richtext {
  color: #465365;
  font-size: 16px;
  line-height: 1.95;
}

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

.product-richtext img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 28px auto;
}

.product-richtext table {
  width: 100% !important;
  margin: 28px 0;
  border-collapse: collapse;
  background: #fff;
}

.product-richtext th,
.product-richtext td {
  padding: 15px 18px;
  border: 1px solid var(--product-line);
  text-align: left;
}

.product-richtext th {
  color: var(--product-ink);
  background: var(--product-surface);
  font-weight: 600;
}

.product-page-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1120px, 92%);
  margin: 0 auto 110px;
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
}

.product-page-links a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 25px 28px;
  color: var(--product-ink);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.product-page-links a:last-child {
  text-align: right;
}

.product-page-links a span {
  color: #9aa4b3;
  font-size: 12px;
}

.product-page-links a strong {
  font-size: 15px;
  font-weight: 500;
}

.product-page-links a:hover {
  color: var(--product-blue);
  background: var(--product-surface);
}

.product-page-links a.back {
  justify-content: center;
  min-width: 170px;
  text-align: center;
  border-right: 1px solid var(--product-line);
  border-left: 1px solid var(--product-line);
}

.related-products {
  width: min(1320px, 92%);
  padding-top: 0;
}

.related-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.related-product-card {
  display: block;
  color: var(--product-ink);
}

.related-product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12 / 1;
  padding: 22px;
  overflow: hidden;
  background: var(--product-surface);
  border-radius: 3px 18px 3px 18px;
  box-sizing: border-box;
}

.related-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.related-product-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 2px 0;
}

.related-product-info strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product-info em {
  flex: 0 0 auto;
  color: #8a95a4;
  font-size: 12px;
  font-style: normal;
  line-height: 2;
  transition: color 0.2s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.055);
}

.related-product-card:hover .related-product-info em {
  color: var(--product-blue);
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: var(--product-layer-modal);
  display: grid;
  place-items: center;
  padding: 32px;
  box-sizing: border-box;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 36, 0.72);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.24s ease;
}

.quote-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(880px, calc(100dvh - 64px));
  padding: 54px 62px 58px;
  overflow-y: auto;
  color: var(--product-ink);
  background: #fff;
  border-radius: 3px 24px 3px 24px;
  box-shadow: 0 30px 80px rgba(3, 30, 66, 0.28);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1);
  box-sizing: border-box;
}

.quote-modal.is-open .quote-modal-backdrop,
.quote-modal.is-open .quote-modal-dialog {
  opacity: 1;
}

.quote-modal.is-open .quote-modal-dialog {
  transform: translateY(0) scale(1);
}

body.quote-modal-open {
  overflow: hidden;
}

.quote-modal-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.quote-modal-close::before,
.quote-modal-close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 17px;
  height: 1px;
  background: #586474;
}

.quote-modal-close::before {
  transform: rotate(45deg);
}

.quote-modal-close::after {
  transform: rotate(-45deg);
}

.quote-modal-close:hover {
  background: var(--product-surface);
  border-color: #c4ceda;
  transform: rotate(4deg);
}

.quote-modal-header {
  padding-right: 54px;
  margin-bottom: 32px;
}

.quote-modal-header > span {
  display: block;
  margin-bottom: 10px;
  color: var(--product-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.quote-modal-header h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.quote-modal-header p {
  margin: 10px 0 0;
  color: #7a8695;
  font-size: 14px;
  line-height: 1.7;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-field {
  display: grid;
  gap: 8px;
}

.quote-field > span:first-child {
  color: #526072;
  font-size: 13px;
  font-weight: 500;
}

.quote-field em {
  color: #c63a31;
  font-style: normal;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  color: var(--product-ink);
  background: #f5f7f9;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.quote-field input {
  height: 52px;
  padding: 0 16px;
}

.quote-field textarea {
  min-height: 132px;
  padding: 15px 16px;
  line-height: 1.7;
  resize: vertical;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #a0a9b5;
}

.quote-field input:hover,
.quote-field textarea:hover {
  background: #f1f4f7;
}

.quote-field input:focus,
.quote-field textarea:focus {
  background: #fff;
  border-color: rgba(191, 35, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(191, 35, 35, 0.08);
  outline: none;
}

.quote-code-control {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
}

.quote-code-control img {
  width: 150px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--product-line);
  cursor: pointer;
  box-sizing: border-box;
}

.quote-form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

.quote-submit {
  min-width: 210px;
  height: 54px;
  padding: 0 28px;
  color: #fff;
  background: var(--product-blue);
  border: 0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(191, 35, 35, 0.16);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-submit:hover {
  background: var(--product-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(191, 35, 35, 0.22);
}

.quote-submit:active {
  transform: translateY(0) scale(0.985);
}

.quote-form-footer p {
  margin: 0;
  color: #8993a1;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 44px;
    min-height: auto;
    padding: 56px 0 70px;
  }

  .product-image-stage {
    min-height: 430px;
  }

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

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

}

@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(100% - 32px, 620px);
    padding: 30px 0 56px;
  }

  .product-image-stage {
    min-height: 360px;
    padding: 24px;
    border-radius: 3px 20px 3px 20px;
  }

  .product-main-image {
    max-height: 320px;
  }

  .product-zoom-lens,
  .product-zoom-preview,
  .product-zoom-hint {
    display: none;
  }

  .product-image-link {
    cursor: default;
  }

  .product-main-video {
    max-height: 320px;
  }

  .product-summary h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .product-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .product-actions {
    margin-top: 30px;
  }

  .product-tabs {
    top: 58px;
    overflow-x: auto;
  }

  .product-tabs-inner {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .product-tabs a,
  .product-tabs button {
    min-width: 112px;
    padding: 18px 14px 16px;
    font-size: 14px;
  }

  .product-content,
  .related-products {
    width: min(100% - 32px, 620px);
    padding: 70px 0 80px;
    scroll-margin-top: 130px;
  }

  .product-content {
    padding-top: 28px;
  }

  .product-section-heading {
    margin-bottom: 36px;
  }

  .product-richtext {
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.85;
  }

  .product-page-links {
    grid-template-columns: 1fr 1fr;
    width: min(100% - 32px, 620px);
    margin-bottom: 80px;
  }

  .product-page-links a {
    padding: 20px 16px;
  }

  .product-page-links a.back {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--product-line);
    border-right: 0;
    border-left: 0;
  }

  .related-products {
    width: min(100% - 32px, 620px);
    padding-top: 0;
  }

  .quote-modal {
    align-items: end;
    padding: 12px;
  }

  .quote-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 44px 22px 28px;
    border-radius: 3px 20px 3px 20px;
  }

  .quote-modal-close {
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .quote-modal-close::before,
  .quote-modal-close::after {
    top: 18px;
    left: 10px;
  }

  .quote-modal-header {
    padding-right: 42px;
    margin-bottom: 24px;
  }

  .quote-modal-header h2 {
    font-size: 26px;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .quote-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-image-stage {
    min-height: 300px;
  }

  .product-service-note {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .quote-code-control {
    grid-template-columns: 1fr 120px;
  }

  .quote-code-control img {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-detail * {
    transition-duration: 0.01ms !important;
  }
}
