/* 商品部門（第五版 V5Depts）：页头里的跳转胶囊、每个部门一段，电脑上图片左右交替。 */

.fm-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
}

.fm-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius-pill);
	background: var(--fm-color-surface);
	color: var(--fm-color-primary);
	font-weight: 700;
	text-decoration: none;

	&:hover {
		border-color: var(--fm-color-accent);
		color: var(--fm-color-primary);
	}
}

.fm-depts {
	padding-block: 8px 48px;
}

.fm-dept {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-block: 32px;
	border-bottom: 1px solid var(--fm-color-line);
	scroll-margin-top: 16px;

	&:last-child {
		border-bottom: 0;
	}

	&:focus {
		outline: none;
	}
}

.fm-dept__img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: var(--fm-radius-card);
}

.fm-dept__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fm-dept__en {
	margin: 0;
	color: var(--fm-color-accent);
	font-size: 15px;
	font-weight: 700;
}

.fm-dept__title {
	margin: 0;
	color: var(--fm-color-primary);
	font-family: var(--fm-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.fm-dept__intro {
	margin: 0;
	color: var(--fm-color-text-lead);
	font-size: 16px;
	line-height: 1.8;
}

.fm-dept__link {
	align-self: flex-start;
	padding-block: 10px;
	font-weight: 700;
}

@media (min-width: 768px) {

	.fm-dept {
		flex-direction: row;
		gap: 36px;
		align-items: center;
		padding-block: 40px;
	}

	.fm-dept--reverse {
		flex-direction: row-reverse;
	}

	.fm-dept__img {
		flex: 1 1 50%;
		max-width: 560px;
		height: 320px;
	}

	.fm-dept__text {
		flex: 1 1 50%;
	}

	.fm-dept__title {
		font-size: 40px;
	}

	.fm-dept__intro {
		font-size: 17px;
	}
}
