/* hdToast 的兜底浮层样式（layer 不可用时才出现） */
.hd-toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  max-width: 80vw; padding: .28rem .44rem;
  background: rgba(0, 0, 0, .82); color: #fff;
  font-size: .26rem; line-height: 1.6; text-align: center;
  border-radius: .12rem; z-index: 999999;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; word-break: break-all;
}
.hd-toast.is-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== hdDialog：跟随站点黑金皮肤的消息对话框 =====
   替代 layer.alert 的默认白皮肤——白底蓝按钮跟黑金站点完全不搭。
   配色取自查询弹层：面板 #341213、描边金 #f0cc4c、标题金 #fee563、正文米金。 */
.hd-dlg {
  position: fixed; inset: 0; z-index: 999998;
  display: flex; align-items: center; justify-content: center;
  padding: .4rem; background: rgba(0, 0, 0, .72);
  opacity: 0; transition: opacity .18s ease;
}
.hd-dlg.is-show { opacity: 1; }
.hd-dlg-panel {
  width: 5.6rem; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column;
  background: #341213;
  border: .02rem solid #f0cc4c; border-radius: .16rem;
  padding: .4rem .4rem .44rem; position: relative;
  box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .55);
  transform: translateY(.2rem) scale(.97); transition: transform .18s ease;
}
.hd-dlg.is-show .hd-dlg-panel { transform: none; }
.hd-dlg-title {
  text-align: center; color: #fee563; font-size: .3rem; line-height: 1.4;
  padding-bottom: .18rem; margin-bottom: .22rem;
  background: url(/assets/addons/active/images/xian.png) no-repeat center bottom;
  background-size: 3.2rem;
}
.hd-dlg-body {
  color: #f5ead1; font-size: .24rem; line-height: 1.8;
  overflow-y: auto; word-break: break-all; text-align: center;
  white-space: pre-wrap; /* 审核回复里的换行原样呈现 */
}
.hd-dlg-foot { text-align: center; margin-top: .36rem; flex: none; }
.hd-dlg-ok {
  display: inline-block; min-width: 2rem; padding: .13rem .3rem;
  border: none; border-radius: .4rem; cursor: pointer;
  background: linear-gradient(180deg, #ffe8a0, #f0cc4c);
  color: #5a2c00; font-size: .24rem; font-weight: 700;
}
.hd-dlg-ok:active { transform: translateY(.02rem); }
.hd-dlg-ok:focus-visible, .hd-dlg-close:focus-visible { outline: .02rem solid #fee563; outline-offset: .03rem; }
/* 关闭钮复用查询弹层同款金色圆钮图 */
.hd-dlg-close {
  position: absolute; right: -.15rem; top: -.15rem;
  width: .49rem; height: .49rem; border: none; padding: 0; cursor: pointer;
  background: url(/assets/addons/active/images/close.png) no-repeat center;
  background-size: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .hd-dlg, .hd-dlg-panel, .hd-toast { transition: none; }
}
