/* JWMotor home — qizhi-style MEDIA carousel (not news archive grid) */

.jw-media {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #f7f8fa;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	padding: 24px 0 72px;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

.jw-media__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	gap: 32px;
	box-sizing: border-box;
}

.jw-media__side {
	flex: 0 0 140px;
	padding-top: 8px;
}

.jw-media__heading {
	margin: 0 0 12px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #111;
}

.jw-media__rule {
	width: 72px;
	height: 4px;
	background: #d7263d;
	margin-bottom: 28px;
}

.jw-media__nav {
	display: flex;
	gap: 10px;
}

.jw-media__arrow {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.jw-media__arrow svg {
	width: 26px;
	height: 26px;
	display: block;
	flex-shrink: 0;
}

.jw-media__arrow--prev {
	background: #e8eaed;
	color: #555;
}

.jw-media__arrow--next {
	background: #2f2f2f;
	color: #fff;
}

.jw-media__arrow:hover {
	filter: brightness(0.95);
}

.jw-media__stage {
	flex: 1;
	min-width: 0;
	position: relative;
}

.jw-media__watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-30%, -55%);
	font-size: clamp(48px, 8vw, 96px);
	font-weight: 800;
	color: rgba(0, 0, 0, 0.06);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.jw-media__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 8px 4px 16px;
	position: relative;
	z-index: 1;
	scrollbar-width: none;
}

.jw-media__track::-webkit-scrollbar {
	display: none;
}

.jw-media__slide {
	flex: 0 0 calc(33.333% - 19px);
	min-width: 280px;
	max-width: 360px;
	scroll-snap-align: start;
	background: transparent;
}

.jw-media__thumb {
	display: block;
	background: #fff;
	padding: 24px;
	box-sizing: border-box;
	line-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.jw-media__thumb img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	display: block;
}

.jw-media__title {
	margin: 16px 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
}

.jw-media__title a {
	color: #111;
	text-decoration: none;
}

.jw-media__title a:hover {
	color: #c22622;
}

.jw-media__date {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #888;
}

.jw-media__clock {
	flex-shrink: 0;
	color: #999;
}

@media (max-width: 992px) {
	.jw-media__inner {
		flex-direction: column;
		gap: 20px;
	}

	.jw-media__side {
		flex: none;
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px;
	}

	.jw-media__nav {
		margin-left: auto;
	}

	.jw-media__heading {
		font-size: 32px;
		margin: 0;
	}

	.jw-media__rule {
		margin: 0;
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		height: auto;
		background: none;
	}

	.jw-media__rule::after {
		content: "";
		display: block;
		width: 72px;
		height: 4px;
		background: #d7263d;
	}

	.jw-media__slide {
		flex: 0 0 78%;
		min-width: 260px;
	}
}

@media (max-width: 640px) {
	.jw-media {
		padding: 40px 0 48px;
	}

	.jw-media__inner {
		padding: 0 16px;
	}

	.jw-media__slide {
		flex: 0 0 88%;
	}
}
