.site-controls {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--vp-c-divider, #e3e5ea);
  border-radius: 12px;
  background: var(--vp-c-bg, #fff);
  color: var(--vp-c-brand-1, #3451b2);
  box-shadow: 0 6px 24px #18264012;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.site-control[hidden], .site-service-panel[hidden] { display: none; }
.site-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-control:hover { transform: translateY(-2px); box-shadow: 0 8px 28px #18264024; }
.site-control:focus-visible { outline: 2px solid var(--vp-c-brand-1, #3451b2); outline-offset: 3px; }
.site-service { position: relative; }
.site-service-panel {
  position: absolute;
  right: 100%;
  bottom: 0;
  width: min(236px, calc(100vw - 80px));
  padding: 18px;
  border: 1px solid var(--vp-c-divider, #e3e5ea);
  border-radius: 12px;
  background: var(--vp-c-bg, #fff);
  color: var(--vp-c-text-1, #242834);
  box-shadow: 0 8px 32px #18264024;
  text-align: center;
  font-size: 14px;
}
.site-wechat-qr { margin: 12px auto; padding: 10px; background: #fff; width: 200px; max-width: 100%; }
.site-wechat-qr img, .site-wechat-qr canvas { max-width: 100%; height: auto; }
.site-service-panel p { margin: 10px 0 4px; overflow-wrap: anywhere; user-select: text; }
.site-service-panel small { color: var(--vp-c-text-2, #676b75); }
@media (max-width: 640px) {
  .site-controls { right: 14px; bottom: max(20px, env(safe-area-inset-bottom)); }
  .site-control { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .site-control { transition: none; } }
