/* 顶部导航 + 产品切换下拉（全站共用） */

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --bg-soft: #faf9fb;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --pink: #f06e8c;
  --pink-dark: #e05a78;
  --pink-soft: rgba(240, 110, 140, 0.1);
  --blue: #648ceb;
  --nav-height: 68px;
  --max-width: 1120px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.site-nav-links a.nav-cta {
  background: var(--pink);
  color: #fff;
  font-weight: 600;
}

.site-nav-links a.nav-cta:hover {
  background: var(--pink-dark);
  color: #fff;
}

.product-dropdown {
  position: relative;
}

.product-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  max-width: 220px;
}

.product-dropdown-trigger:hover,
.product-dropdown.is-open .product-dropdown-trigger {
  background: var(--bg-soft);
  border-color: var(--border);
}

.product-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-dropdown-icon-emoji {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.product-dropdown-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-dropdown-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.product-dropdown.is-open .product-dropdown-chevron {
  transform: rotate(180deg);
}

.product-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 300;
}

.product-dropdown.is-open .product-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-dropdown-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}

.product-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.product-dropdown-item:hover {
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--text);
}

.product-dropdown-item.is-active {
  background: var(--pink-soft);
}

.product-dropdown-item.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.product-dropdown-item img,
.product-dropdown-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-dropdown-item .item-icon {
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.product-dropdown-item-text {
  flex: 1;
  min-width: 0;
}

.product-dropdown-item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.product-dropdown-item-text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.product-dropdown-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.product-dropdown-tag.new {
  background: rgba(240, 110, 140, 0.12);
  color: #f06e8c;
}

.product-dropdown-tag.soon {
  background: rgba(100, 140, 235, 0.12);
  color: #648ceb;
}

.product-dropdown-tag.live {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding: 0 16px;
  }

  .site-nav-links a:not(.nav-cta) {
    display: none;
  }

  .product-dropdown-trigger {
    padding: 6px 8px;
    max-width: 160px;
  }

  .product-dropdown-name {
    font-size: 13px;
  }

  .product-dropdown-panel {
    left: 0;
    right: auto;
    min-width: 260px;
  }
}
