/* 统一的导航栏样式 - 供所有子页面使用 */
:root {
  --c-primary: #1890ff;
  --c-primary-light: #40a9ff;
  --c-text: #333;
  --c-text-bright: #000;
  --text-secondary: #666;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  transition: all .35s ease
}

.site-nav .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px
}

.site-nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08)
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}

.nav-logo img {
  max-height: 40px
}

.nav-logo-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px
}

.nav-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-text-bright);
  letter-spacing: -.01em;
  line-height: 1.2
}

.nav-logo-text-en {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em
}

.nav-logo-text em {
  font-style: normal;
  color: var(--c-primary);
  font-weight: 800
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-links>li {
  position: relative
}

.nav-links>li::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all .25s
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-primary)
}

.nav-links a.active {
  font-weight: 700
}

/* Dropdown Menu */
.dropdown-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 0;
  opacity: 1;
  visibility: visible;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
  display: block
}

.dropdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 48px;
  flex-wrap: nowrap;
  justify-content: center
}

.dropdown-menu a {
  display: inline-block;
  padding: 10px 20px;
  color: var(--c-text);
  font-size: 1rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
  border-radius: 6px
}

.dropdown-menu a:hover {
  color: var(--c-primary)
}

.has-dropdown>a::after {
  content: '';
  margin-left: 6px;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s
}

.has-dropdown:hover>a::after,
.has-dropdown.active>a::after {
  transform: rotate(-135deg) translateY(2px)
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: all .3s
}

@media(max-width:991px) {
  .nav-toggle {
    display: flex
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08)
  }
  
  .nav-links.open {
    display: flex
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none
  }
  
  .has-dropdown.open .dropdown-menu {
    display: block
  }
}
