/* 品牌搜索 */
#bdBrandSearch {
  width: 100%;
  min-height: calc(100vh - var(--bd-topbar-h, 56px));
}

html.bd-view-brand-search .bd-main,
.bd-main:has(> #bdBrandSearch:not([hidden])) {
  padding: 12px 16px 24px;
  overflow: auto;
  max-height: calc(100vh - var(--bd-topbar-h, 56px));
}

.bs-root {
  font-size: 12px;
}

.bs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bs-head h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bs-stats {
  margin-left: 10px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
}

.bs-filters {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.bs-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.bs-search-input {
  flex: 1;
  min-width: 200px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  font-size: 13px;
}

.bs-search-btn {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #e11d48;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.bs-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.bs-filter-label {
  flex: 0 0 72px;
  font-size: 12px;
  color: #64748b;
  line-height: 28px;
}

.bs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.bs-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e8ecf3;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

.bs-chip.is-active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
  font-weight: 600;
}

.bs-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.bs-table-wrap {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  overflow-x: auto;
}

.bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bs-table th,
.bs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: middle;
}

.bs-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.bs-th-sort {
  cursor: pointer;
  user-select: none;
}

.bs-th-sort:hover {
  color: #e11d48;
}

.bs-sort-ico {
  font-size: 10px;
  color: #94a3b8;
}

.bs-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 200px;
}

.bs-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.bs-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bs-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.bs-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.bs-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 11px;
}

.bs-tag-muted {
  background: #f1f5f9;
  color: #64748b;
}

.bs-verify {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-td-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bs-td-highlight {
  color: #e11d48;
  font-weight: 600;
}

.bs-td-muted {
  color: #94a3b8;
  white-space: nowrap;
  font-size: 11px;
}

.bs-td-action {
  white-space: nowrap;
}

.bs-fav-btn,
.bs-link {
  font-size: 12px;
  margin-right: 8px;
}

.bs-fav-btn {
  border: none;
  background: none;
  color: #94a3b8;
  cursor: not-allowed;
}

.bs-link {
  color: #e11d48;
  text-decoration: none;
}

.bs-link:hover {
  text-decoration: underline;
}

.bs-status,
.bs-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.bs-status-error {
  color: #dc2626;
}

.bs-empty h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #475569;
}

.bs-scroll-footer {
  padding: 12px;
  text-align: center;
}

.bs-scroll-hint {
  font-size: 12px;
  color: #94a3b8;
}

.bs-scroll-hint.is-error {
  color: #dc2626;
}
