/* 主样式文件 */

/* 色值参考：
背景：#EEF2FF
logo：#4F46E5 
文字:#4F46E5*/


/* 设置html中rem的值 */
html {

	font-size: 18px;
}

/* 色值参考：
背景：#C7D2FE
logo：#4F46E5 */

/* 基本字体设置 */
body {
	margin: 0;
	background-color: #EEF2FF;
	/* background: linear-gradient(180deg,#A0CEFC 0%, #A0CEFC 10%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%); */
	font-family:
	 "DTJBT",
		/* 优先使用在线字体 */
		"黑体",
		"SimHei",
		"simsun",
		/* Windows 系统默认宋体 */
		"Songti SC",
		/* macOS 系统默认宋体（简体中文） */
		"STSong",
		/* 其他系统（如Linux）宋体兼容 */
		"宋体",
		/* 中文名称兜底（部分系统支持） */
		serif;
	/* 终极兜底：系统默认衬线字体（确保不会显示无衬线字体） */
}

button {
	/* 清除默认边框和背景 */
	border: none;
	outline: none;
	background: none;
	/* 清除默认内边距和外观 */
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	/* 清除webkit内核浏览器的默认样式 */
	appearance: none;
}

/* 主容器 */
.all-in-one {
	margin: 0 auto;
	max-width: 1200px;
	min-width: 800px;
}

/* 头部-logo+导航 */
header {
	width: 100%;
	min-width: 800px;
	height: 60px;
	background-color: white;
	box-shadow: 0 2px 10xp #ddd;
	/* 固定在顶部 */
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	column-gap: 10px;
	padding-left: 10px;
	/* 毛玻璃效果 */
	/* background-color: #A0CEFC; */
	/* background: rgba(160, 206, 252, 0.3); */
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 头部容器 */
.header-content {
	box-sizing: border-box;
	width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding-left: 50px;
	padding-right: 50px;
	min-width: 830px;
	/* background-color: #666; */
}

/* logo+导航容器 */
.logoAndNav {
	display: flex;
	gap: 20px;
}

.navbar {
	display: flex;

	gap: 20px;

}

/* logo图片 */
.header-content img {
	display: block;
	/* width: 50px; */
	height: 30px;
}

/* 导航标签容器 */
.nav-container {
	margin-left: 50px;
	display: flex;
	flex-direction: row;
	gap: 20px;
}

/* 各导航项通用样式 */
.navName {
	font-size: 20px;
	color: #64748B;
	line-height: 40px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.navName:hover {
	color: #4F46E5;
}

.navName.active {
	color: #4F46E5;
	font-weight: 600;
}

.navName.teacherPage {
	cursor: pointer;
}


/* 登录按钮 */
.user-info {
	color: #64748B;
	font-size: 20px;
	float: right;
	align-items: center;
	gap: 1.5rem;
	display: none;
}


.myfile-btn{
	cursor: pointer;
}

.logout-btn{
	cursor: pointer;
}

.login-btn {
	color: #64748B;
	font-size: 20px;
	float: right;
	line-height: 40px;
	cursor: pointer;
}

/* 主要内容区域容器 */

/* 首页轮播图样式开始 */
.swiper {
	background-color: #EEF2FF;
	height: 400px;
	border-radius: 20px;
}

/* 轮播图背景 */
.swiper img {
	max-width: 100%;
	height: auto;
}

.swiper .swiper-wrapper .swiper-slide:nth-child(1) img {
	max-width: 100%;
	height: auto;
}


/* 轮播通用样式 */
.swiper-slide {
	position: relative;
}

/* 去除轮播图超链接样式 */
.swiper-slide a {
	color: inherit;
	/* 2. 清除默认下划线 */
	text-decoration: none;
	/* 3. 清除点击时的默认外框（聚焦高亮） */
	outline: none;
	/* 4. 清除默认内边距/外边距 */
	margin: 0;
	padding: 0;
	/* 5. 继承父元素字体样式（大小、粗细、家族等） */
	font-size: inherit;
	font-weight: inherit;
	font-family: inherit;
	/* 6. 清除默认文字装饰（如下划线、上划线等） */
	text-decoration-line: none;
	text-decoration-style: none;
	text-decoration-color: transparent;
}

/* 第一张轮播图内容 */
.swiper-slide span:nth-child(1) {
	position: absolute;
	width: 100%;
	height: auto;
	line-height: 300px;
	text-align: center;
	transform: translate(-50%, -50%);
	font-size: 40px;
	color: #fff;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	padding: 10px 20px;
	border-radius: 5px;
	opacity: 0;
	transform: translateY(20px);
	/* 动画配置：名称、时长、 timing-function、延迟、填充模式 */
	animation: fadeUp 1.2s ease-out forwards;
	/* forwards 保持结束状态 */

	/* 可选：防止文字选中干扰动画 */
	user-select: none;
}


/* 第二张轮播图内容 */
.swiper-slide span:nth-child(2) {
	position: absolute;
	width: 100%;
	height: auto;
	line-height: 400px;
	text-align: center;
	transform: translate(-50%, -50%);
	font-size: 16px;
	color: #ffffff;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	padding: 10px 20px;
	border-radius: 5px;
	opacity: 0;
	transform: translateY(20px);
	/* 动画配置：名称、时长、 timing-function、延迟、填充模式 */
	animation: fadeUp 1.2s ease-out forwards;
	/* forwards 保持结束状态 */

	/* 可选：防止文字选中干扰动画 */
	user-select: none;
}

/* 第三张轮播图内容 */
.swiper-slide span:nth-child(3) {
	position: absolute;
	width: 100%;
	height: auto;
	line-height: 400px;
	text-align: center;
	transform: translate(-50%, -50%);
	font-size: 16px;
	color: #ffffff;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	padding: 10px 20px;
	border-radius: 5px;
	opacity: 0;
	transform: translateY(20px);
	/* 动画配置：名称、时长、 timing-function、延迟、填充模式 */
	animation: fadeUp 1.2s ease-out forwards;
	/* forwards 保持结束状态 */

	/* 可选：防止文字选中干扰动画 */
	user-select: none;
}

/* swiper分页器 */
.swiper-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

/* 分页按钮小圆点 */
.swiper-pagination>span {
	transition: all 0.3s ease-in-out;
	scale: calc(1.5);

}

/* 分页按钮小圆点悬浮态 */
.swiper-pagination>span:hover {
	scale: calc(2);
	transition: all 0.3s ease-in-out;

}

/* 轮播图导航按钮 */
.swiper-button-prev,
.swiper-button-next {
	opacity: 0.3;
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	--swiper-theme-color: #4F46E5;
	transition: all 0.3s ease-in-out;
}

/* 轮播图导航按钮悬浮态 */
.swiper-button-prev:hover,
.swiper-button-next:hover {
	opacity: 1;
	transition: all 0.3s ease-in-out;
}

/* 轮播图内文字动画，渐变上移 */
@keyframes fadeUp {
	0% {
		/* 开始：透明 + 下方20px */
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		/* 结束：不透明 + 原始位置（向上移动20px） */
		opacity: 1;
		transform: translateY(0);
	}
}

/* 首页轮播图样式结束 */


/* 板块标题样式开始 */
.section-title {
	display: grid;
	grid-template-columns: 24px auto 40px;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 20px;
}

/* 标题前图标容器 */
.section-title span {
	width: 24px;
	height: 24px;
	line-height: 24px;
}

/* 标题前图标 */
.section-title img {
	margin-top: 3px;
	width: 24px;
	height: 24px;
}

/* 标题 */
.section-title h2 {
	display: inline-block;
	margin-left: 10px;
	font-size: 24px;
	color: #333;
}

/* “更多”的通用样式 */
.section-title a {
	font-size: 16px;
	color: #666;
}

/* 板块标题样式结束 */

/* 首页图书列表总容器 */
.book-container {
	margin-top: 70px;
	padding: 40px;
	padding-top: 10px;

}

/* 图书列表  grid布局 */
.book-list {
	display: grid;
	border-radius: 10px;
	/* background-color: #ffffff; */
	padding: 20px;
	gap: 20px;
	/*  自动创建自适应数量的列，列宽最小 200px、最大占满剩余空间，且列数会随容器宽度自动调整。*/
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 图书列表项 */
.book-item {
	background-color: rgb(255, 255, 255);
	text-align: center;
	padding: 10px;
	padding-left: 0;
	border-radius: 10px;
	transition: all 0.2s;
	color: #666;
}

.book-item:hover {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 图书列表项悬浮态 */
.book-item a:hover {
	/* background-color: rgb(227, 247, 255); */
	/* cursor: pointer; */
	/* box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); */
	transition: all 0.2s;
	transform: scale(1.02);

	/* color: rgb(0, 0, 0); */
	/* border: 1px solid #eb1e19; */
}

/* 图书列表项内容布局flex-column */
.book-item a {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s;
}

/* 封面图 */
.book-item a img {
	padding: 0 15px;
	width: 90%;
	aspect-ratio: 5 / 7;
	object-fit: scale-down;
}

/* 书名 */
.book-name {
	text-align: left;
	color: #000;
	line-height: 2;
	/* height: 20px; */
	width: 90%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 16px;
	/* border: 1px solid #ddd; */
	padding: 0 20px;
}

/* 实用工具样式 */
.my-tool {
	display: grid;
	/* background-color: #ffffff; */
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	border-radius: 10px;
	gap: 10px;
}

/* 实用工具子项通用样式 */
.my-tool .tool-item {	
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 5px;
	transition: all 0.3s;
	height: 200px;
}

/* 实用工具子项悬浮态 */
/* .tool-item:hover {
	transform: scale(1.02);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
} */

/* 各子项背景色 */
/* .my-tool .tool-item:nth-child(1) {
	background-color: rgb(215, 255, 242);
}

.my-tool .tool-item:nth-child(2) {
	background-color: rgb(255, 240, 222);
}

.my-tool .tool-item:nth-child(3) {
	background-color: rgb(195, 216, 255);
}

.my-tool .tool-item:nth-child(4) {
	background-color: rgb(225, 255, 225);
}

.my-tool .tool-item:nth-child(5) {
	background-color: rgb(255, 205, 205);
} */

/* 实用工具子项文字样式 */
.tool-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #000;
	text-align: center;
	line-height: 40px;
	text-decoration: none;
	font-size: 18px;
	/* display: block; */
	width: 100%;
	height: 100%;
}

/* 实用工具图标 */
/* 图标 */
.tool-item a img {
	margin: 0 auto;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	transition: all 0.3s;
}
.tool-item a img:hover {
transform: scale(1.02);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.tool-name {
	visibility: hidden;
	transition: all 0.5s;
}

/* 页脚样式开始 */
/* 页脚容器 */
.footer {

	text-align: center;
	padding: 20px 0;
	font-size: 14px;
	color: #666;
	margin-top: 50px;
}

/* 友情链接 */
.friendlink {
	margin-bottom: 10px;
}

/* 链接间隔 */
.friendlink a {
	margin-right: 10px;
}

/* 页脚样式结束 */


/* 返回顶部按钮样式开始 */
/* 按钮容器 */
.corner-buttons {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
}

/* 按钮和提示文字容器 */
.corner-button {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

/* 按钮和提示文字容器 */
.corner-button:hover {
	background: white;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 按钮图形，向上的箭头 */
.corner-button svg {
	width: 20px;
	height: 20px;
	color: #666;
}

/* 提示容器和文字样式 */
.tooltip {
	position: absolute;
	right: 60px;
	background: #333;
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 14px;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(10px);
	transition: all 0.3s ease;
	pointer-events: none;
}

/* 三角形箭头样式  */
.tooltip::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -5px;
	transform: translateY(-50%);
	border-left: 5px solid #333;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

/* 鼠标浮动到按钮时显示提示文字  */
.corner-button:hover .tooltip {
	opacity: 1;
	transform: translateX(0);
}

/* 返回顶部按钮样式结束 */



/* 响应式调整 */
@media (max-width: 768px) {
	.corner-buttons {
		bottom: 20px;
		right: 20px;
	}

	.corner-button {
		width: 45px;
		height: 45px;
	}

	.corner-button svg {
		width: 18px;
		height: 18px;
	}
}
/* 关于我们等链接 */
.aboutAndOther{
  display:flex;
  justify-content:center;
  text-align: justify;
  /* font-family: '宋体', SimSun, serif; */
  gap:20px;
  margin-top:10px;

}
.aboutAndOther p{
  font-size:14px;
  color:#666;

}
.aboutAndOther p:hover{
 cursor: pointer;
	/* color:#000; */
}



/* 返回顶部按钮样式结束 */



/* 关于等样式开始 */

	.aboutUsText {
				position: fixed;
				max-width: 50vw;
				min-width: 400px;
				top: 30%;
				left: 50%;
				transform: translate(-50%, -50%);
				background-color: #fff;
				padding: 20px;
				padding-top: 0%;
				border-radius: 5px;
				z-index: 1001;
				box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
			}

			.privacyPolicyText, .userServiceAgreementText {
				position: fixed;
				max-width: 50vw;
				min-width: 800px;
				height: 600px;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				border-radius: 5px;
				background-color: #fff;
				padding: 20px;
				padding-top: 0;
				z-index: 1000;
				border-radius: 5px;
				box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
				overflow: auto;
				box-sizing: border-box;
			}

			.aboutUsText h1,
			.privacyPolicyText h1,
			.userServiceAgreementText h1 {
				text-align: justify;
				font-family: '黑体', SimHei, serif;
				font-size: 28px;
				color: #000;
			}

			.aboutUsText h2,
			.privacyPolicyText h2,
			.userServiceAgreementText h2 {
				text-align: justify;
				font-family: '黑体', SimHei, serif;
				font-size: 24px;
				color: #000;
			}

			.aboutUsText h3,
			.privacyPolicyText h3,
			.userServiceAgreementText h3 {
				text-align: justify;
				font-family: '黑体', SimHei, serif;
				font-size: 20px;
				color: #000;
			}

			.aboutUsText h4,
			.privacyPolicyText h4,
			.userServiceAgreementText h4 {
				text-align: justify;
				font-family: '仿宋', SimSun, serif;
				font-size: 18px;
				font-weight: bold;
				color: #000;
			}

			.aboutUsText p,
			.privacyPolicyText p,
			.userServiceAgreementText p {
				text-align: justify;
				font-family: '宋体', SimSun, serif;
			}

			/* modal close button - default (positioned in header) */
			.modal-close {
				background: transparent;
				border: none;
				font-family: '黑体', SimHei, sans-serif;
				font-weight: 700;
				font-size: 20px;
				cursor: pointer;
				color: #222;
			}

			.modal-close:focus { outline: none; }

			/* modal header (sticky at top of the modal content) */
			.modal-header {
				position: sticky;
				top: 0;
				-webkit-position: sticky;
				background: #fff;
				z-index: 1002;
				padding: 10px 20px;
				border-bottom: 1px solid #eee;
				position: -webkit-sticky; /* Safari */
			}

			.modal-header h1 {
				margin: 0;
				font-size: 28px;
				text-align: center;
				font-family: '黑体', SimHei, serif;
				color: #000;
			}

			.modal-header .modal-close {
				position: absolute;
				right: 12px;
				top: 10px;
				font-size: 22px;
			}

			/* privacy policy and user service content: paragraph indentation */
			.privacyPolicyText p, .userServiceAgreementText p {
				text-indent: 2em !important;
				line-height: 2 !important;
			}

			.modal-body { padding: 12px 20px; }

/* 关于等样式结束 */