/* ── Hero 增强 ── */
.hero::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 154, 22, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-copy h1::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 56px; height: 3px; background: var(--gold); border-radius: 2px;
}

/* ── 信号条 ── */
.signal-strip div { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.signal-strip div:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(8, 32, 82, 0.12); }
.signal-strip div strong { transition: color 0.2s ease; }

/* ── 面板切换动画 ── */
.panel.active-panel { animation: fadeInUp 0.35s ease both; }

/* ── 卡片微交互 ── */
.match-card { transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.22s ease, box-shadow 0.22s ease; }
.match-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 36px rgba(8, 32, 82, 0.14); }

/* ── 主屏幕卡片入场 ── */
.home-screen .home-match-card { animation: fadeInUp 0.4s ease both; }
.home-screen .home-match-card:nth-child(1) { animation-delay: 0.05s; }
.home-screen .home-match-card:nth-child(2) { animation-delay: 0.12s; }
.home-screen .home-match-card:nth-child(3) { animation-delay: 0.19s; }
.home-screen .home-match-card:nth-child(4) { animation-delay: 0.26s; }
.home-screen .home-match-card:nth-child(5) { animation-delay: 0.33s; }
.home-screen .home-match-card:nth-child(6) { animation-delay: 0.40s; }

/* ── 统计数值动效 ── */
.stat-value { display: inline-block; font-variant-numeric: tabular-nums; animation: countUp 0.4s ease both; }

/* ── 信度标签 ── */
.confidence-badge {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 950; letter-spacing: 0.04em;
  transition: transform 0.18s ease;
}
.confidence-badge:hover { transform: scale(1.06); }
.confidence-primary {
  background: linear-gradient(135deg, #059669, #10b981); color: white;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.confidence-secondary {
  background: linear-gradient(135deg, #d97706, #f59e0b); color: white;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.confidence-caution {
  background: linear-gradient(135deg, #dc2626, #ef4444); color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.confidence-skip {
  background: linear-gradient(135deg, #6b7280, #9ca3af); color: white;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* ── 条形图 ── */
.stat-chart-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.stat-chart-bar .bar-label { min-width: 40px; font-weight: 950; font-size: 13px; color: var(--muted); text-align: right; }
.stat-chart-bar .bar-track-chart { flex: 1; height: 22px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.stat-chart-bar .bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); min-width: 2px;
}
.stat-chart-bar .bar-value { min-width: 48px; font-weight: 950; font-size: 13px; color: var(--ink); }

.goal-decision-panel {
  min-height: auto;
  padding: 18px;
  border-color: #c6d8ea;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,246,255,0.92)),
    radial-gradient(circle at 92% 12%, rgba(217,154,22,0.16), transparent 34%);
}

.goal-decision-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cfdeed;
}

.goal-decision-head span {
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  font-weight: 950;
}

.goal-decision-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.goal-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.goal-decision-grid article {
  padding: 14px;
  border: 1px solid #c9d9eb;
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 26px rgba(8,32,82,0.05);
}

.goal-decision-grid small,
.goal-zone span,
.goal-decision-note b {
  display: block;
  color: #d99a16;
  font-size: 12px;
  font-weight: 950;
}

.goal-decision-grid strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  line-height: 1;
}

.goal-decision-grid span,
.goal-zone p,
.goal-decision-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.goal-zone-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.goal-zone {
  padding: 14px;
  border: 1px solid #d5e2ef;
  border-radius: 8px;
  background: #fff;
}

.goal-zone div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.goal-zone strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.goal-zone em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.goal-zone i {
  display: block;
  height: 9px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: #e9eff6;
  overflow: hidden;
}

.goal-zone i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-2);
}

.goal-zone.mid i b { background: #d99a16; }
.goal-zone.high i b { background: #c1121f; }

.goal-decision-note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(217,154,22,0.35);
  border-radius: 8px;
  background: rgba(255,247,224,0.72);
}

/* ── 洞察卡片 ── */
.insight-card {
  padding: 16px; background: linear-gradient(135deg, #f0f7ff, #e8f2fe);
  border: 1px solid #c9ddf0; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(8, 32, 82, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.insight-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8, 32, 82, 0.1); }
.insight-card .insight-label { color: var(--muted); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; }
.insight-card .insight-value { font-size: 28px; font-weight: 950; color: var(--ink); font-family: Georgia,"Songti SC",serif; line-height: 1.1; margin: 6px 0 4px; }
.insight-card .insight-note { color: var(--muted); font-size: 12px; font-weight: 850; margin: 0; }

/* ── 双栏布局 ── */
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .viz-grid { grid-template-columns: 1fr; } }

/* ── 表格行悬停 ── */
.historical-score-table .hist-row { transition: background 0.15s ease; cursor: default; }
.historical-score-table .hist-row:hover { filter: brightness(0.97); }
.trend-table tbody tr { transition: background 0.15s ease; }
.trend-table tbody tr:hover { filter: brightness(0.96); }

/* ── 比分卡片入场 ── */
.score-table div { animation: scaleIn 0.35s ease both; }
.score-table div:nth-child(1) { animation-delay: 0.02s; }
.score-table div:nth-child(2) { animation-delay: 0.06s; }
.score-table div:nth-child(3) { animation-delay: 0.10s; }
.score-table div:nth-child(4) { animation-delay: 0.14s; }
.score-table div:nth-child(5) { animation-delay: 0.18s; }
.score-table div:nth-child(6) { animation-delay: 0.22s; }
.score-table div:nth-child(7) { animation-delay: 0.26s; }
.score-table div:nth-child(8) { animation-delay: 0.30s; }
.score-table div:nth-child(9) { animation-delay: 0.34s; }
.score-table div:nth-child(10) { animation-delay: 0.38s; }

/* ── 平局率表格入场 ── */
.draw-rate-table tbody tr { animation: fadeIn 0.3s ease both; }
.draw-rate-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.draw-rate-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
.draw-rate-table tbody tr:nth-child(3) { animation-delay: 0.18s; }
.draw-rate-table tbody tr:nth-child(4) { animation-delay: 0.26s; }

/* ── 数据提示 ── */
.data-hint { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: var(--soft); border: 1px solid #c9ddf0; border-radius: 999px; font-size: 11px; font-weight: 900; color: var(--muted); }

/* ── 倒计时装饰 ── */
.home-countdown-card { position: relative; overflow: hidden; }
.home-countdown-card::after { content: ""; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px; background: radial-gradient(circle, rgba(217, 154, 22, 0.12), transparent 60%); pointer-events: none; }
#home-countdown-hour, #home-countdown-minute, #home-countdown-second { font-variant-numeric: tabular-nums; }

/* ── Hero 高亮 ── */
.home-hero .home-copy h1 strong { color: var(--gold); position: relative; }
.home-hero .home-copy h1 strong::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 6px; background: rgba(217, 154, 22, 0.18); border-radius: 2px; z-index: -1; }

/* ── 后半截图动画 ── */
.home-research-grid article { animation: fadeInUp 0.4s ease both; }
.home-research-grid article:nth-child(1) { animation-delay: 0.05s; }
.home-research-grid article:nth-child(2) { animation-delay: 0.12s; }
.home-research-grid article:nth-child(3) { animation-delay: 0.19s; }
.home-research-grid article:nth-child(4) { animation-delay: 0.26s; }
.home-research-grid article:nth-child(5) { animation-delay: 0.33s; }
.home-research-grid article:nth-child(6) { animation-delay: 0.40s; }
.home-products article { animation: fadeInUp 0.4s ease both; }
.home-products article:nth-child(1) { animation-delay: 0.05s; }
.home-products article:nth-child(2) { animation-delay: 0.14s; }
.home-products article:nth-child(3) { animation-delay: 0.23s; }
.home-products article:nth-child(4) { animation-delay: 0.32s; }
.model-version-timeline article { animation: fadeInUp 0.5s ease both; }
.model-version-timeline article:nth-child(1) { animation-delay: 0.05s; }
.model-version-timeline article:nth-child(2) { animation-delay: 0.15s; }
.model-version-timeline article:nth-child(3) { animation-delay: 0.25s; }
.model-evidence-grid article { animation: fadeInUp 0.4s ease both; }
.model-evidence-grid article:nth-child(1) { animation-delay: 0.03s; }
.model-evidence-grid article:nth-child(2) { animation-delay: 0.08s; }
.model-evidence-grid article:nth-child(3) { animation-delay: 0.13s; }
.model-evidence-grid article:nth-child(4) { animation-delay: 0.18s; }
.model-evidence-grid article:nth-child(5) { animation-delay: 0.23s; }
.model-evidence-grid article:nth-child(6) { animation-delay: 0.28s; }
.model-evidence-grid article:nth-child(7) { animation-delay: 0.33s; }
.about-flow article { animation: fadeInUp 0.4s ease both; }
.about-flow article:nth-child(1) { animation-delay: 0.04s; }
.about-flow article:nth-child(2) { animation-delay: 0.12s; }
.about-flow article:nth-child(3) { animation-delay: 0.20s; }
.about-flow article:nth-child(4) { animation-delay: 0.28s; }
.about-mission-card { animation: fadeInUp 0.5s ease both; }
.about-mission-card:nth-child(1) { animation-delay: 0.05s; }
.about-mission-card:nth-child(2) { animation-delay: 0.15s; }
.about-mission-card:nth-child(3) { animation-delay: 0.25s; }

/* ── 响应式 ── */
@media (max-width: 640px) {
  .chart-container { min-height: 200px; padding: 10px; }
  .viz-grid { grid-template-columns: 1fr; }
  .insight-card .insight-value { font-size: 22px; }
  .goal-decision-head { align-items: flex-start; flex-direction: column; }
  .goal-decision-grid,
  .goal-zone-stack,
  .goal-decision-note { grid-template-columns: 1fr; }
  .goal-decision-grid strong { font-size: 24px; }
}

/* ── 主页顶部渐变动画 ── */
.home-topbar {
  position: relative;
  overflow: hidden;
}
.home-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation: shimmer 3s ease infinite;
  pointer-events: none;
}

/* ── 数据加载脉冲 ── */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 154, 22, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(217, 154, 22, 0); }
}

/* ── Hero 统计数字动效 ── */
.hero-panel strong {
  background: linear-gradient(135deg, var(--ink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 导航条视觉增强 ── */
.home-topbar nav button {
  position: relative;
  transition: color 0.2s ease;
}
.home-topbar nav button::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease, left 0.25s ease;
}
.home-topbar nav button.active::after {
  width: 70%;
  left: 15%;
}
.home-topbar nav button:hover::after {
  width: 40%;
  left: 30%;
}

/* ── 赛程表卡片视觉增强 ── */
.match-card {
  position: relative;
}
.match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 8px 8px 0 0;
}
.match-card:hover::before {
  opacity: 1;
}

/* ── 主屏 Hero 区域视觉 ── */
.home-hero {
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 154, 22, 0.06), transparent 60%);
  animation: heroOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

/* ── 页面骨架加载 ── */
.page-loading .shell, .page-loading .home-screen {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page-loaded .shell, .page-loaded .home-screen {
  opacity: 1;
}
/* page-loading states handled above */
/* ── 数据卡片微微发光 ── */
.insight-card {
  position: relative;
  overflow: hidden;
}
.insight-card::after {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(217,154,22,0.08), transparent 60%);
  pointer-events: none;
}

/* ── 信号条数字动效 ── */
.signal-strip div strong {
  font-variant-numeric: tabular-nums;
}

/* ── 比分实验室概览卡片 ── */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.stats-overview .stat-box {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stats-overview .stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 32, 82, 0.08);
}
.stats-overview .stat-box .stat-num {
  font-size: 28px;
  font-weight: 950;
  color: var(--blue);
  font-family: Georgia, "Songti SC", serif;
  line-height: 1;
  margin-bottom: 4px;
}
.stats-overview .stat-box .stat-label {
  font-size: 11px;
  font-weight: 950;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stats-overview .stat-box.highlight .stat-num {
  color: var(--gold);
}
.stats-overview .stat-box.highlight {
  border-color: rgba(217, 154, 22, 0.4);
  background: linear-gradient(180deg, #fffcf0, white);
}


/* ═══════════════════════════════════════════
   动效增强层 - 让网站活起来
   ═══════════════════════════════════════════ */

/* ── 通用卡片悬停晃动 ── */
@keyframes cardWobble {
  0%, 100% { transform: translateY(-2px); }
  25% { transform: translateY(-3px) rotate(0.3deg); }
  50% { transform: translateY(-4px) rotate(-0.2deg); }
  75% { transform: translateY(-3px) rotate(0.1deg); }
}
.match-card:hover,
.sporttery-card:hover,
.odds-spotlight-card:hover,
.about-mission-card:hover,
.about-flow article:hover,
.model-version-timeline article:hover,
.model-evidence-grid article:hover,
.model-contract-grid section:hover,
.insight-card:hover,
.odds-radar-summary article:hover,
.sp-backtest-grid article:hover {
  animation: cardWobble 0.4s ease forwards;
  box-shadow: 0 18px 40px rgba(8, 32, 82, 0.16);
}

/* ── 所有文章/卡片容器入场动画 ── */
.match-card,
.sporttery-card,
.odds-spotlight-card,
.about-mission-card,
.about-flow article,
.model-version-timeline article,
.model-evidence-grid article,
.model-contract-grid section,
.insight-card,
.odds-radar-summary article,
.sp-backtest-grid article,
.review-record-table tr,
.odds-map-record-table tr,
.global-stats-record-table tr {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.2s ease;
}

/* ── Hero 区域浮动光晕 ── */
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(20px, -15px) scale(1.05); opacity: 0.4; }
  50% { transform: translate(-10px, -25px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(-25px, -5px) scale(1.02); opacity: 0.5; }
}
.home-hero::before {
  animation: heroFloat 12s ease-in-out infinite !important;
}
.home-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(8, 32, 82, 0.05), transparent 55%);
  animation: heroFloat 15s ease-in-out infinite reverse;
  pointer-events: none;
}

/* ── 页面背景微妙动态 ── */
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 154, 22, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(7, 60, 135, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(7, 60, 135, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  transition: background 0.5s ease;
}

/* ── 信号条脉冲数字 ── */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.signal-strip div strong {
  display: inline-block;
  transition: color 0.2s ease;
}
.signal-strip div:hover strong {
  animation: countPulse 1s ease infinite;
  color: var(--gold);
}

/* ── 导航按钮滑入 ── */
.home-topbar nav button {
  transition: color 0.2s ease, transform 0.2s ease;
}
.home-topbar nav button:hover {
  transform: translateY(-1px);
}

/* ── Hero 面板数字动效 ── */
.hero-panel strong {
  display: inline-block;
  animation: countPulse 2s ease-in-out infinite;
}

/* ── 数据表格行悬停放大 ── */
.review-record-table tbody tr,
.odds-map-record-table tbody tr,
.global-stats-record-table tbody tr {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.review-record-table tbody tr:hover,
.odds-map-record-table tbody tr:hover,
.global-stats-record-table tbody tr:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 12px rgba(8, 32, 82, 0.08);
  filter: brightness(1.02);
}

/* ── Tabs 悬停动效 ── */
.tab {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 60, 135, 0.2);
}
.tab.active:hover {
  transform: translateY(-1px);
}

/* ── 主屏幕按钮悬停 ── */
.home-actions button,
.home-section-head button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-actions button:hover,
.home-section-head button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 32, 82, 0.12);
}

/* ── 标签页底部指示器动效 ── */
.tab.active {
  position: relative;
}
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: tabGlow 2s ease-in-out infinite;
}
@keyframes tabGlow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(217, 154, 22, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(217, 154, 22, 0.6); }
}

/* ── 比分卡片悬停上浮 ── */
.score-table div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.score-table div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(8, 32, 82, 0.12);
}

/* ── 条形图动效 ── */
.bar-fill {
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: barShimmer 3s ease infinite;
}
@keyframes barShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ── 筛选按钮组悬浮 ── */
.pool-view-tabs button,
.sub-tab {
  transition: transform 0.18s ease, background 0.2s ease;
}
.pool-view-tabs button:hover,
.sub-tab:hover {
  transform: translateY(-1px);
}

/* ── 标题装饰线动画 ── */
.section-head h2,
.stat-title-line h3 {
  position: relative;
  display: inline-block;
}
.section-head h2::after,
.stat-title-line h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.section-head:hover h2::after,
.stat-title-line:hover h3::after {
  width: 40px;
}

/* ── Hero 子标题悬停下划线 ── */
.subline {
  transition: color 0.2s ease;
}
.hero:hover .subline {
  color: var(--ink);
}

/* ── 一键返回顶部按钮 ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(8, 32, 82, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 999;
  display: grid;
  place-items: center;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(8, 32, 82, 0.3);
}

.site-footer {
  margin-top: 44px;
  border-top: 4px solid var(--gold);
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--blue) 58%, var(--blue-2) 100%);
  color: rgba(247, 251, 255, 0.82);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
  gap: clamp(28px, 6vw, 92px);
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 30px;
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer-brand strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 950;
}

.site-footer h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  color: rgba(247, 251, 255, 0.72);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.62;
}

.site-footer button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 251, 255, 0.78);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.42;
  cursor: pointer;
}

.site-footer button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(247, 251, 255, 0.18);
  color: rgba(247, 251, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-footer {
    margin-top: 32px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(100% - 32px, 620px);
    padding: 28px 0 24px;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
    width: min(100% - 32px, 620px);
    padding: 12px 0 14px;
  }
}

/* ── 加载时页面淡入 ── */
.page-loading .shell,
.page-loading .home-screen {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.page-loaded .shell,
.page-loaded .home-screen {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ── 数据概览卡片入场 ── */
.stats-overview .stat-box {
  animation: fadeInUp 0.45s ease both;
}
.stats-overview .stat-box:nth-child(1) { animation-delay: 0.02s; }
.stats-overview .stat-box:nth-child(2) { animation-delay: 0.08s; }
.stats-overview .stat-box:nth-child(3) { animation-delay: 0.14s; }
.stats-overview .stat-box:nth-child(4) { animation-delay: 0.20s; }

/* ── Hero 控制室装饰条动态 ── */
.hero {
  border-top: 5px solid var(--blue);
  border-image: linear-gradient(90deg, var(--blue), var(--gold), var(--blue)) 1;
  animation: heroBorder 4s ease infinite;
}
@keyframes heroBorder {
  0%, 100% { border-image: linear-gradient(90deg, var(--blue), var(--gold), var(--blue)) 1; }
  50% { border-image: linear-gradient(90deg, var(--gold), var(--blue), var(--gold)) 1; }
}

/* ── 主屏 Hero 大标题波纹 ── */
.home-hero .home-copy h1 {
  position: relative;
  display: inline-block;
}
.home-hero .home-copy h1::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 16px);
  border: 1px solid rgba(217, 154, 22, 0.1);
  border-radius: 4px;
  animation: heroRipple 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroRipple {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.02); opacity: 0.6; }
}

/* ── 倒计时数字呼吸 ── */
#home-countdown-hour,
#home-countdown-minute,
#home-countdown-second {
  animation: countPulse 2s ease-in-out infinite;
}

/* ── 统计数值渐入 ── */
.stat-value {
  animation: countUp 0.5s ease both;
}

/* ── 迷你标签动效 ── */
.mini-pill, .pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-pill:hover, .pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(8, 32, 82, 0.1);
}

/* ── 信号条数字渐变动画 ── */
.signal-strip div:first-child strong,
.signal-strip div:nth-child(2) strong,
.signal-strip div:nth-child(3) strong,
.signal-strip div:nth-child(4) strong {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* ── 标签栏底部光晕 ── */
.sticky-board {
  position: relative;
}
.sticky-board::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  animation: shimmer 3s ease infinite;
}

/* ── 关于页面: 使命卡摇动 ── */
@keyframes missionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.about-mission-card.primary {
  animation: missionFloat 4s ease-in-out infinite;
}

/* ── 模型版本卡片悬浮 ── */
.model-version-timeline article.current {
  animation: missionFloat 5s ease-in-out infinite;
}

/* ── 玩法模块卡片延迟入场 ── */
.home-products article {
  animation: fadeInUp 0.5s ease both;
}
.home-products article:nth-child(1) { animation-delay: 0.05s; }
.home-products article:nth-child(2) { animation-delay: 0.15s; }
.home-products article:nth-child(3) { animation-delay: 0.25s; }
.home-products article:nth-child(4) { animation-delay: 0.35s; }

/* ── Hero 按钮悬浮增强 ── */
.home-actions button {
  position: relative;
  overflow: hidden;
}
.home-actions button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.home-actions button:hover::after {
  width: 200px;
  height: 200px;
}

/* ── 倒计时卡片微动 ── */
.home-countdown-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-countdown-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(8, 32, 82, 0.14);
}

/* ── 深夜深色背景微动 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   深度动态层 - 页面本身持续流动
   ═══════════════════════════════════════════ */

/* ── 1. 背景微尘粒子 (纯CSS, 零JS) ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(217,154,22,0.08), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(217,154,22,0.06), transparent),
    radial-gradient(3px 3px at 60% 40%, rgba(8,32,82,0.08), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(217,154,22,0.07), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(8,32,82,0.06), transparent),
    radial-gradient(3px 3px at 90% 60%, rgba(217,154,22,0.08), transparent),
    radial-gradient(2px 2px at 30% 50%, rgba(8,32,82,0.05), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(217,154,22,0.06), transparent),
    radial-gradient(3px 3px at 50% 90%, rgba(8,32,82,0.07), transparent),
    radial-gradient(2px 2px at 15% 45%, rgba(217,154,22,0.05), transparent);
  background-size: 200% 200%;
  animation: dustFloat 30s ease-in-out infinite alternate;
}
@keyframes dustFloat {
  0% { background-position: 0% 0%; }
  25% { background-position: 50% 30%; }
  50% { background-position: 100% 60%; }
  75% { background-position: 30% 80%; }
  100% { background-position: 70% 20%; }
}

/* ── 2. 标题渐变动画文字 ── */
.shell .section-head h2,
.shell .stat-title-line h3,
.hero-panel strong,
.about-mission-card h3,
.model-version-timeline h3,
.home-copy h1 {
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 40%, var(--gold) 70%, var(--ink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease-in-out infinite;
}
@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 3. 滚动浮现动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.20s; }
.reveal-delay-4 { transition-delay: 0.28s; }
.reveal-delay-5 { transition-delay: 0.36s; }
.reveal-delay-6 { transition-delay: 0.44s; }

/* ── 4. 信号条数字持续脉动 ── */
@keyframes numBreath {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.signal-strip div strong {
  animation: numBreath 3s ease-in-out infinite;
}
.signal-strip div:first-child strong { animation-delay: 0s; }
.signal-strip div:nth-child(2) strong { animation-delay: 0.4s; }
.signal-strip div:nth-child(3) strong { animation-delay: 0.8s; }
.signal-strip div:nth-child(4) strong { animation-delay: 1.2s; }

/* ── 5. 统计卡片微浮动 ── */
@keyframes statBoxFloat {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-2px); }
  66% { transform: translateY(1px); }
}
.insight-card, .odds-radar-summary article {
  animation: statBoxFloat 5s ease-in-out infinite;
}
.insight-card:nth-child(2), .odds-radar-summary article:nth-child(2) { animation-delay: 0.5s; }
.insight-card:nth-child(3), .odds-radar-summary article:nth-child(3) { animation-delay: 1s; }
.insight-card:nth-child(4), .odds-radar-summary article:nth-child(4) { animation-delay: 1.5s; }

/* ── 6. Hero 漂浮分层 ── */
@keyframes layerFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
@keyframes layerFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(6px) rotate(-0.3deg); }
}
.home-hero .home-copy { animation: layerFloat1 6s ease-in-out infinite; }
.home-hero .home-countdown-card { animation: layerFloat2 7s ease-in-out infinite; }

/* ── 7. 倒计时卡片呼吸光 ── */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 10px 28px rgba(8, 32, 82, 0.08); }
  50% { box-shadow: 0 14px 36px rgba(217, 154, 22, 0.12), 0 10px 28px rgba(8, 32, 82, 0.08); }
}
.home-countdown-card {
  animation: cardGlow 4s ease-in-out infinite;
}

/* ── 8. 导航标签渐变动画 ── */
.home-topbar nav button.active {
  background: linear-gradient(135deg, var(--blue), #0a4a9e);
  background-size: 200% 200%;
  animation: navGradient 4s ease infinite;
}
@keyframes navGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 9. Hero 控制室渐变条呼吸 ── */
.hero {
  border-top: 5px solid var(--blue);
  border-image: linear-gradient(90deg, var(--blue), var(--gold), var(--blue)) 1;
  animation: heroBorderGlow 4s ease-in-out infinite;
}
@keyframes heroBorderGlow {
  0%, 100% { border-image: linear-gradient(90deg, var(--blue), var(--gold), var(--blue)) 1; }
  50% { border-image: linear-gradient(90deg, var(--gold), var(--blue), var(--gold)) 1; }
}

/* ── 10. 页面加载骨架动画增强 ── */
.page-loading .shell,
.page-loading .home-screen {
  opacity: 0.3;
  filter: blur(1px);
  transform: scale(0.98);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.page-loaded .shell,
.page-loaded .home-screen {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* ── 11. 数据表加载骨架行 ── */
@keyframes skeletonRow {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}
.trend-table tbody tr.is-upcoming {
  animation: skeletonRow 2s ease-in-out infinite;
}

/* ── 12. 图表条形加载动画 ── */
.bar-fill {
  transform-origin: left;
  animation: barGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── 13. 面包屑/标签hover发光 ── */
.pill, .mini-pill, .data-hint {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pill:hover, .mini-pill:hover, .data-hint:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(8, 32, 82, 0.12);
  background: #fff8e5;
}

/* ── 13b. 移动端响应：保持工作台密度 ── */

@media (max-width: 860px) {
  /* ── 导航：按钮紧凑化 ── */
  .home-topbar {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .home-topbar .home-logo strong { font-size: 12px; letter-spacing: 0.1em; }
  .home-topbar nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
  }
  .home-topbar nav button {
    font-size: 11px;
    padding: 0 10px;
    min-height: 30px;
    letter-spacing: 0.04em;
  }
  .home-top-actions button {
    min-height: 30px;
    font-size: 12px;
    padding: 0 12px;
  }

  /* ── Home 页 ── */
  .home-screen { padding: 16px; }
  .home-shell {
    grid-template-columns: 1fr;
    width: min(100%, 600px);
    gap: 14px;
    min-height: auto;
  }
  .home-hero .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-copy h1 { font-size: 36px; }
  .home-countdown-card { min-height: auto; padding: 14px; }
  .home-countdown-card strong { font-size: 15px; }
  .home-countdown-grid { gap: 6px; }

  /* ── 产品模块 → 2列 ── */
  .home-products {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .home-products article { padding: 12px; }
  .home-products article strong { font-size: 15px; }
  .home-products article em { font-size: 11px; }

  /* ── upcoming / research 网格 → 2列 ── */
  .home-upcoming-grid,
  .home-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ── 工作台 shell ── */
  .shell { width: min(100vw - 16px, 1540px); padding: 10px 0 48px; }
  .hero { grid-template-columns: 1fr; padding: 16px 18px; min-height: auto; }
  .hero h1 { font-size: 26px; }
  .hero-panel { min-height: auto; padding: 10px 14px; }
  .hero-panel strong { font-size: 24px; }
  .subline { font-size: 13px; }

  /* ── 标签栏横向滚动 ── */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 0 12px;
    min-height: 34px;
  }

  /* ── 控制栏 ── */
  .controls { flex-direction: column; gap: 8px; padding: 12px; }
  .controls input,
  .controls select { width: 100%; min-width: 0; }

  /* ── 比赛详情 ── */
  .match-page-hero {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 8px;
  }
  .home-badge { font-size: 10px; min-height: 22px; padding: 0 10px; }
  .home-actions button { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .home-hero .home-hero-inner { gap: 10px; }
  .home-copy h1 { line-height: 1.1; }
  .home-upcoming { padding: 30px 16px 20px; }
  .home-products { padding: 16px 16px 36px; }
  .home-research-lab { padding: 20px 16px 40px; }
  .home-section-head h2 { font-size: 22px; }
  .home-section-head { margin-bottom: 16px; }
  .match-page-hero h2 { font-size: 22px; }
  .match-page-columns { grid-template-columns: 1fr; }
  .match-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 14px;
  }
  .match-page-toolbar {
    padding: 0 14px;
    gap: 6px;
  }
  .match-page-section { padding: 14px; }

  /* ── 概览卡片 ── */
  .quick-decision-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ── 综合统计 ── */
  .review-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ── 赔率数学 ── */
  .odds-math-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ── 信号条 ── */
  .signal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ── 小组积分 ── */
  .standings-summary { grid-template-columns: 1fr; }
  .third-race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ── 面板 ── */
  .panel { padding: 16px; }
  .drawer-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 86vh;
    border-radius: 8px 8px 0 0;
  }
  .drawer-grid { grid-template-columns: 1fr; }

  /* ── 模型介绍 ── */
  .model-intro-hero,
  .site-locks-hero,
  .about-site-hero .about-site-hero-inner,
  .about-split,
  .about-mission-grid { grid-template-columns: 1fr; }
  .model-version-timeline { grid-template-columns: 1fr; }
  .model-contract-grid { grid-template-columns: 1fr; }
  .model-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-flow { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* ── 导航继续紧凑 ── */
  .home-topbar { padding: 6px 8px; gap: 4px; }
  .home-topbar .home-logo strong { font-size: 11px; }
  .home-topbar nav button {
    font-size: 10px;
    padding: 0 7px;
    min-height: 26px;
  }
  .home-top-actions button {
    min-height: 26px;
    font-size: 11px;
    padding: 0 8px;
  }

  /* ── Home ── */
  .home-screen { padding: 10px; }
  .home-copy h1 { font-size: 28px; }
  .home-upcoming-grid,
  .home-research-grid { grid-template-columns: 1fr; }

  /* ── 工作台 ── */
  .shell {
    width: min(100vw - 10px, 1540px);
    padding: 6px 0 36px;
  }
  .hero { padding: 12px 14px; }
  .hero h1 { font-size: 22px; }
  .hero-panel strong { font-size: 20px; }
  .panel { padding: 12px; }

  /* ── 网格全面折叠 ── */
  .match-page-grid,
  .quick-decision-board,
  .filter-board-grid,
  .final-decision-grid,
  .final-decision-head,
  .universal-model-head,
  .universal-model-grid,
  .script-set-grid,
  .quick-risk-grid,
  .summary-grid,
  .decision-grid,
  .calibration-grid,
  .odds-math-grid,
  .triad-grid,
  .review-cards,
  .global-stats-cards,
  .signal-strip,
  .product-grid,
  .home-products,
  .standings-summary,
  .third-race-grid,
  .model-evidence-grid { grid-template-columns: 1fr; }

  /* ── 复盘表 ── */
  .review-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .review-table table { font-size: 11px; }
  .review-table th, .review-table td { padding: 5px 3px; }
  .review-metric { padding: 8px; }
  .review-metric strong { font-size: 18px; }
  .review-version-strip { flex-direction: column; gap: 6px; }

  /* ── 盘口图谱 ── */
  .odds-map-table-wrap { overflow-x: auto; }
  .odds-map-table-wrap table { font-size: 10px; min-width: 560px; }

  /* ── 比分频率 ── */
  .historical-score-panel { overflow-x: auto; }

  /* ── 出线形势 ── */
  .standing-row {
    grid-template-columns: 24px 1fr 28px 28px 28px 28px 28px;
    font-size: 11px;
    gap: 2px;
  }

  /* ── 比赛详情 ── */
  .match-page-section { padding: 10px; font-size: 13px; }

  /* ── 赔率数学面板头部 ── */
  .odds-math-head { flex-wrap: wrap; gap: 6px; }
  .odds-math-head strong { font-size: 24px; }
  .odds-math-value { flex-wrap: wrap; gap: 4px; font-size: 12px; }

  /* ── home 进场卡 ── */
  .home-entry { min-height: 180px; padding: 14px; }
  .home-entry strong { font-size: 24px; }
  .home-entry::before, .home-entry::after { display: none; }

  /* ── 各类 section head ── */
  .section-head,
  .home-section-head { flex-direction: column; align-items: start; gap: 4px; }

  /* ── 模型介绍 ── */
  .model-version-timeline article { padding: 14px; }
  .model-version-timeline h3 { font-size: 16px; }
  .model-intro-hero h2,
  .model-stats-hero h2,
  .odds-map-hero h2,
  .about-site-hero h2 { font-size: 24px; }

  /* ── 三维评分 ── */
  .triad-score strong { font-size: 30px; }
  .consistency-head strong { font-size: 26px; }
  .decision-gate-head strong { font-size: 26px; }
  .decision-gate-notes { flex-wrap: wrap; }
  .decision-gate-notes span { font-size: 11px; }
  .sp-radar-flags { flex-wrap: wrap; gap: 3px; }

  /* ── 输入完整度 ── */
  .input-scoreline strong { font-size: 32px; }
}

@media (max-width: 420px) {
  .home-topbar nav button {
    font-size: 9px;
    padding: 0 5px;
    min-height: 24px;
  }
  .hero h1 { font-size: 18px; }
  .home-copy h1 { font-size: 22px; }
  .hero-panel strong { font-size: 18px; }
}

/* ── 14. 关闭动画（无障碍） ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    background-image: none !important;
  }
  body::before { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  h1, h2, .hero-panel strong, .about-mission-card h3,
  .model-version-timeline h3, .home-hero .home-copy h1 {
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--ink);
  }
}

/* ── 15. 手机端重排：信息流工作台 ── */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, #f4f8ff 0%, #eef5ff 42%, #f8fbff 100%);
    font-size: 13px;
  }

  .home-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(247, 251, 255, 0.96);
    border-bottom: 1px solid rgba(7, 60, 135, 0.14);
    backdrop-filter: blur(14px);
  }

  body.home-mode .home-topbar {
    background:
      linear-gradient(180deg, #071c43 0%, #0b3678 100%);
    color: #fff;
    border-bottom: 1px solid rgba(217, 154, 22, 0.34);
    box-shadow: 0 12px 28px rgba(8, 32, 82, 0.22);
  }

  .home-logo {
    min-width: 0;
  }

  .home-logo span,
  .home-logo strong {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .home-logo strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
  }

  .home-topbar nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .home-topbar nav::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .home-topbar nav button,
  .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 12px;
    letter-spacing: 0;
  }

  body.home-mode .home-topbar nav button {
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    -webkit-text-fill-color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.10);
  }

  body.home-mode .home-topbar nav button.active {
    background: #d99a16;
    color: #071c43;
    -webkit-text-fill-color: #071c43;
    border-color: rgba(255, 222, 140, 0.72);
    box-shadow: 0 8px 18px rgba(217, 154, 22, 0.28);
  }

  .home-screen {
    padding: 0 0 24px;
  }

  .home-hero {
    min-height: auto;
    margin: 0;
    padding: 16px 14px 20px;
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 100% 0%, rgba(217, 154, 22, 0.18), transparent 34%),
      linear-gradient(160deg, #082052 0%, #073c87 64%, #0b5bb4 100%);
    color: #fff;
  }

  .home-hero-inner {
    gap: 14px;
    align-items: start;
  }

  .home-badge {
    width: fit-content;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .home-copy h1 {
    max-width: 11em;
    font-size: clamp(28px, 9vw, 38px);
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    animation: none;
  }

  .home-copy h1 strong {
    color: #f9c74f;
    -webkit-text-fill-color: #f9c74f;
    background: none;
  }

  .home-copy p {
    display: none;
  }

  .home-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-actions button {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .home-actions button:first-child {
    grid-column: 1 / -1;
  }

  .home-countdown-card {
    min-height: 0;
    padding: 13px;
    border: 1px solid rgba(217, 154, 22, 0.45);
    border-radius: 18px;
    background:
      linear-gradient(180deg, #fff8df 0%, #f9edc3 100%);
    color: var(--ink);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 14px 28px rgba(8, 32, 82, 0.16);
  }

  .home-countdown-card::after {
    display: none;
  }

  .home-countdown-kicker {
    color: #8a5a00;
    -webkit-text-fill-color: #8a5a00;
  }

  .home-countdown-card strong {
    color: #082052;
    -webkit-text-fill-color: #082052;
    background: none;
    animation: none;
    font-size: 16px;
    line-height: 1.25;
  }

  .home-countdown-card strong small,
  .home-countdown-card .team-flag {
    color: #37516f;
    -webkit-text-fill-color: #37516f;
  }

  .home-countdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-countdown-grid div {
    min-height: 56px;
    border-radius: 12px;
    background:
      linear-gradient(145deg, #0b3678 0%, #071c43 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  .home-countdown-grid b {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    font-size: 26px;
  }

  .home-countdown-grid small {
    color: rgba(255, 255, 255, 0.82);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.82);
  }

  .home-upcoming,
  .home-products,
  .home-research-lab {
    padding: 18px 14px;
  }

  .home-section-head {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
  }

  .home-section-head h2 {
    font-size: 24px;
  }

  .home-section-head button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .home-upcoming-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-match-card {
    min-height: 126px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(7, 60, 135, 0.12);
    box-shadow: 0 12px 28px rgba(8, 32, 82, 0.08);
  }

  .home-match-card strong {
    grid-column: 1 / -1;
    font-size: 22px;
  }

  .home-match-card b,
  .home-match-countdown {
    grid-column: 1 / -1;
  }

  .home-products {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-products article {
    border-radius: 16px;
    min-height: 92px;
  }

  .shell {
    width: 100%;
    padding: 0 0 28px;
  }

  .sticky-board {
    padding: 8px 10px 10px;
    background: rgba(247, 251, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(8, 32, 82, 0.08);
  }

  .hero {
    border-radius: 18px;
    padding: 12px;
    border-top-width: 4px;
    box-shadow: none;
  }

  .hero .eyebrow,
  .subline {
    display: none;
  }

  .hero h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.12;
  }

  .hero-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .hero-panel strong {
    font-size: 24px;
  }

  .tabs {
    position: sticky;
    top: 78px;
    z-index: 70;
    margin: 8px -10px 0;
    padding: 0 10px 4px;
    background: rgba(247, 251, 255, 0.98);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel {
    margin: 10px 8px 0;
    padding: 12px;
    border-radius: 18px;
    box-shadow: none;
  }

  .section-head,
  .stat-title-line {
    gap: 8px;
    align-items: flex-start;
  }

  .section-head h2,
  .stat-title-line h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .match-grid,
  .day-lane .match-grid,
  #today-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .match-card {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(8, 32, 82, 0.08);
  }

  .teams {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 8px;
  }

  .team {
    font-size: 22px;
    line-height: 1.15;
    word-break: keep-all;
  }

  .score {
    min-height: 54px;
    border-radius: 14px;
    font-size: 24px;
  }

  .match-card-insight,
  .match-card-tags,
  .match-card-meta {
    font-size: 12px;
  }

  .match-card-tags {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .match-card-tags span,
  .mini-pill,
  .pill {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .match-page-shell,
  .match-detail-panel {
    width: 100%;
    max-width: 100%;
  }

  .match-page-hero,
  .match-page-section,
  .quick-read-layout,
  .full-read-layout,
  .odds-map-hero,
  .about-site-hero .about-site-hero-inner,
  .model-intro-hero,
  .model-stats-hero {
    grid-template-columns: 1fr !important;
  }

  .match-page-toolbar,
  .match-mode-switch {
    margin-left: 0;
    margin-right: 0;
  }

  .match-mode-switch button {
    min-height: 38px;
    font-size: 13px;
  }

  .summary-grid,
  .match-page-grid,
  .quick-decision-board,
  .decision-grid,
  .filter-board-grid,
  .final-decision-grid,
  .final-decision-head,
  .universal-model-head,
  .universal-model-grid,
  .script-set-grid,
  .quick-risk-grid,
  .triad-grid,
  .odds-math-grid,
  .calibration-grid,
  .review-summary-grid,
  .odds-map-cards,
  .odds-spotlight-grid,
  .sp-backtest-grid,
  .global-stats-cards,
  .signal-strip {
    grid-template-columns: 1fr !important;
  }

  .review-record-wrap,
  .historical-score-panel,
  .trend-table-wrap,
  .odds-map-wrap,
  .global-stats-wrap,
  .path-table-card,
  .standing-table,
  .score-frequency-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .review-record-table,
  .odds-map-record-table,
  .global-stats-record-table,
  .trend-table,
  .draw-rate-table {
    min-width: 720px;
    font-size: 12px;
  }

  .review-record-table th,
  .review-record-table td,
  .odds-map-record-table th,
  .odds-map-record-table td,
  .global-stats-record-table th,
  .global-stats-record-table td {
    padding: 8px 6px;
  }

  .odds-map-subnav {
    display: grid;
    margin-left: 14px;
    margin-right: 14px;
  }

  .odds-backtest-modal {
    padding: 10px;
  }

  .odds-backtest-dialog header,
  .odds-backtest-dialog-grid,
  .odds-backtest-status-grid,
  .odds-backtest-notes,
  .odds-backtest-dialog footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .odds-backtest-dialog header strong {
    font-size: 26px;
  }

  .draw-rate-table,
  .historical-score-table {
    min-width: 560px;
  }

  .score-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .score-table div {
    min-height: 76px;
    border-radius: 14px;
  }

  .drawer-panel {
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 390px) {
  .home-copy h1,
  .hero h1 {
    font-size: 22px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-actions button:first-child {
    grid-column: auto;
  }

  .team {
    font-size: 19px;
  }

  .score {
    font-size: 21px;
  }
}

/* Final readability overrides */
.final-decision-gate .final-decision-grid article {
  background: rgba(255, 255, 255, 0.16);
}

.final-decision-gate .final-decision-grid p {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.final-decision-gate .final-decision-head em {
  color: #f7fbff;
  -webkit-text-fill-color: #f7fbff;
}

body.dashboard-mode .home-topbar {
  background:
    linear-gradient(180deg, #071c43 0%, #0b3678 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(217, 154, 22, 0.34);
  box-shadow: 0 12px 28px rgba(8, 32, 82, 0.22);
}

body.dashboard-mode .home-logo span,
body.dashboard-mode .home-logo strong,
body.dashboard-mode .home-topbar nav button {
  color: #dbeafe;
  -webkit-text-fill-color: #dbeafe;
}

body.dashboard-mode .home-topbar nav button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dashboard-mode .home-topbar nav button.active {
  background: #0b4a9a;
  color: #ffd978;
  -webkit-text-fill-color: #ffd978;
  border-color: rgba(255, 217, 120, 0.58);
}

@media (max-width: 640px) {
  body.is-detail-page .shell {
    width: 100%;
    padding: 0 0 28px;
  }

  body.is-detail-page #match-detail.panel {
    margin: 0;
    padding: 0 6px 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  body.is-detail-page #match-detail-body {
    width: 100%;
  }

  body.is-detail-page .match-page-toolbar,
  body.is-detail-page .match-mode-switch,
  body.is-detail-page .match-page-hero,
  body.is-detail-page .match-page-section,
  body.is-detail-page .match-page-actions {
    margin-left: 0;
    margin-right: 0;
  }

  body.is-detail-page .match-page-section {
    padding: 14px;
  }

  body.is-detail-page .match-page-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.is-detail-page .match-page-summary > span {
    justify-content: flex-start;
    min-height: 32px;
  }

  body.is-detail-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.is-detail-page .summary-grid div {
    min-height: 34px;
    padding: 6px 8px;
  }

  body.is-detail-page .summary-grid b {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  body.is-detail-page #match-detail.panel {
    padding-left: 4px;
    padding-right: 4px;
  }

  body.is-detail-page .match-page-section {
    padding: 13px;
  }
}

.similar-case-panel {
  border-color: rgba(14, 76, 146, 0.28);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(239, 246, 255, 0.96));
}

.similar-case-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.similar-case-summary article {
  border: 1px solid rgba(14, 76, 146, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.similar-case-summary small {
  display: block;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 6px;
}

.similar-case-summary strong {
  color: #08245c;
  font-size: 18px;
}

.similar-case-distribution {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.similar-case-distribution article {
  border: 1px solid rgba(227, 161, 11, 0.28);
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.82);
  padding: 12px;
}

.similar-case-distribution small {
  display: block;
  color: #9a6700;
  font-weight: 900;
  margin-bottom: 6px;
}

.similar-case-distribution strong {
  color: #08245c;
  font-size: 15px;
  line-height: 1.55;
}

.similar-case-practical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.similar-case-practical article {
  border: 1px solid rgba(14, 76, 146, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.similar-case-practical small {
  display: block;
  color: #36526f;
  font-weight: 900;
  margin-bottom: 6px;
}

.similar-case-practical strong {
  color: #08245c;
  font-size: 15px;
  line-height: 1.55;
}

.similar-case-summary-text {
  margin: 8px 0 12px;
  color: #17345f;
  font-weight: 800;
}

.similar-case-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.similar-case-flags em {
  border: 1px solid rgba(204, 20, 33, 0.18);
  border-radius: 999px;
  background: rgba(255, 241, 242, 0.9);
  color: #c8102e;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
}

.model-update-log {
  margin-top: 28px;
  border: 1px solid rgba(14, 76, 146, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
}

.model-update-log article {
  border-left: 5px solid #e3a10b;
  padding-left: 18px;
}

.model-update-log article > span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(14, 76, 146, 0.08);
  color: #08245c;
  font-weight: 1000;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.model-update-log strong {
  display: block;
  color: #c8102e;
  font-size: 22px;
  margin-bottom: 8px;
}

.model-update-log ul {
  margin: 0;
  padding-left: 20px;
  color: #17345f;
  font-weight: 800;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .similar-case-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .similar-case-distribution {
    grid-template-columns: 1fr;
  }

  .similar-case-practical {
    grid-template-columns: 1fr;
  }
}

/* 首页首屏标题以可读性优先，避免全局渐变文字在深色背景上发灰。 */
.home-hero .home-copy h1 {
  background: none;
  color: #f7fbff;
  -webkit-text-fill-color: #f7fbff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38), 0 0 1px rgba(255, 255, 255, 0.72);
  animation: none;
}

.home-hero .home-copy h1 strong {
  color: #ffd978;
  -webkit-text-fill-color: #ffd978;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42), 0 0 1px rgba(255, 255, 255, 0.64);
}

/* Refined site background: sparse data texture, no dense grid */
body {
  background-color: #f6f9fd;
  background-image:
    linear-gradient(116deg, transparent 0 33%, rgba(7, 60, 135, 0.055) 33.1% 33.32%, transparent 33.45% 100%),
    linear-gradient(104deg, transparent 0 68%, rgba(217, 154, 22, 0.075) 68.08% 68.3%, transparent 68.45% 100%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 46%, #fffaf0 100%);
  background-attachment: fixed;
  background-size: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(7, 60, 135, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.72));
  opacity: 0.62;
}

.sticky-board {
  background:
    linear-gradient(90deg, rgba(246, 249, 253, 0), rgba(246, 249, 253, 0.94) 14%, rgba(246, 249, 253, 0.94) 86%, rgba(246, 249, 253, 0));
  backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  body {
    background-image:
      linear-gradient(118deg, transparent 0 36%, rgba(7, 60, 135, 0.045) 36.1% 36.34%, transparent 36.48% 100%),
      linear-gradient(180deg, #f8fbff 0%, #f2f7fd 52%, #fffaf0 100%);
  }

  body::before {
    background:
      repeating-linear-gradient(180deg, rgba(7, 60, 135, 0.028) 0 1px, transparent 1px 88px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.78));
    opacity: 0.54;
  }
}
