* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  /* overflow: hidden; */
  /* height: 100vh; */
  background: #FEFEFE;
  /* 优化页面渲染性能 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg_container {
  background: url("../../images/mlws/mlws_top.png");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#app {
  background: url("../../images/mlws/background_1.png");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-simple {
  position: absolute;
  width: 100%;
  top: 0;
}

.header-simple .header_all {
  background: none;
}

.section-title {
  padding: 50px 0;
}

.section-title a {
  display: flex;
  justify-content: center;
}


.overview-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 武胜概况顶部 */
.overview-content-top {
  width: 100%;
  max-width: 1400px;
  padding: 24px 70px;
}

.overview-text {
  max-height: 200px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-text p {
  line-height: 40px;
  font-size: 18px;
  text-indent: 2em;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.overview-text p:last-child {
  margin-bottom: 0;
}

.overview-content-wrapper img {
  margin: 0 auto;
}

.overview-content-wrapper video {
  max-width: 100%;
  max-height: 500px;
}

.section-detail {
  color: #ff0000;
  float: right;
}

/* 视频播放 */

/* 视频播放器占位样式 */
.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover img {
  opacity: 0.8;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

/* 确保视频播放器样式一致 */

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}


/* 确保视频播放器样式一致且稳定 */
.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  /* 防止视频加载时的尺寸闪烁 */
  min-height: 100%;
  min-width: 100%;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

/* 武胜概况底部 */

.bottom {
  width: 100%;
  display: flex;
  align-items: center;
}

.left {
  flex: 1.5;
  width: 100%;
}

.right {
  display: flex;
  flex: 1;
  position: relative;
}

.nav-texts {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  padding: 50px 70px;
  height: 100%;
  align-items: center;
}

.nav-text {
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  width: 33.3%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.nav-text:hover {
  transform: translateY(-2px);
}

.nav-text span {
  color: inherit
}

/* Section 2: 武胜人文 */
.culture-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}


/* Updated carousel to use Swiper */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 450px;
}

/* Swiper 基础样式 */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  display: flex;
  height: 100%;
  align-items: center;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  height: auto;
}

/* 侧边图片样式 */
.swiper-slide {
  opacity: 0.6;
  transform: scale(1);
  z-index: 1;
}

/* 激活状态（中间图片） */
.swiper-slide-active {
  opacity: 1;
  transform: scale(1.25);
  z-index: 10;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.carousel-image {
  position: relative;
}

.carousel-image a {
  position: relative;
}

.swiper-lazy-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Swiper 分页器 */
.section-culture .swiper-pagination {
  position: absolute;
  bottom: 6vh;
  background: #bfc1c3c7;
  width: 450px;
  border-radius: 22px;
  height: 44px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 24px;
}

.section-culture .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background: #fff;
  transition: all 0.3s;
  opacity: 1;
}

.section-culture .swiper-pagination-bullet-active {
  background: #4a90e2;
  width: 32px;
  border-radius: 22px;
  opacity: 1;
}

/* 导航按钮 */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: rgba(0, 0, 0, 0.6);
}

.nav-button.prev {
  left: 20px;
}

.nav-button.next {
  right: 20px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
}


/* Section 3: 武胜影像 */
.section-bottom {
  position: relative;
  padding-bottom: 156px;
}

.bottom-content {
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.item {
  border-radius: 12px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  padding: 20px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.item a {
  color: inherit;
}

.item:hover {
  transform: translateY(-8px);
}

.item-top {
  position: relative;
}

.item-top img {
  width: 100%;
}

.item-img {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: bold;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-bottom {
  font-size: 18px;
  line-height: 1.5;
  padding: 14px 32px 16px;
}

/* 图片媒体自适应 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 平板适配（≤1200px）*/
@media (max-width: 1200px) {

  .overview-content,
  .culture-content,
  .bottom-content {
    padding: 0 24px;
  }

  .overview-content-top {
    gap: 30px;
  }

  .nav-texts {
    padding: 32px 44px;
  }

  .carousel-container {
    height: 360px;
  }

  .section-culture .swiper-pagination {
    width: auto;
    padding: 0 16px;
  }

}

/* 平板纵向与小型笔电（≤992px）*/
@media (max-width: 992px) {

  .overview-text p {
    margin-bottom: 12px;
  }

  .nav-texts {
    padding: 16px 22px;
  }

  .nav-text {
    font-size: 20px;
    gap: 6px;
  }

  .nav-text img{
    width: 40px;
    height: 40px;
  }

  .carousel-container {
    height: 230px;
  }

  .section-culture .swiper-pagination {
    height: 32px;
  }

  .bottom-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-culture .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
  }

  .section-culture .swiper-pagination-bullet-active {
    width: 20px;
  }
}

/* 手机（≤768px）*/
@media (max-width: 768px) {

  .top_bottom {
    background: url(/gasylbzj/pc2025/images/header_bj01_001.png) !important;
    background-size: cover !important;
    background-position-x: center !important;
  }

  .section-overview {
    height: auto;
    padding-bottom: 50px;
  }

  .video-player {
    height: 300px; /* 给移动端一个固定高度 */
  }
  
  .video-player video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .bottom {
    flex-direction: column;
  }

  .overview-content-top {
    padding: 24px 20px;
  }

  .right {
    width: 100%;
  }

  .right > img{
    width: 100%;
    height: 220px;
  }

  .nav-texts {
    width: 100%;
  }

  .nav-text {
    width: 25%;
  }


  /* 武胜人文 */

  .carousel-container {
    height: 300px;
  }

  /* 在移动端取消激活状态的缩放 */
  .swiper-slide {
    opacity: 1;
    /* 移动端所有幻灯片都完全显示 */
    transform: scale(1);
  }

  .swiper-slide-active {
    transform: scale(1);
  }

  /* 调整导航按钮和分页器 */
  .nav-button {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 20px;
  }

  .section-culture .swiper-pagination {
    width: 300px;
    height: 36px;
    padding: 0 12px;
    bottom: 0;
  }

  .section-culture .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
  }

  .section-culture .swiper-pagination-bullet-active {
    width: 24px;
  }

  /* 武胜旅游 */
  .bottom-content {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 15px;
    padding: 0 20px;
  }

  .item {
    padding: 15px 10px;
  }

  .item-bottom {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* 超小屏（≤480px）*/
@media (max-width: 480px) {

  .section-title {
    padding: 30px 0;
  }

  .nav-texts {
    align-items: flex-start;
  }

  .nav-text {
    width: 33.3%;
  }

  .carousel-container {
    height: 190px;
  }

}