/* CHTAE footer social icons (2026-11-07): a small QR bubble above the icon.
   The footer itself keeps its original look; the bubble follows the footer's light / dark background. */
[data-site-footer] .chtae-social-trigger{cursor:pointer;-webkit-tap-highlight-color:transparent}
[data-site-footer] .chtae-social-trigger:focus{outline:none}
[data-site-footer] .chtae-social-trigger:focus-visible{outline:1px solid currentColor;outline-offset:5px;border-radius:4px}

.chtae-social-pop{
  --pop-bg:rgba(16,20,21,.94);--pop-line:rgba(241,244,242,.12);--pop-text:#eef1ef;--pop-sub:rgba(238,241,239,.5);--pop-shadow:0 18px 44px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.35);
  position:fixed;left:0;top:0;z-index:2147483000;box-sizing:border-box;width:140px;padding:11px 12px 12px;border:1px solid var(--pop-line);border-radius:10px;
  background:var(--pop-bg);color:var(--pop-text);box-shadow:var(--pop-shadow);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  text-align:center;font-family:"Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif;
  opacity:0;transform:translateY(8px) scale(.92);transform-origin:var(--arrow-x,50%) 100%;
  transition:opacity .2s ease,transform .34s cubic-bezier(.16,1,.3,1)}
.chtae-social-pop[data-theme=light]{--pop-bg:rgba(255,255,255,.97);--pop-line:rgba(14,20,21,.09);--pop-text:#0e1415;--pop-sub:rgba(14,20,21,.5);--pop-shadow:0 16px 38px rgba(14,20,21,.14),0 2px 6px rgba(14,20,21,.08)}
.chtae-social-pop.is-below{transform:translateY(-8px) scale(.92);transform-origin:var(--arrow-x,50%) 0}
.chtae-social-pop.is-open{opacity:1;transform:none}
.chtae-social-pop.is-switch{transition:opacity .2s ease,transform .34s cubic-bezier(.16,1,.3,1),left .32s cubic-bezier(.16,1,.3,1),top .32s cubic-bezier(.16,1,.3,1)}
.chtae-social-pop.is-open .chtae-social-qr{animation:chtaeQrIn .42s cubic-bezier(.16,1,.3,1) both}
.chtae-social-pop.is-open .chtae-social-qr+.chtae-social-qr{animation-delay:.06s}
.chtae-social-pop.is-open .chtae-social-pop-head,.chtae-social-pop.is-open .chtae-social-hint,.chtae-social-pop.is-open .chtae-social-open{animation:chtaeTextIn .36s ease both .08s}
@keyframes chtaeQrIn{from{opacity:0;transform:translateY(5px) scale(.95)}to{opacity:1;transform:none}}
@keyframes chtaeTextIn{from{opacity:0}to{opacity:1}}
.chtae-social-pop[hidden]{display:none}
.chtae-social-pop.is-pair{width:232px}

.chtae-social-pop-head{display:flex;align-items:center;justify-content:center;gap:5px;margin:0 0 9px}
.chtae-social-pop-head i{flex:none;width:12px;height:12px;background:currentColor;opacity:.9;-webkit-mask:var(--social-icon) center/contain no-repeat;mask:var(--social-icon) center/contain no-repeat}
.chtae-social-pop-head strong{font-size:12px;font-weight:700;line-height:1.2;letter-spacing:.06em;white-space:nowrap}

.chtae-social-codes{display:flex;justify-content:center;gap:10px}
.chtae-social-qr{flex:1 1 0;min-width:0;margin:0}
.chtae-social-qr img{display:block;width:100%;height:auto;aspect-ratio:1;box-sizing:border-box;padding:5px;border-radius:5px;background:#fff;object-fit:contain;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;pointer-events:auto}
.chtae-social-pop[data-theme=light] .chtae-social-qr img{box-shadow:0 0 0 1px rgba(14,20,21,.08)}
.chtae-social-qr figcaption{margin-top:6px;color:var(--pop-text);font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.04em}

.chtae-social-hint{margin:8px 0 0;color:var(--pop-sub);font-size:10.5px;line-height:1.45;letter-spacing:.03em}
.chtae-social-open{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:0 0 1px;border:0;border-bottom:1px solid currentColor;background:none;color:var(--pop-text)!important;font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.04em;text-decoration:none;cursor:pointer;opacity:.86;transition:opacity .2s ease}
.chtae-social-open:after{content:"›";font-size:13px;line-height:1;transform:translateY(-.5px)}
.chtae-social-open:hover{opacity:1}
.chtae-social-open[hidden]{display:none}
.chtae-social-open:focus-visible{outline:1px solid currentColor;outline-offset:3px}

.chtae-social-arrow{position:absolute;left:var(--arrow-x,50%);transition:left .32s cubic-bezier(.16,1,.3,1);bottom:-5px;width:9px;height:9px;margin-left:-5px;box-sizing:border-box;background:var(--pop-bg);border:solid var(--pop-line);border-width:0 1px 1px 0;transform:rotate(45deg)}
.chtae-social-pop.is-below .chtae-social-arrow{top:-5px;bottom:auto;border-width:1px 0 0 1px}
@media (prefers-reduced-motion:reduce){.chtae-social-pop,.chtae-social-arrow{transition:none!important}.chtae-social-pop *{animation:none!important}}

/* contact page: two codes side by side in the existing WeChat block */
body.contact-page .contact-film-qr.chtae-duo{display:block!important}
.chtae-duo-row{display:flex;gap:12px;margin:0 0 16px}
.chtae-duo-item{position:relative;flex:none;width:min(96px,calc((100% - 12px) / 2))}
body.contact-page .chtae-duo-item img{display:block;box-sizing:border-box;width:100%!important;max-width:none!important;height:auto;aspect-ratio:1;padding:6px!important;background:#f2f3f1!important;mix-blend-mode:normal!important;object-fit:contain;-webkit-touch-callout:default}
.chtae-duo-label{display:block;margin-top:8px;color:#9fb8c0ad;font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.06em;white-space:nowrap}
@media (hover:hover) and (pointer:fine){
  body.contact-page .contact-film-qr.chtae-duo:hover img{transform:none!important;box-shadow:none!important}
  body.contact-page .contact-film-qr.chtae-duo .chtae-duo-item:hover{z-index:5}
  body.contact-page .contact-film-qr.chtae-duo .chtae-duo-item:hover img{transform:scale(2.1)!important;box-shadow:0 0 0 6px #fff,0 22px 50px #0000008c!important;border-radius:4px}
}
@media (max-width:760px){.chtae-duo-row{gap:14px}.chtae-duo-item{width:min(116px,calc((100% - 14px) / 2))}}
