/* 搜索 — 白底细边，产品感 */
.search-wrapper {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-soft);
  max-width: 520px;
  border: 1px solid var(--card-border);
}

.search-bar {
  display: flex;
  gap: 8px;
}

#tagInput {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid rgba(74, 64, 88, 0.1);
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--text-primary);
}

#tagInput:focus {
  border-color: var(--primary-color);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

#tagInput::placeholder {
  color: var(--text-tertiary);
}

button#searchBtn {
  flex-shrink: 0;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

button#searchBtn:hover {
  background: var(--primary-dark);
  transform: none;
  box-shadow: none;
}

button#searchBtn:active {
  transform: scale(0.98);
}

#currentTags {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-label {
  flex-shrink: 0;
}

.filter-chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

#tagList .filter-chip,
#tagList .tag {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  line-height: 1.4;
  transition: background 0.15s ease;
}

#tagList .filter-chip:hover {
  background: rgba(232, 137, 155, 0.22);
}

.chip-x {
  font-size: 0.9em;
  opacity: 0.65;
  font-weight: 500;
  line-height: 1;
}

#clearTags {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(74, 64, 88, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  margin-left: auto;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#clearTags:hover {
  color: var(--primary-dark);
  border-color: var(--primary-light);
  background: var(--primary-soft);
  transform: none;
  box-shadow: none;
}
