/* 第一批体验优化：标题截断、规格折叠、WhatsApp 悬浮、缩略图 */
.product-info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-card { display: flex; flex-direction: column; }
.product-card .product-info { flex: 1; }
.product-card .product-meta { margin-top: auto; }

.spec-more { margin-top: 6px; }
.spec-more summary {
  cursor: pointer;
  font-size: 10px;
  color: #476448;
  padding: 8px 0;
  font-weight: 600;
  list-style: none;
}
.spec-more summary::-webkit-details-marker { display: none; }
.spec-more summary::after { content: " ›"; }
.spec-more[open] summary::after { content: " ⌃"; }
.spec-more .spec-table { margin-top: 4px; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 17px;
  border-radius: 99px;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px #1f8f4b55;
}
.wa-float:hover { background: #1ebe5b; }
.wa-float::before { content: "✆"; font-size: 14px; }
body:has(.modal.open) .wa-float { display: none; }
@media (max-width: 620px) {
  .wa-float { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 10px; }
}

/* 详情弹窗里没有图片时的占位更紧凑 */
.gallery-empty { font-size: 11px; color: #8b9087; }

/* 后台批量导入 */
.batch-import { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5e5dd; }
.batch-import textarea {
  width: 100%;
  min-height: 108px;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid #dcdcd2;
  border-radius: 4px;
  background: #fff;
  font: 11px/1.6 ui-monospace, Menlo, Consolas, monospace;
  resize: vertical;
}
.batch-import #batch-category {
  width: 100%;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid #dcdcd2;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 11px;
}
.batch-status { margin-top: 12px; font-size: 11px; line-height: 1.7; }
.batch-status .row { display: flex; gap: 7px; padding: 2px 0; word-break: break-all; }
.batch-status .ok { color: #3f7a46; }
.batch-status .err { color: #b4432f; }
.batch-status .run { color: #8a8d83; }

/* 后台关键词搜索 */
.search-row { display: flex; gap: 8px; margin: 6px 0 10px; }
.search-row input {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #dcdcd2;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 11px;
}
.search-row #search-limit { flex: 0 0 72px; }
.search-results {
  max-height: 270px;
  overflow: auto;
  border: 1px solid #e5e5dd;
  border-radius: 4px;
  background: #fff;
}
.search-results:empty { display: none; }
.search-item {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f1ea;
  cursor: pointer;
  font-size: 11px;
}
.search-item:last-child { border-bottom: 0; }
.search-item img {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
}
.search-item b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.35;
}
.search-item small { color: #8a8d83; }
#search-import { margin-top: 10px; }

.file-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 4px 0 2px;
}
.collect-alt { margin-top: 12px; font-size: 11px; color: #7a8075; }
.collect-alt summary { cursor: pointer; }
.collect-alt .import-help { margin: 6px 0; }
