/* =========================
   1) Banner 背景图版（固定 650px）
   ========================= */
.mh-bannerx {
  position: relative;
  width: 100%;
  height: 650px;              /* ← 跟你说的一样 */
  overflow: hidden;
}
.mh-bannerx-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.mh-bannerx:hover .mh-bannerx-bg {
  transform: scale(1.1);
}
/* 遮罩 */
.mh-bannerx-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom right,
      rgba(0, 20, 60, 0.45),
      rgba(0, 0, 0, 0.35)
  );
  z-index: 2;
}
/* 文本 */
.mh-bannerx-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}
.mh-bannerx-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: 1px;
}
.mh-bannerx-subtitle {
  font-size: clamp(15px, 1.8vw, 20px);
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}
.mh-bannerx-btns {
  display: flex;
  justify-content: center;
}
.mh-bannerx-btn,
.mhx3-top-btn {
  background: linear-gradient(90deg, #0077ff, #00c6ff);
  color: #fff;
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.mh-bannerx-btn:hover,
.mhx3-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.45);
}

/* 移动端高度降一点 */
@media (max-width: 768px) {
  .mh-bannerx { height: 480px; }
  .mh-bannerx-title { font-size: 26px; }
  .mh-bannerx-subtitle { font-size: 14px; }
  .mh-bannerx-btn,
  .mhx3-top-btn { padding: 10px 26px; font-size: 14px; }
}

/* =========================
   2) 增值服务模块 (mhx3)
   ========================= */
html { scroll-behavior: smooth; }

.mhx3-section {
  background: #fff;
  padding: 50px 0;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 顶部标题（粘性） */
.mhx3-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  text-align: center;
  padding: 20px 10px;
}
.mhx3-title {
  font-size: 30px;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 6px;
}
.mhx3-subtitle-main {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.mhx3-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* 左侧菜单 */
.mhx3-menu {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 140px;
  height: fit-content;
}
.mhx3-menu-card {
  background: #f7f8fa;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid transparent;
  transition: all 0.3s ease;
}
.mhx3-menu-card:hover {
  background: #eef4ff;
  color: #0056b3;
  border-left: 5px solid #0056b3;
  transform: translateY(-3px);
}
.mhx3-menu-card.mhx3-active {
  background: #ffffff;
  color: #0056b3;
  border-left: 5px solid #0056b3;
  box-shadow: 0 8px 18px rgba(0, 86, 179, 0.15);
  transform: translateY(-3px);
}

/* 右侧内容 */
.mhx3-content {
  flex: 1;
}

/* 每一张服务卡片 */
.mhx3-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(145deg, #ffffff, #f6f8fb);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 40, 100, 0.08);
  position: relative;
  margin-bottom: 80px;
  scroll-margin-top: 120px;
}
.mhx3-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 40, 100, 0.12);
  transition: all 0.35s ease;
}
.mhx3-left {
  flex: 1;
}
.mhx3-left h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: center;
}
.mhx3-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 420px;
  text-align: center;
}
.mhx3-points {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mhx3-point {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 5px 18px;
  line-height: 1.5;
  color: #555;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}
.mhx3-point strong {
  display: block;
  color: #0a2540;
  font-weight: 700;
  font-size: 17.5px;
  margin-bottom: 4px;
}
.mhx3-point:hover {
  background: #eaf1ff;
  border-left: 4px solid #0070f3;
  transform: translateY(-2px);
}

/* 右图 */
.mhx3-right {
  flex: 1;
  text-align: right;
  
}
.mhx3-right img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: all 0.6s ease;
}
.mhx3-right img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
  filter: brightness(1.05);
}

/* 弹窗 */
.mhx3-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.mhx3-modal-content {
  background: #fff;
  padding: 40px 30px 30px;
  border-radius: 14px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
  animation: scaleIn .35s ease forwards;
}
.mhx3-modal-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #0a2540;
}
.mhx3-modal-content p {
  margin-bottom: 18px;
  color: #555;
}
.mhx3-wechat-box img {
  width: 160px;
  height: 160px;
  border-radius: 10px;
}
.mhx3-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}
.mhx3-modal-close:hover { color: #0056b3; }

@keyframes scaleIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* 移动端优化 */
@media (max-width: 900px) {
  .mhx3-container {
    display: block;
    max-width: 100%;
    padding: 0;
  }
  .mhx3-menu {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.05);
    position: sticky;
    top: 90px;
    z-index: 99;
  }
  .mhx3-menu-card {
    flex: 0 0 auto;
    min-width: auto;
    font-size: 16px;
    border-left: 0;
  }
  .mhx3-menu-card.mhx3-active {
    border-bottom: 3px solid #0056b3;
  }
  .mhx3-content {
    margin-top: 50px;
    padding: 0 12px;
  }
  .mhx3-card {
    flex-direction: column;
    text-align: left;
  }
  .mhx3-right {
    text-align: center;
  }
  .mhx3-right img {
    max-width: 100%;
  }
}
/* ===== 移动端：让 mhx3-menu 回归普通文流，不悬浮、不遮挡 ===== */
/* ==========================================================
   左侧菜单 + 标题合并卡片化设计
   ========================================================== */
.mhx3-menu {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 40, 100, 0.08);
  padding: 25px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  position: sticky;
  top: 100px; /* 与导航保持间距，可微调 */
  width: 280px;
}

.mhx3-header-inside {
  text-align: center;
  margin-bottom: 10px;
}

.mhx3-header-inside h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 6px;
}

.mhx3-header-inside p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

.mhx3-divider {
  height: 1px;
  background: linear-gradient(to right, #dbe6ff, #e6ebf5);
  margin-bottom: 10px;
}

/* 菜单项 */
.mhx3-menu-card {
  background: #f7f8fa;
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mhx3-menu-card:hover,
.mhx3-menu-card.mhx3-active {
  background: #eef4ff;
  color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.12);
}

/* 响应式布局 */
@media (max-width: 900px) {
  .mhx3-container {
    flex-direction: column;
    gap: 20px;
  }
  .mhx3-menu {
    width: 100%;
    position: relative;
    top: auto;
    border-radius: 10px;
    padding: 20px 12px;
    box-shadow: 0 4px 15px rgba(0, 40, 100, 0.05);
  }
  .mhx3-header-inside h1 {
    font-size: 20px;
  }
  .mhx3-header-inside p {
    font-size: 13px;
  }
}

/* ********************************************** */
/* ========== 移动端：标题居中置顶 + 菜单两列紧凑布局 + 文字居中 ========== */
@media (max-width: 768px) {
  .mhx3-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    padding: 12px;
    overflow: visible;
    position: relative;
    top: auto;
    z-index: 90;
  }

  /* 标题区 */
  .mhx3-header-inside {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 6px 0;
    padding: 8px 4px;
  }
  .mhx3-header-inside h1 {
    font-size: 26px;
    margin-bottom: 4px;
  }
  .mhx3-header-inside p {
    font-size: 12px;
    line-height: 1.5;
    opacity: .8;
    margin-bottom: 6px;
  }

  /* 菜单按钮 */
  .mhx3-menu-card {
    flex: none;
    width: 100%;
    height: 50px; /* ✅ 控制统一高度，更紧凑 */
    display: flex;               /* ✅ 开启弹性布局 */
    align-items: center;         /* ✅ 垂直居中 */
    justify-content: center;     /* ✅ 水平居中 */
    text-align: center;          /* ✅ 多行文字也居中 */
    font-size: 15px;
    padding: 0 8px;
    line-height: 1.3;
    border-left: 0;
    background: #f7f8fa;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
  }

  /* 当前激活项 */
  .mhx3-menu-card.mhx3-active {
    border-bottom: 3px solid #0056b3;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,86,179,.12);
  }

  /* ✅ 最后一行只有一个菜单时独占一整行 */
  .mhx3-menu a.mhx3-menu-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
}

/* 导航与浮动层级调整 */
#headtop { z-index: 999 !important; }
.online-service,
.kefu-fixed,
.kf-fixed,
.float-service { z-index: 90 !important; }

/* ========== 移动端：去掉“增值服务”模块顶部留白 ========== */
@media (max-width: 768px) {
  .mhx3-section {
    margin-top: 0 !important;      /* ✅ 去掉上方外边距 */
    padding-top: 0 !important;     /* ✅ 去掉上方内边距 */
  }

  /* 让标题区与banner紧贴，同时保持内容正常间距 */
  .mhx3-header-inside {
    margin-top: 0 !important;
    padding-top: 10px !important;  /* 轻微内边距，避免贴得太死 */
  }
}
/* ========== 给 mhx3-card 添加科技感阴影 ========== */
.mhx3-card {
  border: 1px solid rgba(0, 80, 180, 0.12);     /* ✅ 略带蓝调边框 */
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 4px 18px rgba(0, 80, 180, 0.08),          /* 蓝色柔光底层阴影 */
    0 2px 8px rgba(0, 80, 180, 0.04),
    inset 0 0 0 0 rgba(0,0,0,0);                /* 保留内层干净 */
  transition: all 0.35s ease;
  padding: 20px 22px;
}

/* ✅ 鼠标悬停时轻微浮起 + 蓝色发光感 */
@media (min-width: 769px) {
  .mhx3-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 28px rgba(0, 90, 210, 0.15),
      0 4px 12px rgba(0, 90, 210, 0.10),
      0 0 12px rgba(0, 120, 255, 0.12);
    border-color: rgba(0, 90, 210, 0.25);
  }
}

/* ✅ 移动端：简洁版本，不漂浮但保持科技感柔光 */
@media (max-width: 768px) {
  .mhx3-card {
    border: 1px solid rgba(0, 80, 180, 0.15);
    box-shadow:
      0 3px 12px rgba(0, 100, 200, 0.08),
      0 1px 4px rgba(0, 100, 200, 0.06);
    border-radius: 12px;
    padding: 16px 14px;
  }
}
/* ========== 补充：立即咨询按钮样式 ========== */
.mhx3-btn {
  display: inline-block;
  margin-top: 22px;
  background: linear-gradient(90deg, #0066ff, #00a3ff);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 102, 255, 0.25);
}

.mhx3-btn:hover {
  background: linear-gradient(90deg, #007bff, #22b8ff);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mhx3-btn {
    width: auto;
    text-align: center;
    margin-top: 18px;
  }
}
/* ========== 让按钮与卡片内容垂直对齐 ========== */
.mhx3-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中整个文字区块 */
}

.mhx3-points {
  margin-top: 10px;
  margin-bottom: 10px; /* 给按钮留出自然间距 */
}

.mhx3-btn {
  align-self: flex-start; /* 保证按钮从左对齐 */
}
/* ========== 移动端按钮居中显示 ========== */
@media (max-width: 768px) {
  .mhx3-btn {
    display: block;
    margin: 18px auto 0; /* 上方18px，左右自动居中 */
    text-align: center;
  }
}
/* ========== PC端：左侧标题与文字居中 ========== */
@media (min-width: 992px) {
  .mhx3-left h2,
  .mhx3-left p {
    text-align: center;        /* 水平居中 */
    margin-left: auto;
    margin-right: auto;
  }

  /* 优化副标题行距与间距 */
  .mhx3-left p.mhx3-subtitle {
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: 1.6;
  }
}
/* ========== PC端：让右侧图片整体下移 ========== */
@media (min-width: 992px) {
  .mhx3-right {
    margin-top: 60px;   /* 可根据需要调整，比如 30px / 50px 都可以 */
  }
}


