* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
	font-family: "演示斜黑体";
	src: url("../../font/演示斜黑体.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "TianTianQuan";
	src: url("../../font/ZiHunTianTianQuan\(ShangYongXuShouQuan\)-2.ttf")
		format("truetype");
	font-weight: normal;
	font-style: normal;
}

/* 设置全局字体和背景 */
body {
	font-family: "Microsoft YaHei", sans-serif;
	line-height: 1.6;
	margin-left: 10%;
	margin-right: 10%;
	background-color: #f8f9fa; /* 浅灰色背景 */
	color: #343a40; /* 深灰色文字 */
	padding: 20px;
}

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #f0f4f8; /* 设置浅色系背景色：淡蓝色 */
	color: rgb(255, 255, 255);
	z-index: 1000;
	font-family: "serif", "Source-KeynoteartHans";
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果让导航栏更有层次感 */
}

nav ul {
	list-style: none;
	padding: 0;
	display: flex;
}

nav ul li {
	margin: 0 15px;
}

nav ul li a {
	color: #333; /* 改为深灰色，提升与浅色背景的对比度 */
	text-decoration: none;
	padding: 8px 16px; /* 调整 padding 来让链接文字区域更紧凑 */
	display: block;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

nav ul li a:hover {
	background-color: #d1e7ff; /* 鼠标悬停时浅蓝色背景 */
}

/* 导航栏整体布局 */
.guide {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 5%; /* 导航栏整体两侧留白 */
}

.left-section {
	display: flex;
	align-items: center;
	margin-right: 5%; /* 让左边的图片与右侧的内容分隔开一些 */
}

.right-section {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 26px;
	margin-left: 10%;
}

.nav-image {
	width: 300px; /* 保持图片宽度 */
	height: auto;
}

/* 页眉样式 */
header {
	/* 绿色背景 (已去掉)*/
	background-image: none;
	color: white;
	text-align: center;
	padding: 100px 0 0 0;
	border-radius: 8px 8px 0 0; /* 圆角效果，仅适用于顶部 */
}

header h1 {
	font-family: "TianTianQuan"; /*新设字体*/
	font-size: 5em; /* 标题字体稍大 */
	margin-bottom: 10px;
	color: rgb(0, 191, 255);
	font-weight: normal;
}

header p {
	font-size: 1.5em; /* 副标题字体稍小 */
}

.bg-part {
	width: 100%;
	border: 2px dotted rgb(255, 255, 255);
	padding: 20px 0;
	background: linear-gradient(to right, #d0e384, #7a9ed5, #ffffff);
	opacity: 0.9;
	margin-top: 20px;
	border-radius: 15px; /* 圆角效果 */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 设置容器样式 */
.container {
	display: block; /* 使用flex布局 */
}

.test {
	flex-basis: 20%;
	text-align: center;
}

/* 设置侧边栏（留言栏）样式 */
aside {
	position: fixed;
	width: 200px; /* 设置宽度 */
	background: linear-gradient(
		to bottom,
		#d0e384,
		#73e9a8,
		#ffffff
	); /* 设置背景色 */
	padding: 20px 0; /* 设置内边距 */
	/* margin: 1em; 设置外边距 */
	opacity: 0.7;
	border-radius: 10px; /* 圆角效果 */
	float: right;
	margin-top: 35px;
	left: 80%;
}

.warning {
	margin-left: 10px;
	font-size: 30px;
}

.textWarning {
	margin-left: 10px;
}

/* 设置主要内容样式 */
main {
	position: absolute;
	left: 50%; /* 水平居中 */
	transform: translate(-50%, 0);
	width: 60%;
	padding: 1em; /* 设置内边距 */
	/* padding-top: 100px; */
}

/* 部分标题样式 */
main section h2 {
	color: #4caf50; /* 绿色标题 */
	margin-bottom: 20px;
	border-bottom: 2px solid #f1f1f1; /* 底部细线 */
	margin-left: 20px;
	padding-bottom: 10px;
	font-size: 1.8em; /* 字体稍大 */
}

/* 段落样式 */
main section p {
	font-size: 1.1em; /* 字体稍大 */
	margin-bottom: 20px;
	margin-left: 20px;
	margin-right: 20px;
}

.nextTitle {
	margin-bottom: 20px;
	margin-left: 20px;
	margin-right: 20px;
	font-size: 24px;
}

.text {
	margin-bottom: 20px;
	margin-left: 40px;
	margin-right: 20px;
}

.introductions {
	margin-bottom: 20px;
	margin-left: -20px;
	margin-right: 20px;
}

.introduction {
	margin-bottom: 20px;
	margin-left: 20px;
	margin-right: 20px;
}

/* 链接样式 */
a {
	color: #4caf50; /* 绿色链接 */
	text-decoration: none;
	transition: color 0.3s ease; /* 添加过渡效果 */
}

a:hover {
	color: #45a049; /* 鼠标悬停时颜色稍变 */
	text-decoration: underline;
}

/* 页脚样式 */
footer {
	background-color: #343a40; /* 深灰色背景 */
	color: white;
	text-align: center;
	padding: 15px 0;
	margin-top: 30px;
	border-radius: 0 0 8px 8px; /* 圆角效果，仅适用于底部 */
}

/* 响应式设计 */
@media (max-width: 768px) {
	nav ul {
		flex-direction: column; /* 垂直排列导航链接 */
		align-items: center; /* 垂直居中 */
	}

	nav ul li {
		margin: 10px 0;
	}

	main section h2 {
		font-size: 1.6em; /* 在小屏幕上标题字体稍小 */
	}

	main section p {
		font-size: 1em; /* 在小屏幕上段落字体稍小 */
	}
	@keyframes blink {
		50% {
			opacity: 0.5;
		}
	}
}

.lines-title {
	font-weight: bolder;
	border-bottom: 2px solid black;
}

.question-title a {
	color: palevioletred;
	font-weight: 800;
}

.lines-title,
.question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 30px;
}

.num {
	flex-basis: 10%;
	text-align: center;
}

.question-title {
	flex-basis: 20%;
	text-align: center;
}

.hard {
	flex-basis: 20%;
	text-align: center;
}

.answer {
	text-align: right;
}

.titles {
	margin-left: 20px;
	margin-bottom: 10px;
}

table {
	width: 80%;
	border-collapse: collapse;
	margin-left: 20px;
}

th,
td {
	border: 1px solid black;
	padding: 8px;
	text-align: center;
}

th {
	background-color: transparent;
}

footer {
	height: 60px; /* 页脚的高度 */
	background-color: transparent;
	color: white;
	text-align: center;
	line-height: 60px; /* 垂直居中对齐文本 */
	position: relative;
	/* top: 1600px; */
	/* margin-top: 20px; */
	bottom: 0;
}
