/* GGP v1.9.196: edge-only WeChat sharing tab, expand on hover or keyboard focus. */
.ggp-site-wechat {
 position:fixed!important;top:48%;right:12px;left:auto;bottom:auto;
 transform:translateY(-50%);z-index:99990;
 width:48px;height:48px;box-sizing:border-box;
 writing-mode:horizontal-tb!important;direction:ltr;
 transition:transform .23s ease, right .23s ease;
}
.ggp-site-wechat-trigger {
 display:flex!important;align-items:center;justify-content:center;
 width:48px;height:48px;min-width:48px;min-height:48px;
 margin:0;padding:0;border:1px solid #d8e2e8;border-radius:12px;
 background:#fff;color:#315466;box-shadow:0 3px 12px rgba(20,43,56,.09);
 cursor:pointer;appearance:none;-webkit-appearance:none;
 font-size:0;line-height:1;transition:background-color .18s,border-color .18s,color .18s;
}
.ggp-site-wechat-trigger svg {display:block;width:25px;height:25px;fill:currentColor;stroke:none}
.ggp-site-wechat-trigger:hover {background:#f2f8f8;color:#187e68;border-color:#bfdad1}
.ggp-site-wechat-trigger:focus-visible {outline:2px solid #277bc2;outline-offset:3px}
/* Collapsed from first paint: a 10px edge tab, with no hit-area over slider navigation. */
.ggp-site-wechat.is-collapsed {right:0;transform:translate(calc(100% - 10px),-50%)}
.ggp-site-wechat.is-collapsed .ggp-site-wechat-trigger {border-radius:12px 0 0 12px;box-shadow:none}
.ggp-site-wechat.is-collapsed:hover,.ggp-site-wechat.is-collapsed:focus-within {transform:translateY(-50%);right:12px}
.ggp-site-wechat.is-collapsed:hover .ggp-site-wechat-trigger,.ggp-site-wechat.is-collapsed:focus-within .ggp-site-wechat-trigger {border-radius:12px;box-shadow:0 3px 12px rgba(20,43,56,.09)}
.ggp-site-wechat-overlay {position:fixed;inset:0;z-index:99999;background:rgba(15,27,35,.34);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;writing-mode:horizontal-tb!important}
.ggp-site-wechat-dialog {position:relative;box-sizing:border-box;width:min(330px,100%);padding:25px 22px 20px;display:flex;flex-direction:column;align-items:center;gap:14px;background:#fff;border:1px solid #e8edf0;border-radius:16px;box-shadow:0 18px 45px rgba(0,0,0,.12);color:#26343e;text-align:center;font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;direction:ltr;writing-mode:horizontal-tb!important}
.ggp-site-wechat-dialog h2 {margin:0;padding:0;font:700 16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#22323b}
.ggp-site-wechat-dialog p {margin:0;padding:0;color:#687887;font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.ggp-site-wechat-qr {width:240px;max-width:100%;min-height:240px;display:flex;align-items:center;justify-content:center;color:#536270}
.ggp-site-wechat-qr svg {display:block;max-width:100%;max-height:240px}
.ggp-site-wechat-close {position:absolute;right:10px;top:10px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;padding:0;background:transparent;color:#5b6873;cursor:pointer;font:22px/1 sans-serif}
.ggp-site-wechat-close:hover{background:#f1f3f5}
/* Never lay the global floating affordance above an active book reader. */
body:has(.gbs-reader:not([hidden])) .ggp-site-wechat {display:none!important}
html.ggp-site-wechat-fullscreen .ggp-site-wechat {display:none!important}
@media(max-width:760px){.ggp-site-wechat{top:58%;right:8px}.ggp-site-wechat-trigger{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:11px}.ggp-site-wechat{width:44px;height:44px}.ggp-site-wechat.is-collapsed:hover,.ggp-site-wechat.is-collapsed:focus-within{right:8px}.ggp-site-wechat-dialog{padding:22px 16px 18px}}
@media(prefers-reduced-motion:reduce){.ggp-site-wechat,.ggp-site-wechat-trigger{transition:none}}
