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