/* 全站右下角 QQ / Q群 / 微信群 浮动联系 */
.site-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.site-float a,
.site-float .sf-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  min-width: 132px;
  border-radius: 999px;
  border: 2px solid rgba(255, 220, 170, 0.28);
  background: linear-gradient(165deg, #4a3a2c 0%, #2c221a 100%);
  box-shadow: 0 4px 0 #140e0a, 0 8px 20px rgba(0, 0, 0, 0.35);
  color: var(--ink, #fff6e8);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.site-float a:hover,
.site-float .sf-btn:hover {
  color: var(--ink, #fff6e8);
  transform: translateX(-3px);
  border-color: rgba(255, 193, 7, 0.55);
  filter: brightness(1.06);
}

.site-float .sf-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12b7f5;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.site-float .sf-ico.group {
  background: #12b7f5;
}

.site-float .sf-ico.wechat {
  background: #07c160;
}

.site-float .sf-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.site-float .sf-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.site-float .sf-txt strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft, #ffe082);
}

.site-float .sf-txt span {
  font-size: 0.72rem;
  color: var(--muted, #c4b09a);
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .site-float {
    right: 10px;
    bottom: 14px;
  }
  .site-float a,
  .site-float .sf-btn {
    min-width: 0;
    padding: 0.4rem;
    border-radius: 50%;
  }
  .site-float .sf-txt { display: none; }
}

/* 微信群二维码弹层 */
.wx-modal[hidden] { display: none; }
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.wx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.78);
}
.wx-modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 16px;
  border: 3px solid #2a2018;
  background: linear-gradient(165deg, #fff8f0 0%, #f3e6d4 100%);
  box-shadow: 0 10px 0 #1a120c, 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #3a2e24;
}
.wx-modal-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "ZCOOL KuaiLe", cursive);
  font-size: 1.35rem;
  color: #2a2018;
}
.wx-modal-tip {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #6b5340;
}
.wx-modal-qr {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
}
.wx-modal-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #8a7460;
  line-height: 1.4;
}
.wx-modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(42, 32, 24, 0.12);
  color: #2a2018;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.wx-modal-x:hover {
  background: rgba(42, 32, 24, 0.22);
}
