/* HongKe account and navigation components. Kept separate from upstream main.min.css. */
.navbar .actions .hongke-notice-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(33, 99, 232, 0.16);
  border-radius: 999px;
  background: rgba(33, 99, 232, 0.08);
  color: #2163e8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.hongke-notice-trigger .hongke-notice-dot {
  position: absolute;
  top: 0.3rem;
  right: 0.38rem;
  width: 0.38rem;
  height: 0.38rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff4d4f;
  box-sizing: content-box;
}

.navbar .action-hover-menu .hover-balance {
  padding-top: 0.75rem !important;
}

.navbar .action-hover-menu .hover-warp {
  width: 27.5rem;
  max-width: calc(100vw - 1.5rem);
  border-radius: 1rem;
}

.navbar .action-hover-menu .hongke-account-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.8rem;
  background: #f7f9fc;
}

.navbar .action-hover-menu .hongke-account-icon {
  display: inline-flex;
  flex: 0 0 2.15rem;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.68rem;
  background: rgba(33, 99, 232, 0.1);
  color: #2163e8;
  font-size: 0.95rem;
}

.navbar .action-hover-menu .hongke-membership-card .hongke-account-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.navbar .action-hover-menu .hongke-account-copy,
.navbar .action-hover-menu .hongke-membership-summary {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 0.48rem;
  line-height: 1.15;
}

.navbar .action-hover-menu .hongke-account-label {
  color: #7b8190;
  font-size: 0.74rem;
  white-space: nowrap;
}

.navbar .action-hover-menu .hongke-account-value,
.navbar .action-hover-menu .hongke-membership-name {
  overflow: hidden;
  color: #202532;
  font-size: 0.94rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar .action-hover-menu .hongke-membership-status {
  flex: 0 1 auto;
  overflow: hidden;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #a85d00;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar .action-hover-menu .hongke-account-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
  color: #2163e8;
  font-size: 0.72rem;
  font-weight: 700;
}

.navbar .action-hover-menu .hongke-account-action:hover {
  background: #2163e8;
  color: #fff;
}

.hongke-rollbar {
  right: 1.35rem;
  bottom: 5.6rem;
  width: auto;
}

.hongke-rollbar > summary {
  list-style: none;
}

.hongke-rollbar > summary::-webkit-details-marker {
  display: none;
}

.hongke-rollbar .hongke-rollbar-toggle,
.hongke-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.13);
  color: #343a49;
}

.hongke-rollbar .hongke-rollbar-toggle {
  gap: 0.45rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.68rem 0.82rem;
  border-radius: 0.9rem;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
}

.hongke-rollbar .actions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  display: grid;
  width: 9.4rem;
  padding: 0.42rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.16);
  overflow: visible;
}

.hongke-rollbar .actions li > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 0.62rem;
  border: 0;
  border-radius: 0.65rem;
  color: #444b5c;
  text-align: left;
}

.hongke-rollbar .actions li > a:hover {
  background: rgba(33, 99, 232, 0.08);
  color: #2163e8;
  opacity: 1;
}

.hongke-rollbar .actions li > a > i {
  width: 1.05rem;
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}

.hongke-rollbar .actions li > a > span {
  padding: 0;
  color: inherit;
  font-size: 0.76rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
}

.hongke-back-top {
  right: 1.35rem;
  bottom: 1.55rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  line-height: 1;
}

.hongke-back-top:hover,
.hongke-rollbar[open] .hongke-rollbar-toggle,
.hongke-rollbar .hongke-rollbar-toggle:hover {
  border-color: #2163e8;
  background: #2163e8;
  color: #fff;
}

.hongke-mobile-dock {
  right: 0.75rem;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  left: 0.75rem;
  width: auto;
  padding: 0.38rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.hongke-mobile-dock::before {
  display: none;
}

.hongke-mobile-dock li a {
  margin: 0;
  padding: 0.42rem 0.2rem 0.34rem;
  border-radius: 0.78rem;
  color: #626978;
}

.hongke-mobile-dock li a:hover,
.hongke-mobile-dock li a:focus-visible,
.hongke-mobile-dock li a.is-current {
  background: rgba(33, 99, 232, 0.08);
  color: #2163e8;
}

.hongke-mobile-dock li a > i {
  margin-bottom: 0.18rem;
  font-size: 1.05rem;
}

[data-bs-theme="dark"] .navbar .action-hover-menu .hongke-account-row,
[data-bs-theme="dark"] .hongke-rollbar .actions,
[data-bs-theme="dark"] .hongke-rollbar .hongke-rollbar-toggle,
[data-bs-theme="dark"] .hongke-back-top,
[data-bs-theme="dark"] .hongke-mobile-dock {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(28, 31, 38, 0.96);
}

[data-bs-theme="dark"] .navbar .action-hover-menu .hongke-account-value,
[data-bs-theme="dark"] .navbar .action-hover-menu .hongke-membership-name,
[data-bs-theme="dark"] .hongke-rollbar .hongke-rollbar-toggle,
[data-bs-theme="dark"] .hongke-back-top {
  color: #eef2f8;
}

[data-bs-theme="dark"] .navbar .action-hover-menu .hongke-account-action {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1199.98px) {
  .navbar .actions .hongke-notice-trigger {
    width: 2rem;
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
  }

  .hongke-notice-label {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hongke-rollbar,
  .hongke-back-top {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .navbar .action-hover-menu .hover-warp {
    position: fixed;
    top: 4.25rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }

  .navbar .action-hover-menu .hongke-account-row {
    gap: 0.52rem;
    padding-right: 0.62rem;
    padding-left: 0.62rem;
  }

  .navbar .action-hover-menu .hongke-account-action {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}
