/* ===== NAVBAR ===== */
html { padding-top: 68px; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-shield {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-shield img {
  max-height: 52px;
  max-width: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .cn {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.logo-text .en {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  background: transparent !important;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--blue-primary);
  background: var(--blue-pale);
}

.nav-links li.active > a:not(.nav-login):not(.openclaw-badge) {
  color: var(--blue-primary);
  background: var(--blue-pale);
}

.openclaw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-primary) !important;
  border: 1.5px solid var(--blue-primary);
  background: transparent !important;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.nav-login:hover {
  background: var(--blue-pale) !important;
}

/* nav-has-drop - 下拉由 JS 控制，无需 CSS hover */
.nav-has-drop { position: relative; }

.nav-drop-title {
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  padding: 0 28px;
  height: 52px;
  line-height: 52px;
  font-size: 16px;
  margin: 0;
}

.nav-drop-title a {
  color: #fff !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 52px;
  display: block;
}

.nav-drop-cols {
  display: flex;
  padding: 8px 0 12px;
}

.nav-drop-cols dl {
  flex: 1;
}

.nav-drop-cols dl:nth-child(2) {
  background: #f8fafd;
}

.nav-drop-cols dt {
  height: 42px;
  overflow: hidden;
}

.nav-drop-cols dt a {
  font-size: 13px !important;
  line-height: 42px !important;
  color: #5A6472 !important;
  padding: 0 20px !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nav-drop-cols dt a:hover {
  color: #1565C0 !important;
  background: #E3F2FD !important;
}

.nav-drop-cols dt a img {
  height: 14px;
  width: auto;
}

/* ===== 登录/注册弹窗 ===== */
.register .tab { font-size: 0; }
.register .tab li {
  cursor: pointer; display: inline-block; position: relative;
  font-size: 20px; width: 80px; color: #fff; margin: 0 20px 40px 0;
}
.register .tab li:last-child { margin-right: 0; }
.register .tab li::before {
  background: #fff; content: ''; position: absolute;
  bottom: -10px; left: 0; width: 100%; height: 3px;
  border-radius: 3px; transition: transform .3s; opacity: 0;
}
.register .tab li.cur { color: #fff; }
.register .tab li.cur::before { opacity: 1; }

/* ===== 弹出搜索 ===== */
.searchBar-m { display: none; width: 100%; height: 100%; position: fixed; top: 0; z-index: 9999; text-align: center; }
.searchBar-m .mask { position: absolute; left: 0; right: 0; width: 100%; height: 100%; background: #000; opacity: 0.8; }

/* ===== 响应式 ===== */
@media (max-width: 1300px) {
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  .openclaw-badge { font-size: 10px; padding: 2px 8px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
}
