@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	::view-transition-group(language-indicator) {
		animation-duration: 180ms;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none;
	}
}

.language-switcher {
	display: inline-grid;
	grid-template-columns: 26px repeat(2, 2.125rem);
	grid-template-rows: 1.75rem;
	align-items: stretch;
	gap: 2px;
	margin: .625rem .875rem 0 0;
	padding: 3px;
	border: 1px solid #d9dce0;
	border-radius: 999px;
	background: #f6f7f8;
	color: #59616b;
}

.language-switcher__icon {
	grid-area: 1 / 1;
	place-self: center;
}

.language-switcher__indicator {
	grid-area: 1 / 2;
	border-radius: inherit;
	background: #a52020;
	view-transition-name: language-indicator;
}

html[lang="en"] .language-switcher__indicator {
	grid-column: 3;
}

.language-switcher a[hreflang="zh-CN"] {
	grid-area: 1 / 2;
}

.language-switcher a[hreflang="en"] {
	grid-area: 1 / 3;
}

.language-switcher a {
	display: grid;
	place-items: center;
	position: relative;
	border-radius: 999px;
	color: inherit;
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.language-switcher a:not([aria-current]):hover {
	background: #e7e9ec;
	color: #25282d;
}

.language-switcher a[aria-current="page"] {
	color: #fff;
}

.language-switcher a:focus-visible {
	outline: 2px solid #222;
	outline-offset: 1px;
}

.header-language {
	position: relative;
	z-index: 2;
}

.header-language .language-switcher {
	position: absolute;
	top: 0;
	right: 0;
}

.header__container--en .logo__text {
	text-transform: none;
}

.header__container--en .logo__title {
	font-size: clamp(1.125rem, 4.6vw, 1.5rem);
	line-height: 1.1;
}

.header__container--en .logo__tagline {
	font-size: 1rem;
	line-height: 1.25;
}

.post__content .publications-list li {
	text-align: justify;
}

.content .student-roster,
.student-roster tbody {
	display: block;
}

.student-roster tr {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
}

.student-roster td {
	display: grid;
	place-items: center;
	overflow-wrap: anywhere;
}

.header__container--en .menu__link {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.header__container--en .logo__link {
		display: flex;
		align-items: center;
		text-align: start;
	}

	.header__container--en .logo__item {
		margin-inline: 0;
	}

	.header__container--en .logo__imagebox {
		flex-shrink: 0;
	}

	.header__container--en .logo__title {
		font-size: clamp(1.375rem, 2.2vw, 1.5625rem);
	}

	.header__container--en .logo__tagline {
		font-size: 1.125rem;
	}
}

@media (min-width: 767px) {
	.header__container--en .menu__list {
		flex-wrap: nowrap;
	}

	.header__container--en .menu__item {
		width: auto;
		flex: 1 1 0;
		min-width: 0;
	}

	.header__container--en .menu__link {
		padding-inline: .125rem;
		white-space: nowrap;
	}
}

@media (max-width: 1023px) {
	.header-language {
		display: flex;
		justify-content: flex-end;
	}

	.header-language .language-switcher {
		position: static;
		margin: .375rem .5rem 0;
	}

}

@media (max-width: 766px) {
	.header__container--en .logo__tagline {
		padding-top: 6px;
	}

	.header__container--en .menu__item {
		width: 100%;
	}

	.student-roster td {
		padding-inline: .25rem;
	}
}

html[lang="en"] .research-intro-wrapper {
	font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
	color: #334155;
	line-height: 1.8;
}
html[lang="en"] .research-intro-wrapper .vision-box {
	background: linear-gradient(to right, #f8fafc, #eff6ff);
	border-left: 5px solid #2563eb;
	padding: 25px 30px;
	border-radius: 0 8px 8px 0;
	margin-bottom: 40px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
html[lang="en"] .research-intro-wrapper .vision-box h2 {
	margin-top: 0;
	color: #1e293b;
	font-size: 1.5em;
	margin-bottom: 15px;
}
html[lang="en"] .research-intro-wrapper .vision-box p {
	margin: 0;
	font-size: 1.05em;
	color: #475569;
	text-align: justify;
}
html[lang="en"] .research-intro-wrapper .section-title {
	font-size: 1.3em;
	color: #0f172a;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
	margin-bottom: 25px;
	margin-top: 40px;
	font-weight: 700;
}
.research-intro-wrapper .grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	max-width: 60rem;
	gap: 20px;
	margin: 0 auto 40px;
}
html[lang="en"] .research-intro-wrapper .card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 22px;
	transition: transform 0.2s, box-shadow 0.2s;
}
html[lang="en"] .research-intro-wrapper .card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
html[lang="en"] .research-intro-wrapper .card h4 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #1d4ed8;
	font-size: 1.1em;
	display: flex;
	align-items: center;
	gap: 8px;
}
html[lang="en"] .research-intro-wrapper .card p {
	margin: 0;
	font-size: 0.95em;
	color: #64748b;
	text-align: justify;
}
html[lang="en"] .research-intro-wrapper .scenario-list {
	list-style: none;
	padding: 0;
	margin: 0 0 40px 0;
}
html[lang="en"] .research-intro-wrapper .scenario-list li {
	margin-bottom: 15px;
	padding: 15px 20px;
	background: #f8fafc;
	border-radius: 6px;
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	border: 1px solid #f1f5f9;
}
@media (max-width: 767px) {
	html[lang="en"] .research-intro-wrapper .scenario-list li {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
}
html[lang="en"] .research-intro-wrapper .scenario-tag {
	background: #dbeafe;
	color: #1e40af;
	padding: .375rem .75rem;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	overflow-wrap: anywhere;
}
html[lang="en"] .research-intro-wrapper .scenario-desc {
	margin: 0;
	font-size: 0.95em;
	color: #475569;
	text-align: justify;
}
html[lang="en"] .research-intro-wrapper .pub-summary {
	background: #f1f5f9;
	padding: 20px 25px;
	border-radius: 8px;
	text-align: justify;
	font-size: 0.95em;
	margin-bottom: 30px;
	color: #475569;
}
html[lang="en"] .research-intro-wrapper .pub-summary strong {
	color: #0f172a;
}
