/* =============================================================================
   v143.css · b59 关注门禁 / 绑定成功回执 / 取关提示条
   浅色主题，主色沿用平台深青 #125c6e；移动端优先（公众号内 390px 宽）。
   ========================================================================== */

/* ---------- 遮罩层 ---------- */
.wx59-mask {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(9, 26, 38, .58);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  animation: wx59-fade .18s ease-out;
}
@keyframes wx59-fade { from { opacity: 0 } to { opacity: 1 } }
html.wx59-lock, html.wx59-lock body { overflow: hidden; }

.wx59-sheet {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(6, 24, 36, .34);
  color: #17324a; font-size: 14px; line-height: 1.62;
  animation: wx59-up .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes wx59-up { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.wx59-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #fff3e0; color: #b26a00; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; margin-bottom: 10px;
}
.wx59-sheet h2 { margin: 0 0 8px; font-size: 19px; color: #0d2b45; letter-spacing: .2px; }
.wx59-lead { margin: 0 0 14px; color: #4a6172; }
.wx59-lead b { color: #b3261e; }

.wx59-qr {
  width: 176px; height: 176px; margin: 4px auto 12px;
  border: 1px solid #dce8ec; border-radius: 12px; padding: 6px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wx59-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.wx59-qr-err { color: #8a9aa6; font-size: 12px; text-align: center; line-height: 1.6; border-style: dashed; }

.wx59-steps { margin: 0 0 14px; padding-left: 20px; color: #4a6172; }
.wx59-steps li { margin: 3px 0; }

.wx59-pc {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #eef6f8; color: #25566a; font-size: 13px;
}

.wx59-phone {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
  background: #f5f8fa; color: #3d5566; font-size: 13px;
}
.wx59-phone code { color: #0d2b45; font-weight: 700; letter-spacing: .5px; }

.wx59-btn {
  display: block; width: 100%; margin-top: 9px; padding: 12px 14px;
  border: 1px solid #d3e0e6; border-radius: 11px; background: #fff;
  color: #25566a; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.wx59-btn:hover { background: #f4f9fa; border-color: #b7cdd6; }
.wx59-btn:active { transform: scale(.99); }
.wx59-primary { background: #125c6e; border-color: #125c6e; color: #fff; }
.wx59-primary:hover { background: #0f5060; border-color: #0f5060; }
.wx59-hint { margin: 10px 0 0; text-align: center; color: #8a9aa6; font-size: 12px; }

/* ---------- 绑定成功回执 ---------- */
.wx59-bound {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 10001; width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 18px; padding: 24px 22px 18px;
  box-shadow: 0 24px 64px rgba(6, 24, 36, .32);
  text-align: center; color: #17324a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  animation: wx59-pop .26s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes wx59-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.94) } to { opacity: 1; transform: translate(-50%, -50%) scale(1) } }
.wx59-out { animation: wx59-hide .3s ease-in forwards; }
@keyframes wx59-hide { to { opacity: 0; transform: translate(-50%, -54%) scale(.97) } }

.wx59-bound-ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: #e8f7ef; color: #1f9d55; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31, 157, 85, .22);
}
.wx59-bound-ttl { font-size: 19px; font-weight: 800; color: #0d2b45; letter-spacing: .3px; }
.wx59-bound-sub { margin-top: 4px; color: #5b7387; font-size: 13px; }
.wx59-bound-lines {
  margin: 14px 0 12px; border: 1px solid #e6eef2; border-radius: 12px;
  overflow: hidden; font-size: 13px;
}
.wx59-bound-lines > div {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #f0f5f7; text-align: left;
}
.wx59-bound-lines > div:last-child { border-bottom: 0; }
.wx59-bound-lines span { color: #7d919e; }
.wx59-bound-lines b { color: #17324a; font-weight: 600; }
.wx59-bound-lines b.ok { color: #1f9d55; }
.wx59-bound-lines b.bad { color: #b3261e; }
.wx59-bound-tip { color: #5b7387; font-size: 12.5px; margin-bottom: 4px; }

/* ---------- 取关提示条 ---------- */
.wx59-unfollow {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: 10px; z-index: 10002;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px);
  background: #fff4e5; border: 1px solid #f3c98b; color: #8a5300;
  border-radius: 999px; padding: 8px 10px 8px 16px;
  font-size: 12.5px; line-height: 1.4;
  box-shadow: 0 8px 26px rgba(138, 83, 0, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.wx59-unfollow button {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 5px 12px;
  background: #b26a00; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ---------- 身份卡内的关注状态 ---------- */
.wx57-ok { color: #1f9d55 !important; }
.wx57-bad { color: #b3261e !important; }

@media (max-width: 420px) {
  .wx59-sheet { padding: 18px 16px 14px; border-radius: 16px; }
  .wx59-sheet h2 { font-size: 17px; }
  .wx59-qr { width: 156px; height: 156px; }
  .wx59-unfollow { top: 6px; font-size: 12px; }
}
