﻿/* betting.css v6 — 参考方案设计页字号 + 功守道弹窗头 + 去蓝色遮罩 */

/* ═══ 投注弹窗居中覆盖（默认 ai-overlay 是底部抽屉 flex-end） ═══ */
#betOverlay.active {
  align-items: center;
}
#betOverlay > .ai-modal {
  max-height: 85vh;
  border-radius: 16px;
  animation: betFadeIn 0.25s ease;
  height: auto;
}
@keyframes betFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══ 弹窗容器 ═══ */
.bet-popup {
  width: 100%;
  min-height: 100%;
  padding: 0 16px 34px;
  box-sizing: border-box;
  background: transparent;
}

/* ═══ 弹窗头 — 借鉴功守道 ═══ */
.bet-popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #131b24;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 -16px;
}
.bet-popup-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.bet-popup-close {
  position: absolute;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.bet-popup-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ═══ 赛事信息 — 借鉴功守道 gs-modal-head ═══ */
.bet-match-section {
  text-align: center;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}
.bet-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bet-league-name {
  font-size: 13px;
  color: #586575;
}
.bet-match-num {
  font-size: 12px;
  color: #586575;
}
.bet-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #e2e0dc;
  margin: 6px 0;
}
.bet-teams .bet-rank {
  font-size: 12px;
  font-weight: 400;
  color: #586575;
}
.bet-match-time-text {
  font-size: 13px;
  color: #8996a6;
  margin-top: 4px;
}

/* ═══ 玩法分区 — 1px 细线 ═══ */
.bet-play-section {
  position: relative;
  border: 1px solid #b89a60;
  border-radius: 12px;
  margin-top: 16px;
  padding: 16px 10px 10px;
}
/* ★ 玩法过滤：非当前玩法区域置灰不可交互 */
.bet-play-section-dim {
  opacity: 0.3;
  pointer-events: none;
  border-color: rgba(255,255,255,.06);
}
.bet-play-section-dim .bet-play-section-title {
  color: #586575;
}
.bet-play-section-title {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #131b24;
  padding: 0 12px;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ═══ SPF 网格 ═══ */
.bet-spf-grid {
  display: grid;
  grid-template-columns: 56px 1fr 1fr 1fr;
  gap: 6px;
}

/* ═══ 通用卡片 — 去掉蓝色遮罩感 (白底透明边框) ═══ */
.bet-cell,
.bet-score-item,
.bet-goal-item {
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.bet-cell:active,
.bet-score-item:active,
.bet-goal-item:active {
  transform: scale(0.96);
}

/* 选中态 — 金色 */
.bet-cell.selected,
.bet-score-item.selected,
.bet-goal-item.selected {
  border-color: #b89a60;
  background: rgba(184, 154, 96, 0.08);
  box-shadow: 0 0 10px rgba(184, 154, 96, 0.12);
}

/* 标签和赔率 */
.bet-cell .bet-name {
  color: #8996a6;
  font-size: 12px;
  font-weight: 600;
}
.bet-cell .bet-odds {
  margin-top: 2px;
  color: #7ea6bd;
  font-size: 12px;
  font-weight: 400;
}
.bet-cell.selected .bet-name,
.bet-cell.selected .bet-odds {
  color: #b89a60;
}

/* 负 = 默认蓝色赔率（与正/平统一） */
.bet-cell.lose .bet-odds {
  color: #7ea6bd;
}
.bet-cell.lose.selected .bet-name {
  color: #b89a60;
}
.bet-cell.lose.selected .bet-odds {
  color: #7ea6bd;
}

/* 让球列 — 只读 */
.bet-cell.handicap {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  border: none;
  background: transparent;
}
.bet-cell.handicap:active {
  transform: none;
}
.bet-cell.handicap.rq {
  color: #b89a60;
  font-weight: 700;
  font-size: 13px;
}

/* ★ 赔率变动箭头 */
.bet-arrow-up { color: #b87070; font-size: 9px; margin-left: 2px; }
.bet-arrow-down { color: #7aaa96; font-size: 9px; margin-left: 2px; }

/* ★ 走势信号迷你行 */
.bet-trend-row {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 4px 8px; background: rgba(0,0,0,.15);
  border-radius: 6px; font-size: 10px;
}
.bet-trend-label {
  color: #586575; font-size: 9px; white-space: nowrap;
}
.bet-trend-chars {
  font-family: monospace; font-size: 10px; letter-spacing: 1px;
  color: #8996a6;
}

/* ★ 玩法提示条 */
.bet-play-hint {
  text-align: center; padding: 6px 12px; margin-bottom: 10px;
  border-radius: 10px; border: 1px solid rgba(184, 154, 96,0.15);
  background: rgba(184, 154, 96,0.04); color: #8996a6;
  font-size: 11px; line-height: 1.5;
}
.bet-play-hint b { color: #b89a60; }

/* ═══ 比分 — 7列 ═══ */
.bet-score-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bet-score-item {
  height: 56px;
}
.bet-score-item .bet-score-val {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.bet-score-item .bet-score-odds {
  margin-top: 4px;
  color: #7ea6bd;
  font-size: 11px;
  font-weight: 400;
}
.bet-score-item.selected .bet-score-val,
.bet-score-item.selected .bet-score-odds {
  color: #b89a60;
}

/* ═══ 总进球 — 4列 ═══ */
.bet-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* ═══ 半全场 — 3列 ═══ */
.bet-half-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bet-goal-item {
  height: 52px;
  color: #8996a6;
  font-size: 13px;
  font-weight: 600;
}
.bet-goal-item .bet-goal-odds {
  margin-top: 4px;
  color: #7ea6bd;
  font-size: 12px;
  font-weight: 400;
}
.bet-goal-item.selected {
  color: #b89a60;
}
.bet-goal-item.selected .bet-goal-odds {
  color: #b89a60;
}

/* ═══ 无赔率 — 仅不可点，轻量暗化 ═══ */
.bet-cell.no-odds,
.bet-score-item.no-odds,
.bet-goal-item.no-odds {
  cursor: not-allowed;
  opacity: 0.45;
}
.bet-cell.no-odds:active,
.bet-score-item.no-odds:active,
.bet-goal-item.no-odds:active {
  transform: none;
}

/* ═══ 已选汇总 ═══ */
.bet-summary {
  padding: 10px 0 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bet-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
}
.bet-summary-label {
  color: #586575;
}
.bet-summary-value {
  color: #b89a60;
  font-weight: 600;
}
.bet-summary-value.prize {
  font-size: 14px;
}

/* ═══ 底部按钮 ═══ */
.bet-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.bet-btn-cancel {
  flex: 1;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #8996a6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.bet-btn-cancel:active {
  background: rgba(255, 255, 255, 0.1);
}
.bet-btn-confirm {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #b89a60, #b89a60);
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(184, 154, 96, 0.25);
}
.bet-btn-confirm:active {
  transform: scale(0.97);
}
.bet-btn-confirm:disabled {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: #586575;
  cursor: not-allowed;
}
.bet-btn-confirm:disabled:active {
  transform: none;
}

/* ═══ 推荐排行榜高亮 — 左侧1/6黄色底色 + 排名数字 ═══ */
.bet-cell.rank-highlight,
.bet-score-item.rank-highlight,
.bet-goal-item.rank-highlight {
  position: relative;
  overflow: hidden;
}
.bet-cell.rank-highlight::before,
.bet-score-item.rank-highlight::before,
.bet-goal-item.rank-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 16.66%;  /* 1/6 */
  height: 100%;
  background: rgba(184, 154, 96, 0.35);
  z-index: 0;
  pointer-events: none;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}

/* ★ 排名数字 — 蓝色、无圆底、居中在黄色条中间 */
.rank-badge-num {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16.666%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #7ea6bd;
  z-index: 2;
  line-height: 1;
  pointer-events: none;
}

/* ★ 选中态叠加高亮 */
.bet-cell.selected.rank-highlight::before,
.bet-score-item.selected.rank-highlight::before,
.bet-goal-item.selected.rank-highlight::before {
  background: rgba(184, 154, 96, 0.45);
}


/* Morandi blue betting comprehensive polish (202606080148) */
.bet-popup {
  padding-left: 18px;
  padding-right: 18px;
}
.bet-popup-header,
.bet-play-section-title {
  background: rgba(19, 27, 36, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.bet-popup-header {
  border-bottom-color: rgba(126, 166, 189, 0.10);
}
.bet-popup-title,
.bet-teams {
  color: #ece8e0;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.bet-popup-close {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(126, 166, 189, 0.10);
  color: #aab4c1;
}
.bet-popup-close:hover {
  background: rgba(126, 166, 189, 0.11);
  color: #e2e0dc;
}
.bet-match-section {
  border-bottom-color: rgba(126, 166, 189, 0.10);
  margin-bottom: 16px;
}
.bet-league-name,
.bet-match-num,
.bet-teams .bet-rank {
  color: #667486;
}
.bet-match-time-text {
  color: #93a0af;
}
.bet-play-section {
  margin-top: 18px;
  padding: 18px 11px 12px;
  border-color: rgba(184, 154, 96, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(184, 154, 96, 0.028), rgba(126, 166, 189, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.bet-play-section-title {
  top: -11px;
  padding: 0 14px;
  color: #d0cbc0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.bet-spf-grid,
.bet-score-grid,
.bet-goal-grid {
  gap: 8px;
}
.bet-cell,
.bet-score-item,
.bet-goal-item {
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(126, 166, 189, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.bet-cell:active,
.bet-score-item:active,
.bet-goal-item:active {
  transform: scale(0.97);
}
.bet-cell.selected,
.bet-score-item.selected,
.bet-goal-item.selected {
  border-color: rgba(184, 154, 96, 0.68);
  background: rgba(184, 154, 96, 0.10);
  box-shadow: 0 8px 18px rgba(184, 154, 96, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bet-cell .bet-name,
.bet-score-item .bet-score-val,
.bet-goal-item .bet-goal-val {
  color: #9aa6b5;
  line-height: 1.2;
}
.bet-cell .bet-odds,
.bet-cell.lose .bet-odds,
.bet-score-odds,
.bet-goal-odds {
  color: #7ea6bd;
  line-height: 1.2;
}
.bet-cell.selected .bet-name,
.bet-cell.selected .bet-odds,
.bet-score-item.selected .bet-score-val,
.bet-score-item.selected .bet-score-odds,
.bet-goal-item.selected,
.bet-goal-item.selected .bet-goal-odds {
  color: #c4a870;
}
.bet-cell.handicap {
  border-color: rgba(126, 166, 189, 0.16);
  background: rgba(126, 166, 189, 0.045);
}
.bet-play-section-dim {
  opacity: 0.34;
}
.bet-cell.no-odds,
.bet-score-item.no-odds,
.bet-goal-item.no-odds {
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.018);
}
.bet-cell.rank-highlight,
.bet-score-item.rank-highlight,
.bet-goal-item.rank-highlight {
  border-color: rgba(126, 166, 189, 0.30);
}

/* Alpine Mint betting drawer theme (202606080216) */
.bet-popup {
  color: var(--alpine-text-main, #243238);
  background: linear-gradient(180deg, #f8fbfb 0%, #edf4f4 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}
.bet-popup-header,
.bet-play-section-title {
  background: rgba(247, 251, 251, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bet-popup-header {
  border-bottom-color: rgba(130, 158, 164, 0.16);
}
.bet-popup-title,
.bet-teams,
.bet-score-item .bet-score-val,
.bet-goal-item,
.bet-cell.handicap {
  color: var(--alpine-text-main, #243238);
}
.bet-popup-close {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(130, 158, 164, 0.18);
  color: var(--alpine-text-sub, #4f646a);
}
.bet-popup-close:hover {
  background: rgba(114, 221, 208, 0.16);
  color: var(--alpine-mint-deep, #08746f);
}
.bet-match-section,
.bet-summary {
  border-color: rgba(130, 158, 164, 0.14);
}
.bet-league-name,
.bet-match-num,
.bet-teams .bet-rank,
.bet-match-time-text,
.bet-summary-label,
.bet-trend-label,
.bet-trend-chars {
  color: var(--alpine-text-sub, #4f646a);
}
.bet-play-section {
  border-color: rgba(130, 158, 164, 0.18);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 24px rgba(48, 72, 78, 0.10);
}
.bet-play-section-title {
  color: var(--alpine-mint-deep, #08746f);
}
.bet-cell,
.bet-score-item,
.bet-goal-item {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(130, 158, 164, 0.16);
  color: var(--alpine-text-main, #243238);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
}
.bet-cell.selected,
.bet-score-item.selected,
.bet-goal-item.selected {
  background: rgba(114, 221, 208, 0.22);
  border-color: rgba(47, 159, 154, 0.40);
  box-shadow: 0 10px 22px rgba(47, 159, 154, 0.18);
}
.bet-cell .bet-name,
.bet-score-item .bet-score-val,
.bet-goal-item .bet-goal-val {
  color: var(--alpine-text-main, #243238);
}
.bet-cell .bet-odds,
.bet-cell.lose .bet-odds,
.bet-score-odds,
.bet-goal-odds,
.bet-score-item .bet-score-odds,
.bet-goal-item .bet-goal-odds,
.rank-badge-num {
  color: var(--alpine-mint-deep, #08746f);
}
.bet-cell.selected .bet-name,
.bet-cell.selected .bet-odds,
.bet-cell.lose.selected .bet-name,
.bet-cell.lose.selected .bet-odds,
.bet-score-item.selected .bet-score-val,
.bet-score-item.selected .bet-score-odds,
.bet-goal-item.selected,
.bet-goal-item.selected .bet-goal-odds {
  color: var(--alpine-mint-deep, #08746f);
}
.bet-cell.handicap,
.bet-cell.handicap.rq {
  color: var(--alpine-coral-deep, #b94739);
  background: rgba(255, 127, 104, 0.10);
  border-color: rgba(255, 127, 104, 0.18);
}
.bet-trend-row,
.bet-play-hint {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(130, 158, 164, 0.16);
  color: var(--alpine-text-sub, #4f646a);
}
.bet-play-hint b,
.bet-summary-value,
.bet-arrow-up {
  color: var(--alpine-coral-deep, #b94739);
}
.bet-arrow-down { color: var(--alpine-mint-deep, #08746f); }
.bet-btn-cancel {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(130, 158, 164, 0.20);
  color: var(--alpine-text-sub, #4f646a);
}
.bet-btn-cancel:active { background: rgba(255, 255, 255, 0.76); }
.bet-btn-confirm {
  background: linear-gradient(135deg, var(--alpine-mint-soft, #a7eee6), var(--alpine-mint, #72ddd0));
  color: #163238;
  box-shadow: 0 12px 24px rgba(47, 159, 154, 0.22);
}
.bet-btn-confirm:disabled {
  background: rgba(130, 158, 164, 0.12);
  color: var(--alpine-text-muted, #9aa8ac);
}
.bet-cell.rank-highlight::before,
.bet-score-item.rank-highlight::before,
.bet-goal-item.rank-highlight::before {
  background: rgba(255, 127, 104, 0.24);
}
.bet-cell.selected.rank-highlight::before,
.bet-score-item.selected.rank-highlight::before,
.bet-goal-item.selected.rank-highlight::before {
  background: rgba(114, 221, 208, 0.32);
}

/* Alpine Mint betting final polish */
.bet-popup * {
  text-shadow: none !important;
}
.bet-popup,
.bet-popup-header,
.bet-play-section-title {
  color: var(--alpine-text-main, #243238);
}
.bet-play-section,
.bet-cell,
.bet-score-item,
.bet-goal-item,
.bet-trend-row,
.bet-play-hint,
.bet-summary {
  border-color: rgba(130, 158, 164, 0.16) !important;
}
.bet-cell .bet-name,
.bet-score-item .bet-score-val,
.bet-goal-item .bet-goal-val,
.bet-goal-item,
.bet-teams {
  color: var(--alpine-text-main, #243238) !important;
  font-weight: 700;
}
.bet-cell .bet-odds,
.bet-score-item .bet-score-odds,
.bet-goal-item .bet-goal-odds,
.bet-summary-value {
  color: var(--alpine-mint-deep, #08746f) !important;
  font-weight: 750;
}
.bet-league-name,
.bet-match-num,
.bet-teams .bet-rank,
.bet-match-time-text,
.bet-summary-label,
.bet-trend-label,
.bet-trend-chars {
  color: var(--alpine-text-sub, #4f646a) !important;
}
.bet-btn-cancel,
.bet-btn-confirm {
  border-radius: 999px;
}


