/* ========================================
   导航栏 — 微妙的玄武岩纯透明风格
   ======================================== */

#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(6,7,14,0.95) 0%, rgba(6,7,14,0.7) 100%);
  border-bottom: 1px solid rgba(212,162,78,0.06);
  z-index: 300;
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(212,162,78,0.3);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========================================
   搜索框
   ======================================== */

.nav-center {
  flex: 0 1 320px;
  margin: 0 24px;
  position: relative;
}

#search-input {
  width: 100%;
  padding: 8px 18px;
  background: rgba(212, 162, 78, 0.04);
  border: 1px solid rgba(212, 162, 78, 0.1);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-normal);
}

#search-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 1px;
}

#search-input:focus {
  border-color: var(--accent-glow-strong);
  background: rgba(212, 162, 78, 0.08);
  box-shadow: 0 0 20px rgba(212,162,78,0.1);
  border-radius: 24px 24px 0 0;
}

/* ========================================
   搜索下拉候选
   ======================================== */

#search-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: rgba(6,7,16,0.97);
  border: 1px solid rgba(212,162,78,0.2);
  border-top: 1px solid rgba(212,162,78,0.06);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  z-index: 500;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

#search-dropdown.hidden { display: none; }

.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(212,162,78,0.05);
}

.sd-item:last-child { border-bottom: none; }

.sd-item:hover {
  background: rgba(212,162,78,0.07);
}

.sd-emoji {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.sd-body {
  min-width: 0;
}

.sd-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-loc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
  letter-spacing: 0.5px;
}

/* ========================================
   图层 Tab
   ======================================== */

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

.layer-tabs {
  display: flex;
  gap: 6px;
}

.nav-explore-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(212,162,78,0.06);
  border: 1px solid rgba(212,162,78,0.18);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-body);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.nav-explore-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,162,78,0.1);
  box-shadow: 0 0 12px rgba(212,162,78,0.1);
}

.tab {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid rgba(212, 162, 78, 0.1);
  border-radius: 24px;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
  background: rgba(212, 162, 78, 0.04);
}

.tab.active {
  background: rgba(212, 162, 78, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(212,162,78,0.12), inset 0 1px 0 rgba(212,162,78,0.1);
}

/* ========================================
   类型筛选条
   ======================================== */

#filter-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 290;
  background: linear-gradient(180deg, rgba(6,7,14,0.85) 0%, transparent 100%);
}

#filter-bar::-webkit-scrollbar { display: none; }
#filter-bar.hidden { display: none; }

.filter-label {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-right: 4px;
  opacity: 0.6;
}

.ft-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.filter-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  background: rgba(212,162,78,0.04);
  border: 1px solid rgba(212,162,78,0.1);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.filter-tag:hover {
  border-color: rgba(212,162,78,0.3);
  color: var(--text-secondary);
  background: rgba(212,162,78,0.06);
}

.filter-tag.active {
  background: rgba(212,162,78,0.14);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(212,162,78,0.1);
}

.filter-clear {
  flex-shrink: 0;
  padding: 5px 12px;
  background: rgba(255,80,60,0.08);
  border: 1px solid rgba(255,80,60,0.25);
  border-radius: 20px;
  color: rgba(255,100,80,0.8);
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-clear:hover {
  background: rgba(255,80,60,0.15);
  color: rgba(255,120,100,1);
}

/* ========================================
   底部信息栏
   ======================================== */

#bottom-status {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 24px;
  background: linear-gradient(0deg, rgba(6,7,14,0.92) 0%, rgba(6,7,14,0.6) 100%);
  border-top: 1px solid rgba(212,162,78,0.04);
  z-index: 200;
  gap: 0;
}

.status-stats {
  flex-shrink: 0;
}

#stats-text {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.status-divider {
  width: 1px;
  height: 14px;
  background: rgba(212,162,78,0.12);
  margin: 0 16px;
  flex-shrink: 0;
}

.status-cities {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.status-cities::-webkit-scrollbar { display: none; }

.hot-city {
  flex-shrink: 0;
  padding: 3px 12px;
  background: none;
  border: 1px solid rgba(212,162,78,0.08);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hot-city:hover {
  border-color: rgba(212,162,78,0.25);
  color: var(--accent);
  background: rgba(212,162,78,0.06);
}

.hot-city:active {
  transform: scale(0.95);
}

/* ========================================
   移动端适配
   ======================================== */

@media (max-width: 768px) {
  #top-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    gap: 8px;
  }

  .nav-left {
    order: 1;
  }

  .nav-right {
    order: 2;
    margin-left: auto;
  }

  .nav-center {
    order: 3;
    flex: 1 1 100%;
    margin: 0;
  }

  .logo-sub {
    display: none;
  }

  .tab {
    font-size: 11px;
    padding: 6px 12px;
  }
}
