/* ============================================================
   会员端 PC 版布局
   与 m.css 完全独立，两套页面物理分离，不做响应式。
   ============================================================ */

body { min-width: 1200px; }

.wrap { width: 1200px; margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.hdr {
  height: 56px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hdr .wrap { display: flex; align-items: center; height: 56px; }
.hdr-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 36px;
  white-space: nowrap;
}
.hdr-nav { display: flex; gap: 4px; flex: 1; }
.hdr-nav a {
  padding: 0 16px;
  height: 34px;
  line-height: 34px;
  border-radius: var(--radius);
  font-size: 15px;
  opacity: .88;
  transition: all .15s;
}
.hdr-nav a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.hdr-nav a.is-on { background: rgba(255, 255, 255, .22); opacity: 1; font-weight: 500; }

.hdr-user { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.hdr-user .u-money { font-size: 16px; font-weight: 700; }
.hdr-user .u-name { opacity: .9; }
.hdr-user a { opacity: .85; }
.hdr-user a:hover { opacity: 1; text-decoration: underline; }
.hdr-refresh {
  cursor: pointer;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  line-height: 1;
  font-size: 13px;
}

/* ---------- 页面主体 ---------- */
.main { padding: 16px 0 40px; }
.page-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-title { font-size: 18px; font-weight: 600; }

/* ---------- 大厅彩种卡片 ---------- */
.lot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lot-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s, transform .18s;
}
.lot-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lot-top { display: flex; align-items: center; justify-content: space-between; }
.lot-name { font-size: 17px; font-weight: 700; }
.lot-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
  margin-left: 8px;
  vertical-align: 2px;
}
.lot-period { font-size: 13px; color: var(--c-text-sub); }
.lot-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 1px;
}
.lot-count.is-urgent { color: var(--c-danger); animation: blink 1s steps(2) infinite; }
.lot-count.is-closed { color: var(--c-text-weak); font-size: 16px; }
@keyframes blink { 50% { opacity: .35; } }

.lot-result { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.lot-result .sep { color: var(--c-text-weak); margin: 0 2px; }
.lot-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---------- 投注页 ---------- */
.bet-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }

.bet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.bet-bar-l { display: flex; align-items: baseline; gap: 12px; }
.bet-bar .b-lot { font-size: 18px; font-weight: 700; }
.bet-bar .b-period { font-size: 13px; color: var(--c-text-sub); }
.bet-bar .b-count { font-size: 24px; font-weight: 700; color: var(--c-primary); }
.bet-bar .b-count.is-urgent { color: var(--c-danger); }
.bet-bar .b-count.is-closed { color: var(--c-text-weak); font-size: 17px; }

.play-tabs { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; }
.play-tab {
  padding: 5px 16px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
}
.play-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.play-tab.is-on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.play-tab.is-lock { opacity: .45; cursor: not-allowed; }

/* 选号区 */
.pick-group { padding: 14px 16px; border-bottom: 1px dashed var(--c-border); }
.pick-group:last-child { border-bottom: 0; }
.pick-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pick-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--g-color, var(--c-primary));
}
.pick-tip { font-size: 12px; color: var(--c-text-weak); flex: 1; }
.pick-tip b { color: var(--c-primary); font-size: 13px; }
.pick-ops { display: flex; gap: 6px; }

.pick-balls { display: flex; flex-wrap: wrap; gap: 9px; }
.pick-balls .ball { width: 36px; height: 36px; font-size: 15px; }
.pick-group .ball.is-on,
.pick-group .ball.is-dan { background: var(--g-color, var(--c-primary)); }

/* 右侧投注单 */
.slip { position: sticky; top: 72px; }
.slip-rows {
  max-height: 260px;
  overflow-y: auto;
  padding: 12px 16px;
  font-size: 13px;
}
.slip-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--c-border);
}
.slip-row:last-child { border-bottom: 0; }
.slip-row .k { color: var(--c-text-sub); white-space: nowrap; }
.slip-row .v { text-align: right; word-break: break-all; }
.slip-total {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  background: #fafbfc;
}
.slip-total .line { display: flex; justify-content: space-between; padding: 3px 0; }
.slip-total .big { font-size: 20px; font-weight: 700; color: var(--c-primary); }
.slip-ops { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.slip-multi { display: flex; align-items: center; gap: 8px; }
.slip-multi .input { width: 80px; text-align: center; }

.slip-help {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--c-text-weak);
  line-height: 1.7;
  background: #fafbfc;
  border-top: 1px solid var(--c-border);
}

/* ---------- 筛选条 ---------- */
.filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter .field { margin-bottom: 0; }
.filter .input, .filter .select { width: 150px; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  min-width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b71c1c 0%, #7b1fa2 100%);
}
.login-box {
  width: 380px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  padding: 34px 34px 28px;
}
.login-logo {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.login-sub { text-align: center; color: var(--c-text-weak); font-size: 13px; margin-bottom: 24px; }
.login-box .input { height: 42px; }
.login-box .btn-lg { margin-top: 8px; }
.login-tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--c-text-weak); }
.login-err {
  display: none;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #ffece8;
  color: var(--c-danger);
  font-size: 13px;
}

/* ---------- 汇总条 ---------- */
.summary {
  display: flex;
  gap: 28px;
  padding: 12px 16px;
  background: #fff7e8;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}
.summary b { font-size: 15px; }
