html.hf-member-legacy-route,
html.hf-member-legacy-route body,
html.hf-member-legacy-route #app {
  background: #f5f5f5 !important;
}

html.hf-member-legacy-route #app {
  overflow-x: hidden !important;
}

html.hf-member-legacy-route[data-ui-contain="1"] #app {
  zoom: 1 !important;
  width: min(100vw, var(--app-max-width, 100%)) !important;
  max-width: min(100vw, var(--app-max-width, 100%)) !important;
}

html.hf-member-legacy-route #app .page-container {
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  left: 0 !important;
  right: 0 !important;
  overflow-x: hidden !important;
  background: #f5f5f5 !important;
}

html.hf-member-legacy-route #app .v5-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 120 !important;
}

html.hf-member-legacy-route #app .member-new-page {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  background: #f5f5f5 !important;
  overflow-x: hidden !important;
}

html.hf-member-legacy-route #app .member-new-page > :not(.hf-member-legacy) {
  display: none !important;
}

#app .hf-member-legacy {
  width: min(100%, var(--hf-member-shell-width, 414px)) !important;
  max-width: var(--hf-member-shell-width, 414px) !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 0 calc(92px + env(safe-area-inset-bottom)) !important;
  background: #f5f5f5 !important;
  color: #222 !important;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#app .hf-member-legacy,
#app .hf-member-legacy * {
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
}

#app .hf-member-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 45px !important;
  background: #c92838 !important;
  color: #fff !important;
}

#app .hf-member-title {
  color: #fff !important;
  font-size: 18px !important;
  line-height: 45px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
}

#app .hf-member-settings {
  position: absolute !important;
  right: 22px !important;
  top: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
}

#app .hf-member-settings svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

#app .hf-member-profile {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 93px !important;
  padding: 18px 34px 17px 28px !important;
  background: #fff !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

#app .hf-member-avatar {
  flex: 0 0 auto !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin-right: 21px !important;
  background: #eee !important;
}

#app .hf-member-user-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#app .hf-member-name-row {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

#app .hf-member-username {
  display: block !important;
  max-width: 150px !important;
  color: #222 !important;
  font-size: 19px !important;
  line-height: 25px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#app .hf-member-vip {
  position: relative !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 17px !important;
  margin-left: 9px !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 17px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #f7cad4, #c62a42 48%, #8c1430) !important;
  border: 1px solid #f2b5c0 !important;
  border-radius: 4px 4px 8px 8px !important;
  transform: skew(-8deg) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7) !important;
}

#app .hf-member-vip::before {
  content: "" !important;
  position: absolute !important;
  top: -4px !important;
  left: 50% !important;
  width: 14px !important;
  height: 14px !important;
  border-top: 1px solid #f2b5c0 !important;
  border-left: 1px solid #f2b5c0 !important;
  background: linear-gradient(135deg, #f7cad4, #c62a42) !important;
  transform: translateX(-50%) rotate(45deg) !important;
  border-radius: 3px !important;
  z-index: -1 !important;
}

#app .hf-member-vip span {
  transform: skew(8deg) !important;
}

#app .hf-member-id {
  color: #5d6470 !important;
  font-size: 17px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

#app .hf-member-profile-arrow {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 29px !important;
  color: #c8c8c8 !important;
}

#app .hf-member-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  height: 72px !important;
  padding: 0 20px !important;
  background: #fff !important;
}

#app .hf-member-stat {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
}

#app .hf-member-stat:not(:last-child)::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 18px !important;
  width: 1px !important;
  height: 35px !important;
  background: #e3e3e3 !important;
}

#app .hf-member-stat-num {
  max-width: 100% !important;
  color: #20242a !important;
  font-size: 23px !important;
  line-height: 30px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#app .hf-member-stat-label {
  color: #999 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
}

#app .hf-member-action-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 13px !important;
  width: 100% !important;
  padding: 17px 14px 18px !important;
  background: #f5f5f5 !important;
}

#app .hf-member-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 38px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: 0 5px 10px rgba(65, 31, 35, .20) !important;
  cursor: pointer !important;
}

#app .hf-member-action.red {
  background: #c92838 !important;
}

#app .hf-member-action.brown {
  background: #b98550 !important;
}

#app .hf-member-action img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  object-fit: contain !important;
}

#app .hf-member-menu-card {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: calc(100% - 28px) !important;
  margin: 0 14px !important;
  padding: 17px 0 9px !important;
  background: #fff !important;
  border-radius: 0 !important;
}

#app .hf-member-menu-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  height: 74px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #222 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#app .hf-member-menu-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 36px !important;
  margin-bottom: 6px !important;
}

#app .hf-member-menu-icon {
  display: block !important;
  max-width: 42px !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

#app .hf-member-menu-name {
  display: block !important;
  width: 100% !important;
  color: #222 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 360px) {
  #app .hf-member-profile {
    padding-left: 22px !important;
    padding-right: 24px !important;
  }

  #app .hf-member-avatar {
    width: 48px !important;
    height: 48px !important;
    margin-right: 17px !important;
  }

  #app .hf-member-action-row {
    gap: 10px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  #app .hf-member-action {
    font-size: 15px !important;
  }

  #app .hf-member-menu-name {
    font-size: 15px !important;
  }
}
