/* =========================================================================
   AI 预测页样式 (选择比赛 → 开始AI预测)
   ========================================================================= */
/* 顶部 banner */
.ai-hero { padding: 26px 0 10px; }
.ai-hero-inner { display: flex; align-items: center; gap: 20px; background: linear-gradient(120deg, #141c2f, #0d1325); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 18px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ai-hero-logo img { width: 64px; height: 64px; }
.ai-hero-txt h1 { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.ai-hero-txt h1 .ai-badge { font-size: 12px; padding: 4px 12px; border-radius: 999px; color: var(--bg); background: linear-gradient(120deg, var(--gold), var(--gold-2)); letter-spacing: 1px; box-shadow: 0 6px 18px rgba(232,181,73,.35); }
.ai-hero-txt p { color: var(--text-2); margin-top: 6px; }

/* 主区双栏 */
.ai-main { padding: 18px 0 40px; }
.ai-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }

/* 左侧 AI 说明 */
.ai-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.ai-side-card { background: linear-gradient(180deg, #131a2f, #0d1325); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 16px; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side-head b { font-size: 15px; font-weight: 800; }
.side-link { font-size: 12px; color: var(--gold); font-weight: 700; }
.side-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.side-stats { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.side-stats .stat b { font-size: 26px; font-weight: 900; color: var(--gold); }

/* 右列 */
.ai-main-col { }
.sel-head { margin-bottom: 14px; }
.sel-sub { font-size: 11px; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
.sel-title { font-size: 22px; font-weight: 900; margin-top: 4px; }

/* 比赛选择列表 */
.match-pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mp-item { background: linear-gradient(180deg, #131a2f, #0d1325); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; padding: 12px 14px; cursor: pointer; transition: all .2s ease; position: relative; }
.mp-item:hover { border-color: rgba(232,181,73,.4); }
.mp-item.selected { border-color: var(--gold); background: rgba(232,181,73,.08); box-shadow: 0 0 0 1px rgba(232,181,73,.3); }
.mp-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.mp-no { font-weight: 800; color: var(--gold); }
.mp-league { color: var(--text-2); }
.mp-time { margin-left: auto; color: var(--text-3); }
.mp-sell { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--accent-2); background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.3); }
.mp-item.selected .mp-sell { color: var(--bg); background: linear-gradient(120deg, var(--gold), var(--gold-2)); border: none; }
.mp-teams { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.mp-team { text-align: center; }
.mp-crest { width: 40px; height: 40px; margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; }
.mp-crest svg, .mp-crest img { width: 100%; height: 100%; object-fit: contain; }
.mp-team span { font-size: 13px; font-weight: 700; }
.mp-vs { color: var(--text-3); font-weight: 700; }
.mp-plays { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-chip { padding: 2px 8px; border-radius: 7px; font-size: 11px; color: var(--text-2); background: #121a2d; border: 1px solid rgba(255,255,255,.08); }
.mp-chip.on { color: var(--gold); border-color: rgba(232,181,73,.3); }

/* 协议/开始按钮 */
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.agree input { margin-top: 3px; accent-color: var(--gold); }
.agree a { color: var(--gold); }
.btn.big { width: 100%; padding: 15px; font-size: 16px; }

/* 门控卡 */
.ai-gate { padding: 40px 0; display: block; }
.gate-card { max-width: 380px; margin: 0 auto; background: linear-gradient(180deg, #141c2f, #0d1325); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 34px; text-align: center; }
.gate-ico { font-size: 36px; margin-bottom: 10px; }
.gate-title { font-size: 20px; font-weight: 900; }
.gate-desc { color: var(--text-3); font-size: 13px; margin: 8px 0 20px; }

#ai-result { margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 20px; }
#ai-result .rs-title { font-weight: 800; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* 预测卡片 */
.pred-item { background: linear-gradient(180deg, #141c2f, #0e1424); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; box-shadow: 0 14px 38px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); }
.pred-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(232,181,73,.5), transparent); pointer-events: none; }
.pred-item .pi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pred-item .pi-league-tag { font-size: 12px; font-weight: 700; color: var(--gold); padding: 4px 12px; border-radius: 999px; background: rgba(232,181,73,.1); border: 1px solid rgba(232,181,73,.28); }
.pred-item .pi-conf { font-size: 12px; color: var(--accent-2); font-weight: 700; }
.pred-item .pi-match { margin-bottom: 14px; }
.pred-item .pi-teams { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 8px; }
.pred-item .pi-team { text-align: center; }
.pred-item .pi-crest { width: 56px; height: 56px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.pred-item .pi-crest svg, .pred-item .pi-crest img { width: 100%; height: 100%; object-fit: contain; }
.pred-item .pi-tname { font-weight: 800; font-size: 16px; color: var(--text); display: block; }
.pred-item .pi-vs { color: var(--text-3); font-size: 16px; font-weight: 700; }
.pred-item .pi-time { text-align: center; color: var(--text-3); font-size: 12px; }
.pred-item .pi-summary { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(232,181,73,.08); border: 1px solid rgba(232,181,73,.25); }
.pred-item .ps-label { font-size: 12px; font-weight: 800; color: var(--gold); margin-bottom: 9px; letter-spacing: 1px; }
/* 首选主推 (最高概率) */
.pred-item .ps-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: linear-gradient(90deg, rgba(232,181,73,.18), rgba(232,181,73,.06)); border: 1px solid rgba(232,181,73,.4); }
.pred-item .pst-star { font-size: 18px; }
.pred-item .pst-info { flex: 1; min-width: 0; }
.pred-item .pst-game { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.pred-item .pst-pick { font-size: 15px; font-weight: 900; color: var(--gold); }
.pred-item .pst-pct { font-size: 21px; font-weight: 900; color: var(--gold-2); font-style: normal; }
.pred-item .pst-tag { font-size: 10px; font-weight: 800; color: var(--bg); padding: 2px 9px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--gold-2)); }
/* 其余玩法清单 */
.pred-item .ps-list { margin-top: 9px; display: flex; flex-direction: column; }
.pred-item .ps-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 13px; }
.pred-item .ps-row:last-child { border-bottom: none; }
.pred-item .psr-name { width: 92px; color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.pred-item .psr-pick { flex: 1; color: var(--text); font-weight: 600; }
.pred-item .psr-pct { color: var(--accent-2); font-weight: 800; font-style: normal; }
.pred-item .ps-note { margin-top: 9px; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.pred-item .pi-plays { display: grid; gap: 10px; }
.pred-item .pi-play { padding: 12px 14px; border-radius: 12px; font-size: 13px; background: linear-gradient(180deg, #121a2d, #0e1424); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 9px; }
/* 玩法详细卡 */
.po-head { display: flex; align-items: center; gap: 8px; }
.po-head .pp-name { color: var(--text-3); font-size: 12px; font-weight: 700; white-space: nowrap; }
.po-line { font-size: 10px; color: var(--text-3); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.po-pick { color: var(--gold); font-weight: 800; font-size: 14px; margin-left: auto; text-align: right; }
.po-head .pp-pct { color: var(--accent-2); font-style: normal; font-size: 15px; font-weight: 900; }
.po-opts { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; background: rgba(0,0,0,.2); border-radius: 10px; }
.po-opt { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.po-label { width: 84px; color: var(--text-3); white-space: nowrap; }
.po-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.po-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#3b4a68,#2b3450); }
.po-opt.best .po-fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 10px rgba(232,181,73,.45); }
.po-opt.best .po-label { color: var(--gold); font-weight: 800; }
.po-opt.best .po-pct { color: var(--gold); font-weight: 900; }
.po-pct { width: 40px; text-align: right; color: var(--text-2); font-weight: 700; }
.po-best { color: var(--bg); font-style: normal; font-size: 9px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--gold-2)); letter-spacing: 1px; }
.po-reason { padding: 8px 10px; border-radius: 10px; background: rgba(232,181,73,.05); border: 1px dashed rgba(232,181,73,.25); }
.po-reason .por-tag { display: inline-block; font-size: 10px; font-weight: 800; color: var(--gold); padding: 2px 8px; border-radius: 999px; background: rgba(232,181,73,.12); margin-bottom: 5px; }
.po-reason p { font-size: 12px; color: var(--text-2); line-height: 1.8; }
/* 低概率选项折叠 */
.po-more { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 3px 8px; font-size: 11px; color: var(--text-3); cursor: pointer; border-radius: 8px; transition: background .15s; }
.po-more:hover { background: rgba(255,255,255,.05); color: var(--text-2); }
.po-more-ico { font-style: normal; color: var(--gold); font-weight: 700; }
.pred-item .pi-reason { font-size: 13px; color: var(--text-2); }

/* 胜率条 */
.pi-rate { background: rgba(0,0,0,.2); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ri-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.ri-h { color: var(--gold); font-weight: 700; }
.ri-h b { color: var(--gold); }
.ri-a { color: var(--text-2); font-weight: 700; }
.ri-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.ri-hf { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.ri-af { background: linear-gradient(90deg, #3b4a68, #2b3450); }

/* 两队近况对比 */
.pi-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pi-form-card { background: rgba(0,0,0,.2); border-radius: 12px; padding: 12px 14px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pf-head b { font-size: 14px; }
.pf-head em { font-style: normal; font-size: 12px; color: var(--gold); font-weight: 700; }
.pf-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.pf-tags { display: flex; flex-direction: column; gap: 5px; }
.pf-item { font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 历史交锋 */
.pi-h2h { background: rgba(232,181,73,.06); border: 1px solid rgba(232,181,73,.2); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pi-h2h b { font-size: 13px; color: var(--gold); }
.h2h-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.h2h-dot { padding: 4px 10px; border-radius: 8px; font-size: 12px; background: #121a2d; border: 1px solid rgba(255,255,255,.08); }
.h2h-note { font-size: 12px; color: var(--text-3); }

/* 赛事分析 */
.pi-ov { background: linear-gradient(180deg,#121a2d,#0e1424); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pi-ov b { font-size: 13px; }
.pi-ov p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-top: 8px; }
.pi-ov .ov-p { margin: 7px 0; font-size: 13px; line-height: 1.85; color: var(--text-2); }
.pi-ov .ov-title { color: var(--gold); font-weight: 800; }

.error-text { color: var(--accent); font-size: 13px; margin-top: 12px; }

/* 选择工具栏: 已选计数徽章 + 全选/清空按钮 */
.pick-tools { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.sel-count { font-size: 13px; font-weight: 700; color: var(--text-3); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: inline-flex; align-items: center; gap: 6px; }
.sel-count::before { content: '🎯'; font-size: 12px; }
.sel-count b { color: var(--accent-2); font-size: 15px; }
.sel-count .sc-empty { color: var(--text-3); font-weight: 500; }
.pick-btn { padding: 7px 18px; font-size: 13px; font-weight: 700; border-radius: 999px; cursor: pointer; color: var(--gold); background: rgba(232,181,73,.1); border: 1px solid rgba(232,181,73,.35); transition: all .2s ease; }
.pick-btn:hover { background: rgba(232,181,73,.22); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,181,73,.2); }
.pick-btn:active { transform: translateY(0); }
.pick-btn.ghost { color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); }
.pick-btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); box-shadow: none; }

/* AI 分析进度浮层 (科幻) */
.ai-loader { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(20,28,47,.6), rgba(6,9,18,.92)); backdrop-filter: blur(4px); }
.ai-loader.scifi { }
.al-scene { position: relative; width: 340px; max-width: 86vw; background: linear-gradient(165deg, rgba(28,38,64,.92), rgba(10,16,30,.96)); border: 1px solid rgba(232,181,73,.35); border-radius: 22px; padding: 40px 32px 30px; text-align: center; box-shadow: 0 0 60px rgba(232,181,73,.18), 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.al-scene::before { content: ''; position: absolute; top: 0; left: -30%; width: 44%; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: alSweepLine 2.6s linear infinite; }
@keyframes alSweepLine { 0% { left: -30%; } 100% { left: 100%; } }
/* 粒子 */
.al-particles { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 22%, rgba(232,181,73,.7) 50%, transparent 51%), radial-gradient(2px 2px at 78% 14%, rgba(61,220,151,.6) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 68%, rgba(232,181,73,.5) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 62%, rgba(255,255,255,.45) 50%, transparent 51%), radial-gradient(2px 2px at 22% 84%, rgba(232,181,73,.5) 50%, transparent 51%); animation: alFloat 5s ease-in-out infinite; }
@keyframes alFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* 光环 */
.al-halo { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .5; }
.al-halo.a { width: 220px; height: 220px; top: 30px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(232,181,73,.25), transparent 70%); animation: alPulse 2.4s ease-in-out infinite; }
.al-halo.b { width: 300px; height: 300px; top: 15px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(61,150,255,.12), transparent 70%); animation: alPulse 2.4s ease-in-out infinite reverse; }
@keyframes alPulse { 0%,100% { opacity: .35; transform: translateX(-50%) scale(.92); } 50% { opacity: .65; transform: translateX(-50%) scale(1.05); } }
/* 核心 + 旋转环 */
.al-core { position: relative; width: 120px; height: 120px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.al-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); border-right-color: rgba(232,181,73,.35); animation: alSpin 1.5s linear infinite; }
.al-ring.r2 { inset: 9px; border-top-color: var(--accent-2); border-right-color: rgba(61,220,151,.25); animation: alSpin 2.2s linear infinite reverse; }
.al-ring.r3 { inset: 19px; border-top-color: #7ab8ff; border-left-color: rgba(122,184,255,.3); animation: alSpin 3s linear infinite; }
@keyframes alSpin { to { transform: rotate(360deg); } }
.al-icon { font-size: 42px; filter: drop-shadow(0 0 14px rgba(232,181,73,.5)); }
/* 标题 */
.al-title { font-size: 20px; font-weight: 900; letter-spacing: 2px; color: #fff; text-shadow: 0 0 18px rgba(232,181,73,.4); }
.al-sub { display: block; font-size: 10px; font-weight: 600; letter-spacing: 4px; color: var(--gold); margin-top: 6px; opacity: .8; }
/* 进度 */
.al-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 22px 0 14px; border: 1px solid rgba(232,181,73,.2); }
.al-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); box-shadow: 0 0 12px rgba(232,181,73,.7); transition: width .4s ease; }
/* 步骤 */
.al-steps { font-size: 13px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 20px; }
.al-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(232,181,73,.8); animation: alBlink .9s ease-in-out infinite; }
@keyframes alBlink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-width: 860px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-side { position: static; }
  .match-pick-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pred-item .pi-play { grid-template-columns: 74px 1fr 30px; }
  .pred-item .pp-bar { display: none; }
  .pi-forms { grid-template-columns: 1fr; }
}

/* ===== AI 页移动端适配 ===== */
@media (max-width: 768px) {
  .ai-hero-inner { padding: 12px 14px; gap: 12px; }
  .ai-hero-logo img { width: 46px; height: 46px; }
  .ai-hero-txt h1 { font-size: 20px; }
  .match-pick-list { grid-template-columns: 1fr; }
  .mp-item { padding: 10px; }
  .mp-teams { gap: 8px; }
  .mp-team span { font-size: 12px; }
  .ai-main { padding: 12px 0 28px; }
  .pi-teams { gap: 10px; }
  .pi-team .pi-tname { font-size: 14px; }
  .po-head { flex-wrap: wrap; }
  .po-pick { font-size: 13px; }
}
@media (max-width: 480px) {
  .ai-hero-logo img { width: 40px; height: 40px; }
  .ai-hero-txt h1 { font-size: 17px; }
  .ai-hero-txt p { font-size: 12px; }
  .mp-no { font-size: 13px; }
  .pick-tools { gap: 8px; }
  .pick-btn { padding: 6px 12px; font-size: 12px; }
  .po-opt { font-size: 11px; }
  .po-label { width: 64px; }
  .pred-item { padding: 12px; }
  .pi-forms { grid-template-columns: 1fr; }
}