/* ============================================================
   投注计算页样式（index.html）
   设计规范：
   - 基底：纯白底色
   - 主色：亮蓝（品牌 / 选中态 / 主功能）
   - 点缀：红 / 金 仅用于活动福利营销
   - 文字：黑色主力信息、浅灰次级辅助
   - 质感：扁平化、小圆角、无强投影、无渐变（营销 Banner 除外）
   ============================================================ */
:root {
  --primary: #1677ff;        /* 亮蓝主色 */
  --primary-2: #3b8bff;
  --primary-soft: #eaf2ff;   /* 浅蓝底 */
  --red: #f5222d;            /* 红：活动福利点缀 */
  --gold: #ffb800;           /* 金：活动福利点缀 */
  --gold-deep: #b8860b;
  --bg: #ffffff;             /* 纯白基底 */
  --card: #ffffff;
  --card-alt: #f7f8fa;       /* 浅灰卡片 */
  --text: #111827;           /* 黑色主力信息 */
  --text-sub: #6b7280;       /* 浅灰次级文字 */
  --text-light: #9ca3af;
  --border: #eef0f3;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, .05);
  --nav-h: 54px;
  --tabbar-h: 52px;          /* 底部 Tabbar 高度 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(192px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== 顶部导航栏（白底 + 蓝色品牌/按钮） ========== */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-bar .title {
  font-size: 17px; font-weight: 700; letter-spacing: .5px;
  color: var(--text);
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nav-bar .left, .nav-bar .right { display: flex; align-items: center; gap: 8px; z-index: 1; }
.nav-btn {
  height: 36px; padding: 0 16px; border: none; border-radius: 18px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px;
}
.nav-btn:active { background: #dbe9ff; transform: scale(.95); }
.nav-btn .nav-ico { width: 18px; height: 18px; margin-right: 6px; flex: none; object-fit: contain; }

/* ========== 公告通知滚动条 ========== */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 4px;
  padding: 9px 12px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.notice-ico {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: #fff; font-size: 12px;
  border-radius: 50%;
  overflow: hidden;
}
.notice-ico .notice-img {
  width: 78%; height: 78%;
  object-fit: contain;
}
.notice-marquee {
  flex: 1; min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.notice-track {
  display: inline-block;
  white-space: nowrap;
  animation: notice-scroll 22s linear infinite;
  will-change: transform;
}
.notice-track:hover { animation-play-state: paused; }
.notice-item {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px; color: var(--text-sub);
}
@keyframes notice-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== 玩法切换 Tab（圆角方形图标 + 文字，选中态蓝色高亮） ========== */
.play-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
}
.play-tab {
  --tc: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  height: 62px;
  border-radius: var(--radius-md);
  background: var(--card-alt);
  border: 1px solid transparent;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
  transition: transform .12s, border-color .12s, color .12s, background .12s;
}
.play-tab:active { transform: scale(.95); }
.play-tab .tab-badge {
  width: 34px; height: 30px; border-radius: 10px;
  background: rgba(17, 24, 39, .06);
  color: var(--text-sub);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.play-tab .tab-name { font-size: 12px; font-weight: 500; white-space: nowrap; }
.play-tab.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  font-weight: 600;
}
.play-tab.active .tab-badge {
  background: var(--primary);
  color: #fff;
}
.play-tab.active .tab-name { color: var(--primary); }

/* ========== 混合过关玩法筛选 ========== */
.mixed-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
}
.mixed-toolbar .label {
  font-size: 12px; color: var(--text-sub); line-height: 28px; margin-right: 2px;
}
.mixed-filter-btn {
  height: 28px; padding: 0 12px;
  border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-sub); cursor: pointer;
  display: inline-flex; align-items: center;
  transition: all .12s;
}
.mixed-filter-btn:active { transform: scale(.95); }
.mixed-filter-btn.active {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-soft); font-weight: 600;
}

/* ========== 工具栏（日期 / 已选 / 清空） ========== */
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.toolbar .nav-date {
  height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 15px;
  background: var(--card-alt);
  font-size: 12px; color: var(--text); cursor: pointer;
  outline: none; min-width: 118px;
  flex: 0 0 auto;
}
.toolbar .nav-date:focus { border-color: var(--primary); background: #fff; }
.toolbar .total { color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar .total b { color: var(--primary); font-weight: 700; margin: 0 2px; }
.toolbar .actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tool-link {
  color: var(--primary); font-weight: 500; cursor: pointer;
  padding: 5px 2px; border-radius: 4px;
}
.tool-link:active { opacity: .6; }

/* ========== 日期分割头 ========== */
.date-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 6px;
  font-size: 12px; color: var(--text-sub);
}
.date-header .count { color: var(--primary); font-weight: 600; }

/* ========== 赛事列表卡片 ========== */
.match-list { padding: 2px 12px 12px; }
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* 赛事头部 */
.match-head {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid #f4f5f7;
  font-size: 12px;
}
.match-no {
  flex: 0 0 auto;
  color: var(--primary); font-weight: 700; font-size: 11px;
  background: var(--primary-soft); padding: 2px 6px; border-radius: 5px;
}
.league-name {
  flex: 0 0 auto;
  color: var(--primary); font-weight: 500; font-size: 11px;
  max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--primary-soft); padding: 2px 7px; border-radius: 5px;
}
.match-time { margin-left: auto; color: var(--text-light); font-size: 11px; }
.match-status {
  flex: 0 0 auto;
  padding: 2px 8px; border-radius: 6px; font-size: 11px;
}
.match-status.st-sale { background: var(--primary-soft); color: var(--primary); }
.match-status.st-playing { background: #eaf9ef; color: #22a65c; }
.match-status.st-future { background: var(--primary-soft); color: var(--primary); }
.match-status.st-done { background: #f2f3f5; color: #9aa0a8; }
.match-status.st-cancel { background: #fff0f0; color: var(--red); }

/* 对阵信息 */
.match-vs { display: flex; align-items: center; padding: 12px 14px; }
.team-col { flex: 1; min-width: 0; }
.team-col.home { text-align: right; padding-right: 10px; }
.team-col.away { text-align: left; padding-left: 10px; }
.team-logo-wrap, .team-logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 5px;
  vertical-align: middle;
}
.team-logo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: contain;
  background: #fff; border: 1px solid var(--border);
}
.team-logo-fallback {
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary); font-size: 15px; font-weight: 700;
}
.team-col.home .team-logo-wrap, .team-col.home .team-logo-fallback { flex-direction: row-reverse; }
.team-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.team-name.home::after {
  content: "(主)"; color: var(--text-light);
  font-weight: 400; font-size: 11px; margin-left: 2px;
}
.vs-box { flex: 0 0 auto; width: 56px; text-align: center; position: relative; }
.vs-text {
  color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: 1px;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}
.handicap-chip {
  display: inline-block; margin-top: 5px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.handicap-chip.neg { background: #fff0f0; color: var(--red); }

/* 赔率区 */
.odds-section { padding: 0 12px 12px; }
.odds-title {
  font-size: 11px; color: var(--text-light);
  padding: 7px 2px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.odds-title .hint { color: #c0c4cc; font-size: 10px; }
.odds-subtitle {
  font-size: 11px; color: var(--text-sub);
  padding: 5px 2px 4px;
  border-bottom: 1px dashed #f0f1f3;
  margin: 3px 0 6px; font-weight: 500;
}
.odds-subtitle.win-home { color: var(--primary); }
.odds-subtitle.win-draw { color: #555; }
.odds-subtitle.win-away { color: var(--primary); }

/* 赔率网格：统一蓝色主功能色 */
.odds-row {
  --accent: var(--primary);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
/* 比分：5列；总进球：4列；半全场：3列 */
.odds-row.type-bf { grid-template-columns: repeat(5, 1fr); }
.odds-row.type-zjqs { grid-template-columns: repeat(4, 1fr); }
.odds-row.type-bqc { grid-template-columns: repeat(3, 1fr); }

.odds-btn {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card-alt);
  border-radius: var(--radius-sm);
  padding: 10px 4px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
  user-select: none;
  transition: all .12s ease;
  overflow: hidden;
  min-height: 52px;
}
.odds-btn:active { transform: scale(.95); border-color: var(--accent); }
.odds-btn.disabled { opacity: .35; cursor: not-allowed; }
.odds-btn.disabled:active { transform: none; }
.odds-btn .o-label { font-size: 12px; color: var(--text-sub); font-weight: 500; }
.odds-btn .o-value {
  font-size: 16px; color: var(--text); font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
}
.odds-row.type-bf .odds-btn,
.odds-row.type-zjqs .odds-btn { padding: 7px 2px 6px; min-height: 46px; }
.odds-row.type-bf .odds-btn .o-label,
.odds-row.type-zjqs .odds-btn .o-label { font-size: 11px; }
.odds-row.type-bf .odds-btn .o-value,
.odds-row.type-zjqs .odds-btn .o-value,
.odds-row.type-bqc .odds-btn .o-value { font-size: 13px; }

/* 选中态：统一亮蓝高亮 */
.odds-btn.selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.odds-btn.selected .o-label,
.odds-btn.selected .o-value { color: var(--primary); }

/* 选中序号角标 */
.pick-index {
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff; font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  border-bottom-left-radius: 8px;
}
.odds-btn.selected .pick-index { display: flex; }

.pick-count-tag {
  text-align: right; padding: 4px 4px 0;
  font-size: 11px; color: var(--primary); min-height: 16px;
}

/* 混合过关：单场已选汇总 chips */
.picks-summary {
  padding: 8px 12px 10px;
  border-top: 1px dashed #f0f1f3;
  font-size: 12px;
}
.picks-summary .label { color: var(--text-light); margin-right: 6px; }
.picks-summary .chip {
  display: inline-block; padding: 3px 9px; border-radius: 11px;
  margin: 2px 5px 2px 0; font-size: 11px;
  background: var(--primary-soft); color: var(--primary);
  cursor: pointer; transition: opacity .1s;
}
.picks-summary .chip:active { opacity: .7; }
.picks-summary .chip .x { margin-left: 4px; color: rgba(0, 0, 0, .4); font-weight: 700; }

/* ========== 底部投注栏（让位于底部 Tabbar） ========== */
.slip-bar {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 14px rgba(17, 24, 39, .06);
}
.slip-info-row {
  display: flex; align-items: center;
  padding: 10px 16px 6px;
  font-size: 13px;
}
.slip-picks { flex: 1; min-width: 0; overflow: hidden; }
.slip-picks .picks-line {
  color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slip-picks .picks-line .num { color: var(--primary); font-size: 16px; font-weight: 700; margin: 0 2px; }
.slip-picks .picks-sub { color: var(--text-light); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.slip-action-row {
  display: flex; align-items: center;
  padding: 8px 12px 12px;
  gap: 8px;
}
.slip-controls { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ctl-line { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ctl-line .lbl { color: var(--text-sub); flex: 0 0 auto; }
.ctl-line select, .ctl-line input {
  padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; background: var(--card-alt); color: var(--text);
  outline: none; -webkit-appearance: none;
}
.ctl-line select {
  min-width: 84px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23999'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}
.ctl-line input[type=number] {
  width: 56px; text-align: center;
  -moz-appearance: textfield;
}
.ctl-line input[type=number]::-webkit-outer-spin-button,
.ctl-line input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-display {
  display: flex; flex-direction: column; align-items: flex-end;
  margin: 0 6px;
  color: var(--text-light); font-size: 11px; line-height: 1.3;
}
.calc-display .stake {
  color: var(--primary); font-weight: 700; font-size: 16px;
  font-family: "DIN Alternate", Arial, sans-serif;
}
.calc-display .stake small { font-size: 10px; font-weight: 400; color: var(--text-light); }

.calc-btn {
  flex: 0 0 auto; min-width: 110px; height: 44px; padding: 0 20px;
  border: none; border-radius: 22px;
  background: var(--primary);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .12s, opacity .12s;
}
.calc-btn:active { transform: scale(.97); }
.calc-btn:disabled { background: #d9dce1; cursor: not-allowed; }

/* ========== 计算结果弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 500;
  display: none;
  align-items: flex-end; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  width: 100%; max-width: 640px;
  max-height: 88vh;
  border-radius: 12px 12px 0 0;
  display: flex; flex-direction: column;
  animation: slide-up .25s ease-out;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f0f1f3;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text); }
.modal-close {
  width: 30px; height: 30px; line-height: 30px;
  border: none; border-radius: 50%;
  background: #f2f3f5; color: #666;
  font-size: 18px; cursor: pointer;
}
.modal-close:active { background: #e5e6eb; }
.modal-body { padding: 14px 16px; overflow-y: auto; flex: 1; }

/* 奖金汇总卡片（金色：福利营销） */
.bonus-summary {
  background: #fffbea;
  border: 1px solid #ffe9b8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
}
.bonus-title {
  font-size: 12px; color: var(--gold-deep);
  margin-bottom: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.bonus-title::before { content: "💰"; }
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bonus-cell .k { font-size: 12px; color: #9aa0a8; }
.bonus-cell .v { font-size: 15px; color: var(--text); font-weight: 600; margin-top: 1px; }
.bonus-cell.highlight { grid-column: span 2; }
.bonus-cell.highlight .v {
  font-size: 26px; color: var(--gold-deep);
  font-family: "DIN Alternate", Arial, sans-serif; font-weight: 700;
}
.bonus-cell.highlight .v small { font-size: 13px; font-weight: 400; color: #9aa0a8; margin-left: 4px; }

/* 明细表 */
.details-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.details-head .count { color: #9aa0a8; font-weight: 400; font-size: 12px; }
.details-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; background: #fff;
}
.details-table th, .details-table td {
  padding: 8px 6px; text-align: center;
  border-bottom: 1px solid #f2f3f5;
}
.details-table th {
  background: var(--card-alt); color: var(--text-sub);
  font-weight: 500; font-size: 11px;
}
.details-table td .matches { font-size: 11px; color: var(--text-sub); line-height: 1.4; }
.details-table td .choice { color: var(--text); font-weight: 500; }
.details-table td .bonus {
  color: var(--primary); font-weight: 700;
  font-family: "DIN Alternate", Arial, sans-serif; font-size: 13px;
}
.cap-tag {
  display: inline-block; padding: 1px 5px;
  background: #fff8e8; color: var(--gold-deep);
  border-radius: 3px; font-size: 10px; margin-left: 2px;
}

.modal-footer {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f1f3;
  display: flex; gap: 10px;
}
.btn-ghost, .btn-primary {
  flex: 1; height: 42px;
  border-radius: 21px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
}
.btn-ghost { background: #f2f3f5; color: #555; }
.btn-ghost:active { background: #e5e6eb; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:disabled { background: #d9dce1; cursor: not-allowed; }

/* ========== 底部 Tabbar（线性面性图标 + 底部文字） ========== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.tabbar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-light); text-decoration: none;
  font-size: 11px; font-weight: 500;
}
.tabbar-item .t-ico { font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tabbar-item .t-ico img { width: 22px; height: 22px; object-fit: contain; }
.tabbar-item.active { color: var(--primary); font-weight: 600; }

/* ========== 空状态 / Toast ========== */
.empty-state { padding: 64px 24px; text-align: center; color: #c0c4cc; }
.empty-state .emoji { font-size: 44px; margin-bottom: 12px; display: block; }
.empty-state .tip { font-size: 13px; line-height: 1.7; }
.empty-state .tip b { color: var(--primary); }

.toast {
  position: fixed;
  top: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 9999;
  display: none;
  max-width: 85%;
  text-align: center;
}
.toast.show { display: block; animation: fade-in .2s; }
@keyframes fade-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 移动端 / 平板适配 ========== */
@media (max-width: 375px) {
  body { font-size: 13px; padding-bottom: 182px; }
  .nav-bar { padding: 0 8px; height: 50px; }
  .nav-bar .title { font-size: 15px; }
  .nav-btn { padding: 0 13px; font-size: 13px; height: 34px; min-width: 50px; }
  .play-tabs { padding: 8px; gap: 6px; }
  .play-tab { height: 58px; }
  .play-tab .tab-name { font-size: 11px; }
  .notice-bar { margin: 8px 8px 2px; }
  .match-list { padding: 2px 8px 10px; }
  .odds-row { gap: 5px; }
  .odds-btn { padding: 8px 2px 7px; }
  .o-label { font-size: 11px; }
  .o-value { font-size: 14px; }
  .slip-action-row { padding: 8px 10px 10px; }
  .calc-btn { min-width: 100px; font-size: 14px; }
}

/* 底部投注栏：窄屏堆叠为大按钮 */
@media (max-width: 414px) {
  .slip-action-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .slip-controls { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .ctl-line { flex: 1; }
  .ctl-line select, .ctl-line input { width: 64px; font-size: 13px; }
  .calc-display { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; padding: 2px 0; }
  .calc-btn { width: 100%; min-width: 0; padding: 0; height: 46px; font-size: 16px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .nav-date { flex: 1 1 auto; }
  .toolbar .total { flex: 1 1 100%; order: 3; margin-top: 2px; }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
  .slip-bar { position: relative; }
  .tabbar { position: fixed; }
  body { padding-bottom: 72px; }
}

/* 平板/桌面：内容居中，宽度限制 480px */
@media (min-width: 768px) {
  body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 24px rgba(0, 0, 0, .08); min-height: 100vh; }
  .nav-bar, .play-tabs, .mixed-toolbar, .toolbar, .match-list { max-width: 480px; margin-left: auto; margin-right: auto; }
  .slip-bar, .tabbar { max-width: 480px; left: 50%; transform: translateX(-50%); }
}
