/* ============================================================
   泵购通 · B2B 会员中心专属样式  member.css
   配色：深蓝 #1E3A8A / 暗蓝 #172a63 / 琥珀金 #F59E0B
   ============================================================ */

:root {
  --m-navy: #1E3A8A;
  --m-navy-d: #172a63;
  --m-gold: #F59E0B;
  --m-ink: #1f2937;
  --m-gray: #6b7280;
  --m-line: #e5e7eb;
  --m-bg: #f4f6fb;
}

/* 头像：强制固定尺寸，避免被全局 img{height:auto} 撑大 */
.m-avatar,
img.m-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(17, 34, 84, .18);
  background: #e8edf7;
}
.m-avatar-lg {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  background: #e8edf7;
}

/* ---------- 会员中心页面底色 ---------- */
.member-wrap { background: var(--m-bg); }
.member-wrap .pages { padding-top: 14px; padding-bottom: 30px; }

/* ---------- 顶部欢迎卡片 ---------- */
.m-hero {
  position: relative;
  border-radius: 14px;
  padding: 26px 28px;
  color: #fff;
  background: linear-gradient(120deg, var(--m-navy-d) 0%, var(--m-navy) 55%, #2b54b8 100%);
  box-shadow: 0 10px 26px rgba(23, 42, 99, .25);
  overflow: hidden;
  margin-bottom: 22px;
}
.m-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .28), rgba(245, 158, 11, 0) 70%);
}
.m-hero .m-hero-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.m-hero .m-hi-name { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.m-hero .m-hi-company {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .12);
  padding: 4px 12px; border-radius: 20px;
}
.m-hero .m-hi-tags { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.m-hero .m-hero-right { margin-left: auto; display: flex; gap: 26px; position: relative; z-index: 2; }
.m-hero .m-stat { text-align: center; }
.m-hero .m-stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.m-hero .m-stat .num.gold { color: var(--m-gold); }
.m-hero .m-stat .lab { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 2px; }

/* ---------- 侧边菜单 ---------- */
.m-side .list-group-item {
  border: 1px solid var(--m-line);
  border-radius: 10px !important;
  margin-bottom: 8px;
  padding: 11px 16px;
  color: var(--m-ink);
  font-size: 14.5px;
  display: flex; align-items: center; gap: 10px;
  transition: all .15s;
  background: #fff;
}
.m-side .list-group-item i { width: 18px; text-align: center; color: var(--m-navy); }
.m-side .list-group-item:hover { background: #eef2fb; color: var(--m-navy); transform: translateX(2px); }
.m-side .list-group-item.active {
  background: var(--m-navy); color: #fff; border-color: var(--m-navy);
}
.m-side .list-group-item.active i { color: #fff; }
.m-side .list-group-item.text-danger { color: #dc2626; }
.m-side .list-group-item.text-danger i { color: #dc2626; }

/* ---------- 内容卡片 ---------- */
.m-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(23, 42, 99, .04);
}
.m-card-title {
  font-size: 16px; font-weight: 700; color: var(--m-navy);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--m-line);
}
.m-card-title i { color: var(--m-gold); }
.m-card-title .more { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--m-gray); }

/* 信息描述行 */
.m-info-row { display: flex; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--m-line); }
.m-info-row:last-child { border-bottom: 0; }
.m-info-row .k { width: 110px; color: var(--m-gray); flex-shrink: 0; }
.m-info-row .v { color: var(--m-ink); font-weight: 500; }

/* 快捷入口 */
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.m-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 10px; border-radius: 10px; background: #f7f9fd;
  border: 1px solid var(--m-line); color: var(--m-ink); font-size: 13.5px;
  transition: all .15s;
}
.m-quick a i { font-size: 24px; color: var(--m-navy); }
.m-quick a:hover { background: var(--m-navy); color: #fff; border-color: var(--m-navy); transform: translateY(-3px); }
.m-quick a:hover i { color: #fff; }

/* ---------- 询价单列表 ---------- */
.m-quote-item {
  border: 1px solid var(--m-line); border-radius: 10px; padding: 16px 18px;
  margin-bottom: 12px; background: #fff; transition: all .15s;
}
.m-quote-item:hover { box-shadow: 0 6px 18px rgba(23, 42, 99, .1); }
.m-quote-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.m-quote-no { font-weight: 700; color: var(--m-navy); font-size: 14.5px; }
.m-quote-meta { font-size: 12.5px; color: var(--m-gray); margin-top: 6px; }
.m-quote-meta span { margin-right: 16px; }
.m-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.m-badge.s0 { background: #fef3c7; color: #92400e; }
.m-badge.s1 { background: #dbeafe; color: #1e40af; }
.m-badge.s2 { background: #dcfce7; color: #166534; }
.m-badge.s3 { background: #f3f4f6; color: #6b7280; }

/* ---------- 积分商城 ---------- */
.m-gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-gift-card {
  border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: all .15s;
}
.m-gift-card:hover { box-shadow: 0 10px 24px rgba(23, 42, 99, .14); transform: translateY(-4px); }
.m-gift-img { height: 150px; background: #f2f5fb; display: flex; align-items: center; justify-content: center; }
.m-gift-img img { max-width: 70%; max-height: 80%; object-fit: contain; }
.m-gift-img .m-gift-ph { font-size: 40px; color: #c3cde4; }
.m-gift-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.m-gift-name { font-size: 14.5px; font-weight: 600; color: var(--m-ink); margin-bottom: 8px; min-height: 40px; }
.m-gift-score { color: #d97706; font-size: 17px; font-weight: 700; }
.m-gift-score small { font-size: 12px; color: var(--m-gray); font-weight: 400; }
.m-gift-btn { margin-top: 10px; background: var(--m-navy); color: #fff; border: 0; border-radius: 8px; padding: 8px; font-size: 14px; }
.m-gift-btn:hover { background: var(--m-navy-d); }
.m-gift-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* 积分明细 */
.m-log-row { display: flex; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--m-line); font-size: 14px; }
.m-log-row:last-child { border-bottom: 0; }
.m-log-val { font-weight: 700; min-width: 80px; }
.m-log-val.add { color: #16a34a; }
.m-log-val.minus { color: #dc2626; }
.m-log-remark { flex: 1; color: var(--m-ink); }
.m-log-time { color: var(--m-gray); font-size: 12.5px; }

/* ---------- 登录 / 注册卡片 ---------- */
.m-auth {
  max-width: 920px; margin: 26px auto;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(23, 42, 99, .14);
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.m-auth-banner {
  background: linear-gradient(150deg, var(--m-navy-d), var(--m-navy) 60%, #2b54b8);
  color: #fff; padding: 40px 34px; display: flex; flex-direction: column;
}
.m-auth-banner h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.m-auth-banner p { font-size: 13.5px; color: rgba(255, 255, 255, .85); line-height: 1.9; }
.m-auth-banner .m-auth-feats { margin-top: auto; }
.m-auth-banner .m-auth-feats li { font-size: 13.5px; margin-bottom: 10px; display: flex; gap: 8px; }
.m-auth-banner .m-auth-feats i { color: var(--m-gold); }
.m-auth-form { padding: 38px 36px; }
.m-auth-form .nav-tabs { border: 0; margin-bottom: 22px; }
.m-auth-form .nav-tabs .nav-link { border: 0; color: var(--m-gray); font-weight: 600; padding: 6px 4px; margin-right: 22px; }
.m-auth-form .nav-tabs .nav-link.active { color: var(--m-navy); border-bottom: 2px solid var(--m-navy); }
.m-auth-form .m-auth-title { margin-bottom: 20px; }
.m-auth-form .m-auth-title h4 { font-size: 19px; font-weight: 700; color: var(--m-navy); margin-bottom: 6px; }
.m-auth-form .m-auth-title p { font-size: 13px; color: var(--m-gray); margin: 0; }
.m-auth-form .form-text { font-size: 12px; color: var(--m-gray); }
.m-auth-form .form-label { font-size: 13.5px; color: var(--m-ink); font-weight: 600; }
.m-auth-form .form-control { padding: 11px 14px; border-radius: 8px; }
.m-btn-primary {
  background: var(--m-navy); border: 0; border-radius: 8px; padding: 12px;
  font-size: 15px; font-weight: 600; width: 100%; color: #fff;
}
.m-btn-primary:hover { background: var(--m-navy-d); }
.m-btn-gold { background: var(--m-gold); border: 0; border-radius: 8px; padding: 10px; color: #fff; font-weight: 600; }
.m-btn-gold:hover { background: #d97706; }

/* 微信扫码 */
.m-wx-login { text-align: center; padding: 10px 0; }
.m-wx-qr {
  width: 190px; height: 190px; margin: 8px auto 14px;
  border: 1px solid var(--m-line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: #f7f9fd; color: var(--m-gray);
}
.m-wx-qr i { font-size: 64px; color: #07c160; margin-bottom: 8px; }
.m-wx-qr .tip { font-size: 12.5px; }
.m-wx-login .wx-title { font-size: 15px; font-weight: 600; color: #07c160; }
.m-divider { display: flex; align-items: center; color: var(--m-gray); font-size: 12.5px; margin: 18px 0; }
.m-divider::before, .m-divider::after { content: ""; flex: 1; height: 1px; background: var(--m-line); }
.m-divider::before { margin-right: 12px; }
.m-divider::after { margin-left: 12px; }

/* 空状态 */
.m-empty { text-align: center; padding: 46px 20px; color: var(--m-gray); }
.m-empty i { font-size: 52px; color: #cdd6ea; margin-bottom: 14px; }
.m-empty p { font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .m-auth { grid-template-columns: 1fr; max-width: 480px; }
  .m-auth-banner { display: none; }
  .m-gift-grid { grid-template-columns: repeat(2, 1fr); }
  .m-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .m-hero { padding: 20px; }
  .m-avatar-lg { width: 64px; height: 64px; }
  .m-hero .m-hi-name { font-size: 18px; }
  .m-hero .m-hero-right { width: 100%; justify-content: space-around; gap: 10px; }
  .m-gift-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .m-card { padding: 16px; }
  .m-auth-form { padding: 26px 20px; }
  .m-info-row .k { width: 90px; }
}

/* ============ 客户类型选择 / 个人中心订单 ============ */
.m-type-row{ display:flex; gap:12px; flex-wrap:wrap; }
.m-type-item{ flex:1; min-width:220px; border:1px solid var(--m-line); border-radius:10px; padding:12px 14px; cursor:pointer; display:flex; align-items:flex-start; gap:8px; background:#fff; }
.m-type-item input{ margin-top:4px; }
.m-type-item span{ font-weight:700; color:var(--m-navy); font-size:14.5px; }
.m-type-item em{ display:block; font-style:normal; font-size:12.5px; color:var(--m-gray); margin-top:2px; }
.m-type-item:has(input:checked){ border-color:var(--m-navy); background:#f5f8ff; }
.m-sub-title{ font-size:14px; font-weight:700; color:var(--m-navy); margin:6px 0 12px; padding-left:9px; border-left:3px solid var(--m-gold); }
.m-person-tip{ background:#f8fafc; border:1px dashed var(--m-line); border-radius:8px; padding:10px 12px; font-size:13px; color:var(--m-gray); margin-bottom:12px; }
.m-order-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.m-order-table th{ text-align:left; color:var(--m-gray); font-weight:600; padding:8px 6px; border-bottom:1px solid var(--m-line); white-space:nowrap; }
.m-order-table td{ padding:10px 6px; border-bottom:1px solid #f1f5f9; color:var(--m-ink); }
.m-order-table tr:last-child td{ border-bottom:none; }
.m-ostatus{ display:inline-block; padding:2px 8px; border-radius:20px; font-size:12px; background:#eef2ff; color:#3730a3; }
.m-ostatus.s-wait_sign,.m-ostatus.s-wait_pay,.m-ostatus.s-part_pay{ background:#fff7ed; color:#c2410c; }
.m-ostatus.s-all_ship,.m-ostatus.s-part_ship,.m-ostatus.s-received{ background:#ecfdf5; color:#047857; }
.m-ostatus.s-cancel{ background:#f3f4f6; color:#6b7280; }
.m-oview{ color:var(--m-navy); font-weight:600; text-decoration:none; }
.m-order-empty{ padding:18px 8px; color:var(--m-gray); font-size:13.5px; }
.m-order-empty a{ color:var(--m-navy); font-weight:600; }
@media (max-width:768px){ .m-type-item{ min-width:100%; } .m-order-table th:nth-child(4),.m-order-table td:nth-child(4){ display:none; } }
