html,
body {
  height: 100%;
  margin: 0;
}
.container {
  max-width: 750px;
  margin: 0 auto;
}
.swiper {
  width: 100%;
  height: 100vh; /* 全屏高度 */
  height: 100dvh; /* 处理移动端动态工具栏 */
  position: relative; /* 让 header 绝对定位基于 swiper */
}
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 24px;
  color: #fff;
  text-align: center;
  position: relative;
  height: 100vh; /* 全屏高度 */
  height: 100dvh; /* 处理移动端动态工具栏 */
}
.swiper-slide img {
  width: 100%;
  display: block;
}
.swiper-slide .slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  position: absolute;
  bottom: 24px;
  height: 3rem;
  padding: 0 5%;
  width: 90%;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  /* 考虑移动浏览器底部工具栏/安全区 */
  bottom: calc(80px + constant(safe-area-inset-bottom));
  bottom: calc(80px + env(safe-area-inset-bottom));
}
.slide2.swiper-slide .slide-content {
  bottom: 84px;
}
.slide4.swiper-slide .slide-content {
  bottom: 84px;
}
.swiper-slide .slide-content a {
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0;
}
.swiper-slide .slide-content a {
  display: inline-block;
  width: auto;
  margin-right: 1rem;
}
.swiper-slide .slide-content a:last-child {
  margin-right: 0;
}
.swiper-slide .slide-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

@media (min-width: 751px) {
  .swiper-slide .slide-content {
    bottom: 24px;
    width: 80%;
    justify-content: center;
  }
  .slide2.swiper-slide .slide-content {
    bottom: 134px;
  }
  .slide4.swiper-slide .slide-content {
    bottom: 124px;
  }
  .swiper-slide .slide-content a {
    width: auto;
  }
  .slide1.swiper-slide .slide-content {
    bottom: 10px;
  }
}
.swiper-slide.slide1 .banner1 {
  /* background: url(../images/banner1.jpg) no-repeat center top;
  background-size: cover; */
  /* padding-top: 64px; */
}
/* .slide2 {
  background: #059669;
}
.slide3 {
  background: #be123c;
} */

/* 分页样式（圆点） */
.swiper-pagination {
  --swiper-pagination-color: #fff;
  /* 将分页按钮提升到安全区之上 */
  --swiper-pagination-bottom: calc(8px + constant(safe-area-inset-bottom));
  --swiper-pagination-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* 顶部导航 */
.header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 10;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: url(../images/banner_bg.jpg) no-repeat center center/cover;
}
.header:after {
  content: "";
  height: 1px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: url(../images/line.png) no-repeat center center/cover;
  position: absolute;
  bottom: 0;
}
.header .logo {
  height: 56px !important;
  display: block;
  width: auto;
}
.header .icon-menu-img {
  height: 26px;
  position: absolute;
  right: 40px;
}
.icon-menu {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}
.icon-menu img {
  width: 28px;
  height: 28px;
}

/* 抽屉 & 遮罩 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* 全屏抽屉 */
  height: 100vh;
  background: #ffffff;
  color: #111827;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.drawer.active {
  transform: translateX(0);
}
.drawer-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}
.drawer-header .close-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.drawer-content {
  padding: 16px;
  overflow: auto;
  flex: 1;
  background: linear-gradient(135deg, #d6ecff 0%, #ffdbe9 50%, #d9f6ea 100%);
}
.drawer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-content li {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 16px;
}

/* 打开抽屉时禁用页面滚动 */
body.no-scroll {
  overflow: hidden;
}
html,
body {
  height: 100%;
  margin: 0;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}
.swiper {
  width: 100%;
  height: 100vh; /* 全屏高度 */
  position: relative; /* 让 header 绝对定位基于 swiper */
  overflow: hidden;
}
.swiper-slide {
  position: relative; /* 让背景图绝对定位覆盖 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 24px;
  color: #fff;
  text-align: center;
}
/* 使 slide 内的内容在图片之上显示 */
.swiper-slide > * {
  position: relative;
  z-index: 1;
}
/* 全屏 banner 图片样式 */
.banner-img {
  position: absolute;
  inset: 0; /* top/right/bottom/left 都为 0 */
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例铺满 */
  z-index: 0;
}

@media (min-width: 751px) {
  .banner-img {
    object-fit: contain;
    background-color: #fff;
  }
}

/* 分页样式（圆点） */
.swiper-pagination {
  --swiper-pagination-color: #fff;
}

.header img[alt=""] {
  height: 32px;
}
.icon-menu {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}
.icon-menu img {
  width: 28px;
  height: 28px;
}

/* 抽屉 & 遮罩 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* 全屏抽屉 */
  height: 100vh;
  background: #ffffff;
  color: #111827;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.drawer.active {
  transform: translateX(0);
}
.drawer-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}
.drawer-header .close-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.drawer-content {
  padding: 16px;
  overflow: auto;
  flex: 1;
  background: linear-gradient(135deg, #d6ecff 0%, #ffdbe9 50%, #d9f6ea 100%);
}
.drawer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-content li {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.drawer-content li img {
  width: 20px;
  margin-right: 8px;
}
.drawer-content li a {
  text-decoration: none;
  color: #000;
}

/* 打开抽屉时禁用页面滚动 */
body.no-scroll {
  overflow: hidden;
}
.cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  max-width: 750px;
  margin: 0 auto;
}
.cover img {
  width: 80%;
  display: block;
  margin: 0 auto;
  margin-top: 90px;
}
.cover .close-btn {
  margin: 0 auto;
  display: block;
  width: 60px;
  font-size: 50px;
  background: transparent;
  color: #fff;
  outline: none;
  border: none;
}
