/* ============================================================
   会员端 手机版布局
   与 pc.css 完全独立。手机版是独立的一套页面，不是 PC 的响应式变体。
   ============================================================ */

body {
  background: #f2f3f5;
  font-size: 14px;
  padding-bottom: 56px;   /* 给底部 tab 栏留位 */
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 顶栏 ---------- */
.m-hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
}
.m-hdr .t {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-hdr .l, .m-hdr .r {
  min-width: 52px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.m-hdr .r { justify-content: flex-end; }
.m-back {
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px 4px 0;
}

/* ---------- 余额条 ---------- */
.m-money-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
}
.m-money-bar .v {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
}

/* ---------- 内容区 ---------- */
.m-body { padding: 10px; }

.m-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.m-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  font-size: 15px;
}
.m-card-bd { padding: 12px 14px; }

/* ---------- 大厅彩种 ---------- */
.m-lot {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 13px 14px;
}
.m-lot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.m-lot-name { font-size: 16px; font-weight: 700; }
.m-lot-period { font-size: 12px; color: var(--c-text-weak); }
.m-lot-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px dashed var(--c-border);
  border-bottom: 1px dashed var(--c-border);
  margin-bottom: 9px;
}
.m-lot-cd {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-primary);
}
.m-lot-cd.is-urgent { color: var(--c-danger); }
.m-lot-cd.is-closed { color: var(--c-text-weak); font-size: 15px; }
.m-lot-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin-bottom: 10px;
}
.m-lot-btn { display: block; width: 100%; }

/* ---------- 投注页 ---------- */
.m-bet-bar {
  position: sticky;
  top: 46px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.m-bet-bar .p { font-size: 13px; color: var(--c-text-sub); }
.m-bet-bar .c { font-size: 18px; font-weight: 700; color: var(--c-primary); }
.m-bet-bar .c.is-urgent { color: var(--c-danger); }
.m-bet-bar .c.is-closed { color: var(--c-text-weak); font-size: 14px; }

.m-play-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--c-border);
}
.m-play-tabs::-webkit-scrollbar { display: none; }
.m-play-tab {
  flex: none;
  padding: 5px 15px;
  border: 1px solid var(--c-border);
  border-radius: 15px;
  font-size: 13px;
  background: #fff;
  white-space: nowrap;
}
.m-play-tab.is-on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.m-play-tab.is-lock { opacity: .45; }

/* 选号区（手机上球更大，方便点击） */
.m-picker { background: #fff; }
.m-picker .pick-group { padding: 12px 10px; border-bottom: 1px solid var(--c-border); }
.m-picker .pick-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.m-picker .pick-name { font-weight: 600; font-size: 15px; color: var(--g-color, var(--c-primary)); }
.m-picker .pick-tip { font-size: 11px; color: var(--c-text-weak); flex: 1; }
.m-picker .pick-tip b { color: var(--c-primary); }
.m-picker .pick-ops { display: flex; gap: 5px; }
.m-picker .pick-ops .btn { height: 24px; padding: 0 8px; font-size: 11px; }

/* 球固定 40px，375px 宽屏一行放得下 7 个（40*7 + 8*6 = 328） */
.m-picker .pick-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-picker .pick-balls .ball {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.m-picker .pick-group .ball.is-on,
.m-picker .pick-group .ball.is-dan { background: var(--g-color, var(--c-primary)); }

.m-play-tip {
  padding: 10px 14px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-text-weak);
  background: #fff;
}

/* ---------- 底部投注条 ---------- */
.m-slip-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}
.m-slip-bar .info { flex: 1; font-size: 12px; line-height: 1.5; }
.m-slip-bar .info .big { font-size: 16px; font-weight: 700; color: var(--c-primary); }
.m-slip-bar .btn { flex: none; }
.m-multi { display: flex; align-items: center; gap: 4px; }
.m-multi .input { width: 46px; height: 28px; text-align: center; padding: 0 2px; }
.m-multi .btn { height: 28px; width: 28px; padding: 0; }

/* ---------- 底部 tab 栏 ---------- */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--c-text-weak);
}
.m-tabbar a.is-on { color: var(--c-primary); font-weight: 600; }
.m-tabbar .ico { font-size: 19px; line-height: 1; }

/* ---------- 列表项 ---------- */
.m-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 9px;
}
.m-item-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--c-border);
}
.m-item-hd .n { font-weight: 600; }
.m-item-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}
.m-item-row .k { color: var(--c-text-sub); flex: none; }
.m-item-row .v { text-align: right; word-break: break-all; }

/* ---------- 表单/筛选 ---------- */
.m-filter {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
}
.m-filter::-webkit-scrollbar { display: none; }
.m-filter .input, .m-filter .select {
  height: 32px;
  width: auto;
  min-width: 108px;
  font-size: 13px;
  flex: none;
}
.m-filter .btn { flex: none; height: 32px; }

/* ---------- 登录页 ---------- */
.m-login {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(160deg, #b71c1c 0%, #7b1fa2 100%);
  display: flex;
  flex-direction: column;
}
.m-login-top {
  padding: 64px 0 30px;
  text-align: center;
  color: #fff;
}
.m-login-top .n { font-size: 25px; font-weight: 700; letter-spacing: 2px; }
.m-login-top .s { font-size: 13px; opacity: .85; margin-top: 6px; }
.m-login-box {
  flex: 1;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 22px;
}
.m-login-box .input { height: 46px; font-size: 15px; }
.m-login-box .btn-lg { height: 46px; margin-top: 10px; }

/* ---------- 加载更多 ---------- */
.m-more {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-weak);
}
