.library-wrap {
  width: 100%;
  min-height: 100vh;
}
.library-wrap .container {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
/* header */
.header {
  width: 100%;
  height: 1rem;
  position: relative;
}

/* IE下去除列表圆点 */
ul, li {
  list-style: none;
  list-style-type: none;
  list-style-position: outside;
  margin: 0;
  padding: 0;
}
.header::after {
  content: '';
  position: absolute;
  width: 5.8rem;
  height: 100%;
  background: linear-gradient(121deg, #78c8ef 22%, #0172aa 100%);
  bottom: auto;
  top: 0;
  z-index: -1;
}
.header .header-top {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.header .header-logo {
  width: 4.8rem;
  height: 100%;
}
.header .header-logo a {
  display: inline-block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.header .header-logo a img {
  height: 0.76rem;
  width: auto;
}
.header .menu {
  flex: 1;
  height: 0.6rem;
  padding-left: 1rem;
  display: flex;
  align-items: center;
}
.header .menu ul {
  width: 100%;
  height: 0.5rem;
  display: flex;
  justify-content: start;
}
.header .menu ul li {
  width: 1.6rem;
  height: 100%;
  margin-right: 0.6rem;
}
.header .menu ul li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.2rem;
  position: relative;
  transition: all 0.3s ease;
}
.header .menu > ul > li.active a,
.header .menu > ul > li:hover a {
  background-color: #0373ab;
  color: #fff;
}
.header .menu ul li.has-submenu {
  position: relative;
}
.header .menu ul li.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), #fff);
  min-width: 1.6rem;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 0.05rem;
}
.header .menu ul li.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.header .menu ul li.has-submenu .submenu li {
  width: 100%;
  margin-right: 0;
  height: auto;
}
.header .menu ul li.has-submenu .submenu li a {
  height: 0.5rem;
  line-height: 0.5rem;
  padding: 0 0.2rem;
  display: block;
  transition: all 0.2s ease;
  text-align: center;
}
.header .menu ul li.has-submenu .submenu li:hover a {
  background-color: #0373ab;
  color: #fff;
  padding-left: 0.3rem;
}
/* banner-search */
.banner-search {
  width: 100%;
  /* height: calc(100vh - 2rem); */
}
.banner-search::after {
  content: '';
  position: absolute;
  width: 5.8rem;
  height: 5.6rem;
  background: linear-gradient(121deg, #78c8ef 22%, #0172aa 100%);
  bottom: auto;
  top: 0;
  z-index: -1;
}
.banner-search .container {
  height: 100%;
  position: relative;
}
.banner,
.banner .swiper-slide,
.banner .swiper-slide a {
  width: 100%;
  height: 100%;
}
.banner .swiper-slide a {
  display: block;
  background-size: cover;
  padding-bottom: 45%;
}
.search {
  position: absolute;
  width: 100%;
  height: 4rem;
  z-index: 99;
  bottom: 0;
  left: 0;
  padding: 0 18% 0.4rem;
  box-sizing: border-box;
}
.search .search-box {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.1rem;
  padding: 0.34rem 0.74rem;
  box-sizing: border-box;
  position: relative;
}
.search .search-box h2{
  width: 1.6rem;
  height: 0.62rem;
  font-size: 0.28rem;
  line-height: 0.62rem;
  transform: translateY(-0.28rem);
  background-color: #0373ab;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 0;
}
.search .search-box .search-form-div {
  width: 100%;
  height: 0.6rem;
  margin: 0.3rem 0 0.1rem;
}
.search .search-box .search-form-div .search-form {
  width: 100%;
  height: 0.6rem;
  display: flex;
  justify-content: start;
}
.search-form {
  display: flex;
  margin-bottom: 0.15rem;
}
.search-form > *:not(:last-child) {
  margin-right: 0.1rem;
}

.search-select {
  height: 0.45rem;
  padding: 0 0.15rem;
  border: none;
  background: #fff;
  font-size: 0.14rem;
  color: #333;
  cursor: pointer;
  min-width: 1.6rem;
}
.search-input-box {
  flex: 1;
  height: 0.47rem;
  padding: 0 0 0 0.02rem;
  border: none;
  background: #fff;
  font-size: 0.16rem;
  display: flex;
  align-items: center;
  border: 1px solid #0373ab;
}
.search-input-box label{
  position: relative;
  padding-left: 0.15rem;
}
.search-input-box label::before {
  content: '';
  width: 1px;
  height: 0.18rem;
  background-color: #ccc;
  position: absolute;
  right:-0.15rem;
  top:0.03rem;
  display: block;
}

.search-input {
  flex: 1;
  height: 0.42rem;
  padding: 0 0.15rem;
  border-radius: 0.05rem;
  border: none;
  background: #fff;
  font-size: 0.14rem;
  position: relative;
  margin-left: 0.15rem;
}

.search-btn {
  height: 100%;
  padding: 0 0.4rem;
  background: #0373ab;
  color: #fff;
  border: none;
  font-size: 0.16rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #014263;
}

.search .search-box .tab-box {
  display: flex;
  justify-content: space-between;
}
.search .search-box .tab-box .tab-left {
  width: 2.4rem;
  height: 1.8rem;
  border-right: 2px solid #014263;
}
.search .search-box .tab-box .tab-left ul{
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.search-box .tab-box .tab-left ul li {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  text-align: center;
  font-size: 0.18rem;
  border: 1px solid #b1b1b1;
  padding: 0 0.2rem;
  cursor: pointer;
}
.search-box .tab-box .tab-left ul li.active {
  border: 1px solid #0373ab;
  color: #0373ab;
}
.search-box .tab-box .tab-content {
  flex: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 0.6rem;
}
.search-box .tab-box .tab-content .tab {
  display: none;
  height: 100%;
  width: 100%;
}
.search-box .tab-box .tab-content .tab.active {
  display: block;
  width: 100%;
  height: 100%;
}
.search-box .tab-box .tab-content .tab.active ul {
  display: flex;
  flex-wrap: wrap;
  height: 1.8rem;
  width: 100%;
}
.search-box .tab-box .tab-content .tab.active ul li {
  height: 0.6rem;
  width: 33.333%;
  padding: 0;
  margin: 0;
}
.search-box .tab-box .tab-content .tab.active ul li a{
  display: flex;
  align-items: start;
  width: 100%;
  height: 100%;
  line-height: 0.6rem;
  font-size: 0.16rem;
}
.search-box .tab-box .tab-content .tab.active ul li:hover a {
  color: #0373ab;
}

/* 快捷入口 */
.quick-links {
  background: #fff;
  padding: 0.8rem 0 0.4rem;
}

.quick-list {
  display: flex;
  justify-content:space-around;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 0.14rem;
}
.quick-item > *:not(:last-child) {
  margin-bottom: 0.12rem;
}

.quick-item:hover {
  transform: translateY(-0.05rem);
}
.quick-item .icon-box {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quick-item .icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.quick-item .icon-intro {
  background: url(../sztsg_img_library/icon5.png) no-repeat center center;
  background-size: cover;
}
.quick-item:hover .icon-intro {
  background: url(../sztsg_img_library/icon51.png) no-repeat center center;
  background-size: cover;
}
.quick-item .icon-time {
  background: url(../sztsg_img_library/icon5.png) no-repeat center center;
  background-size: cover;
}
.quick-item:hover .icon-time {
  background: url(../sztsg_img_library/icon51.png) no-repeat center center;
  background-size: cover;
}
.quick-item .icon-search {
  background: url(../sztsg_img_library/icon5.png) no-repeat center center;
  background-size: cover;
}
.quick-item:hover .icon-search {
  background: url(../sztsg_img_library/icon51.png) no-repeat center center;
  background-size: cover;
}
.quick-item .icon-overdue {
  background: url(../sztsg_img_library/icon5.png) no-repeat center center;
  background-size: cover;
}
.quick-item:hover .icon-overdue {
  background: url(../sztsg_img_library/icon51.png) no-repeat center center;
  background-size: cover;
}
.quick-item .icon-info {
  background: url(../sztsg_img_library/icon5.png) no-repeat center center;
  background-size: cover;
}
.quick-item:hover .icon-info {
  background: url(../sztsg_img_library/icon51.png) no-repeat center center;
  background-size: cover;
}

.quick-item:hover .icon-box {
  background: #0093DD;
}

.quick-item span {
  font-size: 0.14rem;
  color: #333;
}

.quick-item:hover span {
  color: #0093DD;
}

/* 新闻区域 */
.news-section {
  padding: 0.5rem 0;
}

.news-row {
  display: flex;
}
.news-row > *:not(:last-child) {
  margin-right: 0.4rem;
}

.news-box {
  flex: 1;
  padding: 0.25rem 0;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  padding-bottom: 0.15rem;
}

.news-title {
  font-size: 0.3rem;
  color: #0072aa;
  position: relative;
  font-weight: 400;
}

.more {
  font-size: 0.14rem;
  color: #999;
  transition: all 0.3s ease;
}
.more::after {
  content: '';
  position: relative;
  width: 0.68rem;
  height: 0.28rem;
  display: inline-block;
  background: url(../sztsg_img_library/gengduo.png) no-repeat center center;
  margin-left: 0.05rem;
  top: 0.1rem;
  background-size:cover;
}

.more:hover {
  color: #0093DD;
}

.news-list {
  display: flex;
  flex-direction: column;
}
.news-list:first-child {
  margin-right: 0.15rem;
}

.news-item {
  display: flex;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #ffffff;
}

.news-item .date {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  width: 0.8rem;
  border-right: 1px solid #eee;
  margin-right: 0.2rem;
}

.news-item .day {
  font-size: 0.28rem;
  font-weight: bold;
  color: #0093DD;
  line-height: 1;
}
.news-item .month {
  color: #e0e0e0;
  font-weight: 400;
  font-size: 0.24rem;
}

.news-item .year {
  font-size: 0.14rem;
  color: #999;
}

.news-item .content {
  flex: 1;
  display: flex;
  align-items: center;
}

.news-item .content p {
  font-size: 0.18rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item:hover {
  border-bottom: 1px solid #0093DD;
}
.news-item:hover .date {
  border-right: 1px solid #0093DD;
}
.news-item:hover .day,
.news-item:hover .month,
.news-item:hover .year {
  color: #0093DD;
}
.news-item:hover .content p {
  color: #0093DD;
  font-size: 0.18rem;
  font-weight: bold;
}

/* 数据库导航 */
.database-section {
  padding: 0.5rem 0 0.7rem;
  background: url(../sztsg_img_library/by.png) no-repeat;
  background-size: 100% 100%;
}

.database-section .section-title {
  text-align: center;
  font-size: 0.30rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 40px;
  position: relative;
}

.database-row {
  display: flex;
  height: 6.4rem;
  align-items: center;
}
.database-row > *:not(:last-child) {
  margin-right: 0.3rem;
}

.database-card {
  flex: 1;
  background: #fff;
  border-radius: 0.1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 6rem;
}

.database-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  height: 6.2rem;
}

.database-card.orange .card-header {
  background: url(../sztsg_img_library/shu.png) no-repeat;
  background-size: 100% 100%;
}

.database-card.blue .card-header {
  background: url(../sztsg_img_library/zhi.png) no-repeat;
  background-size: 100% 100%;
}

.database-card.purple .card-header {
  background: url(../sztsg_img_library/shi.png) no-repeat;
  background-size: 100% 100%;
}

.card-header {
  padding: 0.25rem 0.25rem 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h4 {
  color: #fff;
  font-size: 0.30rem;
  font-weight: 400;
}

.card-header .icon {
  width: 0.4rem;
  height: 0.4rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.card-body {
  padding: 0.2rem 0.25rem;
  height: 5.04rem;
  transition: all 0.3s ease;
}

.database-card:hover .card-body {
  height: 5.6rem;
}

.resource-list {
  display: flex;
  flex-direction: column;
  height: 3.9rem;
  margin-top: 0.12rem;
}
.resource-list > li:not(:last-child) {
  margin-bottom: 0.2rem;
}

.resource-list li a {
  display: flex;
  align-items: center;
  font-size: 0.14rem;
  color: #666;
  transition: all 0.3s ease;
  font-size: 0.18rem;
}
.resource-list li a > *:not(:last-child) {
  margin-right: 0.1rem;
}

.resource-list li a:hover {
  color: #0093DD;
  padding-left: 0.05rem;
}

.resource-list .dot {
  display: block;
  width: 0.1rem;
  height: 0.12rem;
  background: url(../sztsg_img_library/sanjiao.png) no-repeat center center;
  background-size: contain;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding-right: 0.4rem;
}


.card-more {
  display: block;
  text-align: right;
  margin-top: 0.2rem;
  padding: 0.1rem;
  color: #999;
  font-size: 0.16rem;
  transition: all 0.3s ease;
}

.card-more:hover {
  color: #0093DD;
}

/* 读书推荐书籍 */
.books-section {
  padding: 0.5rem 0;
  background: #fff;
}
.books-section .section-title {
  text-align: center;
  font-size: 0.30rem;
  color: #0093DD;
  font-weight: 400;
  margin-bottom: 40px;
  position: relative;
}

.books-slider {
  position: relative;
  padding: 0 0.5rem;
}

.book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}
.book-item > *:not(:last-child) {
  margin-bottom: 0.15rem;
}

.book-item:hover {
  transform: translateY(-0.05rem);
}

.book-cover {
  width: 2.28rem;
  height: 2.88rem;
  border-radius: 0.05rem;
  overflow: hidden;
  box-shadow: 0 0.05rem 0.15rem rgba(0,0,0,0.15);
  padding: 0rem;
  background-color: #f5f5f5;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.book-name {
  font-size: 0.20rem;
  color: #333;
  text-align: center;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-item:hover .book-name {
  color: #0093DD;
}

.books-prev,
.books-next {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
}
.books-next {
  background: url(../sztsg_img_library/jiantou04.png) no-repeat center;
  background-size: cover;
}
.books-prev {
  background: url(../sztsg_img_library/jiantou03.png) no-repeat center;
  background-size: cover;
}
.books-prev:hover {
  transform: translateY(-50%) scale(1.1);
}
.books-next:hover {
  transform: translateY(-50%) scale(1.1);
}


.books-prev {
  left: 0;
}

.books-next {
  right: 0;
}

@media (max-width: 800px) {
  body.on{
    height: 100vh;
    overflow: hidden;
  }
  .header {
    height: auto;
  }
  body.on .library-wrap,
  body.on .header {
    height: 100vh;
    overflow: hidden;
  }
  .library-wrap .container{
    padding: 0 0.5rem;
  }
  .header-top {
    height: 60px !important;
  }
  .header .container{
    padding: 0;
  }
  .header .header-logo {
    flex: 1;
    padding-left: 0.4rem;
    width: auto;
  }
  .header .zhank{
    width: 60px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
   .header .zhank i {
    width: 22px;
    height: 22px;
    display: inline-block;
    background: url(../sztsg_img2025/zk.png) no-repeat;
    background-size: contain;
   }
   .header .zhank.on i {
    width: 22px;
    height: 22px;
    display: inline-block;
    background: url(../sztsg_img2025/sl.png) no-repeat;
    background-size: contain;
   }

  .header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(121deg, #78c8ef 22%, #0172aa 100%);
    bottom: auto;
    top: 0;
    left: 0;
    z-index: -1;
    padding-left: 0;
  }
  .header .menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 999;
    background-color: rgba(255,255,255,0.98);
    align-items: start;
    justify-content: start;
    padding-left: 0;
    display: none;
  }
  .header .menu ul{
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    height: 100%;
    padding: 0.2rem 0.4rem;
  }
   .header .menu ul li {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e5e5e5;
    
  }
  .header .menu > ul > li > a {
    height: 46px;
    justify-content: start;
    font-size: 16px;
  }
  .header .menu ul li.has-submenu > a::after {
    content: '';
    width: 15px;
    height: 15px;
    position: absolute;
    right: 0;
    display: inline-block;
    background: url('../sztsg_img_library/arrow_down.svg') no-repeat;
    background-size: 15px 15px;
  }
  .header .menu > ul > li.active > a, 
  .header .menu > ul > li:hover > a {
    background-color: transparent;
    color: #0072aa;
    font-weight: bold;
  }
  .header .menu ul li.has-submenu .submenu {
    box-shadow: none;
    position: relative;
    top: 0;
    left: 0;
    padding: 0 !important;
    height: auto;
  }
  .header .menu ul li.has-submenu:hover .submenu {
    display: none;
  }
  .header .menu ul li.has-submenu.active .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
  .header .menu ul li.has-submenu .submenu li {
    height: 42px;
    display: flex;
    align-items: center;
  }
   .header .menu ul li.has-submenu .submenu li:last-child {
    border-bottom: none;
   }
  .header .menu ul li.has-submenu .submenu li a {
    text-align: left;
    background-color: transparent;
    color: #000;
    font-size: 16px;
  }
  .banner-search::after {
    width: 0;
  }
  .banner-search .container {
    padding: 0;
  }
  .search {
    position: relative !important;
    margin-top: 20px;
    padding:0;
  }
  .search .search-box {
    padding: 0.2rem 0.3rem;
  }
  .search-box .tab-box .tab-content .tab.active ul li {
    width: 50%;
    height: 0.4rem;
  }
  .search-box .tab-box .tab-content {
    padding-right: 0;
  }
  .search-box .tab-box .tab-content .tab.active ul li a {
    padding-right: 0;
  }
  .quick-links {
    padding-top: 0rem;
  }
  .news-row {
    flex-direction: column;
  }
  
  .database-row > *:not(:last-child) {
    margin-right: 0.15rem;
  }
  .bqxx a{
    font-size: 0.16rem;
  }
}