.login_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login_overlay.active {
    display: flex;
}

.login_box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    padding: 30px 24px 24px;
    position: relative;
    text-align: center;
}

.login_close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.login_close:hover {
    color: #333;
}

.login_title {
    font-size: 18px;
    font-weight: 600;
    color: #1a56db;
    margin-bottom: 20px;
}

.login_body p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

.login_body .login_code {
    font-size: 24px;
    font-weight: 700;
    color: #e53e3e;
    letter-spacing: 4px;
    margin: 10px 0;
}

.login_body img.login_qr {
    width: 200px;
    margin: 15px auto;
    display: block;
}

.login_status {
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
}

/* ==================== 会员弹窗 ==================== */
.member_overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.member_box {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  width: 92%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.member_close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
}
.member_close:hover { color: #2d3748; }
.member_title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.member_hint { color: #718096; font-size: 14px; margin-bottom: 14px; text-align: center; }
.member_hint_success { color: #48bb78; font-size: 15px; margin-top: 4px; margin-bottom: 0; font-weight: 600; }
.member_status_info { text-align: center; padding: 4px 0 12px; }
.member_status_text { color: #2d3748; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.member_status_days { color: #718096; font-size: 13px; }
.member_step { display: none; }
.member_step.active { display: block; }
.member_plans { display: flex; flex-direction: column; gap: 10px; }
.member_plan_btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.member_plan_btn:hover {
  border-color: #667eea;
  background: #f8faff;
  transform: translateX(2px);
}
.member_plan_name { font-size: 15px; color: #2d3748; font-weight: 600; }
.member_plan_price {
  font-size: 18px;
  color: #ed8936;
  font-weight: 700;
}
.member_info { color: #4a5568; font-size: 14px; text-align: center; margin-bottom: 8px; }
.member_qrcode {
  width: 200px;
  height: 200px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.member_qrcode canvas, .member_qrcode img { display: block; }
.member_qrcode img { margin: 0 auto; max-width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
.member_status { text-align: center; color: #718096; font-size: 13px; margin-top: 8px; }
.member_info_tip { color: #718096; font-size: 13px; margin-top: 4px; }
.member_btn_pay {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px auto 12px;
  background: linear-gradient(135deg, #00a3f6 0%, #0083d0 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.member_btn_pay:active { opacity: 0.85; }

/* 非会员下载提示弹窗：双按钮并排 */
.member_btn_row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.member_btn_row .member_btn {
  flex: 1;
  margin-top: 0;
}
.member_btn_secondary {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  color: #4a5568;
  border: 1px solid #cbd5e0;
}
.member_btn_secondary:active { opacity: 0.85; }
.member_btn_primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.member_btn_primary:active { opacity: 0.85; }
.member_status_success {
  text-align: center;
  color: #48bb78;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 0;
}
.member_btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}
.member_btn_success { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
