:root {
	--accent: #2563eb;
	--accent-light: #dbeafe;
	--text-primary: #1e293b;
	--text-secondary: #64748b;
	--text-muted: #94a3b8;
	--bg: #fafbfc;
	--bg-card: #ffffff;
	--border: #e2e8f0;
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.06);
	--shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
	--radius: 12px;
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--text-primary);
	background: var(--bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

/* --- Navigation --- */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(250, 251, 252, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	padding: 0 2rem;
	transition: box-shadow 0.3s;
}
.site-nav.scrolled {
	box-shadow: var(--shadow-md);
}
.nav-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.nav-brand {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text-primary);
	text-decoration: none;
	letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }
.nav-links {
	list-style: none;
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}
.nav-links a {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	transition: all 0.2s;
}
.nav-links a:hover {
	color: var(--accent);
	background: var(--accent-light);
	text-decoration: none;
}
.nav-links a.active {
	color: var(--accent);
	background: var(--accent-light);
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.4rem;
	color: var(--text-primary);
	cursor: pointer;
	padding: 0.25rem;
}

/* --- Hero Section --- */
.hero {
	max-width: 1100px;
	margin: 0 auto;
	padding: 150px 2rem 3rem;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 3rem;
	align-items: start;
}
.hero-photo {
	width: 100%;
	max-width: 300px;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
.hero-info h1 {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 2rem;
	font-weight: 600;
	margin: 0 0 0.1rem;
	letter-spacing: -0.02em;
}
.hero-info h1 .chinese-name {
	font-weight: 400;
	font-size: 1.4rem;
	color: var(--text-secondary);
	margin-left: 0.3rem;
}
.hero-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.6rem 0 1rem;
	flex-wrap: wrap;
}
.hero-meta .email {
	font-size: 0.9rem;
	color: var(--text-secondary);
}
.social-links {
	display: flex;
	gap: 0.5rem;
}
.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: var(--text-secondary);
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 1rem;
	transition: all 0.2s;
	text-decoration: none;
}
.social-links a:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--accent-light);
	transform: translateY(-1px);
}
.hero-bio p {
	font-size: 0.95rem;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
	line-height: 1.75;
}
.hero-bio a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}
.hero-bio a:hover {
	border-bottom-color: var(--accent);
	text-decoration: none;
}

/* --- Sections --- */
.content-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 2rem 0;
}
#highlights {
	padding-top: 0.5rem;
}
.section-title {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.section-title .emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* --- Highlights --- */
.highlights-list {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0;
}
.highlights-list li {
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--text-primary);
	padding: 0.1rem 0;
}
.highlight-date {
	font-weight: 600;
}
.highlights-list a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}
.highlights-list a:hover {
	text-decoration: underline;
}

/* --- Publications (homepage cards) --- */
.pub-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.pub-card {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	transition: all 0.25s;
	align-items: start;
}
.pub-card:hover {
	box-shadow: var(--shadow-md);
	border-color: #cbd5e1;
	transform: translateY(-1px);
}
.pub-img {
	width: 100%;
	border-radius: 8px;
	object-fit: cover;
	background: #ffffff;
}
.pub-placeholder {
	width: 100%;
	min-height: 140px;
	border-radius: 8px;
	background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Source Serif 4', Georgia, serif;
	font-weight: 600;
	font-size: 1.4rem;
	letter-spacing: 0.02em;
	padding: 1rem;
	text-align: center;
}
.pub-info h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.4rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
}
.pub-authors {
	font-size: 0.84rem;
	color: var(--text-secondary);
	margin: 0 0 0.3rem;
	line-height: 1.6;
}
.pub-authors b {
	color: var(--text-primary);
	font-weight: 600;
}
.pub-venue {
	font-size: 0.84rem;
	color: var(--text-muted);
	margin: 0 0 0.5rem;
}
.pub-venue .venue-highlight {
	color: #dc2626;
	font-weight: 600;
}
.pub-venue .venue-stat {
	color: var(--accent);
	font-weight: 600;
}
.pub-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.pub-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--accent);
	background: var(--accent-light);
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.15s;
}
.pub-links a:hover {
	background: var(--accent);
	color: #fff;
	text-decoration: none;
}

/* --- Lists (homepage compact lists) --- */
.info-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.info-list li {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1rem;
	padding: 0.65rem 0;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--border);
	align-items: baseline;
}
.info-list li:last-child {
	border-bottom: none;
}
.info-date {
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 0.84rem;
	white-space: nowrap;
}
.info-content {
	color: var(--text-primary);
	line-height: 1.6;
}
.info-content a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}
.info-content a:hover {
	text-decoration: underline;
}
.info-content em {
	color: var(--text-secondary);
}

/* --- CV page (cv.html) --- */
.cv-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 130px 2rem 2rem;
}
.cv-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1rem;
}
.cv-header h1 {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 2.25rem;
	font-weight: 600;
	margin: 0 0 0.4rem;
	letter-spacing: -0.02em;
}
.cv-header .cv-contact {
	font-size: 0.88rem;
	color: var(--text-secondary);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
}
.cv-header .cv-contact a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}
.cv-header .cv-contact a:hover { text-decoration: underline; }
.cv-header .cv-contact .sep {
	color: var(--text-muted);
}
.cv-download {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--accent);
	background: var(--accent-light);
	padding: 0.45rem 0.9rem;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.15s;
}
.cv-download:hover {
	background: var(--accent);
	color: #fff;
	text-decoration: none;
}

.cv-section {
	margin: 2rem 0 0;
}
.cv-section h2 {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
}
.cv-entry {
	margin-bottom: 1rem;
}
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
}
.cv-entry-title {
	font-weight: 600;
	font-size: 0.96rem;
	color: var(--text-primary);
	flex: 1 1 auto;
}
.cv-entry-title a {
	color: var(--text-primary);
	text-decoration: none;
}
.cv-entry-title a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.cv-entry-meta {
	font-size: 0.84rem;
	color: var(--text-secondary);
	font-style: italic;
	white-space: nowrap;
	text-align: right;
}
.cv-entry-meta .venue-highlight {
	color: #dc2626;
	font-weight: 600;
	font-style: normal;
}
.cv-entry-sub {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.88rem;
	color: var(--text-secondary);
	margin-top: 0.1rem;
}
.cv-entry-sub em { color: var(--text-secondary); }
.cv-entry-detail {
	font-size: 0.88rem;
	color: var(--text-primary);
	margin: 0.25rem 0 0;
	line-height: 1.55;
}
.cv-entry-detail b { color: var(--text-primary); }
.cv-entry-detail a {
	color: var(--accent);
	text-decoration: none;
}
.cv-entry-detail a:hover { text-decoration: underline; }
.cv-entry ul {
	margin: 0.35rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.86rem;
	color: var(--text-primary);
	line-height: 1.55;
}
.cv-entry ul li { padding: 0.1rem 0; }
.cv-entry ul a {
	color: var(--accent);
	text-decoration: none;
}
.cv-entry ul a:hover { text-decoration: underline; }

.cv-skill-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cv-skill-list li {
	font-size: 0.9rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
	line-height: 1.55;
}
.cv-skill-list li:last-child { border-bottom: none; }
.cv-skill-list .label {
	font-weight: 600;
	color: var(--text-primary);
	margin-right: 0.35rem;
}

/* --- Footer --- */
.site-footer {
	max-width: 1100px;
	margin: 4rem auto 0;
	padding: 2rem;
	border-top: 1px solid var(--border);
	text-align: center;
}
.back-to-top {
	font-size: 0.85rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.back-to-top:hover {
	color: var(--accent);
	text-decoration: none;
}

/* --- Animations --- */
.fade-in {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.hero { padding: 80px 1.25rem 2rem; }
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		text-align: center;
	}
	.hero-photo {
		width: 160px;
		margin: 0 auto;
	}
	.hero-meta {
		justify-content: center;
	}
	.social-links {
		justify-content: center;
	}
	.hero-info { text-align: left; }
	.hero-meta { justify-content: flex-start; }

	.content-section { padding: 2rem 1.25rem 0; }

	.pub-card {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.pub-img, .pub-placeholder {
		max-height: 180px;
		object-fit: contain;
	}

	.info-list li {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.cv-page { padding: 80px 1.25rem 2rem; }
	.cv-header {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.cv-entry-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
	}
	.cv-entry-meta { text-align: left; white-space: normal; }
	.cv-entry-sub { flex-direction: column; gap: 0.1rem; }

	.nav-links {
		display: none;
		position: absolute;
		top: 56px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(250, 251, 252, 0.97);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--border);
		padding: 0.5rem 1rem;
		gap: 0;
	}
	.nav-links.open {
		display: flex;
	}
	.nav-links a {
		padding: 0.6rem 0.75rem;
	}
	.nav-toggle {
		display: block;
	}
}

@media (max-width: 480px) {
	.hero-info h1 { font-size: 1.6rem; }
	.hero-info h1 .chinese-name { font-size: 1.1rem; }
	.section-title { font-size: 1.3rem; }
	.pub-info h3 { font-size: 0.95rem; }
	.cv-header h1 { font-size: 1.7rem; }
}
