:root {
  --ink: #172033;
  --dim: #98a2b3;
  --line: rgba(15, 23, 42, 0.08);
  --line-soft: rgba(15, 23, 42, 0.06);
  --teal: #0f766e;
  --teal-bg: rgba(15, 118, 110, 0.08);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.08);
  --gold: #cc9933;
  --bg: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "PingFang SC", sans-serif; }
body { padding-bottom: 104px; }
.hidden { display: none !important; }

/* ---------- 顶栏 + 日期条 ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 12px 16px 8px; }
.topbar__row { display: flex; align-items: center; gap: 8px; }
.tab-title { font-size: 24px; font-weight: 800; }
.topbar__sub { color: var(--dim); font-size: 13px; }
.icon-btn { margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--dim);
            width: 32px; height: 32px; border-radius: 999px; font-size: 16px; cursor: pointer; }
.icon-btn:active { background: #f3f4f6; }

/* ---------- 区块标题 ---------- */
.section-summary { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 8px; }
.section-summary__title { font-size: 17px; font-weight: 700; }
.section-summary__count { font-size: 13px; color: var(--dim); }

/* ---------- 卡片 ---------- */
.main { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }

.day-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.day-group__title { font-size: 14px; font-weight: 700; color: var(--ink); padding: 10px 2px 4px; }
.day-group__count { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: 6px; }
.day-group__hit { font-size: 12px; color: var(--red); font-weight: 700; margin-left: 6px; }

/* ---------- 投注建议 ---------- */
.bet-tips { margin-bottom: 4px; }
.bet-tips__head { font-size: 14px; font-weight: 700; margin-bottom: 0; display: flex;
                  align-items: baseline; gap: 8px; cursor: pointer; }
.bet-tips__note { font-size: 11px; font-weight: 400; color: var(--dim); flex: 1; }
.bet-tips__arrow { color: var(--dim); font-size: 12px; }
.bet-tips__body { display: none; margin-top: 10px; }
.bet-tips.open .bet-tips__body { display: block; }
.bet-block { border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px;
             margin-bottom: 10px; }
.bet-block:last-child { margin-bottom: 0; }
.bet-block__title { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.bet-line { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0;
            border-bottom: 1px dashed var(--line-soft); }
.bet-line:last-of-type { border-bottom: 0; }
.bet-line__no { color: var(--dim); font-weight: 600; flex: 0 0 auto; }
.bet-line__teams { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden;
                   text-overflow: ellipsis; }
.bet-line__pick { background: var(--teal-bg); color: var(--teal); font-weight: 700;
                  padding: 1px 8px; border-radius: 999px; flex: 0 0 auto; }
.bet-line__meta { color: var(--dim); flex: 0 0 auto; }
.bet-total { font-size: 12px; color: var(--dim); padding-top: 6px; }
.bet-total b { color: var(--red); font-size: 14px; }
.bet-tips__foot { font-size: 11px; color: var(--dim); text-align: center; padding-top: 8px; }

.live-row__top { display: flex; align-items: center; gap: 8px; }
.league-chip { color: #fff; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.live-row__number { font-size: 12px; font-weight: 600; color: var(--dim); }
.live-row__time { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.live-row__status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.live-row__status--not { color: var(--green); background: var(--green-bg); }
.live-row__status--wait { color: #b45309; background: rgba(180, 83, 9, 0.08); }
.live-row__status--done { color: var(--dim); background: rgba(152, 162, 179, 0.12); }

.live-row__main { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.team-side { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.team-side--away { justify-content: flex-end; }
.team-logo { width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center;
             justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.team-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; }
.score-stack { font-size: 18px; font-weight: 800; color: var(--ink); flex: 0 0 auto; }

.pred-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pred-tag { font-size: 10px; font-weight: 600; padding: 0 8px; border-radius: 999px;
            background: var(--teal-bg); color: var(--teal); line-height: 18px; }
.pred-tag--hot { background: var(--red-bg); color: var(--red); }

/* ---------- 展开详情（概率条） ---------- */
.detail { display: none; margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.live-row.open .detail { display: block; }
.drow { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 5px 0; }
.drow .lab { width: 18px; font-weight: 700; }
.drow.top .lab { color: var(--teal); }
.dbar { flex: 1; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.dfill { height: 100%; background: #cbd5e1; border-radius: 4px; }
.drow.top .dfill { background: var(--teal); }
.dval { width: 44px; text-align: right; color: var(--dim); }
.dsp { width: 40px; text-align: right; color: var(--gold); font-weight: 700; }
.hhad-t { font-size: 12px; color: var(--dim); }
.ev { font-size: 12px; color: var(--dim); margin-top: 4px; }
.ev.good { color: var(--teal); font-weight: 700; }
.hhad { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }
.outcome { margin-top: 8px; font-size: 12px; padding: 6px 10px; border-radius: 8px;
           background: rgba(152, 162, 179, 0.12); color: var(--dim); }
.outcome.hit { background: var(--green-bg); color: var(--green); }
.outcome.miss { background: var(--red-bg); color: var(--red); }
.empty { color: var(--dim); text-align: center; padding: 48px 0; font-size: 14px; }

/* ---------- 比分赛果页 ---------- */
.result-day__title { font-size: 14px; font-weight: 700; padding: 12px 2px 6px; }
.result-row { display: flex; align-items: center; gap: 8px; padding: 10px 2px;
              border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.result-row__time { color: var(--dim); font-size: 12px; }
.result-row__teams { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-row__score { font-weight: 800; color: var(--ink); }
.hit-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hit-badge.hit { background: var(--green-bg); color: var(--green); }
.hit-badge.miss { background: var(--red-bg); color: var(--red); }

/* ---------- 我的页 ---------- */
.about h3 { font-size: 16px; margin-bottom: 8px; }
.about p { font-size: 13px; color: var(--dim); margin: 6px 0; line-height: 1.7; }
.about__dim { font-size: 12px !important; }

/* ---------- 底部导航 ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
              justify-content: space-around; background: #fff; border-top: 1px solid var(--line-soft);
              padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none;
            border: 0; color: var(--dim); font-size: 10px; cursor: pointer; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item--active { color: var(--teal); }

/* ---------- 密码锁 ---------- */
.lock { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex;
        align-items: center; justify-content: center; padding: 16px; }
.lockbox { width: 280px; display: flex; flex-direction: column; gap: 10px; background: #fff;
           border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
.lockbox__logo { font-size: 32px; text-align: center; }
.lockbox h2 { font-size: 18px; text-align: center; }
.lockbox__hint { font-size: 12px; color: var(--dim); text-align: center; }
.lockbox input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.btn { background: var(--teal); color: #fff; border: 0; border-radius: 12px; padding: 10px;
       font-size: 15px; font-weight: 600; cursor: pointer; }
.err { color: var(--red); font-size: 12px; text-align: center; }