/* 仅包含首页内容样式；共享页面框架位于 site-shell.css。 */
#hero img {
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 750;
	object-fit: cover;
}

#hero {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.hero-track {
	display: flex;
	width: 100%;
	will-change: transform;
}

.hero-slide {
	flex: 0 0 100%;
	min-width: 0;
}

#hero[data-carousel-ready] .hero-track {
	transition: transform 400ms ease;
}

.hero-control {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(48px, 6.25vw, 96px);
	height: clamp(80px, 10.42vw, 160px);
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffffcc;
	filter: drop-shadow(0 2px 3px #0006);
	transition:
		color 160ms ease,
		filter 160ms ease;
}

#hero[data-carousel-ready] .hero-control {
	display: grid;
	place-items: center;
}

.hero-control-prev {
	left: clamp(8px, 2vw, 32px);
}

.hero-control-next {
	right: clamp(8px, 2vw, 32px);
}

.hero-control svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 11;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-control:hover,
.hero-control:focus-visible {
	color: #fff;
	filter: drop-shadow(0 3px 5px #0009);
}

@media (prefers-reduced-motion: reduce) {
	#hero[data-carousel-ready] .hero-track {
		transition: none;
	}
}

.homepage-content {
	padding-top: 28px;
}

.updates-grid,
.news-grid,
.education-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr);
}

.updates-panel,
.featured-news,
.related-news {
	min-width: 0;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.section-heading h2 {
	padding: 6px 16px;
	color: #fff;
	background: var(--color-brand-deep);
}

.more-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: auto;
	flex-shrink: 0;
	color: var(--color-brand);
}

.more-link:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.dated-list {
	background: var(--color-panel);
	padding-inline: 16px;
}

.dated-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 8px 16px;
	padding-block: 14px;
}

.dated-list li+li {
	border-top: 2px dashed var(--color-rule);
}

.dated-list a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
	flex: 1 1 18em;
}

.dated-list a::before {
	content: "";
	flex: 0 0 auto;
	border-block: 0.32em solid transparent;
	border-left: 0.45em solid var(--color-brand);
}

.dated-list time {
	justify-self: end;
	white-space: nowrap;
	margin-left: auto;
	color: var(--color-brand);
	font-variant-numeric: tabular-nums;
}

#college-news {
	margin-top: 32px;
}

.news-grid {
	gap: 0;
	background: var(--color-panel);
}

.featured-news {
	border-top: 12px solid var(--color-brand);
}

.featured-news img {
	width: 100%;
	aspect-ratio: 897 / 456;
	object-fit: cover;
}

.featured-news h3 {
	padding: 12px 16px 0;
	text-wrap: pretty;
}

.featured-news h3 a {
	display: block;
}

.featured-news p {
	padding: 12px 16px 20px;
	color: #707070;
}

.related-news {
	padding: 8px 16px 20px;
}

.related-news a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 10px;
}

.education-grid {
	margin-top: 32px;
}

.education-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 24px;
	min-width: 0;
	min-height: 180px;
	background:
		linear-gradient(#ffffff80, #ffffff80),
		#fff url("../assets/images/education-pattern.png") center / cover;
	color: var(--color-brand-deep);
}

.education-card h2 {
	flex-shrink: 0;
}

.education-card img {
	width: auto;
	max-width: 48%;
	max-height: 150px;
	object-fit: contain;
}

.education-card:hover {
	box-shadow: inset 0 0 0 3px var(--color-brand);
}

.homepage {
	--font-section: 24px;
	--line-section: 36px;
	--font-headline: 22px;
	--line-headline: 34px;
	--font-list-title: 18px;
	--line-list-title: 28px;
	--font-notice: 18px;
	--line-notice: 28px;
	--font-date: 16px;
	--line-date: 26px;
	--font-summary: 18px;
	--line-summary: 30px;
	--font-display: 32px;
	--line-display: 46px;
	--font-action: 16px;
	--line-action: 26px;
}

.section-heading h2 {
	font-size: var(--font-section);
	line-height: var(--line-section);
}

.featured-news h3 {
	font-size: var(--font-headline);
	line-height: var(--line-headline);
}

.related-news a {
	font-size: var(--font-list-title);
	line-height: var(--line-list-title);
}

.dated-list a {
	font-size: var(--font-notice);
	line-height: var(--line-notice);
}

.dated-list time {
	font-size: var(--font-date);
	line-height: var(--line-date);
}

.featured-news p {
	font-size: var(--font-summary);
	line-height: var(--line-summary);
}

.education-card h2 {
	font-size: var(--font-display);
	line-height: var(--line-display);
}

.more-link {
	font-size: var(--font-action);
	line-height: var(--line-action);
}

@media (min-width: 768px) {
	.homepage {
		--font-section: 28px;
		--line-section: 42px;
		--font-headline: 26px;
		--line-headline: 40px;
		--font-list-title: 20px;
		--line-list-title: 32px;
		--font-notice: 20px;
		--line-notice: 32px;
		--font-date: 18px;
		--line-date: 28px;
		--font-summary: 20px;
		--line-summary: 34px;
		--font-display: 36px;
		--line-display: 52px;
		--font-action: 18px;
		--line-action: 28px;
	}
}

.section-heading {
	flex-wrap: wrap;
}

.featured-news>a {
	display: block;
}

.education-card {
	flex-direction: column;
	justify-content: center;
}

.education-card img {
	max-width: 80%;
}

@media (min-width: 1024px) {
	.homepage {
		--font-section: 36px;
		--line-section: 50px;
		--font-headline: 26px;
		--line-headline: 40px;
		--font-list-title: 22px;
		--line-list-title: 34px;
		--font-notice: 22px;
		--line-notice: 34px;
		--font-date: 22px;
		--line-date: 34px;
		--font-summary: 20px;
		--line-summary: 36px;
		--font-display: 48px;
		--line-display: 70px;
		--font-action: 20px;
		--line-action: 32px;
		--content-top: 38px;
		--updates-gap: 64px;
		--heading-gap: 16px;
		--section-gap: 40px;
		--heading-height: 54px;
		--heading-width: 185px;
		--list-row: 68px;
		--news-height: 510px;
		--news-row: 60px;
		--news-rule: 18px;
		--education-gap: 24px;
		--education-top: 44px;
		--education-height: 280px;
		--education-direction: row;
		--education-padding: 24px;
		--education-image-max: 90%;
		--undergraduate-width: 197px;
		--postgraduate-width: 124px;
		--international-width: 151px;
	}

	.homepage-content {
		padding-top: var(--content-top);
	}

	.updates-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--updates-gap);
	}

	.section-heading {
		margin-bottom: var(--heading-gap);
		flex-wrap: nowrap;
	}

	.section-heading h2 {
		display: flex;
		align-items: center;
		min-height: var(--heading-height);
		min-width: 0;
		padding: 0 20px;
		white-space: nowrap;
	}

	.dated-list {
		padding-inline: 24px 16px;
	}

	.dated-list li {
		grid-template-columns: minmax(0, 1fr) max-content;
		min-height: var(--list-row);
		padding-block: 12px;
	}

	.dated-list a,
	.featured-news h3 a,
	.related-news a {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#college-news {
		margin-top: var(--section-gap);
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: var(--news-height);
	}

	.featured-news {
		border-top-width: var(--news-rule);
	}

	.featured-news h3 {
		padding: 10px;
	}

	.featured-news p {
		padding: 10px;
	}

	.featured-news table,
	.featured-news tbody,
	.featured-news tr,
	.featured-news td,
	.featured-news td div,
	.featured-news td img .featured-news td a {
		width: 100% !important;

	}

	.related-news {
		display: grid;
		align-content: start;
		grid-auto-rows: minmax(var(--news-row), auto);
		padding: 12px 20px 24px 28px;
	}

	.related-news li {
		border-bottom: 2px dashed var(--color-rule)
	}

	.related-news a {
		padding-block: 6px;
		line-height: 80px;
	}

	.education-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--education-gap);
		margin-top: var(--education-top);
	}

	.education-card {
		flex-direction: var(--education-direction);
		justify-content: space-between;
		min-height: var(--education-height);
		padding: var(--education-padding);
		gap: 16px;
	}

	.education-card img {
		width: var(--postgraduate-width);
		max-width: var(--education-image-max);
		max-height: none;
	}

	.education-card:first-child img {
		width: var(--undergraduate-width);
	}

	.education-card:last-child img {
		width: var(--international-width);
	}
}

@media (min-width: 1024px) and (max-width: 1439px) {
	.homepage {
		--updates-gap: 24px;
	}

	.dated-list {
		padding-inline: 12px 8px;
	}

	.dated-list li {
		column-gap: 8px;
	}
}

@media (min-width: 1440px) {
	.homepage {
		--font-section: 36px;
		--line-section: 50px;
		--font-headline: 32px;
		--line-headline: 48px;
		--font-list-title: 26px;
		--line-list-title: 40px;
		--font-notice: 22px;
		--line-notice: 34px;
		--font-date: 22px;
		--line-date: 34px;
		--font-summary: 22px;
		--line-summary: 40px;
		--font-display: 48px;
		--line-display: 70px;
		--font-action: 20px;
		--line-action: 32px;
		--content-top: 43px;
		--updates-gap: 78px;
		--heading-gap: 17px;
		--section-gap: 47px;
		--news-height: 534px;
		--news-row: 66px;
		--news-rule: 21px;
		--education-gap: 26px;
		--education-top: 50px;
		--education-height: 236px;
		--education-direction: row;
		--education-padding: 32px;
		--education-image-max: 60%;
		--undergraduate-width: 222px;
		--postgraduate-width: 140px;
		--international-width: 170px;
	}
}

@media (min-width: 1920px) {
	.homepage {
		--font-section: 48px;
		--line-section: 68px;
		--font-headline: 42px;
		--line-headline: 64px;
		--font-list-title: 34px;
		--line-list-title: 52px;
		--font-notice: 30px;
		--line-notice: 46px;
		--font-date: 30px;
		--line-date: 46px;
		--font-summary: 30px;
		--line-summary: 54px;
		--font-display: 68px;
		--line-display: 98px;
		--font-action: 28px;
		--line-action: 44px;
		--content-top: 57px;
		--updates-gap: 104px;
		--heading-gap: 22px;
		--section-gap: 62px;
		--heading-height: 71px;
		--heading-width: 247px;
		--list-row: 91px;
		--news-height: 712px;
		--news-row: 88px;
		--news-rule: 28px;
		--education-gap: 34px;
		--education-top: 66px;
		--education-height: 315px;
		--education-padding: 40px;
		--undergraduate-width: 296px;
		--postgraduate-width: 186px;
		--international-width: 226px;
	}

	.dated-list {
		padding-inline: 32px 20px;
	}

	.dated-list a {
		gap: 32px;
	}

	.related-news {
		padding-inline-start: 36px;
	}
}

/* 1024–1439px：保持设计稿的三栏内容结构，同时按窄幅容器缩放文字和卡片。 */
@media (min-width: 1024px) and (max-width: 1439px) {
	.homepage {
		--font-section: 28px;
		--line-section: 40px;
		--font-headline: 24px;
		--line-headline: 36px;
		--font-list-title: 18px;
		--line-list-title: 28px;
		--font-notice: 18px;
		--line-notice: 28px;
		--font-date: 18px;
		--line-date: 28px;
		--font-summary: 18px;
		--line-summary: 30px;
		--font-display: 36px;
		--line-display: 52px;
		--font-action: 18px;
		--line-action: 28px;
		--heading-height: 48px;
		--heading-width: auto;
		--list-row: 56px;
		--news-height: 430px;
		--news-row: 52px;
		--news-rule: 14px;
		--education-height: 236px;
		--education-padding: 24px;
		--education-image-max: 60%;
		--undergraduate-width: 190px;
		--postgraduate-width: 120px;
		--international-width: 145px;
	}

	.section-heading h2 {
		padding-inline: 16px;
	}

	.dated-list {
		padding-inline: 16px 12px;
	}

	.dated-list li {
		column-gap: 12px;
	}
}

/* 1024–1199px：保留双栏宽度，把空间优先给标题换行和可读性。 */
@media (min-width: 1024px) and (max-width: 1199px) {

	/* 1024px 窄桌面：标题保持单行，优先通过字号收紧而不是换行。 */
	.updates-grid {
		gap: 24px;
	}

	.dated-list a {
		font-size: 16px;
		line-height: 24px;
	}

	.dated-list time {
		font-size: 16px;
		line-height: 24px;
	}

	.dated-list a,
	.featured-news h3 a,
	.related-news a {
		white-space: nowrap;
		overflow: visible;
		text-overflow: clip;
	}

	.dated-list li {
		min-height: 56px;
	}

	.related-news a {
		min-height: 56px;
	}

	.featured-news h3 a {
		font-size: 20px;
		line-height: 30px;
		white-space: nowrap;
		overflow: visible;
		text-overflow: clip;
	}
}

/* 1200–1439px：宽屏窄桌面增加双栏间距、文字层级和页脚中栏空间。 */
@media (min-width: 1200px) and (max-width: 1439px) {
	.homepage {
		--updates-gap: 64px;
		--font-section: 32px;
		--line-section: 44px;
		--font-list-title: 20px;
		--line-list-title: 32px;
		--font-action: 22px;
		--line-action: 32px;
		--news-row: 56px;
		--heading-height: 52px;
	}

	.dated-list a,
	.featured-news h3 a,
	.related-news a {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}

	.dated-list li,
	.related-news a {
		min-height: 56px;
	}
}