.wjc-cc {
	position: relative;
	width: 100%;
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

.wjc-cc-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wjc-cc-track::-webkit-scrollbar {
	display: none;
}

.wjc-cc-item {
	position: relative;
	flex: 0 0 calc(var(--wjc-cc-basis-desktop) - 16px * 4 / 5);
	scroll-snap-align: start;
	aspect-ratio: 4 / 3;
	min-height: 0;               /* ← 新加这一行，防止标题文字把卡片撑高 */
	border-radius: 10px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #ffffff;
}

.wjc-cc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.32);
	transition: background 0.3s ease;
}

.wjc-cc-item:hover .wjc-cc-overlay {
	background: rgba(0, 0, 0, 0.55);
}

.wjc-cc-title {
	position: relative;
	z-index: 2;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	padding: 0 16px;
	transition: transform 0.3s ease;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.wjc-cc-item:hover .wjc-cc-title {
	transform: translateY(-14px);
}

.wjc-cc-view-btn {
	position: absolute;
	z-index: 2;
	bottom: 20px;
	left: 50%;
	transform: translate(-50%, 12px);
	padding: 7px 22px;
	border: 1px solid #ffffff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.wjc-cc-item:hover .wjc-cc-view-btn {
	opacity: 1;
	transform: translate(-50%, 0);
}

.wjc-cc-view-btn:hover {
	background: #ffffff;
	color: #111827;
}

/* ---------- 箭头 ---------- */
.wjc-cc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	color: #111827;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: background 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}

.wjc-cc-arrow:hover {
	background: #111827;
	color: #ffffff;
}

.wjc-cc-arrow.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.wjc-cc-arrow-prev {
	left: -8px;
}

.wjc-cc-arrow-next {
	right: -8px;
}

/* ---------- 响应式列数 ---------- */
@media (max-width: 1024px) {
	.wjc-cc-item {
		flex-basis: calc(var(--wjc-cc-basis-tablet) - 16px * 2 / 3);
	}
}

@media (max-width: 600px) {
	.wjc-cc-track {
		gap: 10px;
	}

	.wjc-cc-item {
		flex-basis: calc(var(--wjc-cc-basis-mobile) - 10px / 2);
	}

	.wjc-cc-title {
		font-size: 14px;
	}

	.wjc-cc-view-btn {
		padding: 6px 16px;
		font-size: 11px;
		bottom: 14px;
	}

	.wjc-cc-arrow {
		width: 32px;
		height: 32px;
	}

	.wjc-cc-arrow-prev {
		left: -4px;
	}

	.wjc-cc-arrow-next {
		right: -4px;
	}
}
