/* 全局重置，避免样式冲突 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
}
body {
  font-family: "Microsoft Yahei", Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* 🔴 核心：把背景视频压到最底层，绝对不挡弹窗 */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1 !important; /* 强制视频在最底层，任何元素都能盖在它上面 */
}

/* 半透明遮罩层，也压在视频上，不影响弹窗 */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

/* 导航栏、内容、footer 层级正常，不抢弹窗 */
.navbar, .content, .footer {
  position: relative;
  z-index: 3;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 20px 30px;
  color: #fff;
  width: 100%;
}
.title { font-size: 24px; font-weight: bold; }
.nav-links a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
}
.user {
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

/* 内容区样式 */
.content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}
.cn-text {
  font-size: 48px;
  color: #fff;
  font-weight: bold;
}
.en-text {
  font-size: 18px;
  color: #fff;
  margin-top: 10px;
}

/* 🟢 圆形图片样式：层级足够，不被遮挡，保证鼠标事件触发 */
.round-img {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  z-index: 9998 !important; /* 图片层级仅次于弹窗，保证鼠标能点到 */
  cursor: pointer;
  transition: transform 0.2s;
}
.round-img:hover {
  transform: scale(1.08);
}

/* 图片位置（完全保留你原来的布局，不动位置） */
.img1 { width: 160px; height: 160px; top: 180px; left: 280px; }
.img2 { width: 140px; height: 140px; top: 180px; right: 280px; }
.img3 { width: 180px; height: 180px; bottom: 180px; left: 260px; }
.img4 { width: 130px; height: 130px; bottom: 180px; right: 260px; }
.img5 { width: 150px; height: 150px; left: 220px; top: 50%; transform: translateY(-50%); }
.img6 { width: 170px; height: 170px; right: 220px; top: 50%; transform: translateY(-50%); }

/* 菌子文字标签样式，层级正常 */
.mushroom-label, .mushroom-label2, .mushroom-label3,
.mushroom-label4, .mushroom-label5, .mushroom-label6 {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.mushroom-label { top: 220px; left: 120px; align-items: flex-end; }
.mushroom-label2 { top: 50%; left: 40px; transform: translateY(-50%); align-items: flex-end; }
.mushroom-label3 { bottom: 220px; left: 40px; align-items: flex-end; }
.mushroom-label4 { top: 220px; right: 120px; align-items: flex-start; }
.mushroom-label5 { top: 50%; right: 40px; transform: translateY(-50%); align-items: flex-start; }
.mushroom-label6 { bottom: 220px; right: 120px; align-items: flex-start; }
.label-cn {
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  font-family: "Microsoft Yahei", Arial, sans-serif;
}
.label-en {
  font-size: 14px;
  color: #fff;
  font-family: "Microsoft Yahei", Arial, sans-serif;
  margin-top: 4px;
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 15px 30px;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 100%;
  position: fixed;
  bottom: 0; left: 0;
  z-index: 3;
}

/* 🟡 核心：弹窗样式，强制最高层级，绝对不被任何元素遮挡 */
.mushroom-popup {
  position: absolute;
  width: 240px;
  max-height: 180px;
  background: rgba(0, 0, 0, 0.85) !important; /* 深色背景，保证文字清晰 */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  color: #fff !important;
  z-index: 999999 !important; /* 弹窗层级拉满，视频、遮罩全压不住 */
  display: none;
  overflow-y: auto;
  pointer-events: none !important; /* 关键：不拦截鼠标事件，保证弹窗不自己消失 */
}
.popup-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}
.popup-desc {
  font-size: 14px;
  line-height: 1.6;
}

/* 弹窗位置（完全保留你原来的布局，不动位置） */
#popup1 { top: 180px; left: 480px; }
#popup2 { top: 180px; right: 480px; }
#popup3 { bottom: 180px; left: 480px; }
#popup4 { bottom: 180px; right: 480px; }
#popup5 { top: 50%; left: 420px; transform: translateY(-50%); }
#popup6 { top: 50%; right: 420px; transform: translateY(-50%); }

/* 用户下拉菜单样式 */
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 120px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999999;
  display: none;
}
.user-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.user-menu a:hover {
  background: #f5f5f5;
}
.user-menu .logout {
  color: #e53935;
}