:root {
  --header-height: 185px;

  --web-width: 1200px;
  --web-gap: 24px;

  --nav-height: 59px;
  --nav-border-bottom: 4px;
  --nav-item-border-bottom: 3px;
  --nav-font-size: 22px;
  --nav-bg: #dc0816;
  --nav-border-color: #b40713;
  --nav-item-border-color: #fce2a7;

  --news-list-item-height: 60px; /* 列表项高度 */
  --news-list-item-size: 18px; /* 列表项文字大小 */

  --channle-header-height: 50px; /* 频道头部高度 */
  --channle-title-size: 22px; /* 频道标题大小 */
  --channle-title-color: #dc0816; /* 频道标题颜色 */
  --channle-action-size: 16px; /* 频道操作按钮大小 */
}

*,
::before,
::after {
  box-sizing: border-box;
  border-color: currentcolor;
  border-style: solid;
  border-width: 0;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: inherit;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:focus,
a:active,
div:focus {
  outline: none;
}

ul,
li {
  list-style: none;
}

ul li a {
  height: 100%;
  display: block;
}

input, textarea {
  outline: none;
}

/** 公共样式 */
.web-width {
  width: var(--web-width);
  margin: 0 auto;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap {
  gap: var(--web-gap);
}
.flex-1 {
  flex: 1;
}
.flex-auto {
  flex: 1 1 auto;
}
.padding {
  padding: var(--web-gap); 
}
.padding-top {
  padding-top: var(--web-gap);
}

.bg-gray {
  background-color: #f8f8f8; 
}
.bg-yellow {
  background-color: #fbf6f0; 
}
.bg-red {
  background-color: #b40a0a;
}
.no-bottom-border {
  border-bottom: none !important;
}
.no-right-border {
  border-right: none !important;
}
/** 页眉 */
header {
  height: var(--header-height);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: url(../images/header-new-bg.png);
  background-repeat: no-repeat;
  background-position: center;
}

.header-container {
  height: var(--header-height);
  padding-top: 36px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.header-container .logo {
  flex: 1;
}
.header-container .cps-logo {
  width: 238px;
}
.header-container .search-wrap {
  width: 210px;
  height: 40px;
  position: relative;
}
.header-container .search-wrap input {
  position: absolute;
  top: 0;
  left: 0;
  width: 210px;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  border: 1px solid #b7b7b6;
  border-radius: 20px;
}
.header-container .search-wrap button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: #dc0816;
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header-container .search-wrap button:hover {
  background-color: #b40a0a;
}


/** 导航栏 */
.nav-container {
  box-sizing: content-box;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--nav-bg);
  color: #fff;
}
.nav-container .nav-bottom {
  width: 100%;
  height: var(--nav-border-bottom);
  background-color: var(--nav-border-color);
}
.nav-container .nav-wrap {
  box-sizing: content-box;
  width: var(--web-width);
  height: calc(var(--nav-height) - var(--nav-border-bottom));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav-container .nav-wrap .nav-item {
  height: inherit;
  flex: 1 1 auto;
  
}
.nav-container .nav-wrap .nav-item a {
  display: block;
  box-sizing: content-box;
  width: 100%;
  height: inherit;
  line-height: calc(var(--nav-height) - var(--nav-border-bottom));
  text-align: center;
  font-size: var(--nav-font-size);
  font-weight: 500;
}
.nav-container .nav-wrap .nav-item:hover {
  border-bottom: var(--nav-item-border-bottom) solid var(--nav-item-border-color);
}
.nav-container .nav-wrap .nav-item.activate {
  border-bottom: var(--nav-item-border-bottom) solid var(--nav-item-border-color);
}

/** 页脚 */
.footer-container {
  width: 100%;
  height: 220px;
  background-color: #dc0816;
}
.footer-container .link-wrap {
  height: 50px;
  background-color: #e4e4e4;
}
.footer-container .link-wrap ul {
  width: var(--web-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-container .link-wrap ul li {
  flex: 1;
}
.footer-container .link-wrap ul li a {
  display: block;
  width: 100%;
  height: 50px; 
  line-height: 50px;
  text-align: center;
  font-size: 16px;
}
.footer-container .footer-wrap {
  width: var(--web-width);
  height: 170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-container .footer-wrap .web-info {
  width: 480px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}
.footer-container .footer-wrap .web-info .item {
  flex: 1 1 auto;
  padding: 8px;
}


/** 主内容区域 */
.main-container {
  width: var(--web-width);
  min-height: 630px;
  margin: 0 auto;
  padding: var(--web-gap) 0;
  display: flex;
  flex-direction: column;
  gap: var(--web-gap);

}
/** 首页 - 轮播Banner */
.swiper-banner-wrap  {
  width: 100%;
  height: 149px;
  background-color: #b40713;
}

/** 首页 - 新闻容器 */
.news-container {
  display: grid;
  gap: var(--web-gap);
  grid-template-columns: repeat(5, 1fr);
  height: 480px;
}

/** 新闻轮播图 */
.news-swiper-wrap {
  grid-column: span 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-swiper-wrap .swiper-slide .title {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  line-height: 60px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0 100px 0 16px;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/** 新闻标签栏 */
.news-wrap {
  grid-column: span 2;
  height: 480px;
  overflow: hidden;
}
.news-wrap .wrap-body {
  height: 430px;
}
.news-wrap .wrap-body .news-sub {
  display: flex;
  gap: var(--web-gap);
}
.news-wrap .wrap-body .news-sub:first-child {
  margin-bottom: 10px;
}
.news-sub .sub-title  {
  margin-top: 16px;
  height: 24px;
  line-height: 24px;
  padding: 0 8px;
  border-radius: 3px;
  color: #fff;
}
.news-sub .sub-title.zy{
  background-color: #dc0816;
}
.news-sub .sub-title.sw{
  background-color: #ff6c00;
}

/** 新闻列表 */
.news-list {
  height: 100%;
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.news-list .news-item {
  width: 100%;
  height: var(--news-list-item-height);
  overflow: hidden;
  font-size: var(--news-list-item-size);
  border-bottom: 1px #d6d6d6 dashed;
}
.news-list .news-item a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--web-gap);
}
.news-list .news-item a:hover {
  color: #dc0816;
}
.news-list .news-item .title {
  flex: 1;
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list .news-item .title::before {
  display: inline-block;
  content: "";
  width: 7px;
  height: 7px;
  background-color: #dc0816;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.news-list .news-item .date {
  color: #9a9a9a;
}

/** 首页 - 栏目装饰 */
.column-decoration {
  width: 100%;
  height: 38px;
  background-image: url(../images/column_decoration.png);
  line-height: 38px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #d41c1a;
}

/** 首页 - 频道栏目公共样式 */
.channel-wrap .wrap-header {
  height: var(--channle-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #d6d6d6;
}
.channel-wrap .wrap-header .title {
  box-sizing: content-box;
  height: 100%;
  line-height: var(--channle-header-height);
  font-size: var(--channle-title-size);
  font-weight: 600;
  color: var(--channle-title-color);
  border-bottom: 4px solid var(--channle-title-color);
}
.channel-wrap .wrap-header .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--web-gap);
}
.channel-wrap .wrap-header .actions .item {
  padding: 8px 32px;
  background-color: #e2e2e2;
  color: #9a9a9a;
  font-size: var(--channle-action-size);
  cursor: pointer;
  border-radius: 24px;
}
.channel-wrap .wrap-header .actions .active {
  background-color: var(--channle-title-color);
  color: #fff;
}
.channel-wrap .wrap-header .actions .more {
  display: block;
  cursor: pointer;
  color: #9a9a9a;
}

.channel-wrap .switch-container {
  overflow: hidden;
  height: calc(5 * var(--news-list-item-height));
}

.channel-wrap ul li a {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.channel-wrap ul li a img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}
.channel-wrap ul li a:hover img {
  transform: scale(1.1);
}

/** 首页 - 发布专区 */
.notice-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--web-gap);
}
.notice-container .notice-wrap {
  flex: 1;
  height: inherit;
  display: flex;
  align-items: center;
}
.notice-wrap .notice-before {
  width: 6px;
  height: inherit;
  background-image: url(../images/notice-before-bg.png);
  background-repeat: no-repeat;
}
.notice-wrap .notice-body {
  width: 100%;
  height: inherit;
  border: 1px solid #d6d6d6;
  padding-right: 16px;
  display: flex;
  align-items: center;
  gap: var(--web-gap);
}
.notice-body .notice-title {
  height: 50px;
  line-height: 50px;
  padding: 0 8px 0 20px;
  font-size: var(--channle-title-size);
  font-weight: 600;
  color: #dc0816;
  position: relative;
  left: -1px;
}
.notice-body .notice-swiper-wrap {
  flex: 1;
  height: 50px;
  width: 420px;
}
.notice-list .notice-item {
  width: 100%;
  height: 50px;
  line-height: 50px;
}
.notice-list .notice-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.notice-list .notice-item .title {
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-list .notice-item .title::before {
  display: inline-block;
  content: "";
  width: 7px;
  height: 7px;
  background-color: #dc0816;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.notice-list .notice-item:hover {
  color: #dc0816;
}
.notice-swiper-wrap {
  width: 100%;;
}

/** 首页 - 学习平台外链 */
.study-link-wrap .wrap-body ul li a {
  flex: 1;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/** 首页 - 课件资源 */
.courseware-wrap {
  padding: var(--web-gap);
  background-color: #fbf0f1;
  color: #dc0816;
}
.courseware-wrap ul li:last-child a {
  border: none
}
.courseware-wrap a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed #f2d0ce;
}
.courseware-wrap a:hover img {
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
}

/** 首页 - 视频课程 */
.video-wrap .wrap-body {
  display: grid;
  gap: var(--web-gap);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(4, 1fr);
}
.video-wrap .wrap-body > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.video-wrap .wrap-body img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/** 首页 - VR */
.vr-wrap .wrap-body ul li a {
  height: 157px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/** 首页 - 数字图书馆 */
.library-wrap .library-container {
  gap: 19.2px;
}
.library-wrap .wrap-body ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.library-wrap .wrap-body ul li a img {
  position: static;
  width: 184px;
  height: 246px;
  object-fit: cover;
}
.library-wrap .wrap-body ul li a span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
}
.library-wrap ul li a:hover img {
  transform: scale(1);
}
.library-wrap ul li a:hover span {
  color: #dc0816; 
}

/** 首页 - 浮动侧边栏 */
.side-bar {
  position: absolute;
  top: calc(var(--header-height) + var(--nav-height) + var(--web-gap));
  right: calc((100% - var(--web-width)) / 2 - var(--web-gap) - 96px);
  z-index: 8888;
}
.side-bar .side-bar-wrap {
  background-color: #fff;
  border: 1px solid #928b8c;
  border-radius: 7px;
  padding: 8px;
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}
.side-bar .side-bar-item {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  background-color: #fff;
  border-bottom: 1px dashed #ececec;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.side-bar .side-bar-item svg {
  margin-bottom: 6px;
  color: #dc0816;
}

.side-bar .side-bar-item:hover {
  color: #dc0816;
}

.side-bar .side-bar-item .content {
  border-radius: 7px;
  background-color: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.05);
  width: 256px;
  height: 256px;
  position: absolute;
  right: 100px;
  top: 0px;
  display: none;
  padding: 12px;
}


/** banner轮播图 */
.swiper-banner-wrap .swiper-pagination {
  text-align: right;
  right: 24px;
  left: auto;
}
.swiper-banner-wrap .swiper-pagination-bullet-active {
  background: #fffaee;
}
.news-swiper-wrap .swiper-pagination {
  text-align: right;
  right: 24px;
  left: auto;
  bottom: 20px;
}
.news-swiper-wrap .swiper-pagination-bullet-active {
  background: #dc0816;
}

.cover-container {
  flex-wrap: wrap;
  gap: var(--web-gap);
}
.zdzt-item {
  width: 1200px;
  height: 149px;
}
/** 新闻内容页 */
.article-page {
  font-size: 18px;
  color: #333;
}

.article-title {
  text-align: center;
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 16px;
}
.article-title span {
  font-size: 16px;
  color: #666;
}
.article-content {
  padding: 24px;
  line-height: 32px;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content img {
  width: 100%
}


/** 分页样式 */
.cms-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cms-pagination ul li a {
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 6px 12px;
}
.cms-pagination .active a {
  background-color: #dc0816;
  border: 1px solid #dc0816;
  color: #fff;
}
