/* PARTcommunity iframe 嵌入公共样式（产品详情、3D 文件页等） */

.site-pcom-embed-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.site-pcom-embed-wrap--card {
  border: 1px solid #edf0f5;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-pcom-embed {
  display: block;
  width: 100%;
  border: 0;
  min-height: 0;
  overflow: hidden;
}

/* 遮罩高度：默认 88px；页面加 .site-pcom-embed-wrap--mask-43 改为 43px（与后端 iframeMaskPad 一致） */
.site-pcom-embed-wrap--mask-43 {
  --site-pcom-mask-height: 43px;
}

.site-pcom-embed-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--site-pcom-mask-height, 88px);
  background: #fff;
  z-index: 20;
  pointer-events: auto;
  border-radius: 0 0 11px 11px;
}

.site-pcom-embed-wrap--card .site-pcom-embed-mask {
  border-radius: 0 0 11px 11px;
}

.site-pcom-embed-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  color: #6b7a8d;
  font-weight: 500;
}

.site-pcom-embed-loading::before {
  content: "";
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border: 3px solid #e8ecf1;
  border-top-color: var(--ls-theme-green, #058951);
  border-radius: 50%;
  animation: site-pcom-spin 0.7s linear infinite;
}

@keyframes site-pcom-spin {
  to {
    transform: rotate(360deg);
  }
}
