/* ============================================================
 * versionswitch.css —— 第一版 / 第二版 界面切换器
 * 只在两个主页面加载；固定右下角，始终可见。
 * ============================================================ */

.vs-switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 140;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(11, 43, 36, 0.10);
  box-shadow: 0 10px 30px rgba(11, 60, 48, 0.16), 0 2px 6px rgba(11, 60, 48, 0.08);
  font-family: var(--font-sans, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif);
  animation: vsIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  user-select: none;
}
@keyframes vsIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.vs-switch__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  color: #7d968e; padding-right: 6px; white-space: nowrap;
}

.vs-opt {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 800; line-height: 1;
  color: #45635a; text-decoration: none; white-space: nowrap;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.vs-opt small { font-size: 0.62rem; font-weight: 600; opacity: 0.75; letter-spacing: 0.04em; }
.vs-opt:hover { color: #0a7a5f; background: rgba(15, 157, 122, 0.08); }
.vs-opt.is-on {
  color: #fff;
  background: linear-gradient(120deg, #0a7a5f, #0f9d7a 55%, #14b8a6);
  box-shadow: 0 4px 14px rgba(15, 157, 122, 0.34);
}
.vs-opt.is-on:hover { color: #fff; }
.vs-opt__new {
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 2px 5px; border-radius: 5px;
  background: #f59e0b; color: #fff; transform: translateY(-1px);
}
.vs-opt.is-on .vs-opt__new { background: rgba(255, 255, 255, 0.28); }

/* ---- 首次提示气泡 ---- */
.vs-hint {
  position: fixed; right: 20px; bottom: 76px; z-index: 140;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 14px;
  border: 1px solid rgba(15, 157, 122, 0.26);
  background: #fff; color: #0a7a5f;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px rgba(11, 60, 48, 0.16);
  animation: vsHintIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both, vsBob 2.4s ease-in-out 1.7s infinite;
}
.vs-hint::after {
  content: ""; position: absolute; right: 26px; bottom: -5px;
  width: 9px; height: 9px; background: #fff;
  border-right: 1px solid rgba(15, 157, 122, 0.26);
  border-bottom: 1px solid rgba(15, 157, 122, 0.26);
  transform: rotate(45deg);
}
.vs-hint b { font-weight: 800; }
.vs-hint span { font-size: 1rem; }
@keyframes vsHintIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes vsBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (max-width: 560px) {
  .vs-switch { right: 12px; bottom: 12px; padding-left: 9px; }
  .vs-switch__label { display: none; }
  .vs-opt { padding: 7px 11px; font-size: 0.78rem; }
  .vs-opt small { display: none; }
  .vs-hint { right: 12px; bottom: 64px; font-size: 0.76rem; }
}

@media print {
  .vs-switch, .vs-hint { display: none !important; }
}
