/* ============ 乐彩网走势分析网站样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #eef2f7;
  --bg-card: #ffffff;
  --bg-card2: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-dim: #64748b;
  --gold: #d97706;
  --red: #dc2626;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --radius: 12px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 40px;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 17px; font-weight: 700; white-space: nowrap; }
.topbar h1 .sub { display: block; font-size: 11px; font-weight: 400; color: var(--text-dim); margin-top: 2px; }
.lottery-tabs { display: flex; gap: 6px; }
.tab {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-dim); font-size: 14px; cursor: pointer;
}
.tab.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: #3b82f6; font-weight: 700; }
.spacer { flex: 1; }
.auto-select {
  padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 12px; cursor: pointer;
}
.auto-select.on { border-color: #22c55e; color: #86efac; }
.sync-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.btn {
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 14px; font-weight: 700;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { padding: 5px 10px; font-size: 12px; }

/* ---------- 卡片 ---------- */
#app { max-width: 1560px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.card h2 {
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.card h2 .tag { font-size: 11px; font-weight: 400; color: var(--text-dim); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
/* 分组小节容器 */
.section-group { background: var(--bg-card2); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.section-group > .dim-title:first-child { margin-top: 0; }

/* ---------- 加载/空态 ---------- */
.loading-mask { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px;
  border: 3px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 最新一期 ---------- */
.latest { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.latest .info { min-width: 150px; }
.latest .issue { font-size: 22px; font-weight: 800; }
.latest .date { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.balls { display: flex; gap: 10px; }
.ball {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.ball .pos { font-size: 10px; font-weight: 400; opacity: .85; }
.ball.bai { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ball.shi { background: linear-gradient(135deg, #f59e0b, #b45309); }
.ball.ge  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.metric {
  background: var(--bg-card2); border-radius: 8px; padding: 6px 12px; text-align: center; min-width: 58px;
}
.metric .v { font-size: 17px; font-weight: 800; color: var(--blue); }
.metric .k { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ---------- 结论胆杀 ---------- */
.dan-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dan-row .label { font-size: 13px; color: var(--text-dim); min-width: 86px; }
.numbadge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px;
  font-size: 22px; font-weight: 800;
}
.numbadge.dan { background: rgba(251,191,36,.15); border: 1px solid var(--gold); color: var(--gold); }
.numbadge.dan.top3 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1205; }
.numbadge.kill { background: rgba(248,113,113,.12); border: 1px solid var(--red); color: var(--red); text-decoration: line-through; }
.numbadge .score { font-size: 10px; font-weight: 400; margin-left: 5px; opacity: .8; }
.pos-dan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 600px) { .pos-dan { grid-template-columns: 1fr; } }
.pos-dan .item {
  background: var(--bg-card2); border-radius: 8px; padding: 8px 10px; font-size: 13px;
  display: flex; flex-direction: column; gap: 4px;
}
.pos-dan .item .pos-name { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.pos-dan .item .pos-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pos-dan .item b { font-size: 15px; }
.pos-dan .item .dan-d { color: var(--gold); }
.pos-dan .item .dan-primary { background: rgba(251,191,36,.18); padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(251,191,36,.5); font-weight: 800; }
.pos-dan .item .kill-d { color: var(--red); }
.pos-dan .item .sep { color: var(--text-dim); font-size: 11px; margin: 0 2px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip-info {
  background: var(--bg-card2); border-radius: 6px; padding: 5px 10px; font-size: 12px;
  line-height: 1.5;
}
.chip-info b { color: var(--blue); font-weight: 700; }

/* dim-title 加左侧竖条，增强层次感 */
.dim-title {
  font-size: 12.5px; font-weight: 700; color: var(--purple); margin: 10px 0 6px;
  padding-left: 8px; border-left: 3px solid var(--purple); line-height: 1.3;
}
.mini-note { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.6; }

/* ---------- 自动统计排行榜 ---------- */
.leaderboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.leaderboard-group { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; min-width: 0; }
.leaderboard-group-title { color: var(--purple); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.leaderboard-row { display: grid; grid-template-columns: minmax(72px, 1fr) auto; gap: 3px 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-name { color: var(--text); }
.leaderboard-rate { color: var(--blue); white-space: nowrap; }
.leaderboard-recent, .leaderboard-streak { grid-column: 1 / -1; color: var(--text-dim); font-size: 11px; }
.leaderboard-recent { color: var(--gold); }
.leaderboard-card .empty-tip { color: var(--text-dim); padding: 8px 0; font-size: 12px; }
@media (max-width: 900px) { .leaderboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .leaderboard-grid { grid-template-columns: 1fr; } }

/* ---------- 详细推理 lines ---------- */
.reason-lines {
  background: #0b1220; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; font-size: 12.5px; line-height: 1.9; color: #cbd5e1;
  white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow-y: auto;
}
details summary {
  cursor: pointer; color: var(--blue); font-size: 13px; padding: 6px 0; user-select: none;
}

/* ---------- 大底 ---------- */
.dadi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dadi-card {
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; cursor: pointer; transition: border-color .15s;
}
.dadi-card:hover { border-color: var(--blue); }
.dadi-card .t { font-size: 13px; font-weight: 700; }
.dadi-card .r { font-size: 12px; color: var(--text-dim); margin: 4px 0; }
.dadi-card .r b.good { color: var(--green); }
.dadi-card .r b.bad { color: var(--red); }
.dadi-card .copy { font-size: 11px; color: var(--blue); }
.dadi-card .killed { font-size: 11px; color: var(--red); margin-top: 3px; }
/* 精排压缩档金色强调 */
.dadi-card.dadi-rank {
  border: 1.5px solid rgba(214, 158, 46, .75);
  background: linear-gradient(180deg, rgba(214,158,46,.10), var(--bg-card2));
  box-shadow: 0 0 0 1px rgba(214,158,46,.18);
}
.dadi-card.dadi-rank .t { color: #b87d1a; }
tr.row-rank { background: rgba(214, 158, 46, .08); }
tr.row-rank td:first-child b { color: #b87d1a; }

/* ---------- 点彩共识大底 ---------- */
.dbt-btnbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.dbt-btnbar .btn { padding: 6px 12px; font-size: 12.5px; }
.dbt-warn {
  background: rgba(214, 158, 46, .12); border: 1px solid rgba(214, 158, 46, .45);
  color: #b87d1a; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0;
}
.dbt-majority { font-size: 13px; margin: 8px 0; }
.dbt-majority .dan-d { color: var(--red); font-size: 14px; letter-spacing: 1px; }
.dadi-card.dadi-old { opacity: .78; border: 1px dashed var(--border, #666); background: var(--bg-card2); }
.dadi-card.dadi-old .t { color: var(--text-dim, #999); }
.dbt-miss-banner {
  background: rgba(220, 56, 56, .10); border: 1px solid rgba(220, 56, 56, .5);
  color: #c23b3b; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0;
}
.dbt-hit-banner {
  background: rgba(46, 160, 90, .10); border: 1px solid rgba(46, 160, 90, .45);
  color: #1f8a4c; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0;
}

/* ---------- 回测指标 ---------- */
.bt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bt-tile { background: var(--bg-card2); border-radius: 10px; padding: 10px; text-align: center; }
.bt-tile .v { font-size: 22px; font-weight: 800; color: var(--green); }
.bt-tile .v.mid { color: var(--gold); }
.bt-tile .k { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 5px 8px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-dim); font-weight: 600; background: var(--bg-card2); position: sticky; top: 0; }
tbody tr:nth-child(even) td { background: rgba(30,41,59,.4); }
td.dan-cell { color: var(--gold); font-weight: 800; }
td.kill-cell { color: var(--red); font-weight: 700; }
.smart-concl { background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(56,189,248,.06)); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.smart-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.85; color: var(--text); font-family: 'Microsoft YaHei', sans-serif; }
.smart-text b { color: var(--gold); }
tr:hover td { background: rgba(56,189,248,.06); }
.mark-ok { color: var(--green); font-weight: 800; }
.mark-mid { color: var(--gold); }
.mark-bad { color: var(--red); }

/* ---------- 专家预测 ---------- */
.exp-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.exp-auth { font-size: 12.5px; color: var(--text-dim); }
.exp-auth b { color: var(--green); }
.bt-metric { background: var(--bg-card2); border-radius: 8px; padding: 8px 12px; }
.bt-metric .v { font-size: 18px; font-weight: 800; }
.edge-good { color: var(--green); font-weight: 700; }
.edge-bad { color: var(--red); }
.cons-digit { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.cons-digit .d {
  width: 30px; height: 26px; border-radius: 6px; text-align: center; line-height: 26px;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.cons-digit .d.dan { background: rgba(251,191,36,.18); color: var(--gold); border: 1px solid rgba(251,191,36,.5); }
.cons-digit .d.sha { background: rgba(248,113,113,.14); color: var(--red); border: 1px solid rgba(248,113,113,.5); }
.cons-digit .bar { height: 12px; border-radius: 4px; min-width: 3px; }
.cons-digit .bar.dan { background: linear-gradient(90deg, rgba(251,191,36,.3), var(--gold)); }
.cons-digit .bar.sha { background: linear-gradient(90deg, rgba(248,113,113,.3), var(--red)); }
.cons-digit .meta { font-size: 11.5px; color: var(--text-dim); }
.exp-avatar { width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; margin-right: 5px; }
.exp-name { font-weight: 700; white-space: nowrap; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.subtab { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--bg-card2); border: 1px solid var(--border); cursor: pointer; color: var(--text-dim); }
.subtab.on { background: rgba(56,189,248,.18); border-color: var(--blue); color: var(--blue); font-weight: 700; }

/* ---------- 网友预测 ---------- */
.cmb-textarea {
  width: 100%; min-height: 130px; resize: vertical;
  background: #0b1220; color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; font-size: 13px; line-height: 1.7; font-family: inherit;
}
.cmb-textarea:focus { outline: none; border-color: var(--blue); }
.cmb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.btn.danger { background: linear-gradient(135deg, #dc2626, #991b1b); }
.btn.ghost { background: var(--bg-card2); border: 1px solid var(--border); }
.cmb-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rank-row .d {
  width: 30px; height: 26px; border-radius: 6px; text-align: center; line-height: 26px;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.rank-row .d.dan { background: rgba(251,191,36,.18); color: var(--gold); border: 1px solid rgba(251,191,36,.5); }
.rank-row .d.kill { background: rgba(248,113,113,.14); color: var(--red); border: 1px solid rgba(248,113,113,.5); }
.rank-row .d.pos { background: rgba(167,139,250,.15); color: var(--purple); border: 1px solid rgba(167,139,250,.5); }
.rank-row .bar { height: 14px; border-radius: 4px; min-width: 3px; transition: width .3s; }
.rank-row .bar.dan { background: linear-gradient(90deg, rgba(251,191,36,.35), var(--gold)); }
.rank-row .bar.kill { background: linear-gradient(90deg, rgba(248,113,113,.3), var(--red)); }
.rank-row .bar.pos { background: linear-gradient(90deg, rgba(167,139,250,.3), var(--purple)); }
.rank-row .c { font-size: 12px; color: var(--text-dim); min-width: 34px; }
.cmb-section-title { font-size: 13px; font-weight: 700; margin: 10px 0 6px; }
.cmb-empty { color: var(--text-dim); font-size: 12.5px; padding: 14px 0; text-align: center; }

/* ---------- 两码 ---------- */
.lm-list { display: flex; gap: 6px; flex-wrap: wrap; }
.lm {
  background: var(--bg-card2); border-radius: 6px; padding: 4px 9px; font-size: 12.5px;
}
.lm.hot { border: 1px solid rgba(251,191,36,.5); color: var(--gold); }
.lm.cold { border: 1px solid rgba(56,189,248,.4); color: var(--blue); }
.lm .c { font-size: 10px; opacity: .75; margin-left: 3px; }

/* ---------- 浮动按钮 / 提示 ---------- */
.fab-stack { position: fixed; right: 14px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fab {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; font-size: 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.alert-banner {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: linear-gradient(135deg, #16a34a, #15803d); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); cursor: pointer; max-width: 92vw; text-align: center;
  animation: drop .3s ease;
}
@keyframes drop { from { top: 0; opacity: 0; } to { top: 64px; opacity: 1; } }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 80;
  padding: 10px 20px; border-radius: 10px; font-size: 13.5px;
  background: #ffffff; color: #1e293b; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.toast.ok { border-color: #22c55e; color: #15803d; }
.toast.err { border-color: #ef4444; color: #b91c1c; }

/* 系统状态横幅：醒目红色，用于通知后台问题 */
.system-banner {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 65;
  background: linear-gradient(135deg, #b91c1c, #991b1b); color: #fff;
  padding: 10px 16px; font-size: 13px; line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  border-bottom: 2px solid #fca5a5;
  max-height: 240px; overflow-y: auto;
}
.system-banner .sb-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.system-banner .sb-close { cursor: pointer; padding: 2px 10px; background: rgba(255,255,255,.2); border-radius: 4px; font-size: 12px; }
.system-banner .sb-close:hover { background: rgba(255,255,255,.35); }
.system-banner ul { margin: 0; padding-left: 22px; }
.system-banner li { margin: 4px 0; }
.system-banner li.err { color: #fef08a; font-weight: 600; }
.system-banner li.warn { color: #fed7aa; }
.system-banner.level-warn { background: linear-gradient(135deg, #b45309, #92400e); border-bottom-color: #fde68a; }


.disclaimer { text-align: center; color: var(--text-dim); font-size: 12px; max-width: 1100px; margin: 18px auto 0; padding: 0 14px; line-height: 1.8; }

/* ---------- 智能预测模块 ---------- */
.pred-result {
  background: var(--bg-card2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 60px;
}
.pred-result .pred-digits {
  font-size: 34px;
  font-weight: 800;
  font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 8px;
  padding: 4px 0;
}
.pred-result .pred-meta-row {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pred-result .pred-meta-row b { color: var(--text); }
.pred-result .pred-conf {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
}
.pred-result .pred-conf b { font-size: 14px; }
.pred-result .conf-bar {
  height: 5px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.pred-result .conf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.pred-result .pred-cands,
.pred-result .pred-kill {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
}
.pred-result .pred-alts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pred-result .pred-alt-label { font-size: 11px; color: var(--text-dim); }
.pred-result .pred-alt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 12px 2px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(255,255,255,.03);
}
.pred-result .pred-alt small { font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--text-dim); margin-top: 1px; }
.pred-result .pred-signals {
  margin: 8px auto 0;
  padding: 8px 12px;
  list-style: none;
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-card);
  border-radius: 8px;
  text-align: left;
}
.pred-result .pred-signals li::before { content: '• '; color: var(--blue); }
.pred-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pred-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.pred-stat {
  background: var(--bg-card2);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--border);
}
.pred-stat .v {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Cascadia Code', monospace;
}
.pred-stat .v.green { color: var(--green); }
.pred-stat .v.gold { color: var(--gold); }
.pred-stat .v.red { color: var(--red); }
.pred-stat .v.purple { color: var(--purple); }
.pred-stat .v.blue { color: var(--blue); }
.pred-stat .k {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}
.pred-substats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.pred-substats > div {
  background: var(--bg-card2);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}
.pred-substats b { color: var(--gold); font-size: 13px; }
.pred-history { margin-top: 4px; }
.pred-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 6px;
}
.pred-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--bg-card2);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  flex-wrap: wrap;
}
.pred-item .pred-num {
  font-family: 'Cascadia Code', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold);
}
.pred-item .arrow { color: var(--text-dim); }
.pred-item .actual-num {
  font-family: 'Cascadia Code', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--green);
}
.pred-item .hit-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.pred-item .hit-badge.full { background: rgba(74,222,128,.18); color: var(--green); border: 1px solid rgba(74,222,128,.4); }
.pred-item .hit-badge.partial { background: rgba(251,191,36,.18); color: var(--gold); border: 1px solid rgba(251,191,36,.4); }
.pred-item .hit-badge.miss { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.4); }
.pred-item .hit-badge.pending { background: rgba(148,163,184,.15); color: var(--text-dim); border: 1px solid rgba(148,163,184,.4); }
.pred-item .pred-detail { font-size: 11px; color: var(--text-dim); flex: 1; }
.pred-item .pos-hit { font-size: 10px; color: var(--text-dim); }
.pred-item .pred-meta { font-size: 10px; color: var(--text-dim); }

@media (max-width: 600px) {
  .pred-substats { grid-template-columns: repeat(3, 1fr); }
  .pred-result .pred-digits { font-size: 28px; letter-spacing: 5px; }
}

/* ---------- 历史命中记录序列格 ---------- */
.seq-track {
  display: inline-flex;
  gap: 2px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.seq-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'JetBrains Mono', monospace;
  cursor: default;
  border: 1px solid var(--border);
}
.seq-h3 { background: rgba(74,222,128,.32); color: var(--green); border-color: rgba(74,222,128,.7); }
.seq-h2 { background: rgba(251,191,36,.22); color: var(--gold); border-color: rgba(251,191,36,.6); }
.seq-h1 { background: rgba(56,189,248,.12); color: var(--blue); border-color: rgba(56,189,248,.4); }
.seq-h0 { background: rgba(248,113,113,.10); color: var(--red); border-color: rgba(248,113,113,.35); opacity: .85; }
.seq-pool {
  width: auto;
  min-width: 30px;
  padding: 0 5px;
  gap: 3px;
  letter-spacing: 0;
}
.seq-pool i { font-style: normal; font-size: 10px; font-weight: 700; }
.seq-backfill { border-style: dashed !important; opacity: 0.78; }
.seq-bug { outline: 2px solid #fb923c; outline-offset: -1px; border-color: #fb923c !important; }
.seq-rate {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- 多平台交叉验证 ---- */
.mp-cons-box { margin: 6px 0 10px; min-width: 0; }
/* 共识榜：宽屏类别盒两列并排，手机单列；盒内数字条目始终两列，整块纵向减半 */
.mp-cons-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.mp-cons-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 6px; }
.mp-cons-rows .cons-digit { margin-bottom: 0; min-width: 0; gap: 5px; }
.mp-cons-rows .cons-digit .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: #777; }
@media (min-width: 760px) {
  .mp-cons-grid { grid-template-columns: 1fr 1fr; }
}
.mp-vote { font-size: 11px; font-weight: bold; color: #888; background: #f0f0f0; border-radius: 10px; padding: 1px 7px; margin-right: 2px; white-space: nowrap; }
.mp-vote.hot { color: #fff; background: #e07b2e; }

/* 最终结论卡片 */
.mp-concl {
  display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px;
  padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(232,121,36,.05));
  border: 1px solid rgba(232,121,36,.25);
}
.mp-concl-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.mp-concl-lab { min-width: 168px; color: var(--text-dim); font-weight: 600; }
.mp-concl-val { font-weight: 800; font-size: 16px; letter-spacing: 2px; font-family: 'Courier New', monospace; }
.mp-concl-val.dan { color: var(--gold); }
.mp-concl-val.sha { color: var(--red); }
.mp-concl-val.confirm { color: #1a8a4a; font-size: 17px; }
.mp-concl-val.conflict { color: #d23b3b; }
.mp-concl-val.w5 { color: #6a4fc9; }
.mp-concl-val.bet { color: #c2410c; font-size: 17px; letter-spacing: 3px; background: rgba(194,65,12,.1); border-radius: 6px; padding: 2px 10px; }
/* 分层胆码标注：五码后的小徽标（金/银/铜） */
.mp-concl-val b { font-size: 17px; margin-right: 1px; }
.mp-concl-val .dan-lay { font-style: normal; font-size: 11px; letter-spacing: 0; font-family: inherit; font-weight: 700; border-radius: 4px; padding: 0 3px; margin: 0 6px 0 1px; vertical-align: 2px; }
.mp-concl-val .lay-gold { color: #8a5a00; background: linear-gradient(135deg, #ffe9a8, #ffd257); }
.mp-concl-val .lay-silver { color: #4a5568; background: linear-gradient(135deg, #eef2f7, #c8d2de); }
.mp-concl-val .lay-bronze { color: #6b3f1d; background: linear-gradient(135deg, #f3d3b3, #d9a06b); }

/* 命中率优化推荐卡片（mpPick · Mode E 动态排名） */
.mp-pick-card { margin: 12px 0; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(26,138,74,.45); background: linear-gradient(135deg, rgba(26,138,74,.08), rgba(26,138,74,.03)); }
.mp-pick-title { font-weight: 800; font-size: 15px; color: #146c3c; margin-bottom: 8px; }
.mp-pick-card .mp-concl-lab { min-width: 250px; font-weight: 700; color: #2c5e44; }
.mp-pick-card .mp-concl-val.mp-pool { color: #8a94a6; font-size: 14px; letter-spacing: 1px; }
.mp-pick-card .mp-concl-val.mp-pool b { font-size: 14px; }
.mp-pick-note-inline { font-style: normal; font-size: 11px; font-weight: 600; color: #b07a1e; margin-left: 8px; letter-spacing: 0; font-family: inherit; }
.mp-pick-fallback { margin-top: 6px; font-size: 12px; color: #b06a00; }
.mp-pick-stats { margin-top: 6px; font-size: 12px; color: #1a7f37; background: #eaf7ef; border-radius: 6px; padding: 5px 8px; }
@media (max-width: 480px) {
  .mp-pick-card .mp-concl-lab { min-width: 0; flex: 1 1 100%; margin-bottom: 2px; }
}

/* 采集通知 banner */
.mp-notice-box {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 14px;
  padding: 12px 16px; border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,.18);
  animation: mp-notice-pulse 1.6s ease-in-out 3;
}
.mp-notice-icon { font-size: 20px; }
.mp-notice-text { flex: 1; font-size: 14px; color: #1e40af; font-weight: 600; }
.mp-notice-close { cursor: pointer; font-size: 20px; color: #3b82f6; opacity: .6; padding: 0 4px; }
.mp-notice-close:hover { opacity: 1; }
@keyframes mp-notice-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(59,130,246,.18); }
  50% { box-shadow: 0 4px 20px rgba(59,130,246,.45); }
}

/* 今日推荐5注（英雄区，最醒目） */
.mp-bets-hero {
  margin: 10px 0 14px; padding: 16px 16px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea7a2c 100%);
  box-shadow: 0 6px 18px rgba(234,122,44,.32); border: 1px solid rgba(255,255,255,.35);
  display: flex; flex-direction: column; gap: 10px;
}
.mp-bets-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-bets-lab { color: #4a2400; font-weight: 800; font-size: 15px; min-width: 96px; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.mp-bets-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-bet-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 7px 12px; border-radius: 9px; font-size: 21px; letter-spacing: 3px;
  color: #7a2d00; background: rgba(255,255,255,.92);
  border: 1px solid rgba(122,45,0,.18);
  box-shadow: 0 2px 5px rgba(122,45,0,.22); font-family: 'Courier New', monospace;
}
.mp-bets-sha1 {
  margin-top: 2px; padding: 7px 10px; border-radius: 8px; font-size: 13px; line-height: 1.5;
  color: #5b2100; background: rgba(255,255,255,.78); border: 1px solid rgba(122,45,0,.2);
}
.mp-bets-sha1-off { color: #6b5a3e; background: rgba(255,255,255,.5); }
/* 20261104 排五定位5胆次级视觉（与3码并排，弱化显示） */
.mp-bet-chip-minor {
  min-width: 40px; padding: 4px 9px; font-size: 17px; letter-spacing: 2px;
  color: #6b5a3e; background: rgba(255,255,255,.6); border: 1px dashed rgba(122,45,0,.28);
  box-shadow: none;
}
.pl5-pos5-divider {
  margin: 10px 0 6px; text-align: center; font-size: 13px; letter-spacing: 1px;
  color: #6b5a3e; opacity: .85;
}
/* 交叉验证依据卡片降为次级视觉 */
.mp-concl {
  background: rgba(127,127,127,.06); border: 1px dashed rgba(127,127,127,.28);
}

/* 折叠的更多技术统计 */
.more-stats { padding: 0; overflow: hidden; }
.more-summary {
  cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14px; color: var(--text-dim);
  list-style: none; user-select: none;
}
.more-summary::-webkit-details-marker { display: none; }
.more-summary::before { content: '▸ '; color: var(--gold); }
details[open] .more-summary::before { content: '▾ '; }
details[open] .more-summary { border-bottom: 1px solid rgba(127,127,127,.18); }
.more-stats > .card, .more-stats > section { margin: 12px; }


.pk-chips{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.pk-chip{display:inline-block;padding:1px 6px;border-radius:4px;font-size:12px;font-weight:600;cursor:default}
.pk-chip.win{background:#1b5e20;color:#a5d6a7}
.pk-chip.mid{background:#5d4037;color:#ffcc80}
.pk-chip.lose{background:#7f1d1d;color:#ef9a9a}
.pk-chip.closed{background:#374151;color:#9ca3af}

/* ---------- 定位7码卡片（20261015） ---------- */
.pc-page-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pc-page-head h2{margin:0;flex:1;min-width:200px}
.pc-copy-all{flex-shrink:0}
.pc-card{padding:14px 16px}
.pc-head-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.pc-name{font-size:16px;font-weight:700}
.pc-tag{padding:2px 10px;border-radius:10px;font-size:12px;font-weight:700}
.pc-tag-nobuy{background:#fee2e2;color:#dc2626}
.pc-tag-buy{background:#dcfce7;color:#16a34a}
.pc-loss{color:#ea580c;font-size:13px}
.pc-maxloss{color:#6b7280;font-size:12px}
.pc-verify{margin:6px 0;font-size:13.5px;color:#111827}
.pc-seq-row{display:flex;gap:4px;flex-wrap:wrap;align-items:center;margin:6px 0 10px}
.pc-cell{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;user-select:none}
.pc-cell-hit{background:#dcfce7;color:#16a34a}
.pc-cell-miss{background:#fee2e2;color:#dc2626}
.pc-cell-na{background:#f3f4f6;color:#9ca3af;cursor:default}
.pc-cell-bt{opacity:.55;box-shadow:inset 0 0 0 1px #cbd5e1}
.pc-sub{display:inline-flex;gap:2px;margin-left:2px;padding:2px;background:#f9fafb;border-radius:6px;border:1px solid #e5e7eb}
.pc-sub-cell{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;border-radius:4px;font-size:10px;font-weight:700}
.pc-tip-row{display:flex;align-items:center;gap:10px;margin-top:4px}
.pc-copy{margin-left:auto;padding:2px 12px;font-size:12px}
.pc-grid{margin-top:6px}
.pc-row{display:flex;align-items:center;gap:5px;margin:6px 0;flex-wrap:wrap}
.pc-pos{width:22px;font-weight:700;color:#374151}
.pc-expert{min-width:64px;font-weight:700;color:#374151;white-space:nowrap}
.pc-num{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-weight:700;font-size:14px}
.pc-num-red{background:#dc2626;color:#fff}
.pc-num-gray{border:1.5px dashed #d1d5db;color:#9ca3af;background:transparent}
.pc-stat{margin-top:10px;padding-top:8px;border-top:1px dashed #e5e7eb;font-size:12.5px;color:#4b5563}
@media (max-width:480px){.pc-num{width:26px;height:26px;font-size:13px}.pc-row{gap:3px}}

/* ---------- 彩虹排五 固定Top3专家杀3码（20261020） ---------- */
.pl5-allhit{margin-top:6px;padding:10px 14px;background:linear-gradient(90deg,#fef9c3,#dcfce7);border:2px solid #22c55e;border-radius:8px;font-size:15px;font-weight:800;color:#15803d;text-align:center;letter-spacing:2px;animation:pl5-pulse 1.2s ease-in-out infinite}
@keyframes pl5-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.03);opacity:.9}}
.pl5-risk{margin-top:8px;padding:8px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;font-size:12.5px;color:#9a3412;line-height:1.6;width:100%}
.pl5-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:10px}
.pl5-card{padding:12px 14px}
.pl5-experts{margin:4px 0;font-size:12.5px;color:#374151;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pl5-experts .label{font-weight:700;color:#6b7280}
.pl5-expert{background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:1px 8px;font-weight:600;font-size:12px}
.pl5-experts-backup .pl5-expert{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.pl5-experts-backup .label{color:#d97706}
.pl5-votes{margin:4px 0;font-size:12.5px;color:#374151;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pl5-votes .label{font-weight:700;color:#6b7280}
.pl5-ballot{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:1px 8px;font-size:12px;color:#111827}
.pl5-ballot-none{color:#9ca3af;border-style:dashed}
.pl5-ballot-backup{background:#fffbeb;border-color:#f59e0b;color:#b45309;font-weight:600}
.pl5-tie{background:#fef9c3;color:#a16207;border-radius:6px;padding:1px 8px;font-size:12px;font-weight:700}

/* ---------- 三源定格数据进度（20261020） ---------- */
.fs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:10px}
.fs-card{padding:12px 14px}
.fs-bar{position:relative;margin:8px 0 4px;height:20px;background:#f3f4f6;border-radius:10px;overflow:hidden}
.fs-bar-fill{height:100%;background:linear-gradient(90deg,#60a5fa,#2563eb);border-radius:10px;transition:width .4s}
.fs-bar-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;color:#1e3a8a}
.fs-pos{margin-top:6px;font-size:12.5px;color:#374151;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fs-pos .label{font-weight:700;color:#6b7280}
.fs-chip{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:1px 8px;font-size:12px}
.fs-hit{background:#ecfdf5;border-color:#6ee7b7;color:#047857;font-weight:700}
.fs-miss{background:#fef2f2;border-color:#fca5a5;color:#b91c1c;font-weight:700}

/* ---------- 平台×玩法 投票7码分组（20261015） ---------- */
.pc-group-head{font-size:15px;font-weight:800;margin:16px 2px 8px;color:#111827}
/* 自适应多列：宽屏约5列、普通屏约4列、窄屏递减 */
.pc-grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.pc-group-head{margin:14px 0 8px;padding:6px 12px;border-left:4px solid #2563eb;background:#f1f5f9;border-radius:4px;font-weight:700;color:#1e293b;font-size:14px}
@media (max-width:640px){.pc-grid2{grid-template-columns:1fr}}
.pc-tag-pool{background:#fef3c7;color:#92400e}
.pc-tag-stale{background:#e0e7ff;color:#3730a3}
/* 统计板块各信号"今天"预测数字标签 + 格子流块间距（20261024h） */
.pc-tag-info{background:#e0edff;color:#1a56b0}
.hit-seq-block{padding:4px 0;border-bottom:1px dashed #e5e7eb}
.hit-seq-block:last-child{border-bottom:none}
/* ✓✗格子流折叠：默认显示2行，按钮展开全部（20261026g） */
/* hitseq-fold 已废弃：20261026h 改为按期数截断（近20期） */
.hitseq-toggle{margin:2px 0 10px;padding:2px 12px;font-size:12px;border:1px solid #cbd5e1;background:#f9fafb;border-radius:6px;cursor:pointer;color:#475569}
.pc-rest-note{font-size:12px;color:#64748b;margin:8px 2px 2px;line-height:1.7}
/* 单期跟单计划（20261108） */
.fp-box{margin-top:10px;padding-top:8px;border-top:1px dashed #cbd5e1}
.fp-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.fp-title{font-size:13px;font-weight:700;color:#334155}
.fp-tag-on{font-size:12px;padding:1px 8px;border-radius:10px;background:#dcfce7;color:#166534;font-weight:700}
.fp-tag-hot{font-size:12px;padding:1px 8px;border-radius:10px;background:#fee2e2;color:#b91c1c;font-weight:700}
.fp-active{font-size:13px;color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;padding:6px 8px;margin-bottom:6px}
.fp-btn{width:100%;font-size:12.5px;padding:7px 10px;line-height:1.5;white-space:normal;margin:0 0 6px}
.fp-btn-hot{background:#dc2626;color:#fff;border-color:#dc2626}
.fp-btn-stop{width:100%;font-size:12.5px;padding:7px 10px;background:#fff;color:#b91c1c;border:1px solid #fca5a5;margin:0 0 6px}
.fp-codes{font-size:12px;color:#1d4ed8;background:#eff6ff;border-radius:5px;padding:4px 7px;margin-bottom:6px;line-height:1.6;word-break:break-all}
.fp-sum{font-size:12px;color:#475569;margin:4px 0}
.fp-list{display:flex;flex-direction:column;gap:3px}
.fp-item{font-size:12px;padding:2px 6px;border-radius:4px}
.fp-item.ok{background:#dcfce7;color:#166534}
.fp-item.no{background:#f1f5f9;color:#64748b}
.fp-note{font-size:11px;color:#94a3b8;margin-top:6px;line-height:1.5}
.fp-mine{margin-top:10px}
.fp-mine-sum{font-size:13px;color:#334155;line-height:1.7;margin:4px 0 8px}
.fp-mine-list{display:flex;flex-direction:column;gap:4px}
.fp-mine-row{font-size:13px;padding:4px 8px;border-radius:5px;background:#f8fafc;color:#475569}
.fp-mine-row.on{background:#eff6ff;color:#1d4ed8;font-weight:700}
.fp-mine-row.ok{background:#dcfce7;color:#166534}
.fp-mine-row.no{background:#fef2f2;color:#b91c1c}
