.fh-wechat-trigger, .fh-wechat-panel, .fh-wechat-panel * { box-sizing: border-box; }
.fh-wechat-trigger {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 156px;
  width: 72px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 6px;
  border: 1px solid #ff855c;
  border-radius: 14px;
  background: #fff;
  color: #ff541f;
  box-shadow: 0 5px 22px #63371314;
  font: 600 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.fh-wechat-trigger > svg { width: 38px; height: 34px; }
.fh-wechat-trigger:hover, .fh-wechat-trigger[aria-expanded="true"] { background: #fff8f3; border-color: #ff541f; }
.fh-wechat-trigger:focus-visible, .fh-wechat-panel :is(button, a):focus-visible { outline: 2px solid #ed5b20; outline-offset: 4px; }
.fh-wechat-panel {
  position: fixed;
  inset: auto 112px 156px auto;
  width: 306px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 22px;
  overflow-y: auto;
  border: 1px solid #eddfd3;
  border-radius: 16px;
  background: #fff;
  color: #282620;
  box-shadow: 0 14px 56px #462a1824;
  font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
}
.fh-wechat-head { position: sticky; top: 0; z-index: 1; background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.fh-wechat-kicker { display: block; margin-bottom: 3px; color: #a18d7e; font-size: 12px; }
#fh-wechat-title { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 650; }
.fh-wechat-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f7f5f2; color: #82756b; cursor: pointer; }
.fh-wechat-close:hover { background: #fff0e4; color: #d94e18; }
.fh-wechat-close svg { display: block; width: 19px; height: 19px; }
#fh-wechat-qr { display: block; width: 100%; height: auto; margin: 16px auto 0; aspect-ratio: 1; object-fit: contain; }
.fh-wechat-scan { margin: 7px 0 18px; text-align: center; color: #887a70; font-size: 14px; }
.fh-wechat-id { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid #f0e8e1; color: #817267; font-size: 13px; }
.fh-wechat-id strong { margin-left: 7px; color: #37302b; font-size: 15px; letter-spacing: .2px; }
#fh-wechat-copy { padding: 4px 0 4px 12px; border: 0; background: transparent; color: #c64e1c; font: 600 13px/1.5 Arial, "Microsoft YaHei", sans-serif; cursor: pointer; }
.fh-wechat-save { display: flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid #f0d3bd; border-radius: 7px; background: #fff5eb; color: #e9501b; text-decoration: none; font-size: 14px; font-weight: 600; }
.fh-wechat-save:hover { background: #ffead7; border-color: #e6b48f; }
#fh-wechat-status { margin: 0; color: #937153; font-size: 12px; text-align: center; }
#fh-wechat-status:not(:empty) { margin-top: 10px; }
@media (max-width: 767px) {
  .fh-wechat-trigger { right: 16px; bottom: calc(106px + env(safe-area-inset-bottom)); width: 62px; min-height: 72px; gap: 5px; padding: 10px 4px; font-size: 12px; border-radius: 12px; }
  .fh-wechat-trigger > svg { width: 32px; height: 29px; }
  .fh-wechat-panel { right: 16px; bottom: calc(194px + env(safe-area-inset-bottom)); width: 306px; max-height: calc(100dvh - 218px); padding: 20px; }
}
@media (max-height: 650px) {
  .fh-wechat-panel { top: 12px; bottom: 12px; max-height: calc(100dvh - 24px); }
}
