/* 彩票分析助手 PWA - 移动端样式 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #f2f3f7; color: #222; font-family: -apple-system, "HarmonyOS Sans", "Microsoft YaHei", sans-serif; }
body { padding-bottom: 20px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #d33, #c21);
  color: #fff; padding: 8px 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.logo { font-size: 17px; font-weight: 700; padding: 2px 0 8px; }
.tabs { display: flex; gap: 4px; }
.tab-btn {
  flex: 1; border: none; background: transparent; color: #fff;
  padding: 10px 0 10px; font-size: 14px; border-bottom: 3px solid transparent;
  opacity: .75; cursor: pointer;
}
.tab-btn.active { opacity: 1; border-bottom-color: #fff; font-weight: 600; }

.tab-panel { display: none; padding: 10px; }
.tab-panel.active { display: block; }

.card {
  background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-title .tag { background: #eee; border-radius: 10px; padding: 1px 8px; font-size: 11px; color: #666; }

.actions, .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.actions .btn, .row .btn { flex: 1; min-width: 88px; }
.btn {
  background: #f0f2f5; border: none; border-radius: 8px; padding: 9px 12px;
  font-size: 13px; color: #333; cursor: pointer; transition: opacity .15s;
}
.btn:active { opacity: .7; }
.btn.primary { background: #d33; color: #fff; }
.btn.secondary { background: #e8f0fe; color: #1861c1; }
.btn.danger { background: #fde8e8; color: #c22; }
.btn.small { padding: 4px 8px; font-size: 11px; }

select, .num-input, .date-input {
  border: 1px solid #dcdce0; border-radius: 8px; padding: 8px;
  font-size: 13px; background: #fff; color: #222;
}
select { flex: 1; min-width: 88px; }
.num-input { flex: 1; min-width: 70px; }
.date-input { flex: 1.4; min-width: 110px; }

.status { font-size: 12px; color: #888; margin: 4px 0; }
.status.err { color: #c22; }
.status.ok { color: #2a7; }

.draw-list { max-height: 300px; overflow-y: auto; }
.draw-item {
  display: flex; align-items: center; gap: 6px; padding: 5px 0;
  border-bottom: 1px solid #f0f0f0; font-size: 12px;
}
.draw-item .issue { color: #888; width: 62px; flex-shrink: 0; }
.ball-red, .ball-blue {
  display: inline-block; width: 22px; height: 22px; line-height: 22px;
  border-radius: 50%; text-align: center; font-size: 11px; color: #fff; margin-right: 2px;
}
.ball-red { background: #d33; }
.ball-blue { background: #2a6fd6; }
.ball-3d { background: #e67e22; }

.pick-box { background: #f8f9fb; border-radius: 8px; padding: 10px; margin-bottom: 6px; font-size: 13px; }
.pick-row { padding: 3px 0; }
.pick-row .ball-red, .pick-row .ball-blue { width: 26px; height: 26px; line-height: 26px; font-size: 12px; }

.match-list { max-height: 320px; overflow-y: auto; }
.match-item {
  padding: 8px 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 6px;
  font-size: 12px; cursor: pointer; background: #fff; transition: background .15s;
}
.match-item:active { background: #f0f4ff; }
.match-item .mnum { color: #888; margin-right: 6px; }
.match-item .teams { font-weight: 600; font-size: 13px; }
.match-item .odds { color: #d33; margin-left: 4px; }
.match-item.selected { border-color: #d33; background: #fff5f5; }
.match-item .conf { float: right; font-size: 11px; color: #888; }

.result-list .r-item { padding: 5px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.result-list .r-item .score { color: #d33; font-weight: 700; margin: 0 4px; }

.sfzc-match {
  padding: 8px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 6px; font-size: 12px;
}
.sfzc-match .picks { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.sfzc-match .pcode {
  border: 1px solid #ccc; border-radius: 6px; padding: 3px 10px; cursor: pointer; background: #fff;
}
.sfzc-match .pcode.sel { background: #d33; color: #fff; border-color: #d33; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99;
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }
.modal-box {
  background: #fff; border-radius: 12px; padding: 16px; width: 88%; max-width: 380px;
}
.modal-box h3 { margin-bottom: 8px; font-size: 16px; }
.modal-box .tip { font-size: 12px; color: #777; margin-bottom: 10px; line-height: 1.5; }

footer { text-align: center; color: #999; font-size: 11px; padding: 14px 12px; }
.disclaimer { line-height: 1.5; }

/* ===== 冷门防范分析 ===== */
.upset-overview {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 10px;
}
.upset-risk-badge {
  color: #fff; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.upset-overall { font-size: 14px; margin-left: auto; }
.upset-list { display: flex; flex-direction: column; gap: 6px; }
.upset-match {
  border-radius: 8px; padding: 8px 10px;
  border-left: 3px solid #cbd5e1; font-size: 12px;
}
.upset-match.risk-high { border-left-color: #dc2626; background: #fef2f2; }
.upset-match.risk-mid { border-left-color: #f59e0b; background: #fffbeb; }
.upset-match.risk-low { border-left-color: #3b82f6; background: #eff6ff; }
.upset-match.risk-none { border-left-color: #059669; background: #f0fdf4; }
.risk-tag {
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; color: #fff;
}
.risk-tag-high { background: #dc2626; }
.risk-tag-mid { background: #f59e0b; }
.risk-tag-low { background: #3b82f6; }
.risk-tag-none { background: #059669; }
.upset-probs {
  font-size: 12px; color: #475569; margin: 4px 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.upset-suggest { font-size: 12px; color: #334155; margin-top: 2px; }
.upset-prevent {
  font-size: 12px; color: #dc2626; font-weight: 600; margin-top: 2px;
}

/* ===== 最终推荐 ===== */
.final-summary {
  background: #f8f9fb; border-radius: 8px; padding: 10px;
  margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.final-risk { font-size: 14px; }
.final-cost { font-size: 14px; }
.final-fit { color: #2a7; font-weight: 600; }
.final-over { color: #d33; font-weight: 600; }
.final-excluded {
  font-size: 12px; color: #64748b; margin-bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.excl-item {
  background: #f0f2f5; border-radius: 4px; padding: 2px 6px;
  font-size: 11px;
}
.final-list { display: flex; flex-direction: column; gap: 6px; }
.final-match {
  border-radius: 8px; padding: 8px 10px;
  border-left: 3px solid #cbd5e1; font-size: 12px;
}
.final-match.risk-high { border-left-color: #dc2626; background: #fef2f2; }
.final-match.risk-mid { border-left-color: #f59e0b; background: #fffbeb; }
.final-match.risk-low { border-left-color: #3b82f6; background: #eff6ff; }
.final-match.risk-none { border-left-color: #059669; background: #f0fdf4; }
.conf-tag {
  font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #fff;
}
.conf-high { background: #059669; }
.conf-mid { background: #3b82f6; }
.conf-low { background: #f59e0b; }
.conf-pending, .conf-- { background: #94a3b8; }
.final-pick { font-size: 14px; font-weight: 700; margin: 4px 0; }
.final-suggest { font-size: 11px; color: #64748b; }
.sfzc-a-reason {
  font-size: 11px; color: #334155; margin-top: 3px; line-height: 1.5;
  padding: 3px 6px; background: #f8f9fb; border-radius: 4px;
}
.sfzc-final-advice {
  margin-top: 8px; padding: 8px 10px; background: #f0fdf4;
  border-radius: 6px; font-size: 12px; color: #166534; line-height: 1.6;
  border: 1px solid #86efac;
}

/* ===== 往期推荐回顾 ===== */
.archive-item { margin-bottom: 12px; }
.archive-head {
  background: #f0f2f5; padding: 6px 10px;
  border-radius: 8px; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 6px;
}
.archive-head .btn.danger.small { flex-shrink: 0; padding: 2px 8px; }
.plan-box {
  border: 1px solid #eee; border-radius: 8px;
  margin-top: 6px; padding: 8px;
  font-size: 13px;
}
.plan-box.allhit { border-color: #2a7; background: #f0fdf4; }
.plan-title { font-weight: 700; margin-bottom: 4px; }
.m-hit { color: #2a7; font-weight: 700; }
.m-miss { color: #d33; font-weight: 700; }
.m-pending { color: #aaa; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tbl th, table.tbl td { border: 1px solid #e5e5e5; padding: 5px 6px; text-align: center; }
table.tbl th { background: #f7f8fa; color: #666; }
.hit { background: #fde8e8 !important; color: #c22; font-weight: 700; }
.pending { color: #aaa; }

/* ===== 推荐记录命中对照 ===== */
.recomm-item {
  padding: 8px 0; border-bottom: 1px solid #f0f0f0;
}
.recomm-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 4px;
}
.recomm-head .btn.danger.small { flex-shrink: 0; }
.recomm-head .issue { color: #555; font-weight: 600; }
.recomm-head .recomm-draw { color: #888; font-size: 11px; }
.recomm-compound-tag {
  display: inline-block; background: #1861c1; color: #fff;
  padding: 0 6px; border-radius: 8px; font-size: 10px;
  font-weight: 700; margin-left: 6px; vertical-align: middle;
}
.recomm-row {
  padding: 3px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.ball-hit {
  background: #d33 !important; box-shadow: 0 0 4px rgba(221,51,51,.5);
  animation: pop 0.3s ease;
}
@-webkit-keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.hit-badge {
  display: inline-block; background: #d33; color: #fff;
  padding: 1px 8px; border-radius: 10px; font-size: 11px;
  font-weight: 700; margin-left: 4px;
}
.hit-partial {
  display: inline-block; background: #f0f2f5; color: #888;
  padding: 1px 6px; border-radius: 10px; font-size: 11px;
  margin-left: 4px;
}
.hit-miss {
  display: inline-block; color: #ccc; font-size: 14px; margin-left: 4px;
}
.recomm-draw-info {
  font-size: 11px; color: #999; margin-top: 3px; padding-left: 2px;
}

/* ===== 号码走势分析 ===== */
.trend-result-area { margin-top: 8px; }
.trend-wrap { font-size: 12px; }

/* ===== 走位图一键研判 ===== */
.judge-box { background: #fff8f0; border: 1px solid #f0d9b8; border-radius: 10px; padding: 12px; margin-top: 8px; }
.judge-title { font-size: 13px; font-weight: 600; color: #b45309; margin-bottom: 8px; }
.judge-pick { border-top: 1px dashed #f0d9b8; padding: 8px 0 4px; }
.judge-pick:first-of-type { border-top: none; padding-top: 0; }
.judge-pick-title { font-size: 11px; color: #b45309; font-weight: 600; margin-bottom: 4px; }
.judge-nums { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 10px; }
.judge-nums .ball-red, .judge-nums .ball-blue { width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
.judge-lines { font-size: 12px; color: #555; line-height: 1.8; }
.judge-lines br { line-height: 2.2; }

/* ===== 胜负彩一键研判 ===== */
.sfzc-judge-box { margin-top: 8px; }
.sfzc-judge-section {
  background: #f8f9fb; border-radius: 10px; padding: 12px; margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}
.sfzc-judge-header {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 8px; font-size: 13px;
}
.sfzc-judge-title { font-weight: 700; font-size: 14px; color: #1e293b; }
.sfzc-judge-risk { font-weight: 600; font-size: 12px; }
.sfzc-judge-cost { font-size: 12px; color: #475569; }
.sfzc-judge-excluded {
  font-size: 11px; color: #64748b; margin-bottom: 6px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.sfzc-judge-list { display: flex; flex-direction: column; gap: 5px; }
.sfzc-judge-match {
  border-radius: 6px; padding: 6px 10px; font-size: 12px;
  background: #fff;
}
.sfzc-judge-match-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 4px;
}
.sfzc-judge-pick { font-weight: 700; color: #d33; font-size: 13px; }
.sfzc-judge-suggest { font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.5; }

/* 走位图表格 */
.trend-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; border-radius: 8px; border: 1px solid #eee; }
.trend-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 500px; }
.trend-table th { background: #f7f8fa; color: #666; padding: 4px 3px; text-align: center; border: 1px solid #e5e5e5; white-space: nowrap; position: sticky; top: 0; }
.trend-table td { padding: 4px 3px; text-align: center; border: 1px solid #eee; white-space: nowrap; }
.trend-issue { color: #888; font-size: 10px; min-width: 56px; }
.trend-hit { background: #d33; color: #fff; font-weight: 700; border-radius: 3px; }
.trend-miss { color: #ccc; font-size: 10px; }

/* 号码温度图 / 遗漏统计 */
.trend-section { margin-bottom: 14px; }
.trend-section-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
.freq-cell { border-radius: 6px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; }
.freq-cell.hot { border: 2px solid #d33; }
.freq-cell.cold { border: 2px solid #3b82f6; }
.freq-num { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); line-height: 1.2; }
.freq-val { font-size: 10px; color: rgba(255,255,255,.85); line-height: 1.2; }

/* 遗漏统计格子 */
.miss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 4px; }
.miss-cell { border-radius: 6px; padding: 5px 2px; text-align: center; display: flex; flex-direction: column; align-items: center; min-height: 40px; }
.miss-cell.warn { border: 2px solid #f59e0b; }

/* 综合指标 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.stat-box { background: #f8f9fb; border-radius: 8px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; }
.stat-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.stat-value { font-size: 16px; font-weight: 700; color: #333; }

/* 尾数分布 */
.tail-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 64px; align-items: flex-end; }
.tail-cell { background: #f0f2f5; border-radius: 4px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; min-height: 40px; }
.tail-cell .freq-num { color: #666; font-size: 10px; text-shadow: none; z-index: 1; }
.tail-cell .freq-val { color: #888; font-size: 9px; z-index: 1; position: relative; }
.tail-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(59,130,246,.25); border-radius: 4px 4px 0 0; }

/* 号码对 */
.pairs-list { display: flex; flex-wrap: wrap; gap: 5px; }
.pair-item { background: #f8f9fb; border-radius: 6px; padding: 4px 8px; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.pair-rank { background: #d33; color: #fff; width: 18px; height: 18px; border-radius: 50%; text-align: center; line-height: 18px; font-size: 10px; }
.pair-nums { font-weight: 600; color: #333; }
.pair-cnt { color: #888; font-size: 11px; }

/* 蓝球分析 */
.freq-grid.blue { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }

/* ===== 复式生成器 ===== */
.compound-result-area { margin-top: 8px; }
.compound-result { font-size: 12px; }
.compound-numbers { margin-bottom: 8px; }
.compound-line { padding: 4px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.compound-label { color: #666; font-size: 12px; white-space: nowrap; margin-right: 2px; }
.compound-line .ball-red, .compound-line .ball-blue, .compound-line .ball-3d { width: 24px; height: 24px; line-height: 24px; font-size: 11px; }
.compound-summary { background: #f0f4ff; border-radius: 8px; padding: 8px 12px; display: flex; gap: 16px; margin-bottom: 8px; }
.compound-bets { font-size: 16px; font-weight: 700; color: #1861c1; }
.compound-cost { font-size: 16px; font-weight: 700; color: #d33; }
.compound-info { background: #f8f9fb; border-radius: 8px; padding: 8px 10px; }
.info-line { font-size: 11px; color: #666; line-height: 1.6; }

/* ===== 足球推荐记录卡片 ===== */
.fb-archive-card {
  background: #fff; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.fb-archive-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0;
}
.fb-archive-head .btn.danger.small { flex-shrink: 0; }
.fb-archive-kind {
  font-size: 14px; font-weight: 700; color: #d33;
}
.fb-archive-time {
  font-size: 11px; color: #999;
}
.fb-plan-card {
  background: #f8f9fb; border-radius: 8px; padding: 8px 10px;
  margin-bottom: 8px;
}
.fb-plan-card:last-child { margin-bottom: 0; }
.fb-plan-title {
  font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.fb-plan-tag {
  font-size: 10px; padding: 1px 7px; border-radius: 10px;
  font-weight: 700; color: #fff; margin-left: 4px;
}
.fb-plan-allhit { background: #2a7; }
.fb-plan-miss { background: #d33; }
.fb-plan-pending { background: #f59e0b; }
.fb-plan-meta {
  font-size: 11px; color: #888; margin-bottom: 6px;
}
.fb-entry {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 5px 0; border-top: 1px solid #f0f0f0; font-size: 12px;
}
.fb-entry.hit { background: #f0fdf4; border-radius: 4px; padding-left: 4px; }
.fb-entry.miss { background: #fef2f2; border-radius: 4px; padding-left: 4px; }
.fb-entry-num {
  color: #888; font-size: 11px; min-width: 30px;
}
.fb-entry-teams {
  font-weight: 600; color: #333;
}
.fb-entry-play {
  color: #1861c1; font-size: 11px;
}
.fb-entry-odds {
  color: #d33; font-size: 11px;
}
.fb-entry-result {
  color: #555; font-size: 11px; margin-left: 4px;
}
.fb-hit-badge {
  background: #2a7; color: #fff; padding: 1px 8px;
  border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 4px;
}
.fb-miss-badge {
  background: #d33; color: #fff; padding: 1px 8px;
  border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 4px;
}
.fb-pending-badge {
  background: #f59e0b; color: #fff; padding: 1px 8px;
  border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 4px;
}

/* ===== 综合分析概览 ===== */
.fb-analysis-overview {
  background: #fff; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.fb-analysis-title {
  font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 2px solid #d33;
}
.fb-analysis-stats {
  display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap;
}
.fb-stat {
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.fb-stat-safe { background: #f0fdf4; color: #2a7; border: 1px solid #2a7; }
.fb-stat-guard { background: #fffbeb; color: #f59e0b; border: 1px solid #f59e0b; }
.fb-stat-excl { background: #fef2f2; color: #d33; border: 1px solid #d33; }
.fb-analysis-list {
  max-height: 400px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.fb-analysis-row {
  padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; font-size: 12px;
  border-left: 3px solid #cbd5e1;
}
.fb-a-safe { border-left-color: #2a7; background: #f0fdf4; }
.fb-a-guard { border-left-color: #f59e0b; background: #fffbeb; }
.fb-a-excl { border-left-color: #d33; background: #fef2f2; opacity: .7; }
.fb-a-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px;
}
.fb-a-num { color: #888; font-size: 11px; min-width: 40px; }
.fb-a-teams { font-weight: 600; color: #333; flex: 1; }
.fb-a-strat {
  font-size: 10px; padding: 1px 7px; border-radius: 10px;
  font-weight: 700; color: #fff;
}
.fb-strat-safe { background: #2a7; }
.fb-strat-guard { background: #f59e0b; }
.fb-strat-excl { background: #d33; }
.fb-a-detail {
  display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: #666;
}
.fb-a-pick { color: #1861c1; font-weight: 600; }
.fb-a-draw {
  color: #b45309; font-weight: 600; background: #fffbeb;
  padding: 1px 6px; border-radius: 4px; border: 1px solid #fcd34d;
}
.fb-a-signals {
  font-size: 10px; color: #dc2626; margin-top: 2px;
  padding: 2px 6px; background: #fef2f2; border-radius: 4px;
}
.fb-a-reason {
  font-size: 10px; color: #666; margin-top: 3px; line-height: 1.5;
  padding: 2px 6px; background: #f8f9fb; border-radius: 4px;
}
/* 盘口分析（让球盘） */
.fb-a-hhad {
  margin-top: 3px; font-size: 11px; color: #1e40af; background: #eff6ff;
  padding: 3px 6px; border-radius: 4px; border-left: 3px solid #3b82f6;
  line-height: 1.5;
}
.fb-a-hhad .fb-a-line {
  font-weight: 700; color: #d33; padding: 0 3px;
  background: #fff; border-radius: 3px; border: 1px solid #fca5a5;
}
/* 半全场盘口参考 */
.fb-a-hafu {
  margin-top: 3px; font-size: 11px; color: #6d28d9; background: #f5f3ff;
  padding: 3px 6px; border-radius: 4px; border-left: 3px solid #8b5cf6;
  line-height: 1.5;
}

/* ===== 本期最终推荐 ===== */
.fb-final-rec {
  background: #fff; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 2px solid #2a7;
}
.fb-final-title {
  font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 2px solid #2a7;
}
.fb-final-sec { margin-bottom: 6px; }
.fb-final-sec-tag {
  display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
  padding: 1px 8px; border-radius: 10px; margin-bottom: 2px;
}
.fb-tag-dan { background: #2a7; }
.fb-tag-stable { background: #1861c1; }
.fb-tag-risk { background: #d33; }
.fb-final-item {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
  padding: 3px 0; font-size: 11px; border-bottom: 1px dashed #f0f0f0;
}
.fb-final-num { color: #888; font-size: 10px; min-width: 40px; }
.fb-final-teams { font-weight: 600; color: #333; flex: 1; }
.fb-final-pick { color: #1861c1; font-weight: 600; }
.fb-final-reason {
  flex-basis: 100%; color: #888; font-size: 10px; line-height: 1.5;
}
.fb-final-advice {
  margin-top: 6px; padding: 6px 8px; background: #f0fdf4;
  border-radius: 6px; font-size: 11px; color: #166534; line-height: 1.6;
}

/* 串关方案结果区域 */
.fb-plan-result {
  background: #f8f9fb; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
}
.fb-plan-entries {
  margin-top: 6px; padding-top: 4px; border-top: 1px dashed #e5e5e5;
}
.fb-plan-entry {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 4px; padding: 3px 0; font-size: 11px;
}
.fb-entry-reason {
  color: #888; font-size: 10px;
}

/* 胜负彩最近5期开奖 */
.sfzc-recent-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sfzc-recent-item {
  background: #f8f9fb; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px;
}
.sfzc-recent-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; margin-bottom: 6px; color: #1e293b;
}
.sfzc-recent-head .issue { font-weight: 700; }
.sfzc-recent-res {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.sfzc-res {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff;
}
.sfzc-res.res-3 { background: #d33; }
.sfzc-res.res-1 { background: #64748b; }
.sfzc-res.res-0 { background: #1861c1; }

/* 缩水方案 */
.sfzc-shrink-box { margin-top: 8px; }
.sfzc-shrink-summary {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px;
  padding: 8px 10px; margin-bottom: 8px; font-size: 13px; line-height: 1.8;
}
.sfzc-shrink-removed {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
  padding: 8px 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.7;
}
.sfzc-shrink-detail {
  font-size: 12px; line-height: 1.7; color: #334155;
}