.site-more-btn {
  --more-btn-bg: rgba(255, 255, 255, 0.78);
  --more-btn-border: rgba(255, 255, 255, 0.55);
  position: fixed;
  right: 0;
  bottom: max(140px, env(safe-area-inset-bottom, 0px) + 130px);
  z-index: 99999;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  background: var(--more-btn-bg);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  color: #3a3a48 !important;
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--more-btn-border);
  border-right: none;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  text-shadow: none;
  box-shadow:
    -2px -2px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  line-height: 1;
  animation: site-more-wiggle 9s ease-in-out infinite;
}

.site-more-btn > span:last-child {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.site-more-btn:hover {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    -4px -4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation-play-state: paused;
}

.site-more-btn:active {
  transform: scale(0.97);
}

@keyframes site-more-wiggle {
  0% {
    transform: translateX(0);
  }
  2% {
    transform: translateX(-3px) rotate(-1.5deg);
  }
  4% {
    transform: translateX(3px) rotate(1.5deg);
  }
  6% {
    transform: translateX(-2px);
  }
  8% {
    transform: translateX(2px);
  }
  10%, 100% {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .site-more-btn {
    right: 0;
    bottom: max(128px, env(safe-area-inset-bottom, 0px) + 118px);
    padding: 10px 6px;
    font-size: 12px;
    border-radius: 10px 0 0 10px;
    gap: 6px;
    max-width: none;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .site-more-btn {
    right: 0;
    bottom: max(132px, env(safe-area-inset-bottom, 0px) + 122px);
  }
}

/* 避免各模板页全局 span 样式污染按钮内文字/图标 */
.site-more-btn span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  background-image: none !important;
}

/* xf6 表白信：樱花层不挡点击，信封翻页保持可用 */
html.page-xf6 #jsi-cherry-container,
html.page-xf6 #jsi-cherry-container canvas {
  pointer-events: none !important;
}

html.page-xf6 section.container {
  z-index: 100;
}

html.page-xf6 #flip,
html.page-xf6 #flip2back {
  position: relative;
  z-index: 100;
}

/* 兜底：原站注入的引流 UI 全部隐藏（build 阶段已删，防动态注入） */
#div_support,
#div_make,
#btn-make,
#btn-make-dynamic,
#div_support-dynamic,
.div_support,
a[href*="makusi"],
a[href*="layzz"],
a[href*="p44.top/list"],
a[href*="mp.weixin"]:not(#siteMoreBtn):not(#siteInlineMoreBtn),
a[href*="wjgd.bb1"],
a[href*="wjzz.bb1"],
.more-btn:not(#siteMoreBtn):not(#siteInlineMoreBtn),
.fixeddd,
.fixedd {
  display: none !important;
  pointer-events: none !important;
}
