@charset "UTF-8";
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
}

.search-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 8px 12px;
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
}

/* Logo 区域 */
.logo-box {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 不裁剪 logo */
}

/* 搜索框占满剩余空间 */
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
  height: 36px;
}
.search-box #searchInput {
  flex: 1;
  padding: 0 12px;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  height: 100%;
  line-height: 36px;
}
.search-box .search-btn {
  padding: 0 16px;
  background: #007bff;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
}
.search-dropdown.active {
  display: block;
}
.search-dropdown .dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-dropdown .dropdown-list .dropdown-item {
  padding: 12px 12px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}
.search-dropdown .dropdown-list .dropdown-item:last-child {
  border-bottom: none;
}
.search-dropdown .dropdown-list .dropdown-item:hover, .search-dropdown .dropdown-list .dropdown-item.highlight {
  background: #f0f8ff;
}
.search-dropdown .dropdown-list .dropdown-item.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  background: #f8fafc;
}
.search-dropdown .dropdown-list .dropdown-item.history-head .history-clear-btn {
  border: none;
  background: transparent;
  color: #007bff;
  font-size: 13px;
  cursor: pointer;
}
.search-dropdown .dropdown-list .dropdown-item.history-item-row {
  color: #444;
}
.search-dropdown .dropdown-list .dropdown-item.dropdown-section-title {
  font-weight: 700;
  font-size: 13px;
  color: #667085;
  background: #f8fafc;
}
.item-meta-tag {
  font-size: 12px;
  color: #007bff;
  background: #eaf4ff;
  border-radius: 10px;
  padding: 2px 8px;
}

.page-content {
  margin-top: 56px;
  padding: 20px;
}

.empty-tip {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.dropdown-item {
  border-bottom: 1px solid #eee;
}
.dropdown-item:last-child {
  border-bottom: none;
}

.product-item .item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}
.product-item .item-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-item .item-main {
  flex: 1;
  min-width: 0;
}
.product-item .item-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.product-item .item-code {
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-item .item-desc {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin-top: 4px;
}
.product-item .item-arrow {
  color: #aaa;
  flex-shrink: 0;
}
.product-item .item-arrow svg {
  display: block;
}
.product-item:active {
  background-color: #f5f5f5;
}

.empty-tip,
.loading-tip {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}
.empty-tip .empty-icon,
.loading-tip .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-tip h4,
.loading-tip h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #666;
}
.empty-tip p,
.loading-tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.loading-tip {
  padding: 30px 20px;
  color: #666;
}

.search-guide-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-guide-mask.active {
  opacity: 1;
  pointer-events: auto;
}
.search-guide-tip {
  position: absolute;
  min-width: 220px;
  max-width: 78vw;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  padding: 12px 12px 10px;
}
.search-guide-tip p {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}
.search-guide-tip .guide-close {
  margin-top: 8px;
  border: none;
  background: #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.search-guide-hand {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  animation: guideHandPulse 1.2s ease-in-out infinite;
}
.search-guide-highlight-input,
.search-guide-highlight-btn {
  position: relative;
  z-index: 1650;
}
.search-guide-highlight-input {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.85), 0 0 0 8px rgba(56, 189, 248, 0.3);
}
.search-guide-highlight-btn {
  animation: guideBtnPulse 0.9s ease-in-out infinite;
}

@keyframes guideHandPulse {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.1) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes guideBtnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/*# sourceMappingURL=HeaderSearch.css.map */
