/* 三版首页预览 — 右上角固定切换 */
.dnaweb-version-switch {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 4px;
  border-radius: 9999px;
  background: rgba(12, 42, 78, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 224, 136, 0.4);
  box-shadow: 0 4px 18px rgba(0, 48, 96, 0.35);
  font-family: "JetBrains Mono", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.dnaweb-version-switch__label {
  padding: 5px 8px;
  color: rgba(255, 224, 136, 0.95);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.dnaweb-version-switch a {
  padding: 6px 11px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.dnaweb-version-switch a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dnaweb-version-switch a.is-active {
  background: #fed65b;
  color: #0a2e54;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 480px) {
  .dnaweb-version-switch {
    top: 8px;
    right: 8px;
    padding: 3px 5px 3px 3px;
    font-size: 11px;
  }

  .dnaweb-version-switch__label {
    display: none;
  }

  .dnaweb-version-switch a {
    padding: 6px 9px;
  }
}
