
/* ===================================================================
   乐拓智造 · 工业标准零件库弹窗样式 (Clean Industrial Minimalism)
   =================================================================== */

#modal-shape-lib-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100005;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-shape-lib-box {
  background: #ffffff;
  width: 96vw;
  max-width: 1440px;
  height: 90vh;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.shplib-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shplib-card:hover {
  border-color: #1890ff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.18) !important;
}

.shplib-card.active {
  border-color: #1890ff !important;
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.25) !important;
  background: #e6f7ff !important;
}

.shplib-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.15s;
  background: transparent;
  color: #334155;
  text-align: left;
}

.shplib-cat-btn:hover {
  background: #f1f5f9;
  color: #1890ff;
}

.shplib-cat-btn.active {
  background: #e6f7ff !important;
  color: #1890ff !important;
  font-weight: 700 !important;
  border-left: 3px solid #1890ff !important;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
