/* 首页新闻板块：浅色背景，左侧置顶轮播，右侧最新文章纵向滚动，文章边框跟随指针高亮。 */
.home-news {
	--news-accent: var(--compt-color-accent-deep);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	padding: clamp(56px, 7vw, 96px) 0;
	background: #f4f7fb;
	color: var(--compt-color-text-strong);
	font-family: inherit;
	line-height: 1.7;
}

/* 与「关于我们」一致的大字水印。 */
.home-news::before {
	content: 'NEWS';
	position: absolute;
	top: clamp(8px, 1vw, 18px);
	left: clamp(8px, 2vw, 32px);
	z-index: 0;
	font-size: clamp(72px, 13vw, 200px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.01em;
	color: rgba(18, 35, 74, 0.045);
	pointer-events: none;
	user-select: none;
}

.home-news,
.home-news *,
.home-news *::before,
.home-news *::after {
	box-sizing: border-box;
}

.home-news__inner {
	position: relative;
	z-index: 2;
	width: var(--compt-content-width);
	max-width: none;
	margin-inline: auto;
}

.home-news__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(26px, 3vw, 40px);
}

.home-news__eyebrow {
	margin: 0 0 10px;
	color: var(--compt-color-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.home-news__title {
	margin: 0;
	color: #12234a;
	font-size: var(--compt-fs-section-title);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
}

.home-news__subtitle {
	margin: 12px 0 0;
	max-width: 620px;
	color: var(--compt-color-text-muted);
	font-size: var(--compt-fs-sm);
	line-height: 1.7;
}

.home-news__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: var(--compt-color-heading);
	font-size: var(--compt-fs-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.home-news__all span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.home-news__all:hover,
.home-news__all:focus-visible {
	color: var(--news-accent);
}

.home-news__all:hover span {
	transform: translate(2px, -2px);
}

.home-news__layout {
	--news-panel-height: clamp(360px, 34vw, 430px);
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	grid-template-rows: var(--news-panel-height);
	gap: clamp(16px, 2vw, 24px);
	align-items: stretch;
}

.home-news__layout--single {
	grid-template-columns: minmax(0, 1fr);
}

.home-news__feature {
	position: relative;
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.home-news__slides {
	position: relative;
	height: 100%;
}

.home-news__slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	overflow: hidden;
	border: 1px solid #e4eaf1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: scale(1.012);
	transition: opacity 0.55s ease, visibility 0.55s, transform 0.55s ease;
}

.home-news__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.home-news__media {
	position: relative;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #e9f1f8, #f8fafc);
}

.home-news__media--empty::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(80% 70% at 30% 20%, rgba(var(--compt-color-accent-rgb), 0.18), transparent 70%),
		linear-gradient(135deg, #e9f1f8, #f8fafc);
}

.home-news__media-link {
	display: block;
	width: 100%;
	height: 100%;
}

.home-news__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}

.home-news__slide.is-active:hover .home-news__image {
	transform: scale(1.04);
}

.home-news__tags {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.home-news__tag {
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.9);
	color: #16324a;
	font-size: 12px;
	line-height: 1.2;
	backdrop-filter: blur(6px);
}

.home-news__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(24px, 3vw, 36px);
	background: linear-gradient(135deg, #ffffff 0%, #f8fbfe 100%);
	box-shadow: inset 1px 0 0 #edf2f7;
}

.home-news__date {
	color: #7b8794;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.home-news__slide-title {
	margin: 14px 0 0;
	color: var(--compt-color-heading);
	font-size: clamp(20px, 2.1vw, 28px);
	font-weight: 700;
	line-height: 1.35;
}

.home-news__slide-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.home-news__slide-title a:hover,
.home-news__slide-title a:focus-visible {
	color: var(--news-accent);
}

.home-news__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 14px 0 0;
	color: var(--compt-color-text-muted);
	font-size: var(--compt-fs-sm);
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.home-news__read {
	margin-top: auto;
	padding-top: 18px;
	color: var(--news-accent);
	font-size: var(--compt-fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.home-news__read:hover,
.home-news__read:focus-visible {
	color: var(--compt-color-accent);
}

.home-news__dots {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	display: flex;
	gap: 6px;
}

.home-news__dot {
	width: 22px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d6e2;
	cursor: pointer;
	transition: background 0.2s ease;
}

.home-news__dot.is-active {
	background: var(--news-accent);
}

.home-news__dot:focus-visible {
	outline: 2px solid var(--compt-color-accent);
	outline-offset: 2px;
}

/* 右侧最新文章：固定高度，10 条内容由鼠标滚轮 / 触控板滚动查看。 */
.home-news__ticker {
	position: relative;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--compt-color-accent-rgb), 0.55) #e4ebf2;
	-webkit-overflow-scrolling: touch;
}

.home-news__ticker::-webkit-scrollbar {
	width: 6px;
}

.home-news__ticker::-webkit-scrollbar-track {
	border-radius: 999px;
	background: #e4ebf2;
}

.home-news__ticker::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(var(--compt-color-accent-rgb), 0.55);
}

.home-news__ticker::-webkit-scrollbar-thumb:hover {
	background: var(--compt-color-accent);
}

.home-news__ticker:focus-visible {
	outline: 2px solid rgba(var(--compt-color-accent-rgb), 0.6);
	outline-offset: 4px;
}

.home-news__ticker-track {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-news__ticker-item {
	margin: 0 0 12px;
	padding: 0;
}

.home-news__ticker-item:last-child {
	margin-bottom: 0;
}

.home-news__ticker-item a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid #e4eaf1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
	color: var(--compt-color-heading);
	text-decoration: none;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* 边框跟随指针：径向渐变仅保留 1px 边框区域，高亮落在鼠标附近 */
.home-news__ticker-item a::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: radial-gradient(140px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--compt-color-accent-rgb), 0.95), rgba(var(--compt-color-accent-rgb), 0) 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.home-news__ticker-item a:hover,
.home-news__ticker-item a:focus-visible {
	background: #f8fbfe;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.home-news__ticker-item a:hover::before,
.home-news__ticker-item a:focus-visible::before {
	opacity: 1;
}

.home-news__ticker-item .home-news__date {
	color: #8a94a3;
	font-size: 11.5px;
}

.home-news__ticker-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--compt-color-text-strong);
	font-size: var(--compt-fs-sm);
	font-weight: 500;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color 0.2s ease;
}

.home-news__ticker-item a:hover .home-news__ticker-title {
	color: var(--compt-color-accent-deep);
}

@media (max-width: 1024px) {
	.home-news__inner {
		width: calc(100% - 24px);
	}

	.home-news__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.home-news__feature {
		height: clamp(340px, 56vw, 420px);
	}

	.home-news__ticker {
		height: clamp(300px, 52vw, 360px);
		margin-top: 8px;
	}
}

@media (max-width: 767px) {
	.home-news__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.home-news__slide {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 200px) minmax(0, 1fr);
	}

	.home-news__feature {
		height: clamp(430px, 112vw, 520px);
	}

	.home-news__body {
		padding: 20px 20px 26px;
	}

	.home-news__excerpt {
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 520px) {
	.home-news {
		padding: 44px 0;
	}

	.home-news__ticker-item a {
		padding: 16px;
	}

	.home-news__tag {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-news__slide,
	.home-news__image,
	.home-news__ticker-item a,
	.home-news__ticker-item a::before {
		transition: none;
	}
}
