.bw-i18n-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 92px);
  right: clamp(112px, 6.8vw, 132px);
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 70px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(141, 244, 228, 0.36);
  border-radius: 10px;
  color: rgba(230, 244, 255, 0.58);
  background: linear-gradient(135deg, rgba(8, 13, 20, 0.78), rgba(1, 8, 14, 0.58));
  box-shadow: 0 0 16px rgba(126, 238, 226, 0.12), inset 0 0 14px rgba(112, 214, 209, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: nbarchitekt, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(-4px);
  transition: opacity 280ms ease, visibility 280ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 280ms ease;
}

.bw-i18n-toggle.is-ready {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
}

.bw-i18n-toggle:hover,
.bw-i18n-toggle:focus-visible {
  color: #ffffff;
  border-color: rgba(178, 255, 243, 0.7);
  box-shadow: 0 0 18px rgba(126, 238, 226, 0.22), inset 0 0 16px rgba(112, 214, 209, 0.14);
  outline: none;
  transform: none;
}

.bw-i18n-toggle__option {
  opacity: 0.54;
  transition: opacity 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.bw-i18n-toggle__option.is-active {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(168, 248, 239, 0.72);
}

.bw-i18n-toggle__divider {
  opacity: 0.45;
  color: rgba(210, 200, 255, 0.72);
}

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

.bw-feature-detail {
  position: fixed;
  top: 45.3vh;
  left: 25.75vw;
  right: auto;
  z-index: 6;
  box-sizing: border-box;
  width: min(43.35vw, 800px);
  max-height: calc(100vh - 170px);
  padding: 22px 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(152, 239, 230, 0.3);
  border-radius: 4px 28px 4px 28px;
  color: rgba(239, 251, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(16, 34, 38, 0.84), rgba(3, 11, 18, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(109, 221, 213, 0.14), transparent 45%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(91, 218, 207, 0.08),
    inset 0 0 24px rgba(130, 239, 228, 0.035);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: nbarchitekt, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  pointer-events: auto;
  scrollbar-color: rgba(141, 244, 228, 0.32) transparent;
  scrollbar-width: thin;
  transform: translateY(-50%);
  animation: bw-feature-detail-in 520ms cubic-bezier(0.17, 0.4, 0.02, 0.99) both;
}

.bw-feature-detail::before {
  position: absolute;
  top: 0;
  left: 22px;
  width: 62px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(171, 255, 245, 0.92), transparent);
  box-shadow: 0 0 10px rgba(128, 246, 232, 0.7);
}

.bw-feature-detail__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: rgba(159, 239, 231, 0.78);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bw-feature-detail__title {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-wrap: balance;
  text-transform: uppercase;
}

.bw-feature-detail__summary {
  margin: 0 0 16px;
  color: rgba(230, 245, 247, 0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.55;
}

.bw-feature-detail__label {
  margin: 0 0 8px;
  color: rgba(153, 230, 222, 0.66);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bw-feature-detail__highlights {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.bw-feature-detail__highlights li {
  position: relative;
  padding-left: 16px;
  color: rgba(239, 250, 251, 0.88);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.bw-feature-detail__highlights li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 1px;
  content: "";
  background: rgba(137, 238, 226, 0.82);
  box-shadow: 0 0 7px rgba(108, 242, 225, 0.56);
}

.bw-feature-detail__boundary {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 226, 217, 0.16);
}

.bw-feature-detail__boundary span {
  color: rgba(153, 230, 222, 0.66);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bw-feature-detail__boundary p {
  margin: 0;
  color: rgba(217, 238, 240, 0.72);
  font-size: 10px;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

@keyframes bw-feature-detail-in {
  from {
    opacity: 0;
    transform: translate(18px, -48%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 1024px) {
  .bw-i18n-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 94px);
    right: 18px;
    min-width: 70px;
    height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    font-size: 9px;
  }

  .bw-feature-detail {
    padding: 19px 20px 18px;
  }
}

@media (max-width: 820px) {
  .bw-feature-detail {
    top: calc(env(safe-area-inset-top, 0px) + 126px);
    right: 20px;
    left: 20px;
    width: auto;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 144px);
    padding: 16px 18px;
    border-radius: 4px 22px 4px 22px;
    transform: none;
    animation-name: bw-feature-detail-in-mobile;
  }

  .bw-feature-detail__title {
    margin-bottom: 9px;
    font-size: 18px;
  }

  .bw-feature-detail__summary {
    margin-bottom: 11px;
    font-size: 11px;
    line-height: 1.45;
  }

  .bw-feature-detail__highlights {
    gap: 5px;
    margin-bottom: 11px;
  }

  .bw-feature-detail__highlights li {
    font-size: 10px;
    line-height: 1.35;
  }

  .bw-feature-detail__boundary {
    padding-top: 9px;
  }
}

@keyframes bw-feature-detail-in-mobile {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .bw-i18n-toggle {
    right: 14px;
  }
}
