/* ============================================================
   财神AI足球 · 全站设计系统
   统一：顶栏 / 卡片 / 按钮 / 表单 / 表格 / 徽章 / 比赛卡 / 登录
   ============================================================ */
:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf2;
  --border: #e6eaf2;
  --panel: #f7f9fd;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --green: #16a34a;
  --green-soft: #e9f9ef;
  --orange: #ea580c;
  --orange-soft: #fff3e8;
  --red: #dc2626;
  --red-soft: #fdecec;
  --purple: #7c3aed;
  --tag-bg: #eef4ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
  --topbar-grad: linear-gradient(120deg, #16294d 0%, #1e3a8a 45%, #2563eb 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(1200px 480px at 50% -240px, #e4ecff 0%, rgba(228, 236, 255, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink); font-size: 15px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 90px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--topbar-grad);
  color: #fff;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px;
  box-shadow: 0 2px 14px rgba(22, 41, 77, .28);
}
.topbar h1, .topbar .brand {
  font-size: 17px; margin: 0; font-weight: 700; flex: 1; letter-spacing: .3px;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
/* 品牌 Logo：圆形渐变足球徽标 + 主副标题 */
.topbar a.brand {
  background: none; border: none; padding: 0; border-radius: 0;
  gap: 10px; margin-right: 8px; min-width: 0;
}
.topbar a.brand:hover { background: none; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .5), inset 0 1px 2px rgba(255, 255, 255, .35);
}
.brand-logo svg { width: 23px; height: 23px; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-txt b { font-size: 16.5px; font-weight: 800; color: #fff; letter-spacing: .8px; }
.brand-txt small {
  font-size: 10px; font-weight: 400; color: rgba(255, 255, 255, .68);
  letter-spacing: 1.2px; margin-top: 1px;
}
.topbar nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar a, .topbar button, .topbar nav a {
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px; padding: 6px 13px; font-size: 13.5px; cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
}
.topbar a:hover, .topbar button:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.topbar a.active, .topbar nav a.active {
  background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700;
}
.topbar .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .2); }
.topbar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); display: inline-block; }
.topbar .dot.on { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.topbar #quotaBadge { background: rgba(255, 255, 255, .22) !important; border-radius: 20px; }

/* ---------------- 卡片 / 区块 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 234, 242, .9);
  padding: 16px 18px; margin: 14px 0;
}
.card h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .hint, .card h3 .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.card h3 { font-size: 15px; margin: 0 0 10px; }
.wrap > h2 { margin: 18px 2px 4px; font-size: 20px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, #2f6ff0, #1d4ed8);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.btn.primary:hover { background: linear-gradient(135deg, #2b66e6, #1a47c8); }
.btn.green { background: linear-gradient(135deg, #22b559, #159441); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(22, 163, 74, .25); }
.btn.green:hover { background: linear-gradient(135deg, #1fa851, #13853a); }
.btn.stop { background: linear-gradient(135deg, #ef4444, #dc2626); border-color: transparent; color: #fff; font-weight: 700; animation: stopPulse 1.3s ease-in-out infinite; }
.btn.stop:disabled { opacity: .75; animation: none; }
@keyframes stopPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--red); border-color: #f3c3c3; background: #fff; }
.btn.danger:hover { background: var(--red-soft); border-color: #ecaaaa; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row .btn { flex: 0 0 auto; }

/* ---------------- 表单 ---------------- */
label.fld { display: block; margin: 12px 0; font-size: 13px; color: var(--muted); }
label.fld > span { display: block; margin-bottom: 5px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font-family: inherit; }
input[type=text], input[type=password], input[type=email], input[type=number],
input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 220px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
input::placeholder, textarea::placeholder { color: #9aa7ba; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--ink-2); font-weight: 500; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint-text { color: var(--muted); font-size: 12.5px; margin: 4px 0; }
.row2, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.flexRow { display: flex; align-items: center; }
@media (max-width: 600px) { .row2, .grid2 { grid-template-columns: 1fr; } }

/* ---------------- 标签 / 徽章 ---------------- */
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px;
  border-radius: 20px; background: var(--tag-bg); color: var(--brand); margin-right: 4px;
}
.tag.single { background: var(--orange-soft); color: var(--orange); }
.tag.hot { background: var(--red-soft); color: var(--red); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.fail { background: var(--red-soft); color: var(--red); }
.tag.wait { background: #eef1f6; color: var(--muted); }

/* ---------------- 比赛卡片 ---------------- */
.match {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 16px; margin: 12px 0;
  border-left: 4px solid var(--brand);
  transition: box-shadow .18s, transform .18s;
}
.match:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.match .m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.match .m-num { font-weight: 700; color: var(--brand); font-size: 14px; }
.match .m-teams { font-size: 17px; font-weight: 700; margin: 7px 0 3px; letter-spacing: .3px; }
.match .m-teams .rank { font-size: 12px; color: var(--muted); font-weight: 400; }
.match .m-time { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.odds .o { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 7px 4px; font-size: 12px; color: var(--muted); }
.odds .o b { display: block; font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.odds .o.low b { color: var(--red); }
.asian-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f6f2ff; border: 1px solid #e7dbff; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 12.5px; }
.asian-label { font-weight: 700; color: var(--purple); }
.asian-val { color: #6d28d9; font-weight: 700; }
.asian-trend { color: #9333ea; font-size: 11.5px; }
.asian-count { color: #9ca3af; font-size: 11px; margin-left: auto; }
.pool-detail { border-top: 1px dashed var(--line); margin-top: 10px; padding: 10px 2px 2px; }
.pool-detail details { margin-top: 8px; }
.pool-detail details summary { user-select: none; }
.m-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* ---------------- 大厅比赛卡：对称对阵式 ---------------- */
.match-card { padding: 14px 16px 16px; }
.mc-top {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.mc-top .match-check { width: 15px; height: 15px; accent-color: var(--brand); margin: 0 2px 0 0; }
.mc-num {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  font-weight: 700; font-size: 11.5px; letter-spacing: .5px;
  border-radius: 6px; padding: 2px 8px; line-height: 1.5;
}
.mc-lg { font-weight: 700; color: var(--ink-2); font-size: 13px; }
.mc-top .tag { margin-right: 0; }
.mc-date {
  margin-left: auto; font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mc-versus {
  display: grid; grid-template-columns: 1fr 86px 1fr;
  align-items: center; gap: 10px;
}
.mc-side { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mc-home { align-items: flex-end; text-align: right; }
.mc-away { align-items: flex-start; text-align: left; }
.mc-name {
  font-size: 18px; font-weight: 800; color: var(--ink);
  letter-spacing: .3px; line-height: 1.3; word-break: break-word;
}
.mc-rank {
  display: inline-flex; align-items: center;
  font-size: 11.5px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 1px 10px; line-height: 1.6;
}
.mc-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mc-vs {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-weight: 800; font-style: italic; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .32);
}
.mc-kickoff {
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.match-card .match-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.match-card .match-actions .btn { flex: 0 0 auto; }

/* ---------------- 分析结果 ---------------- */
.analysis { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.analysis .md h2, .analysis .md h3, .analysis .md h4 { font-size: 14.5px; margin: 12px 0 5px; }
.analysis .md p { margin: 6px 0; }
.analysis .md ul, .analysis .md ol { margin: 6px 0; padding-left: 22px; }
.analysis .md blockquote { margin: 6px 0; padding: 5px 12px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.analysis .md strong { color: var(--ink); }
.analysis .md hr { border: none; border-top: 1px solid var(--line); margin: 10px 0; }
.analysis .err { color: var(--red); font-size: 13px; }
.analysis .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.analysis .conclusion-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.analysis .dl-report { font-size: 12.5px; color: var(--brand); padding: 4px 12px; border: 1px solid var(--brand); border-radius: 8px; }
.analysis .dl-report:hover { background: var(--brand); color: #fff; }
.analysis .md.conclusion { font-size: 13.5px; line-height: 1.75; }

/* ---------------- 进度 / 提示 ---------------- */
.progress-bar { height: 6px; background: #e3ebfb; border-radius: 4px; overflow: hidden; margin: 10px 0; display: none; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); width: 0; transition: width .4s; }
.alert { border-radius: 12px; padding: 11px 14px; margin: 12px 0; font-size: 13.5px; }
.alert.warn { background: var(--orange-soft); border: 1px solid #fed7aa; color: #9a3412; }
.alert.info { background: var(--brand-soft); border: 1px solid #bfd3ff; color: #1e40af; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, .94); color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 14px; z-index: 99; opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; max-width: 90vw; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.filters select, .filters input { width: auto; flex: 1 1 150px; padding: 9px 11px; font-size: 14px; }
details.runs summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.run-item { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.run-item .st { font-weight: 600; }
.run-item pre { white-space: pre-wrap; word-break: break-all; background: var(--panel); border-radius: 8px; padding: 10px; font-size: 12px; max-height: 240px; overflow: auto; }
.prov { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; position: relative; }
.prov.active { border-color: var(--brand); background: #f7faff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.prov .prov-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.prov .prov-head label { flex: 0 0 auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.prov .prov-head input.p-label { flex: 1 1 130px; min-width: 120px; width: auto; }
.prov .prov-head select { flex: 1 1 170px; width: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #c7d2fe; border-top-color: var(--brand); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------- 数据表格 ---------------- */
.data-table, table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600;
  background: var(--panel); padding: 10px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.data-table th:first-child { border-top-left-radius: 10px; }
.data-table th:last-child { border-top-right-radius: 10px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8faff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }
table input { margin: 0; }
.u-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.u-actions .btn { padding: 4px 9px; font-size: 12px; border-radius: 7px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 16px 0 6px; flex-wrap: wrap; }

/* ---------------- 统计 / 资产卡片 ---------------- */
.stat-row, .asset-card { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.stat-box, .asset-item {
  flex: 1; min-width: 150px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f7f9fd);
  box-shadow: var(--shadow-sm);
}
.stat-box { text-align: center; }
.stat-box .n, .asset-item .num {
  font-size: 28px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #2f6ff0, #1d4ed8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.asset-item .num { display: block; margin-bottom: 4px; }
.stat-box .t, .asset-item .lbl { font-size: 12.5px; color: var(--muted); }

/* ---------------- 分段选项卡（登录 / 个人中心 / 后台） ---------------- */
.auth-tabs, .me-tabs, .admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.auth-tabs { gap: 0; padding: 4px; background: var(--panel); border-radius: 11px; border: 1px solid var(--line); }
.auth-tabs button { flex: 1; background: transparent; border: none; border-radius: 8px; }
.auth-tabs button.active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); font-weight: 700; }
.me-tabs button.active, .admin-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; }
.auth-switch { text-align: center; margin-top: 6px; font-size: 13px; }
.auth-switch a { color: var(--brand); cursor: pointer; }

/* ---------------- 登录 / 注册页 ---------------- */
.auth-box, .login-box {
  max-width: 420px; margin: 6vh auto;
  padding: 30px 28px;
  border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.auth-box h2, .login-box h2 { justify-content: center; font-size: 21px; margin-bottom: 4px; }
.auth-box h2::before, .login-box h2::before { content: "⚽"; font-size: 22px; }
.auth-box .hint-text.center, .login-box .hint-text.center { margin-bottom: 18px; }
.auth-box .btn.primary[type=submit], .login-box .btn.primary { width: 100%; padding: 11px; font-size: 15px; margin-top: 4px; }

/* ---------------- 单场分析卡片图 ---------------- */
.match-img { margin-top: 12px; border: 1px solid #1b2942; border-radius: 12px; overflow: hidden; background: #0a0f1d; }
.match-img .mimg-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #0f1828; border-bottom: 1px solid #1b2942; }
.match-img .mimg-bar .mimg-status { color: #93a4bf; margin: 0; }
.match-img .mimg-links a { color: #7dd3fc; font-size: 12.5px; margin-left: 12px; }
.match-img .mimg-body { position: relative; }
.match-img .mimg-loading { color: #93a4bf; font-size: 13px; text-align: center; padding: 34px 0; }
.match-img .mimg-img { display: block; width: 100%; height: auto; }

/* ---------------- 定时任务时间点 ---------------- */
.time-list { display: flex; flex-direction: column; gap: 8px; }
.time-row { display: flex; align-items: center; gap: 8px; }
.time-row input[type="time"] { width: 150px; padding: 9px 11px; font-size: 15px; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 600px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar h1, .topbar .brand { font-size: 15px; flex-basis: 100%; }
  .topbar a.brand { flex-basis: auto; margin-right: 4px; gap: 8px; }
  .brand-logo { width: 31px; height: 31px; }
  .brand-logo svg { width: 20px; height: 20px; }
  .brand-txt small { display: none; }
  .brand-txt b { font-size: 15px; }
  .topbar a, .topbar button, .topbar nav a { padding: 6px 10px; font-size: 13px; }
  .topbar a.brand { flex-basis: 100%; margin-right: 0; margin-bottom: 2px; }
  .wrap { padding: 0 12px 80px; }
  .card { padding: 14px; }
  .match .m-teams { font-size: 16px; }
  .stat-box, .asset-item { min-width: calc(50% - 8px); }
  .match-card { padding: 12px; }
  .mc-versus { grid-template-columns: 1fr 58px 1fr; gap: 6px; }
  .mc-name { font-size: 15px; }
  .mc-vs { width: 40px; height: 40px; font-size: 12px; }
  .mc-kickoff { font-size: 11.5px; }
  .mc-date { margin-left: 0; flex-basis: 100%; text-align: right; }
  .mc-rank { padding: 0 8px; font-size: 11px; }
}
@media (max-width: 380px) {
  .mc-name { font-size: 14px; }
  .mc-lg { font-size: 12px; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------- 大厅：AI 分析/最终决策展示框 ---------------- */
.analysis-box {
  margin: 10px 0 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}
.ab-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: linear-gradient(135deg, #eef4ff, #f5f8ff);
  border-bottom: 1px solid var(--line);
}
.ab-head h4 { margin: 0; font-size: 14.5px; color: var(--ink); }
.ab-body { padding: 12px 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.ab-body .md { font-size: 13.5px; line-height: 1.8; }
.ab-body .meta { margin-top: 8px; font-size: 12px; }
.decision-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}

/* 看板结论徽章（大厅与“我的分析”共用） */
.board-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.bpill {
  display: inline-flex; gap: 5px; align-items: baseline; border-radius: 7px;
  padding: 4px 10px; font-size: 12.5px; background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155;
}
.bpill b { font-size: 13px; }
.bpill.grade { font-weight: 800; font-size: 14px; }
.bpill.g-S { background: #fef3c7; border-color: #fde68a; color: #b45309; }
.bpill.g-A { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.bpill.g-B { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }
.bpill.g-C { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.bpill.g-D { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.bpill.summary { width: 100%; background: #f8fafc; font-style: italic; }

/* 未购买的置灰交付按钮（卡片图 / 推送 / 下载报告） */
.btn.locked {
  background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0;
  cursor: not-allowed; box-shadow: none;
}
.btn.locked:hover { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; }

/* ---------------- 系统设置：折叠面板 ---------------- */
details.cfg { padding: 0; }
details.cfg > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 15px 18px; font-size: 15px; font-weight: 700; color: var(--ink);
}
details.cfg > summary::-webkit-details-marker { display: none; }
details.cfg > summary::before {
  content: '▸'; display: inline-block; color: var(--brand);
  font-size: 14px; transition: transform .2s ease;
}
details.cfg[open] > summary::before { transform: rotate(90deg); }
details.cfg[open] > summary { border-bottom: 1px solid var(--line); }
details.cfg > summary .hint { font-weight: 400; font-size: 12.5px; }
details.cfg > summary:not(:hover) .hint { color: var(--muted); }
details.cfg .cfg-body { padding: 14px 18px 18px; }

/* 赔率玩法小标题（胜平负 / 大小球 / 让球） */
.pool-play { font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0 2px; letter-spacing: .5px; }
.pool-detail .pool-play:first-child { margin-top: 2px; }

/* ---------------- 管理员：运行进度面板 ---------------- */
.run-panel {
  margin-top: 12px; border: 1px solid #bfd3ff; border-radius: 12px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  padding: 12px 14px;
}
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rp-stage { display: inline-flex; align-items: center; gap: 7px; }
.rp-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; display: inline-block; flex: 0 0 auto; }
.rp-dot.running { background: #3b82f6; animation: rpPulse 1.1s ease-in-out infinite; }
.rp-dot.done-ok { background: #16a34a; }
.rp-dot.done-stop { background: #f59e0b; }
.rp-dot.done-fail { background: #dc2626; }
@keyframes rpPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.45); } 50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); } }
.rp-percent { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 800; }
.rp-bar { position: relative; height: 8px; background: #dde7fb; border-radius: 5px; overflow: hidden; margin: 9px 0 9px; }
.rp-bar > i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width .45s ease, background .3s; }
.rp-bar > i.indeterminate {
  position: absolute; top: 0; bottom: 0; width: 38% !important; border-radius: 5px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent) !important;
  animation: rpSlide 1.2s ease-in-out infinite; transition: none;
}
@keyframes rpSlide { 0% { left: -38%; } 100% { left: 100%; } }
.rp-stats { display: flex; gap: 7px; flex-wrap: wrap; }
.rp-chip { font-size: 12px; padding: 3px 11px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.rp-chip b { font-size: 13px; color: var(--ink-2); margin-left: 3px; font-variant-numeric: tabular-nums; }
.rp-chip.done b { color: var(--brand); }
.rp-chip.ok b { color: var(--green); }
.rp-chip.fail b { color: var(--red); }
.rp-current {
  margin-top: 9px; font-size: 12.5px; color: var(--brand-dark);
  background: #fff; border: 1px dashed #bfd3ff; border-radius: 8px; padding: 6px 10px;
}
.rp-result { margin-top: 9px; font-size: 12.5px; border-radius: 8px; padding: 7px 11px; font-weight: 600; }
.rp-result.ok { background: var(--green-soft); color: #15803d; border: 1px solid #bbf7d0; }
.rp-result.stop { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.rp-result.fail { background: var(--red-soft); color: var(--red); border: 1px solid #fecaca; }

/* ---------------- 管理员面板：每日看板分区 / 记录页导出条 ---------------- */
.board-row {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed var(--line);
  align-items: center;
}
.board-label {
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  margin-right: 2px; white-space: nowrap; letter-spacing: .3px;
}
.rec-export {
  margin: 2px 0 12px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  align-items: center;
}
.rec-export-label { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* ===== 财神AI足球 版权页脚 ===== */
.site-footer { margin-top:36px; padding:18px 14px 22px; border-top:1px solid var(--line,#e5e9f0); background:transparent; }
.site-footer-inner { max-width:1180px; margin:0 auto; text-align:center; color:#94a3b8; font-size:12px; line-height:1.8; }
.site-footer-inner a { color:var(--brand,#2563eb); text-decoration:none; }
.site-footer-sub { font-size:11.5px; color:#b0b8c4; }
@media (max-width:600px){
  .site-footer { margin-top:24px; padding:14px 12px 18px; }
  .site-footer-inner { font-size:11px; line-height:1.7; }
}

/* ===== 在线商城套餐 ===== */
.pkg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin-top:12px; }
.pkg-card { position:relative; border:1px solid var(--line,#e5e9f0); border-radius:14px; padding:18px 16px 16px;
  display:flex; flex-direction:column; gap:6px; background:var(--panel,#fff); transition:.15s; }
.pkg-card:hover { border-color:var(--brand,#2563eb); box-shadow:0 8px 22px rgba(37,99,235,.10); transform:translateY(-2px); }
.pkg-tag { display:inline-block; align-self:flex-start; font-size:11.5px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,#2563eb,#1d4ed8); border-radius:999px; padding:2px 10px; }
.pkg-name { font-size:15.5px; font-weight:700; color:var(--ink-1,#0f172a); margin-top:4px; }
.pkg-desc { font-size:12.5px; color:#64748b; min-height:34px; }
.pkg-price { font-size:24px; font-weight:800; color:#dc2626; margin:2px 0 8px; }
.pkg-price::before { content:'¥'; font-size:14px; font-weight:600; margin-right:1px; }
.pkg-buy { width:100%; }
.pkg-buy:disabled { opacity:.6; cursor:not-allowed; }

/* ===== 支付二维码弹窗 ===== */
.modal-mask { position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:9000;
  display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-mask[hidden] { display:none; }
.modal-box { position:relative; background:#fff; border-radius:16px; padding:24px 26px; max-width:340px; width:100%;
  text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.modal-x { position:absolute; top:8px; right:12px; border:0; background:transparent; font-size:24px;
  line-height:1; color:#94a3b8; cursor:pointer; }
.pay-modal h3 { margin:0 0 12px; font-size:17px; }
.qr-box { display:flex; align-items:center; justify-content:center; padding:10px; margin:4px auto 10px;
  width:232px; height:232px; border:1px solid var(--line,#e5e9f0); border-radius:12px; background:#fff; }
.qr-box img, .qr-box canvas { image-rendering:pixelated; }
#payTip { font-size:13px; font-weight:600; margin:4px 0; }
#payStatus { font-size:13px; margin:4px 0; }

/* ===== 后台支付凭据锁定列表 ===== */
.cred-card { border:1px solid var(--line,#e5e9f0); border-radius:12px; padding:14px 16px; margin-bottom:12px; background:var(--panel,#fff); }
.cred-card.locked { background:#f8fafc; }
.cred-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.cred-badge { font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:999px; }
.cred-badge.on { background:#dcfce7; color:#15803d; }
.cred-badge.off { background:#f1f5f9; color:#64748b; }
.cred-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cred-fields .fld.full { grid-column:1 / -1; }
.cred-fields input:disabled, .cred-fields textarea:disabled { background:#f1f5f9; color:#64748b; cursor:not-allowed; }

@media (max-width:600px){
  .pkg-grid { grid-template-columns:1fr; gap:10px; }
  .pkg-card { padding:14px 14px; flex-direction:row; flex-wrap:wrap; align-items:center; }
  .pkg-card .pkg-tag { flex:0 0 auto; }
  .pkg-card .pkg-name { flex:1 1 auto; margin-top:0; }
  .pkg-card .pkg-desc { flex:1 1 100%; min-height:0; order:3; }
  .pkg-card .pkg-price { margin:0; flex:0 0 auto; }
  .pkg-card .pkg-buy { flex:1 1 100%; order:4; }
  .cred-fields { grid-template-columns:1fr; }
  .modal-box { padding:20px 18px; }
}

/* v1.3.7 队徽与命中核对 */
.mc-name-row { display:flex; align-items:center; gap:8px; }
.mc-home .mc-name-row { flex-direction: row-reverse; }
.mc-logo { width:34px; height:34px; object-fit:contain; flex:0 0 auto; }
.mc-settle { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0 2px; padding:8px 10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; }
.settle-lab { font-size:12px; color:#64748b; }
.settle-tag { display:inline-block; font-size:12px; padding:2px 10px; border-radius:6px; font-weight:700; }
.settle-win { background:#dcfce7; color:#15803d; }
.settle-lose { background:#fee2e2; color:#b91c1c; }
.settle-push { background:#dbeafe; color:#1d4ed8; }
.settle-none { background:#f1f5f9; color:#475569; }
.settle-det { font-size:12.5px; color:#475569; }
.settle-box { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 0; padding:8px 10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; }
.m-logo { width:26px; height:26px; object-fit:contain; vertical-align:middle; margin:0 4px; }
