/* HOHSI 情报站搜索框（门户 / 板块 / 文章页通用）—— 与站点浅色基调一致 */
.qsearch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 320px;
  min-width: 210px;
}
.qsearch input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line, #e4e8ec);
  border-radius: 8px;
  background: #fff;
  color: var(--fg, #1a1d21);
  font: inherit;
  font-size: 13px;
  line-height: 32px;
  -webkit-appearance: none;
  appearance: none;
}
.qsearch input::placeholder { color: #9aa3ac; }
.qsearch input:focus {
  outline: none;
  border-color: #1f6f5c;
  box-shadow: 0 0 0 3px rgba(31, 111, 92, .12);
}
.qsearch button {
  height: 32px;
  padding: 0 13px;
  border: 1px solid #1f6f5c;
  border-radius: 8px;
  background: #1f6f5c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.qsearch button:hover { background: #1a5e4e; border-color: #1a5e4e; }

/* 结果面板 */
.qs-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  right: 0;
  width: min(600px, calc(100vw - 28px));
  max-height: min(65vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
  padding: 6px;
  text-align: left;
}
.qs-panel[hidden] { display: none; }
.qs-stat, .qs-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: #7b848d;
  line-height: 1.5;
}
.qs-stat { border-bottom: 1px solid #eef1f4; margin-bottom: 4px; }
.qs-item {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.qs-item:hover, .qs-item.on { background: #e8f3f0; }
.qs-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 11.5px;
  color: #7b848d;
  font-variant-numeric: tabular-nums;
}
.qs-bd {
  color: #1f6f5c;
  background: #e8f3f0;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
}
.qs-t {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1d21;
  line-height: 1.45;
}
.qs-s {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #4a5158;
  line-height: 1.5;
}
.qs-item mark {
  background: #fff2a8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* 板块/门户页：搜索框放在品牌行，窄屏换行到第二行铺满 */
@media (max-width: 900px) {
  .topbar .brandrow { flex-wrap: wrap; row-gap: 8px; }
  .topbar .brandrow .meta { order: 2; }
  .qsearch { flex: 1 1 100%; min-width: 0; order: 3; }
}

/* 文章页：在面包屑条右侧，窄屏独占一行 */
.qbnav .qsearch { flex: 0 1 270px; min-width: 190px; }
@media (max-width: 900px) {
  .qbnav .qsearch { flex: 1 1 100%; min-width: 0; }
}
