:root {
	--ls-red: #b9081d;
	/* Longsys 品牌红 */
	--ls-dark: #1a1a1a;
	--ls-gray: #f5f7fa;
	--ls-border: #e1e1e1;
	--text-main: #333333;
	--text-sub: #666666;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft Yahei", sans-serif;
	color: var(--text-main);
	background-color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
	/* 防止横向滚动条 */
}

a {
	text-decoration: none;
	color: inherit;
	transition: 0.3s;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	display: block;
}

/* 通用容器 */
.ls-container {
	width: 92%;
	max-width: 1800px;
	margin: 0 auto;
	position: relative;
}

/* ===========================
   1. Header (头部导航)
   =========================== */
header {
	background: #07070f;
	height: 100px;
	position: sticky;
	top: 0;
	z-index: 1000;
	/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
	/* border-bottom: 1px solid #eee; */
}

.header-inner {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 26px;
	font-weight: 800;
	color: var(--ls-red);
	letter-spacing: -1px;
	display: flex;
	align-items: center;
	/* background-color: #fff; */
}

.logo img {
	width: 220px;
	height: 100%;
}

.nav-menu {
	display: flex;
	gap: 20px;
}

.nav-menu a {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: #ffffff;
	padding: 28px 10px;
	position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
	font-weight: 700;
	color: var(--ls-red);
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 8px;
	width: 80%;
	height: 3px;
	background: var(--ls-red);
	transform: scaleX(0);
	transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
	transform: scaleX(1);
}

.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.icon-btn {
	color: #666;
	font-size: 18px;
	cursor: pointer;
}

.icon-btn:hover {
	color: var(--ls-red);
}

.contact-btn-red {
	background: var(--ls-red);
	color: #fff !important;
	padding: 8px 24px !important;
	font-size: 14px !important;
	border-radius: 2px;
	font-weight: bold;
	transition: 0.3s;
}

.contact-btn-red:hover {
	background: #900616;
}

.contact-btn-red::after {
	display: none !important;
}

/* =========================================
   移动端适配
   ========================================= */

/* 1. PC 端默认状态 (大于 768px) */
/* 隐藏汉堡按钮 */
.mobile-menu-btn {
	display: none;
}

/* 隐藏移动端专属菜单项 */
.mobile-only-btn {
	display: none;
}

.mobile-nav-wrap {
	display: block !important;
	position: static;
	height: auto;
	background: transparent;
	opacity: 1;
	visibility: visible;
	max-height: none;
}

@media (max-width: 768px) {
	.logo img {
		width: 160px;
		height: 100%;
	}

	.header-inner {
		padding: 0 20px;
		position: relative;
	}

	.mobile-menu-btn {
		display: block;
		font-size: 24px;
		color: #c1c1c1;
		cursor: pointer;
		padding: 10px;
	}

	.pc-only {
		display: none !important;
	}

	.mobile-nav-wrap {
		position: absolute;
		top: 100px;
		right: -18px;
		width: 50%;
		background: #fff;
		z-index: 9999;
		max-height: 0;
		opacity: 0;
		visibility: hidden;
		overflow: hidden;
		transition: all 0.4s ease-in-out;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		font-size: 16px;
	}

	.mobile-nav-wrap.open {
		max-height: 600px;
		opacity: 1;
		visibility: visible;
	}

	/* 菜单列表垂直排列 */
	.nav-menu {
		flex-direction: column;
		gap: 0;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	.nav-menu li {
		width: 100%;
		text-align: center;
		border-bottom: 1px solid #f5f5f5;
	}

	.nav-menu a {
		display: block;
		padding: 6px 0;
		font-size: 16px;
		width: 100%;
		color: #333;
	}

	.nav-menu a:hover {
		background: #f9f9f9;
		color: var(--ls-red);
	}

	.nav-menu a::after {
		display: none;
	}

	.mobile-only-btn {
		display: block;
	}

	.mobile-only-btn a {
		color: var(--ls-red) !important;
		font-weight: bold;
	}
}

/* ===========================
   2. Banner (纵向轮播)
   =========================== */
.hero-banner {
	height: 680px;
	position: relative;
	overflow: hidden;
	/* 关键：隐藏超出的slide */
	background: #000;
}

.vertical-slider-track {
	width: 100%;
	height: 100%;
	/* JS将控制 transform: translateY(...) */
	transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.v-slide {
	width: 100%;
	height: 100%;
	/* 每一屏占满容器高度 */
	position: relative;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

.slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}

.banner-content {
	position: relative;
	z-index: 2;
	color: #fff;
	max-width: 1800px;
	padding-left: 40px;
	border-left: 6px solid var(--ls-red);
	/* Longsys 风格红条 */
}

/* Banner 文字排版设计 */
.b-sub {
	display: block;
	font-size: 16px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 15px;
	font-weight: 600;
}

.b-title {
	font-size: 56px;
	line-height: 1.1;
	font-weight: 700;
	margin-bottom: 25px;
}

.b-title span {
	color: var(--ls-red);
}

/* 标题中的高亮色 */
.b-desc {
	font-size: 20px;
	line-height: 1.6;
	font-weight: 300;
	margin-bottom: 40px;
	color: #ddd;
}

.ls-btn {
	display: inline-block;
	padding: 12px 40px;
	background: var(--ls-red);
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	border: 1px solid var(--ls-red);
}

.ls-btn:hover {
	background: transparent;
	color: var(--ls-red);
}

/* 纵向指示点 */
.v-pagination {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.v-dot {
	width: 4px;
	height: 25px;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: 0.3s;
}

.v-dot.active {
	background: var(--ls-red);
	height: 40px;
}

@media (max-width: 768px) {
	.hero-banner {
		height: 300px;
	}

	.b-sub {
		font-size: 14px;
		margin-bottom: 10px;
		font-weight: 300;
	}

	.b-title {
		font-size: 36px;
		line-height: 1.1;
		font-weight: 700;
		margin-bottom: 15px;
	}

	/* 标题中的高亮色 */
	.b-desc {
		font-size: 16px;
		line-height: 1.6;
		font-weight: 300;
		margin-bottom: 20px;
		color: #ddd;
	}

	.ls-btn {
		display: inline-block;
		padding: 10px 20px;
		background: var(--ls-red);
		color: #fff;
		font-weight: bold;
		font-size: 12px;
		border: 1px solid var(--ls-red);
	}

	/* 纵向指示点 */
	.v-pagination {
		position: absolute;
		right: 40px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 10;
		display: flex;
		flex-direction: column;
		gap: 15px;
	}
}

/* ===========================
   3. 产品展示 (横向轮播)
   =========================== */
.ls-section {
	padding: 90px 0;
}

.bg-gray {
	background-color: var(--ls-gray);
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header h2 {
	font-size: 36px;
	font-weight: 700;
	color: #222;
	margin-bottom: 10px;
}

.section-header p {
	color: #888;
	font-size: 16px;
}

.carousel-wrapper {
	position: relative;
	overflow: hidden;
	/* 隐藏溢出 */
	padding: 20px;
}

.carousel-track {
	display: flex;
	gap: 30px;
	transition: transform 0.5s ease;
}

.product-card {
	min-width: 380px;
	/* 固定宽度确保轮播 */
	background: #fff;
	border: 1px solid #eee;
	transition: 0.3s;
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
	border-color: transparent;
}

.p-img {
	height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 20px;
}

.p-img img {
	max-height: 100%;
	max-width: 80%;
	transition: 0.3s;
}

.product-card:hover .p-img img {
	transform: scale(1.1);
}

.p-info {
	padding: 25px;
	border-top: 1px solid #f5f5f5;
}

.p-info h3 {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 10px;
	color: #222;
}

.p-info p {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

.p-tag {
	display: inline-block;
	background: #f0f0f0;
	color: #666;
	font-size: 12px;
	padding: 2px 8px;
	margin-bottom: 10px;
	border-radius: 2px;
}

/* 轮播控制按钮 */
.nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	color: #333;
	transition: 0.3s;
}

.nav-btn:hover {
	background: var(--ls-red);
	color: #fff;
}

.prev-btn {
	left: 0px;
}

.next-btn {
	right: 0px;
}

@media (max-width: 768px) {

	.nav-btn {
		display: none !important;
	}

	.carousel-wrapper {
		width: 100%;
		padding: 0;
		overflow: hidden;
	}

	.carousel-track {
		display: flex;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		transform: none !important;
		width: 100%;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 20px;
	}

	.carousel-track::-webkit-scrollbar {
		display: none;
	}

	.product-card {
		min-width: 88%;
		width: 88%;
		scroll-snap-align: center;
		border: 1px solid #eee;
		box-shadow: none;
		background: transparent;
		margin-right: 15px;
	}
	.product-card:last-child{
		margin-right: 0;
	}

	.product-card .p-img {
		background: #fff;
		margin: 0 5px;
		border-bottom: 1px solid #eee;
	}

	.product-card .p-info {
		margin: 0 5px;
		background: #fff;
		border-top: none;
	}

	.p-img {
		height: 180px;
	}

	
}

/* ===========================
   4. 解决方案 (横向图文轮播)
   =========================== */
.solution-slider-wrapper {
	position: relative;
	overflow: hidden;
}

.solution-track {
	display: flex;
	transition: transform 0.6s ease-in-out;
}

.solution-slide {
	min-width: 100%;
	/* 一次显示一个 */
	display: flex;
	background: #fff;
	border: 1px solid #eee;
}

.sol-img {
	flex: 1;
	min-height: 400px;
}

.sol-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sol-text {
	flex: 1;
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sol-icon {
	font-size: 40px;
	color: var(--ls-red);
	margin-bottom: 20px;
}

.sol-text h3 {
	font-size: 28px;
	margin-bottom: 20px;
	font-weight: 700;
}

.sol-text p {
	font-size: 16px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 30px;
}

.link-text {
	font-weight: bold;
	color: var(--ls-red);
}

.sol-dots {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.s-dot {
	width: 12px;
	height: 12px;
	background: #ccc;
	border-radius: 50%;
	cursor: pointer;
	transition: 0.3s;
}

.s-dot.active {
	background: var(--ls-red);
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.sol-img {
		min-height: 200px;
	}

	.sol-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.sol-text {
		padding: 30px;
	}

	.sol-icon {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.sol-text h3 {
		font-size: 18px;
		margin-bottom: 10px;
		font-weight: 700;
	}

	.sol-text p {
		font-size: 14px;
		color: #666;
		line-height: 1.8;
		margin-bottom: 20px;
	}

	.sol-dots {
		gap: 10px;
		margin-top: 20px;
	}

	.s-dot {
		width: 10px;
		height: 10px;
	}

}

/* ===========================
   5. 关于我们 (Stats)
   =========================== */
.stats-row {
	/* 列间距 */
	display: flex;
	justify-content: space-between;
	text-align: center;
	padding: 0 50px;
}

.stat-num {
	font-size: 60px;
	color: var(--ls-red);
	font-weight: 800;
	font-family: Impact, sans-serif;
}

.stat-desc {
	font-size: 16px;
	color: #333;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
}

@media (max-width: 768px) {
	.stats-row {
		flex-wrap: wrap;
		padding: 0 20px;
		gap: 20px;
		justify-content: center;
	}

	.stats-row .flex-art {
		width: calc(50% - 10px);
		box-sizing: border-box;
	}

	.stat-num {
		font-size: 26px;
	}

	.stat-desc {
		font-size: 14px;
	}

}

/* ===========================
   6. 新闻动态
   =========================== */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.news-item {
	background: #fff;
	border: 1px solid #eee;
	transition: 0.3s;
}

.news-item:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-5px);
}

.n-img {
	height: 200px;
	overflow: hidden;
}

.n-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}

.news-item:hover .n-img img {
	transform: scale(1.1);
}

.n-body {
	padding: 25px;
}

.n-date {
	color: #999;
	font-size: 12px;
	margin-bottom: 10px;
	display: block;
}

.n-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 12px;
	line-height: 1.4;
	color: #333;
}

.n-link {
	color: var(--ls-red);
	font-size: 13px;
	font-weight: bold;
}

@media (max-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 20px;
	}

	.n-img {
		height: 160px;
		overflow: hidden;
	}

	.n-body {
		padding: 15px;
	}

	.n-title {
		font-size: 14px;
		margin-bottom: 8px;
	}
}

/* Footer */
footer {
	background: #151515;
	color: #999;
	padding: 60px 0 20px;
	font-size: 14px;
}

.f-grid {
	display: grid;
	grid-template-columns: 0.3fr 1.0fr 0.5fr 0.5fr 1.0fr;
	gap: 40px;
	padding-bottom: 40px;
	padding-left: 40px;
	border-bottom: 1px solid #333;
}

.f-col h5 {
	color: #fff;
	margin-bottom: 25px;
	font-size: 16px;
	padding-left: 10px;
	border-left: 3px solid var(--ls-red);
}

.f-col ul li {
	margin-bottom: 10px;
}

.f-col a:hover {
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	footer {
		padding: 40px 0 20px;
		/* 减少上边距 */
	}

	.f-grid {
		grid-template-columns: repeat(2, 1fr);
		/* 改为两列布局 */
		gap: 30px 20px;
		/* 行间距30px，列间距20px */
		padding: 0 20px 30px;
		/* 调整内边距 */
		border-bottom: 1px solid #333;
	}

	.f-col {
		padding: 0 10px;
		/* 给每列添加内边距 */
	}

	/* 将第一列和第二列放在同一行 */
	.f-col:first-child {
		grid-column: 1 / 2;
		text-align: center;
		/* 图片居中 */
	}

	.f-col:nth-child(2) {
		grid-column: 2 / 3;
	}

	.f-col h5 {
		font-size: 15px;
		margin-bottom: 15px;
	}

	.f-col ul li {
		margin-bottom: 8px;
		font-size: 13px;
	}
}

/* 产品页面 */

.container {
	display: flex;
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px;
	font-size: 14px;
}

/* 左侧导航栏样式 */
.sidebar {
	width: 220px;
	background: white;
	margin-right: 20px;
}

.sidebar-title {
	padding: 15px;
	font-weight: bold;
	border-bottom: 1px solid #eee;
	color: #333;
}

.nav-item {
	padding: 12px 15px;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: all 0.2s;
}

.nav-item:hover {
	background-color: #f9f9f9;
}

.nav-item.active {
	border-left-color: var(--ls-red);
	background-color: #f0f7ff;
	color: var(--ls-red);
	font-weight: bold;
}

.sub-nav {
	padding-left: 20px;
	display: none;
}

.nav-item.active+.sub-nav {
	display: block;
}

.sub-nav-item {
	padding: 8px 0;
	color: #666;
	cursor: pointer;
}

.sub-nav-item:hover {
	color: var(--ls-red);
}

/* 右侧内容区样式 */
.content {
	flex: 1;
}

/* 面包屑导航 */
.breadcrumb {
	background: white;
	padding: 15px 20px;
	margin-bottom: 15px;
}

.breadcrumb a {
	color: #666;
}

.breadcrumb a:hover {
	color: var(--ls-red);
}

.breadcrumb span {
	color: #999;
	margin: 0 5px;
}

/* 筛选标签 */
.filter-tabs {
	background: white;
	padding: 15px 20px;
	margin-bottom: 20px;
}

.filter-title {
	display: inline-block;
	margin-right: 15px;
	font-weight: bold;
}

.filter-options {
	display: inline-block;
}

.filter-option {
	display: inline-block;
	padding: 5px 12px;
	margin-right: 10px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.filter-option:hover {
	background-color: #f0f7ff;
	color: var(--ls-red);
}

.filter-option.active {
	background-color: var(--ls-red);
	color: white;
}

/* 产品列表 */
.product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 70px;
}

.product-card {
	background: white;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
	height: 180px;
	//padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-info {
	padding: 15px;
}

.product-name {
	font-weight: bold;
	margin-bottom: 8px;
	font-size: 16px;
}

.product-desc {
	color: #666;
	font-size: 14px;
	line-height: 1.4;
	color: #666;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		margin-right: 0;
		margin-bottom: 20px;
	}

	.product-list {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

@media (max-width: 480px) {
	.product-list {
		grid-template-columns: 1fr;
	}

	.filter-options {
		display: block;
		margin-top: 10px;
	}
}

/* =========================================
   右下角悬浮侧边栏 (Floating Sidebar)
   ========================================= */
.float-bar {
	position: fixed;
	right: 10px;
	bottom: 100px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.float-item {
	width: 50px;
	height: 50px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	/* 用于定位弹出的内容 */
	transition: all 0.3s ease;
	color: #666;
	font-size: 20px;
}

/* 鼠标移入效果：背景变红，图标变白 */
.float-item:hover {
	background: var(--ls-red);
	color: #fff;
	transform: translateX(-5px);
	/* 轻微左移增强交互感 */
}

/* 弹出框通用样式 (Popups) */
.pop-content {
	position: absolute;
	right: 65px;
	/* 在按钮左侧显示 */
	top: 50%;
	transform: translateY(-50%) translateX(20px);
	/* 初始状态：稍微靠右且透明 */
	background: #fff;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 15px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	white-space: nowrap;
	/* 防止文字换行 */
}

/* 小三角箭头 */
.pop-content::after {
	content: '';
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 6px solid #fff;
}

/* 鼠标移入时显示弹出框 */
.float-item:hover .pop-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
	/* 滑入到位 */
}

/* 具体的弹出内容样式 */
.phone-pop {
	font-size: 16px;
	font-weight: bold;
	color: var(--ls-red);
}

.qr-pop {
	text-align: center;
}

.qr-pop img {
	width: 100%;
	height: 100%;
	display: block;
	margin-bottom: 5px;
}

.qr-pop span {
	font-size: 12px;
	color: #999;
}

.float-item.active {
	background: var(--ls-red);
	color: #fff;
}

.float-item.active .pop-content {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(-50%) translateX(0) !important;
	display: block !important;
}

/* 返回顶部按钮默认隐藏，JS控制显示 */
#back-to-top {
	display: none;
}

#back-to-top.show {
	display: flex;
	animation: fadeUp 0.3s;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 移动端适配 */
@media (max-width: 768px) {
	.info-grid {
		grid-template-columns: 1fr;
	}

	.form-row {
		flex-direction: column;
		gap: 15px;
	}

	.float-bar {
		right: 10px;
		bottom: 80px;
	}

	/* 移动端位置微调 */
	.pop-content {
		display: none !important;
	}

	/* 移动端不显示悬浮详情，防止遮挡 */
}