/* 首页样式 */

/* 飘窗样式 */
#float-piao-image {
  width: 280px;
  height: 140px;
  background: linear-gradient(
    to bottom right,
    rgb(186, 22, 38),
    rgb(140, 10, 20)
  );
  border: 1px solid rgb(242, 208, 107);
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#floatImg {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 140px;
  height: 140px;
  z-index: 1000;
  opacity: 0.2;
}

#title {
  color: rgb(242, 208, 107);
  z-index: 999;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#description {
  color: #fff;
  z-index: 999;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  margin-top: 4px;
}

#float-btn {
  color: rgb(242, 208, 107);
  border: 1px solid rgb(242, 208, 107);
  border-radius: 50px;
  width: 100px;
  font-size: 12px;
  line-height: 24px;
  background: rgba(242, 208, 107, 0.2);
  margin-top: 10px;
}

#float-btn span {
  font-size: 10px;
  padding-left: 4px;
}

/* 大屏幕样式 */
@media screen and (min-width: 1200px) {
  .main_notice_banner {
    height: calc(100vh - var(--pc-navi-width));
  }

  .swi_dashboard {
    height: 100%;
    max-height: unset !important;
  }
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
  /* 在手机端隐藏党建引领模块的图片部分 */
  .guidbuding.party-box .guidbuding_body .list_img_body {
    display: none !important;
  }
  
  /* 增加通知公告与校内资讯间的间距 */
  .part_active_notice .container {
    flex-direction: column;
  }
  
  .part_active_notice .left_box,
  .part_active_notice .right_box {
    width: 100%;
    margin-bottom: 30px;
  }
  
  /* 确保媒体风采模块在手机端正常显示 */
  .media_box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .media_box .media_body {
    height: auto;
    grid-template-columns: 1fr;
  }
  
  .media_box .media_body .swiper {
    max-width: 100%;
    height: 300px;
    /* 确保在苹果手机上正常显示 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .media_box .media_body .swiper img {
    object-fit: cover;
    /* 确保在苹果手机上正常显示 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .media_box .media_body .swiper_hover {
    margin-top: 20px;
  }
  
  .media_box .media_body .swiper_hover .item_hover {
    margin-bottom: 10px;
  }
  
  /* 缩小媒体风采图片与下方的间距 */
  .media_box .more {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .media_box {
    margin-bottom: 20px !important;
  }
  
  /* 加高学校荣誉的图片高度 */
  .school-honors .honor-item img {
    height: 250px !important;
    object-fit: cover;
  }
  
  .school-honors .honor-item {
    height: 320px;
  }
  
  /* 优化飘窗样式，在手机端适当缩小整体比例 */
  #float-piao-image {
    width: 200px;
    height: 100px;
  }
  
  #floatImg {
    width: 100px;
    height: 100px;
    right: -18px;
    bottom: -18px;
  }
  
  #title {
    font-size: 14px;
  }
  
  #description {
    font-size: 10px;
    margin-top: 2px;
  }
  
  #float-btn {
    width: 80px;
    font-size: 10px;
    line-height: 20px;
    margin-top: 8px;
  }
  
  #float-btn span {
    font-size: 8px;
  }
}
