/**
 * 首页资讯滚动条（“香港服务器”区块上方）
 * 左侧“资讯”固定不动，右侧 10 条最新标题无缝向左滚动并填满剩余宽度。
 * 白底小卡片（白底 + 细边框，直角与下方区块标题对齐），灰底上形成层次。
 */
.home-news-ticker {
	width: 100%;
	box-sizing: border-box;
	/* 上方借掉容器的部分 padding；下方与“香港服务器”标题行留出呼吸间距 */
	margin: -4px 0 13px;
	padding: 5px 14px;
	overflow: hidden;
	line-height: 1.4;
	background: var(--trial-surface, var(--c-bg-card, #fff));
	border: 1px solid var(--trial-border, var(--c-line, #e2e8f0));
	box-shadow: var(--s-xs, 0 1px 3px rgba(15, 23, 42, 0.05));
}

.home-news-ticker__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

/* 固定在左侧的“资讯”标签 */
.home-news-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--c-action, #ea580c);
	user-select: none;
}
.home-news-ticker__label .fas {
	font-size: 0.75rem;
}

/* 滚动区：占满标签右侧的全部剩余宽度 */
.home-news-ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}

.home-news-ticker__track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	width: max-content;
	will-change: transform;
	animation: homeNewsTickerScroll 60s linear infinite;
}
.home-news-ticker__viewport:hover .home-news-ticker__track,
.home-news-ticker__viewport:focus-within .home-news-ticker__track {
	animation-play-state: paused;
}

@keyframes homeNewsTickerScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* 每条尾部跟分隔点：两份列表拼接处间距一致，循环无断档 */
.home-news-ticker__list {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.home-news-ticker__item {
	display: inline-flex;
	align-items: center;
}
.home-news-ticker__item::after {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--c-line-strong, #cbd5e1);
	margin: 0 14px;
	flex-shrink: 0;
}
.home-news-ticker__link {
	font-size: 0.8125rem;
	color: var(--c-text-2, #475569);
	text-decoration: none;
	transition: color 0.15s ease;
}
.home-news-ticker__link:hover {
	color: var(--c-action, #ea580c);
}

/* 减少动态效果时停止滚动 */
@media (prefers-reduced-motion: reduce) {
	.home-news-ticker__track {
		animation: none;
	}
}

@media (max-width: 767px) {
	.home-news-ticker__inner {
		gap: 8px;
	}
	.home-news-ticker__label,
	.home-news-ticker__link {
		font-size: 0.75rem;
	}
	.home-news-ticker__item::after {
		margin: 0 10px;
	}
}
