* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1421; --panel: #16213a; --line: #24304d;
  --text: #e8edf6; --dim: #8b97ad; --accent: #2ecc71; --gold: #f1c40f;
}
body { background: var(--bg); color: var(--text); font: 15px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
h1 { font-size: 20px; }
nav a { color: var(--dim); text-decoration: none; margin-left: 16px; padding: 4px 2px; }
nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
h2 { font-size: 17px; margin: 24px 0 12px; }
footer { text-align: center; color: var(--dim); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); }
.dim { color: var(--dim); }
.loading { color: var(--dim); padding: 40px 0; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--dim); font-size: 13px; }
.stat .num { font-size: 26px; font-weight: 700; color: var(--accent); }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; text-decoration: none; color: var(--text); transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card-meta { font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.card-teams { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 600; }
.card-teams .team:last-child { justify-content: flex-end; }
.crest { width: 24px; height: 24px; object-fit: contain; }
.score { font-size: 20px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.card-pred { margin-top: 8px; font-size: 13px; color: var(--dim); }
.card-pred b { color: var(--accent); font-size: 15px; }
.badge { display: inline-block; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.badge.hit { background: #1e4634; color: #2ecc71; }
.badge.miss { background: #46201e; color: #e74c3c; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.panel h3 { color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.prob-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; font-size: 12px; margin: 10px 0; }
.prob-bar > div { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.ph { background: #2e6bcc; } .pd { background: #555f73; } .pa { background: #b3433d; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; text-decoration: none; }
.chip.active { color: var(--accent); border-color: var(--accent); }
.back { color: var(--dim); text-decoration: none; display: inline-block; margin-bottom: 8px; }
.rtable { width: 100%; border-collapse: collapse; }
.rtable th, .rtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rtable a { color: var(--text); }
.qtable { width: 100%; border-collapse: collapse; margin: 10px 0 4px; }
.qtable th, .qtable td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.qtable th { color: var(--dim); font-weight: 600; white-space: nowrap; width: 130px; }
/* 综合判断 + 天平 */
.dverdict { font-size: 15px; margin: 4px 0 10px; }
.dverdict b { font-size: 17px; }
.dverdict b.pos { color: var(--accent); }
.dverdict b.neg { color: #e74c3c; }
.dscale { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dscale .dside { font-size: 12px; color: var(--dim); white-space: nowrap; min-width: 44px; }
.dscale .dside:last-child { text-align: right; }
.dscale-track { position: relative; flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #b3433d 0%, #555f73 50%, var(--accent) 100%); opacity: .55; }
.dscale-mark { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bg); transform: translate(-50%, -50%); }
/* 维度折叠行 */
.drow { border-top: 1px solid var(--line); }
.drow summary { display: flex; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; list-style: none; }
.drow summary::-webkit-details-marker { display: none; }
.drow summary::after { content: '›'; color: var(--dim); font-size: 16px; transform: rotate(90deg); transition: transform .15s; }
.drow[open] summary::after { transform: rotate(-90deg); }
.dname { font-weight: 600; font-size: 13px; width: 64px; flex-shrink: 0; }
.dbar2 { position: relative; flex: 1; height: 14px; }
.db-axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--dim); opacity: .4; }
.db-fill { position: absolute; top: 3px; height: 8px; border-radius: 3px; }
.db-fill.pos { background: var(--accent); }
.db-fill.neg { background: #e74c3c; }
.dtag { font-size: 12px; width: 76px; flex-shrink: 0; text-align: right; }
.dtag.pos { color: var(--accent); }
.dtag.neg { color: #e74c3c; }
.dtag.even { color: var(--dim); }
.dnote2 { color: var(--dim); font-size: 12px; line-height: 1.6; padding: 0 2px 10px 74px; margin: 0; }
@media (max-width: 600px) {
  .dname { width: 56px; font-size: 12px; }
  .dtag { width: 68px; font-size: 11px; }
  .dnote2 { padding-left: 2px; }
}
@media (max-width: 600px) {
  .card-teams { flex-direction: row; }
  .team { font-size: 14px; }
}
