.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.header-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.header-bar {
  border: 1px solid rgba(255,255,255,0.75);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  outline: 1px solid rgba(15,23,42,0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 55%);
}

.brand-mark::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("../brand/junzhuo-logo-mark.svg");
}

.brand-mark svg {
  display: none;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link.current {
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}

.nav-home-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(255,255,255,.92);
  color: #64748b;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-home-link:hover {
  background: white;
  color: #0f172a;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  transition: 0.25s ease;
}

.btn-ghost {
  height: 40px;
  padding: 0 16px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.header-actions .btn-ghost.search-entry {
  gap: 8px;
  padding: 0 14px 0 12px;
  color: #0f172a;
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,251,255,0.9) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.header-actions .btn-ghost.search-entry::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z' stroke='%230369a1' stroke-width='1.8'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%230369a1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
}

.header-actions .btn-ghost.search-entry:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-color: rgba(14, 165, 233, 0.24);
}

.header-actions .btn-ghost.lang-entry {
  gap: 8px;
  padding: 0 14px 0 12px;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.header-actions .btn-ghost.lang-entry::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z' stroke='%2364758b' stroke-width='1.8'/%3E%3Cpath d='M3.8 9h16.4M3.8 15h16.4M12 3.4c2.1 2.25 3.2 5.28 3.2 8.6S14.1 18.35 12 20.6M12 3.4C9.9 5.65 8.8 8.68 8.8 12S9.9 18.35 12 20.6' stroke='%2364758b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-actions .btn-ghost.lang-entry:hover {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.34);
}

.btn-dark {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  color: #0f172a;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 16px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-nav.open {
  display: block;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  border-radius: 16px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.mobile-link:hover,
.mobile-link.current {
  background: #f8fafc;
  color: #0f172a;
}

.mobile-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .header-row {
    padding: 14px 16px;
  }
}

@media (max-width: 720px) {
  .header-shell {
    width: min(1240px, calc(100% - 20px));
  }

  .brand-subtitle {
    display: none;
  }
}
