.main-container-lb {
	max-width: 1400px;
	margin: 28px auto 40px;
	padding: 0 20px 40px;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.leaderboard-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
	gap: 24px;
	padding: 30px 30px 16px;
	border-radius: 34px;
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 30%),
		linear-gradient(135deg, var(--surface-hero-start), var(--surface-hero-end));
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow:
		0 28px 64px rgba(0, 0, 0, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	overflow: hidden;
}

.leaderboard-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 84% 18%, rgba(124, 58, 237, 0.06), transparent 24%),
		radial-gradient(circle at 70% 88%, rgba(5, 150, 105, 0.04), transparent 18%);
	pointer-events: none;
}

.leaderboard-hero-main,
.leaderboard-hero-side {
	position: relative;
	z-index: 1;
	min-width: 0;
	padding-bottom: 0;
}

.leaderboard-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
	background: rgba(37, 99, 235, 0.06);
	border: 1px solid rgba(37, 99, 235, 0.15);
	color: #1e40af;
	font-family: "DM Mono", monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.leaderboard-hero-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #2563eb;
	box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.leaderboard-hero-title {
	font-family: "Space Grotesk", "DM Sans", sans-serif;
	font-size: clamp(2.3rem, 3vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--primary-color);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.leaderboard-hero-subtitle {
	max-width: 760px;
	font-size: 1.08rem;
	line-height: 1.75;
	color: #334155;
	margin: 0 0 12px;
}

.leaderboard-hero-note {
	max-width: 720px;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--text-secondary);
	margin: 0;
}

.leaderboard-hero-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.leaderboard-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 16px;
	background: rgba(37, 99, 235, 0.05);
	border: 1px solid rgba(37, 99, 235, 0.12);
	color: #1e3a8a;
	font-size: 0.92rem;
	font-weight: 600;
}

.leaderboard-hero-chip.primary {
	background: rgba(37, 99, 235, 0.08);
	border-color: rgba(37, 99, 235, 0.15);
}

.leaderboard-hero-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: center;
}

.leaderboard-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.leaderboard-stat-card {
	padding: 18px 18px 16px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.leaderboard-stat-label {
	font-size: 11px;
	font-family: "DM Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 10px;
}

.leaderboard-stat-value {
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.1;
	color: #0f172a;
}

.leaderboard-stat-value.compact {
	font-size: 1.08rem;
	line-height: 1.35;
}

.leaderboard-tag-summary {
	padding: 18px;
	border-radius: 20px;
	background: rgba(248, 250, 252, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.leaderboard-tag-summary-label {
	font-size: 11px;
	font-family: "DM Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 12px;
}

.leaderboard-tag-summary-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.leaderboard-tag-summary-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.05);
	border: 1px solid rgba(37, 99, 235, 0.10);
	color: #1e293b;
	font-size: 0.84rem;
	font-weight: 600;
}

.leaderboard-tag-summary-chip.subtle {
	color: var(--text-secondary);
}

.leaderboard-tag-summary-empty {
	color: var(--text-secondary);
	line-height: 1.7;
}

.leaderboard-workbench {
	background: linear-gradient(180deg, var(--surface-panel-start), var(--surface-panel-end));
	padding: 24px;
	border-radius: 28px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow:
		0 20px 42px rgba(0, 0, 0, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.leaderboard-workbench-head {
	margin-bottom: 18px;
}

.leaderboard-workbench-kicker {
	font-size: 11px;
	font-family: "DM Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 8px;
}

.leaderboard-workbench-note {
	color: var(--text-secondary);
	line-height: 1.7;
	max-width: 780px;
}

/* Ant Design Tabs 样式 */
.ant-tabs-nav-wrap {
	margin-bottom: 0;
	padding: 0;
	width: 100%;
}

.ant-tabs-nav-list {
	position: relative;
	display: flex;
	transition: transform 0.3s;
	flex-wrap: nowrap;
	width: 100%;
	padding: 6px;
	border-radius: 22px;
	background: rgba(241, 245, 249, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.ant-tabs-tab {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 16px;
	background: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
	transition: color 0.3s;
}

.ant-tabs-tab-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0;
	background: transparent;
	border: none;
	outline: none;
	cursor: pointer;
	transition: all 0.3s;
	width: 100%;
	justify-content: center;
}

.ant-tabs-tab-btn:focus-visible {
	outline: 2px solid var(--primary-color, #3477eb);
	outline-offset: 2px;
	border-radius: 4px;
}

.model-list-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 18px;
	color: #475569;
	font-size: 16px;
	font-weight: 700;
	transition: color 0.3s, background 0.3s, box-shadow 0.3s;
	width: 100%;
	border-radius: 16px;
}

.model-list-title i {
	font-size: 18px;
	transition: opacity 0.3s;
}

.model-list-title.active-title {
	color: #0f172a;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(99, 102, 241, 0.07));
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.model-list-title.active-title i {
	opacity: 1;
}

.ant-tabs-tab-active .model-list-title {
	color: var(--primary-color, #3477eb);
}

.ant-tabs-tab:hover .model-list-title {
	color: var(--text-primary);
	background: rgba(37, 99, 235, 0.05);
}

.ant-tabs-tab-active:hover .model-list-title {
	color: var(--primary-color, #3477eb);
}

/* Tab underline indicator (hidden per design) */
.ant-tabs-ink-bar {
	display: none;
}

.controls-section {
	padding: 24px 0 0;
	margin-bottom: 0;
	margin-top: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 18px;
	padding-left: 0;
	padding-right: 0;
}

.control-row {
	display: contents; /* 让子元素直接参与 grid 布局 */
}

/* 左上：Model Family */
.control-row:first-child .model-switcher {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.control-row:first-child .model-switcher label {
	vertical-align: top;
	margin-bottom: 0;
	text-decoration: none;
}

.control-row:first-child .model-switcher label:focus,
.control-row:first-child .model-switcher label:focus-visible,
.control-row:first-child .model-switcher label:active {
	text-decoration: none;
}

/* 右上：Dataset Size Range 和 Search 的组合容器 */
.size-range-search-wrapper {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: stretch;
}

.size-range-search-wrapper .size-range-section,
.size-range-search-wrapper .search-box-container {
	display: flex;
	flex-direction: column;
}

.size-range-search-wrapper .size-range-section {
	justify-content: flex-end;
}

/* 左下：Dataset Tags */
.control-row:last-child .data-tag-buttons-section {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
}

/* 右下：Benchmark Domain */
.control-row:last-child .type-buttons-section {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
}

.control-row:last-child .data-tag-buttons-section label,
.control-row:last-child .size-range-section label {
	margin-top: 0;
}

.control-row:first-child .size-range-section label {
	margin-bottom: 0.5rem;
	margin-top: 0.25rem;
	line-height: 1;
	margin-left: 0;
}

.model-switcher,
.data-domain-buttons-section,
.search-box-container {
	flex-grow: 1;
	flex-basis: 150px;
}

.model-switcher label,
.type-buttons-section label,
.data-tag-buttons-section label,
.size-range-section label,
.improvement-type-section label,
.search-box-container label {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 12px;
	margin-top: 0;
	font-family: "DM Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.search-box-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.controls-section > .model-switcher,
.controls-section > .data-tag-buttons-section,
.controls-section > .type-buttons-section {
	background: linear-gradient(180deg, var(--surface-card-soft-start), var(--surface-card-soft-end));
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 22px;
	padding: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* First-row size range + search: no outer card, only inner controls */
.size-range-search-wrapper .size-range-section,
.size-range-search-wrapper .search-box-container {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.search-box-container .search-box {
	width: 100%;
}

.search-box-container label {
	display: block;
	margin-bottom: 0;
}

.search-box {
	position: relative;
	width: 100%;
	max-width: none;
	min-width: 0;
	display: flex;
	align-items: center;
}

.search-box i {
	position: absolute;
	left: 0.75rem;
	color: var(--text-light);
	z-index: 1;
}

.search-input {
	width: 100%;
	padding: 0.85rem 1rem 0.85rem 2.6rem;
	border: 1px solid rgba(37, 99, 235, 0.12);
	border-radius: 14px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.9);
	color: var(--text-primary);
}

.search-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(122, 162, 247, 0.2);
}

.search-input::placeholder {
	color: var(--text-light);
}

.size-range-section {
	display: flex;
	flex-direction: column;
	gap: 0rem;
}

.size-slider-container {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
}

.size-slider-wrapper {
	position: relative;
	padding: 8px 6px 6px 6px;
}

.size-slider-track {
	position: relative;
	height: 6px;
	background-color: rgba(0, 0, 0, 0.08);
	border-radius: 3px;
	margin: 8px 0;
}

.size-slider-range {
	position: absolute;
	height: 100%;
	background: linear-gradient(to right, var(--primary-color), var(--primary-light));
	border-radius: 3px;
	transition: all 0.1s ease;
}

.size-slider {
	position: absolute;
	top: -7px;
	left: 0;
	width: 100%;
	height: 20px;
	background: transparent;
	border: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	outline: none;
}

.size-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: var(--primary-color);
	border: 2px solid var(--background-primary);
	border-radius: 50%;
	cursor: pointer;
	pointer-events: all;
	box-shadow: var(--shadow-md);
	transition: all 0.2s ease;
	margin: 0;
}

.size-slider::-webkit-slider-thumb:hover {
	background: var(--primary-dark);
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

.size-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: var(--primary-color);
	border: 2px solid var(--background-primary);
	border-radius: 50%;
	cursor: pointer;
	pointer-events: all;
	box-shadow: var(--shadow-md);
	transition: all 0.2s ease;
	-moz-appearance: none;
	margin: 0;
}

.size-slider::-moz-range-thumb:hover {
	background: var(--primary-dark);
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

.size-slider::-moz-range-track {
	background: transparent;
	border: none;
	height: 6px;
	outline: none;
}

.size-slider::-webkit-slider-track {
	background: transparent;
	border: none;
	height: 6px;
	outline: none;
}

.size-slider:focus {
	outline: none;
}

.size-slider-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
}

.size-label-min,
.size-label-max {
	padding: 4px 8px;
	background: var(--background-accent);
	border-radius: var(--radius-sm);
	color: var(--primary-color);
	font-weight: 600;
	white-space: nowrap;
}

.model-buttons-container {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.model-button {
	padding: 0.72rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background-color: rgba(255, 255, 255, 0.7);
	color: #334155;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-weight: 600;
	font-size: 0.875rem;
	text-align: center;
}

.model-button:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background-color: var(--background-accent);
}

.model-button.active {
	background-color: var(--primary-dark);
	color: var(--background-primary);
	border-color: var(--primary-dark);
}

.model-buttons-section {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.filter-dropdown-group {
	min-width: 0; /* 允许缩小 */
}

.filter-dropdown-group .type-dropdown {
	flex: 1.5; /* 榜单领域占1.5份 */
	min-width: 0; /* 允许缩小 */
}

.data-tag-buttons-section {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.tag-filter-container {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tag-filter-mode {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.filter-mode-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.filter-mode-radio {
	width: 1rem;
	height: 1rem;
	accent-color: var(--primary-color);
}

.filter-mode-text {
	font-weight: 500;
}

.tag-buttons-container {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.tag-button {
	padding: 0.72rem 1rem;
	border: 1px solid var(--border-medium);
	background-color: rgba(255, 255, 255, 0.7);
	color: #334155;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-weight: 600;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	text-align: center;
}

.tag-button i {
	margin-right: 0.35rem;
	font-size: 0.9em;
}

.tag-button:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background-color: var(--background-accent);
}

.tag-button.active {
	background-color: var(--primary-dark);
	color: var(--background-primary);
	border-color: var(--primary-dark);
}

/* 选项卡按钮特定类型颜色样式 */
.tag-button[data-type="general"] {
	background-color: rgba(25, 118, 210, 0.08);
	color: #1565c0;
	border-color: rgba(25, 118, 210, 0.20);
}

.tag-button[data-type="general"]:hover {
	background-color: rgba(25, 118, 210, 0.14);
	color: #0d47a1;
	border-color: rgba(25, 118, 210, 0.30);
}

.tag-button[data-type="general"].active {
	background-color: #1976d2;
	color: white;
	border-color: #1976d2;
}

.tag-button[data-type="math"] {
	background-color: rgba(123, 31, 162, 0.08);
	color: #6a1b9a;
	border-color: rgba(123, 31, 162, 0.20);
}

.tag-button[data-type="math"]:hover {
	background-color: rgba(123, 31, 162, 0.14);
	color: #4a148c;
	border-color: rgba(123, 31, 162, 0.30);
}

.tag-button[data-type="math"].active {
	background-color: #7b1fa2;
	color: white;
	border-color: #7b1fa2;
}

.tag-button[data-type="code"] {
	background-color: rgba(56, 142, 60, 0.08);
	color: #2e7d32;
	border-color: rgba(56, 142, 60, 0.20);
}

.tag-button[data-type="code"]:hover {
	background-color: rgba(56, 142, 60, 0.14);
	color: #1b5e20;
	border-color: rgba(56, 142, 60, 0.30);
}

.tag-button[data-type="code"].active {
	background-color: #388e3c;
	color: white;
	border-color: #388e3c;
}

.tag-button[data-type="science"] {
	background-color: rgba(245, 124, 0, 0.08);
	color: #e65100;
	border-color: rgba(245, 124, 0, 0.20);
}

.tag-button[data-type="science"]:hover {
	background-color: rgba(245, 124, 0, 0.14);
	color: #bf360c;
	border-color: rgba(245, 124, 0, 0.30);
}

.tag-button[data-type="science"].active {
	background-color: #f57c00;
	color: white;
	border-color: #f57c00;
}

.tag-button[data-type="reasoning"] {
	background-color: rgba(63, 81, 181, 0.08);
	color: #283593;
	border-color: rgba(63, 81, 181, 0.20);
}

.tag-button[data-type="reasoning"]:hover {
	background-color: rgba(63, 81, 181, 0.14);
	color: #1a237e;
	border-color: rgba(63, 81, 181, 0.30);
}

.tag-button[data-type="reasoning"].active {
	background-color: #3f51b5;
	color: white;
	border-color: #3f51b5;
}

.tag-button[data-type="spatial"] {
	background-color: rgba(194, 24, 91, 0.08);
	color: #880e4f;
	border-color: rgba(194, 24, 91, 0.20);
}

.tag-button[data-type="spatial"]:hover {
	background-color: rgba(194, 24, 91, 0.14);
	color: #560027;
	border-color: rgba(194, 24, 91, 0.30);
}

.tag-button[data-type="spatial"].active {
	background-color: #c2185b;
	color: white;
	border-color: #c2185b;
}

.tag-button[data-type="infographic"] {
	background-color: rgba(0, 105, 92, 0.08);
	color: #004d40;
	border-color: rgba(0, 105, 92, 0.20);
}

.tag-button[data-type="infographic"]:hover {
	background-color: rgba(0, 105, 92, 0.14);
	color: #00251a;
	border-color: rgba(0, 105, 92, 0.30);
}

.tag-button[data-type="infographic"].active {
	background-color: #00695c;
	color: white;
	border-color: #00695c;
}

.type-buttons-section {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-left: 0;
	flex-shrink: 0;
	margin-right: 0;
}

.control-row:last-child .type-buttons-section {
	margin-left: 0;
	padding-left: 0;
}

.type-buttons-container {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.type-button {
	padding: 0.72rem 1rem;
	border: 1px solid var(--border-medium);
	background-color: rgba(255, 255, 255, 0.7);
	color: #334155;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-weight: 600;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	text-align: center;
}

.type-button i {
	margin-right: 0.35rem;
	font-size: 0.9em;
}

.type-button:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background-color: var(--background-accent);
}

.type-button.active {
	background-color: var(--primary-dark);
	color: var(--background-primary);
	border-color: var(--primary-dark);
}

/* 类型按钮特定类型颜色样式 */
.type-button[data-type="general"] {
	background-color: rgba(25, 118, 210, 0.08);
	color: #1565c0;
	border-color: rgba(25, 118, 210, 0.20);
}

.type-button[data-type="general"]:hover {
	background-color: rgba(25, 118, 210, 0.14);
	color: #0d47a1;
	border-color: rgba(25, 118, 210, 0.30);
}

.type-button[data-type="general"].active {
	background-color: #1976d2;
	color: white;
	border-color: #1976d2;
}

.type-button[data-type="math"] {
	background-color: rgba(123, 31, 162, 0.08);
	color: #6a1b9a;
	border-color: rgba(123, 31, 162, 0.20);
}

.type-button[data-type="math"]:hover {
	background-color: rgba(123, 31, 162, 0.14);
	color: #4a148c;
	border-color: rgba(123, 31, 162, 0.30);
}

.type-button[data-type="math"].active {
	background-color: #7b1fa2;
	color: white;
	border-color: #7b1fa2;
}

.type-button[data-type="code"] {
	background-color: rgba(56, 142, 60, 0.08);
	color: #2e7d32;
	border-color: rgba(56, 142, 60, 0.20);
}

.type-button[data-type="code"]:hover {
	background-color: rgba(56, 142, 60, 0.14);
	color: #1b5e20;
	border-color: rgba(56, 142, 60, 0.30);
}

.type-button[data-type="code"].active {
	background-color: #388e3c;
	color: white;
	border-color: #388e3c;
}

.type-button[data-type="science"] {
	background-color: rgba(245, 124, 0, 0.08);
	color: #e65100;
	border-color: rgba(245, 124, 0, 0.20);
}

.type-button[data-type="science"]:hover {
	background-color: rgba(245, 124, 0, 0.14);
	color: #bf360c;
	border-color: rgba(245, 124, 0, 0.30);
}

.type-button[data-type="science"].active {
	background-color: #f57c00;
	color: white;
	border-color: #f57c00;
}

.type-button[data-type="reasoning"] {
	background-color: rgba(63, 81, 181, 0.08);
	color: #283593;
	border-color: rgba(63, 81, 181, 0.20);
}

.type-button[data-type="reasoning"]:hover {
	background-color: rgba(63, 81, 181, 0.14);
	color: #1a237e;
	border-color: rgba(63, 81, 181, 0.30);
}

.type-button[data-type="reasoning"].active {
	background-color: #3f51b5;
	color: white;
	border-color: #3f51b5;
}

.type-button[data-type="spatial"] {
	background-color: rgba(194, 24, 91, 0.08);
	color: #880e4f;
	border-color: rgba(194, 24, 91, 0.20);
}

.type-button[data-type="spatial"]:hover {
	background-color: rgba(194, 24, 91, 0.14);
	color: #560027;
	border-color: rgba(194, 24, 91, 0.30);
}

.type-button[data-type="spatial"].active {
	background-color: #c2185b;
	color: white;
	border-color: #c2185b;
}

.type-button[data-type="infographic"] {
	background-color: rgba(0, 105, 92, 0.08);
	color: #004d40;
	border-color: rgba(0, 105, 92, 0.20);
}

.type-button[data-type="infographic"]:hover {
	background-color: rgba(0, 105, 92, 0.14);
	color: #00251a;
	border-color: rgba(0, 105, 92, 0.30);
}

.type-button[data-type="infographic"].active {
	background-color: #00695c;
	color: white;
	border-color: #00695c;
}

.leaderboard-container {
	background: linear-gradient(180deg, var(--surface-panel-start), var(--surface-panel-end));
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.leaderboard-container .table-container,
.detailed-leaderboard-container .table-container {
	overflow: auto;
	border-radius: inherit;
}

.leaderboard-container .ranking-table th,
.leaderboard-container .ranking-table td {
	text-align: center;
}

/* 排序功能样式 */
.sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.sortable:hover {
	background-color: var(--background-accent);
}

.sortable:hover .sort-icon {
	color: var(--primary);
}

.sort-icon {
	margin-left: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-secondary);
	transition: color 0.2s ease;
	display: inline-block;
}

.sortable:hover .sort-icon {
	color: var(--primary);
}

.sort-icon.fas.fa-sort-up,
.sort-icon.fas.fa-sort-down {
	color: var(--primary);
}

.detailed-table {
	min-width: 100%;
}

.detailed-table th {
	font-size: 0.9rem;
	padding: 1rem 0.75rem;
	text-align: center;
	background: var(--background-accent);
	border-bottom: 2px solid var(--border-medium);
	position: sticky;
	top: 0;
	z-index: 10;
	white-space: nowrap;
}

.detailed-table th small {
	display: block;
	font-size: 0.75rem;
	color: var(--text-secondary);
	font-weight: 400;
	margin-top: 0.25rem;
}

.detailed-table td {
	padding: 1rem 0.75rem;
	text-align: center;
	border-bottom: 1px solid var(--border-light);
	white-space: nowrap;
}


.detailed-table .domain-col {
	min-width: 100px;
	max-width: 150px;
	width: 150px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 详细表格任务列排序样式 */
.detailed-table .task-header .task-name {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detailed-table .task-header .task-name .sort-icon {
	margin-left: 0.25rem;
	font-size: 0.7rem;
	color: var(--text-secondary);
	transition: color 0.2s ease;
	display: inline-block;
	flex-shrink: 0;
}

.detailed-table .sortable:hover .task-header .task-name .sort-icon {
	color: var(--primary-color);
}

.detailed-table .task-header .task-name .sort-icon.fas.fa-sort-up,
.detailed-table .task-header .task-name .sort-icon.fas.fa-sort-down {
	color: var(--primary-color);
}

.detailed-table .sortable:hover .task-header .task-name .sort-icon {
	color: var(--primary-color);
}

.efficiency-help {
	transition: color 0.2s ease;
}

.efficiency-help:hover {
	color: #3b82f6 !important;
}

.efficiency-tooltip {
	background-color: #ffffff;
	color: #0f172a;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	white-space: normal;
	max-width: 300px;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	text-align: left;
	position: fixed;
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.efficiency-tooltip::after {
	content: "";
	display: block;
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: #ffffff;
}

/* 比较基准指示器样式 */
.baseline-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: white;
	font-size: 12px;
	box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
	margin: 0 auto;
	position: relative;
}

.baseline-indicator i {
	font-size: 10px;
}

.custom-tooltip {
	position: absolute;
	bottom: 100%;
	left: 100%;
	transform: translateX(10px);
	background-color: #ffffff;
	color: #0f172a;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	margin-bottom: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-tooltip::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -4px;
	transform: translateY(-50%);
	border: 4px solid transparent;
	border-right-color: #ffffff;
}

/* Column Highlighting */
.highlighted-col {
	/* This rule is less specific and might be overridden, kept for consistency if ever needed directly */
	background-color: rgba(122, 162, 247, 0.06) !important;
	color: var(--text-primary) !important;
}

/* 详细类型表格样式 */
.detailed-leaderboard-container {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.detailed-leaderboard-container .table-container {
	background: linear-gradient(180deg, var(--surface-panel-start), var(--surface-panel-end));
	border-radius: 28px;
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.detailed-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0;
	padding: 24px 28px;
	background: linear-gradient(180deg, var(--surface-card-start), var(--surface-card-end));
	border-radius: 24px;
	color: var(--text-primary);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.detailed-title {
	font-size: 1.8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.detailed-title i {
	font-size: 1.5rem;
	opacity: 0.9;
}

/* 详细表格任务列指标名样式（更浅色、更小字体） */
.detailed-table .task-header .metric-name {
    font-size: 0.75em;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
}
