/* 3D 文件页：筛选区复用 site-search-results.css，本文件仅补充 iframe 与次要按钮 */

[v-cloak] {
  display: none !important;
}

.files-3d-page .files-3d-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.files-3d-page .files-3d-secondary-btn {
  height: 42px;
  min-width: 100px;
  padding: 0 16px;
  background: #fff;
  color: var(--ls-theme-green, #058951);
  border: 1px solid #ccd3dc;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.files-3d-page .files-3d-secondary-btn:hover:not(:disabled) {
  border-color: var(--ls-theme-green, #058951);
  background: rgba(5, 137, 81, 0.08);
}

.files-3d-page .files-3d-secondary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.files-3d-page .search-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 与产品详情 #cad-model-block 一致，避免嵌入区下方多出一大块空白 */
.files-3d-content {
  padding-bottom: 12px;
}

.files-3d-results-header .files-3d-powered {
  margin-left: 12px;
  font-size: 13px;
  color: #8896a6;
  font-weight: 400;
}

/* 容器高度仅由 iframe 撑开（勿再给 wrap 写死 height） */
.files-3d-embed-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-height: 640px;
  --site-pcom-mask-height: 43px;
}

/* 目录页：初始占位；实测高度由 PCOM 写入 iframe 行内样式 */
.files-3d-embed-wrap--catalog {
  min-height: 0;
}

.files-3d-embed-wrap--catalog .files-3d-embed {
  min-height: 0;
}

/* 详情页高度由 PCOM 回传 + JS 内联，勿写死 min-height（避免比内容矮一截留下大块空白） */
.files-3d-embed-wrap--detail {
  min-height: 0;
}

.files-3d-embed-wrap--detail .files-3d-embed {
  min-height: 0;
}

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

.files-3d-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.9);
  font-size: 14px;
  color: #6b7a8d;
  font-weight: 500;
}

.files-3d-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: files3d-spin 0.7s linear infinite;
}

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

/* 高度由 JS 内联；勿用 max-height/overflow 裁切 iframe */
.files-3d-embed {
  display: block;
  width: 100%;
  border: 0;
  overflow: hidden;
}

.files-3d-noscript {
  margin: 24px auto;
  padding: 16px 20px;
  max-width: 1200px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 14px;
}

.files-3d-noscript ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

@media (max-width: 992px) {
  .files-3d-page .files-3d-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .files-3d-page .filter-group.keyword-group {
    min-width: auto;
  }

  .files-3d-embed-wrap--catalog .files-3d-embed {
    min-height: 480px;
  }

  .files-3d-embed-wrap--detail .files-3d-embed {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .files-3d-results-header .files-3d-powered {
    display: block;
    margin: 6px 0 0;
  }
}
