.navbar-brand {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
}

/* 自定义菜单样式 */
.custom-nav {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.custom-nav .nav-link {
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.custom-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-nav .nav-link.active {
  background: #0f6eff !important;
  color: #fff;
}

/* 桌面版语言切换下拉菜单 */
.language-switcher {
  position: relative;
  line-height: 20px;
}

.lang-dropdown {
  position: relative;
  cursor: pointer;
}

.lang-current {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-flag {
  margin-right: 8px;
  font-size: 16px;
}

.lang-name {
  color: #fff;
  font-size: 14px;
  flex: 1;
}

.lang-arrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.lang-arrow.rotated {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 160px;
  background: #62616147;
  backdrop-filter: blur(4px);
  border-radius: 0px 0px 8px 8px;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.lang-dropdown-menu.show {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

.lang-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  background: #0f6eff;
  color: #fff;
}

.lang-option .lang-flag {
  margin-right: 10px;
}

/* 移动端语言切换器 */
.mobile-language-switcher {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 10px;
}

.lang-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.mobile-lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-lang-btn.active {
  background: #0f6eff;
  color: #fff;
  border-color: #0f6eff;
}

.mobile-lang-btn .lang-flag {
  margin-right: 10px;
  font-size: 16px;
}

/* 移动端菜单样式 */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: #515151df;
  z-index: 1060;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu-container.show {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-menu-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav .nav-link {
  color: #fff;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background-color 0.3s;
  text-decoration: none;
  display: block;
}

.mobile-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav .nav-link.active {
  background: #0f6eff !important;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.navbar-toggler {
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}