* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f7fb;
    height: 100vh;
    overflow: hidden;
    color: #1f2937;
    padding-top: 68px;
}
.container{
	max-width: 100%
}
.navbar {
	box-shadow: none;
}
.app {
	display: flex;
	flex-direction: column;
	height: 92vh;
}
.top-nav {
	background: white;
	border-bottom: 1px solid #e5e9f0;
	padding: 0 24px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	z-index: 20;
}
.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
}
.logo-icon {
	background: #1a5c9e;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
}
.logo-text {
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -0.3px;
}
.sub-nav {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	z-index: 15;
}
.sub-nav-link {
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: #4b5563;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 10px;
	transition: all 0.2s;
}
.sub-nav-link:hover {
	background: #eef2ff;
	color: #1a5c9e;
}
.search-container {
	position: relative;
	margin-left: auto;
	display: flex;
	gap: 8px;
	align-items: center;
}
.search-input {
	width: 280px;
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 30px;
	font-size: 13px;
	outline: none;
}
.search-input:focus {
	border-color: #1a5c9e;
}
.search-results-dropdown {
	position: absolute;
	top: 38px;
	right: 0;
	width: 420px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	border: 1px solid #e2e8f0;
	z-index: 100;
	max-height: 400px;
	overflow-y: auto;
	display: none;
}
.search-result-item {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f2f8;
	cursor: pointer;
	transition: background 0.12s;
}
.search-result-item:hover {
	background: #f9fafc;
}
.search-result-title {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
	color: #111827;
}
.search-result-meta {
	font-size: 11px;
	color: #6c757d;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.search-all-link {
	padding: 10px 16px;
	text-align: center;
	border-top: 1px solid #eef2f6;
	background: #f8fafc;
	cursor: pointer;
	color: #1a5c9e;
	font-size: 12px;
	font-weight: 500;
}
.search-all-link:hover {
	background: #eef2ff;
}
.main-layout {
	display: flex;
	flex: 1;
	overflow: hidden;
	position: relative;
}
.sidebar-left {
	width: 340px;
	background: white;
	border-right: 1px solid #eef2f6;
	display: flex;
	flex-direction: column;
	transition: width 0.2s ease;
	overflow: hidden;
	flex-shrink: 0;
	z-index: 5;
	position: relative;
}
.sidebar-left.collapsed { width: 48px; }
.sidebar-left.collapsed .paper-list,
.sidebar-left.collapsed .panel-header span:not(.collapse-btn),
.sidebar-left.collapsed .export-dropdown-container { display: none; }
.sidebar-left.collapsed .panel-header { justify-content: center; padding: 18px 0; }
.sidebar-right {
	width: 380px;
	background: white;
	border-left: 1px solid #eef2f6;
	display: flex;
	flex-direction: column;
	transition: width 0.2s ease;
	overflow: hidden;
	flex-shrink: 0;
	z-index: 5;
	position: relative;
}
.sidebar-right.collapsed { width: 48px; }
.sidebar-right.collapsed .detail-content-area,
.sidebar-right.collapsed .panel-header .detail-header-title { display: none; }
.sidebar-right.collapsed .panel-header { justify-content: center; padding: 18px 0; }

.panel-header {
	padding: 18px 20px 12px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
	border-bottom: 1px solid #f0f2f5;
	display: flex;
	align-items: center;
	background: #ffffff;
	flex-shrink: 0;
}
.panel-header-left {
	justify-content: space-between;
}
.panel-header-right {
    justify-content: center;
    position: relative;
}
.panel-header-right .collapse-btn {
    position: absolute;
    left: 20px;
}
.panel-header-right .detail-header-title {
    margin: 0 auto;
}
.collapse-btn {
	cursor: pointer;
	padding: 6px 10px;
	background: #f3f4f6;
	border-radius: 8px;
	font-size: 12px;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
}
.collapse-btn:hover {
	background: #e5e7eb;
}
.export-dropdown-container {
	position: relative;
	display: inline-block;
	margin-left: 12px;
}
.export-btn {
	background: #f3f4f6;
	border: none;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 11px;
	cursor: pointer;
	color: #4b5563;
	transition: all 0.2s;
}
.export-btn:hover {
	background: #e5e7eb;
}
.export-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	z-index: 200;
	display: none;
	min-width: 120px;
}
.export-dropdown a {
	display: block;
	padding: 8px 12px;
	font-size: 12px;
	color: #374151;
	text-decoration: none;
	cursor: pointer;
}
.export-dropdown a:hover {
	background: #f3f4f6;
}
.paper-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px 0;
}
.paper-item {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f2f8;
	cursor: pointer;
	transition: background 0.12s;
}
.paper-item:hover { background: #f9fafc; }
.paper-item.highlight { background: #eef2ff; border-left: 3px solid #1a5c9e; }
.paper-title { font-size: 12px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; color: #111827; }
.paper-meta { font-size: 10px; color: #6c757d; display: flex; gap: 12px; flex-wrap: wrap; }
.seed-badge {
	display: inline-block;
	background: #fef3c7;
	color: #d97706;
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 12px;
	margin-left: 6px;
	font-weight: 500;
}
.graph-container {
	flex: 1;
	position: relative;
	background: #fafcff;
	overflow: hidden;
}
#graph-svg {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
}
#graph-svg:active { cursor: grabbing; }
.graph-controls-left {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: flex;
	gap: 10px;
	z-index: 15;
}
.graph-controls-right {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: white;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: 1px solid #e2e8f0;
	z-index: 15;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ctrl-btn {
	background: white;
	border: 1px solid #e2e8f0;
	padding: 8px 12px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 13px;
	color: #4b5563;
}
.ctrl-btn:hover { background: #eef2ff; }
.color-option {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.color-palette { display: flex; gap: 8px; justify-content: center; margin-top: 5px; flex-wrap: wrap; }
.color-bar { width: 200px; margin-top: 8px; }
.color-bar-labels { display: flex; justify-content: space-between; font-size: 10px; margin-top: 4px; color: #6b7280; }
.tooltip-popup {
	position: absolute;
	background: white;
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	border: 1px solid #e2e8f0;
	z-index: 100;
	max-width: 300px;
	font-size: 12px;
	pointer-events: none;
	line-height: 1.5;
}
.overlay-table {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.98);
	z-index: 50;
	display: none;
	flex-direction: column;
	backdrop-filter: blur(2px);
}
.overlay-table-container {
	background: white;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.overlay-table-header {
	padding: 16px 24px;
	border-bottom: 1px solid #eef2f6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 16px;
	background: white;
	flex-shrink: 0;
}
.overlay-table-content {
	flex: 1;
	overflow-y: auto;
	padding: 0 20px;
}
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.data-table th {
	text-align: left;
	padding: 14px 16px;
	background: #f8fafc;
	cursor: pointer;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	background: white;
	font-weight: 600;
}
.data-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f2f8;
	cursor: pointer;
}
.data-table tr:hover { background: #f9fafc; }
.close-overlay {
	cursor: pointer;
	background: none;
	border: none;
	font-size: 22px;
	color: #6c757d;
	padding: 4px 12px;
	border-radius: 8px;
}
.close-overlay:hover {
	background: #eef2ff;
}

.ovl-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.export-dropdown-container-ovl {
	position: relative;
	display: inline-block;
	margin-right: 12px;
}
.detail-content-area {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
}
.empty-detail { color: #9aa9bb; text-align: center; padding: 40px 20px; }
.node-label {
	font-weight: 600;
	text-anchor: middle;
	pointer-events: none;
	dominant-baseline: middle;
}
.highlight-note {
	font-size: 10px;
	margin-top: 5px;
	padding: 4px 8px;
	background: #d1fae5;
	border-radius: 6px;
	color: #065f46;
	border-left: 3px solid #10b981;
}
.detail-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1a5c9e;
	cursor: pointer;
	text-decoration: none;
}
.detail-title:hover { text-decoration: underline; }
.detail-author { margin-bottom: 8px; font-size: 13px; }
.author-name {
	color: #1a5c9e;
	cursor: pointer;
	text-decoration: none;
	font-weight: 500;
}
.author-name:hover { text-decoration: underline; }
.author-tooltip {
	position: absolute;
	background: white;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	border: 1px solid #e2e8f0;
	z-index: 200;
	font-size: 12px;
	min-width: 200px;
	pointer-events: none;
}
.detail-venue { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.detail-citation {
	display: inline-block;
	background: #eef2ff;
	padding: 4px 12px;
	border-radius: 8px;
	font-size: 12px;
	margin-bottom: 12px;
}
.detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.tag {
	background: #eef2ff;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 11px;
	color: #374151;
}
.tag-jcr { background: #dbeafe; color: #1e40af; }
.tag-if { background: #fef3c7; color: #92400e; }
.detail-links { margin-bottom: 12px; }
.detail-link {
	display: inline-block;
	margin-right: 12px;
	font-size: 12px;
	color: #1a5c9e;
	text-decoration: none;
}
.detail-link:hover { text-decoration: underline; }
.detail-abstract { font-size: 12px; line-height: 1.5; color: #4b5563; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.abstract-toggle { color: #1a5c9e; cursor: pointer; font-size: 11px; margin-top: 4px; }
hr { margin: 12px 0; border-color: #eef2f5; }

footer{
	margin-top: 0px
}

.sub-nav-link.active {
    background: #70abe6;
    color: white;
}

.sort-icon {
    font-size: 11px;
    color: #9ca3af;
    display: inline-block;
    width: 14px;
    text-align: center;
}
.sort-icon::before {
    content: "⇅";
}
th.sort-asc .sort-icon::before {
    content: "▲";
}
th.sort-desc .sort-icon::before {
    content: "▼";
}
th[data-col]:hover .sort-icon {
    color: #4b5563;
}

/* 导航高亮样式 */
.sub-nav-link.active {
    background: #1a5c9e;
    color: white;
}

/* 作者切换图标样式 */
.author-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}
.author-toggle-icon:hover {
    background: #e5e7eb;
}

/* 加载遮盖层样式 */
.loading-overlay-simple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-bar-simple {
    width: 300px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-bar-progress-simple {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1a5c9e, #3b82f6, #60a5fa);
    transition: width 0.2s ease;
    border-radius: 2px;
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1a5c9e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.build-map-btn {
    background: #559ee6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.build-map-btn:hover {
    background: #0f4a7e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 92, 158, 0.3);
}

.build-map-btn i {
    font-size: 12px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-result-item[style*="cursor: pointer"]:hover {
    background: #f9fafc;
}

.search-result-item[style*="cursor: not-allowed"]:hover {
    background: #fef2f2;
}