/* 全局字体设置 */
* {
  font-family: 'AlibabaPuHuiTi', 'Source Han Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 头部样式 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端抽屉菜单 */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: none;
}

.mobile-drawer.active {
  display: block;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
  min-height: 70px;
}

.drawer-logo-img {
  height: 40px;
  width: auto;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-menu {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav-item {
  margin: 0;
}

.drawer-nav-link {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.3s ease;
}

.drawer-nav-link:hover {
  background-color: #f8f9fa;
  color: #00A2EB;
}

.drawer-nav-item.active .drawer-nav-link {
  background-color: #00A2EB;
  color: #fff;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.drawer-language-switch {
  display: flex;
  justify-content: center;
}

.drawer-language-btn {
  background: #00A2EB;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.drawer-language-btn:hover {
  background: #0088CC;
}

.header-container {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.header-logo {
  flex-shrink: 0;
}

.logo-img {
  width: 105px;
  height: 40px;
  object-fit: contain;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0 24px;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  height: 100%;
  display: flex;
  font-size: 18px;
  align-items: center;
}

.nav-link:hover {
  color: #00A2EB;
}

/* 激活状态样式 */
.nav-item.active {
  background: transparent;
  position: relative;
}

.nav-item.active .nav-link {
  color: #00A2EB;
  font-weight: 400;
}

.nav-item.active .nav-link-text {
  border-bottom: 1px solid #00A2EB;
}

.nav-arrow {
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
}

.nav-arrow-img {
  width: 8px;
  height: 8px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav-item:hover .nav-arrow-img {
  opacity: 0.7;
}

.nav-item.active .nav-link:hover {
  color: #00A2EB;
}

/* 多级菜单样式 */
.nav-item {
  position: relative;
}

.submenu-container {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
  border: 1px solid #CECECE;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 30px 0;
}

.nav-item:hover .submenu-container,
.submenu-container:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu-content {
  width: 100%;
  padding: 0px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  max-width: 1260px;
  margin: 0 auto;
}

.submenu-grid {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 0;
}

.submenu-item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 10px;
  flex: 1;
  min-width: 0;
}

/* 二级菜单标题样式 */
.submenu-level2-title {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 24px;
  margin-bottom: 11px;
}

/* 三级菜单列表样式 */
.submenu-level3-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submenu-level3-item {
  margin: 0;
}

.submenu-level3-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.submenu-level3-icon {
  width: 8px;
  height: 8px;
  background-image: url('../images/right-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin-right: 2px;
}

.submenu-level3-text {
  font-size: 14px;
  color: #000;
  line-height: 21px;
}



/* 移动端多级菜单样式 */
.drawer-nav-item {
  position: relative;
}

.drawer-submenu {
  display: none;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 8px 0;
  padding: 12px;
}

.drawer-nav-item.has-submenu .drawer-submenu {
  display: block;
}

.drawer-submenu-content {
  width: 100%;
}

.drawer-submenu-item {
  margin-bottom: 16px;
}

.drawer-submenu-item:last-child {
  margin-bottom: 0;
}

/* 移动端二级菜单标题样式 */
.drawer-submenu-level2-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

/* 移动端三级菜单列表样式 */
.drawer-submenu-level3-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-submenu-level3-item {
  margin: 0;
}

.drawer-submenu-level3-link {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.drawer-submenu-level3-link:hover {
  background-color: #e9ecef;
}

.drawer-submenu-level3-text {
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

.drawer-submenu-level3-text::before {
  content: ">";
  margin-right: 6px;
  color: #000000;
}

/* 移动端菜单项展开/收起指示器 */
.drawer-nav-item.has-submenu .drawer-nav-link::after {
  content: "▼";
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.drawer-nav-item.has-submenu.expanded .drawer-nav-link::after {
  transform: rotate(180deg);
}

/* 语言切换按钮样式 */
.language-switch {
  margin-left: 28px;
  display: flex;
  align-items: center;
  height: 100%;
}

.language-btn {
  width: 41px;
  height: 20px;
  border-radius: 44px;
  border: 1px solid #767676;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
  color: #767676;
}

.language-btn:hover {
  background-color: #f5f5f5;
}

.language-text {
  font-family: 'Source Han Sans CN', 'Source Han Sans CN', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #767676;
  user-select: none;
}



/* 响应式样式 */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .language-switch {
    margin-left: 20px;
  }
  
  .language-btn {
    width: 45px;
    height: 22px;
  }
  
  .language-text {
    font-size: 16px;
  }
  
  /* 移动端隐藏多级菜单 */
  .submenu-container {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .language-switch {
    margin-left: 15px;
  }
  
  .language-btn {
    width: 40px;
    height: 20px;
  }
  
  .language-text {
    font-size: 14px;
  }
}
