/* ACTICEE-LIST-MORE-001：动态、问答、案例列表的搜索框、搜索结果提示与分批显示（listmore.js）。
   搜索框外观同模板库（tpllib.css）；尺寸用 rem，与各列表页同一套换算（电脑 100vw/19.2，手机 100vw/18）。 */
.lm-search {
  position: relative;
  display: flex;
  align-items: center;
}
.lm-search svg {
  position: absolute;
  fill: none;
  stroke: #999;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.lm-search input {
  width: 100%;
  box-sizing: border-box;
  border: solid #ccc;
  background: #fff;
  color: #111;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}
.lm-search input:focus {
  border-color: #ff7605;
}
.lm-search input::placeholder {
  color: #aaa;
}
.lm-result {
  color: #888;
}
.lm-result[hidden],
.lm-result p[hidden] {
  display: none;
}
.lm-result a {
  display: inline;
  color: #ff7605;
  text-decoration: underline;
}
/* 分批显示与搜索隐藏的条目不占位 */
.lm-hidden {
  display: none !important;
}
/* 分批显示的触发点：滚到这里附近时出下一批 */
.lm-sentinel {
  height: 1px;
}
.lm-sentinel[hidden] {
  display: none;
}

@media (min-width: 769px) {
  /* 动态、问答：搜索框在标题简介下方，与卡片网格左缘对齐 */
  .lm-search.lm-search--head {
    width: 4.6rem;
    margin: 0.36rem 0 0 1.5%;
  }
  /* 案例：搜索框跟在行业下拉与「外贸官网」后面（页面右侧有浮动咨询条，靠右会被挡） */
  .lm-search.lm-search--case {
    width: 3.6rem;
  }
  .lm-search svg {
    left: 0.18rem;
    width: 0.2rem;
    height: 0.2rem;
  }
  .lm-search input {
    height: 0.52rem;
    padding: 0 0.2rem 0 0.5rem;
    border-width: 0.01rem;
    border-radius: 0.26rem;
    font-size: 0.16rem;
  }
  .lm-search--case input {
    height: 0.6rem;
    border-radius: 0.3rem;
    border-color: #555;
  }
  .lm-result {
    padding: 0 1.5%;
    margin-bottom: 0.3rem;
    font-size: 0.16rem;
  }
  .lm-result .lm-empty {
    padding: 0.4rem 0;
    font-size: 0.18rem;
  }
}
@media (max-width: 768px) {
  .lm-search.lm-search--head {
    width: 90%;
    margin: 0.8rem 5% 0;
  }
  .lm-search.lm-search--case {
    flex: 1 1 100%;
  }
  .lm-search svg {
    left: 0.6rem;
    width: 0.7rem;
    height: 0.7rem;
  }
  .lm-search input {
    height: 1.9rem;
    padding: 0 0.6rem 0 1.6rem;
    border-width: 0.05rem;
    border-radius: 0.95rem;
    font-size: 0.66rem;
  }
  .lm-result {
    padding: 0 5%;
    margin-bottom: 0.8rem;
    font-size: 0.6rem;
  }
  .lm-result .lm-empty {
    padding: 1rem 0;
    font-size: 0.64rem;
  }
}
