/*
  SW-G1000 产品页专属样式
  仅补充三合一测量方式示意、配置区与必要响应式覆盖。
*/

.swg1000-page {
  --swg-red: var(--sa1000-red);
  overflow-x: clip;
}

.swg1000-hero-tags {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swg1000-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;
}

.swg1000-page .sa1000-product-visual {
  aspect-ratio: 3 / 4;
}

.swg1000-page .sa1000-product-visual.is-placeholder::before {
  content: "SW-G1000 产品图";
}

.swg1000-surface-map,
.swg1000-mode-matrix,
.swg1000-ica-flow,
.swg1000-analysis-preview,
.swg1000-mapping-flow,
.swg1000-workflow-strip {
  width: min(100%, 660px);
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 70% 28%, rgba(230,0,33,.12), transparent 28%),
    rgba(255,255,255,.018);
}

.swg1000-surface-map {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.swg1000-surface-map__surface {
  --active-start: 4%;
  --active-width: 31%;
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.025) 34%, rgba(255,255,255,.045) 67%, rgba(255,255,255,.018)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 24px),
    #070707;
}

.swg1000-surface-map__surface::before {
  content: "";
  position: absolute;
  left: var(--active-start);
  bottom: 0;
  width: var(--active-width);
  height: 100%;
  background:
    radial-gradient(circle at 50% 42%, rgba(230,0,33,.22), transparent 34%),
    linear-gradient(180deg, transparent, rgba(230,0,33,.08));
  transition: left .45s ease, width .45s ease;
}

.swg1000-surface-map__band {
  position: absolute;
  bottom: 56px;
  height: 58px;
  opacity: .76;
  background: rgba(255,255,255,.12);
}

.swg1000-surface-map__band--smooth {
  left: 5%;
  width: 28%;
  clip-path: polygon(0 58%, 100% 54%, 100% 72%, 0 76%);
}

.swg1000-surface-map__band--precision {
  left: 34%;
  width: 30%;
  clip-path: polygon(0 58%, 20% 42%, 44% 66%, 64% 50%, 82% 70%, 100% 48%, 100% 78%, 0 78%);
}

.swg1000-surface-map__band--rough {
  left: 64%;
  width: 31%;
  height: 96px;
  clip-path: polygon(0 70%, 10% 38%, 23% 76%, 34% 26%, 49% 84%, 62% 32%, 78% 92%, 92% 44%, 100% 68%, 100% 100%, 0 100%);
}

.swg1000-surface-map__trace {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 92px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
}

.swg1000-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
}

.swg1000-mode-tab {
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  color: rgba(255,255,255,.58);
  background: #070707;
  font-family: var(--sa1000-font);
  text-align: left;
  font-weight: var(--fw-medium);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.swg1000-mode-tab span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--fw-semibold);
}

.swg1000-mode-tab small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.42);
}

.swg1000-mode-tab.is-active,
.swg1000-mode-tab:hover {
  color: var(--swg-red);
  box-shadow: inset 0 0 0 1px rgba(230,0,33,.44);
}

.swg1000-mode-tab.is-active small,
.swg1000-mode-tab:hover small {
  color: rgba(255,255,255,.68);
}

.swg1000-surface-map[data-mode="confocal"] .swg1000-surface-map__surface {
  --active-start: 34%;
  --active-width: 30%;
}

.swg1000-surface-map[data-mode="focus"] .swg1000-surface-map__surface {
  --active-start: 64%;
  --active-width: 31%;
}

.swg1000-mode-matrix {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  background: rgba(255,255,255,.10);
}

.swg1000-mode-matrix .swg1000-mode-tab {
  min-height: 92px;
  display: grid;
  place-content: center;
  text-align: center;
}

.swg1000-mode-matrix .swg1000-mode-tab span {
  margin-top: 6px;
  color: inherit;
}

.swg1000-ica-flow {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.swg1000-ica-flow__curve {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
    rgba(255,255,255,.018);
}

.swg1000-ica-flow__curve::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 84px;
  transform: translateY(-50%);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(230,0,33,.58) 0 7%, rgba(230,0,33,.20) 8% 19%, transparent 20%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.10) 18px 20px, transparent 20px 38px);
  mask-image: radial-gradient(ellipse at center, #000 0 64%, transparent 68%);
}

.swg1000-ica-flow__curve span {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 14%;
  width: 2px;
  background: var(--swg-red);
  box-shadow: 0 0 22px rgba(230,0,33,.36);
}

.swg1000-ica-flow ol,
.swg1000-mapping-flow,
.swg1000-workflow-strip {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255,255,255,.10);
}

.swg1000-ica-flow li,
.swg1000-mapping-flow span,
.swg1000-workflow-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: rgba(255,255,255,.60);
  background: #070707;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  font-weight: var(--fw-light);
}

.swg1000-ica-flow li:nth-child(3) {
  color: var(--swg-red);
}

.swg1000-analysis-preview {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.swg1000-analysis-preview__map {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.swg1000-analysis-preview__map span {
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 44% 36%, rgba(230,0,33,.17), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 2px, transparent 2px 14px),
    rgba(255,255,255,.025);
}

.swg1000-analysis-preview__map span:nth-child(2) {
  clip-path: polygon(0 50%, 42% 50%, 42% 26%, 100% 26%, 100% 100%, 0 100%);
}

.swg1000-analysis-preview__map span:nth-child(3) {
  clip-path: polygon(0 78%, 15% 32%, 32% 70%, 48% 28%, 66% 76%, 84% 42%, 100% 72%, 100% 100%, 0 100%);
}

.swg1000-analysis-preview__labels {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
}

.swg1000-analysis-preview__labels span {
  min-height: 44px;
  display: grid;
  place-items: center;
  background: #070707;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--fw-medium);
}

.swg1000-mapping-flow,
.swg1000-workflow-strip {
  padding: 22px;
  grid-template-columns: repeat(5,minmax(0,1fr));
}

.swg1000-workflow-strip {
  grid-template-columns: repeat(6,minmax(0,1fr));
}

.swg1000-detail-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(230,0,33,.10), transparent 22%),
    linear-gradient(135deg, #f4f4f1, #dededb);
}

.swg1000-detail-visual::before {
  content: attr(data-label);
  width: min(78%, 430px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.46);
  background:
    radial-gradient(circle at var(--visual-x, 48%) var(--visual-y, 42%), rgba(230,0,33,.13), transparent 24%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.045) 0 2px, transparent 2px 11px),
    rgba(255,255,255,.52);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  font-weight: var(--fw-light);
}

.swg1000-detail-visual::after {
  content: "";
  position: absolute;
  width: min(50%, 300px);
  height: 2px;
  background: rgba(230,0,33,.62);
  transform: translateY(82px);
  opacity: .72;
}

.swg1000-detail-visual--step::before,
.swg1000-detail-visual--profile::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.055) 0 46%, rgba(230,0,33,.10) 46% 54%, rgba(0,0,0,.12) 54%),
    rgba(255,255,255,.52);
}

.swg1000-detail-visual--grid::before,
.swg1000-detail-visual--overview::before {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 42px),
    rgba(255,255,255,.52);
}

.swg1000-config-layout {
  display: grid;
  grid-template-columns: minmax(0,.42fr) minmax(0,.58fr);
  gap: clamp(56px,6vw,96px);
  align-items: start;
}

.swg1000-config-stack {
  display: grid;
  gap: 28px;
}

.swg1000-config-item {
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e5e5;
}

.swg1000-config-item:last-child {
  border-bottom: 0;
}

.swg1000-config-item h3 {
  margin: 10px 0 14px;
  color: rgba(0,0,0,.78);
  font-size: clamp(24px,2.4vw,34px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: var(--fw-semibold);
}

.swg1000-config-item p {
  margin: 0;
  color: rgba(0,0,0,.50);
  font-size: 16px;
  line-height: 1.9;
  font-weight: var(--fw-light);
  letter-spacing: -0.005em;
}

.swg1000-config-item strong {
  display: block;
  margin-top: 18px;
  color: rgba(0,0,0,.68);
  font-size: 15px;
  line-height: 1.7;
  font-weight: var(--fw-semibold);
}

.swg1000-page .swg1000-specs-table {
  min-width: 0;
}

.swg1000-page .swg1000-specs-table thead th:first-child,
.swg1000-page .swg1000-specs-table tbody th {
  width: 30%;
}

@media (max-width: 860px) {
  .swg1000-config-layout {
    grid-template-columns: 1fr;
  }

  .swg1000-mode-tabs,
  .swg1000-mode-matrix,
  .swg1000-analysis-preview__map,
  .swg1000-analysis-preview__labels,
  .swg1000-ica-flow ol,
  .swg1000-mapping-flow,
  .swg1000-workflow-strip {
    grid-template-columns: 1fr;
  }

  .swg1000-mapping-flow,
  .swg1000-workflow-strip {
    padding: 18px;
  }

  .swg1000-surface-map__surface {
    min-height: 190px;
  }
}

@media (max-width: 600px) {
  .swg1000-page .sa1000-hero-product-name {
    font-size: clamp(42px, 11.5vw, 50px);
    line-height: 1.12;
    max-width: 7em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .swg1000-page .sa1000-hero__desc,
  .swg1000-page .sa1000-capability-section__desc,
  .swg1000-page .sa1000-detail__desc,
  .swg1000-page .sa1000-light-copy,
  .swg1000-config-item p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .swg1000-surface-map,
  .swg1000-mode-matrix,
  .swg1000-ica-flow,
  .swg1000-analysis-preview,
  .swg1000-mapping-flow,
  .swg1000-workflow-strip {
    margin-top: 28px;
  }

  .swg1000-page .swg1000-specs-table th,
  .swg1000-page .swg1000-specs-table td {
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .swg1000-page .swg1000-specs-table thead th:first-child,
  .swg1000-page .swg1000-specs-table tbody th {
    width: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swg1000-surface-map__surface::before,
  .swg1000-mode-tab {
    transition: none !important;
  }
}
