.top-nav-icon-crown {
  color: #ffc107;
}

.top-nav-icon-accent {
  color: #5468ff;
}

.top-nav-icon-success {
  color: #28a745;
}

.top-nav-icon-danger {
  color: #ff6b6b;
}

.top-nav-divider {
  border-top: 1px solid #e2e8f0;
  margin: 6px 0;
}

.top-nav-danger {
  color: #e53e3e;
}

.logo-fallback-visible-inline {
  display: inline !important;
}

.mobile-member-crown-icon {
  color: #f59e0b;
}

.is-hidden {
  display: none !important;
}

.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e2e8f0;
}

.top-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
}

.top-nav-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.top-nav-logo {
  color: #2d3748;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-nav-logo:hover {
  opacity: 0.8;
  color: #2d3748;
}

.top-nav-logo i {
  font-size: 22px;
  color: #5468ff;
}

.top-nav-logo img {
  height: 36px;
  max-width: 180px;
  object-fit: contain;
}

.top-nav-logo .logo-fallback-text {
  display: none;
  color: #2d3748;
  font-size: 17px;
  font-weight: 700;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0 0 0 30px;
  padding: 0;
}

.top-nav-item {
  position: relative;
}

.top-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: #4a5568;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.top-nav-link:hover {
  background: #f7fafc;
  color: #5468ff;
}

.top-nav-link i.fa-chevron-down {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.3s;
}

.top-nav-item:hover .top-nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

.top-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 99991;
}

.top-nav-item:hover .top-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.top-nav-dropdown-item:hover {
  background: #f7fafc;
  color: #5468ff;
  padding-left: 20px;
}

.user-dropdown-item {
  position: relative;
}

.user-avatar-link {
  display: flex;
  align-items: center;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e8edf5;
  background: #fff;
  color: #4a5568;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.22s ease;
}

.top-nav-icon-btn:hover {
  color: #5468ff;
  border-color: #d8def0;
  background: #f5f8ff;
  transform: translateY(-1px);
}

.top-nav-user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
}

.top-nav-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8edf5;
  transition: all 0.22s ease;
}

.top-nav-user-trigger:hover .top-nav-user-avatar {
  border-color: #d8def0;
  transform: translateY(-1px);
}

.top-nav-publish-wrap {
  position: relative;
}

.top-nav-publish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22c1c3, #16b7dc);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 193, 195, 0.25);
  transition: all 0.22s ease;
}

.top-nav-publish-btn:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-1px);
}

.top-nav-publish-btn i {
  font-size: 13px;
}

.top-nav-action-menu {
  right: 0;
  left: auto;
  min-width: 172px;
  padding: 8px 0;
}

.top-nav-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.top-nav-action-item i {
  width: 14px;
  text-align: center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.top-nav-action-item:hover {
  color: #4056d6;
  background: #f7f9fc;
}

.top-nav-action-item:hover i {
  color: #4056d6;
}

.top-nav-vip-wrap {
  position: relative;
}

.top-nav-vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f857a6, #ff5858);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 63, 159, 0.25);
  transition: all 0.22s ease;
}

.top-nav-vip-btn:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-1px);
}

.top-nav-vip-btn i {
  font-size: 13px;
}

.user-dropdown {
  right: 0;
  left: auto;
  min-width: 180px;
}

/* 用户下拉：图标一竖排对齐，文字左对齐 */
.user-dropdown .top-nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 10px;
}

.user-dropdown .top-nav-dropdown-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: inherit;
}

.user-dropdown .top-nav-dropdown-icon i {
  display: inline-block;
  vertical-align: middle;
}

.user-dropdown .top-nav-dropdown-text {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.user-dropdown .top-nav-dropdown-item:hover {
  padding-left: 16px;
}

.user-dropdown-item:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #4a5568;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  background: #f7fafc;
  color: #111827;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.42);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-overlay.is-mounted {
  display: block;
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  left: -84vw;
  width: 84vw;
  max-width: 360px;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transition: left 0.32s ease, visibility 0.32s;
  overflow-y: auto;
  visibility: hidden;
  box-shadow: 8px 0 28px rgba(17, 24, 39, 0.18);
}

.mobile-nav-panel.active {
  left: 0;
  visibility: visible;
}

.mobile-nav-panel.is-mounted {
  display: block;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 16px;
  color: #1f2937;
  border-bottom: 1px solid #f1f3f7;
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(
      95deg,
      rgba(251, 113, 133, 0.07) 0%,
      rgba(255, 255, 255, 0.98) 30%,
      rgba(52, 211, 153, 0.06) 100%
    ),
    #fff;
}

.mobile-nav-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav-close {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.mobile-nav-close:hover {
  background: #f3f4f6;
}

.mobile-nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 176px;
  min-height: 32px;
  gap: 0;
}

.mobile-nav-logo img {
  height: 31px;
  max-width: 170px;
  object-fit: contain;
}

.mobile-nav-logo .logo-fallback-text {
  display: none;
  font-size: 19px;
  font-weight: 650;
  color: #2d3748;
}

.mobile-nav-header-tools {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-nav-header-search {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  font-size: 17px;
  cursor: pointer;
}

.mobile-nav-header-search:hover {
  background: #f3f4f6;
  color: #111827;
}

.mobile-nav-body {
  padding: 12px 14px 22px;
}

.mobile-nav-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  padding: 9px 4px 10px;
}

.mobile-main-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  color: #2d3748;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.mobile-main-link:hover {
  color: #5468ff;
}

.mobile-main-dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid #de4d9b;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
}

.mobile-nav-subgrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mobile-nav-submenu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #eff2f6;
  background: #f5f6f8;
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.mobile-nav-submenu-item:hover {
  color: #3f4fcf;
  border-color: #e4e9f5;
  background: #f9fafb;
}

.mobile-member-card {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(95deg, #2c2c2c, #3f3f46);
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.22);
}

.mobile-member-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.mobile-member-link:hover {
  color: #fff;
  opacity: 0.95;
}

.mobile-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.mobile-menu-badge.is-sale {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.mobile-menu-badge.is-new {
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

.mobile-auth-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 2px;
}

.mobile-auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  text-decoration: none;
  color: #334155;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e8edf4;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  min-height: 68px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mobile-auth-btn i {
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-auth-btn span {
  letter-spacing: 0.2px;
}

.mobile-auth-btn.is-login {
  color: #3b82f6;
}

.mobile-auth-btn.is-register {
  color: #16a34a;
}

.mobile-auth-btn.is-lostpwd {
  color: #d946ef;
}

.mobile-auth-btn.is-login i {
  background: rgba(59, 130, 246, 0.1);
}

.mobile-auth-btn.is-register i {
  background: rgba(22, 163, 74, 0.1);
}

.mobile-auth-btn.is-lostpwd i {
  background: rgba(217, 70, 239, 0.1);
}

.mobile-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mobile-auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.mobile-auth-btn.quick-profile {
  color: #3b82f6;
}

.mobile-auth-btn.quick-profile i {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.mobile-auth-btn.quick-orders {
  color: #0f766e;
}

.mobile-auth-btn.quick-orders i {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
}

.mobile-auth-btn.quick-tickets {
  color: #2563eb;
}

.mobile-auth-btn.quick-tickets i {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.11);
}

.mobile-auth-btn.quick-demands {
  color: #16a34a;
}

.mobile-auth-btn.quick-demands i {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.11);
}

.mobile-auth-btn.quick-articles {
  color: #0ea5a4;
}

.mobile-auth-btn.quick-articles i {
  color: #0ea5a4;
  background: rgba(14, 165, 164, 0.12);
}

.mobile-auth-btn.quick-balance {
  color: #059669;
}

.mobile-auth-btn.quick-balance i {
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
}

.mobile-auth-btn.quick-downloads {
  color: #0891b2;
}

.mobile-auth-btn.quick-downloads i {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
}

.mobile-auth-btn.quick-favorites {
  color: #db2777;
}

.mobile-auth-btn.quick-favorites i {
  color: #db2777;
  background: rgba(219, 39, 119, 0.12);
}

.mobile-auth-btn.quick-logout {
  color: #c026d3;
}

.mobile-auth-btn.quick-logout i {
  color: #c026d3;
  background: rgba(192, 38, 211, 0.12);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  color: #4a5568;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-link:active {
  background: #f7fafc;
}

.mobile-nav-link i.fa-chevron-down {
  font-size: 11px;
  transition: transform 0.3s;
}

.mobile-nav-link.expanded i.fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: none;
  background: #f9f9f9;
  padding: 5px 0;
}

.mobile-nav-submenu.show {
  display: block;
}

.top-nav-spacer {
  height: 56px;
}

.mobile-top-search-btn {
  display: none;
}

.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(17, 24, 39, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  align-items: flex-start;
  justify-content: center;
}

.mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-search-overlay.is-mounted {
  display: flex;
}

.mobile-search-modal {
  width: min(94vw, 460px);
  max-height: calc(100vh - 18px);
  margin-top: 9px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
  transform: translateY(14px);
  transition: transform 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-search-overlay.active .mobile-search-modal {
  transform: translateY(0);
}

.mobile-search-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 16px;
  background: #fff;
}

.mobile-search-head::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: #eceff4;
}

.mobile-search-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 162px;
  min-height: 30px;
}

.mobile-search-logo img {
  height: 27px;
  max-width: 152px;
  object-fit: contain;
}

.mobile-search-logo .logo-fallback-text {
  display: none;
  font-size: 18px;
  font-weight: 650;
  color: #2d3748;
}

.mobile-search-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #b2b7c0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mobile-search-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.mobile-search-body {
  padding: 12px 14px 20px;
}

.mobile-search-form {
  margin: 0;
}

.mobile-search-input-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1.5px solid #ef58a0;
  gap: 8px;
}

.mobile-search-type {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 1px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.mobile-search-type i {
  color: #9ca3af;
  font-size: 10px;
}

.mobile-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.mobile-search-input::placeholder {
  color: #a4adba;
  font-size: 15px;
}

.mobile-search-submit {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #7a8391;
  font-size: 17px;
}

.mobile-search-section {
  margin-top: 16px;
}

.mobile-search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 600;
  color: #5b6472;
}

.mobile-search-history-clear {
  border: none;
  background: transparent;
  color: #c6cbd3;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 1;
}

.mobile-search-history-clear:hover {
  background: #f3f4f6;
  color: #8f96a3;
}

.mobile-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mobile-search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid #f1f3f5;
  background: #f3f4f6;
  color: #626b79;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s ease;
}

.mobile-search-chip:hover {
  color: #3f4a5b;
  background: #eceff3;
}

body.body-no-scroll {
  overflow: hidden;
}

.mobile-search-empty {
  color: #a5adba;
  font-size: 13px;
}

@media (max-width: 992px) {
  .top-nav-container {
    position: relative;
    justify-content: center;
    padding: 0 14px;
  }

  .top-nav-menu {
    display: none;
  }

  .top-nav-right {
    display: none !important;
  }

  .top-nav-left {
    width: 100%;
    justify-content: center;
  }

  .top-nav-logo {
    margin: 0 auto;
  }

  .top-nav-logo img {
    height: 28px;
    max-width: 148px;
  }

  .top-nav-logo .logo-fallback-text {
    font-size: 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-top-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: #6b7280;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50%;
  }

  .mobile-top-search-btn:hover {
    color: #111827;
    background: #f3f4f6;
  }

  #mobileMenuBtn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .top-nav-container {
    padding: 0 15px;
  }

  .top-nav-logo {
    font-size: 16px;
  }

  .mobile-nav-panel {
    width: 84vw;
    left: -84vw;
  }

  .mobile-nav-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav-logo img {
    max-width: 140px;
  }

  .mobile-nav-logo .logo-fallback-text {
    font-size: 16px;
  }

  .mobile-search-modal {
    width: 100%;
    max-height: 100vh;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
