/* Shared navigation shell and homepage calls-to-action. */
.neon-global-header {
  --shell-text: #142e58;
  --shell-muted: #667da1;
  position: sticky !important;
  top: 0;
  z-index: 1200;
  isolation: isolate;
  width: min(1200px, calc(100% - 96px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}

.neon-global-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(107, 135, 184, .1);
  background: linear-gradient(90deg, rgba(237, 245, 255, .76), rgba(245, 244, 255, .7));
  box-shadow: 0 8px 26px rgba(53, 83, 133, .035);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.neon-global-header .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--shell-text) !important;
  text-decoration: none;
}

.neon-shell-brand-area {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.neon-global-header .brand strong {
  display: block;
  margin: 0;
  color: inherit !important;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: .015em;
  white-space: nowrap;
}

.neon-global-header .brand small {
  display: block;
  margin-top: 5px;
  color: var(--shell-muted) !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .22em;
  white-space: nowrap;
}

.neon-global-header .brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(66, 85, 204, .17));
}

.neon-global-header .main-nav {
  justify-self: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.7vw, 38px);
  min-width: 0;
}

.neon-global-header .main-nav a {
  position: relative;
  flex: none;
  padding: 12px 0;
  color: var(--shell-muted) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.neon-global-header .main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2f79eb, #735ff0);
  box-shadow: 0 4px 12px rgba(65, 103, 229, .3);
  transition: right 180ms ease, left 180ms ease;
}

.neon-global-header .main-nav a:hover,
.neon-global-header .main-nav a.active,
.neon-global-header .main-nav a[aria-current="page"] {
  color: #2368d8 !important;
  transform: translateY(-1px);
}

.neon-global-header .main-nav a:hover::after,
.neon-global-header .main-nav a.active::after,
.neon-global-header .main-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.neon-global-header .header-action {
  appearance: none;
  justify-self: end;
  min-width: 0;
  max-width: 270px;
  border: 1px solid rgba(110, 136, 184, .2) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: var(--shell-text) !important;
  box-shadow: 0 8px 24px rgba(58, 86, 136, .08) !important;
  font: inherit;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

.neon-global-header .header-action:hover {
  border-color: rgba(67, 109, 213, .34) !important;
  box-shadow: 0 12px 28px rgba(57, 90, 155, .13) !important;
  transform: translateY(-1px);
}

.neon-shell-tools {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.neon-shell-visitors,
.neon-shell-more > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(110, 136, 184, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: #536b91;
  box-shadow: 0 7px 20px rgba(58, 86, 136, .055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.neon-shell-visitors {
  position: relative;
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  gap: 6px;
  border-color: rgba(84, 119, 191, .14);
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(229, 239, 255, .62));
  color: #526b94;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 5px 14px rgba(59, 91, 149, .055);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
  white-space: nowrap;
}

.neon-shell-visitors::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 1px;
  height: 20px;
  background: linear-gradient(transparent, rgba(96, 126, 178, .22), transparent);
}

.neon-shell-visitors svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #4d72bb;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neon-shell-visitors > i {
  color: #4d72bb !important;
  font-size: 12px !important;
  filter: none !important;
}

.neon-shell-more {
  position: relative;
}

.neon-shell-more > summary {
  min-width: 72px;
  height: 38px;
  padding: 0 12px;
  list-style: none;
  color: #324f7d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.neon-shell-more > summary::-webkit-details-marker { display: none; }
.neon-shell-more > summary i {
  color: #617dde;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 1px;
}
.neon-shell-more > summary:hover,
.neon-shell-more[open] > summary {
  border-color: rgba(73, 111, 210, .32);
  box-shadow: 0 10px 24px rgba(57, 90, 155, .12);
  transform: translateY(-1px);
}

.neon-shell-more-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1500;
  box-sizing: border-box;
  width: 286px;
  padding: 10px;
  border: 1px solid rgba(111, 137, 184, .18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(240, 246, 255, .94));
  box-shadow: 0 24px 60px rgba(40, 67, 114, .2), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.neon-shell-more:not([open]) > .neon-shell-more-panel { display: none !important; }
.neon-shell-more-panel > a,
.neon-shell-more-panel .neon-shell-menu-action {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #203c69 !important;
  box-shadow: none !important;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.neon-shell-more-panel > a:hover,
.neon-shell-more-panel .neon-shell-menu-action:hover {
  background: rgba(76, 111, 211, .085) !important;
  transform: translateX(2px);
}

.neon-shell-more-panel > a b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e7efff, #eeeaff);
  color: #526ed9;
  font-size: 16px;
}

.neon-shell-more-panel > a span,
.neon-shell-more-panel > a strong,
.neon-shell-more-panel > a small { display: block; }
.neon-shell-more-panel > a strong { font-size: 13px; line-height: 1.25; }
.neon-shell-more-panel > a small { margin-top: 3px; color: #7a8cab; font-size: 10px; line-height: 1.25; }
.neon-shell-more-heading { padding: 8px 10px 10px; }
.neon-shell-more-heading strong { display: block; color: #18365f; font-size: 13px; }
.neon-shell-more-heading small { display: block; margin-top: 4px; color: #8595ae; font-size: 10px; }

.neon-shell-more-panel #musicPlayer::after { content: "背景音乐"; }
.neon-shell-more-panel #notificationIcon::after { content: "消息通知"; }
.neon-shell-more-panel #musicPlayer,
.neon-shell-more-panel #notificationIcon {
  position: relative !important;
  min-height: 50px;
}
.neon-shell-more-panel #musicPlayer > i,
.neon-shell-more-panel #notificationIcon > i,
.neon-shell-more-panel #publishResourceBtn > i,
.neon-shell-more-panel #vipUpgradeBtn > i,
.neon-shell-more-panel #agentVerifyBtn > i {
  width: 28px;
  color: #5473d6 !important;
  text-align: center;
  filter: none !important;
}
.neon-shell-more-panel #notificationContainer { display: block; }
.neon-shell-more-panel #notificationDropdown {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  width: 286px !important;
}

.neon-shell-account-area {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.neon-shell-account-area .neon-account-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.neon-shell-account-area #userInfo.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.neon-shell-account-area #userAvatar {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3478eb, #755fe9) !important;
  color: #fff !important;
  font-size: 11px !important;
}
.neon-shell-account-area #displayUsername {
  max-width: 90px;
  overflow: hidden;
  color: #19375f !important;
  font-size: 12px !important;
  font-weight: 780 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neon-shell-account-area #memberStatusBar,
.neon-shell-account-area #memberBadge,
.neon-shell-account-area #adminLink {
  min-height: 26px;
  box-sizing: border-box;
  align-items: center;
  border-radius: 999px !important;
  font-size: 10px !important;
  white-space: nowrap;
}
.neon-shell-account-area #memberStatusBar { padding: 4px 8px !important; }
.neon-shell-account-area #memberStatusBar .member-expire-text { display: none !important; }
.neon-shell-account-area #adminLink .admin-nav-btn {
  min-height: 26px !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(105, 77, 189, .16) !important;
  border-radius: 999px !important;
  background: #f0eaff !important;
  color: #6045a4 !important;
  box-shadow: none !important;
  font-size: 10px !important;
}
.neon-shell-account-area #adminLink .admin-nav-btn > i { display: none; }

.neon-global-header--dark {
  --shell-text: #142e58;
  --shell-muted: #667da1;
}

.neon-global-header--dark::before {
  border-bottom-color: rgba(107, 135, 184, .1);
  background: linear-gradient(90deg, rgba(237, 245, 255, .76), rgba(245, 244, 255, .7));
  box-shadow: 0 8px 26px rgba(53, 83, 133, .035);
}

.neon-global-header--dark .main-nav a:hover,
.neon-global-header--dark .main-nav a.active,
.neon-global-header--dark .main-nav a[aria-current="page"] {
  color: #2368d8 !important;
}

.neon-global-header--dark .header-action {
  border-color: rgba(110, 136, 184, .2) !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 8px 24px rgba(58, 86, 136, .07) !important;
}

.neon-resource-toolbar {
  position: sticky !important;
  top: 88px !important;
  z-index: 1150 !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(107, 135, 184, .09) !important;
  background: linear-gradient(90deg, rgba(239, 246, 255, .72), rgba(247, 245, 255, .68)) !important;
  box-shadow: 0 7px 24px rgba(53, 83, 133, .035);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.neon-resource-toolbar .logo {
  display: none !important;
}

.neon-resource-toolbar .nav-links,
.neon-resource-toolbar .back-link {
  display: none !important;
}

.neon-resource-toolbar .left-area {
  flex: 0 0 auto;
}

/* Homepage: balanced, tactile button pair. */
.home-page .hero-actions {
  align-items: stretch;
  gap: 14px;
}

.home-page .hero-actions > a {
  position: relative;
  min-height: 60px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-page .primary-btn {
  min-width: 226px;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(67, 119, 235, .44);
  padding: 0 14px 0 24px;
  background: linear-gradient(135deg, #153d79 0%, #2b72e8 58%, #6962e9 100%);
  box-shadow: 0 16px 32px rgba(38, 91, 187, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.home-page .primary-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, .2) 42%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 460ms ease;
}

.home-page .primary-btn span,
.home-page .text-btn span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.home-page .primary-btn span {
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.home-page .text-btn {
  min-width: 226px;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(91, 120, 178, .24);
  padding: 0 12px 0 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(238, 244, 255, .82));
  color: #1b3d6d;
  box-shadow: 0 14px 30px rgba(63, 91, 143, .11), inset 0 1px 0 #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-page .text-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 84% 18%, rgba(103, 108, 237, .13), transparent 42%);
  opacity: .55;
  transition: opacity 180ms ease;
}

.home-page .text-btn span {
  background: #e7efff;
  color: #3b67d9;
  box-shadow: inset 0 0 0 1px rgba(79, 110, 211, .12), 0 5px 12px rgba(64, 92, 167, .1);
}

.home-page .hero-actions > a:hover { transform: translateY(-3px); }
.home-page .primary-btn:hover {
  box-shadow: 0 20px 38px rgba(38, 91, 187, .29), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.home-page .primary-btn:hover::before { transform: translateX(120%); }
.home-page .text-btn:hover {
  border-color: rgba(75, 105, 203, .38);
  box-shadow: 0 18px 36px rgba(63, 91, 143, .16), inset 0 1px 0 #fff;
}
.home-page .text-btn:hover::before { opacity: 1; }
.home-page .hero-actions > a:hover span { transform: translateX(2px); }

/* Software catalog: the visual cover is also the primary detail entry. */
.software-page .product-cover {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.software-page .product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.software-page .product-cover .product-logo {
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}

.software-page .product-cover-hint {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(18, 35, 75, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.software-page .product-cover-hint b {
  font-size: 15px;
  transition: transform 180ms ease;
}

.software-page .product-cover:hover .product-logo,
.software-page .product-cover:focus-visible .product-logo {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 18px 34px rgba(13, 31, 72, .18), inset 0 0 0 1px rgba(255, 255, 255, .32);
}

.software-page .product-cover:hover .product-cover-hint,
.software-page .product-cover:focus-visible .product-cover-hint {
  opacity: 1;
  transform: translateY(0);
  background: rgba(18, 35, 75, .28);
}

.software-page .product-cover:hover .product-cover-hint b,
.software-page .product-cover:focus-visible .product-cover-hint b { transform: translateX(3px); }

.software-page .product-cover:focus-visible::after {
  border-color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 3px rgba(55, 105, 232, .55);
}

@media (max-width: 1080px) {
  .neon-global-header {
    width: min(100% - 48px, 1200px);
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 20px;
    padding: 14px 0 10px;
  }

  .neon-global-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .neon-global-header .main-nav::-webkit-scrollbar { display: none; }
  .neon-shell-tools { grid-column: 2; grid-row: 1; gap: 6px; }
  .neon-shell-more-panel { right: 0; }
  .neon-global-header .main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
  }
  .neon-global-header .main-nav a::after { display: none; }
  .neon-global-header .main-nav a.active,
  .neon-global-header .main-nav a[aria-current="page"] { background: rgba(58, 104, 214, .1); }
  .neon-global-header--dark .main-nav a.active,
  .neon-global-header--dark .main-nav a[aria-current="page"] { background: rgba(122, 151, 239, .12); }
  .neon-resource-toolbar { position: relative !important; top: auto !important; }
  .neon-resource-toolbar > .container { gap: 10px; }
  .neon-resource-toolbar .right-area {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .neon-resource-toolbar .right-area::-webkit-scrollbar { display: none; }
}

@media (max-width: 720px) {
  .neon-global-header { width: calc(100% - 28px); gap: 0 12px; }
  .neon-global-header .brand { gap: 9px; }
  .neon-shell-brand-area { gap: 8px; }
  .neon-global-header .brand-mark { flex-basis: 34px; width: 34px; height: 34px; }
  .neon-global-header .brand strong { font-size: 16px; }
  .neon-global-header .brand small { font-size: 7px; }
  .neon-global-header .header-action { max-width: 142px; padding: 8px 10px !important; font-size: 12px !important; }
  .neon-shell-tools { gap: 4px; }
  .neon-shell-visitors { min-width: 50px; height: 28px; padding: 0 7px; gap: 4px; font-size: 9px; }
  .neon-shell-visitors::before { left: -5px; height: 17px; }
  .neon-shell-visitors svg { width: 13px; height: 13px; }
  .neon-shell-more > summary { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  .neon-shell-more > summary span { display: none; }
  .neon-shell-more-panel { position: fixed; top: 78px; right: 10px; left: 10px; width: auto; }
  .neon-shell-account-area #memberStatusBar,
  .neon-shell-account-area #memberBadge,
  .neon-shell-account-area #adminLink { display: none !important; }
  .neon-shell-account-area #userInfo.header-action { max-width: 112px; }
  .neon-shell-account-area #displayUsername { max-width: 62px; }
  .home-page .hero-actions { gap: 10px; }
  .home-page .hero-actions > a,
  .home-page .primary-btn,
  .home-page .text-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .neon-global-header *,
  .home-page .hero-actions *,
  .software-page .product-cover * { transition: none !important; }
}
