/* 兑换会员页（/redeem.html）专属样式 —— 排版语言与首页一致：白底、墨色标题、主蓝按钮、大留白 */
.rd-nav .subnav-link { padding: 7px 10px; font-size: 12.5px; }
.rd-uid { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.rd-notice {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  max-width: 1200px; margin: 18px auto 0; padding: 10px 40px 10px 16px;
  position: relative; border: 1px solid #f4e3ae; border-radius: 10px;
  background: #fff8e1; color: #7a5b13; font-size: 12.5px;
}
.rd-notice a { color: #a06a08; font-weight: 700; margin-left: 4px; }
.rd-notice a:hover { text-decoration: underline; }
.rd-notice-ico { font-size: 14px; }
.rd-notice > button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #a08a52; font-size: 18px; cursor: pointer; line-height: 1;
}
.rd-notice[hidden] { display: none; }

.rd-main { padding: 92px 0 110px; }
.rd-wrap { max-width: 1080px; display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: center; }
.rd-copy .m-kicker { color: #2f5cff; }
.rd-copy h1 {
  font-size: clamp(38px, 4.4vw, 58px); font-weight: 800; line-height: 1.28;
  letter-spacing: -.035em; color: #20252c; margin: 20px 0 22px;
}
.rd-copy h1 em { color: #2f5cff; }
.rd-copy > p { font-size: 14px; line-height: 1.95; color: #6b7280; max-width: 420px; margin: 0; }
.rd-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.rd-perks li { position: relative; padding-left: 24px; font-size: 13px; color: #4b5563; }
.rd-perks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: #2f5cff; font-weight: 800; font-size: 13px;
}

.rd-card {
  background: #fff; border: 1px solid #e8eaf0; border-radius: 20px;
  padding: 34px 32px 26px; box-shadow: 0 20px 56px rgba(24, 32, 72, .09);
}
.rd-card-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #eef1ff; color: #2f5cff; margin-bottom: 20px;
}
.rd-card h2 { font-size: 20px; font-weight: 800; color: #20252c; letter-spacing: -.02em; }
.rd-card-sub { font-size: 12px; color: #9aa3b2; margin: 8px 0 26px; line-height: 1.7; }
.rd-label { display: block; font-size: 12px; font-weight: 700; color: #4b5563; margin-bottom: 8px; }
.rd-input {
  width: 100%; box-sizing: border-box; padding: 13px 14px;
  border: 1px solid #dfe3ee; border-radius: 9px; background: #fff;
  font: inherit; font-size: 14px; color: #20252c; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.rd-input::placeholder { color: #b3bac8; }
.rd-input:focus { border-color: #2f5cff; box-shadow: 0 0 0 3px rgba(47, 92, 255, .12); }
.rd-hint { font-size: 11px; color: #a8afbd; margin: 8px 0 18px; }
.rd-submit {
  width: 100%; padding: 13px 18px; border: 0; border-radius: 9px;
  background: #2f5cff; color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 20px rgba(47, 92, 255, .22);
  transition: transform .16s ease, background .16s ease;
}
.rd-submit:hover:not(:disabled) { background: #2450ef; transform: translateY(-1px); }
.rd-submit:disabled { opacity: .6; cursor: wait; }
.rd-msg { min-height: 18px; margin: 10px 0 0; font-size: 12px; line-height: 1.6; }
.rd-msg.ok { color: #0a8a5b; }
.rd-msg.err { color: #d64545; }

.rd-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #f6f7fc; }
.rd-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #7b8494; }
.rd-status-row b { color: #20252c; font-weight: 700; }
.rd-status-row.sub { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e7eaf3; flex-wrap: wrap; }
/* ④-dw 三项余额常显：文字变长，缩小字号并允许换行 */
.rd-status-row b#rdCredits { font-size: 11.5px; line-height: 1.6; text-align: right; }
.rd-foot-link { display: block; text-align: center; margin-top: 20px; font-size: 12px; color: #8a94a6; }
.rd-foot-link:hover { color: #2f5cff; }

@media (max-width: 900px) {
  .rd-main { padding: 56px 0 72px; }
  .rd-wrap { grid-template-columns: 1fr; gap: 40px; }
  .rd-copy h1 { font-size: 38px; }
  .rd-notice { margin-left: 24px; margin-right: 24px; font-size: 11.5px; text-align: center; }
  .rd-nav { display: none; }
}
@media (max-width: 480px) {
  .rd-card { padding: 26px 20px 22px; }
  .rd-notice { padding-right: 34px; }
}

/* ---------- 未登录兑换：微信登录二维码弹窗 ---------- */
.rd-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.rd-modal[hidden] { display: none !important; }
.rd-modal-mask { position: absolute; inset: 0; background: rgba(18, 22, 40, .5); backdrop-filter: blur(2px); }
.rd-modal-card {
  position: relative; z-index: 1; box-sizing: border-box;
  width: min(390px, calc(100vw - 32px)); padding: 26px 26px 20px;
  background: #fff; border-radius: 16px; text-align: center;
  box-shadow: 0 24px 64px rgba(18, 22, 40, .24);
}
.rd-modal-x {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 7px; background: transparent; color: #9aa3b2;
  font-size: 21px; line-height: 1; cursor: pointer;
}
.rd-modal-x:hover { background: #fef2f2; color: #ef4444; }
.rd-modal-kicker { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: #2f5cff; }
.rd-modal-card h3 { margin: 8px 0; font-size: 20px; font-weight: 800; color: #20252c; }
.rd-modal-sub { margin: 0 0 16px; font-size: 12px; line-height: 1.8; color: #7b8494; }
.rd-qr-box {
  width: 210px; height: 210px; margin: 0 auto; box-sizing: border-box;
  display: grid; place-items: center; gap: 8px; align-content: center;
  border: 1px solid #e8eaf0; border-radius: 12px; background: #fafbff; overflow: hidden;
}
.rd-qr-box img { width: 200px; height: 200px; object-fit: contain; }
.rd-qr-loading { font-size: 12px; line-height: 1.7; color: #9aa3b2; padding: 0 10px; }
.rd-qr-retry {
  border: 0; border-radius: 7px; padding: 6px 14px; cursor: pointer;
  background: #2f5cff; color: #fff; font: inherit; font-size: 11px; font-weight: 700;
}
.rd-qr-tip { margin: 12px 0 0; font-size: 11.5px; color: #7b8494; }
.rd-qr-err { margin: 6px 0 0; min-height: 16px; font-size: 11.5px; color: #d64545; }
.rd-modal-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
@media (max-width: 480px) {
  .rd-modal-card { padding: 22px 18px 16px; }
  .rd-qr-box { width: 190px; height: 190px; }
  .rd-qr-box img { width: 180px; height: 180px; }
}
