/* 语言弹窗：不依赖 Tailwind 是否扫描 partials/site-header.html */
#lang-switch-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  box-sizing: border-box;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 1rem;
}

#lang-switch-modal.hidden {
  display: none !important;
}

#lang-switch-modal:not(.hidden) {
  display: flex !important;
}

#lang-switch-modal [data-lang-modal-backdrop] {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

#lang-switch-modal [data-lang-modal-panel] {
  position: relative;
  z-index: 10;
  max-width: 280px;
  width: 100%;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 顶栏语言切换：当前语言高亮（与 js/site-header.js 配合） */
.lang-switch-option--active {
  box-shadow: 0 0 0 2px #0066e0;
  background-color: rgba(0, 102, 224, 0.08);
  color: #0066e0 !important;
}

.lang-option-mobile.lang-switch-option--active {
  border-color: #0066e0;
}
