/* ========== 首页样式 ========== */

/* ---------- 英雄横幅 (Swiper) ---------- */
.hero {
	position: relative;
	width: 100%;
	min-height: 420px;
	overflow: hidden;
}

.hero-swiper {
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.hero-swiper .swiper-wrapper {
	align-items: stretch;
}

.hero-swiper .swiper-slide {
	height: auto;
	min-height: 420px;
}

.hero-slide {
	width: 100%;
	min-height: 420px;
	position: relative;
}

.hero-slide img {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.hero-dots-wrap {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 2;
	pointer-events: none;
}

.hero-dots-wrap .hero-dots {
	pointer-events: auto;
	position: static;
	transform: none;
}

/* Swiper 分页圆点样式（与设计一致） */
.hero .hero-dots.swiper-pagination-bullets {
	display: flex;
	gap: 10px;
}

.hero .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	opacity: 1;
	transition: background var(--transition), transform var(--transition);
}

.hero .swiper-pagination-bullet:hover {
	background: rgba(255,255,255,0.8);
}

.hero .swiper-pagination-bullet-active {
	background: #fff;
	transform: scale(1.2);
}

/* 使用自定义图标，隐藏 Swiper 默认箭头 */
.hero .swiper-button-next::after,
.hero .swiper-button-prev::after {
	display: none;
}

.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.25rem;
	opacity: 0.9;
	z-index: 2;
}

.hero-arrow:hover {
	opacity: 1;
	color: #fff;
}

.hero-prev {
	left: 24px;
}

.hero-next {
	right: 24px;
}

.hero-visual {
	flex-shrink: 0;
	width: 280px;
	height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-product {
	width: 200px;
	height: 260px;
	background: linear-gradient(145deg, #c1121f 0%, #9d0208 100%);
	border-radius: 4px;
	box-shadow: 8px 12px 24px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	font-weight: 700;
}

.hero-product-label {
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.hero-product-brand {
	font-size: 1.5rem;
	letter-spacing: 0.1em;
}

/* ---------- 产品分类网格：5 列铺满屏幕宽度，无间隙，文字叠在图上 ---------- */
.category-grid {
	padding: 0;
}

.category-inner {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
}

.category-card {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/4;
	text-decoration: none;
	color: #fff;
}

/* 黑色半透明遮罩层 */
.category-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
	pointer-events: none;
}

.category-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	vertical-align: middle;
}

/* 文字叠在图片上：居中显示，白色加粗，带阴影 */
.category-label {
	position: absolute;
	text-align: center;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.1rem;
	font-weight: 500;
	color: #fff;
	pointer-events: none;
	z-index: 2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
	.hero,
	.hero-swiper,
	.hero-slide,
	.hero-slide img {
		min-height: 380px;
	}
}

@media (max-width: 768px) {
	/* hero 区移动端适配 */
	.hero {
		min-height: 280px;
	}
	.hero-swiper {
		min-height: 280px;
	}
	.hero-swiper .swiper-slide {
		min-height: 280px;
	}
	.hero-slide {
		min-height: 280px;
	}
	.hero-slide img {
		min-height: 280px;
	}
	.hero-dots-wrap {
		bottom: 16px;
	}
	.hero .hero-dots.swiper-pagination-bullets {
		gap: 8px;
	}
	.hero .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}
	.hero-arrow {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.hero-prev {
		left: 12px;
	}
	.hero-next {
		right: 12px;
	}

	.category-inner {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.category-grid {
		padding: 0;
	}
}

@media (max-width: 480px) {
	.hero,
	.hero-swiper,
	.hero-slide,
	.hero-slide img {
		min-height: 220px;
	}
	.hero-dots-wrap {
		bottom: 12px;
	}
	.hero .swiper-pagination-bullet {
		width: 6px;
		height: 6px;
	}
	.hero .hero-dots.swiper-pagination-bullets {
		gap: 6px;
	}
	.hero-arrow {
		width: 36px;
		height: 36px;
		font-size: 0.9rem;
	}
	.hero-prev {
		left: 8px;
	}
	.hero-next {
		right: 8px;
	}
}

