/* TTS 论文表格样式 */

/* 筛选按钮样式 */
.paper-filters {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.filter-btn:hover {
  background: #f0f0f0;
}

.filter-btn.active {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* 表格样式 */
.paper-table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.paper-table th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.paper-table th:hover {
  background: #e8e8e8;
}

.paper-table th[data-sort]::after {
  content: ' ⇅';
  opacity: 0.5;
  font-size: 12px;
}

.paper-table th.asc::after {
  content: ' ↑';
  opacity: 1;
}

.paper-table th.desc::after {
  content: ' ↓';
  opacity: 1;
}

.paper-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.paper-table tbody tr:hover {
  background: #f9f9f9;
}

.paper-table td a {
  margin-right: 8px;
  text-decoration: none;
  color: #0066cc;
  white-space: nowrap;
  display: inline-block;
}

.paper-table td a:hover {
  text-decoration: underline;
}

/* Badge 标签样式 */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 4px;
}

.badge-llm { background: #e3f2fd; color: #1976d2; }
.badge-cfm { background: #f3e5f5; color: #7b1fa2; }
.badge-tokenizer { background: #fff3e0; color: #f57c00; }
.badge-eval { background: #e8f5e9; color: #388e3c; }
.badge-audiolm { background: #fce4ec; color: #c2185b; }
.badge-dataset { background: #e0f2f1; color: #00796b; }

/* 折叠区域样式 */
details {
  margin: 30px 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
}

details summary {
  cursor: pointer;
  font-weight: bold;
  padding: 10px;
  background: #fafafa;
  border-radius: 4px;
  user-select: none;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶ ';
  display: inline-block;
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  background: #f0f0f0;
}

details[open] summary {
  margin-bottom: 15px;
}

/* 统计信息 */
.paper-stats {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 14px;
}

.paper-stats span {
  margin-right: 20px;
  font-weight: 500;
}

/* Loading 提示 */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}
