/* 2026 世界杯 · Agent×模型推演对决 — 主样式 */
:root {
  --bg: #0a0e1a;
  --bg2: #101729;
  --card: #131c33;
  --card-hover: #182342;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef2fb;
  --dim: #8b97b5;
  --gold: #f5c542;
  --gold-soft: rgba(245, 197, 66, 0.14);
  --green: #34d399;
  --red: #f87171;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245, 197, 66, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

.wrap {
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

/* ---------- 头部 ---------- */
header.hero { text-align: center; padding: 26px 0 10px; }

.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gold);
  background: var(--gold-soft); border: 1px solid rgba(245, 197, 66, 0.35);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}

.hero .badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.6s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: 1px; }

.hero h1 .vs { color: var(--gold); }

.hero p.sub { color: var(--dim); margin-top: 8px; font-size: 15px; }

/* ---------- 进程条 ---------- */
.topbar {
  margin-top: 26px;
  display: flex; flex-direction: column; gap: 14px;
}

.phasebar {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center;
}

.phasebar .status { font-weight: 700; color: var(--gold); font-size: 15px; margin-right: 6px; }

.phasebar .chip {
  cursor: pointer; user-select: none;
  font-size: 13px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  background: transparent; transition: all 0.15s;
}

.phasebar .chip:hover { color: var(--ink); border-color: var(--dim); }

.phasebar .chip.on { color: #1a1405; background: var(--gold); border-color: var(--gold); font-weight: 700; }

.phasebar input[type="date"] {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px;
  color-scheme: dark;
}

/* ---------- 今日赛程 ---------- */
.today {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

.today:empty { display: none; }

.today .fixture {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink);
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 12px;
}

.today .fixture img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.today .fixture .grp { color: var(--dim); font-size: 11px; }

.today .empty { color: var(--dim); font-size: 13px; }

/* ---------- 卡片栅格: 共识榜 + 9 卡 = 2 行 × 5 列 ---------- */
.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.combo {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
  overflow: hidden;
  min-height: 0;
}

.combo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent, var(--gold));
}

.combo:hover { transform: translateY(-3px); background: var(--card-hover); border-color: rgba(255,255,255,0.18); }

.combo .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }

.combo .head-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.combo .acc {
  font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 2px 7px; border-radius: 999px; line-height: 1.3;
  border: 1px solid var(--line); color: var(--dim); background: rgba(255,255,255,0.04);
}

.combo .acc.good { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }

.combo .acc.mid { color: var(--gold); border-color: rgba(245, 197, 66, 0.45); background: rgba(245, 197, 66, 0.08); }

.combo .acc.low { color: var(--red); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }

.combo .acc.wait { opacity: 0.65; }

.combo .name { font-size: 13.5px; font-weight: 800; line-height: 1.3; }

.combo .name small { display: block; font-weight: 500; color: var(--dim); font-size: 10.5px; margin-top: 2px; }

.combo .tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  color: var(--accent, var(--gold));
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 7px;
  opacity: 0.95;
}

.combo .body { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.champ-view { display: flex; align-items: center; gap: 10px; }

.champ-view img { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.champ-view .label { font-size: 10px; color: var(--dim); }

.champ-view .team { font-size: 17px; font-weight: 800; color: var(--gold); }

.final-note { font-size: 11.5px; color: var(--dim); line-height: 1.45; }

.method {
  font-size: 11px; color: var(--ink);
  background: rgba(255,255,255,0.04); border: 1px dashed var(--line);
  border-radius: 8px; padding: 6px 8px; line-height: 1.45;
}

.preds { display: flex; flex-direction: column; gap: 5px; }

.preds .done-label {
  font-size: 10px; color: var(--dim); font-weight: 700;
  margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line);
}

.preds .done-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.preds .row {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; background: rgba(255,255,255,0.035);
  border-radius: 8px; padding: 6px 8px;
}

.preds .row .md {
  font-size: 9px; color: var(--dim); font-weight: 700;
}

.preds .row .teams {
  display: flex; align-items: center; gap: 4px; min-width: 0;
}

.preds .row .teams span:not(.vs) {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.preds .row .teams img { width: 16px; height: 12px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

.preds .row .teams .vs { color: var(--dim); font-size: 10px; flex-shrink: 0; padding: 0 2px; }

.preds .row .score-pair {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.preds .row .score-pair i {
  font-style: normal; font-size: 9px; color: var(--dim); font-weight: 600; margin-right: 3px;
}

.preds .row .pred-l b { color: var(--gold); font-variant-numeric: tabular-nums; }

.preds .row .act-l b { color: var(--ink); font-variant-numeric: tabular-nums; }

.preds .row.act.ok .act-l b { color: var(--green); }

.preds .row.act.exact .act-l b { color: var(--green); }

.preds .row.act.miss .act-l b { color: var(--red); }

.champ-line { font-size: 11px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 6px; line-height: 1.4; }

.champ-line b { color: var(--gold); }

.combo .foot { font-size: 11px; color: var(--dim); display: flex; justify-content: space-between; align-items: center; gap: 6px; }

.combo .foot .go { color: var(--accent, var(--gold)); font-weight: 600; white-space: nowrap; }

/* ---------- 共识榜(grid 第一格) ---------- */
.consensus {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.consensus::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold);
}

.consensus h2 {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.3px;
  line-height: 1.35;
}

.consensus .bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.consensus .bar-row {
  display: grid;
  grid-template-columns: 68px 1fr 28px;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.consensus .bar-row .t {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.consensus .bar-row .t img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

.consensus .track {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.consensus .fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f59e0b); border-radius: 99px; }

.consensus .n {
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
}

footer.note { margin-top: 36px; text-align: center; color: var(--dim); font-size: 12px; line-height: 1.9; }

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 20px 16px 48px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
