body,
html {
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  max-width: 430px;
  margin: 0 auto;
  background: #f7f8fa;
  font-family: "Arial", sans-serif;
  position: relative;
}

body::-webkit-scrollbar {
  display: none;
}

.index-container {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.index-img {
  width: 100%;
  transition: opacity 0.5s ease;
}

.index-btn {
  position: absolute;
  width: 60%;
  margin: 0 auto;
  padding: 12px 0;
  text-align: center;
  z-index: 10;
  background: #fec504;
  top: 11%;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 18px;
  color: #1f1e1e;
}

.index-btn:hover {  
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.index-btn:active {
  transform: translateY(1px);
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.chinese-flag {
  background: linear-gradient(to right, #de2910, #ffde00);
}

.english-flag {
  background: linear-gradient(to bottom, #012169, #c8102e, #ffffff);
}

.language-text {
  font-weight: 600;
  font-size: 14px;
}

.title {
  position: absolute;
  top: 40px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 15;
  font-weight: bold;
}

.instructions {
  position: absolute;
  bottom: 20px;
  width: 80%;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  z-index: 15;
  font-size: 14px;
}

/* 新增的汉堡菜单样式 */
.hamburger-menu {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  width: 26px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-menu .bar {
  width: 22px;
  height: 2px;
  background-color: #333;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* 菜单弹窗样式 */
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.menu-content {
  background: white;
  border-radius: 16px;
  width: 80%;
  max-width: 350px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.menu-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.close-menu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.close-menu:hover {
  color: #f00;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-link {
  padding: 14px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-link:hover {
  background: #fec504;
  transform: translateX(5px);
}

.menu-link i {
  font-size: 18px;
}