/* Modern Academic Website Styles */

/* ============================================
   Variables & Reset
   ============================================ */

:root {
	--primary-color: #093f81;
	--primary-dark: #1e40af;
	--primary-light: #3b82f6;
	--accent-color: #1e293b;
	--text-primary: #1f2937;
	--text-secondary: #4b5563;
	--text-light: #6b7280;
	--bg-primary: #ffffff;
	--bg-secondary: #f9fafb;
	--bg-alt: #f3f4f6;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 3rem;
	--spacing-xl: 4rem;
	--border-radius: 8px;
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
}

h2 {
	font-size: 2rem;
	font-weight: 600;
}

h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

h4 {
	font-size: 1.25rem;
	font-weight: 600;
}

p {
	margin-bottom: 1rem;
	color: var(--text-secondary);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

strong {
	font-weight: 600;
	color: var(--text-primary);
}

em {
	font-style: italic;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-sm);
	z-index: 1000;
	transition: var(--transition);
}

.navbar.scrolled {
	box-shadow: var(--shadow-md);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand a {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
}

.nav-brand a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
}

.nav-link {
	color: var(--text-secondary);
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
	transition: var(--transition);
}

.nav-link:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.cv-link {
	background: var(--primary-color);
	color: white !important;
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
}

.cv-link:hover {
	background: var(--primary-dark);
	text-decoration: none;
}

.cv-link::after {
	display: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.nav-toggle span {
	width: 25px;
	height: 3px;
	background: var(--text-primary);
	margin: 3px 0;
	transition: var(--transition);
}

/* ============================================
   Container
   ============================================ */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.section {
	padding: var(--spacing-xl) 0;
}

.section-alt {
	background-color: var(--bg-secondary);
}

.section-header {
	text-align: center;
	margin-bottom: var(--spacing-lg);
}

.section-divider {
	width: 60px;
	height: 4px;
	background: var(--primary-color);
	margin: 1.5rem auto;
	border-radius: 2px;
}

.section-links {
	margin-top: 1rem;
}

.section-links a {
	color: var(--text-secondary);
	margin: 0 0.5rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
	padding: 8rem 0 var(--spacing-xl);
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	margin-top: 70px;
}

.hero-content {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: var(--spacing-lg);
	align-items: center;
}

.hero-image {
	text-align: center;
}

.hero-image img {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--shadow-xl);
	border: 5px solid rgb(255, 255, 255);
	
}

.hero-text h1 {
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

.chinese-name {
	font-size: 1.5rem;
	color: var(--text-secondary);
	font-weight: 400;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 1rem;
}

.hero-description {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	text-align: center;
	transition: var(--transition);
	cursor: pointer;
	border: none;
	text-decoration: none;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	text-decoration: none;
	color: white;
}

.btn-outline {
	background: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-outline:hover {
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* ============================================
   Content Grid & Cards
   ============================================ */

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--spacing-md);
	margin-top: var(--spacing-lg);
}

.content-card {
	background: white;
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.content-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.content-card h3 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--border-color);
}

.education-item {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.education-item h4 {
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.institution {
	color: var(--text-secondary);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.details {
	color: var(--text-light);
	font-style: italic;
	margin-bottom: 0.5rem;
}

.advisor {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* ============================================
   Tags
   ============================================ */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tag {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--bg-alt);
	color: var(--text-secondary);
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: var(--transition);
}

.tag:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

/* ============================================
   Timeline (Experience)
   ============================================ */

.timeline {
	position: relative;
	padding-left: 2rem;
	margin-top: var(--spacing-lg);
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border-color);
}

.timeline-item {
	position: relative;
	margin-bottom: var(--spacing-lg);
	padding-left: var(--spacing-md);
}

.timeline-marker {
	position: absolute;
	left: -2.5rem;
	top: 0.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary-color);
	border: 3px solid white;
	box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-content {
	background: white;
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.timeline-content:hover {
	box-shadow: var(--shadow-lg);
	transform: translateX(5px);
}

.timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.timeline-header h3 {
	margin-bottom: 0;
	color: var(--text-primary);
}

.timeline-date {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 0.9rem;
}

.timeline-org {
	color: var(--text-secondary);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.timeline-content p {
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

/* ============================================
   Publications
   ============================================ */

.publications-section {
	margin-bottom: var(--spacing-lg);
}

.publications-section h3 {
	color: var(--primary-color);
	margin-bottom: var(--spacing-md);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--border-color);
}

.publication-list {
	list-style: none;
	counter-reset: publication-counter;
}

.publication-item {
	counter-increment: publication-counter;
	margin-bottom: var(--spacing-md);
	padding-left: 3rem;
	position: relative;
}

.publication-item::before {
	content: counter(publication-counter);
	position: absolute;
	left: 0;
	top: 0;
	width: 2rem;
	height: 2rem;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9rem;
}

.publication-content {
	background: white;
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	border-left: 3px solid transparent;
}

.publication-content:hover {
	box-shadow: var(--shadow-md);
	border-left-color: var(--primary-color);
	transform: translateX(5px);
}

.publication-content p {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.publication-links {
	display: flex;
	gap: 1rem;
	margin-top: 0.75rem;
}

.pub-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--bg-alt);
	color: var(--text-secondary);
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	transition: var(--transition);
}

.pub-link:hover {
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	transform: translateY(-2px);
}

.impact-factor,
.acceptance-rate {
	color: var(--primary-color);
	font-weight: 500;
	font-size: 0.9rem;
}

.badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--primary-color);
	color: white;
	border-radius: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-left: 0.5rem;
}

/* ============================================
   Contact
   ============================================ */

.contact-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--spacing-md);
	margin-top: var(--spacing-lg);
}

.contact-item {
	background: white;
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	text-align: center;
}

.contact-item h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact-item h3 i {
	margin-right: 0.5rem;
}

.social-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
	background: var(--accent-color);
	color: white;
	padding: var(--spacing-lg) 0;
	text-align: center;
}

.footer p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 0.5rem;
}

.footer a {
	color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
	color: white;
	text-decoration: underline;
}

.footer-note {
	font-size: 0.9rem;
	margin-top: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background: white;
		width: 100%;
		text-align: center;
		transition: 0.3s;
		box-shadow: var(--shadow-lg);
		padding: 2rem 0;
		gap: 0;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-menu li {
		margin: 1rem 0;
	}

	.nav-toggle {
		display: flex;
	}

	.hero-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-text h1 {
		font-size: 2rem;
	}

	.hero-buttons {
		justify-content: center;
		flex-wrap: wrap;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.timeline {
		padding-left: 1.5rem;
	}

	.timeline-marker {
		left: -1.75rem;
	}

	.publication-item {
		padding-left: 2.5rem;
	}

	.publication-item::before {
		width: 1.5rem;
		height: 1.5rem;
		font-size: 0.8rem;
	}

	.contact-content {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	.container {
		padding: 0 1rem;
	}

	.section {
		padding: var(--spacing-lg) 0;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 6rem 0 var(--spacing-md);
	}

	.hero-image img {
		width: 200px;
		height: 200px;
	}

	.hero-text h1 {
		font-size: 1.75rem;
	}

	.btn {
		padding: 0.625rem 1.25rem;
		font-size: 0.9rem;
	}
}

/* ============================================
   Smooth Animations
   ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section {
	animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-light);
}

