/* 全局CSS变量定义 */
:root {
	--theme-colors: #a72126; /* 主题色：红色 */
	--font-colors: #FFF; /* 字体颜色：白色 */
	--font-typeface: "微软雅黑"; /* 字体类型 */
}

/* 全局重置样式 */
* {
	margin: 0;
	padding: 0;
}

/* HTML和body基础样式 */
html,
body {
	margin: 0;
	font: 12px/160%, var(--font-typeface); /* 设置基础字体大小和行高 */
}

/* 表单和列表元素重置 */
form,
ul,
li,
dl,
dt,
dd {
	margin: 0;
	padding: 0;
	list-style: none; /* 移除列表样式 */
}

/* 图片边框重置 */
img {
	border: none;
}

/* 链接基础样式 */
a {
	color: #606163;
	font-size: 12px;
	text-decoration: none; /* 移除下划线 */
}

/* 链接悬停效果 */
a:hover {
	color: #ff0000;
}

/* 输入框轮廓重置 */
input {
	outline: none;
}

/* 输入框占位符样式 */
input::placeholder {
	color: var(--font-colors);
	font-size: 16px;
}

/* 主容器样式 */
#wfsykjgz {
	width: 100%;
	height: 100%;
}

/* 顶部区域布局 */
.top {
	display: flex;
	justify-content: center; /* 水平居中 */
	width: 100%;
}

/* 顶部头部容器 */
.top_head {
	width: 1200px;
	height: 116px;
}

/* 顶部Logo样式 */
.top_logo {
	float: left;
}

.top_logo img {
	width: 570px;
}

/* 顶部校训样式 */
.top_xiaoxun {
	float: right;
	padding-top: 42px;
}

.top_xiaoxun img {
	width: 300px;
}

/* 导航栏样式 */
.navigation {
	display: flex;
	justify-content: center;
	width: 100%;
	height: 60px;
	background-color: var(--theme-colors);
	color: var(--font-colors);
}

/* 导航菜单列表 */
.navigation ul {
	float: left;
	width: 980px;
}

/* 导航菜单项样式 */
.navigation ul li a {
	color: var(--font-colors);
	cursor: default; /* 默认鼠标样式 */
	user-select: none; /* 禁止文本选择 */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	float: left;
	width: 98px;
	display: block;
	font: 18px / 60px var(--font-typeface);
	font-weight: bold;
	text-align: center;
}

/* 导航菜单项激活状态 */
.navigation ul li a:active {
	background-color: color-mix(in srgb, var(--theme-colors) 80%, black 20%); /* 激活时背景色变深 */
}

/* 搜索框区域 */
.search {
	float: right;
	width: 220px;
	display: flex;
	justify-content: center;
}

/* 搜索输入框样式 */
.search input[type="search"] {
	width: 161px;
	font-size: 16px;
	line-height: 30px;
	border: 1px var(--font-colors) solid;
	border-right: none; /* 移除右边框，与按钮连接 */
	margin: 10px 0 10px 10px;
	border-radius: 30px 0 0 30px; /* 左侧圆角 */
	padding: 5px 5px 5px 15px;
	background-color: var(--theme-colors);
	color: var(--font-colors);
}

/* 搜索按钮样式 */
.search button {
	line-height: 30px;
	border: 1px var(--font-colors) solid;
	border-left: none; /* 移除左边框，与输入框连接 */
	margin: 10px 10px 10px 0;
	border-radius: 0 30px 30px 0; /* 右侧圆角 */
	padding: 5px;
	background-color: var(--theme-colors);
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 搜索按钮图标 */
.search button img {
	width: 29px;
	height: 29px;
}

/* 轮播图横幅区域 */
.banner {
	height: 600px;
	z-index: -1; /* 置于底层 */
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
}

/* 轮播图容器 */
.banner .swiper {
	width: 100%;
	height: 100%;
}

/* 轮播图幻灯片样式 */
.banner .swiper-slide {
	text-align: center;
	font-size: 18px;
	background: var(--font-colors);
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 轮播图图片样式 */
.banner .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* 保持图片比例并填充容器 */
}

/* 内容区域布局 */
.content {
	position: absolute;
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 450px; /* 与轮播图重叠 */
}

/* 头条新闻区域 */
.toutiao {
	width: 1200px;
	height: 88px;
	background: #f6f6f6;
	margin-bottom: 40px;
	border-radius: 5px;
}

.toutiao img {
	float: left;
}

/* 头条新闻标题 */
.toutiao a h3 {
	width: clamp(830px, 53vw, 1050px); /* 响应式宽度 */
	white-space: nowrap; /* 不换行 */
	overflow: hidden;
	text-overflow: ellipsis; /* 超出显示省略号 */
	margin-left: 40px;
	float: left;
	height: 40px;
	color: var(--theme-colors);
	font: 30px / 40px var(--font-typeface);
	margin-top: 10px;
}

/* 头条新闻描述 */
.toutiao a p {
	width: clamp(830px, 50vw, 1050px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-left: 40px;
	float: left;
	height: 30px;
	color: #272727;
	font: 14px / 30px var(--font-typeface);
}

/* 新闻图片轮播区域 */
.newsphoto {
	position: absolute;
	display: flex;
	justify-content: center;
	width: clamp(980px, 66vw, 1200px);
	margin-top: 580px;
	left: 50%;
	transform: translateX(-50%); /* 水平居中 */
}

/* 新闻图片轮播容器 */
.newsphoto .swiper {
	padding-bottom: 30px;
	width: 500px;
}

/* 新闻图片幻灯片样式 */
.newsphoto .swiper-slide {
	text-align: center;
	font-size: 18px;
	background: var(--font-colors);
	display: flex;
	justify-content: center;
	flex-direction: column; /* 垂直排列 */
}

/* 新闻图片样式 */
.newsphoto .swiper-slide img {
	display: block;
	width: 100%;
	height: 88%;
	object-fit: cover;
}

/* 轮播图分页器圆点样式 */
.newsphoto .swiper-pagination-bullet {
	width: 20px;
	height: 20px;
	text-align: center;
	line-height: 20px;
	font-size: 12px;
	color: #000;
	opacity: 1;
	background: rgba(0, 0, 0, 0.2);
}

/* 轮播图分页器激活状态 */
.newsphoto .swiper-pagination-bullet-active {
	color: var(--font-colors);
	background: var(--theme-colors);
}

/* 新闻图片标题 */
.newsphoto .swiper-slide p {
	color: var(--font-colors);
	background-color: #333;
	padding: 10px 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 460px;
}

/* 信息公告区域 */
.inform {
	flex: 1;
	float: left;
	width: 430px;
	margin-left: 50px;
}

/* 信息公告标题栏 */
.inform div {
	width: 100%;
	height: 34px;
	border-bottom: solid 1px var(--theme-colors);
	margin-bottom: 10px;
}

/* 信息公告标题 */
.inform div h3 {
	border-bottom: solid 2px var(--theme-colors);
	height: 32px;
	color: var(--theme-colors);
	font: 20px / 32px var(--font-typeface);
	font-weight: bold;
	text-align: center;
	float: left;
}

/* 信息公告更多链接 */
.inform div a {
	width: 74px;
	height: 23px;
	color: var(--font-colors);
	font: 14px / 23px var(--font-typeface);
	float: right;
	margin: 6px 6px 0px 0px;
	background: var(--theme-colors);
	text-align: center;
	display: block;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	-ms-border-radius: 20px;
	-o-border-radius: 20px;
	border-radius: 20px; /* 圆角按钮 */
}

/* 信息公告列表容器 */
.inform ul {
	width: clamp(430px, 43vw, 650px);
	height: 320px;
	overflow: hidden;
}

/* 信息公告列表项 */
.inform ul li {
	width: clamp(430px, 33vw, 650px);
	height: 74px;
	transition-duration: 500ms; /* 过渡动画 */
	-webkit-transition-duration: 500ms;
	margin-bottom: 10px;
}

/* 信息公告链接 */
.inform ul li a {
	width: clamp(350px, 25vw, 500px);
	float: left;
	display: block;
}

/* 信息公告标题 */
.inform ul li a h3 {
	font-weight: bold;
	margin-top: 10px;
	margin-left: 14px;
	width: clamp(350px, 25vw, 500px);
	height: 30px;
	overflow: hidden;
	float: left;
	color: #272727;
	font: 16px / 30px var(--font-typeface);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 信息公告描述 */
.inform ul li a p {
	margin-left: 14px;
	width: clamp(350px, 25vw, 500px);
	height: 18px;
	overflow: hidden;
	float: left;
	color: #a4a4a4;
	font: 12px / 18px var(--font-typeface);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 信息公告日期 */
.inform ul li h4 {
	width: 78px;
	height: 68px;
	padding-top: 6px;
	float: right;
	display: block;
	color: var(--theme-colors);
	font: 30px / 36px var(--font-typeface);
	text-align: center;
	font-weight: bold;
}

/* 信息公告日期单位 */
.inform ul li h4 span {
	width: 78px;
	height: 24px;
	display: block;
	color: var(--theme-colors);
	font: 13px/24px var(--font-typeface);
	font-weight: bold;
}

/* 页脚区域 */
.footer {
	position: absolute;
	width: 100%;
	margin-top: 1000px;
	background-color: var(--theme-colors);
	background-repeat: no-repeat;
	background-position: center;
	padding: 30px 0;
	overflow: hidden;
	color: var(--font-colors);
}

/* 页脚容器 */
.container {
	width: clamp(980px, 66vw, 1200px);
	margin: 0 auto;
}

/* 页脚行布局 */
.row {
	margin-right: -15px;
	margin-left: -15px;
}

/* 页脚顶部区域 */
.footer-top {
	padding-bottom: 10px;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* 页脚Logo */
.footer-logo {
	width: 25%;
}

.footer-logo img {
	width: 95%;
}

/* 页脚导航 */
.footer-nav {
	border-top: 1px solid rgba(255, 255, 255, .5);
	line-height: 80px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	color: var(--font-colors);
}

/* 页脚导航盒子 */
.footer-nav-box {
	padding: 0 20px;
}

.footer-nav-box a {
	color: var(--font-colors);
	font-size: 16px;
}

/* 版权信息区域 */
.copyright {
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	text-align: center;
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* 版权信息盒子 */
.copyrightBox {
	border-right: 1px solid rgba(255, 255, 255, .5);
	padding: 0 40px;
}

.copyrightBox a {
	color: var(--font-colors);
	font-size: 16px;
}

/* 浮动广告区域 */
.floating-ad {
	position: fixed; /* 固定定位 */
	top: 50%;
	transform: translateY(-50%) translateX(0);
	width: 200px;
	background: rgba(227, 17, 17, 0.9); /* 半透明红色背景 */
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* 阴影效果 */
	cursor: pointer;
	z-index: 9999; /* 最高层级 */
	overflow: hidden;
	transition: transform 4s ease-in-out;
	left: 0;
	right: auto;
	animation: moveLeftToRight 30s ease-in-out infinite alternate; /* 左右移动动画 */
}

/* 浮动广告悬停效果 */
.floating-ad:hover {
	animation-play-state: paused; /* 悬停时暂停动画 */
}

/* 左右移动动画关键帧 */
@keyframes moveLeftToRight {
	0% {
		transform: translateX(0); /* 起始位置 */
	}

	100% {
		transform: translateX(calc(100vw - 200px)); /* 结束位置 */
	}
}

/* 关闭按钮 */
.close-btn {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 20px;
	height: 20px;
	background: rgb(0, 0, 0, 0.5); /* 半透明黑色背景 */
	color: white;
	border-radius: 50%; /* 圆形按钮 */
	text-align: center;
	line-height: 16px;
	cursor: pointer;
}

/* 广告内容区域 */
.ad-content {
	padding: 15px;
}

.ad-content a {
	color: #fff;
}

.ad-content img {
	width: 165px;
	border-radius: 8px;
}