/* 订单管理搜索按钮：绿色胶囊填充 + 轻抬/按压动效 */
.ant-btn.btn-search {
  position: relative;
  overflow: hidden;
  border-radius: 10px !important;
  background: var(--om-primary-soft, #fff) !important;
  color: #1855ad !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(24,85,173, .16), 0 1px 2px rgba(24,85,173, .05) !important;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1),
              box-shadow .24s ease,
              color .18s ease !important;
}

.ant-btn.btn-search > span {
  position: relative;
  z-index: 1;
}

.ant-btn.btn-search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1855ad;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.ant-btn.btn-search .anticon-search {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.ant-btn.btn-search:hover {
  background: var(--om-primary-soft, #fff) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(24,85,173, .18) !important;
}

.ant-btn.btn-search:hover::before {
  transform: scaleX(1);
}

.ant-btn.btn-search:hover .anticon-search {
  transform: rotate(-10deg) scale(1.06);
}

.ant-btn.btn-search:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 6px rgba(24,85,173, .14) !important;
}

.ant-btn.btn-search:active .anticon-search {
  transform: scale(.92);
  transition-duration: .12s;
}

.ant-btn.btn-search:focus-visible {
  outline: 2px solid rgba(24,85,173, .32);
  outline-offset: 2px;
}

/* 提升优先级，确保悬停时文字和图标为白色 */
html body .ant-btn.btn-search:hover,
html body .ant-btn.btn-search:hover > span,
html body .ant-btn.btn-search:hover .anticon-search,
html body .ant-btn.btn-search:hover .anticon-search svg {
  color: #fff !important;
  fill: currentColor !important;
}

html body .ant-btn.btn-search:hover {
  box-shadow: 0 7px 18px rgba(24,85,173, .18) !important;
}
