/* ========== 手机站头部与轮播图样式 ========== */

/* 消除默认样式影响 */
.carousel-wrapper *,
.full-menu * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== 轮播主容器 ========== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 4.8rem;
  /* 适合移动端的比例，约 16:10 */
  overflow: hidden;
  background-color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 将 z-index 设为 auto（不创建局部层叠上下文），以允许子元素吸顶 Header 的 z-index: 9999 逃逸到全局对比，从而完美遮盖 .s5_ba (z-index: 99) 等页面其他定位元素 */
  z-index: auto;
}

/* ========== 顶部 Header 吸顶栏 ========== */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.3rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.3rem;
  /* 顶部渐变红色/紫色半透明背景，适配首屏的深红色/紫色遮罩氛围 */
  background: linear-gradient(to bottom,
      rgba(46, 12, 42, 0.85) 0%,
      rgba(46, 12, 42, 0.4) 60%,
      rgba(46, 12, 42, 0) 100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-header .logo {
  height: 0.8rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.main-header .logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 汉堡菜单按钮样式（带半透明圆圈背景） */
.menu-toggle-btn {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.08rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.menu-toggle-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.menu-toggle-btn span {
  display: block;
  width: 0.32rem;
  height: 0.03rem;
  background: #fff;
  border-radius: 0.02rem;
}

/* ========== 吸顶模式状态 ========== */
.main-header.sticky {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background: #1b5ba2;
  /* 目标效果图的深蓝色 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  height: 1.2rem;
  /* 从 1.1rem 调大到 1.2rem */
  z-index: 9999;
  /* 显式设置极高层级，防止被页面下方 relative/absolute 定位的其他内容遮挡 */
}

.main-header.sticky .logo {
  height: 0.75rem;
  /* 相应微调大 Logo 高度 */
}

.main-header.sticky .menu-toggle-btn {
  width: 0.68rem;
  /* 相应微调大按钮尺寸 */
  height: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  /* 滚动时圆圈背景浅化 */
}

/* ========== 轮播图轨道 ========== */
.carousel-track {
  display: flex;
  width: calc(var(--slide-count, 1) * 100%);
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* 升级为平滑弹性缓动 */
}

.carousel-slide {
  flex: 0 0 calc(100% / var(--slide-count, 1));
  width: calc(100% / var(--slide-count, 1));
  height: 100%;
  overflow: hidden;
}

.carousel-slide a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  transition: transform 0.6s ease-out;
}

/* 激活状态下的镜头呼吸拉远效果 */
.carousel-slide.active img {
  transform: scale(1);
  transition: transform 4s linear;
}

/* 轮播图底部与顶部黑色半透明渐变遮罩 */
.carousel-slide a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5rem;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 15;
  pointer-events: none;
}

/* ========== 底部标题及指示器栏 ========== */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1rem;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0.3rem 0.15rem 0.3rem;
  pointer-events: none;
}

.bottom-bar * {
  pointer-events: auto;
}

/* 底部绿色跟图文字与白色展示文字 */
.bottom-text {
  font-size: 0.28rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.05rem;
  transition:
    opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transform: translateY(0);
}

/* 文字淡出微动效 */
.bottom-text.fade-out {
  opacity: 0;
  transform: translateY(0.15rem);
}

.dots-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 轮播图圆点指示器 */
.dots {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.dots .dot {
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 平滑圆点拉伸 */
}

/* 激活的圆点样式：扁平化变长 */
.dots .dot.active {
  width: 0.4rem;
  border-radius: 0.06rem;
  background: #fff;
  border-color: #fff;
}

.more-btn {
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.more-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* ========== 全屏深蓝色菜单样式 ========== */
.full-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a5ca4;
  /* 经典深蓝色背景，与效果图高度吻合 */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 全屏菜单头部栏 */
.full-menu-header {
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.full-menu-header .logo {
  height: 0.8rem;
  display: flex;
  align-items: center;
}

.full-menu-header .logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 关闭按钮样式 */
.menu-close-btn {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.menu-close-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

/* 全屏菜单滚动内容区 */
.full-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.2rem 0.4rem 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
}

/* 导航项列表 */
.full-menu-nav {
  margin-bottom: 0.4rem;
}

.full-menu-nav ul {
  list-style: none;
}

.full-menu-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.full-menu-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0;
  color: #fff;
  font-size: 0.32rem;
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 500;
}

.full-menu-nav li a:active {
  background: rgba(255, 255, 255, 0.05);
}

/* 右侧箭头标识 */
.full-menu-nav .arrow-right {
  display: inline-block;
  width: 0.16rem;
  height: 0.16rem;
  border-top: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}

/* 底部辅助按钮网格 */
.full-menu-footer {
  margin-top: auto;
  padding: 0.3rem 0;
}

.full-menu-footer .head_info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.full-menu-footer .head_info span {
  font-size: 0.24rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.full-menu-footer .head_info s {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  margin-left: 0.1rem;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.15rem;
}

.btn-grid.row2 {
  grid-template-columns: repeat(3, 1fr);
}

.btn-grid a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.24rem;
  text-decoration: none;
  border-radius: 0.04rem;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-grid a:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}