/**
 * 主导航二级下拉：纵向面板（替代原全宽单行 bar，避免标题被截断）
 * 右侧会员入口：覆盖 style.css ≤1440px 隐藏 .header_member 的旧规则
 */

/* ---------- 右侧注册 / 登录 ---------- */
.header_two .header_member {
  display: block !important;
  position: absolute !important;
  right: 28px !important;
  top: 0 !important;
  float: none !important;
  z-index: 10004 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 95px !important;
  line-height: 95px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  font-size: 14px !important;
  color: #fff !important;
  white-space: nowrap !important;
}
.header_two.white .header_member,
.header_two:hover .header_member {
  color: #222 !important;
}
.header_two .header_member__link {
  color: inherit !important;
  text-decoration: none !important;
  opacity: 0.92;
  font-family: 'Alibaba-PuHuiTi-Regular', sans-serif;
}
.header_two .header_member__link:hover {
  opacity: 1;
  color: #e60012 !important;
}
.header_two .header_member__sep {
  margin: 0 7px !important;
  opacity: 0.45;
  font-weight: 300;
}
/* 给右侧会员入口让位，避免汉堡/VR 叠在文字上 */
.header_two .sp_nav {
  right: 148px !important;
}
.header_two .vr_ico {
  right: 108px !important;
}

@media screen and (max-width: 991px) {
  .header_two .header_member {
    display: none !important;
  }
  .header_two .sp_nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    right: 12px !important;
    top: 26px !important;
  }
  .header_two .vr_ico {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    right: 56px !important;
    top: 26px !important;
  }
}

/* ---------- 二级下拉面板 ---------- */
.header_two,
.header_two .nav,
.header_two .nav ul,
.header_two .nav ul li {
  overflow: visible !important;
}

.header_two .nav ul li {
  position: relative !important;
}

.header_two .nav ul li .erji {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  min-width: 188px !important;
  max-width: min(320px, 92vw) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  text-align: left !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-top: 2px solid #e60012 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
  border-radius: 0 0 8px 8px !important;
  transform: translateX(-50%);
  z-index: 10050 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: visible !important;
}

.header_two .nav ul li .erji a {
  display: block !important;
  margin: 0 !important;
  padding: 10px 22px !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
  color: #222 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  text-align: left !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.header_two .nav ul li .erji a:hover {
  background: #f7f7f8 !important;
  color: #e60012 !important;
  opacity: 1 !important;
}

.header_two.white .nav ul li .erji,
.header_two:hover .nav ul li .erji {
  background: #fff !important;
  border-top-color: #e60012 !important;
}

.header_two.white .nav ul li .erji a,
.header_two:hover .nav ul li .erji a {
  color: #222 !important;
}

/* 靠右菜单项：面板贴右对齐，避免溢出视口 */
.header_two .nav ul li:nth-last-child(-n + 3) .erji {
  left: auto !important;
  right: 0 !important;
  transform: none;
}

@media screen and (max-width: 1200px) {
  .header_two .nav ul li .erji {
    left: 0 !important;
    right: auto !important;
    transform: none;
    max-width: min(280px, 88vw) !important;
  }

  .header_two .nav ul li:nth-last-child(-n + 3) .erji {
    left: auto !important;
    right: 0 !important;
  }
}
