.navbar .menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  /* 调整导航栏容器布局 */
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  .navbar .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    font-size: 20px;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-left: auto; /* 将汉堡按钮推到最右边 */
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  /* 汉堡菜单中的元素水平对齐 */
  .nav-links .mobile-actions {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
  }
  
  .nav-links .mobile-actions > div {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links .language-switcher {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links .language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
  }
  
  .nav-links .language-dropdown {
    width: 100%;
    position: static;
    margin-top: 8px;
  }
  
  .nav-links .language-option {
    width: 100%;
    text-align: center;
  }
  .navbar .menu-toggle:active { transform: scale(0.98); }
  .navbar .menu-toggle:focus { outline: 2px solid #10b981; }

  /* 在移动端默认隐藏导航链接 */
  .nav-links {
    display: none;
  }
  
  /* 汉堡菜单打开时显示下拉导航 */
  .navbar.open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    min-height: 42px;
    line-height: 20px;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
  }

  .nav-links a:active { background: rgba(255,255,255,0.08); }
  .nav-links a:focus { outline: 2px solid #10b981; }
  .nav-links a.active { background: rgba(16,185,129,0.2); color: #10b981; }

  .logo { 
    font-size: 18px; 
    display: flex; 
    align-items: center; 
    height: 42px; /* 与button元素高度一致 */
  }
  
  .logo span[data-lang="nav-logo"] {
    display: flex;
    align-items: center;
    height: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 16px; padding: 12px 16px; }
}
