/* BDC会员中心 样式（移动端优先） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #1D2129; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #f5f6f8; }

/* 顶部导航 */
.topbar {
  background: #fff; padding: 12px 16px; display: flex; align-items: center;
  border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10;
}
.topbar img { height: 30px; }
.topbar .title { margin-left: 10px; font-size: 15px; font-weight: 600; color: #333; }

/* 头图 */
.hero {
  background: linear-gradient(135deg, #005BAC 0%, #1B6FD0 100%);
  color: #fff; padding: 32px 20px 56px; text-align: center;
}
.hero h1 { font-size: 24px; margin-bottom: 8px; letter-spacing: 1px; }
.hero p { font-size: 14px; opacity: .9; }

.content { padding: 0 16px 32px; margin-top: -36px; }

/* 卡片通用 */
.card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06); margin-bottom: 16px;
}
.card h2 { font-size: 17px; margin-bottom: 14px; color: #1D2129; }

/* 会员权益点 */
.perks { list-style: none; }
.perks li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; color: #444; }
.perks li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px; background: #005BAC; color: #fff;
  border-radius: 50%; font-size: 11px; text-align: center; line-height: 18px;
}

/* 主按钮 */
.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: #005BAC; color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: center;
}
.btn:active { opacity: .85; }
.btn[disabled] { background: #b8c4d0; cursor: not-allowed; }
a.btn.btn-disabled { background: #b8c4d0; cursor: not-allowed; pointer-events: none; }
.btn-wechat { background: #07C160; }
.btn-ghost { background: #fff; color: #005BAC; border: 1px solid #005BAC; }

/* 协议勾选行 */
.agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; font-size: 13px; color: #666; line-height: 1.6; }
.agree-row input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: #005BAC; }
.agree-row a { color: #005BAC; text-decoration: none; }
.agree-row a:active { text-decoration: underline; }

/* 表单 */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-item label .req { color: #C7000B; margin-right: 2px; }
.form-item input {
  width: 100%; padding: 12px 14px; border: 1px solid #dcdfe6; border-radius: 8px;
  font-size: 15px; outline: none; background: #fff;
}
.form-item input:focus { border-color: #005BAC; }
.form-item .tip { font-size: 12px; color: #999; margin-top: 4px; }
.form-item .err { font-size: 12px; color: #C7000B; margin-top: 4px; display: none; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-btn {
  white-space: nowrap; padding: 0 16px; border: 1px solid #005BAC; background: #fff;
  color: #005BAC; border-radius: 8px; font-size: 14px; cursor: pointer; min-width: 118px;
}
.code-btn[disabled] { color: #999; border-color: #dcdfe6; cursor: not-allowed; }
.captcha-img {
  width: 118px; height: 46px; border: 1px solid #dcdfe6; border-radius: 8px;
  cursor: pointer; background: #fff; flex-shrink: 0; object-fit: contain;
}

/* 会员等级升级 */
.upgrade-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border: 1px solid #ebeef5; border-radius: 10px; margin-bottom: 12px;
  background: #fff; position: relative; overflow: visible;
}
.upgrade-item.limited { border: 2px solid #f0b429; }
.upgrade-item .limited-badge {
  position: absolute; top: -9px; right: 14px;
  background: linear-gradient(135deg, #ff6b6b, #f0b429);
  color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px;
  border-radius: 10px; letter-spacing: 1px; box-shadow: 0 2px 6px rgba(240,180,41,.35);
}
.upgrade-item .ui-info { flex: 1; min-width: 0; }
.upgrade-item .ui-name { font-size: 16px; font-weight: 700; color: #1D2129; margin-bottom: 4px; }
.upgrade-item .ui-desc { font-size: 12px; color: #86909C; line-height: 1.5; }
.upgrade-item .ui-price { text-align: right; margin-left: 12px; flex-shrink: 0; }
.upgrade-item .price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.upgrade-item .price-now { font-size: 22px; font-weight: 800; color: #07C160; }
.upgrade-item .price-now small { font-size: 12px; font-weight: 400; color: #86909C; }
.upgrade-item .price-origin { font-size: 14px; color: #C9CDD4; text-decoration: line-through; }
.upgrade-item .price-save {
  display: inline-block; background: #fff2f0; color: #f5222d; font-size: 11px;
  font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-top: 4px;
}
.upgrade-btn {
  display: inline-block; margin-top: 8px; padding: 6px 16px; background: #07C160; color: #fff;
  border-radius: 16px; font-size: 13px; font-weight: 600; border: none; cursor: pointer;
}
.upgrade-btn:active { opacity: .8; }

.wx-user { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wx-user img { width: 48px; height: 48px; border-radius: 50%; background: #eee; }
.wx-user .nick { font-size: 14px; color: #666; }
.wx-user .nick b { color: #1D2129; font-size: 15px; }

.form-alert {
  display: none; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px;
}
.form-alert.show { display: block; }
.form-alert.error { background: #fef0f0; color: #C7000B; border: 1px solid #fbc4c4; }

/* 会员卡 */
.member-card {
  background: linear-gradient(135deg, #1A2A4F 0%, #005BAC 100%);
  color: #fff; border-radius: 14px; padding: 22px 20px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.member-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mc-brand { font-size: 13px; opacity: .85; letter-spacing: 2px; }
.mc-level {
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  padding: 3px 12px; border-radius: 20px; font-size: 12px;
}
.mc-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.mc-no { font-size: 13px; opacity: .85; letter-spacing: 1px; margin-bottom: 16px; }
.mc-info { font-size: 13px; opacity: .92; line-height: 2; }
.mc-actions { margin-top: 16px; display: flex; gap: 10px; position: relative; z-index: 1; }
.mc-actions a, .mc-actions button {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; font-size: 14px;
  background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer;
}

.info-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: #888; }
.info-row .v { color: #1D2129; font-weight: 500; }

.contact-box {
  background: #FFF9F0; border-left: 4px solid #C7000B; border-radius: 8px;
  padding: 14px 16px; font-size: 14px; color: #333;
}
.contact-box b { color: #C7000B; }

/* 非微信引导页 */
.guide { text-align: center; padding: 40px 20px; }
.guide .wx-icon { font-size: 56px; margin-bottom: 16px; }
.guide h2 { font-size: 19px; margin-bottom: 10px; }
.guide p { color: #666; font-size: 14px; margin-bottom: 20px; }
.qr-img {
  display: block; width: 180px; height: 180px; margin: 0 auto 16px;
  border-radius: 12px; border: 1px solid #e5e6eb; background: #fff;
}
.guide-steps {
  text-align: left; background: #fff; border-radius: 12px; padding: 18px 20px; margin: 20px 0;
  font-size: 14px; color: #444;
}
.guide-steps div { padding: 6px 0; }
.guide-steps b { color: #005BAC; }

/* 加载中 */
.loading { text-align: center; padding: 80px 20px; color: #999; font-size: 14px; }
.loading .spin {
  display: inline-block; width: 28px; height: 28px; margin-bottom: 12px;
  border: 3px solid #e0e6ed; border-top-color: #005BAC; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 页脚 */
footer {
  background: #1D2129; color: #999; text-align: center;
  padding: 18px 16px; font-size: 12px; line-height: 1.8;
}
footer p { margin: 0; }
