/* ============================================================
   打赏回馈 · 前端插件样式
   ============================================================ */

/* ---------- 打赏按钮(默认样式, 可自行覆盖) ---------- */
.donate-btn {
  display: inline-block;
  padding: 10px 26px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(7, 193, 96, .35);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  line-height: 1.4;
}
.donate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(7, 193, 96, .45); }
.donate-btn:active { transform: translateY(0); }

/* ---------- 遮罩 ---------- */
.donate-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
}
.donate-mask.show { display: flex; }

/* ---------- 弹窗 ---------- */
.donate-modal {
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  animation: donatePop .18s ease;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
@keyframes donatePop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.donate-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.donate-modal-head .title { font-size: 16px; font-weight: 600; color: #333; }
.donate-close {
  border: none;
  background: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.donate-close:hover { color: #333; }
.donate-modal-body { padding: 20px 18px 24px; }

/* ---------- 步骤1: 填写信息 ---------- */
.donate-field { margin-bottom: 16px; }
.donate-field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.donate-field input[type="text"] {
  width: 100%;
  height: 38px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.donate-field input[type="text"]:focus { border-color: #07c160; }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.donate-amt {
  flex: 1;
  min-width: 72px;
  height: 36px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}
.donate-amt.active { border-color: #07c160; color: #07c160; background: #f0fbf5; font-weight: 600; }
.donate-amt-custom { width: 100%; margin-top: 8px; }
.donate-submit {
  width: 100%;
  height: 42px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 18px;
}
.donate-submit:hover { background: #06ad56; }
.donate-submit[disabled] { background: #c8c9cc; cursor: not-allowed; }
.donate-err { color: #e64340; font-size: 13px; text-align: center; margin-top: 10px; min-height: 18px; }

/* ---------- 步骤2: 收款码 ---------- */
.donate-qr-box { text-align: center; }
.donate-qr-img {
  width: 200px;
  height: 200px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 6px auto 12px;
  display: block;
}
.donate-qr-tip { font-size: 14px; color: #333; margin-bottom: 10px; }
.donate-order {
  display: inline-block;
  background: #f7f7f7;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
  user-select: all;
  cursor: copy;
}
.donate-order b { color: #07c160; }
.donate-amount-big { font-size: 22px; font-weight: 700; color: #e64340; margin: 4px 0 2px; }
.donate-status-line { margin-top: 14px; font-size: 13px; color: #999; min-height: 18px; }
.donate-status-line.done { color: #07c160; }
.donate-hint { margin-top: 8px; font-size: 12px; color: #bbb; }
.donate-back { border: none; background: none; color: #999; font-size: 13px; cursor: pointer; margin-top: 8px; }
.donate-back:hover { color: #333; }
