@charset "utf-8";
/* =========================================================
   equip-scroll.css —— 首页尾部「装备展示」横向无缝滚动
   纯 CSS 动画实现，不依赖 Swiper / jQuery
   ========================================================= */

.equip-show{
	--equip-img-h: 392px;
	--equip-gap: 22px;
	position: relative;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 6px 0 40px;
	box-sizing: border-box;
	text-align: center;
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* ---------- 外框 ---------- */
.equip-panel{
	position: relative;
	padding: 16px 0 18px;
	border: 1px solid rgba(255, 199, 92, 0.32);
	border-radius: 16px;
	background:
		radial-gradient(120% 130% at 50% -10%, rgba(150, 35, 0, 0.55) 0%, rgba(64, 10, 0, 0.72) 45%, rgba(20, 3, 0, 0.88) 100%);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.6) inset,
		0 24px 48px -26px rgba(0, 0, 0, 0.95),
		0 0 60px rgba(255, 120, 0, 0.08) inset;
	overflow: hidden;
}

/* ---------- 标题 ---------- */
/* 背景大图上已经有「装备展示」美术字，这里只保留给读屏和搜索引擎用的标题 */
.equip-sr-only{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.equip-sub{
	margin: 0;
	color: #e9c98d;
	font-size: 13px;
	letter-spacing: 2px;
	opacity: 0.85;
}

/* ---------- 滚动可视窗口 ---------- */
.equip-viewport{
	position: relative;
	margin-top: 10px;
	padding: 10px 0 14px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}

.equip-track{
	display: flex;
	width: max-content;
	animation: equip-marquee var(--equip-duration, 60s) linear infinite;
	will-change: transform;
}

/* 鼠标悬停 / 键盘聚焦时暂停，方便看清与点击 */
.equip-viewport:hover .equip-track,
.equip-viewport:focus-within .equip-track{
	animation-play-state: paused;
}

/* JS 会再复制一份卡片，配合 -50% 实现首尾相接的无缝循环 */
@keyframes equip-marquee{
	from{ transform: translate3d(0, 0, 0); }
	to{ transform: translate3d(-50%, 0, 0); }
}

/* ---------- 单张卡片 ---------- */
.equip-item{
	display: block;
	flex: 0 0 auto;
	margin: 0 var(--equip-gap) 6px 0;
	padding: 6px;
	border: 1px solid rgba(255, 196, 88, 0.4);
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(86, 20, 4, 0.92), rgba(22, 4, 0, 0.96));
	box-shadow: 0 10px 22px -14px #000, 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
	cursor: zoom-in;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
	-webkit-tap-highlight-color: transparent;
}

.equip-item img{
	display: block;
	height: var(--equip-img-h);
	width: auto;
	border-radius: 8px;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.equip-item:hover{
	transform: translateY(-6px);
	border-color: #ffd76a;
	box-shadow:
		0 18px 30px -16px #000,
		0 0 22px rgba(255, 160, 40, 0.28),
		0 0 0 1px rgba(255, 215, 102, 0.35) inset;
}

.equip-item:active{
	transform: translateY(-2px) scale(0.99);
}

/* ---------- 大图预览弹层 ---------- */
.equip-lightbox{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 1, 0, 0.92);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.equip-lightbox[hidden]{
	display: none;
}

.equip-lightbox img{
	width: auto;
	height: auto;
	max-width: min(92vw, 520px);
	max-height: 86vh;
	border: 2px solid rgba(255, 199, 92, 0.55);
	border-radius: 12px;
	box-shadow: 0 0 70px rgba(255, 140, 0, 0.25), 0 30px 60px -20px #000;
	background: #1a0300;
}

.equip-lb-btn{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 199, 92, 0.45);
	border-radius: 50%;
	background: rgba(40, 6, 0, 0.75);
	color: #ffd766;
	font-family: Arial, sans-serif;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.equip-lb-btn:hover{
	background: rgba(130, 28, 0, 0.92);
	color: #fff6d5;
}

.equip-lb-prev{ left: 22px; }
.equip-lb-next{ right: 22px; }

.equip-lb-close{
	top: 18px;
	right: 18px;
	transform: none;
	width: 42px;
	height: 42px;
	font-size: 22px;
}

.equip-lb-count{
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	color: #e9c98d;
	font-size: 13px;
	letter-spacing: 2px;
}

/* ---------- 自适应高度 ---------- */
@media (max-width: 1440px){
	.equip-show{ --equip-img-h: 360px; }
}

@media (max-width: 1100px){
	.equip-show{ --equip-img-h: 300px; }
}

@media (max-width: 820px){
	.equip-show{ --equip-img-h: 240px; --equip-gap: 14px; }
	.equip-sub{ font-size: 12px; letter-spacing: 1px; }
	.equip-lb-prev{ left: 8px; }
	.equip-lb-next{ right: 8px; }
}

/* 用户关闭动画时改为手动横向滑动 */
@media (prefers-reduced-motion: reduce){
	.equip-track{ animation: none; }
	.equip-viewport{
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
	}
	.equip-item{ scroll-snap-align: start; }
	.equip-item:hover{ transform: none; }
}
