/* Paladin Mining 原站顶部导航 */
.legacy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 88px;
  box-sizing: border-box;
  padding: 0 24px;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.legacy-header .header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  gap: 16px;
}

.legacy-header .logo {
  height: 52px;
  width: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.legacy-header .nav-list {
  display: flex;
  align-items: center;
  max-width: 100%;
  flex: 1;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.legacy-header .nav-item {
  position: relative;
  margin-right: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.legacy-header .nav-item:hover,
.legacy-header .nav-item.active {
  color: #fff;
}

.legacy-header .underlined {
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 5px;
  background: #fff;
  width: 0;
  height: 2px;
  opacity: 0;
  transition: width 0.3s, opacity 0.3s;
}

.legacy-header .nav-item.active .underlined,
.legacy-header .nav-item:hover .underlined {
  width: 70%;
  opacity: 1;
}

.legacy-header .action-box {
  display: flex;
  align-items: center;
  margin-left: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.legacy-header .action-btn {
  height: 38px;
  line-height: 38px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(110deg, #9c27b0, #8647af 59%, #6c4982);
  cursor: pointer;
}

.legacy-header .action-btn:not(:last-child) {
  margin-right: 10px;
}

.legacy-header .action-btn.dasbtn {
  background: linear-gradient(110deg, #f7deb9, #7c3aed 59%, #e4be83) !important;
}

.legacy-header .cur-lang {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
  flex-shrink: 0;
}

.legacy-header .cur-lang i {
  margin-left: 5px;
  font-style: normal;
  font-size: 12px;
  opacity: 0.8;
}

.legacy-header .lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.legacy-header .lang-switch .lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.legacy-header .lang-switch .lang-btn.active,
.legacy-header .lang-switch .lang-btn:hover {
  background: linear-gradient(110deg, #9c27b0, #8647af 59%, #6c4982);
  border-color: transparent;
}

.legacy-header .nav-mask .lang-switch {
  margin: 16px 0 0;
  width: 100%;
}

.legacy-header .nav-mask .lang-switch .lang-btn {
  flex: 1;
}

.legacy-header .menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}

.legacy-header .menu-toggle span {
  margin-right: 4px;
  font-size: 20px;
  line-height: 1;
}

/* 移动端抽屉 */
.legacy-header .nav-mask {
  display: none;
}

.legacy-header.is-open .nav-mask {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55);
}

.legacy-header .nav-mask .nav-drawer {
  width: min(320px, 86vw);
  height: 100%;
  background: #111;
  padding: 24px 18px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legacy-header .nav-mask .nav-item {
  margin: 0;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.legacy-header .nav-mask .nav-item:hover,
.legacy-header .nav-mask .nav-item.active {
  color: #7c3aed;
}

.legacy-header .nav-mask .underlined {
  display: none;
}

.legacy-header .nav-mask .action-box {
  margin: 18px 0 0;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.legacy-header .nav-mask .action-btn {
  width: 100%;
  margin: 0 !important;
  background-color: #7c3aed;
  background-image: none;
}

.legacy-header .nav-mask .action-btn.dasbtn {
  background: linear-gradient(110deg, #f7deb9, #7c3aed 59%, #e4be83) !important;
}

.legacy-header .nav-mask .close-btn {
  align-self: center;
  margin-top: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* 新首页 Hero：导航改为文档流 sticky，减少顶部留白 */
.hero-home {
  padding-top: 72px !important;
}

@media (max-width: 1100px) {
  .legacy-header .nav-item {
    margin-right: 14px;
    font-size: 13px;
  }

  .legacy-header .action-btn {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .legacy-header {
    height: 64px;
    padding: 0 14px;
  }

  .legacy-header .logo {
    height: 40px;
  }

  .legacy-header .nav-list {
    display: none;
  }

  .legacy-header .menu-toggle {
    display: flex;
    align-items: center;
  }

  .hero-home {
    padding-top: 48px !important;
  }
}
