/**
 * jienengmao-child · 首页 banner 索引框联想下拉
 * v1.23.0：样式对齐智慧路首页 #hero-results（zhaohuilu result-line 同款结构），配色用节能猫科技蓝。
 */

.jnm-hero-results {
  margin: 10px 0 0;
  padding: 6px;
  border: 1px solid rgba(28, 95, 214, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(22, 50, 79, 0.1);
  text-align: left;
}

.jnm-hero-results[hidden] {
  display: none;
}

.jnm-hero-results:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.jnm-hero-results .console-section-label {
  padding: 9px 12px 5px;
  color: var(--jnm-muted, #7a8a96);
  font-size: 0.78rem;
  font-weight: 700;
}

.jnm-hero-results .result-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--jnm-line, #e3e9ee);
  border-radius: 0;
  padding: 7px 10px;
  background: transparent;
  color: var(--jnm-ink, #17212b);
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.jnm-hero-results .result-line:last-child {
  border-bottom: 0;
  border-radius: 0 0 10px 10px;
}

.jnm-hero-results .result-line:hover {
  background: var(--surface-soft, #f2f6fc);
}

.jnm-hero-results .result-type {
  width: 62px;
  border-radius: 6px;
  padding: 3px 0;
  background: var(--surface-soft, #f2f6fc);
  color: var(--jnm-muted, #7a8a96);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.jnm-hero-results .result-type.is-ask {
  background: var(--jnm-blue, #1c5fd6);
  color: #fff;
}

.jnm-hero-results .result-line strong {
  display: block;
  overflow: hidden;
  color: var(--ink-strong, #16324f);
  font-size: 0.95rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jnm-hero-results .result-line small {
  display: block;
  overflow: hidden;
  color: var(--jnm-muted, #7a8a96);
  font-size: 0.8rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jnm-hero-results .result-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jnm-blue, #1c5fd6);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.jnm-hero-results .result-arrow svg {
  width: 16px;
  height: 16px;
}

.jnm-hero-results .result-line:hover .result-arrow {
  opacity: 1;
  transform: translateX(0);
}

.jnm-hero-results .empty-note {
  margin: 0;
  padding: 14px 12px;
  color: var(--jnm-muted, #7a8a96);
}

@media (max-width: 640px) {
  .jnm-hero-results {
    margin: 8px 0 0;
    padding: 4px;
    border-radius: 12px;
  }

  .jnm-hero-results .result-line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .jnm-hero-results .result-arrow {
    display: none;
  }
}
