/* ============================================================
   睿行国际 · 爆款选品子站（/xuanpin/）顶部导航
   与主站 ipruixing.com 首页导航保持完全一致
   （样式对齐主站 styles.css 的 .topbar / .nav-inner / .nav-links / .nav-actions）
   类名统一使用 xh- 前缀，避免与页面自身样式冲突
   ============================================================ */

.xh-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.xh-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 46px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.xh-brand img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.xh-links {
  display: flex;
  align-items: center;
  gap: 54px;
}

.xh-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 18px;
  color: #111827;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}

.xh-links a:hover {
  color: #3b82f6;
  background: #eff6ff;
  border-bottom-color: #3b82f6;
}

.xh-hot {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 5px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
  border-radius: 4px;
  transform: translateY(-1px);
}

.xh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xh-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  background: #fff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.xh-outline:hover {
  background: #eff6ff;
}

.xh-user {
  position: relative;
}

.xh-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
  cursor: pointer;
}

.xh-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.xh-dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 110;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.xh-dropdown a,
.xh-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.xh-dropdown a:hover,
.xh-dropdown button:hover {
  color: #1e3a8a;
  background: #eff6ff;
}

.xh-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.xh-mobile {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  padding: 8px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.xh-mobile a {
  display: flex;
  align-items: center;
  height: 42px;
  color: #111827;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.xh-mobile a:last-child {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .xh-inner { padding: 0 20px; }
  .xh-links { display: none; }
  .xh-mobile-toggle { display: flex; }
}

@media (max-width: 430px) {
  .xh-inner { padding: 0 14px; }
}
