.i18n-pending body {
  visibility: hidden;
}

.i18n-ready body {
  visibility: visible;
}

.body-home--index .van-nav-bar__right {
  z-index: 3;
}

.body-home--index .van-nav-bar__title {
  max-width: calc(100% - 110px);
  padding: 0 8px;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-switch__current {
  display: inline-block;
  flex-shrink: 0;
  color: #323233 !important;
  font-size: 14px !important;
  line-height: 1.2;
  white-space: nowrap;
}

.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.lang-switch__trigger:active {
  opacity: 0.75;
}

.lang-switch__arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #1989fa;
  transition: transform 0.2s ease;
}

.lang-switch__trigger[aria-expanded="true"] .lang-switch__arrow {
  transform: rotate(180deg);
}

.lang-switch__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2000;
  min-width: 120px;
  padding: 4px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switch__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__option {
  padding: 10px 16px;
  color: #323233;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch__option:hover,
.lang-switch__option.is-active {
  color: #1989fa;
  background: rgba(25, 137, 250, 0.08);
}

.lang-switch__flag {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 35px 14px;
}

.auth-agreement__box {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
  cursor: pointer;
}

.auth-agreement__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-agreement__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #c8c9cc;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s;
}

.auth-agreement__icon::after {
  display: none;
}

.auth-agreement__mark {
  display: none;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.auth-agreement__input:checked + .auth-agreement__icon,
.auth-agreement__box.is-checked .auth-agreement__icon {
  background-color: #1989fa;
  border-color: #1989fa;
}

.auth-agreement__input:checked + .auth-agreement__icon .auth-agreement__mark,
.auth-agreement__box.is-checked .auth-agreement__mark {
  display: block;
}

.auth-agreement__text {
  flex: 1;
  color: #323233;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}

.auth-agreement__prefix {
  cursor: pointer;
}

.auth-agreement__link {
  color: #1989fa !important;
  text-decoration: none;
}

.auth-agreement__link:active {
  opacity: 0.75;
}
