/* assets/css/floating-contact.css: floating WhatsApp / WeChat / phone buttons and the WeChat popup. */
:root{
    --gls-burgundy: #800020;
    --gls-burgundy-dark: #5c0017;
    --gls-burgundy-soft: #7a1e2e;
    --gls-gold: #c5a059;
    --gls-ink: #10141b;
    --gls-muted: #666;
    --gls-line: #e8e8e8;
    --gls-whatsapp: #25d366;
    --gls-wechat: #09b83e;
    --gls-radius: 8px;
    --gls-shadow: 0 10px 30px rgba(16, 20, 27, .16);
    --gls-float-z: 99990;
}
.gls-float{
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: var(--gls-float-z);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: inherit;
}
.gls-float-stack{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.gls-float-btn{
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: var(--gls-burgundy);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: var(--gls-shadow);
    cursor: pointer;
    overflow: hidden;
    max-width: 52px;
    transition: max-width .32s cubic-bezier(.4, 0, .2, 1),
                background-color .2s ease,
                transform .2s ease;
    font-family: inherit;
}
.gls-float-btn:hover,
.gls-float-btn:focus-visible{
    max-width: 300px;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}
.gls-float-btn:focus-visible{
    outline: 3px solid var(--gls-gold);
    outline-offset: 2px;
}
.gls-float-icon{
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.gls-float-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
    white-space: nowrap;
    line-height: 1.25;
    text-align: left;
}
.gls-float-text strong{
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.gls-float-text small{
    font-size: 11px;
    opacity: .82;
    color: #fff;
}
.gls-float-whatsapp{ background: var(--gls-whatsapp); }
.gls-float-whatsapp:hover{ background: #1fb955; }
.gls-float-wechat{ background: var(--gls-wechat); }
.gls-float-wechat:hover{ background: #079c34; }
.gls-float-phone{ background: var(--gls-burgundy); }
.gls-float-phone:hover{ background: var(--gls-burgundy-dark); }
.gls-float-trigger{
    display: none;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--gls-whatsapp);
    color: #fff;
    box-shadow: var(--gls-shadow);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background-color .2s ease;
}
.gls-float-trigger:focus-visible{
    outline: 3px solid var(--gls-gold);
    outline-offset: 2px;
}
.gls-float-trigger-close{ display: none; }
.gls-float.is-open .gls-float-trigger{ background: var(--gls-burgundy-dark); }
.gls-float.is-open .gls-float-trigger-open{ display: none; }
.gls-float.is-open .gls-float-trigger-close{ display: block; }
@media (max-width: 767px){
.gls-float{
        right: 14px;
        bottom: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
.gls-float-trigger{ display: inline-flex; }
.gls-float-stack{
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px) scale(.94);
        transform-origin: bottom right;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
        pointer-events: none;
    }
.gls-float.is-open .gls-float-stack{
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
.gls-float-btn{
        max-width: 260px;
        height: 48px;
    }
.gls-float-icon{ flex-basis: 48px; width: 48px; height: 48px; }
.gls-float-text strong{ font-size: 13px; }
}
@media print{
.gls-float,
.gls-wechat-modal{ display: none !important; }
}
.gls-wechat-modal{
    position: fixed;
    inset: 0;
    z-index: calc(var(--gls-float-z) + 10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gls-wechat-modal[hidden]{ display: none; }
.gls-wechat-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 27, .72);
    backdrop-filter: blur(2px);
}
.gls-wechat-panel{
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 12px;
    padding: 30px 26px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.gls-wechat-close{
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: #9aa1ac;
    cursor: pointer;
    padding: 4px 8px;
}
.gls-wechat-close:hover{ color: var(--gls-ink); }
.gls-wechat-panel h3{
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--gls-ink);
}
.gls-wechat-hint{
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gls-muted);
}
.gls-wechat-qr{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--gls-line);
    border-radius: 10px;
    margin-bottom: 18px;
}
.gls-wechat-qr img,
.gls-wechat-qr canvas{
    display: block;
    max-width: 100%;
    height: auto;
}
.gls-wechat-id{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.gls-wechat-id-label{ color: var(--gls-muted); }
.gls-wechat-id code{
    background: #f4f5f7;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--gls-ink);
}
.gls-wechat-copy{
    border: 1px solid var(--gls-line);
    background: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--gls-burgundy);
    font-weight: 600;
}
.gls-wechat-copy:hover{ background: #faf7f8; }
:lang(zh) body,
html[lang^="zh"] body{
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
    letter-spacing: 0;
}
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3{
    letter-spacing: .01em;
}
@media print{
body{ background: #fff !important; }
.gls-no-print{ display: none !important; }
}
