/* ===== 私聊红包 hb.css：开红包弹窗 .hbx-pop、红包详情页 .hbpg、领取提示 .wsys-hb（js/40-hb.js） ===== */
.hbx-pop{position:absolute;inset:0;z-index:59;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;animation:hbxFade .18s ease}
@keyframes hbxFade{from{opacity:0}to{opacity:1}}
.hbx-card{--hbk:#1d1d1f;--hbk2:#29292b;--hbiv:#ece3d3;width:282px;height:438px;border-radius:26px;background:var(--hbk);color:#f2f0ec;position:relative;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);animation:hbxIn .26s cubic-bezier(.2,.9,.3,1.15)}
@keyframes hbxIn{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
.hbx-top{position:absolute;left:0;right:0;top:0;height:300px;background:var(--hbk2);border-radius:0 0 50% 50%/0 0 46px 46px;display:flex;flex-direction:column;align-items:center;padding:56px 26px 0;text-align:center;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.hbx-av{width:48px!important;height:48px!important;border-radius:50%!important;background:#3a3a3c;margin-bottom:12px}
.hbx-who{font-size:13.5px;color:rgba(255,255,255,.72);letter-spacing:.3px}
.hbx-note{font-size:20px;color:#fff;margin-top:18px;line-height:1.45;font-weight:400;max-width:230px;word-break:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hbx-x{position:absolute;left:14px;top:14px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;color:rgba(255,255,255,.6)}
.hbx-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.hbx-open{position:absolute;left:50%;top:300px;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;background:var(--hbiv);color:#1d1d1f;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:500;cursor:pointer;box-shadow:0 0 0 7px rgba(236,227,211,.10),0 6px 16px rgba(0,0,0,.3);z-index:2;transition:transform .12s;perspective:400px}
.hbx-open:active{transform:scale(.95)}
.hbx-pop.ing .hbx-open{animation:hbxFlip .8s cubic-bezier(.45,0,.4,1) forwards}
@keyframes hbxFlip{0%{transform:rotateY(0)}70%{transform:rotateY(540deg)}100%{transform:rotateY(720deg) scale(1.04)}}
.hbx-pop.ing .hbx-open span{opacity:.0;transition:opacity .2s}
.hbx-pop.ing .hbx-card{animation:hbxOut .3s .55s ease forwards}
@keyframes hbxOut{to{opacity:0;transform:scale(1.04)}}
.phone.night .hbx-card{--hbk:#232325;--hbk2:#2e2e30;box-shadow:0 0 0 .5px rgba(255,255,255,.08),0 24px 60px rgba(0,0,0,.5)}

/* 红包详情页 */
.hbpg{position:absolute;inset:0;z-index:60;background:var(--wxcell);color:var(--wxtx);display:flex;flex-direction:column;overflow-y:auto;animation:tfpgIn .22s ease}
.hbp-band{position:relative;flex:none;height:calc(env(safe-area-inset-top) + var(--sbh,46px) + 74px);background:#1d1d1f;border-radius:0 0 50% 50%/0 0 34px 34px;padding:calc(env(safe-area-inset-top) + var(--sbh,46px)) 12px 0}
.phone.night .hbp-band{background:#26262a}
.hbp-bk{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid rgba(255,255,255,.18);color:#fff}
.hbp-bk svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hbp-body{flex:1;display:flex;flex-direction:column}
.hbp-top{display:flex;flex-direction:column;align-items:center;text-align:center;padding:34px 30px 30px}
.hbp-from{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:500;max-width:100%}
.hbp-from span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbp-fav{width:26px!important;height:26px!important;border-radius:50%!important}
.hbp-note{font-size:14px;color:var(--wxsub);margin-top:10px;max-width:290px;line-height:1.5;word-break:break-word}
.hbp-amt{margin-top:26px;display:flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums}
.hbp-amt b{font-size:46px;font-weight:600;letter-spacing:-.5px;line-height:1.1}
.hbp-amt small{font-size:15px;color:var(--wxtx)}
.hbp-st{margin-top:28px;font-size:16px;color:var(--wxsub);letter-spacing:.5px}
.hbp-ex{font-size:13px;color:var(--wxsub);margin-top:12px}
.hbp-ex a{color:var(--wxtx);margin-left:10px;cursor:pointer;border-bottom:1px solid var(--wxline);padding-bottom:1px}
.hbp-ls{border-top:8px solid var(--wxbg)}
.hbp-lh{font-size:12.5px;color:var(--wxsub);padding:12px 18px 8px;border-bottom:.5px solid var(--wxline)}
.hbp-r{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:.5px solid var(--wxline)}
.hbp-rav{width:40px!important;height:40px!important;border-radius:50%!important}
.hbp-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hbp-rt b{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbp-rt small{font-size:12px;color:var(--wxsub);font-variant-numeric:tabular-nums}
.hbp-r em{font-style:normal;font-size:15px;text-align:right;font-variant-numeric:tabular-nums}

/* 聊天里的领取 / 过期提示：前面一个细线红包图标 */
#chatWin .wsys.wsys-hb{display:flex;align-items:center;justify-content:center;gap:4px}
.wsys-hb .hbsi{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
