/* ============================================================
   财宝引擎 · 统一搜索框规范
   适用页面：宏观趋势 / 房产投资 / 股票 / 期货 / 期权
   金色品牌风：米黄底 + 金边胶囊 + 聚焦金色光环
   ============================================================ */

/* 搜索卡片容器 */
.cba-search-card {
  margin: 10px 0 0;
  padding: 14px;
  background: #FFF;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  position: relative;
}

/* 输入行（输入框 + 可选按钮） */
.cba-search-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 搜索输入框（默认即采用原聚焦态：亮金边 + 白底 + 淡金光环） */
.cba-search-input {
  flex: 1;
  width: 100%;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid #FFC72C;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(255, 199, 44, .15);
  font-size: 14px;
  font-family: inherit;
  color: #2C2C2C;
  outline: none;
  transition: all .2s;
}
/* 在 flex 行内（带按钮）时由 flex:1 分配宽度 */
.cba-search-row .cba-search-input {
  width: auto;
}
/* 聚焦时光环略加深，保留可感知的焦点反馈 */
.cba-search-input:focus {
  border-color: #FFC72C;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(255, 199, 44, .25);
}
.cba-search-input::placeholder {
  color: #BBB;
}

/* 提交按钮（分析 / 推演；实时过滤类页面不需要） */
.cba-search-btn {
  padding: 10px 22px;
  border-radius: 18px;
  background: #FFC72C;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 199, 44, .35);
  transition: all .2s;
}
.cba-search-btn:hover:not(:disabled) {
  background: #F0BE1C;
}
.cba-search-btn:active:not(:disabled) {
  opacity: .85;
}
.cba-search-btn:disabled {
  opacity: .55;
  cursor: wait;
}

/* 使用说明小字 */
.cba-search-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #BBB;
  line-height: 1.7;
}
.cba-search-hint b {
  color: #8A7A4A;
  font-weight: 600;
}

/* ===== 联想下拉（股票页） ===== */
.suggest {
  position: absolute;
  top: calc(100% - 2px);
  left: 14px;
  right: 14px;
  background: #FFF;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  z-index: 20;
  overflow: hidden;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.suggest.show {
  display: block;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer;
}
.suggest-item:last-child {
  border-bottom: none;
}
.suggest-item:hover {
  background: #FFFDF5;
}
.suggest-item:active {
  background: #FAFAFA;
}
.suggest-code {
  font-size: 13px;
  font-weight: 600;
  color: #B28A2E;
  background: #FDFBF3;
  border: 1px solid #E8D9A0;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: "SF Mono", "Consolas", monospace;
  min-width: 64px;
  text-align: center;
}
.suggest-name {
  font-size: 14px;
  color: #2C2C2C;
  font-weight: 500;
}
.suggest-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #999;
  text-align: center;
}
