/* 顶部导航 */
.topNav {
  position: relative;
  left: 0;
  top: 0;
  transition: top 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 100px;
  background-color: #333;
  z-index: 100;
}

.topNav .logo {
  width: 120px;
  height: 100px;
  margin-left: 30px;
  display: flex;
  align-items: center;
}

.topNav .logo img {
  height: 40px;
}

/* PC 导航 */
.pc-nav {
  display: block;
}
.mobile-menu-btn {
  display: none;
}
.mobile-nav {
  display: none;
}

.topNav .el-menu {
  background-color: transparent;
  color: #fff;
  border-bottom: none;
}

.topNav .el-menu .el-menu-item {
  min-width: 200px;
  height: 101px;
  line-height: 121px;
  font-size: 20px;
  color: #d6d6d6;
  border: none;
  text-align: center;
}

.topNav .el-menu .el-menu-item:hover {
  color: #fff !important;
  font-weight: bold;
  border-bottom: 8px solid #b10309 !important;
  background: linear-gradient(to top, #5a5a5a, #212121);
}

.topNav .el-menu .is-active .el-submenu__title {
  color: #fff !important;
  font-weight: bold;
  border-bottom: 8px solid #b10309 !important;
  background: linear-gradient(to top, #5a5a5a, #212121);
}

.topNav .el-menu .el-menu-item.is-active {
  color: #fff !important;
  font-weight: bold;
  border-bottom: 8px solid #b10309 !important;
  background: linear-gradient(to top, #5a5a5a, #212121);
}

.topNav .el-menu .el-submenu__title {
  width: 150px;
  height: 101px !important;
  line-height: 121px !important;
  font-size: 20px;
  color: #d6d6d6 !important;
  background-color: transparent !important;
  text-align: center;
}

.topNav .el-menu .el-submenu__title:hover {
  color: #fff !important;
  font-weight: bold;
  background: linear-gradient(to top, #5a5a5a, #212121);
  border-bottom: 8px solid #b10309 !important;
}

.topNav .topMenu {
  background-color: transparent !important;
}

.el-menu--horizontal .el-menu .el-menu-item,
.el-menu--horizontal .el-menu .el-submenu__title {
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.hyaline {
  background-color: rgba(89, 89, 89, 0.5);
}

.el-menu.el-menu--horizontal {
  border-bottom: none !important;
}

.scrollNav {
  position: fixed;
}

.nav-up {
  position: fixed;
  top: -135px;
}

/* ==================== 手机端导航（下拉菜单） ==================== */
@media (max-width: 900px) {
  .pc-nav {
    display: none !important;
  }

  /* 汉堡按钮 */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: 25px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }

  /* 手机菜单容器 */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #222;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1001;
  }

  .mobile-nav.show {
    max-height: 100vh;
  }

  .mobile-menu-list {
    padding: 10px 0;
  }

  .mobile-item {
    padding: 15px 25px;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid #444;
    position: relative;
  }

  /* ✅ 修复：手机点击不要深红背景 */
  .mobile-item:active {
    color: #fff;
    background: transparent;
  }

  /* 下拉箭头 */
  .has-child .arrow {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 12px;
    color: #fff;
    transition: 0.2s;
  }
  .has-child .arrow.show {
    transform: rotate(90deg);
  }

  /* 子菜单 */
  .mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .mobile-sub.show {
    max-height: 500px;
  }
  .mobile-sub-item {
    padding: 12px 35px;
    font-size: 15px;
    color: #ddd;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
  }
  .mobile-sub-item:first-child {
    margin-top: 20px;
  }
  
  /* ✅ 修复：子菜单点击也不变深红背景 */
  .mobile-sub-item:active {
    color: #fff;
    background: #1a1a1a;
  }
}
@media (max-width: 1300px) {
  .el-menu .el-menu-item {
    min-width: 100px !important;
  }
}