/* gdus.work language switcher + i18n runtime styles.
   Desktop and mobile safe; sits in the top-right so it never collides with the
   bottom-right floating widget dock. Scoped under #gdus-lang-root. */
#gdus-lang-root {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2147482990;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#gdus-lang-root * { box-sizing: border-box; }

.gdus-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  background: rgba(10, 60, 110, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 12px rgba(8, 44, 92, .25);
  user-select: none;
  white-space: nowrap;
}
.gdus-lang-btn:hover { background: rgba(10, 60, 110, .94); }
.gdus-lang-btn .globe { font-size: 15px; line-height: 1; }
.gdus-lang-btn .caret { font-size: 9px; opacity: .8; }

.gdus-lang-panel {
  position: absolute;
  top: 42px;
  right: 0;
  width: 184px;
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(12, 45, 84, .18);
  padding: 6px;
  display: none;
  animation: gdus-lang-pop .14s ease-out;
}
.gdus-lang-panel.open { display: block; }
@keyframes gdus-lang-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.gdus-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  color: #20303f;
  font-size: 13.5px;
}
.gdus-lang-item:hover { background: #f0f6fd; }
.gdus-lang-item .code {
  width: 30px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #0d5fb0;
  background: #eef5fd;
  border-radius: 6px;
  padding: 2px 0;
  flex: none;
}
.gdus-lang-item.on { background: #e8f2ff; font-weight: 700; }
.gdus-lang-item.on .code { background: #0d5fb0; color: #fff; }
.gdus-lang-item .name { flex: 1; }
.gdus-lang-item .native { color: #5c7185; font-size: 12px; }

.gdus-lang-hint {
  padding: 6px 11px 9px;
  font-size: 11px;
  color: #8a99a9;
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
  line-height: 1.5;
}

/* On small screens the bar shrinks and the panel stays inside the viewport. */
@media (max-width: 520px) {
  #gdus-lang-root { top: 8px; right: 8px; }
  .gdus-lang-btn { height: 32px; font-size: 12px; padding: 0 10px; }
  .gdus-lang-panel { width: 168px; }
}
