/*
  SDM-1000 产品页专属样式
  仅补充超景深显微系统的示意图、型号排布与少量必要覆盖。
*/

.sdm1000-page {
  --sdm-red: var(--sa1000-red);
  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.png";
}

.sdm1000-depth-flow {
  width: min(100%, 620px);
  margin-top: 34px;
  display: grid;
  gap: 24px;
}

.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,
.sdm1000-report-flow {
  width: min(100%, 620px);
  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-demo {
  position: relative;
  height: 260px;
  display: grid;
  place-items: 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,.74), rgba(255,255,255,.12) 42%, rgba(0,0,0,.32) 70%),
    #2b2b2b;
  box-shadow: 20px 24px 42px rgba(0,0,0,.38);
  transition: background .35s ease, box-shadow .35s 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);
}

.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 8px rgba(230,0,33,.14);
}

.sdm1000-stitching-demo {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
}

.sdm1000-stitching-demo span {
  aspect-ratio: 4 / 3;
  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-flow {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
}

.sdm1000-report-flow span {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--fw-light);
}

.sdm1000-detail-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(230,0,33,.13), transparent 24%),
    linear-gradient(135deg, #f1f1ef, #d9d9d6);
}

.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;
  grid-template-columns: minmax(0,.46fr) minmax(0,.54fr);
  gap: clamp(56px,6vw,96px);
  align-items: start;
}

.sdm1000-model-stack {
  display: grid;
  gap: 36px;
}

.sdm1000-page .sa1000-model-option {
  scroll-margin-top: calc(var(--sa1000-header-offset) + var(--sa1000-subnav-height) + 36px);
}

.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,
  .sdm1000-report-flow {
    grid-template-columns: 1fr;
  }

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

  .sdm1000-model-lineup {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@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-focus-plane {
    left: 8%;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdm1000-focus-plane,
  .sdm1000-wave-focus::after,
  .sdm1000-stitching-demo span {
    animation: none !important;
  }
}
