/*
  SDM-1000 产品页专属样式
  仅补充超景深显微系统的示意图、型号排布与少量必要覆盖。
*/

.sdm1000-page {
  --sdm-red: var(--sa1000-red);
  --sdm1000-capability-media-width: 720px;
  overflow-x: clip;
}

.sdm1000-hero-tags {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sdm1000-hero-tags span {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: 13px;
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: .03em;
}

.sdm1000-page .sa1000-product-visual {
  aspect-ratio: 4 / 5;
}

.sdm1000-page .sa1000-product-visual.is-placeholder::before {
  content: "请替换产品透明 PNG\A ../../assets/images/products/sdm-1000/sdm-product-main.webp";
}

.sdm1000-depth-flow {
  width: min(100%, var(--sdm1000-capability-media-width));
  margin-top: 34px;
  display: grid;
  gap: 24px;
}

.sdm1000-depth-flow--image {
  width: 100%;
  max-width: var(--sdm1000-capability-media-width);
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  gap: 0;
}

.sdm1000-depth-flow--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sdm1000-focus-stack {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 72% 30%, rgba(230,0,33,.10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
}

.sdm1000-focus-plane {
  position: absolute;
  left: 16%;
  right: 16%;
  height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.18) 18% 36%, transparent 36% 100%),
    rgba(255,255,255,.025);
  transform: skewY(-8deg);
  opacity: .55;
  animation: sdmFocusPlane 6.4s ease-in-out infinite;
}

.sdm1000-focus-plane:nth-child(1) { top: 34px; animation-delay: 0s; }
.sdm1000-focus-plane:nth-child(2) { top: 72px; animation-delay: .35s; background-position: 30px 0; }
.sdm1000-focus-plane:nth-child(3) { top: 110px; animation-delay: .7s; background-position: 80px 0; }
.sdm1000-focus-plane:nth-child(4) { top: 148px; animation-delay: 1.05s; background-position: 128px 0; }
.sdm1000-focus-plane:nth-child(5) { top: 186px; animation-delay: 1.4s; background-position: 170px 0; }

.sdm1000-focus-result {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 42%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(230,0,33,.56);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 2px, transparent 2px 10px);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.sdm1000-flow-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.12);
}

.sdm1000-flow-steps span {
  min-height: 76px;
  padding: 18px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.70);
  background: #070707;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  font-weight: var(--fw-light);
}

.sdm1000-wave-focus,
.sdm1000-lighting-demo,
.sdm1000-stitching-demo {
  width: min(100%, var(--sdm1000-capability-media-width));
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 72% 30%, rgba(230,0,33,.10), transparent 28%),
    rgba(255,255,255,.018);
}

.sdm1000-wave-focus {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.sdm1000-wave-focus::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 52px;
  height: 70px;
  border-bottom: 2px solid rgba(255,255,255,.44);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.sdm1000-wave-focus::after {
  content: "";
  position: absolute;
  left: 13%;
  bottom: 94px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sdm-red);
  box-shadow: 0 0 0 8px rgba(230,0,33,.12);
  animation: sdmFocusDot 5.8s ease-in-out infinite;
}

.sdm1000-lighting-pair {
  width: min(100%, var(--sdm1000-capability-media-width));
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(16px,2vw,24px);
  align-items: stretch;
}

.sdm1000-lighting-demo {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
}

.sdm1000-lighting-pair .sdm1000-lighting-demo {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 72% 30%, rgba(230,0,33,.10), transparent 28%),
    rgba(255,255,255,.018);
}

.sdm1000-lighting-image {
  min-width: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.sdm1000-lighting-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sdm1000-lighting-demo__sample {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--light-x, 30%) var(--light-y, 30%), rgba(255,255,255,.84), rgba(255,255,255,.1) 40%, rgba(0,0,0,.38) 72%),
    #2b2b2b;
  box-shadow: 24px 28px 46px rgba(0,0,0,.46);
  transition: background .2s ease, box-shadow .2s ease;
}

.sdm1000-lighting-demo__point {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sdm1000-lighting-demo__point:nth-of-type(1) { left: calc(50% - 76px); top: calc(50% - 76px); }
.sdm1000-lighting-demo__point:nth-of-type(2) { left: calc(50% + 76px); top: calc(50% - 76px); }
.sdm1000-lighting-demo__point:nth-of-type(3) { left: calc(50% + 76px); top: calc(50% + 76px); }
.sdm1000-lighting-demo__point:nth-of-type(4) { left: calc(50% - 76px); top: calc(50% + 76px); }

.sdm1000-lighting-demo__point.is-active {
  background: var(--sdm-red);
  box-shadow: 0 0 0 10px rgba(230,0,33,.18), 0 0 26px rgba(230,0,33,.28);
  transform: scale(1.14);
  animation: sdmLightingPulse 1.1s ease-out infinite;
}

@keyframes sdmLightingPulse {
  0% {
    box-shadow: 0 0 0 6px rgba(230,0,33,.24), 0 0 20px rgba(230,0,33,.30);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(230,0,33,0), 0 0 30px rgba(230,0,33,.18);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(230,0,33,0), 0 0 20px rgba(230,0,33,.22);
  }
}

.sdm1000-stitching-demo {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
}

.sdm1000-stitching-demo--image {
  padding: 0;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.sdm1000-stitching-demo--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sdm1000-stitching-demo span {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.045) 12px 13px);
  opacity: .64;
  animation: sdmTileReveal 6s ease-in-out infinite;
}

.sdm1000-stitching-demo span:nth-child(8) {
  position: relative;
}

.sdm1000-stitching-demo span:nth-child(8)::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 2px solid var(--sdm-red);
}

.sdm1000-report-switcher {
  width: min(100%, var(--sdm1000-capability-media-width));
  min-height: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(140px,160px);
  gap: clamp(16px,2vw,24px);
  align-items: center;
  background: transparent;
  overflow: visible;
}

.sdm1000-report-gallery {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: clamp(252px,26vw,324px);
  overflow: hidden;
  background: #050505;
}

.sdm1000-report-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.sdm1000-report-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sdm1000-report-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sdm1000-report-tabs {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: clamp(34px,4.4vw,54px);
  background: transparent;
}

.sdm1000-report-tabs .sa1000-detail-item {
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.64);
  border-top: 0;
}

.sdm1000-report-tabs .sa1000-detail-item:hover,
.sdm1000-report-tabs .sa1000-detail-item.is-active,
.sdm1000-report-tabs .sa1000-detail-item[aria-selected="true"] {
  color: var(--sdm-red);
}

.sdm1000-report-tabs .feature-tab__label {
  font-size: clamp(17px,1.35vw,20px);
  line-height: 1.35;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.sdm1000-report-image {
  width: min(100%, var(--sdm1000-capability-media-width));
  margin: 28px 0 0;
  overflow: hidden;
  background: transparent;
}

.sdm1000-report-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sdm1000-detail-visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  align-items: flex-start;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(230,0,33,.13), transparent 24%),
    linear-gradient(135deg, #f1f1ef, #d9d9d6);
}

.sdm1000-page .sdm1000-detail__title--split {
  max-width: 680px;
  white-space: normal;
}

.sdm1000-page .sdm1000-detail__title--split span {
  display: inline;
}

.sdm1000-detail-gallery__viewport--depth .sa1000-detail-slide,
.sdm1000-detail-gallery__viewport--light .sa1000-detail-slide,
.sdm1000-detail-gallery__viewport--nav .sa1000-detail-slide,
.sdm1000-detail-gallery__viewport--measure .sa1000-detail-slide {
  padding: 0;
}

.sdm1000-detail-visual--image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.sdm1000-detail-visual.sdm1000-detail-visual--image::before {
  display: none;
}

.sdm1000-detail-visual--image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  transform: none;
}

.sdm1000-detail-visual::before {
  content: attr(data-label);
  width: min(78%, 420px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.46);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.045) 0 2px, transparent 2px 11px),
    rgba(255,255,255,.48);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  font-weight: var(--fw-light);
}

.sdm1000-model-lineup {
  display: grid;
  gap: 0;
}

.sdm1000-model-row {
  display: grid;
  grid-template-columns: minmax(0,.44fr) minmax(0,.56fr);
  align-items: start;
  column-gap: clamp(56px,6vw,96px);
}

.sdm1000-model-row + .sdm1000-model-row {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}

.sdm1000-model-row--upgrade {
  position: relative;
}

.sdm1000-model-row + .sdm1000-model-row > .sa1000-model-lineup__visual,
.sdm1000-model-row + .sdm1000-model-row > .sa1000-model-option {
  padding-top: 36px;
  border-top: 1px solid #e5e5e5;
}

.sdm1000-model-row .sa1000-model-lineup__visual {
  max-width: none;
}

.sdm1000-model-row .sa1000-model-lineup__media {
  padding: clamp(16px,2.8vw,34px);
}

.sdm1000-page .sa1000-model-option {
  scroll-margin-top: calc(var(--sa1000-header-offset) + var(--secondary-nav-height, 52px) + 36px);
}

.sdm1000-model-row .sa1000-model-option--upgrade {
  padding-top: 36px;
  border-top: 1px solid #e5e5e5;
}

.sdm1000-model-row .sa1000-model-option--upgrade::before {
  display: block;
}

.sdm1000-page .sa1000-specs-table th[data-model="sdm-1200"] {
  box-shadow: inset 0 -2px 0 rgba(230,0,18,.8);
}

.sdm1000-page .sa1000-specs-table td[data-emphasis] {
  color: var(--sdm-red);
  font-weight: var(--fw-medium);
}

@keyframes sdmFocusPlane {
  0%, 100% { opacity: .38; transform: translateY(0) skewY(-8deg); }
  46%, 62% { opacity: .78; transform: translateY(-4px) skewY(-8deg); }
}

@keyframes sdmFocusDot {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(320px, -32px); }
}

@keyframes sdmTileReveal {
  0%, 18% { opacity: .28; }
  48%, 100% { opacity: .72; }
}

@media (max-width: 860px) {
  .sdm1000-flow-steps {
    grid-template-columns: 1fr;
  }

  .sdm1000-stitching-demo {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .sdm1000-model-lineup {
    gap: 28px;
  }

  .sdm1000-model-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sdm1000-model-row + .sdm1000-model-row {
    margin-top: 16px;
    padding-top: 30px;
  }

  .sdm1000-model-row + .sdm1000-model-row > .sa1000-model-lineup__visual,
  .sdm1000-model-row + .sdm1000-model-row > .sa1000-model-option {
    padding-top: 0;
    border-top: 0;
  }

  .sdm1000-model-row .sa1000-model-option--upgrade::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .sdm1000-page .sa1000-hero-product-name {
    font-size: clamp(42px, 12.4vw, 50px);
    line-height: 1.12;
    max-width: 7.5em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .sdm1000-page .sa1000-hero__desc,
  .sdm1000-page .sa1000-capability-section__desc,
  .sdm1000-page .sa1000-detail__desc,
  .sdm1000-page .sa1000-light-copy,
  .sdm1000-page .sa1000-model-option__copy p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .sdm1000-focus-stack,
  .sdm1000-lighting-demo {
    min-height: 230px;
    height: 230px;
  }

  .sdm1000-lighting-pair {
    grid-template-columns: 1fr;
  }

  .sdm1000-lighting-pair .sdm1000-lighting-demo,
  .sdm1000-lighting-image {
    min-height: 0;
    height: auto;
  }

  .sdm1000-report-switcher {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .sdm1000-report-gallery {
    height: auto;
    min-height: 0;
    aspect-ratio: 800 / 575;
  }

  .sdm1000-report-tabs {
    min-height: 0;
    height: auto;
    padding: 4px 18px 8px;
    align-self: auto;
    gap: 18px;
  }

  .sdm1000-report-tabs .sa1000-detail-item {
    min-height: 44px;
    padding: 8px 0 12px;
  }

  .sdm1000-focus-plane {
    left: 8%;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdm1000-focus-plane,
  .sdm1000-wave-focus::after,
  .sdm1000-report-slide,
  .sdm1000-lighting-demo__point.is-active,
  .sdm1000-stitching-demo span {
    animation: none !important;
    transition: none !important;
  }
}
