.language-switcher {
  position: relative;
}

.language-switcher .fa-globe {
  font-size: 30px; /* 调整图标大小 */
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: -5px;
}

.language-switcher .fa-globe:hover {
  color: #dddddd;
}

.language-dropdown {
  position: absolute;
  top: 100%; /* 保证下拉框从图标下方显示 */
  right: 10px;
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 9999; /* 确保下拉框显示在前面 */
  min-width: 120px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.language-dropdown div {
  padding: 8px;
  cursor: pointer;
  color: #333;
  transition: background-color 0.3s ease; /* 平滑过渡 */
}

.language-dropdown div:hover {
  background-color: #dddddd; /* 悬停时背景变浅蓝色 */
  border-radius: 5px;
}

.language-dropdown div:active {
  background-color: #a2a2a2; /* 点击时背景色为浅蓝色 */
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
/* 主要容器 */
.navbar-icon-container {
  position: fixed;
  top: 9px;
  right: 7px;
  z-index: 1001; /* 确保图标和下拉框显示在前面 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 汉堡菜单图标样式 */
.navbar-icon {
  width: 30px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin: 5px;
}

/* 每一条横线 */
.navbar-icon-line {
  width: 100%;
  height: 3px; /* 调整为更细的横线 */
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* 悬停时颜色加深 */
.navbar-icon:hover .navbar-icon-line {
  background-color: #dddddd; /* 悬停时颜色变化 */
}

/* 滑动进来的下拉菜单 */
.navbar-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  width: 200px; /* 调整下拉框宽度 */
  height: 100vh; /* 填充整个页面高度 */
  background-color: rgb(31, 11, 11); /* 背景色与页面一致 */
  box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.5); /* 下拉框阴影 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 垂直排列菜单项 */
  padding: 20px;
  transform: translateX(100%); /* 初始状态下拉框完全隐藏 */
  transition: transform 0.3s ease-in-out;
  opacity: 0; /* 初始时不可见 */
  visibility: hidden; /* 不占空间 */
}

/* 显示下拉框 */
.navbar-dropdown.show {
  transform: translateX(0); /* 滑入效果 */
  opacity: 1; /* 显示时可见 */
  visibility: visible; /* 显示时可见 */
}

/* 顶部箭头和地址部分 */
.global {
  display: flex;
  align-items: center;
  padding: 0px;
  font-size: 18px;
  color: rgb(255, 255, 255);
  border-bottom: 1px solid #333;
  margin-top: 7px;
  padding-bottom: 0px;
}

.arrow-icon {
  margin-right: 10px;
  color: #dddddd;
}

.user-icon {
  margin-right: 10px;
  color: #dddddd;
}

.address-text {
  flex-grow: 1;
  color: white;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
}

.address-text span {
  display: block; /* 确保每一部分换行 */
}

/* 下拉框菜单项样式 */
.navbar-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 12px;
  color: white;
  cursor: pointer;
}

.navbar-dropdown-item:hover {
  background-color: #e6a500; /* 悬停时背景变亮 */
  border-radius: 8px;
}

.navbar-dropdown-item.user-info:hover {
  box-shadow: none; /* 禁止鼠标悬停时显示阴影 */
}

.menu-text {
  margin-left: 10px;
  font-size: 24px;
  color: white;
}

.navbar-link {
  text-decoration: none; /* 去除下划线 */
  color: white; /* 设置字体颜色为白色 */
  font-size: 24px;
}

/* 样式调整：间距和字体 */
.navbar-dropdown-item .menu-text {
  margin-left: 10px;
  font-size: 16px;
  color: white;
}
.navbar-dropdown-item .menu-text:hover {
  color: white; /* 悬停时保持白色字体 */
}

.navbar-dropdown-item .fa-lg {
  margin-right: 10px;
}

/* 重置全局默认样式 */
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%; /* 宽度设置为 100% */
  height: 54px;
  max-width: 1200px; /* 最大宽度设置一致 */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5e0506;
  padding: 10px 15px;
  border-bottom: 1px solid #99222b;
  width: 100%; /* 宽度设置为 100% */
  max-width: 100%; /* 最大宽度设置一致 */
}
.head-right .item {
  flex: 1 1; /* 每个子元素平分空间 */
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  margin-left: -6px;
  width: 35px;
  height: 35px;
}

.connectButton {
  display: flex;
  /* align-items: center; */
  gap: 15px;
  margin-right: 36px;
}

.connect-wallet-btn {
  padding: 8px 15px;
  border: none;
  background-color: #e6a500;
  color: #480900;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.connect-wallet-btn:hover {
  background: #a76900;
}

.connect-wallet-btn:active {
  background-color: #7e5000;
}

.language-toggle-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 18px;
}

@media (max-width: 600px) {
  .wallet-button {
    font-size: 12px;
    padding: 6px 12px;
  }
}

:root {
  background-color: #181818;
  color: rgba(255, 255, 255, 0.87);
  color-scheme: light dark;
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: light) {
  :root {
    background-color: #f8f8f8;
    color: #181818;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
}
/* 
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f9;
  color: #333;
  max-width: 1200px; 
  margin: 0 auto; 
} */

/* 页面容器 */
.main-container {
  /* padding-top: 50px; */
  display: flex;
  flex-direction: column;
}
.full-width-img {
  width: 100%;
  height: auto; /* 高度自动，避免变形 */
  display: block;
}

