/* 添加到桌面：弹层 + 侧栏按钮 + 右下角提示 + Toast 盖过弹层 */
.toast{
  z-index:10050;
  max-width:calc(100% - 32px);
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 右下角「加到桌面」提示条（样式对齐购买动态） */
.a2hs-float{
  position:fixed;
  right:max(8px,env(safe-area-inset-right,0px));
  bottom:max(14px,calc(10px + env(safe-area-inset-bottom,0px)));
  left:auto;
  top:auto;
  z-index:56;
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:auto;
  max-width:min(200px,72vw);
  padding:5px 8px 5px 5px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:linear-gradient(180deg,#ff7a97 0%,#ff456f 58%,#f52f62 100%);
  box-shadow:0 10px 22px rgba(239,48,94,.30),inset 0 1px 0 rgba(255,255,255,.35);
  color:#fff;
  pointer-events:auto;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
  text-align:left;
  font:inherit;
  transform:translateY(110%);
  opacity:0;
  transition:transform .22s cubic-bezier(.22,.9,.32,1),opacity .18s ease,bottom .2s ease;
}
.a2hs-float.show{transform:translateY(0);opacity:1}
.a2hs-float.show:active{transform:translateY(0) scale(.98)}
.a2hs-float[hidden]{display:none!important}
.a2hs-float-avatar{
  width:32px;height:32px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  border:1.5px solid rgba(255,255,255,.92);background:#ff7a9a;
}
.a2hs-float-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.a2hs-float-copy{min-width:0;line-height:1.2;flex:0 1 auto}
.a2hs-float-sub{display:block;font-size:10px;opacity:.78;white-space:nowrap}
.a2hs-float-msg{display:block;font-size:12px;font-weight:700;white-space:nowrap}
.a2hs-float-close{
  flex:0 0 auto;width:20px;height:20px;margin-left:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.22);color:#fff;font-size:14px;line-height:1;
  display:grid;place-items:center;cursor:pointer;padding:0;
}
body[data-zyhx-page="result"] .a2hs-float,
body[data-zyhx-page="index"] .a2hs-float{
  bottom:calc(88px + env(safe-area-inset-bottom,0px));
}

.zyhx-a2hs-side{
  position:fixed;
  top:10px;
  right:max(2px,calc(50% - 242px));
  z-index:40;
  display:grid;
  gap:6px;
  pointer-events:auto;
}
/* 支付页顶栏有「安全支付」，侧栏下移避免重叠 */
body[data-zyhx-page="result"] .zyhx-a2hs-side{top:58px}
.zyhx-a2hs-side .side-action,
.side-actions .side-action.a2hs-side-btn,
.report-side-actions .side-action.a2hs-side-btn{
  width:38px;
  padding:5px 1px 4px;
  border:0;
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,236,240,.92));
  box-shadow:0 6px 12px rgba(255,70,108,.14),inset 0 1px 0 rgba(255,255,255,.95);
  color:#c24d6a;
  font-size:8px;
  font-weight:800;
  line-height:1.1;
  text-align:center;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.zyhx-a2hs-side .side-action:active,
.side-actions .side-action.a2hs-side-btn:active,
.report-side-actions .side-action.a2hs-side-btn:active{transform:scale(.96)}
.zyhx-a2hs-side .side-ico,
.a2hs-side-btn .side-ico{
  display:flex;
  width:17px;
  height:17px;
  margin:0 auto 2px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(180deg,#ff8aa8,#ff5b84);
  color:#fff;
  box-shadow:0 3px 8px rgba(255,91,132,.24);
}
.zyhx-a2hs-side .side-ico svg,
.a2hs-side-btn .side-ico svg{width:9px;height:9px;display:block}
@media(max-width:375px){
  .zyhx-a2hs-side{top:8px;right:2px;gap:5px}
  .zyhx-a2hs-side .side-action,
  .side-actions .side-action.a2hs-side-btn,
  .report-side-actions .side-action.a2hs-side-btn{
    width:34px;font-size:7px;padding:4px 1px 3px;border-radius:9px
  }
  .zyhx-a2hs-side .side-ico,
  .a2hs-side-btn .side-ico{width:15px;height:15px;margin-bottom:2px}
  .zyhx-a2hs-side .side-ico svg,
  .a2hs-side-btn .side-ico svg{width:8px;height:8px}
}

.a2hs-overlay{
  position:fixed;inset:0;z-index:10020;display:flex;align-items:flex-end;justify-content:center;
  padding:14px;background:rgba(54,29,27,.52);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease;
}
.a2hs-overlay.show{opacity:1;visibility:visible;pointer-events:auto}
.a2hs-sheet{
  width:min(430px,100%);max-height:min(86dvh,680px);overflow:auto;position:relative;
  padding:14px 18px calc(18px + env(safe-area-inset-bottom));border-radius:26px 26px 20px 20px;
  background:linear-gradient(180deg,rgba(255,253,251,.99) 0%,rgba(255,244,241,.99) 100%);
  border:1px solid rgba(255,255,255,.98);box-shadow:0 -12px 40px rgba(92,39,38,.24),inset 0 1px 0 #fff;
  transform:translateY(28px);transition:transform .26s cubic-bezier(.2,.8,.2,1);
}
.a2hs-overlay.show .a2hs-sheet{transform:translateY(0)}
.a2hs-handle{width:42px;height:5px;border-radius:999px;background:#ead2ce;margin:0 auto 12px}
.a2hs-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:#f8e9e6;color:#9a6a62;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer}
.a2hs-hero{display:flex;align-items:center;gap:12px;margin:2px 0 14px}
.a2hs-hero img{width:56px;height:56px;border-radius:14px;box-shadow:0 8px 18px rgba(255,77,122,.22);object-fit:cover;background:#ff7a9a}
.a2hs-hero-copy h3{margin:0 0 4px;color:#612d28;font-size:20px;font-weight:900;line-height:1.25}
.a2hs-hero-copy p{margin:0;color:#9b766f;font-size:13px;line-height:1.5;font-weight:600}
.a2hs-steps{display:grid;gap:10px;margin:0 0 14px}
.a2hs-step{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding:12px;border-radius:14px;background:rgba(255,255,255,.82);border:1px solid rgba(244,210,203,.9)}
.a2hs-step b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ff8aaa,#ff5b84);color:#fff;font-size:13px;font-weight:900}
.a2hs-step p{margin:0;color:#7a4d46;font-size:14px;line-height:1.55;font-weight:700}
.a2hs-step p em{font-style:normal;color:#e53f6d;font-weight:900}
.a2hs-sheet-tip{margin:0 0 14px;padding:11px 13px;border-radius:13px;background:#fff6ef;border:1px dashed #f0d2c8;color:#9a6f66;font-size:12px;line-height:1.6;font-weight:600}
.a2hs-feedback{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fff0f3;border:1px solid #ffd0db;color:#c24d6a;font-size:13px;line-height:1.55;font-weight:700}
.a2hs-feedback[hidden]{display:none!important}
.a2hs-actions{display:grid;gap:10px}
.a2hs-primary,.a2hs-secondary{
  width:100%;border:0;border-radius:999px;padding:14px 16px;font-size:16px;font-weight:900;cursor:pointer;
}
.a2hs-primary{color:#fff;background:linear-gradient(180deg,#ff7897,#ff456f 56%,#f52f62);box-shadow:0 10px 20px rgba(239,48,94,.24)}
.a2hs-secondary{color:#8a5a52;background:#fff7f4;border:1px solid #f0d5ce}
.a2hs-primary[hidden],.a2hs-secondary[hidden],.a2hs-panel[hidden]{display:none!important}
@media(min-width:700px){.a2hs-overlay{align-items:center}.a2hs-sheet{border-radius:26px}}
