:root {
	--bg-color: #f8f8f8; /* Rice paper white */
	--text-color: #1a1a1a; /* Ink black */
	--accent-color: #a83232; /* Seal red */
	--secondary-text-color: #666666; /* Light ink */
	--nav-height: 80px;
	--font-serif:
		"Source Han Serif CN", "Source Han Serif SC", "Source Serif 4",
		"SimSun", "Songti SC", "Noto Serif SC", serif;
	--font-sans:
		"Source Han Sans CN", "Source Han Sans SC", "Source Sans 3",
		"Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.8;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s;
}

a:hover {
	color: var(--accent-color);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	display: block;
}

/* Header */
header {
	background-color: #fff;
	height: var(--nav-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 5%;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-left {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.header-center {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 30px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 15px;
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: bold;
}

.logo img {
	height: 40px;
	width: auto;
}

.header-ink-img {
	height: 40px;
	width: auto;
}

.logo-seal {
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	padding: 2px 4px;
	font-size: 0.8rem;
	display: inline-block;
}

/* Navigation */
nav ul {
	display: flex;
	gap: 40px;
}

nav a {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	font-weight: bold;
}

nav a.active {
	color: var(--accent-color);
}

.lang-switch {
	position: relative;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--secondary-text-color);
	display: flex;
	align-items: center;
	gap: 5px;
}

.lang-options {
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	border: 1px solid #eee;
	display: none;
	min-width: 100px;
}

.lang-switch:hover .lang-options {
	display: block;
}

.lang-options div {
	padding: 10px;
	cursor: pointer;
}

.lang-options div:hover {
	background: #f5f5f5;
}

/* Main Container */
main {
	min-height: 80vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* Sections */
.hero-section {
	display: flex;
	align-items: center;
	gap: 60px;
	margin-bottom: 80px;
}

.hero-image {
	flex: 1;
	overflow: hidden;
}

.hero-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hero-text {
	flex: 1;
}

.hero-text h1 {
	font-family: var(--font-serif);
	font-size: 2.5rem;
	margin-bottom: 30px;
	font-weight: bold;
}

.hero-text p {
	color: var(--secondary-text-color);
	text-align: justify;
	margin-bottom: 20px;
}

/* Profile Page */
.profile-intro {
	background: #fff;
	padding: 60px;
	margin-bottom: 40px;
}

.profile-intro h2 {
	font-family: var(--font-serif);
	margin-bottom: 30px;
	font-size: 2rem;
}

.profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 40px;
}

/* Works Page */
.works-header {
	text-align: center;
	margin-bottom: 60px;
}

.works-header h2 {
	font-family: var(--font-serif);
	font-size: 2rem;
	margin-bottom: 10px;
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px;
}

.work-item {
	text-align: center;
	transition: transform 0.3s ease;
}

.work-item:hover {
	transform: translateY(-5px);
}

.work-item img {
	width: 100%;
	height: auto;
	display: block;
	background-color: var(--bg-color);
	margin-bottom: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-title {
	font-family: var(--font-sans);
	color: var(--secondary-text-color);
	font-size: 0.95rem;
}

/* Honors Page */
.section-title {
	font-family: var(--font-serif);
	font-size: 2rem;
	text-align: center;
	margin-bottom: 60px;
}

.timeline {
	max-width: 800px;
	margin: 0 auto 80px auto;
}

.timeline-item {
	padding-bottom: 40px;
	padding-left: 25px;
	border-left: 2px solid #eee;
	position: relative;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 10px;
	width: 10px;
	height: 10px;
	background: var(--accent-color);
	border-radius: 50%;
}

.timeline-content {
	font-size: 1.1rem;
	line-height: 1.6;
}

.timeline-date {
	font-weight: bold;
	color: var(--accent-color);
	margin-bottom: 5px;
	display: block;
}

.timeline-img {
	margin-top: 15px;
	max-width: 400px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cert-grid {
	display: grid;
	/* Grid system for honors: 1 col on small screens, 2 cols on medium, 4 cols on large */
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
	margin-bottom: 80px;
}

@media (min-width: 600px) {
	.cert-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.cert-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.cert-grid img {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-list {
	max-width: 800px;
	margin: 0 auto;
}

.news-item {
	margin-bottom: 15px;
	border-bottom: 1px dotted #ccc;
	padding-bottom: 10px;
}

.news-item a {
	display: block;
	color: var(--text-color);
}

.news-item a:hover {
	color: var(--accent-color);
}

/* Copy Button Styles */
.copy-group-container {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

.email-copy-btn {
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: none;
	border-radius: 0;
	font-size: 1rem;
	color: var(--text-color);
	cursor: pointer;
	padding: 6px 15px;
	font-family: var(--font-sans);
	transition: all 0.3s;
	outline: none;
	border-bottom: 1px solid transparent;
}

.email-copy-btn:hover {
	border-color: var(--accent-color);
	background: rgba(0, 0, 0, 0.02);
	color: var(--accent-color);
}

.qq-copy-btn {
	font-weight: bold;
	margin-right: 2px;
	padding: 2px 4px;
	border-radius: 0;
}

.qq-copy-btn:hover {
	background-color: rgba(168, 50, 50, 0.1);
	color: var(--accent-color);
}

.email-suffix {
	color: var(--secondary-text-color);
}

/* Footer */
footer {
	background: #f0f0f0;
	padding: 60px 20px;
	text-align: center;
	color: var(--secondary-text-color);
	font-size: 0.9rem;
	margin-top: auto;
}

.footer-content p {
	margin-bottom: 10px;
	max-width: 95%;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section {
		flex-direction: column;
	}

	header {
		height: auto;
		padding: 20px;
		flex-direction: column;
		gap: 20px;
	}

	nav ul {
		gap: 20px;
		flex-wrap: wrap;
		justify-content: center;
	}
}

.works-page {
	background-image: url("../image/backgroung.png");
	background-repeat: repeat;
}
