/* SDEdit-style CSS - Simple academic page styling */

/* Global image defaults: never force floating, never distort aspect ratio */
img {
	padding: 0;
	float: none;
	max-width: 100%;
	height: auto;
}

#primarycontent {
	MARGIN-LEFT: auto;
	MARGIN-RIGHT: auto;
	TEXT-ALIGN: left;
	width: 100%;
	max-width: 800px;
	padding: 20px;
}

/* simple vertical spacing between major sections */
.section-spacer {
	height: 15px;
}

BODY {
	TEXT-ALIGN: center;
	font-family: "Times New Roman", Times, serif;
	background-color: #ffffff;
	color: #000000;
	margin: 0;
	padding: 20px 0;
}

h1 {
	font-size: 1.8em;
	font-weight: bold;
	margin: 20px 0;
	color: #000000;
}

h2 {
	font-size: 1.2em;
	font-weight: bold;
	margin: 15px 0;
	color: #000000;
}

/* keep top header/subheader blocks from getting too heavy */
.subheader {
	font-weight: normal;
}

/* tighten spacing for the schematic section */
.section-spacer-tight {
	height: 10px;
}

.section-spacer-extra-large {
	height: 35px;
}

.section-spacer-large {
	height: 35px;
}

h2.tight-title {
	margin-top: 50px;
	margin-bottom: 5px;
}

p.tight-paragraph {
	margin-top: 0;
}

/* compact spacing for specific sections */
.compact-heading {
	margin-bottom: 3px;
}

.compact-paragraph {
	margin-top: 2px;
}

h2 strong {
	font-weight: bold;
}

p {
	font-size: 14px;
	line-height: 1.6;
	margin: 10px 0;
	color: #000000;
}

a {
	color: #0000EE;
	text-decoration: underline;
}

a:visited {
	color: #551A8B;
}

a:hover {
	color: #0000EE;
	text-decoration: underline;
}

/* 作者名和顶部链接使用酒红色 */
h2 a {
	color: #8B0000;
	text-decoration: none;
}

h2 a:visited {
	color: #8B0000;
}

h2 a:hover {
	color: #A00000;
	text-decoration: underline;
}

h2 strong a {
	color: #8B0000;
	text-decoration: none;
}

h2 strong a:visited {
	color: #8B0000;
}

h2 strong a:hover {
	color: #A00000;
	text-decoration: underline;
}

/* GitHub 链接使用灰色 */
h2 strong a.github-link {
	color: #666666;
}

h2 strong a.github-link:visited {
	color: #666666;
}

h2 strong a.github-link:hover {
	color: #888888;
	text-decoration: underline;
}

ul {
	margin: 10px 0;
	padding-left: 30px;
}

li {
	font-size: 15px;
	line-height: 1.6;
	margin: 5px 0;
	color: #000000;
}

/* 论文缩略图阴影（lunwen.png） */
img.paper-thumbnail {
	/* subtle, paper-like */
	border-radius: 4px;
	background: #fff;
	border: 1px solid #e6e6e6;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Paper block layout (thumbnail + text) */
.paper-block {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 28px;
}

.paper-block > a {
	flex: 0 0 auto;
	display: block;
	padding: 10px 30px 10px 10px; /* match previous inline padding */
}

.paper-block img.paper-thumbnail {
	display: block;
	width: 170px;
	height: auto;
}

.paper-block .paper-meta h2 {
	margin-top: 0;
}

.paper-block .paper-meta {
	padding-top: 10px; /* align with thumbnail block top padding */
}

/* muted labels/links (e.g., "arXiv", "Bibtex") */
.muted-label {
	color: #666666;
	font-size: 16px;
}

a.muted-link {
	color: #666666;
	text-decoration: underline;
}

a.muted-link:visited {
	color: #666666;
}

a.muted-link:hover {
	color: #888888;
}

/* make Bibtex a bit larger than body text */
a.bibtex-link {
	font-size: 18px;
}

table {
	margin: 20px auto;
	border-collapse: collapse;
}

td {
	padding: 10px;
	vertical-align: middle;
}

center {
	text-align: center;
}

/* BibTeX Modal Styles */
.bibtex-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.bibtex-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 0;
	border: 1px solid #888;
	border-radius: 8px;
	width: 90%;
	max-width: 700px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bibtex-modal-header {
	padding: 20px;
	border-bottom: 1px solid #e6e6e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #f9f9f9;
	border-radius: 8px 8px 0 0;
}

.bibtex-modal-header h2 {
	margin: 0;
	font-size: 1.5em;
	color: #000;
}

.bibtex-close {
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.bibtex-close:hover,
.bibtex-close:focus {
	color: #000;
}

.bibtex-modal-body {
	padding: 20px;
}

.bibtex-modal-body pre {
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	font-family: 'Courier New', Courier, monospace;
	font-size: 13px;
	line-height: 1.5;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
	margin: 0 0 15px 0;
	color: #333;
	text-align: left;
}

.bibtex-copy-btn {
	background-color: #8B0000;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
	font-family: "Times New Roman", Times, serif;
	transition: background-color 0.3s;
}

.bibtex-copy-btn:hover {
	background-color: #A00000;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	#primarycontent {
		max-width: 95%;
		padding: 10px;
	}
	.paper-block {
		flex-direction: column;
	}
	
	h1 {
		font-size: 1.5em;
	}
	
	h2 {
		font-size: 1.1em;
	}
	
	.bibtex-modal-content {
		width: 95%;
		margin: 10% auto;
	}
	
	.bibtex-modal-body pre {
		font-size: 12px;
	}
}
