@import url('./common-service.css?202512292248');
@import url('./news.css?202601261620');
@import url('./reading-recommendation.css?202512292222');
@import url('./featured-resources.css?202602251809');
@import url('./imust-lecture.css?202512231820');
@import url('./online-exhibition.css?202512231820');
@import url('./footer.css?202512231820');
@import url('./mobile-menu.css?202601291753');
@import url('./mobile-home.css?202512231820');
@import url('./header.css?202601291347');
@import url('./home-notice.css?202512231820');
@import url('./search.css?202602051621');
@import url('./to-top.css');
@import url('./common.css?202601221600');
@import url('./chat-must-avatar.css?202601081542');
@import url('./room-booking-modal.css?202601271435');


.lozad-default {
  width: 100%;
  height: 100%;
}

/* 轮播开始 */
.swiper-pc-home {
  position: relative;
}

.swiper-pc-home .swiper-item-container .swiper-bg-cover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@keyframes fadeInWithDelay {
  0% {
    background: #3498db;
    opacity: 0;
  }

  10% {
    /* 在 10% 的时间点，背景已经好了，透明度才开始动 */
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.swiper-pc-home .swiper-item-container .swiper-bg-cover.show {
  animation: fadeInWithDelay 1s forwards 0.2s;
}

.swiper-pc-home .swiper-pc-home-pagination {
  bottom: 168px;
  left: 140px;
  width: fit-content;
}

.swiper-pc-home .swiper-pc-home-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 2px;
  margin: 0 5px;
  border-radius: unset;
  background: rgba(238, 238, 238, 0.70);
  opacity: 1;
}

.swiper-pc-home .swiper-pc-home-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.98);
  opacity: 1;
}

@media (max-width: 1024px) {
  .swiper-pc-home .swiper-pc-home-pagination {
    bottom: 280px;
    left: 50%;
    transform: translateX(-50%);
  }

  .swiper-pc-home .swiper-pc-home-pagination .swiper-pagination-bullet {
    width: 24px;
  }
}

/* 右侧联系我们nav */
.right-site-contact-aside {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: url('../../image/right-site-contact-nav-bg.png') no-repeat center/100% 100%;
  transform: translateY(-50%);
}

.right-site-contact-aside.cover {
  z-index: 3;
}

.right-site-contact-aside a {
  width: 42px;
  height: 42px;
  padding: 5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s;
}

.right-site-contact-aside a img {
  width: 100%;
  height: 100%;
}

.right-site-contact-aside a:hover {
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.20);
}

/* 二维码容器样式 */
.right-site-contact-aside a.has-qrcode {
  position: relative;
}

.right-site-contact-aside a.has-qrcode .qrcode-popup {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

/* 添加小三角箭头 */
.right-site-contact-aside a.has-qrcode .qrcode-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.right-site-contact-aside a.has-qrcode .qrcode-popup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Hover 时显示二维码 */
.right-site-contact-aside a.has-qrcode:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}

@media (min-width: 1025px) {
  .right-site-contact-aside {
    gap: 0;
    width: 40px;
    height: 319px;
    padding: 51px 0;
  }

  .right-site-contact-aside a {
    width: 30px;
    height: 30px;
  }


  .right-site-contact-aside a.has-qrcode .qrcode-popup {
    width: 180px;
    height: 180px;
  }
}

@media (min-width: 1440px) {
  .right-site-contact-aside {
    width: 62px;
    height: 495px;
    padding: 62px 0;
  }

  .right-site-contact-aside a {
    width: 42px;
    height: 42px;
  }
}

/* 图书馆主体内容样式 */
.hide-smooth .main-scroll {
  z-index: 3;
}

.main-scroll main {
  position: relative;
  background-color: transparent;
  margin-top: -138px;
}

/* 地图背景 - 开始 */
.main-scroll main .watermark {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(180deg, #E9F1F9 0, #FAFCFE 184px, #FFF 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 138px;
}

@media (max-width: 1024px) {

  .hide-smooth .main-scroll,
  .main-scroll {
    margin-top: -210px;
    z-index: 2;
  }

  .main-scroll main .watermark {
    background-image: linear-gradient(180deg, #DFEBF6 0, #FAFCFE 416px, #FFF 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0 31px;
  }
}

/* 仅负责吸顶与定位，绝不加 overflow */
.sticky-bg-map {
  position: sticky;
  top: 20px;
  z-index: 2;
  /* 高于 watermark，低于内容层 */
  pointer-events: none;
  height: 1px;
  /* iOS 需要最小高度触发绘制 */
  margin-top: -1px;
  /* 抵消占位 */
  width: 100%;
}

/* 裁切容器：限定为视口宽度，隐藏溢出，避免横向滚动 */
.sticky-bg-clip {
  position: relative;
  width: 100vw;
  /* 始终以视口宽度为裁切基准 */
  overflow: hidden;
  /* 关键：裁切放大后的图片 */
}

/* 图片：用“宽度计算”放大，而非 transform scale */
.sticky-bg-map-img {
  position: relative;
  left: 50%;
  width: calc(100vw * var(--map-scale, 1));
  /* 实际按倍率放大渲染 */
  max-width: calc(1920px * var(--map-scale, 1));
  /* 可选上限 */
  height: auto;
  transform: translate(-50%, calc(var(--map-offset-y, 0px)));
  /* 居中 + 顶部偏移 */
  user-select: none;
  -webkit-user-drag: none;
}

/* watermark 只保留渐变，并置于更低层级 */
.main-scroll main .watermark {
  z-index: 1;
  background-image: linear-gradient(180deg, #E9F1F9 0, #FAFCFE 184px, #FFF 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 138px;
}

/* 内容层在最上 */
.main-scroll main,
.main-scroll .main-content-container {
  z-index: 3;
}

/* ≤1024 放大但不产生横滚（由裁切容器消化） */
@media (max-width: 1024px) {
  :root {
    --map-scale: 2;
    --map-offset-y: calc(75px + env(safe-area-inset-top, 0));
  }

  .main-scroll main .watermark {
    background-image: linear-gradient(180deg, #DFEBF6 0, #FAFCFE 416px, #FFF 100%);
    background-size: 100% 100%;
    background-position: 0 31px;
  }
}

/* 地图背景 - 结束 */


/* 主体-内容 - 开始 */
.main-scroll .main-content-container {
  position: relative;
  z-index: 3;
  margin-top: 15px;
}

/* 主体-内容 - 标题 - 开始 */
.main-scroll .home-content-block-title {
  position: relative;
  padding-top: 57px;
  color: #111;
  font-weight: 500;
  font-size: 44px;
  line-height: 63px;
  text-align: center;
}

.main-scroll .home-content-block-title::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 192px;
  height: 57px;
  background: url('../../image/home-content-title.png') no-repeat center/100% 100%;
  transform: translateX(-50%);
  content: '';
}

.mt-20 {
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .main-scroll .main-content-container {
    margin-top: 0;
  }

  .main-scroll .home-content-block {
    margin: 0 15px;
    padding-top: 56px;
    box-sizing: content-box;
  }

  .main-scroll .home-content-block-title {
    padding-top: 40px;
    font-size: 22px;
    line-height: 32px;
  }

  .main-scroll .home-content-block-title::before {
    width: 135px;
    height: 40px;
  }
}

@media (min-width: 1025px) {
  .main-scroll .main-content-container {
    margin-top: 0;
  }

  .main-scroll .home-content-block {
    margin: 0 80px;
    padding: 50px 0;
  }

  .main-scroll .home-content-block:nth-child(1) {
    padding: 30px 0 50px;
  }

  .main-scroll .home-content-block-title {
    position: relative;
    padding-top: 46px;
    font-size: 35px;
    line-height: 50px;
  }

  .main-scroll .home-content-block-title::before {
    width: 155px;
    height: 46px;
  }
}

@media (min-width: 1660px) {
  .main-scroll .main-content-container {
    margin-top: 15px;
  }

  .main-scroll .home-content-block {
    margin: 0 160px;
    padding: 60px 0;
    box-sizing: content-box;
  }

  .main-scroll .home-content-block:nth-child(1) {
    padding: 60px 0;
  }

  .main-scroll .home-content-block-title {
    position: relative;
    padding-top: 57px;
    font-size: 44px;
    line-height: 63px;
  }

  .main-scroll .home-content-block-title::before {
    width: 192px;
    height: 57px;
  }
}

.main-scroll {
  height: auto;
  overflow: unset;
  margin-top: -138px;
}

.main-scroll main {
  inset: unset;
  z-index: 3;
  margin-top: 0;
}

footer {
  inset: unset;
}

/* 主体-内容 - 标题 - 结束 */


/* 主体内容-回到顶部 - 开始 */
.home-container {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

body.hide-smooth>.home-container {
  overflow-y: hidden;
}

@media (max-width: 1024px) {

  .hide-smooth .main-scroll,
  .main-scroll {
    margin-top: -234px;
    z-index: 2;
  }
}

/* 桌面浏览器处于 ≤1024px 宽度时，允许用鼠标/触摸板滚动 */
@media (max-width: 1024px) and (hover: hover) and (pointer: fine) {

  body.hide-smooth>.home-container,
  .home-container {
    height: 100vh;
    overflow-y: auto !important;
  }
}

/* 主体内容-回到顶部 - 结束 */


/* 移动端改动 */
@media (max-width: 1024px) {

  body.hide-smooth>.home-container,
  .home-container {
    position: relative;
    z-index: 4;
    overflow: auto;
    background-color: #fff;
  }

  .swiper-pc-home {
    margin-top: unset;
  }
}