* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body, html {
	width: 100%;
	font-family: Arial, sans-serif;
	background-color: black;
}

.container-tool {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	width: 100%;
	main-height: 100vh;
	/*border: 1px solid #ccc;*/
}

.outer-container-tool {
	background-color: white;
	height: 36vh;
	border-bottom-left-radius: 120px;
	border-bottom-right-radius: 120px;
	padding: 20px;
}

.header-tool {
	/*background-color: white;*/
	/*height: 45vh;*/
	border-bottom-left-radius: 120px;
	border-bottom-right-radius: 120px;
	/*padding: 20px;*/
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9%;
	margin-bottom: 2%;
}

.logo-tool {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-left: 2.5%;
	/*border: 2px solid black;*/
}

.logo-image-tool {
	width: 220px;
	height: 60px;
	/*border: 2px solid #007bff;*/
}

.logo-text-tool {
	font-weight: bold;
	font-size: 20px;
	margin-top: 5px;
}

.search-tool {
	position: relative;
	width: 30vw;
	/*border: 2px solid #007bff;*/
}

.search-tabs-tool {
	display: flex;
	justify-content: space-around;
	margin-bottom: 10px;
}

.search-tab-tool {
	transition: border-color 0.3s ease;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px 10px;
	border-bottom: 2px solid transparent;
	font-weight: bold;
	font-size: 16px;
}

.search-tab-tool.active-tool {
	border-bottom: 5px solid black;
}

.search-input-tool {
	width: 100%;
	height: 6vh;
	padding: 10px;
	border: 4px solid black;
	border-radius: 45px;
	outline: none;
}

.search-button-tool {
	position: absolute;
	right: 10px;
	top: 10px;
	background: none;
	border: none;
	cursor: pointer;
}

.carousel-tool {
	width: 100%;
	max-width: 25%;
	height: 150px;
	overflow: hidden;
	border: 3px solid black;
	border-radius: 5px;
	position: relative;
	margin-left: 1%;
}

.carousel-inner-tool {
	display: flex;
	flex-direction: column; /* 更改为垂直布局 */
	animation: carouselVertical 10s infinite linear;
	height: 100%; /* 确保内部容器的高度适合动画 */
}

.carousel-item-tool {
	min-width: 100%;
	text-align: center;
	padding: 10px;
	border-bottom: 1px solid #ccc;
	font-size: 18px;
	color: #ccc;
}

@keyframes carouselVertical {
	0% {
		transform: translateY(100%);
	}
	/* 开始时在底部 */
	100% {
		transform: translateY(-100%);
	}
	/* 结束时移动到顶部 */
}

.content-tool {
	margin-top: 1.5rem;
	display: flex;
	width: 96%;
	position: relative;
	/*border: 3px solid blue;*/
	/*height: 100%;*/
}

.nav-tool {
	width: 20%;
	/*background-color: #f4f4f4;*/
	padding: 20px 20px 20px 125px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: all 0.3s ease;
	align-self: flex-start;
	position: -webkit-sticky; /* Safari兼容 */
	position: sticky;
	top: 20px; /* 初始非粘性时的位置 */
	z-index: 100;
	/*border: 2px solid white;*/
}

.nav-tool.sticky-nav {
	top: 0;
	width: 20%;
	/*background-color: #f4f4f4;*/
	padding: 20px 20px 20px 125px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: all 0.3s ease;
	align-self: flex-start;
	position: -webkit-sticky; /* Safari兼容 */
	position: sticky;
	z-index: 100;
}

.nav-item-tool {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	margin-bottom: 10px;
	text-align: left;
	position: relative;
	padding-left: 30px !important;
	font-size: 16px;
	width: 120px;
	color: white;
}

.nav-item-tool:hover {
	background-color: #ddd;
}

.nav-line {
	position: absolute;
	left: -5px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 3px;
	background: white;
	opacity: 0;
	transition: opacity 0.3s;

}

.nav-item-tool.active .nav-line {
	opacity: 1;
}

.content-area-tool {
	width: 80%;
	scroll-behavior: smooth;
	position: relative;
	padding: 20px;
	overflow-y: visible;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
	/*background-color: white;*/
	flex: 1;
	/*border: 2px solid blue;*/
}

.content-area-tool::-webkit-scrollbar {
	display: none; /* Chrome, Safari and Opera */
}

.content-section-tool {
	margin-bottom: 20px;
}

.content-section-tool h2 {
	display: flex;
	align-items: center;
	width: 30%;
	color: white;
	font-size: 24px;
	margin: 20px auto;
}

.content-section-tool h2::before,
.content-section-tool h2::after {
	content: '';
	flex: 1;
	height: 3px;
	background: white;
	margin: 0 15px;
}

.content-section-tool h2::before {
	margin-right: 20px;
}

.content-section-tool h2::after {
	margin-left: 20px;
}

@media (max-width: 768px) {
	.content-section-tool h2 {
		font-size: 20px;
	}

	.nav-line {
		width: 10px;
		left: 5px;
	}

	.nav-item-tool {
		padding-left: 25px !important;
	}
}

/* 内容 */
/* 内容1 */
.grid-8-6 {
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 1px;*/
	grid-template-columns: repeat(8, 1fr);
	/*grid-template-rows: repeat(3, 1fr);*/
}

/* 内容2 */
.grid-6-8 {
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 1px;*/
	grid-template-columns: repeat(6, 1fr);
	/*grid-template-rows: repeat(8, 1fr);*/
}


.mm {
	display: flex;
	align-items: center; /* 垂直居中 */
	gap: 5px; /* img 和 span 之间的间距 */
	font-size: 0.9rem;
}
/* 内容3*/
.grid-6-7 {
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 15px;*/
	grid-template-columns: repeat(6, 1fr);
	/*grid-template-rows: repeat(7, 1fr);*/
}
/*内容4*/
.grid-6-4{
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 15px;*/
	grid-template-columns: repeat(6, 1fr);
	/*grid-template-rows: repeat(4, 1fr);*/
}
/*内容5*/
.grid-6-3{
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 15px;*/
	grid-template-columns: repeat(6, 1fr);
	/*grid-template-rows: repeat(3, 1fr);*/
}
/*内容10*/
.grid-6-5{
	border: 2px solid white;
	border-radius: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/*gap: 15px;*/
	grid-template-columns: repeat(6, 1fr);
	/*grid-template-rows: repeat(5, 1fr);*/
}
/* 列表项通用样式 */
.li-tool {
	padding: 15px;
	display: flex;
	flex-direction: column;
    justify-content: flex-start;
	transition: transform 0.3s;
	min-width: 0; /* 防止内容溢出 */
	/*border: 3px solid white;*/
}

/* 内容1特定样式 */
.grid-8-6 li {
	align-items: center;
	gap: 10px;
}

.grid-8-6 .icon {
	width: 95px;
	height: 90px;
	font-size: 1.5rem;
}

/*内容2特定样式*/
.grid-6-8 li {
	align-items: flex-start; /* 关键修改：靠左对齐 */
	justify-content: flex-start;
	gap: 10px;
}

.grid-6-8 .icon {
	width: 30px;
	height: 35px;
	/*font-size: 1.5rem;*/
}

/* 内容3特定样式 */
.grid-6-7 li {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}

.grid-6-7 .icon {
	width: 130px;
	height: 72px;
	font-size: 1.8rem;
	align-self: center;

}
/* 内容4特定样式 */
.grid-6-4 li {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}

.grid-6-4 .icon {
	width: 120px;
	height: 120px;
	font-size: 1.8rem;
	align-self: center;

}
/* 内容5特定样式 */
.grid-6-3 li {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}

.grid-6-3 .icon {
	width: 120px;
	height: 120px;
	font-size: 1.8rem;
	align-self: center;

}
/* 内容10特定样式 */
.grid-6-5 li {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}

.grid-6-5 .icon {
	width: 120px;
	height: 120px;
	font-size: 1.8rem;
	align-self: center;

}
/* 文字截断处理 */
.name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	width: 100%;
	color: white;
	text-align: center;
	font-weight: bold;
}

/* 内容4描述样式 */
.desc {
	display: -webkit-box;
	width: 126px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9em;
	color:#cccccc;
	line-height: 1.4;
	/*text-align: left;*/
	margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 1200px) {
	.grid-3-8 {
		grid-template-columns: repeat(4, 1fr)
	}

	.grid-8-6 {
		grid-template-columns: repeat(3, 1fr)
	}

	.grid-4-6 {
		grid-template-columns: repeat(3, 1fr)
	}
}

@media (max-width: 768px) {
	.grid-3-8 {
		grid-template-columns: repeat(2, 1fr)
	}

	.grid-8-6 {
		grid-template-columns: repeat(2, 1fr)
	}

	.grid-4-6 {
		grid-template-columns: repeat(2, 1fr)
	}
}