/* ==================== 导航栏 ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html, body { width: 100%; height: 100%; overflow: hidden }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1a2e;
}

.game-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 48px;
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.game-nav-left { display: flex; align-items: center; gap: 14px }
.game-nav-logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
}
.game-nav-logo .dice-icon {
  width: 28px; height: 28px; border-radius: 7px; background: #e74c3c;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.game-nav-sep { color: rgba(255,255,255,.15); font-size: 14px }
.game-nav-title { color: rgba(255,255,255,.5); font-size: 13px; font-weight: 400 }
.game-nav-right { display: flex; align-items: center; gap: 8px }
.game-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 980px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .3s; font-family: inherit; text-decoration: none;
}
.game-nav-btn:hover { background: rgba(255,255,255,.16); color: #fff }
.game-nav-btn.back-btn:hover { background: rgba(231,76,60,.3); border-color: rgba(231,76,60,.4); color: #fff }
.game-nav-btn.lang-btn { font-size: 11px; color: rgba(52,152,219,.8) }
.game-nav-btn.lang-btn:hover { color: #3498db }

/* 游戏页面语言切换按钮（深色背景版） */
.nav-lang-switch-dark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .3s;
}
.nav-lang-switch-dark:hover {
  border-color: rgba(52,152,219,.5);
}
.nav-lang-switch-dark .nav-lang-item-dark {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 400;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}
.nav-lang-switch-dark .nav-lang-item-dark.active {
  background: #3498db;
  color: #fff;
  font-weight: 600;
}
.nav-lang-switch-dark .nav-lang-item-dark:not(.active) {
  color: rgba(255,255,255,.5);
  cursor: pointer;
  text-decoration: none;
}
.nav-lang-switch-dark .nav-lang-item-dark:not(.active):hover {
  background: rgba(52,152,219,.2);
  color: #3498db;
}
