/* ============================================================
   闪得 搜索框「分类联想」下拉 - 作用域样式
   句柄: shande-search-suggest
   作用域：.shande-hero-widget / .shande-ppt-hero 内的 .search-box。
   联想面板由 JS 动态插入到 .search-box 内，绝对定位于搜索框下方。
   ============================================================ */

/* 搜索框需相对定位，作为联想面板的定位基准。 */
.shande-hero-widget .search-box,
.shande-ppt-hero .search-box {
  position: relative;
}

/* 联想面板 */
.shande-hero-widget .shande-suggest-panel,
.shande-ppt-hero .shande-suggest-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

/* 分组标题 */
.shande-hero-widget .shande-suggest-head,
.shande-ppt-hero .shande-suggest-head {
  padding: 8px 16px 4px;
  font-size: 12px;
  color: #999999;
  font-weight: 500;
}

/* 列表 */
.shande-hero-widget .shande-suggest-list,
.shande-ppt-hero .shande-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 单条 */
.shande-hero-widget .shande-suggest-item,
.shande-ppt-hero .shande-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.shande-hero-widget .shande-suggest-item:hover,
.shande-ppt-hero .shande-suggest-item:hover {
  background-color: #f5f6f8;
}

/* 分类名 */
.shande-hero-widget .shande-suggest-name,
.shande-ppt-hero .shande-suggest-name {
  font-size: 14px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 产品数 */
.shande-hero-widget .shande-suggest-count,
.shande-ppt-hero .shande-suggest-count {
  flex-shrink: 0;
  font-size: 12px;
  color: #999999;
  background: #f0f1f3;
  border-radius: 10px;
  padding: 1px 8px;
  line-height: 18px;
}
