/* app.css v1 */
:root {
  --cyan: #7ea6bd;
  --cyan-glow: rgba(126, 166, 189, 0.15);
  --cyan-subtle: rgba(126, 166, 189, 0.08);
  --purple: #86a6c4;
  --green: #7aaa96;
  --red: #b87070;
  --amber: #b89a60;
  --bg: #111820;
  --bg2: #16202b;
  --card: rgba(22, 30, 42, 0.88);
  --card-border: rgba(126, 166, 189, 0.1);
  --text: #e2e0dc;
  --text2: #8996a6;
  --text3: #586575;
  --radius: 16px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  /* 字号层级 */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 20px;
  --fs-num: 34px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  background: linear-gradient(180deg, #131b24 0%, var(--bg) 100%);
  color: var(--text);
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 自定义滚动条（Firefox） */
  scrollbar-color: rgba(126, 166, 189, 0.25) transparent;
  scrollbar-width: thin;
}
/* 自定义滚动条（Webkit：Chrome/Safari/Edge） */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(126, 166, 189, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 166, 189, 0.45);
}

/* 导航栏 */
.navbar {
  width: 100%;
  padding: 38px 19px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: transform 0.24s ease;
}
@media (max-width: 480px) {
  .navbar {
    padding-top: max(32px, env(safe-area-inset-top, 0px));
  }
}
.nav-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo img,
.nav-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.navbar.hidden {
  transform: translateY(-110%);
}
.nav-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-align: left;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.12);
}
.home-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.navbar:not(.home-mode) .home-actions {
  display: none;
}
.home-update-btn,
.home-bell {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-update-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(129, 164, 214, 0.18);
  color: #7aaa96;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-update-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #b87070;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-update-btn span {
  color: #7aaa96;
}
.home-bell {
  position: relative;
  width: 30px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(218, 230, 255, 0.8);
}
.home-bell svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.home-bell span {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #b87070;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(184, 112, 112, 0.35);
}

/* ═══ "我的"标签按钮 ═══ */
.home-my-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(129, 164, 214, 0.18);
  color: #829eaa;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-my-btn span {
  color: #829eaa;
}

/* ═══ 消息提醒铃铛脉冲动画 ═══ */
@keyframes bellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.bell-pulse {
  animation: bellPulse 2s ease-in-out infinite;
}
.nav-back {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(126, 166, 189, 0.08);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}
.back-btn {
  font-size: 20px;
  color: var(--text);
}
.menu-btn {
  width: 20px;
  height: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn svg {
  width: 100%;
  height: 100%;
}

/* TabBar */
.tabbar {
  position: fixed;
  bottom: 40px;
  left: 19px;
  right: 19px;
  max-width: 402px;
  margin: 0 auto;
  height: 85px;
  background: rgba(18, 27, 39, 0.91);
  -webkit-backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 43px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px;
  z-index: 100;
  box-shadow:
    0 0 22px rgba(134, 166, 196, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.54);
}
.tab-item {
  min-width: 54px;
  height: 64px;
  border-radius: 32px;
  color: rgba(207, 219, 241, 0.46);
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}
.tab-item.active {
  color: #ffffff;
}
.tab-item.active::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.24) 34%,
    rgba(255, 255, 255, 0.08) 58%,
    rgba(255, 255, 255, 0) 76%
  );
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.58),
    0 0 34px rgba(255, 255, 255, 0.28);
  filter: blur(5px);
  pointer-events: none;
}
.tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.tab-icon svg {
  width: 100%;
  height: 100%;
}
.tab-item.active .tab-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.58));
}
.tab-label {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* 页面容器 */
.page {
  display: none;
  padding: 0 19px 138px;
}
.page.active {
  display: block;
  animation: fadeUp 0.35s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 首页改版 V8.1 ========== */

.home-banner {
  height: 206px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(96, 151, 204, 0.18);
  background: rgba(7, 21, 38, 0.76);
  box-shadow: 0 0 34px rgba(126, 166, 189, 0.08);
}
.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 23px;
}
.home-stat-card {
  height: 136px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(26, 25, 42, 0.96), rgba(16, 17, 28, 0.96));
  border: 1px solid rgba(96, 151, 204, 0.17);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
  padding: 14px 6px 13px;
}
.home-stat-card:active {
  transform: scale(0.97);
  border-color: rgba(134, 166, 196, 0.32);
}
.home-stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.home-stat-icon {
  width: 37px;
  height: 37px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-stat-calendar {
  color: #7ea6bd;
  background: rgba(70, 103, 255, 0.16);
  box-shadow: 0 0 20px rgba(126, 166, 189, 0.16);
}
.home-stat-fire {
  color: #86a6c4;
  background: rgba(134, 166, 196, 0.16);
  box-shadow: 0 0 20px rgba(134, 166, 196, 0.16);
}
.home-stat-fire svg {
  fill: currentColor;
  stroke: none;
}
.home-stat-bars {
  color: #7aaa96;
  background: rgba(122, 170, 150, 0.15);
  box-shadow: 0 0 20px rgba(122, 170, 150, 0.13);
}
.home-stat-bars svg {
  stroke-width: 4;
}
.home-stat-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  font-family:
    'DIN Alternate',
    'Bahnschrift',
    'SF Pro Display',
    -apple-system,
    var(--font);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(134, 166, 196, 0.22);
}
#homeMatchCount {
  color: #7ea6bd;
}
#homeMaxRank {
  color: #86a6c4;
}
#homeHottest {
  color: #7aaa96;
}
.home-stat-title {
  font-size: 13px;
  color: #3a4a5a;
  margin-top: 12px;
  font-weight: 600;
}
.home-stat-desc {
  margin-top: 8px;
  font-size: 11px;
  color: #6a7a8a;
}
#homeMatchMeta,
#homeMaxRankMeta,
#homeHottestMeta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#homeMatchMeta {
  color: var(--alpine-mint-deep);
  background: rgba(91, 212, 200, 0.14);
  text-shadow: 0 0 10px rgba(91, 212, 200, 0.2);
}
#homeMaxRankMeta {
  color: var(--alpine-coral-deep);
  background: rgba(244, 111, 89, 0.14);
  text-shadow: 0 0 10px rgba(244, 111, 89, 0.18);
}
#homeHottestMeta {
  color: #965128;
  background: rgba(217, 179, 108, 0.18);
  text-shadow: 0 0 10px rgba(217, 179, 108, 0.2);
}

.home-function-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 8px;
  min-height: 248px;
}
.home-left-card {
  min-width: 0;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(24, 34, 48, 0.95), rgba(22, 21, 36, 0.95));
  border: 1px solid rgba(93, 143, 211, 0.18);
  position: relative;
  box-shadow: 0 0 30px rgba(126, 166, 189, 0.06);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-left-card:active {
  transform: scale(0.985);
}
.home-left-main {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.home-plus-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: linear-gradient(180deg, #5f7f95, #405d70);
  border: 1px solid rgba(120, 178, 255, 0.45);
  box-shadow:
    0 0 0 4px rgba(78, 140, 255, 0.08),
    0 0 22px rgba(78, 140, 255, 0.45),
    inset 0 1px 10px rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}
.home-left-content {
  flex: 1;
  min-width: 0;
}
.home-left-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.home-left-desc {
  margin-top: 5px;
  font-size: 12px;
  color: #8996a6;
  white-space: nowrap;
}
.home-chess-bg {
  position: absolute;
  right: 12px;
  bottom: -14px;
  width: 82px;
  height: 82px;
  pointer-events: none;
  color: rgba(137, 176, 226, 0.13);
  z-index: 0;
}
.home-chess-bg::before {
  content: '⚽';
  position: absolute;
  inset: 0;
  font-size: 74px;
  line-height: 1;
  opacity: 0.82;
  filter: grayscale(1) drop-shadow(0 0 18px rgba(134, 166, 196, 0.1));
}
.home-data-core {
  margin-top: auto;
  border-radius: 9px;
  padding: 15px 8px 9px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}
.home-core-title {
  color: #e2e0dc;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.home-bottom-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.home-tool {
  height: 48px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: #e2e0dc;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.home-tool-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-tool-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-tool-backtest {
  color: #7ea6bd;
}
.home-tool-model {
  color: #86a6c4;
}
.home-tool-quant {
  color: #7aaa96;
}
.home-tool:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.home-right-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-right-card {
  flex: 1;
  min-height: 118px;
  border-radius: 10px;
  padding: 24px 13px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
  background: linear-gradient(145deg, rgba(30, 34, 60, 0.96), rgba(18, 22, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}
.home-right-card:active {
  transform: scale(0.97);
  border-color: rgba(255, 255, 255, 0.12);
}
.home-right-card::after {
  content: '⚽';
  position: absolute;
  right: 8px;
  bottom: -18px;
  font-size: 64px;
  line-height: 1;
  opacity: 0.08;
  filter: grayscale(1);
  pointer-events: none;
}
.home-right-card > * {
  position: relative;
  z-index: 1;
}
.home-card-income {
  background: linear-gradient(145deg, rgba(34, 34, 64, 0.96), rgba(18, 22, 38, 0.96));
}
.home-card-hit {
  background: linear-gradient(145deg, rgba(20, 55, 52, 0.96), rgba(11, 31, 30, 0.96));
  border-color: rgba(122, 170, 150, 0.16);
}
.home-right-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-right-icon svg {
  width: 27px;
  height: 27px;
}
.home-icon-money {
  background: rgba(184, 154, 96, 0.2);
  color: #c8981e;
  box-shadow: 0 0 24px rgba(184, 154, 96, 0.24);
}
.home-icon-green {
  background: rgba(122, 170, 150, 0.17);
  color: #7aaa96;
  box-shadow: 0 0 24px rgba(122, 170, 150, 0.16);
}
.home-right-text {
  flex: 1;
  min-width: 0;
}
.home-right-title {
  font-size: clamp(14px, 4.5vw, 17px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.home-right-desc {
  margin-top: 6px;
  font-size: clamp(9px, 2.5vw, 11px);
  color: #8fa6bc;
  line-height: 1.4;
  /* 取消强制单行截断，允许在小屏手机上显示完整或换行 */
}
.home-right-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #8fa6bc;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}

/* 保留旧菜单样式（其他页面可能引用） */
.quick-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu-item:active {
  transform: scale(0.98);
  background: rgba(126, 166, 189, 0.05);
}
.menu-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(126, 166, 189, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(126, 166, 189, 0.2);
  color: #86a6c4;
}
.menu-icon svg {
  width: 20px;
  height: 20px;
}
.menu-content {
  flex: 1;
}
.menu-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 4px;
}
.menu-desc {
  font-size: var(--fs-xs);
  color: var(--text3);
}
.menu-arrow {
  font-size: var(--fs-lg);
  color: var(--text3);
}

/* 比赛卡片 */
.match-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 40, 60, 0.9) 0%, rgba(10, 20, 35, 0.95) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(126, 166, 189, 0.05) 100%);
  pointer-events: none;
}
/* 场次复选框（用量化排行榜同款 q-chk 样式） */
.mc-chk-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 4px;
  cursor: pointer;
  padding: 8px;
  margin-left: -8px; /* 扩大点击热区 */
  position: relative;
  z-index: 1;
}
.mc-chk {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.mc-chk:checked {
  border-color: var(--cyan);
  background: transparent;
}
.mc-chk:checked::after {
  content: '✓';
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}
.match-card.picked {
  border-color: rgba(126, 166, 189, 0.3);
  box-shadow: 0 0 12px rgba(126, 166, 189, 0.08);
}
.match-card.match-focus-target {
  border-color: rgba(167, 139, 250, 0.52);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.18),
    0 0 26px rgba(167, 139, 250, 0.18);
  scroll-margin-top: 108px;
  animation: match-focus-pulse 1.6s ease-in-out 2;
}
@keyframes match-focus-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(167, 139, 250, 0.1),
      0 0 10px rgba(167, 139, 250, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(167, 139, 250, 0.24),
      0 0 30px rgba(167, 139, 250, 0.24);
  }
}
/* PK 提示条 */
.pk-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.18);
  font-size: 13px;
  color: #c8981e;
  line-height: 1.5;
}
.pk-hint-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.match-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.match-header-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.match-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.match-league {
  font-size: var(--fs-sm);
  color: var(--cyan);
  font-weight: 500;
}
.match-num {
  font-size: var(--fs-xs);
  color: var(--text2);
  background: rgba(126, 166, 189, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
}
.match-single-badge {
  font-size: 10px;
  color: #b87070;
  background: rgba(184, 112, 112, 0.12);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
/* ★ 让球标签（比赛列表卡片） */
.match-handicap-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.2;
}
.match-handicap-tag.rq-pos {
  color: #b87070;
  background: rgba(184, 112, 112, 0.12);
}
.match-handicap-tag.rq-neg {
  color: #7aaa96;
  background: rgba(122, 170, 150, 0.12);
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.team-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.team-name:first-child {
  text-align: right;
}
.team-name:last-child {
  text-align: left;
}
.vs {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text3);
}
.match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  margin-bottom: 12px;
}
.match-experts {
  color: var(--cyan);
  font-weight: 500;
}
.match-time {
  color: var(--text3);
}
.match-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text2);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
}
.match-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.match-score {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(126, 166, 189, 0.4);
  line-height: 1;
}
.match-half {
  font-size: var(--fs-xs);
  color: var(--text3);
  margin-left: 4px;
}
.match-dur {
  font-size: var(--fs-xs);
  color: var(--cyan);
  font-weight: 700;
  margin-left: 4px;
}
.match-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}
.match-card-stat .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.match-card-stat.yellow {
  background: rgba(184, 154, 96, 0.2);
  color: var(--amber);
}
.match-card-stat.yellow .stat-dot {
  background: var(--amber);
}
.match-card-stat.red {
  background: rgba(184, 112, 112, 0.2);
  color: var(--red);
}
.match-card-stat.red .stat-dot {
  background: var(--red);
}

/* ★ P3-1: WebSocket 实时推送 — 比赛结束闪烁动画 */
@keyframes match-finished-flash {
  0%,
  100% {
    border-color: var(--card-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  }
  50% {
    border-color: var(--cyan);
    box-shadow: 0 2px 20px var(--cyan-glow);
  }
}
.match-card.match-finished-flash {
  animation: match-finished-flash 0.6s ease-in-out 3;
}
.match-card.live {
  border-color: rgba(126, 166, 189, 0.35);
}
/* WS Toast 通知 */
#ws-toast {
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 排行榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  align-items: center;
  position: relative;
}
.rank-ai-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.18), rgba(134, 166, 196, 0.18));
  border: 1px solid rgba(126, 166, 189, 0.35);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.rank-ai-tag:hover {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.3), rgba(134, 166, 196, 0.3));
  border-color: rgba(126, 166, 189, 0.6);
  box-shadow: 0 0 10px rgba(126, 166, 189, 0.2);
}
.rank-hit-stamp {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #b87070;
  border: 1.5px solid #b87070;
  border-radius: 50%;
  transform: rotate(-10deg);
  margin-left: auto;
}
.rank-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}
.rank-badge.gold {
  background: linear-gradient(135deg, #b89a60, #b89a60);
}
.rank-badge.silver {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}
.rank-badge.bronze {
  background: linear-gradient(135deg, #cd7f32, #b89a60);
}
.rank-badge.normal {
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text2);
}
.rank-content {
  flex: 1;
}
.rank-teams {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 4px;
}
.rank-meta {
  font-size: var(--fs-xs);
  color: var(--text3);
  margin-bottom: 8px;
}
.rank-direction {
  font-size: var(--fs-sm);
  color: var(--cyan);
  margin-bottom: 8px;
}
.rank-progress {
  height: 4px;
  background: rgba(126, 166, 189, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.rank-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d7ebee 0%, #7faeb6 100%);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 筛选器 */
/* 日期切换栏 */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 6px 0 19px;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.date-current {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  min-width: 130px;
  text-align: center;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.date-current:hover {
  background: rgba(126, 166, 189, 0.06);
}
.date-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(126, 166, 189, 0.08);
  border: 1px solid rgba(126, 166, 189, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
}
.date-arrow svg {
  width: 16px;
  height: 16px;
}
.date-arrow:hover {
  background: rgba(126, 166, 189, 0.18);
  border-color: rgba(126, 166, 189, 0.3);
}
.date-arrow:active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

/* 日历选择器 */
.date-picker {
  position: relative;
  margin: 0 0 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.25s ease;
}
.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.date-picker-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(126, 166, 189, 0.08);
  border: 1px solid rgba(126, 166, 189, 0.15);
  color: var(--cyan);
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.date-picker-nav:hover {
  background: rgba(126, 166, 189, 0.18);
}
.date-picker-month {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.date-picker-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--fs-sm);
  color: var(--text2);
  cursor: default;
  transition: all 0.15s;
}
.date-picker-cell.has-match {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}
.date-picker-cell.has-match:hover {
  background: rgba(126, 166, 189, 0.12);
  color: var(--cyan);
}
.date-picker-cell.today {
  border: 1.5px solid var(--cyan);
  font-weight: 600;
}
.date-picker-cell.active {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(126, 166, 189, 0.3);
}
.date-picker-cell.other-month {
  color: var(--text3);
  opacity: 0.4;
}
.date-picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.date-picker-today {
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.date-picker-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text2);
  font-size: var(--fs-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin: 0 -16px;
  padding-left: 16px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
#planTabBar.filter-row {
  margin: 0;
  padding: 12px 0 17px;
  gap: 6px;
  justify-content: flex-start !important;
  scroll-padding-left: 0;
}
#planTabBar .filter-tag {
  padding: 6px 10px;
}
.filter-tag {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag.active {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}

/* 图表容器 */
.chart-box {
  background: linear-gradient(135deg, rgba(22,30,42,0.92), rgba(22,30,42,0.82));
  border: 1px solid rgba(126,166,189,0.08);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.home-profit-card {
  margin-bottom: 80px; /* tabbar 留空 */
}
.home-profit-chart {
  width: 100%;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.chart-title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}
.chart {
  width: 100%;
  height: 220px;
}

/* 方向列表 */
.dir-list {
  display: flex;
  flex-direction: column;
}
.dir-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(126,166,189,0.06);
  transition: background-color 0.2s ease;
}
.dir-item:last-child {
  border-bottom: none;
}
.dir-item:hover {
  background: rgba(126,166,189,0.03);
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}
.dir-name {
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dir-name::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), rgba(126,166,189,0.4));
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(126,166,189,0.25);
}
.hit-flag {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
  flex-shrink: 0;
}
.dir-item.hit .dir-name::before {
  display: none;
}
.dir-count {
  font-size: var(--fs-sm);
  color: var(--cyan);
  font-weight: 700;
  font-family: 'DIN Alternate', Bahnschrift, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* 命中率统计 */
.stats-header {
  background: rgba(14, 24, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(126, 166, 189, 0.18);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 0 14px rgba(126, 166, 189, 0.06);
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.stat-big {
  text-align: center;
}
.stat-big-value {
  font-size: var(--fs-num);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.stat-big-label {
  font-size: var(--fs-xs);
  color: var(--text2);
  margin-top: 6px;
}

/* 横向排名条 */
.hit-ranking-card {
  background: rgba(14, 24, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(126, 166, 189, 0.12);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(126, 166, 189, 0.06);
}
.hit-ranking-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.hit-rank-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.hit-rank-num {
  width: 28px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #95a4b2;
  flex-shrink: 0;
}
.hit-rank-num.top3 {
  color: #c8981e;
}
.hit-rank-label {
  width: 120px;
  font-size: var(--fs-md);
  color: #e2e0dc;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hit-rank-bar-bg {
  flex: 1;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: 0 0 8px rgba(126, 166, 189, 0.06);
}
.hit-rank-bar {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hit-rank-pct {
  width: 62px;
  text-align: right;
  font-size: var(--fs-md);
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

/* 表格 */
.data-table {
  width: 100%;
  font-size: var(--fs-sm);
  border-collapse: collapse;
}
.data-table th {
  color: var(--text3);
  font-weight: 500;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.data-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table td:first-child {
  text-align: left;
  font-weight: 500;
}

/* 加载 */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text3);
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  background: linear-gradient(180deg, #111820 0%, #0f151d 100%);
}
.navbar {
  background: linear-gradient(180deg, rgba(0, 16, 24, 0.86), rgba(0, 16, 24, 0));
}
.nav-title {
  text-align: left;
  font-size: 22px;
  font-weight: 800;
}
.tabbar {
  bottom: calc(40px + var(--safe-bottom));
  border-radius: 43px;
  height: 85px;
}
.tab-item {
  min-width: 54px;
  height: 64px;
  border-radius: 32px;
}
.tab-item.active {
  color: #ffffff;
}
.tab-item:not(.active) {
  color: rgba(207, 219, 241, 0.46);
}
.tab-icon {
  font-size: 24px;
}
.match-card {
  min-height: 150px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(8, 20, 32, 0.85), rgba(4, 14, 24, 0.92));
}
.rank-card {
  background: linear-gradient(135deg, rgba(8, 20, 32, 0.88), rgba(4, 14, 24, 0.92));
}
.stats-header {
  background: linear-gradient(135deg, rgba(6, 18, 28, 0.88), rgba(4, 14, 24, 0.9));
}
.match-league,
.match-experts,
.filter-tag.active,
.rank-direction {
  color: var(--cyan);
}
.vs {
  color: #fff;
  font-size: var(--fs-2xl);
  text-transform: uppercase;
}
.filter-tag.active {
  background: var(--cyan);
  color: #001018;
}

/* ========== 筛选页样式 ========== */
/* 数据概览统计卡片 */
.filter-stats-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.stats-subtitle {
  font-size: var(--fs-xs);
  color: var(--cyan);
  margin-bottom: 14px;
  font-weight: 600;
  text-align: center;
}
.filter-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.filter-stat-item {
  flex: 1;
  text-align: center;
}
.filter-stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(126, 166, 189, 0.18);
  line-height: 1.1;
}
.filter-stat-label {
  font-size: var(--fs-xs);
  color: #586575;
  margin-top: 4px;
}
.filter-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(126, 166, 189, 0.1);
  flex-shrink: 0;
}

/* 方案收入统计卡片 — 缩小字号防拥挤 */
.inc-stats-card .filter-stats-row {
  gap: 6px;
}
.inc-stats-card .filter-stat-value {
  font-size: 22px;
  line-height: 1.2;
}
.inc-stats-card .filter-stat-label {
  font-size: 10px;
  margin-top: 2px;
}
.inc-stats-card .filter-stat-divider {
  height: 28px;
}

.filter-section-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 22px 22px 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(126, 166, 189, 0.06);
}
.filter-head {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding: 0 2px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.filter-row:last-of-type {
  border-bottom: none;
}
.filter-label {
  font-size: var(--fs-md);
  color: #95a4b2;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 44px;
  margin-right: 16px;
  margin-left: 8px;
}
.filter-row-inline {
  flex: 1;
  display: flex;
  gap: 10px;
}
.filter-row-inline .filter-dd {
  flex: 1;
}

/* 自定义下拉 */
.filter-dd {
  flex: 1;
  position: relative;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.filter-dd-trigger {
  height: 44px;
  padding: 0 38px 0 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.filter-dd.open .filter-dd-trigger {
  background-color: rgba(126, 166, 189, 0.1);
  border-color: rgba(126, 166, 189, 0.5);
  box-shadow:
    0 0 0 4px rgba(126, 166, 189, 0.07),
    0 0 18px rgba(126, 166, 189, 0.15);
}
.filter-dd-text {
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-dd.open .filter-dd-text {
  color: #fff;
}
.filter-dd-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.filter-dd.open .filter-dd-arrow {
  transform: translateY(-50%) rotate(180deg);
}
.filter-dd-menu {
  display: none;
  position: fixed;
  z-index: 9999;
  background: #131b24;
  border: 1px solid rgba(126, 166, 189, 0.5);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(126, 166, 189, 0.1);
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.filter-dd.open .filter-dd-menu {
  display: block;
}
.filter-dd.open {
  z-index: 999;
  position: relative;
}
.filter-dd-option {
  position: relative;
  padding: 12px 40px 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.filter-dd-option:hover {
  background: rgba(126, 166, 189, 0.08);
  color: #fff;
}
.filter-dd-option.selected {
  color: var(--cyan);
  font-weight: 600;
  background: rgba(126, 166, 189, 0.1);
}
.filter-dd-option.selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}
.filter-btn-wrap {
  margin-top: 18px;
}
.filter-submit-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.25), rgba(126, 166, 189, 0.4));
  border: 1px solid rgba(126, 166, 189, 0.35);
  border-radius: 23px;
  color: var(--cyan);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(126, 166, 189, 0.12);
}
.filter-submit-btn:active {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.36), rgba(126, 166, 189, 0.52));
  transform: scale(0.97);
}

/* 筛选结果 */
.filter-result-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 22px 22px 20px;
  margin-bottom: 14px;
}
.filter-result-head {
  font-size: var(--fs-xs);
  color: var(--cyan);
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}
.filter-cond-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}
.filter-cond-pipe {
  color: rgba(255, 255, 255, 0.15);
}
.filter-result-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 2px;
}
.filter-result-side {
  text-align: center;
  flex: 1;
}
.filter-result-num {
  font-size: 38px;
  font-weight: 900;
  color: #7aaa96;
  text-shadow: 0 0 11px rgba(122, 170, 150, 0.18);
  line-height: 1.1;
  margin-bottom: 2px;
}
.filter-result-label {
  font-size: var(--fs-xs);
  color: #586575;
}
/* 环形图 */
.filter-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.filter-ring-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.filter-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}
.filter-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.filter-ring-pct {
  font-size: 18px;
  font-weight: 900;
  fill: currentColor;
}

/* 结果详情卡片 */
.filter-detail-card {
  background: rgba(14, 24, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(126, 166, 189, 0.12);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.filter-detail-head {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-detail-header-row {
  display: flex;
  font-size: 11px;
  color: var(--text3);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.filter-detail-header-row span:nth-child(1) {
  width: 90px;
  flex-shrink: 0;
}
.filter-detail-header-row span:nth-child(2) {
  flex: 1;
  text-align: center;
}
.filter-detail-header-row span:nth-child(3) {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.filter-detail-row {
  display: flex;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text2);
}
.filter-detail-row:last-child {
  border-bottom: none;
}
.filter-detail-row span:nth-child(1) {
  width: 90px;
  flex-shrink: 0;
  color: var(--text3);
}
.filter-detail-row span:nth-child(2) {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: #fff;
}
.filter-detail-row span:nth-child(3) {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--cyan);
}

/* 命中明细表格 */
.filter-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.filter-detail-table th {
  color: var(--text3);
  font-weight: 500;
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.filter-detail-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text2);
}
.filter-detail-table tr:last-child td {
  border-bottom: none;
}
.fdt-date {
  width: 52px;
  color: var(--text3) !important;
  font-size: 10px;
}
.fdt-league {
  width: 52px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52px;
}
.fdt-match {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-box .fdt-match {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.5;
}
.fdt-dir {
  font-weight: 600;
  color: var(--cyan) !important;
}
.chart-box .fdt-dir {
  white-space: normal;
  line-height: 1.5;
}
.fdt-exp {
  width: 40px;
}
.fdt-res {
  width: 48px;
  font-weight: 700;
}
.fdt-hit {
  color: var(--red) !important;
}
.fdt-miss {
  color: var(--green) !important;
}
/* 方案收入 — 盈利列 */
.fdt-income {
  width: 60px;
  font-weight: 700;
  white-space: nowrap;
}

/* 日趋势表 */
.daily-trend-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.daily-trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 420px;
}
.daily-trend-table th {
  color: var(--text3);
  font-weight: 500;
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.daily-trend-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-weight: 600;
}
.daily-trend-table tr:last-child td {
  border-bottom: none;
}
.dtt-date {
  color: var(--text3);
  width: 48px;
  font-weight: 500 !important;
}
.dtt-dir {
  color: var(--cyan);
  min-width: 52px;
}
.dtt-high {
  color: var(--green) !important;
}
.dtt-mid {
  color: var(--cyan) !important;
}
.dtt-low {
  color: var(--red) !important;
}

.hint-box {
  text-align: center;
  padding: 80px 0;
  color: var(--text3);
  font-size: var(--fs-md);
}

/* ========== 方案收入样式 ========== */
.income-list {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.income-header-row {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #586575;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 255, 255, 0.03);
}
.income-header-row > *:nth-child(1) {
  width: 70px;
  flex-shrink: 0;
}
.inc-col-hit {
  flex: 1;
  text-align: center;
}
.inc-col-rate {
  width: 70px;
  text-align: center;
  flex-shrink: 0;
}
.inc-col-income {
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.income-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.income-row:last-child {
  border-bottom: none;
}
.income-date {
  width: 70px;
  flex-shrink: 0;
  color: var(--text3);
  font-size: 13px;
}
.income-hit {
  flex: 1;
  text-align: center;
  color: var(--text2);
  font-weight: 600;
}
.income-rate {
  width: 70px;
  text-align: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-weight: 700;
}
.income-value {
  width: 90px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

/* ========== 模型排行表格列宽 ========== */
.md-rank-list .income-header-row > * {
  flex-shrink: 0;
}
.md-rank-col-rank {
  width: 42px;
  text-align: center;
  flex-shrink: 0;
}
.md-rank-col-model {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}
.md-rank-col-rate {
  width: 62px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.md-rank-col-trend {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}
.md-rank-col-count {
  width: 50px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text3);
}

/* ========== 数据健康页列表列宽 ========== */
.dh-source-list .income-header-row > * {
  flex-shrink: 0;
}
.dh-col-status {
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.dh-col-name {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}
.dh-col-rate {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.dh-col-bar {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 6px;
}
.dh-col-bar span {
  flex: 1;
}
.dh-col-detail {
  width: 90px;
  text-align: right;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--text3);
}

.dh-alert-list .income-header-row > * {
  flex-shrink: 0;
}
.dh-col-alert-level {
  width: 48px;
  flex-shrink: 0;
}
.dh-col-alert-msg {
  flex: 1;
  color: var(--text);
  line-height: 1.4;
}
.dh-col-alert-time {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--text3);
}

.dh-gate-list .income-header-row > * {
  flex-shrink: 0;
}
.dh-col-gate-icon {
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.dh-col-gate-name {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}
.dh-col-gate-rate {
  width: 62px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ========== 方案收入明细列表列宽 ========== */
.dh-inc-detail .income-header-row > * {
  flex-shrink: 0;
}
.dh-inc-detail .dh-col-alert-time {
  width: 64px;
  text-align: left;
}
.dh-inc-detail .dh-col-name {
  flex: 0 0 72px;
  color: var(--text);
  font-weight: 600;
}
.dh-inc-detail .dh-col-detail {
  flex: 1;
  min-width: 160px;
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-inc-detail .dh-col-rate {
  width: 70px;
  text-align: center;
  font-weight: 700;
}
.dh-col-income {
  width: 64px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.dh-col-gate-status {
  width: 72px;
  text-align: right;
  flex-shrink: 0;
  font-size: var(--fs-sm);
}

/* ========== 回测分析列表列宽 ========== */
.bt-detail-list .income-header-row > * {
  flex-shrink: 0;
}
.bt-col-date {
  width: 52px;
  flex-shrink: 0;
  color: var(--text3);
  font-size: 10px;
}
.bt-col-match {
  width: 62px;
  text-align: center;
  flex-shrink: 0;
}
.bt-col-teams {
  flex: 1.2;
  min-width: 0;
}
.bt-col-pred {
  width: 90px;
  flex-shrink: 0;
}

/* 回测统计卡片颜色 */
.bt-green {
  color: var(--green) !important;
}
.bt-amber {
  color: var(--amber) !important;
}

/* AI预测卡片 */
.ai-card {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.08), rgba(126, 166, 189, 0.04));
  border: 1px solid rgba(126, 166, 189, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-card:active {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.14), rgba(126, 166, 189, 0.08));
  transform: scale(0.98);
}
.ai-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-icon {
  font-size: 20px;
}
.ai-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  flex: 1;
}
.ai-arrow {
  font-size: 22px;
  color: var(--cyan);
}
.ai-summary {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* AI弹窗 — 已移至 modals.css */
/* 功守道弹窗 — 已移至 modals.css */
/* PK弹窗 — 已移至 modals.css */
.plan-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(14, 24, 34, 0.72);
  border: 1px solid rgba(0, 255, 255, 0.16);
  margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
  overflow: visible;
}
/* 头部 */
.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-soccer-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-soccer-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.plan-pub-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ★ 奖金优化标签 — 圆角 */
.bonus-opt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c8981e;
  background: rgba(184, 154, 96, 0.1);
  border: 1px solid rgba(184, 154, 96, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.bonus-opt-badge:hover {
  background: rgba(184, 154, 96, 0.18);
  border-color: rgba(184, 154, 96, 0.35);
}
.bonus-opt-badge-sm {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #c8981e;
  background: rgba(184, 154, 96, 0.1);
  border: 1px solid rgba(184, 154, 96, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.bonus-opt-badge-sm:hover {
  background: rgba(184, 154, 96, 0.18);
}

/* ★ 奖金优化弹窗 — 三Tab + 表格 + 步进器（暗黑主题） */
.bo-modal-wrap {
  max-width: 560px;
  width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 14px;
  background: #131b24;
  border: 1px solid rgba(184, 154, 96, 0.15);
}
.bo-panel {
  padding: 0;
}
.bo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(130, 158, 164, 0.12);
  border-radius: 14px 14px 0 0;
}
.bo-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}
.bo-close {
  position: absolute;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(130, 158, 164, 0.1);
  border: none;
  color: #586575;
  font-size: 16px;
  cursor: pointer;
}

/* Tab */
.bo-tab-wrap {
  display: flex;
  margin: 14px 16px 0;
  border: 1px solid #b87070;
  border-radius: 14px;
  overflow: hidden;
}
.bo-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: #b87070;
  background: transparent;
  border-right: 1px solid #b87070;
  cursor: pointer;
  transition: all 0.2s;
}
.bo-tab:last-child {
  border-right: none;
}
.bo-tab.active {
  background: #b87070;
  color: #fff;
}

/* 描述行 */
.bo-desc-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 19px 4px;
  font-size: 12px;
  color: #586575;
}
.bo-desc-row b {
  color: #b87070;
}

/* 表头 */
.bo-thead {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 10px 10px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bo-th {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #586575;
}
.col-pass {
  width: 64px;
  flex-shrink: 0;
}
.col-desc {
  flex: 1;
}
.col-bet {
  width: 148px;
  flex-shrink: 0;
}
.col-amount {
  width: 90px;
  flex-shrink: 0;
}

/* 行 */
.bo-tbody {
  margin: 0 10px 10px;
}
.bo-row {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bo-row:last-child {
  border-bottom: none;
}

/* 过关标签 */
.bo-pass-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 22px;
  border-radius: 14px;
  background: rgba(184, 112, 112, 0.1);
  color: #b87070;
  font-size: 11px;
  font-weight: 700;
}
.bo-cell-pass {
  width: 64px;
  display: flex;
  justify-content: center;
}

/* 描述 */
.bo-cell-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
}
.bo-desc-line1 {
  font-size: 12px;
  color: #444;
  font-weight: 500;
  text-align: center;
}
.bo-desc-line2 {
  font-size: 11px;
  color: #586575;
  text-align: center;
}

/* 步进器 */
.bo-cell-bet {
  width: 148px;
  display: flex;
  justify-content: center;
}
.bo-stepper {
  display: flex;
  width: 122px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.bo-stepper.active {
  border-color: #7aaa96;
  box-shadow: 0 0 8px rgba(22, 160, 133, 0.15);
}
.bo-step-btn {
  width: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  color: #8996a6;
  cursor: pointer;
  line-height: 1;
}
.bo-step-btn:active {
  background: rgba(255, 255, 255, 0.1);
}
.bo-step-input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  width: 100%;
  min-width: 0;
}

/* 预测奖金 */
.bo-cell-amount {
  width: 90px;
  display: flex;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #7ea6bd;
}
.bo-amount-hot {
  color: #b87070;
  font-weight: 700;
  font-size: 18px;
}

/* 计划购买 */
.bo-plan-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 6px;
  border-top: 1px solid #e0e0e0;
}
.bo-plan-label {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}
.bo-plan-stepper {
  display: flex;
  align-items: center;
  width: 170px;
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.bo-plan-btn {
  width: 36px;
  height: 100%;
  border: none;
  background: #f5f5f5;
  font-size: 18px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bo-plan-btn:hover {
  background: #ebebeb;
}
.bo-plan-btn:active {
  background: #e0e0e0;
}
.bo-plan-input {
  flex: 1;
  height: 100%;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  outline: none;
  min-width: 0;
}
.bo-plan-unit {
  font-size: 14px;
  color: #444;
}
.bo-plan-summary {
  text-align: center;
  padding: 6px 16px 10px;
  font-size: 13px;
  color: #444;
}
.bo-plan-summary b {
  color: #c45c5c;
  font-weight: 700;
  margin: 0 2px;
}
.bo-plan-prize {
  color: #c45c5c;
  font-weight: 700;
  margin-left: 4px;
}

/* 底部 */
.bo-footer {
  padding: 12px 16px 20px;
  display: flex;
  justify-content: center;
}
.bo-footer .bet-btn-confirm {
  width: 200px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #b89a60, #b89a60);
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(184, 154, 96, 0.25);
}
.bo-footer .bet-btn-confirm:active {
  transform: scale(0.97);
}
/* 数据行 - 内容在两线之间垂直居中 */
.plan-amount-row {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-top: 14px;
  min-height: 46px;
}
.plan-amount-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.plan-amount-col + .plan-amount-col {
  border-left: 1px solid rgba(0, 255, 255, 0.12);
}
.plan-amount-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2px;
}
.plan-amount-value {
  font-size: 18px;
  font-weight: 700;
  color: #7ea6bd;
  text-shadow: 0 0 8px rgba(126, 166, 189, 0.2);
}
.plan-amount-value .unit {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: none;
  margin-left: 1px;
}
.plan-win-stamp {
  width: 38px;
  height: 38px;
  margin-left: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-win-stamp svg {
  width: 100%;
  height: 100%;
}
/* 分割线 */
.plan-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(0, 255, 255, 0.08);
}
/* 方案信息：左右分栏 */
.plan-info-grid {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.plan-info-left {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.plan-info-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  color: #7ea6bd;
  text-shadow: 0 0 6px rgba(126, 166, 189, 0.15);
}
/* 中奖/未中图标 - plan-info-grid右侧垂直居中 */
.plan-info-grid .plan-win-stamp,
.plan-info-grid .plan-lose-stamp {
  width: 38px;
  height: 38px;
  margin-left: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 比赛表格 */
.plan-match-section {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.1);
}
.plan-match-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.plan-match-table th {
  height: 34px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 255, 255, 0.04);
}
.plan-match-table th:first-child {
  width: 26%;
}
.plan-match-table th:nth-child(2) {
  width: 34%;
}
.plan-match-table th:last-child {
  width: 40%;
}
.plan-match-table td {
  font-size: 11px;
  padding: 9px 6px;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 255, 255, 0.06);
}
.plan-match-table .match-info-col {
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-weight: 500;
  font-size: 11px;
}
.plan-match-table .match-num-text {
  font-size: 11px;
  font-weight: 600;
}
.plan-match-table .match-time-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  margin-top: 2px;
}
.plan-match-table .team-col {
  text-align: center;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.plan-team-home,
.plan-team-away {
  font-size: 11px;
  color: #fff;
}
.plan-team-vs {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.plan-score-blue {
  font-size: 11px;
  font-weight: 700;
  color: #7ea6bd;
  padding: 0 6px;
}
.plan-match-table .odds-col {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── 比分方案卡片（amber 色调） ─── */
.plan-card.score-plan {
  border-color: rgba(184, 154, 96, 0.18);
  background: rgba(14, 24, 34, 0.72);
}
.plan-card.score-plan .plan-divider {
  background: rgba(184, 154, 96, 0.12);
}
.plan-card.score-plan .plan-amount-col + .plan-amount-col {
  border-left-color: rgba(184, 154, 96, 0.12);
}
.plan-card.score-plan .plan-odds-combo {
  color: var(--amber);
}
.plan-card.score-plan .plan-amount-value {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(184, 154, 96, 0.2);
}
.plan-card.score-plan .plan-info-right {
  color: var(--amber);
  text-shadow: 0 0 6px rgba(184, 154, 96, 0.15);
}
.plan-card.score-plan .plan-match-section {
  border-color: rgba(184, 154, 96, 0.1);
}
.plan-card.score-plan .plan-match-table th {
  background: rgba(184, 154, 96, 0.04);
}
.plan-card.score-plan .plan-match-table td {
  border-top-color: rgba(184, 154, 96, 0.06);
}

/* ─── 量化方案卡片（purple 色调） ─── */
.plan-card.quant-plan {
  border-color: rgba(134, 166, 196, 0.18);
  background: rgba(14, 24, 34, 0.72);
}
.plan-card.quant-plan .plan-divider {
  background: rgba(134, 166, 196, 0.12);
}
.plan-card.quant-plan .plan-amount-col + .plan-amount-col {
  border-left-color: rgba(134, 166, 196, 0.12);
}
.plan-card.quant-plan .plan-amount-value {
  color: var(--purple);
  text-shadow: 0 0 8px rgba(134, 166, 196, 0.2);
}
.plan-card.quant-plan .plan-info-right {
  color: var(--purple);
  text-shadow: 0 0 6px rgba(134, 166, 196, 0.15);
}
.plan-card.quant-plan .plan-odds-combo {
  color: var(--purple);
}
.plan-card.quant-plan .plan-match-section {
  border-color: rgba(134, 166, 196, 0.1);
}
.plan-card.quant-plan .plan-match-table th {
  background: rgba(134, 166, 196, 0.04);
}
.plan-card.quant-plan .plan-match-table td {
  border-top-color: rgba(134, 166, 196, 0.06);
}
.plan-card.quant-plan .plan-score-meta span {
  background: rgba(134, 166, 196, 0.06);
}
.plan-score-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.plan-score-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(184, 154, 96, 0.08);
  border: 1px solid rgba(184, 154, 96, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}
/* 比分方案表格列宽 */
.score-table th:first-child {
  width: 18%;
}
.score-table th:nth-child(2) {
  width: 28%;
}
.score-table th:nth-child(3) {
  width: 26%;
}
.score-table th:last-child {
  width: 28%;
}
.score-table .allocation-col {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.score-table .plan-alloc-val {
  font-size: 13px;
}
.score-table .plan-alloc-unit {
  font-size: 10px;
  color: rgba(184, 154, 96, 0.6);
  margin-left: 2px;
}
.plan-score-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text3);
}
.plan-score-meta span {
  background: rgba(184, 154, 96, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}
.plan-notice {
  text-align: center;
  padding: 80px 0;
  color: var(--text3);
  font-size: 14px;
}
.plan-notice .notice-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

/* ⚔️ 功守道弹窗 — 已移至 modals.css */

/* 卡片底部功守道标签 */
.match-gs-wrap {
  text-align: right;
  margin-top: 10px;
}
.match-gs-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.1), rgba(134, 166, 196, 0.1));
  border: 1px solid rgba(126, 166, 189, 0.2);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.match-gs-tag:hover {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.2), rgba(134, 166, 196, 0.2));
  border-color: rgba(126, 166, 189, 0.45);
  box-shadow: 0 0 12px rgba(126, 166, 189, 0.15);
}

/* 🤖 AI分析标签 — 紫色渐变 */
.match-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(103, 58, 183, 0.1));
  border: 1px solid rgba(156, 39, 176, 0.2);
  color: #86a6c4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.match-ai-tag:hover {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.2));
  border-color: rgba(156, 39, 176, 0.45);
  box-shadow: 0 0 12px rgba(156, 39, 176, 0.15);
}

/* ★ 投注按钮 & 比赛操作行 */
.match-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.match-bet-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.12), rgba(255, 87, 34, 0.08));
  border: 1px solid rgba(255, 152, 0, 0.25);
  color: #c8981e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.match-bet-btn:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.22), rgba(255, 87, 34, 0.14));
  border-color: rgba(255, 152, 0, 0.45);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.15);
}

/* ═══ 量化数据排行榜 — flex 卡片表格 ═══ */
/* 画板: max420px - pagePadding32 - wrapMargin4 = 384px; rowPad16 + gap2px*n */
/* 标签栏对齐表格宽度 */
#quantFilterBar {
  margin: 0;
  padding: 12px 0;
  border-bottom: none;
}
.quant-table-wrap {
  margin: 0;
  padding-bottom: 20px;
}

/* ═══ P2-5: ECharts 图表视图 ═══ */
.quant-chart-wrap {
  margin: 0;
  padding: 8px 0 20px;
}
.quant-chart-inner {
  width: 100%;
  min-height: 360px;
}

/* ═══ P2-6: 视图切换按钮 ═══ */
.quant-view-toggle {
  display: flex;
  gap: 6px;
  padding: 8px 10px 12px;
  justify-content: center;
}
.qt-view-btn {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 166, 189, 0.2);
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.qt-view-btn.active {
  background: rgba(126, 166, 189, 0.15);
  border-color: rgba(126, 166, 189, 0.4);
  color: var(--cyan);
  font-weight: 700;
}
.qt-view-btn:hover {
  border-color: rgba(126, 166, 189, 0.35);
}

/* 平板及以上 */
@media (min-width: 768px) {
  .quant-chart-inner {
    min-height: 480px;
  }
  .quant-view-toggle {
    padding: 12px 16px 16px;
  }
  /* 中屏放大字体 */
  .quant-card-header {
    font-size: 12px;
    padding: 11px 20px;
  }
  .quant-card-row {
    font-size: 13px;
    padding: 12px 20px;
  }
  .quant-card-row .q-cell-num {
    font-size: 14px !important;
  }
  .q-match-teams {
    font-size: 13px;
  }
  .q-match-vs {
    font-size: 11px;
  }
  .q-cell-rank {
    font-size: 14px;
  }
}
/* 移动端紧凑模式 */
@media (max-width: 480px) {
  .quant-card-header {
    font-size: 10px;
    padding: 8px 8px;
    gap: 2px;
  }
  .quant-card-row {
    font-size: 11px;
    padding: 8px 8px;
    gap: 2px;
  }
  .q-col-chk {
    width: 12px;
  }
  .q-col-match {
    flex: 1.3;
    min-width: 48px;
    max-width: 80px;
  }
  .q-match-teams {
    font-size: 10px;
  }
  .q-match-vs {
    font-size: 8px;
  }
  .q-tag {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  .pk-bar-btn {
    height: 40px;
    font-size: 14px;
  }
}
.quant-card-list {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}
/* 表头行 */
.quant-card-header {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #8996a6;
  font-weight: 600;
  padding: 11px 16px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 255, 255, 0.04);
  min-height: 38px;
}
.quant-card-header span {
  white-space: normal;
  word-break: keep-all;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quant-card-header span.q-sortable {
  cursor: pointer;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.quant-card-header span.q-sort-asc {
  color: var(--cyan);
}
.quant-card-header span.q-sort-desc {
  color: var(--cyan);
}
.quant-card-header span.q-match-hd {
  text-align: center;
}
/* 数据行 */
.quant-card-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  min-height: 42px;
  padding: 10px 16px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.quant-card-row:last-child {
  border-bottom: none;
}
.quant-card-row.picked {
  background: rgba(126, 166, 189, 0.06);
}

/* ── 列宽：checkbox + match 固定宽度，数据列 flex:1 等距分布 ── */
.q-col-chk {
  width: 16px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
}
.q-col-match {
  flex: 1.4;
  min-width: 60px;
  max-width: 130px;
  overflow: hidden;
}
/* 数据列统一 flex:1 等距排列 */
.q-col-rk,
.q-col-gd,
.q-col-cross,
.q-col-power,
.q-col-ad,
.q-col-sum,
.q-col-big,
.q-col-ag,
.q-col-sg,
.q-col-hg,
.q-col-ba,
.q-col-fusion,
.q-col-rq,
.q-col-hot,
.q-col-heat,
.q-col-hf,
.q-col-gf,
.q-col-sd,
.q-col-ol {
  flex: 1;
  min-width: 0;
  text-align: center;
}

/* 单元格内文本居中 */
.quant-card-row span[class*=\"q-col-\"] > .q-cell-num {
  white-space: normal;
  word-break: break-all;
  line-height: 1.3;
  text-align: center;
  display: inline-block;
  width: 100%;
  font-size: 12px;
}

/* 复选框 — 缩小贴近左边缘 */
.q-chk {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.q-chk:checked {
  border-color: var(--cyan);
  background: transparent;
}
.q-chk:checked::after {
  content: '✓';
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -1px;
  left: 2px;
}
/* 对阵列 */
.q-match-cell {
  text-align: center;
  position: relative;
  line-height: 1.3;
}
.q-match-teams {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.q-match-vs {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  padding: 2px 0;
  line-height: 1;
  text-align: center;
}
/* 数值通用 */
.q-cell-num {
  font-weight: 600;
  font-size: 13px;
  color: #8996a6;
}
.q-cell-num.pos {
  color: var(--cyan);
  font-weight: 700;
}
.q-cell-num.neg {
  color: var(--red);
}
.q-cell-num.cool {
  color: #7ea6bd;
}
/* ═══ P0-1: 智能标签 ═══ */
.q-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
  justify-content: center;
  line-height: 1;
}
.q-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  cursor: default;
}
.q-tag.tag-dominance {
  background: rgba(255, 152, 0, 0.15);
  color: #c8981e;
}
.q-tag.tag-meltdown {
  background: rgba(184, 112, 112, 0.15);
  color: #b87070;
}
.q-tag.tag-balanced {
  background: rgba(122, 170, 150, 0.12);
  color: #7aaa96;
}
.q-tag.tag-overheat {
  background: rgba(184, 112, 112, 0.15);
  color: #b87070;
}
.q-tag.tag-cold {
  background: rgba(126, 166, 189, 0.15);
  color: #7ea6bd;
}
.q-tag.tag-defense {
  background: rgba(100, 181, 246, 0.15);
  color: #7ea6bd;
}
.q-tag.tag-attack {
  background: rgba(255, 138, 80, 0.15);
  color: #c8981e;
}
/* 排名 */
.q-cell-rank {
  font-weight: 700;
  font-size: 13px;
  color: #8996a6;
}
.q-cell-rank.r1 {
  color: #c8981e;
}
.q-cell-rank.r2 {
  color: #c0c0c0;
}
.q-cell-rank.r3 {
  color: #cd7f32;
}
/* 底部PK栏 — 紧跟表格 */
.quant-pk-bar {
  margin: 8px 12px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}
.pk-bar-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(126, 166, 189, 0.35);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.25), rgba(126, 166, 189, 0.4));
  color: var(--cyan);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(126, 166, 189, 0.12);
}
.pk-bar-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.36), rgba(126, 166, 189, 0.52));
}
.pk-bar-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text3);
  box-shadow: none;
}
.pk-bar-btn b {
  color: var(--cyan);
  font-size: var(--fs-lg);
}

/* ═══ 场次PK弹窗 — 已移至 modals.css ═══ */
.pk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.85);
}
.pk-overlay.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pk-modal {
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  background: linear-gradient(180deg, #141c2b 0%, #131b24 100%);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  animation: pkSlideUp 0.28s ease;
}
@keyframes pkSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* PK2 头部 */
.pk2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.1);
  position: sticky;
  top: 0;
  background: #141c2b;
  z-index: 2;
}
.pk2-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}
.pk2-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* 区域标签 */
.pk2-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  padding: 10px 10px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 表格 ── */
.pk2-table-wrap {
  padding: 0 4px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pk2-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}
.pk2-table thead th {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
  padding: 5px 2px;
  text-align: center;
  border-bottom: 1px solid rgba(126, 166, 189, 0.08);
  white-space: normal;
  word-break: keep-all;
  line-height: 1.2;
}
.pk2-table tbody td {
  padding: 6px 2px;
  text-align: center;
  font-size: 11px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.04);
  vertical-align: middle;
}
.pk2-th-name {
  width: 28%;
  text-align: center !important;
  padding-left: 0 !important;
}
.pk2-th-num {
  width: auto;
}
.pk2-td-name {
  text-align: center;
  padding-left: 0;
  vertical-align: middle;
}
.pk2-td-num {
  text-align: center;
}
.pk2-row-idx {
  display: none;
}
.pk2-team-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  vertical-align: middle;
}
.pk2-team-num {
  display: none;
}
/* 三行对阵 */
.pk2-match-line {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  text-align: center;
}
.pk2-match-vs {
  font-size: 10px;
  color: var(--text3);
  line-height: 1.35;
  text-align: center;
}
.pk2-row-total {
  background: rgba(126, 166, 189, 0.04);
}
.pk2-row-total td {
  font-size: 11px;
  padding: 7px 3px;
  font-weight: 600;
  color: var(--cyan);
  border-bottom: none;
}

/* 占比颜色 */
.pk2-pct-pos {
  color: #7aaa96;
  font-weight: 600;
}
.pk2-pct-neg {
  color: var(--red);
  font-weight: 600;
}
.pk2-pct-bar-wrap {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  overflow: hidden;
}
.pk2-pct-bar {
  height: 100%;
  border-radius: 2px;
}
.pk2-pct-bar.pk2-pct-pos {
  background: linear-gradient(90deg, #7aaa96, #7aaa96);
}
.pk2-pct-bar.pk2-pct-neg {
  background: linear-gradient(90deg, var(--red), #b89a60);
}

/* ── PK结果卡片 ── */
.pk2-card {
  margin: 0 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.04), rgba(134, 166, 196, 0.03));
  overflow: hidden;
}
.pk2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.06);
}
.pk2-card-team {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.pk2-card-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--cyan);
}
.pk2-card-body {
  padding: 6px 0;
}
.pk2-result-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.03);
  gap: 8px;
}
.pk2-result-icon {
  width: 24px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pk2-result-label {
  font-size: 12px;
  color: var(--text2);
  min-width: 100px;
  flex-shrink: 0;
}
.pk2-result-values {
  font-size: 11px;
  color: var(--text3);
  flex: 1;
  min-width: 0;
}
.pk2-result-arrow {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}
.pk2-win {
  color: #7aaa96 !important;
  font-weight: 700 !important;
}
.pk2-lose {
  color: var(--red) !important;
}
.pk2-card-summary {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  border-top: 1px solid rgba(126, 166, 189, 0.08);
  text-align: center;
}

/* 底部按钮 */
.pk2-footer {
  padding: 16px;
  text-align: center;
}
.pk2-done-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(126, 166, 189, 0.35);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.25), rgba(126, 166, 189, 0.4));
  color: var(--cyan);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(126, 166, 189, 0.12);
}
.pk2-done-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.36), rgba(126, 166, 189, 0.52));
}

/* ═══ P0-2: PK增强汇总面板 ═══ */
.pk2-summary-panel {
  margin: 0 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.03), rgba(134, 166, 196, 0.02));
  overflow: hidden;
}
.pk2-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.03);
}
.pk2-summary-row:last-child {
  border-bottom: none;
}
.pk2-summary-label {
  color: var(--text2);
  font-size: 11px;
}
.pk2-summary-value {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* ═══ P1-3: 组合推荐卡片 ═══ */
.pk2-combo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 12px;
}
.pk2-combo-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pk2-combo-card.combo-positive {
  border-color: rgba(122, 170, 150, 0.3);
  background: rgba(122, 170, 150, 0.06);
}
.pk2-combo-card.combo-cold {
  border-color: rgba(126, 166, 189, 0.3);
  background: rgba(126, 166, 189, 0.06);
}
.pk2-combo-card.combo-double {
  border-color: rgba(184, 154, 96, 0.3);
  background: rgba(184, 154, 96, 0.06);
}
.pk2-combo-tag {
  font-size: 12px;
  font-weight: 700;
}
.pk2-combo-card.combo-positive .pk2-combo-tag {
  color: #7aaa96;
}
.pk2-combo-card.combo-cold .pk2-combo-tag {
  color: #7ea6bd;
}
.pk2-combo-card.combo-double .pk2-combo-tag {
  color: #c8981e;
}
.pk2-combo-teams {
  font-size: 11px;
  color: var(--text);
}
.pk2-combo-hint {
  font-size: 10px;
  color: var(--text3);
}

/* ═══════════════════════════════════════════
   V5.0 三维度融合PK — 实战投注决策辅助
   ═══════════════════════════════════════════ */

/* 头部 */
.pk3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.12);
  position: sticky;
  top: 0;
  background: #141c2b;
  z-index: 2;
}
.pk3-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}
.pk3-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* 区域标签 */
.pk3-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  padding: 12px 10px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 模块一：评分卡 ── */
.pk3-score-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}
.pk3-score-card {
  border-radius: 14px;
  border: 1px solid rgba(126, 166, 189, 0.12);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.04), rgba(134, 166, 196, 0.02));
  overflow: hidden;
}
.pk3-sc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.06);
}
.pk3-rank-badge {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.pk3-sc-match {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk3-sc-comp {
  font-size: 22px;
  font-weight: 900;
  color: var(--cyan);
  flex-shrink: 0;
}
.pk3-sc-comp small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  margin-left: 2px;
}
.pk3-sc-body {
  padding: 8px 14px 6px;
}
.pk3-sc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.pk3-sc-label {
  width: 28px;
  font-size: 11px;
  color: var(--text2);
  flex-shrink: 0;
  font-weight: 500;
}
.pk3-sc-bar {
  flex: 1;
}
.pk3-bar-bg {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.pk3-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.bar-cyan {
  background: linear-gradient(90deg, var(--cyan), rgba(126, 166, 189, 0.5));
}
.bar-red {
  background: linear-gradient(90deg, var(--red), rgba(184, 112, 112, 0.5));
}
.bar-green {
  background: linear-gradient(90deg, #7aaa96, rgba(122, 170, 150, 0.5));
}
.bar-amber {
  background: linear-gradient(90deg, var(--amber), rgba(184, 154, 96, 0.5));
}
.bar-blue {
  background: linear-gradient(90deg, #7ea6bd, rgba(126, 166, 189, 0.5));
}
.pk3-sc-val {
  width: 34px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.pk3-sc-foot {
  padding: 6px 14px 10px;
  border-top: 1px solid rgba(126, 166, 189, 0.04);
}
.pk3-sc-advice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.pk3-sc-dir {
  font-size: 13px;
  font-weight: 700;
}
.pk3-sc-goal {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.pk3-sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.pk3-sc-fusion {
  margin-top: 4px;
}
.pk3-tag-t {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
  white-space: nowrap;
}
.pk3-tag-t.tag-red {
  background: rgba(184, 112, 112, 0.12);
  color: #b87070;
}
.pk3-tag-t.tag-green {
  background: rgba(122, 170, 150, 0.12);
  color: #7aaa96;
}
.pk3-tag-t.tag-amber {
  background: rgba(184, 154, 96, 0.12);
  color: #c8981e;
}
.pk3-tag-t.tag-blue {
  background: rgba(126, 166, 189, 0.12);
  color: #7ea6bd;
}
.pk3-tag-t.tag-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #c8981e;
}
.pk3-tag-t.tag-indigo {
  background: rgba(134, 166, 196, 0.12);
  color: #86a6c4;
}
.pk3-fusion-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.fusion-ok {
  background: rgba(76, 175, 80, 0.12);
  color: #7aaa96;
}
.fusion-warn {
  background: rgba(184, 154, 96, 0.12);
  color: #c8981e;
}
.fusion-bad {
  background: rgba(184, 112, 112, 0.12);
  color: #b87070;
}

/* 推荐方向颜色 */
.dir-home,
.pk3-advice-card.dir-home {
  border-left-color: #7aaa96;
}
.dir-home-caut {
  color: #b89a60 !important;
}
.dir-away {
  color: #b89a60 !important;
}
.dir-away-cold {
  color: #7ea6bd !important;
}
.dir-draw {
  color: var(--text2) !important;
}
.dir-avoid {
  color: var(--red) !important;
}
.dir-big {
  color: #7aaa96 !important;
}
.dir-small {
  color: #86a6c4 !important;
}

/* ── 模块二：横向对比总览表 ── */
.pk3-table-wrap {
  margin: 0 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  overflow: hidden;
}
.pk3-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.pk3-compare-table thead th {
  font-size: 9px;
  color: var(--text3);
  font-weight: 500;
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(126, 166, 189, 0.08);
  background: rgba(0, 255, 255, 0.03);
  white-space: normal;
  word-break: keep-all;
  line-height: 1.2;
}
.pk3-compare-table tbody td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(126, 166, 189, 0.04);
  vertical-align: middle;
}
.pk3-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.pk3-compare-table .row-high {
  background: rgba(122, 170, 150, 0.04);
}
.pk3-compare-table .row-mid {
  background: transparent;
}
.pk3-compare-table .row-low {
  background: rgba(184, 112, 112, 0.03);
}
.pk3-compare-table .col-rank {
  width: 24px;
  font-size: 14px;
  padding: 8px 2px;
}
.pk3-compare-table .col-match {
  width: auto;
  text-align: center;
}
.cmp-home,
.cmp-away {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.cmp-vs {
  font-size: 9px;
  color: var(--text3);
  margin: 0 3px;
}
.pk3-compare-table .col-num {
  font-size: 12px;
  font-weight: 700;
  width: 36px;
}
.pk3-compare-table .col-comp {
  width: 60px;
}
.pk3-compare-table .col-comp b {
  font-size: 13px;
  color: var(--cyan);
}
.star-row {
  display: block;
  font-size: 8px;
  line-height: 1;
  margin-top: 1px;
}
.pk3-compare-table .col-dir {
  font-size: 10px;
  font-weight: 700;
  width: 52px;
}
.pk3-compare-table .col-goal {
  font-size: 10px;
  font-weight: 600;
  width: 52px;
}

/* 数值颜色 */
.val-good {
  color: #7aaa96 !important;
}
.val-warn {
  color: #b89a60 !important;
}
.val-bad {
  color: #b87070 !important;
}

/* ── 模块三：投注建议列表 ── */
.pk3-advice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px;
}
.pk3-advice-card {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  background: rgba(126, 166, 189, 0.02);
  border-left: 3px solid rgba(126, 166, 189, 0.2);
}
.pk3-advice-card.dir-home {
  border-left-color: #7aaa96;
  background: rgba(122, 170, 150, 0.03);
}
.pk3-advice-card.dir-away {
  border-left-color: #b89a60;
  background: rgba(249, 115, 22, 0.03);
}
.pk3-advice-card.dir-avoid {
  border-left-color: #b87070;
  background: rgba(184, 112, 112, 0.03);
}
.pk3-advice-card.dir-draw {
  border-left-color: var(--amber);
  background: rgba(184, 154, 96, 0.03);
}
.pk3-adv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pk3-adv-match {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.pk3-adv-comp {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
}
.pk3-adv-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pk3-adv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 2px 0;
}
.pk3-adv-label {
  width: 28px;
  color: var(--text3);
  font-size: 10px;
  flex-shrink: 0;
}
.pk3-adv-val {
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.pk3-adv-val small {
  font-size: 9px;
  font-weight: 400;
}
.pk3-adv-desc {
  font-size: 10px;
  color: var(--text3);
  flex: 1;
}
.pk3-adv-warn {
  color: #b87070;
  font-size: 10px;
  padding: 4px 0;
  background: rgba(184, 112, 112, 0.06);
  border-radius: 6px;
  padding-left: 8px;
  margin-top: 2px;
}
.pk3-adv-info {
  color: #7ea6bd;
  font-size: 10px;
  padding: 4px 0;
  background: rgba(126, 166, 189, 0.06);
  border-radius: 6px;
  padding-left: 8px;
  margin-top: 2px;
}

/* ── 模块四：串关推荐 ── */
.pk3-combo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 12px;
}
.pk3-combo-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pk3-combo-card.combo-positive {
  border-color: rgba(122, 170, 150, 0.3);
  background: rgba(122, 170, 150, 0.06);
}
.pk3-combo-card.combo-cold {
  border-color: rgba(126, 166, 189, 0.3);
  background: rgba(126, 166, 189, 0.06);
}
.pk3-combo-card.combo-steady {
  border-color: rgba(184, 154, 96, 0.3);
  background: rgba(184, 154, 96, 0.06);
}
.pk3-combo-tag {
  font-size: 12px;
  font-weight: 700;
}
.pk3-combo-card.combo-positive .pk3-combo-tag {
  color: #7aaa96;
}
.pk3-combo-card.combo-cold .pk3-combo-tag {
  color: #7ea6bd;
}
.pk3-combo-card.combo-steady .pk3-combo-tag {
  color: #c8981e;
}
.pk3-combo-teams {
  font-size: 11px;
  color: var(--text);
}
.pk3-combo-hint {
  font-size: 10px;
  color: var(--text3);
}

/* ── 模块五：风险预警面板 ── */
.pk3-risk-panel {
  margin: 0 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  background: linear-gradient(135deg, rgba(184, 112, 112, 0.03), rgba(184, 154, 96, 0.02));
  overflow: hidden;
}
.pk3-risk-list {
  padding: 8px 0;
}
.pk3-risk-item {
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.pk3-risk-item:last-child {
  border-bottom: none;
}
.pk3-risk-item.danger {
  color: #b87070;
  font-weight: 600;
}
.pk3-risk-item.warn {
  color: #c8981e;
}
.pk3-risk-item.info {
  color: #7ea6bd;
}
.pk3-risk-clear {
  padding: 12px 14px;
  font-size: 12px;
  color: #7aaa96;
  font-weight: 600;
  text-align: center;
}
.pk3-risk-health {
  padding: 10px 14px;
  border-top: 1px solid rgba(126, 166, 189, 0.06);
  font-size: 11px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pk3-risk-health small {
  font-size: 10px;
}

/* ── 综合评估面板 ── */
.pk3-summary-panel {
  margin: 0 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 166, 189, 0.1);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.03), rgba(134, 166, 196, 0.02));
  overflow: hidden;
}
.pk3-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  border-bottom: 1px solid rgba(126, 166, 189, 0.03);
}
.pk3-summary-row:last-child {
  border-bottom: none;
}
.pk3-summary-label {
  color: var(--text2);
  font-size: 11px;
}
.pk3-summary-value {
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}
.pk3-summary-value small {
  font-size: 9px;
  font-weight: 500;
}

/* 底部按钮 */
.pk3-footer {
  padding: 16px;
  text-align: center;
}
.pk3-done-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(126, 166, 189, 0.35);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.25), rgba(126, 166, 189, 0.4));
  color: var(--cyan);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(126, 166, 189, 0.12);
}
.pk3-done-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.36), rgba(126, 166, 189, 0.52));
}

/* ═══ P1-2: 攻防格局徽章 ═══ */
.pattern-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 2px;
  vertical-align: middle;
  white-space: nowrap;
}
.pattern-badge.atk {
  background: rgba(230, 81, 0, 0.18);
  color: #c8981e;
}
.pattern-badge.def {
  background: rgba(21, 101, 192, 0.18);
  color: #7ea6bd;
}
.pattern-badge.bal {
  background: rgba(117, 117, 117, 0.18);
  color: #9e9e9e;
}

/* ═══ P3-2: 四重验证熔断状态标签 ═══ */
.fusion-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.fusion-badge.fusion-strong {
  background: rgba(46, 125, 50, 0.18);
  color: #7aaa96;
}
.fusion-badge.fusion-weak {
  background: rgba(249, 168, 37, 0.18);
  color: #c8981e;
}
.fusion-badge.fusion-meltdown {
  background: rgba(198, 40, 40, 0.18);
  color: #b87070;
}

/* ═══ P1-1: PK弹窗四重验证行 ═══ */
.pk2-fusion-row {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text2);
}
.pk2-fusion-team {
  flex: 1;
  min-width: 0;
}

.bt-type-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.bt-type-tag.bt-type-ai {
  background: rgba(126, 166, 189, 0.12);
  color: var(--cyan);
}
.bt-type-tag.bt-type-pk {
  background: rgba(134, 166, 196, 0.12);
  color: var(--purple);
}
.bt-type-tag.bt-type-gs {
  background: rgba(184, 154, 96, 0.12);
  color: var(--amber);
}
.bt-result-grid {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.bt-result-cell {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.bt-result-label {
  display: block;
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 4px;
}
.bt-result-val {
  font-size: 12px;
  font-weight: 600;
}
.bt-hit .bt-result-val {
  color: var(--green);
}
.bt-miss .bt-result-val {
  color: var(--red);
}
.backtest-pager {
  margin-top: 12px;
}
.backtest-row {
  margin-bottom: 8px;
}

/* ═══ 命中率骨架屏 ═══ */
@keyframes hitSkeletonPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes hitSkBarSlide {
  0% { width: 0%; }
  100% { width: 100%; }
}
.hit-skeleton {
  animation: hitSkeletonPulse 1.6s ease-in-out infinite;
}
.hit-sk-summary {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.hit-sk-card {
  flex: 1;
  height: 88px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid rgba(126, 166, 189, 0.08);
}
.hit-sk-card--color {
  position: relative;
  overflow: hidden;
}
.hit-sk-card--color::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
  bottom: 40px;
  border-radius: 8px;
  opacity: 0.5;
}
.hit-sk-card--color:first-child::after {
  background: linear-gradient(90deg, #5bd4c8, #a7eee6);
}
.hit-sk-card--color:last-child::after {
  background: linear-gradient(90deg, #ffd9d0, #f46f59);
}
.hit-sk-rank {
  border-radius: 22px;
  margin-bottom: 16px;
  padding: 20px;
  background: transparent;
  border: 1px solid rgba(126, 166, 189, 0.08);
}
.hit-sk-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  height: 18px;
}
.hit-sk-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(126, 166, 189, 0.15);
  flex-shrink: 0;
}
.hit-sk-bar {
  height: 14px;
  border-radius: 7px;
  animation: hitSkBarSlide 0.8s ease-out forwards;
}
.hit-sk-bar--high {
  width: 85%;
  background: linear-gradient(90deg, #5bd4c833, #5bd4c888);
}
.hit-sk-bar--mid {
  width: 65%;
  background: linear-gradient(90deg, #7ea6b633, #7ea6b688);
}
.hit-sk-bar--low {
  width: 45%;
  background: linear-gradient(90deg, #f46f5933, #f46f5988);
}
.hit-sk-table {
  height: 260px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid rgba(126, 166, 189, 0.08);
}

/* 命中率错误态 */
.hit-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text3);
}
.hit-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.5;
}
.hit-empty-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
}
.hit-empty-desc {
  font-size: var(--fs-sm);
  color: var(--text3);
  line-height: 1.6;
}
.hit-retry-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 32px;
  border-radius: 24px;
  border: 1px solid rgba(126, 166, 189, 0.3);
  background: rgba(126, 166, 189, 0.08);
  color: var(--cyan);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.hit-retry-btn:hover {
  background: rgba(126, 166, 189, 0.16);
  border-color: rgba(126, 166, 189, 0.5);
}
.hit-retry-btn:active {
  transform: scale(0.96);
}

/* ═══════════════════════════════════════════
   方案设计页 (scheme-design) — 参考设计风格
   主色 #7ea6bd(青蓝)  强调色 #b89a60(金)
   ═══════════════════════════════════════════ */

/* 统计卡片 */
.scheme-stats-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 18px 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}
.scheme-stat-item {
  flex: 1;
  text-align: center;
}
.scheme-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}
.scheme-stat-val.scheme-stat-pos {
  color: var(--green);
}
.scheme-stat-val.scheme-stat-neg {
  color: var(--red);
}
.scheme-stat-lbl {
  font-size: var(--fs-xs);
  color: var(--text3);
  margin-top: 4px;
}
.scheme-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(126, 166, 189, 0.1);
  flex-shrink: 0;
}

/* ═══ 玩法Tab — 与推荐排行榜标签风格统一 ═══ */
#schemePlayTabs {
  padding: 8px 0 12px;
  margin: 0;
  gap: 10px;
}

/* ═══ 日期栏 — 卡片背景，无箭头，居中 ═══ */
#schemeDateBar {
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(4, 23, 40, 0.55);
  border: 1px solid rgba(126, 166, 189, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
#schemeDateBar .date-current {
  font-size: 13px;
  color: #aabbcc;
  font-weight: 500;
  text-align: center;
}

/* ═══ 比赛卡片 — 参考设计左右分栏 ═══ */
.scheme-match-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(5, 22, 38, 0.55);
  border: 1px solid rgba(126, 166, 189, 0.12);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.smc-body {
  display: flex;
  width: 100%;
}

/* 左侧信息栏 */
.smc-left {
  width: 90px;
  flex-shrink: 0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.08);
}
.smc-league {
  font-size: 12px;
  color: #7ea6bd;
  font-weight: 600;
  text-align: center;
}
.smc-num {
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}
.smc-time {
  font-size: 11px;
  color: #7b8d9c;
  text-align: center;
  line-height: 1.4;
}
.smc-other {
  font-size: 11px;
  color: #c8981e;
  text-align: center;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(184, 154, 96, 0.25);
  background: rgba(184, 154, 96, 0.06);
  transition: all 0.2s;
}
.smc-other:active {
  background: rgba(184, 154, 96, 0.15);
}
.smc-other.has-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: normal;
  padding: 4px 8px;
  gap: 1px;
}
/* ★ 玩法过滤：SPF/RQSPF 模式下禁用"其它" */
.smc-other-dim,
.smc-other-dim.has-selection {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #586575;
}
.smc-other-sep {
  width: 100%;
  height: 1px;
  background: rgba(184, 154, 96, 0.15);
}
.smc-other-info {
  font-size: 11px;
  color: #7ea6bd;
  white-space: nowrap;
  font-weight: 600;
}

/* 右侧 */
.smc-right {
  flex: 1;
  padding: 18px 16px 16px;
  min-width: 0;
}
.smc-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.smc-teams span:first-child {
  text-align: right;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smc-teams span:last-child {
  text-align: left;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smc-vs {
  font-size: 13px;
  color: #7ea6bd;
  font-weight: 700;
  flex-shrink: 0;
}

/* 赔率矩阵 */
.sodds-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sodds-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sodds-hcp {
  width: 22px;
  flex-shrink: 0;
  font-size: 10px;
  color: #586575;
  font-weight: 600;
  text-align: center;
}

/* ═══ 卡片底部操作按钮行 ═══ */
.smc-footer {
  display: flex;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: center;
}
.smc-ai-btn,
.smc-gs-btn {
  flex: none;
  width: auto;
  padding: 0 18px;
  height: 30px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.smc-ai-btn {
  background: linear-gradient(135deg, rgba(126, 166, 189, 0.15), rgba(0, 180, 219, 0.08));
  color: #7ea6bd;
  border: 1px solid rgba(126, 166, 189, 0.25);
}
.smc-ai-btn:active {
  background: rgba(126, 166, 189, 0.25);
  transform: scale(0.96);
}
.smc-gs-btn {
  background: linear-gradient(135deg, rgba(184, 154, 96, 0.15), rgba(229, 168, 0, 0.08));
  color: #c8981e;
  border: 1px solid rgba(184, 154, 96, 0.25);
}
.smc-gs-btn:active {
  background: rgba(184, 154, 96, 0.25);
  transform: scale(0.96);
}

/* 方案页底部留白 — tabbar(106px) + 10px + 底部栏高度(~120px) ≈ 240px */
#page-scheme {
  padding-bottom: 250px;
}

/* ═══ 赔率按钮 — 纵向：方向在上，赔率在下 ═══ */
.sodds-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 44px;
  border-radius: 10px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
}
.sodds-btn:hover {
  border-color: rgba(126, 166, 189, 0.25);
  background: rgba(126, 166, 189, 0.05);
}
.sodds-btn.active {
  border-color: #b89a60;
  background: rgba(184, 154, 96, 0.08);
  box-shadow: 0 0 10px rgba(184, 154, 96, 0.15);
}
.sodds-dir {
  font-size: 11px;
  font-weight: 600;
  color: #8996a6;
  white-space: nowrap;
}
.sodds-val {
  font-size: 11px;
  font-weight: 500;
  color: #7ea6bd;
  white-space: nowrap;
}
.sodds-btn.active .sodds-dir {
  color: #c8981e;
}
.sodds-btn.active .sodds-val {
  color: #c8981e;
}

/* ★ 赔率变动箭头 */
.sodds-arrow-up {
  color: #b87070;
  font-size: 9px;
  margin-left: 2px;
}
.sodds-arrow-down {
  color: #7aaa96;
  font-size: 9px;
  margin-left: 2px;
}

/* ★ Delta 摘要提示（方案设计页"其它"区域） */
.smc-delta-hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  padding: 0 4px;
}
.smc-delta-hint {
  font-size: 9px;
  color: #8996a6;
  white-space: nowrap;
}
.smc-delta-sum {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.smc-delta-sum .sodds-arrow-up {
  font-size: 9px;
}
.smc-delta-sum .sodds-arrow-down {
  font-size: 9px;
}

/* ★ 推荐排行榜Top5高亮（左侧1/6黄色底色 + 排名数字） */
.sodds-btn.rank-highlight {
  position: relative;
  overflow: hidden;
}
.sodds-btn.rank-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 16.666%;
  height: 100%;
  background: rgba(184, 154, 96, 0.35);
  z-index: 0;
  pointer-events: none;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}
.sodds-btn.active.rank-highlight::before {
  background: rgba(184, 154, 96, 0.45);
}
.scheme-rank-badge {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16.666%;
  text-align: center;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  color: #7ea6bd;
  line-height: 1;
  pointer-events: none;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ★ 玩法过滤：暗淡行 */
.sodds-row-dim {
  opacity: 0.4;
  pointer-events: none;
}
.sodds-btn-dim {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ★ 让球数高亮 */
.sodds-hcp.rq {
  color: #c8981e;
  font-weight: 700;
}

/* ★ 单关标签 */
.smc-single-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #b87070;
  background: rgba(184, 112, 112, 0.12);
  padding: 2px 10px;
  border-radius: 999px;
  text-align: center;
  margin: 0 auto;
}

/* ★ 玩法过滤提示 */
.scheme-play-hint {
  text-align: center;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(184, 154, 96, 0.2);
  background: rgba(184, 154, 96, 0.06);
  color: #aabbcc;
  font-size: 12px;
  line-height: 1.5;
}
.scheme-play-hint b {
  color: #c8981e;
}

/* ═══ 底部投注栏 — 3×2 Grid 卡片式设计 ═══ */
.scheme-summary-bar {
  position: fixed;
  bottom: 116px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: calc(100vw - 24px);
  height: 188px;
  border-radius: 16px;
  border: 1px solid rgba(126, 166, 189, 0.25);
  background: linear-gradient(180deg, #131b24 0%, #0f151d 100%);
  box-shadow: inset 0 0 18px rgba(126, 166, 189, 0.08);
  padding: 10px 14px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* 顶部期号 */
.ssb-top {
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ssb-issue {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fa6bc;
  font-size: 14px;
}
.ssb-info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #60788e;
  color: #60788e;
  font-size: 11px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容区 3×2 Grid */
.ssb-content {
  display: grid;
  grid-template-columns: minmax(72px, 94px) 1fr minmax(72px, 94px);
  grid-template-rows: 54px 54px;
  gap: 10px;
}

/* 通用卡片 */
.ssb-card {
  border-radius: 8px;
  border: 1px solid rgba(0, 196, 255, 0.25);
  background: linear-gradient(180deg, rgba(0, 25, 40, 0.95), rgba(0, 15, 28, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 已选 */
.ssb-selected {
  position: relative;
  justify-content: flex-start;
  padding-left: 12px;
}
.ssb-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b89a60;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}
.ssb-label {
  font-size: 17px;
  font-weight: 600;
}

/* 过关 */
.ssb-pass {
  font-size: 18px;
  font-weight: 600;
}

/* 清空 */
.ssb-clear {
  color: #d8e4f0;
  font-size: 17px;
}

/* 倍数 */
.ssb-multi {
  color: #c8981e;
  font-size: 18px;
  font-weight: 600;
  gap: 3px;
}
.ssb-multi-label {
  font-size: 13px;
  color: #8fa6bc;
}

/* 金额区 */
.ssb-amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  gap: 4px;
}
.ssb-amount-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  line-height: 1.3;
}
.ssb-amount-label {
  color: #90a4b5;
  font-size: 13px;
  white-space: nowrap;
}
.ssb-amount-val {
  color: #c8981e;
  font-size: 16px;
  font-weight: 700;
  margin: 0 3px;
}
.ssb-amount-big {
  font-size: 18px;
}
.ssb-amount-unit {
  color: #90a4b5;
  font-size: 12px;
}

/* 查看方案按钮 */
.ssb-view-btn {
  border: 2px solid #b89a60;
  border-radius: 8px;
  background: transparent;
  color: #c8981e;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.ssb-view-btn:hover {
  background: rgba(184, 154, 96, 0.08);
}

/* ═══ 弹窗 Overlay ═══ */
.ssb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  align-items: flex-end;
  justify-content: center;
}
.ssb-overlay.active {
  display: flex !important;
}
.ssb-modal {
  width: 100%;
  max-width: min(420px, calc(100vw - 32px));
  background: #131b24;
  border-radius: 20px 20px 0 0;
  animation: ssbSlideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes ssbSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* 倍数弹窗 */
.ssb-multi-modal {
  padding: 20px;
}
.ssb-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ssb-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ssb-input-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  width: 80px;
  text-align: right;
}
.ssb-input-wrap span {
  color: #8fa6bc;
  font-size: 16px;
}
.ssb-modal-cancel {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #8996a6;
  font-size: 15px;
  cursor: pointer;
}
.ssb-modal-confirm {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: #b89a60;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ssb-quick-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.ssb-quick-row button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.ssb-quick-row button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ssb-keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ssb-keyboard button {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.ssb-keyboard button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ssb-keyboard button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 过关弹窗 */
.ssb-pass-modal {
  padding: 20px;
}
.ssb-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.ssb-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.ssb-pass-hint {
  color: #8fa6bc;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(126, 166, 189, 0.06);
  border-radius: 6px;
  border-left: 3px solid rgba(126, 166, 189, 0.3);
}
.ssb-pass-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.ssb-pass-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ssb-pass-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.ssb-pass-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.ssb-pass-item input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #b89a60;
}
.ssb-pass-count {
  color: #8fa6bc;
  font-size: 14px;
}
.ssb-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════
   我的方案列表页 (my-plan)
   ═══════════════════════════════════════════ */

/* 用户方案卡片（复用 plan-card 基础样式） */
.user-plan-card {
  position: relative;
}
.user-plan-card .plan-name {
  font-size: 15px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 方案操作栏 */
.mp-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: flex-end;
}
.mp-delete-btn {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(184, 112, 112, 0.3);
  background: rgba(184, 112, 112, 0.08);
  color: #b87070;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.mp-delete-btn:active {
  transform: scale(0.96);
  background: rgba(184, 112, 112, 0.16);
}
.mp-share-btn {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 166, 189, 0.3);
  background: rgba(126, 166, 189, 0.08);
  color: #7ea6bd;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.mp-share-btn:active {
  transform: scale(0.96);
  background: rgba(126, 166, 189, 0.16);
}

/* 方案金额颜色 */
.plan-win-amount {
  color: var(--green) !important;
}
.plan-lose-amount {
  color: var(--red) !important;
}

/* Scheme 日期栏 */
.scheme-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 6px 0 19px;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ==================== 确认方案页面 ==================== */
#page-confirm-scheme {
  padding-bottom: 260px;
}
#page-data-health {
  padding-bottom: 128px;
}

/* 顶部导航栏 */
.confirm-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.confirm-back {
  color: #7ea6bd;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.confirm-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.confirm-count {
  color: #8996a6;
  font-size: 13px;
}

/* 提示横幅 */
.confirm-banner {
  margin: 12px 16px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(184, 154, 96, 0.08);
  border: 1px solid rgba(184, 154, 96, 0.15);
  color: #c8981e;
  font-size: 13px;
  text-align: center;
}

/* 比赛卡片列表 */
.confirm-match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

/* 单个比赛卡片 */
.cfm-match-card {
  background: linear-gradient(135deg, #131b24 0%, #131b24 100%);
  border: 1px solid rgba(126, 166, 189, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

/* 卡片顶部 */
.cfm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}
.cfm-del {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(184, 112, 112, 0.15);
  color: #b87070;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cfm-del:hover {
  background: rgba(184, 112, 112, 0.3);
}
.cfm-match-num {
  font-size: 12px;
  color: #586575;
  flex-shrink: 0;
}
.cfm-play-tag {
  font-size: 11px;
  color: #c8981e;
  background: rgba(184, 154, 96, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
}

/* 卡片主体：三列布局 */
.cfm-card-body {
  display: flex;
  align-items: stretch;
  padding: 14px 12px;
  gap: 8px;
}

/* 选项列（主/客） */
.cfm-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 0;
}
.cfm-opt:hover {
  border-color: rgba(126, 166, 189, 0.25);
  background: rgba(126, 166, 189, 0.06);
}
.cfm-opt.active {
  border-color: #b87070;
  background: rgba(184, 112, 112, 0.1);
  box-shadow: 0 0 12px rgba(184, 112, 112, 0.15);
}
.cfm-opt-team {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.cfm-opt.active .cfm-opt-team {
  color: #b87070;
}
.cfm-opt-odds {
  font-size: 16px;
  font-weight: 800;
  color: #7ea6bd;
}
.cfm-opt.active .cfm-opt-odds {
  color: #b87070;
}

/* VS+平 中间列 */
.cfm-vs-wrap {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cfm-vs-wrap > div:first-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.15s;
}
.cfm-vs-wrap > div:first-child:hover {
  border-color: rgba(126, 166, 189, 0.25);
  background: rgba(126, 166, 189, 0.06);
}
.cfm-vs-wrap > div:first-child.active {
  border-color: #b87070;
  background: rgba(184, 112, 112, 0.1);
  box-shadow: 0 0 12px rgba(184, 112, 112, 0.15);
}
.cfm-opt-label {
  font-size: 13px;
  font-weight: 600;
  color: #8996a6;
}
.cfm-vs-wrap > div:first-child.active .cfm-opt-label {
  color: #b87070;
}
.cfm-vs-wrap > div:first-child.active .cfm-opt-odds {
  color: #b87070;
}
.cfm-game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.cfm-league {
  font-size: 10px;
  color: #7ea6bd;
  text-align: center;
}
.cfm-time {
  font-size: 10px;
  color: #586575;
  text-align: center;
}

/* 底部操作栏 */
.cfm-bottom-bar {
  position: fixed;
  bottom: 116px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  max-width: 388px;
  background: linear-gradient(180deg, #131b24 0%, #0f151d 100%);
  border: 1px solid rgba(126, 166, 189, 0.25);
  border-radius: 16px;
  box-shadow:
    inset 0 0 18px rgba(126, 166, 189, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cfm-bb-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfm-bb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cfm-bb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cfm-bb-label {
  font-size: 13px;
  color: #90a4b5;
}
.cfm-bb-pass {
  font-size: 16px;
  font-weight: 600;
  color: #c8981e;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid rgba(184, 154, 96, 0.2);
  border-radius: 6px;
  background: rgba(184, 154, 96, 0.05);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cfm-bb-pass:active {
  background: rgba(184, 154, 96, 0.12);
}
.cfm-bb-arrow {
  font-size: 11px;
  color: #c8981e;
}
.cfm-bb-multi {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cfm-bb-mbtn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.cfm-bb-mbtn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cfm-bb-mbtn:active {
  background: rgba(255, 255, 255, 0.16);
}
.cfm-bb-mval {
  font-size: 18px;
  font-weight: 700;
  color: #c8981e;
  min-width: 28px;
  text-align: center;
}
.cfm-bb-amount {
  font-size: 14px;
  font-weight: 500;
  color: #ccd;
}
.cfm-bb-yuan {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.cfm-bb-maxwin {
  font-size: 16px;
  font-weight: 800;
  color: #b87070;
}
.cfm-save-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #b87070;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cfm-save-btn:hover {
  background: #b87070;
}
.cfm-save-btn:active {
  background: #b87070;
}

/* ─── 确认方案双按钮 ─── */
.cfm-btn-row {
  display: flex;
  gap: 12px;
}
.cfm-reselect-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #8996a6;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cfm-reselect-btn:active {
  background: rgba(255, 255, 255, 0.12);
  color: #ccc;
}

/* ★ 蓝图新增：多模型预测共识条 */
.consensus-bar {
  cursor: default;
}
.consensus-bar .consensus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.consensus-bar .consensus-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}
.consensus-bar .consensus-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
.consensus-badge.strong {
  background: rgba(122, 170, 150, 0.12);
  color: var(--green);
}
.consensus-badge.weak {
  background: rgba(184, 154, 96, 0.12);
  color: var(--amber);
}
.consensus-badge.melt {
  background: rgba(184, 112, 112, 0.12);
  color: var(--red);
}
.consensus-badge.neutral {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text3);
}
.consensus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  text-align: center;
}
.consensus-cell {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.consensus-cell.agree {
  border-color: rgba(122, 170, 150, 0.2);
  background: rgba(122, 170, 150, 0.04);
}
.consensus-cell.dissent {
  border-color: rgba(184, 112, 112, 0.15);
  background: rgba(184, 112, 112, 0.04);
}
.consensus-model {
  font-size: var(--fs-xs);
  color: var(--text2);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consensus-result {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
}
.consensus-confidence {
  font-size: var(--fs-xs);
  color: var(--text3);
  margin-top: 2px;
}
.consensus-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--fs-sm);
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ★ 共识过滤按钮 — 方案收入风格 */
.consensus-filter-btn:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}
.consensus-filter-btn:hover {
  filter: brightness(1.15);
}

/* Morandi blue comprehensive polish (202606080148) */
:root {
  --page-px: 19px;
  --gap-2xs: 4px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --card-radius: 18px;
  --card-radius-lg: 22px;
  --pill-radius: 999px;
  --surface-0: #0f151d;
  --surface-1: rgba(22, 31, 43, 0.92);
  --surface-2: rgba(27, 38, 52, 0.82);
  --surface-soft: rgba(126, 166, 189, 0.055);
  --divider: rgba(126, 166, 189, 0.105);
  --divider-strong: rgba(126, 166, 189, 0.18);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
  --card: var(--surface-1);
  --card-border: var(--divider);
}

body {
  line-height: 1.5;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 50% -8%, rgba(126, 166, 189, 0.12), transparent 36%),
    linear-gradient(180deg, #131b24 0%, #0f151d 100%);
}
button,
input,
select,
textarea {
  font: inherit;
}
.navbar {
  padding-left: var(--page-px);
  padding-right: var(--page-px);
}
.nav-title {
  color: #e2e0dc;
  font-size: 21px;
  line-height: 1.22;
  text-shadow: 0 2px 12px rgba(134, 166, 196, 0.12);
}
.tabbar {
  background: rgba(18, 27, 39, 0.92);
  border-color: rgba(126, 166, 189, 0.09);
  box-shadow:
    0 0 18px rgba(167, 139, 250, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.52);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.home-stats,
.home-card-grid,
.home-grid,
.match-list,
.rank-list,
.plan-list,
.scheme-list,
.data-health-list,
.model-grid,
.backtest-list {
  gap: var(--gap-md);
}
.home-stat-card,
.home-left-card,
.home-right-card,
.match-card,
.rank-card,
.plan-card,
.scheme-match-card,
.model-card,
.backtest-card,
.data-health-card,
.panel-card,
.cfm-match-card,
.consensus-cell {
  background: linear-gradient(145deg, rgba(24, 34, 48, 0.94), rgba(17, 25, 36, 0.96));
  border-color: var(--divider);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}
.home-stat-card,
.match-card,
.rank-card,
.plan-card,
.cfm-match-card {
  padding: 18px;
}
.home-stat-card:active,
.match-card:active,
.rank-card:active,
.plan-card:active,
.scheme-match-card:active {
  transform: translateY(1px) scale(0.992);
}
.home-stat-top,
.plan-card-head,
.match-card-head,
.rank-card-head,
.smc-head,
.cfm-card-top {
  gap: var(--gap-sm);
}
.home-stat-icon,
.menu-icon,
.dir-icon,
.rank-badge,
.ai-core-icon,
.match-icon,
.cfm-del {
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(126, 166, 189, 0.14), rgba(126, 166, 189, 0.055));
  border: 1px solid rgba(126, 166, 189, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.home-stat-num,
.filter-result-num {
  font-size: var(--fs-num);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 0 12px rgba(134, 166, 196, 0.14);
}
.plan-amount-value {
  font-size: 19px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-shadow: 0 0 8px rgba(126, 166, 189, 0.16);
}
.cfm-bb-maxwin {
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.home-stat-title,
.home-left-title,
.filter-head,
.hit-ranking-title,
.plan-section-title,
.model-title,
.backtest-title,
.data-health-title {
  color: #ece8e0;
  line-height: 1.26;
  letter-spacing: 0.02em;
  margin-bottom: var(--gap-md);
}
.home-stat-desc,
.match-time,
.match-league,
.rank-sub,
.plan-subtitle,
.filter-desc,
.hint-box,
.cfm-bb-label,
.confirm-count {
  color: #8f9bad;
  line-height: 1.48;
}
.home-stat-card .home-stat-title {
  margin-bottom: 4px;
}
.home-stat-card .home-stat-desc {
  margin-top: 0;
}

.home-left-card {
  background: linear-gradient(145deg, rgba(25, 36, 50, 0.96), rgba(16, 24, 35, 0.98));
}
.home-plus-icon {
  background: linear-gradient(180deg, #6e8fa5, #4e6b7f);
  border: 1px solid rgba(226, 224, 220, 0.1);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.filter-tag,
.date-arrow,
.income-filter-btn,
.income-sort-btn,
.consensus-filter-btn,
.bo-tab,
.bo-pass-tag,
.rank-ai-tag,
.match-gs-tag,
.mp-share-btn,
.mp-delete-btn,
.sodds-btn,
.cfm-play-tag,
.q-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--pill-radius);
  line-height: 1;
  letter-spacing: 0.02em;
}
.filter-tag {
  padding: 8px 16px;
  color: #98a5b5;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(126, 166, 189, 0.11);
}
.filter-tag.active,
.consensus-filter-btn.active,
.income-filter-btn.active,
.bo-tab.active,
.sodds-btn.active {
  color: #111820;
  background: linear-gradient(135deg, #7ea6bd, #94adbf);
  border-color: rgba(148, 173, 191, 0.55);
  box-shadow: 0 8px 18px rgba(126, 166, 189, 0.18);
}
.filter-dd-trigger,
.filter-dd-menu,
.filter-dd-option,
.date-picker-panel,
.confirm-banner {
  background: rgba(22, 31, 43, 0.96);
  border-color: var(--divider);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.filter-dd-trigger,
.filter-submit-btn,
.date-picker-today,
.smc-ai-btn,
.pk-bar-btn,
.cfm-save-btn,
.cfm-reselect-btn {
  min-height: 44px;
  border-radius: 14px;
  letter-spacing: 0.02em;
}
.filter-submit-btn,
.pk2-done-btn,
.pk3-done-btn,
.pk-bar-btn,
.date-picker-today,
.smc-ai-btn,
.cfm-save-btn {
  background: linear-gradient(135deg, #7ea6bd, #86a6c4);
  border-color: rgba(134, 166, 196, 0.35);
  color: #11151f;
  box-shadow: 0 8px 18px rgba(134, 166, 196, 0.18);
}
.cfm-reselect-btn,
.mp-share-btn,
.share-btn-copy {
  background: rgba(126, 166, 189, 0.08);
  border-color: rgba(126, 166, 189, 0.22);
  color: #93b1c4;
}
.mp-delete-btn,
.cfm-del {
  background: rgba(184, 112, 112, 0.09);
  border-color: rgba(184, 112, 112, 0.24);
  color: #c48686;
}
.data-table,
.plan-match-table,
.filter-detail-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(126, 166, 189, 0.09);
  background: rgba(255, 255, 255, 0.018);
}
.data-table th,
.plan-match-table th,
.filter-detail-table th,
.income-header-row,
.quant-card-header,
.pk3-compare-table thead th {
  padding: 13px 10px;
  color: #a0adbb;
  font-weight: 650;
  line-height: 1.35;
  background: rgba(126, 166, 189, 0.045);
  border-color: rgba(126, 166, 189, 0.09);
}
.data-table td,
.plan-match-table td,
.filter-detail-table td {
  padding: 13px 10px;
  line-height: 1.48;
  border-color: rgba(126, 166, 189, 0.055);
}
.filter-detail-table th,
.filter-detail-table td {
  padding: 10px 7px;
}
.plan-card {
  border-color: rgba(126, 166, 189, 0.14);
  background: linear-gradient(145deg, rgba(24, 34, 48, 0.96), rgba(16, 24, 35, 0.98));
}
.plan-divider,
.plan-match-section,
.plan-match-table th,
.income-header-row,
.quant-card-header {
  border-color: rgba(126, 166, 189, 0.1);
  background-color: rgba(126, 166, 189, 0.04);
}
.plan-divider {
  height: 1px;
  background: rgba(126, 166, 189, 0.1);
}
.plan-info-right,
.plan-amount-value,
.cfm-opt-odds,
.smc-league,
.smc-vs,
.sodds-val,
.loading-text {
  color: #7ea6bd;
  text-shadow: none;
}
.cfm-match-list,
.confirm-match-list {
  gap: var(--gap-md);
  padding-left: var(--gap-md);
  padding-right: var(--gap-md);
}
.cfm-card-top,
.confirm-top-bar {
  background: rgba(126, 166, 189, 0.04);
  border-color: var(--divider);
}
.cfm-opt,
.cfm-vs-wrap > div:first-child,
.consensus-cell {
  border-radius: 12px;
  border-color: rgba(126, 166, 189, 0.11);
  background: rgba(255, 255, 255, 0.026);
}
.cfm-opt:hover,
.cfm-vs-wrap > div:first-child:hover {
  border-color: rgba(126, 166, 189, 0.28);
  background: rgba(126, 166, 189, 0.07);
}
.cfm-opt.active,
.cfm-vs-wrap > div:first-child.active {
  border-color: rgba(184, 112, 112, 0.42);
  background: rgba(184, 112, 112, 0.11);
  box-shadow: 0 8px 18px rgba(184, 112, 112, 0.12);
}
.cfm-bottom-bar {
  background: linear-gradient(180deg, rgba(22, 31, 43, 0.98), rgba(15, 21, 29, 0.98));
  border-color: rgba(126, 166, 189, 0.22);
  border-radius: var(--card-radius);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.q-tag {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}
.rank-badge {
  color: #e2e0dc;
}
.rank-badge.gold,
.rank-badge.silver,
.rank-badge.bronze {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.2);
}
.consensus-summary,
.confirm-top-bar,
.plan-match-section,
.filter-section,
.income-section {
  border-color: var(--divider);
}
.loading-spinner {
  border-top-color: #7ea6bd;
}
@media (max-width: 380px) {
  :root {
    --page-px: 16px;
    --gap-md: 14px;
    --fs-num: 32px;
  }
  .home-stat-card,
  .match-card,
  .rank-card,
  .plan-card {
    padding: 16px;
  }
}

/* Alpine Mint light theme (202606080216) */
:root {
  --alpine-bg-0: #d7e3e5;
  --alpine-bg-1: #eef4f4;
  --alpine-bg-2: #c7d7da;
  --alpine-card: rgba(255, 255, 255, 0.78);
  --alpine-card-solid: #f7fbfb;
  --alpine-card-muted: rgba(238, 246, 246, 0.72);
  --alpine-border: rgba(130, 158, 164, 0.18);
  --alpine-text-main: #243238;
  --alpine-text-sub: #4f646a;
  --alpine-text-muted: #6f8086;
  --alpine-mint: #5bd4c8;
  --alpine-mint-soft: #a7eee6;
  --alpine-mint-deep: #08746f;
  --alpine-coral: #f46f59;
  --alpine-coral-soft: #ffd6cc;
  --alpine-coral-deep: #b94739;

  --alpine-shadow-card: 0 18px 36px rgba(48, 72, 78, 0.18);
  --alpine-shadow-float: 0 20px 44px rgba(48, 72, 78, 0.24);
  --cyan: var(--alpine-mint-deep);
  --cyan-glow: rgba(114, 221, 208, 0.25);
  --cyan-subtle: rgba(114, 221, 208, 0.12);
  --purple: #286d78;
  --green: #08746f;
  --red: var(--alpine-coral-deep);
  --amber: #965128;

  --bg: var(--alpine-bg-1);
  --bg2: var(--alpine-bg-0);
  --card: var(--alpine-card);
  --card-border: var(--alpine-border);
  --text: var(--alpine-text-main);
  --text2: var(--alpine-text-sub);
  --text3: var(--alpine-text-muted);
  --surface-0: var(--alpine-bg-1);
  --surface-1: var(--alpine-card);
  --surface-2: var(--alpine-card-muted);
  --surface-soft: rgba(114, 221, 208, 0.12);
  --divider: var(--alpine-border);
  --divider-strong: rgba(130, 158, 164, 0.28);
  --shadow-card: var(--alpine-shadow-card);
  --shadow-soft: 0 10px 24px rgba(48, 72, 78, 0.12);
  --card-radius: 22px;
  --card-radius-lg: 28px;
}

body {
  color: var(--alpine-text-main);
  background:
    radial-gradient(circle at 12% 0%, rgba(114, 221, 208, 0.22), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(255, 127, 104, 0.1), transparent 24%),
    linear-gradient(180deg, var(--alpine-bg-0) 0%, var(--alpine-bg-1) 48%, #d8e5e6 100%);
}
.navbar {
  background: linear-gradient(180deg, rgba(238, 246, 246, 0.8), rgba(238, 246, 246, 0));
}
.nav-title,
.home-stat-title,
.home-left-title,
.home-right-title,
.filter-head,
.hit-ranking-title,
.plan-name,
.confirm-title,
.cfm-opt-team,
.team-name,
.rank-teams,
.chart-title,
.filter-detail-head,
.bo-title,
.ssb-modal-title {
  color: var(--alpine-text-main);
  text-shadow: none;
}
.home-update-btn {
  color: var(--alpine-mint-deep);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(130, 158, 164, 0.18);
}
.home-update-btn span {
  color: var(--alpine-mint-deep);
}
.home-my-btn {
  color: var(--alpine-text-sub);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(130, 158, 164, 0.18);
}
.home-my-btn span {
  color: var(--alpine-text-sub);
}
.home-bell {
  color: var(--alpine-text-sub);
}
.home-bell svg {
  filter: drop-shadow(0 5px 12px rgba(48, 72, 78, 0.16));
}
.home-bell span {
  background: var(--alpine-coral);
  box-shadow: 0 6px 14px rgba(255, 127, 104, 0.28);
}
.nav-back,
.back-btn,
.menu-btn {
  color: var(--alpine-text-main);
}

.tabbar {
  background: rgba(247, 251, 251, 0.8);
  border-color: rgba(130, 158, 164, 0.18);
  box-shadow: 0 18px 40px rgba(48, 72, 78, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tab-item:not(.active) {
  color: rgba(47, 63, 70, 0.46);
}
.tab-item.active {
  color: var(--alpine-mint-deep);
}
.tab-item.active::before {
  background: radial-gradient(
    circle,
    rgba(167, 238, 230, 0.76) 0%,
    rgba(114, 221, 208, 0.32) 42%,
    rgba(114, 221, 208, 0) 78%
  );
  box-shadow:
    0 0 18px rgba(114, 221, 208, 0.46),
    0 0 34px rgba(114, 221, 208, 0.22);
}
.tab-item.active .tab-icon {
  color: var(--alpine-mint-deep);
  filter: drop-shadow(0 0 6px rgba(114, 221, 208, 0.75));
}

.home-banner {
  border-color: rgba(130, 158, 164, 0.16);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--alpine-shadow-card);
}
.home-stat-card,
.home-left-card,
.home-right-card,
.match-card,
.rank-card,
.plan-card,
.filter-stats-card,
.filter-section-card,
.filter-result-card,
.filter-detail-card,
.stats-header,
.hit-ranking-card,
.chart-box,
.income-list,
.quant-card-list,
.cfm-match-card,
.ssb-modal,
.ssb-pass-item,
.ssb-input-wrap,
.model-card,
.backtest-card,
.data-health-card,
.panel-card,
.menu-item,
.ai-card {
  background: var(--alpine-card);
  border-color: var(--alpine-border);
  box-shadow: var(--alpine-shadow-card);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.match-card::before {
  background: linear-gradient(180deg, transparent 0%, rgba(114, 221, 208, 0.1) 100%);
}
.match-card::after {
  content: '⚽';
  position: absolute;
  right: 8px;
  bottom: -10px;
  font-size: clamp(104px, 30vw, 128px);
  line-height: 1;
  opacity: 0.084;
  filter: grayscale(1) saturate(0.5);
  pointer-events: none;
  z-index: 0;
}
.match-card > * {
  position: relative;
  z-index: 1;
}
.home-left-card,
.home-card-income,
.home-card-hit {
  background:
    radial-gradient(circle at 16% 10%, rgba(167, 238, 230, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 246, 0.76));
}
.home-right-card::after,
.home-chess-bg::before {
  opacity: 0.14;
  filter: grayscale(1) saturate(0.5);
}
.home-plus-icon,
.home-stat-icon,
.home-right-icon,
.rank-badge.normal,
.menu-icon,
.cfm-del {
  background: linear-gradient(145deg, rgba(167, 238, 230, 0.7), rgba(114, 221, 208, 0.34));
  border-color: rgba(47, 159, 154, 0.2);
  color: var(--alpine-mint-deep);
  box-shadow:
    0 10px 22px rgba(47, 159, 154, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.home-plus-icon {
  color: #163238;
}
.home-icon-money {
  background: rgba(255, 127, 104, 0.14);
  color: var(--alpine-coral-deep);
}
.home-icon-green {
  background: rgba(114, 221, 208, 0.2);
  color: var(--alpine-mint-deep);
}
.home-stat-num,
#homeMatchCount,
#homeMaxRank,
#homeHottest,
.filter-stat-value,
.filter-result-num,
.stat-big-value,
.match-score,
.rank-direction,
.plan-amount-value,
.plan-info-right,
.income-rate,
.fdt-dir,
.dtt-dir,
.cfm-opt-odds,
.cfm-league,
.q-cell-num.pos,
.loading-text {
  color: var(--alpine-mint-deep);
  text-shadow: none;
}
.home-stat-desc,
.home-left-desc,
.home-right-desc,
.home-core-title,
.home-tool,
.match-time,
.match-num,
.match-status,
.rank-meta,
.plan-pub-time,
.plan-amount-label,
.plan-info-left,
.plan-match-table .match-info-col,
.plan-match-table .match-time-sub,
.plan-team-vs,
.confirm-count,
.cfm-match-num,
.cfm-bb-label,
.cfm-bb-amount,
.filter-label,
.filter-stat-label,
.filter-result-label,
.hint-box,
.income-date,
.income-hit,
.q-match-teams,
.q-cell-num,
.ssb-multi-label,
.ssb-pass-count {
  color: var(--alpine-text-sub);
}
.plan-team-home,
.plan-team-away,
.plan-match-table .team-col,
.filter-detail-row span:nth-child(2),
.ssb-pass-item label,
.ssb-keyboard button,
.ssb-input-wrap input {
  color: var(--alpine-text-main);
}

.filter-tag,
.date-current,
.date-arrow,
.date-picker,
.date-picker-nav,
.filter-dd-trigger,
.filter-dd-menu,
.filter-dd-option,
.income-filter-btn,
.income-sort-btn,
.consensus-filter-btn,
.qt-view-btn,
.rank-ai-tag,
.match-gs-tag,
.match-ai-tag,
.match-bet-btn,
.mp-share-btn,
.plan-share-btn,
.share-plan-btn,
.bonus-opt-badge,
.bonus-opt-badge-sm,
.cfm-play-tag,
.cfm-bb-pass,
.ssb-view-btn,
.ssb-modal-cancel,
.ssb-quick-row button,
.ssb-keyboard button {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(130, 158, 164, 0.18);
  color: var(--alpine-text-sub);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.filter-tag.active,
.date-picker-cell.active,
.date-picker-today,
.filter-submit-btn,
.income-filter-btn.active,
.consensus-filter-btn.active,
.qt-view-btn.active,
.pk-bar-btn,
.cfm-save-btn,
.ssb-modal-confirm,
.bo-footer .bet-btn-confirm,
.match-gs-tag:hover,
.mp-share-btn,
.plan-share-btn,
.share-plan-btn {
  color: #163238;
  background: linear-gradient(135deg, var(--alpine-mint-soft), var(--alpine-mint));
  border-color: rgba(47, 159, 154, 0.28);
  box-shadow: 0 12px 24px rgba(47, 159, 154, 0.22);
}
.cfm-reselect-btn,
.ssb-modal-cancel {
  color: var(--alpine-text-sub);
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(130, 158, 164, 0.18);
}
.mp-delete-btn,
.cfm-del,
.match-bet-btn,
.plan-lose-amount,
.q-cell-num.neg,
.hot-tag,
.risk-tag {
  color: var(--alpine-coral-deep) !important;
  background: rgba(255, 127, 104, 0.14);
  border-color: rgba(255, 127, 104, 0.28);
}
.plan-win-amount {
  color: var(--alpine-mint-deep) !important;
}
.fdt-hit {
  color: #E84141 !important;
}
.fdt-miss {
  color: #34D399 !important;
}

.plan-card.score-plan,
.plan-card.quant-plan,
.plan-card {
  background: var(--alpine-card);
  border-color: var(--alpine-border);
}
.plan-card.score-plan .plan-amount-value,
.plan-card.score-plan .plan-info-right,
.score-table .allocation-col,
.plan-score-tag,
.bonus-opt-badge,
.bonus-opt-badge-sm,
.cfm-bb-pass,
.cfm-bb-arrow,
.cfm-bb-mval {
  color: var(--alpine-coral-deep);
  text-shadow: none;
}
.plan-card.quant-plan .plan-amount-value,
.plan-card.quant-plan .plan-info-right,
.plan-card.quant-plan .plan-odds-combo {
  color: #286d78;
  text-shadow: none;
}

.plan-divider,
.plan-amount-col + .plan-amount-col,
.mp-actions,
.confirm-top-bar,
.cfm-card-top,
.consensus-summary,
.ssb-modal-footer {
  border-color: rgba(130, 158, 164, 0.16);
  background: transparent;
}
.plan-match-section,
.data-table,
.plan-match-table,
.filter-detail-table,
.daily-trend-table {
  border-color: rgba(130, 158, 164, 0.14);
  background: rgba(255, 255, 255, 0.42);
}
.data-table th,
.plan-match-table th,
.filter-detail-table th,
.daily-trend-table th,
.income-header-row,
.quant-card-header {
  background: rgba(114, 221, 208, 0.1);
  color: var(--alpine-text-sub);
  border-color: rgba(130, 158, 164, 0.14);
}
.data-table td,
.plan-match-table td,
.filter-detail-table td,
.daily-trend-table td,
.income-row,
.quant-card-row {
  color: var(--alpine-text-main);
  border-color: rgba(130, 158, 164, 0.12);
}

.confirm-banner {
  color: var(--alpine-coral-deep);
  background: rgba(255, 127, 104, 0.12);
  border-color: rgba(255, 127, 104, 0.22);
}
.cfm-card-top {
  background: rgba(114, 221, 208, 0.08);
}
.cfm-opt,
.cfm-vs-wrap > div:first-child,
.consensus-cell {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(130, 158, 164, 0.16);
}
.cfm-opt:hover,
.cfm-vs-wrap > div:first-child:hover {
  background: rgba(114, 221, 208, 0.12);
  border-color: rgba(47, 159, 154, 0.26);
}
.cfm-opt.active,
.cfm-vs-wrap > div:first-child.active {
  background: rgba(114, 221, 208, 0.22);
  border-color: rgba(47, 159, 154, 0.4);
  box-shadow: 0 10px 22px rgba(47, 159, 154, 0.18);
}
.cfm-opt.active .cfm-opt-team,
.cfm-opt.active .cfm-opt-odds,
.cfm-vs-wrap > div:first-child.active .cfm-opt-label,
.cfm-vs-wrap > div:first-child.active .cfm-opt-odds {
  color: var(--alpine-mint-deep);
}
.cfm-bottom-bar {
  background: rgba(247, 251, 251, 0.88);
  border-color: rgba(130, 158, 164, 0.18);
  box-shadow: 0 -14px 34px rgba(48, 72, 78, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.cfm-bb-yuan {
  color: var(--alpine-text-main);
}
.cfm-bb-maxwin {
  color: var(--alpine-coral-deep);
}

.mc-chk,
.q-chk {
  border-color: rgba(130, 158, 164, 0.42);
  background: rgba(255, 255, 255, 0.5);
}
.mc-chk:checked,
.q-chk:checked {
  border-color: var(--alpine-mint-deep);
}
.mc-chk:checked::after,
.q-chk:checked::after {
  color: var(--alpine-mint-deep);
}
.loading-spinner {
  border-color: rgba(130, 158, 164, 0.18);
  border-top-color: var(--alpine-mint-deep);
}

/* Alpine Mint contrast patch: strengthen colored text on light surfaces */
.match-league,
.match-experts,
.rank-ai-tag,
.match-gs-tag,
.match-ai-tag,
.plan-score-blue,
.plan-odds-combo,
.plan-score-tag,
.fdt-dir,
.dtt-dir,
.income-rate,
.q-cell-num.pos,
.q-cell-num.cool,
.q-cell-rank,
.q-cell-rank.r2,
.q-cell-rank.r3,
.sodds-val,
.ai-title,
.ai-arrow,
.home-tool-backtest,
.home-tool-model,
.home-tool-quant,
.cfm-league,
.bet-score-link {
  color: var(--alpine-mint-deep) !important;
}
.q-cell-rank.r1,
.bt-amber,
.plan-card.score-plan .plan-odds-combo,
.plan-card.score-plan .plan-amount-value,
.plan-card.score-plan .plan-info-right,
.score-table .allocation-col,
.bonus-opt-badge,
.bonus-opt-badge-sm,
.cfm-bb-pass,
.cfm-bb-arrow,
.cfm-bb-mval,
.match-bet-btn,
.bet-play-hint b {
  color: var(--amber) !important;
}
.match-single-badge,
.match-handicap-tag.rq-pos,
.q-cell-num.neg,
.q-tag.tag-meltdown,
.q-tag.tag-overheat,
.plan-lose-amount,
.cfm-bb-maxwin,
.hot-tag,
.risk-tag,
.mp-delete-btn {
  color: var(--alpine-coral-deep) !important;
}
.home-stat-desc,
.home-left-desc,
.home-right-desc,
.plan-pub-time,
.plan-amount-label,
.plan-info-left,
.match-time,
.match-num,
.rank-meta,
.q-match-vs,
.q-match-teams,
.filter-stat-label,
.filter-result-label,
.confirm-count,
.cfm-match-num,
.cfm-time,
.cfm-bb-label,
.cfm-bb-amount {
  color: var(--alpine-text-sub) !important;
}

/* Hit ranking readability fix */
.hit-ranking-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(130, 158, 164, 0.2) !important;
  box-shadow: 0 18px 36px rgba(48, 72, 78, 0.16) !important;
}
.hit-ranking-title {
  color: #1f3036 !important;
  font-weight: 800;
}
.hit-rank-num {
  color: #617782 !important;
  font-weight: 800;
}
.hit-rank-num.top3 {
  color: #9a5a1e !important;
}
.hit-rank-label {
  color: #2b3b41 !important;
  font-weight: 700;
}
.hit-rank-pct {
  color: #365057 !important;
  font-weight: 800;
}
.hit-rank-bar-bg {
  background: rgba(130, 158, 164, 0.16) !important;
  box-shadow: none;
}
.hit-rank-bar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(8, 116, 111, 0.18);
}

/* Chart/table typography consistency */
.chart-box,
.md-heatmap-wrap,
.quant-chart-wrap,
.bt-chart-wrap {
  color: var(--alpine-text-main);
}
.md-heatmap-wrap table,
.chart-box table,
.quant-chart-wrap table,
.bt-chart-wrap table {
  font-size: var(--fs-sm) !important;
  color: var(--alpine-text-main) !important;
  line-height: 1.45;
}
.md-heatmap-wrap td,
.md-heatmap-wrap th,
.chart-box td,
.chart-box th,
.quant-chart-wrap td,
.quant-chart-wrap th,
.bt-chart-wrap td,
.bt-chart-wrap th {
  color: var(--alpine-text-main) !important;
  font-weight: 600;
  border-color: rgba(130, 158, 164, 0.14) !important;
}
.md-heatmap-wrap tr:first-child td,
.chart-box th,
.chart-box .income-header-row {
  color: var(--alpine-text-sub) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 700;
}
.md-chart,
.quant-chart-inner,
.bt-chart-inner {
  color: var(--alpine-text-sub);
  font-size: 11px;
}

/* Alpine Mint final universal polish: pages / tables / controls / icons */
.page,
.page * {
  text-shadow: none;
}
.page img,
.page svg {
  color: inherit;
}
.nav-logo img,
.home-banner img {
  filter: saturate(0.92) contrast(1.02);
}
svg path,
svg circle,
svg rect,
svg line,
svg polyline,
svg polygon,
svg ellipse {
  vector-effect: non-scaling-stroke;
}
.home-tool svg,
.home-right-icon svg,
.home-stat-icon svg,
.menu-icon svg,
.match-actions svg,
.tab-icon svg {
  stroke: currentColor;
}
.home-left-card,
.home-right-card,
.menu-item,
.match-card,
.rank-card,
.plan-card,
.filter-stats-card,
.filter-section-card,
.filter-result-card,
.stats-header,
.hit-ranking-card,
.chart-box,
.income-list,
.quant-card-list,
.scheme-match-card,
.sodds-panel,
.panel-card,
.model-card,
.backtest-card,
.data-health-card,
.cfm-match-card,
.ssb-modal,
.bo-modal-wrap {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(130, 158, 164, 0.18) !important;
  box-shadow: 0 16px 34px rgba(48, 72, 78, 0.15) !important;
}
.home-stat-card {
  background: #f5f7f7 !important;
  border-color: #e8ecee !important;
  box-shadow: 0 12px 28px rgba(122, 141, 145, 0.15) !important;
}
.home-left-card,
.home-right-card.home-card-income,
.home-right-card.home-card-hit {
  background:
    radial-gradient(circle at 14% 8%, rgba(167, 238, 230, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 246, 0.82)) !important;
}
.page h1,
.page h2,
.page h3,
.nav-title,
.chart-title,
.filter-head,
.plan-name,
.match-title,
.team-name,
.rank-teams,
.home-stat-title,
.home-left-title,
.home-right-title,
.model-title,
.backtest-title,
.data-health-title,
.confirm-title,
.smc-title,
.bo-title,
.ssb-modal-title {
  color: var(--alpine-text-main) !important;
  font-weight: 800;
}
.home-stat-desc,
.home-left-desc,
.home-right-desc,
.menu-desc,
.match-time,
.match-status,
.rank-meta,
.rank-sub,
.plan-pub-time,
.plan-amount-label,
.plan-info-left,
.plan-match-table .match-info-col,
.plan-match-table .match-time-sub,
.plan-team-vs,
.filter-label,
.filter-desc,
.filter-stat-label,
.filter-result-label,
.income-date,
.income-hit,
.md-rank-col-count,
.q-match-vs,
.q-match-teams,
.q-cell-num,
.cfm-match-num,
.cfm-time,
.cfm-bb-label,
.cfm-bb-amount,
.ssb-amount-label,
.ssb-amount-unit,
.ssb-pass-count,
.bo-desc-row,
.bo-th,
.bo-desc-line1 {
  color: var(--alpine-text-sub) !important;
  font-weight: 600;
}
.match-league,
.match-experts,
.match-dur,
.rank-direction,
.rank-ai-tag,
.match-gs-tag,
.match-ai-tag,
.plan-info-right,
.plan-amount-value,
.plan-score-blue,
.plan-odds-combo,
.income-rate,
.filter-result-num,
.filter-stat-value,
.stat-big-value,
.fdt-dir,
.dtt-dir,
.md-rank-col-rate,
.q-cell-num.pos,
.q-cell-num.cool,
.sodds-val,
.smc-league,
.smc-vs,
.cfm-opt-odds,
.cfm-league,
.bet-score-link,
.bo-desc-line2,
.bo-cell-amount {
  color: var(--alpine-mint-deep) !important;
  text-shadow: none !important;
  font-weight: 750;
}
.bt-amber,
.q-cell-rank.r1,
.plan-card.score-plan .plan-amount-value,
.plan-card.score-plan .plan-info-right,
.plan-card.score-plan .plan-odds-combo,
.score-table .allocation-col,
.plan-score-tag,
.bonus-opt-badge,
.bonus-opt-badge-sm,
.cfm-bb-pass,
.cfm-bb-mval,
.cfm-bb-arrow,
.ssb-amount-val,
.match-bet-btn,
.bo-pass-tag,
.q-tag.tag-dominance,
.q-tag.tag-attack,
.q-tag.tag-orange {
  color: var(--amber) !important;
  font-weight: 750;
}
.plan-lose-amount,
.match-single-badge,
.match-handicap-tag.rq-pos,
.q-cell-num.neg,
.q-tag.tag-meltdown,
.q-tag.tag-overheat,
.cfm-bb-maxwin,
.mp-delete-btn,
.hot-tag,
.risk-tag,
.bo-amount-hot,
.del-btn-confirm {
  color: var(--alpine-coral-deep) !important;
  font-weight: 750;
}
.plan-win-amount,
.bt-green,
.q-tag.tag-balanced,
.match-handicap-tag.rq-neg,
.md-rank-col-trend {
  color: var(--alpine-mint-deep) !important;
}
.data-table,
.plan-match-table,
.filter-detail-table,
.daily-trend-table,
.income-list,
.quant-card-list,
.gs-score-bet-table,
.pk2-table,
.pk3-compare-table,
.md-heatmap-wrap table {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(130, 158, 164, 0.16) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
.data-table th,
.plan-match-table th,
.filter-detail-table th,
.daily-trend-table th,
.income-header-row,
.quant-card-header,
.gs-score-bet-table th,
.pk2-table thead th,
.pk3-compare-table thead th,
.md-heatmap-wrap tr:first-child td {
  color: var(--alpine-text-sub) !important;
  background: rgba(114, 221, 208, 0.12) !important;
  border-color: rgba(130, 158, 164, 0.14) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 800 !important;
}
.data-table td,
.plan-match-table td,
.filter-detail-table td,
.daily-trend-table td,
.income-row,
.quant-card-row,
.gs-score-bet-table td,
.pk2-table tbody td,
.pk3-compare-table tbody td,
.md-heatmap-wrap td {
  color: var(--alpine-text-main) !important;
  border-color: rgba(130, 158, 164, 0.12) !important;
  font-size: var(--fs-sm) !important;
  font-weight: 650;
}
.plan-match-table .odds-col,
.score-table .allocation-col,
.filter-detail-row span:nth-child(3),
.income-value,
.dh-col-income {
  color: var(--alpine-mint-deep) !important;
  font-weight: 800 !important;
}
.filter-tag,
.date-arrow,
.date-current,
.date-picker,
.date-picker-nav,
.filter-dd-trigger,
.filter-dd-menu,
.filter-dd-option,
.income-filter-btn,
.income-sort-btn,
.consensus-filter-btn,
.qt-view-btn,
.sodds-btn,
.smc-ai-btn,
.match-gs-tag,
.match-ai-tag,
.match-bet-btn,
.rank-ai-tag,
.mp-share-btn,
.mp-delete-btn,
.bonus-opt-badge,
.bonus-opt-badge-sm,
.cfm-play-tag,
.cfm-bb-pass,
.cfm-bb-mbtn,
.ssb-view-btn,
.ssb-modal-cancel,
.ssb-quick-row button,
.ssb-keyboard button,
.bo-tab,
.bo-step-btn,
.bt-tab-btn,
.bt-chart-toggle-btn,
.bt-pager-btn,
button[class*='btn'] {
  border-color: rgba(130, 158, 164, 0.2) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  color: var(--alpine-text-sub) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}
.filter-tag.active,
.date-picker-cell.active,
.date-picker-today,
.filter-submit-btn,
.income-filter-btn.active,
.consensus-filter-btn.active,
.qt-view-btn.active,
.sodds-btn.active,
.smc-ai-btn,
.pk-bar-btn,
.cfm-save-btn,
.ssb-modal-confirm,
.bo-tab.active,
.bo-footer .bet-btn-confirm,
.bt-tab-btn.active,
.bt-chart-toggle-btn.active,
.bt-pager-btn.active,
.mp-share-btn,
.share-plan-btn,
.plan-share-btn {
  color: #153437 !important;
  background: linear-gradient(135deg, var(--alpine-mint-soft), var(--alpine-mint)) !important;
  border-color: rgba(47, 159, 154, 0.34) !important;
  box-shadow: 0 10px 22px rgba(47, 159, 154, 0.2) !important;
  font-weight: 800;
}
.mp-delete-btn,
.cfm-del,
.del-btn-confirm {
  background: rgba(255, 127, 104, 0.14) !important;
  border-color: rgba(255, 127, 104, 0.3) !important;
}
.filter-dd.open .filter-dd-trigger,
.filter-dd-option:hover,
.filter-dd-option.selected,
.date-current:hover,
.date-arrow:hover,
.cfm-opt:hover,
.cfm-vs-wrap > div:first-child:hover,
.ssb-quick-row button:hover,
.ssb-keyboard button:hover {
  background: rgba(114, 221, 208, 0.14) !important;
  color: var(--alpine-mint-deep) !important;
  border-color: rgba(47, 159, 154, 0.28) !important;
}
.cfm-opt,
.cfm-vs-wrap > div:first-child,
.bet-cell,
.bet-score-item,
.bet-goal-item,
.ssb-pass-item,
.bo-row,
.bo-stepper,
.consensus-cell {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: rgba(130, 158, 164, 0.16) !important;
}
.cfm-opt.active,
.cfm-vs-wrap > div:first-child.active,
.bet-cell.selected,
.bet-score-item.selected,
.bet-goal-item.selected,
.bo-stepper.active,
.consensus-cell.agree {
  background: rgba(114, 221, 208, 0.22) !important;
  border-color: rgba(47, 159, 154, 0.4) !important;
  color: var(--alpine-mint-deep) !important;
}
.q-tag,
.pattern-badge,
.fusion-badge,
.consensus-badge,
.match-card-stat,
.injury-status,
.ai-injury-status {
  color: var(--alpine-text-sub) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid rgba(130, 158, 164, 0.16) !important;
  font-weight: 800;
}
.q-tag.tag-meltdown,
.q-tag.tag-overheat,
.fusion-badge.fusion-meltdown,
.consensus-badge.melt,
.match-card-stat.red {
  color: var(--alpine-coral-deep) !important;
  background: rgba(255, 127, 104, 0.14) !important;
  border-color: rgba(255, 127, 104, 0.28) !important;
}
.q-tag.tag-balanced,
.fusion-badge.fusion-strong,
.consensus-badge.strong,
.match-card-stat.yellow {
  color: var(--alpine-mint-deep) !important;
  background: rgba(114, 221, 208, 0.16) !important;
  border-color: rgba(47, 159, 154, 0.24) !important;
}
.q-tag.tag-dominance,
.q-tag.tag-attack,
.fusion-badge.fusion-weak,
.consensus-badge.weak {
  color: var(--amber) !important;
  background: rgba(217, 135, 82, 0.14) !important;
  border-color: rgba(217, 135, 82, 0.28) !important;
}
.loading,
.hint-box,
.plan-notice,
.empty-state,
.no-data,
[style*='color:#64748B'],
[style*='color: #64748B'],
[style*='color:#94A3B8'],
[style*='color: #94A3B8'] {
  color: var(--alpine-text-sub) !important;
}
[style*='color:#fff'],
[style*='color: #fff'],
[style*='color:#ffffff'],
[style*='color:#FFFFFF'],
[style*='color: #FFFFFF'] {
  color: var(--alpine-text-main) !important;
}
[style*='background:rgba(0,0,0'],
[style*='background: rgba(0, 0, 0'],
[style*='background:#131b24'],
[style*='background: #131b24'],
[style*='background:#141c2b'],
[style*='background: #141c2b'] {
  background: rgba(247, 251, 251, 0.92) !important;
  color: var(--alpine-text-main) !important;
}
[style*='color:#22C55E'],
[style*='color: #22C55E'],
[style*='color:#34D399'],
[style*='color: #34D399'],
[style*='color:#18E0E0'],
[style*='color: #18E0E0'] {
  color: var(--alpine-mint-deep) !important;
}
[style*='color:#EF4444'],
[style*='color: #EF4444'],
[style*='color:#ef4444'],
[style*='color: #ef4444'] {
  color: var(--alpine-coral-deep) !important;
}
[style*='color:#FBBF24'],
[style*='color: #FBBF24'],
[style*='color:#f59e0b'],
[style*='color: #f59e0b'] {
  color: var(--amber) !important;
}

/* Requested detail polish: home banner, aligned home blocks, thin tab icons, hit table, scheme calculator */
.home-banner {
  position: relative;
  height: 188px;
  border-radius: 22px !important;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.home-banner::before,
.home-banner::after {
  content: none !important;
}
.home-banner img {
  filter: none !important;
  opacity: 1 !important;
}

.home-function-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
#planTabBar.filter-row {
  justify-content: flex-start !important;
  gap: 6px;
}
#subFilterBar.filter-row {
  justify-content: flex-start !important;
  gap: 6px;
}
.home-left-card,
.home-right-card {
  border-radius: 22px !important;
}
.home-left-card {
  padding: 0 !important;
  gap: 0;
}
.home-right-card {
  gap: clamp(8px, 2.5vw, 12px);
  padding: 22px 26px 22px 12px;
}
.home-left-main {
  min-height: 118px;
  padding: 24px 13px;
  gap: 12px;
  align-items: center;
}
.home-plus-icon,
.home-right-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  margin-right: 0;
  flex-shrink: 0;
}
.home-right-icon {
  width: clamp(34px, 10vw, 40px) !important;
  height: clamp(34px, 10vw, 40px) !important;
  border-radius: 13px !important;
  align-self: center;
}
.home-left-content,
.home-right-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.home-right-text {
  padding-right: 2px;
}
.home-plus-icon {
  font-size: 30px;
  font-weight: 500;
}
.home-left-title,
.home-right-title {
  margin: 0;
  font-size: clamp(15px, 4vw, 17px) !important;
  line-height: 1.18;
}
.home-right-title {
  font-size: clamp(14px, 3.9vw, 16px) !important;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.home-left-desc,
.home-right-desc {
  margin-top: 0 !important;
  font-size: clamp(9px, 2.7vw, 10px) !important;
  line-height: 1.35;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}
.home-right-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  font-size: clamp(22px, 6vw, 26px);
}
@media (max-width: 380px) {
  .home-function-wrap {
    gap: 10px;
  }
  .home-right-card {
    padding-left: 10px;
    padding-right: 22px;
  }
  .home-right-text {
    gap: 3px;
  }
}
.home-data-core {
  margin: 0 10px 10px;
  padding: 12px 8px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(130, 158, 164, 0.14) !important;
}
.tab-icon svg,
.tab-icon svg * {
  stroke-width: 2.35 !important;
}
.tab-item.active .tab-icon {
  filter: drop-shadow(0 0 4px rgba(114, 221, 208, 0.48));
}
.hit-ranking-title {
  margin-bottom: 14px;
  font-size: var(--fs-lg);
}
.hit-rank-row {
  min-height: 42px;
  margin-bottom: 0 !important;
  padding: 8px 0;
  border-bottom: 1px solid rgba(130, 158, 164, 0.12);
}
.hit-rank-row:last-child {
  border-bottom: none;
}
.hit-rank-num {
  width: 30px;
  font-size: var(--fs-sm) !important;
}
.hit-rank-label {
  width: 112px !important;
  font-size: var(--fs-sm) !important;
}
.hit-rank-pct {
  width: 56px !important;
  font-size: var(--fs-sm) !important;
}
.hit-rank-bar-bg {
  height: 6px !important;
  border-radius: 999px !important;
}
.scheme-stats-card,
.scheme-summary-bar,
.ssb-card {
  background: rgba(255, 255, 255, 0.84) !important;
  border-color: rgba(130, 158, 164, 0.18) !important;
  box-shadow: 0 16px 34px rgba(48, 72, 78, 0.15) !important;
}
.scheme-summary-bar {
  height: auto;
  min-height: 172px;
  border-radius: 22px;
  padding: 12px 14px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.ssb-card {
  border-radius: 14px;
  color: var(--alpine-text-main) !important;
}
.ssb-clear,
.ssb-pass,
.ssb-label {
  color: var(--alpine-text-main) !important;
}
.ssb-badge {
  background: linear-gradient(135deg, var(--alpine-mint-soft), var(--alpine-mint)) !important;
  color: #153437 !important;
}
.smc-footer {
  justify-content: flex-end;
  gap: 8px;
  border-top-color: rgba(130, 158, 164, 0.14) !important;
}
.smc-ai-btn,
.smc-gs-btn {
  min-width: 78px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px !important;
  border: 1px solid rgba(47, 159, 154, 0.26) !important;
  background: rgba(114, 221, 208, 0.14) !important;
  color: var(--alpine-mint-deep) !important;
  box-shadow: none !important;
}
.smc-ai-btn:active,
.smc-gs-btn:active {
  transform: scale(0.96);
}

/* Scheme action buttons: equal size */
.smc-footer .smc-ai-btn,
.smc-footer .smc-gs-btn {
  flex: 0 0 76px !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 34px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

.filter-dd,
.filter-dd.open {
  z-index: 30000 !important;
}
.filter-dd-menu,
.filter-dd-portal {
  z-index: 2147483647 !important;
  background: rgba(247, 251, 251, 0.98) !important;
  box-shadow: 0 18px 42px rgba(48, 72, 78, 0.22) !important;
  border-color: rgba(47, 159, 154, 0.28) !important;
}
.filter-dd-portal {
  display: block !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  list-style: none !important;
  border: 1px solid rgba(47, 159, 154, 0.28) !important;
  border-radius: 14px !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Follow-up fixes: scheme page / date bar / filter result */
.scheme-stat-val.scheme-stat-pos {
  color: var(--alpine-coral-deep) !important;
}
.scheme-stat-val.scheme-stat-neg {
  color: var(--alpine-mint-deep) !important;
}
#schemeDateBar {
  padding: 10px 14px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(123, 141, 149, 0.92), rgba(108, 126, 134, 0.88)) !important;
  border: 1px solid rgba(130, 158, 164, 0.18) !important;
  box-shadow: 0 14px 28px rgba(48, 72, 78, 0.14) !important;
}
#schemeDateBar .date-current {
  min-width: 0 !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(248, 251, 251, 0.84) !important;
  color: var(--alpine-text-main) !important;
  font-weight: 700 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(48, 72, 78, 0.1);
}
#schemeDateBar #schemeMatchTotal {
  color: var(--alpine-text-sub) !important;
}
.scheme-summary-bar {
  background: linear-gradient(180deg, rgba(209, 221, 224, 0.98), rgba(190, 205, 209, 0.96)) !important;
  border-color: rgba(112, 136, 143, 0.22) !important;
  box-shadow: 0 18px 34px rgba(48, 72, 78, 0.18) !important;
}
.scheme-summary-bar .ssb-top {
  height: auto;
  justify-content: center;
}
.scheme-summary-bar .ssb-issue {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(246, 250, 250, 0.74);
  border: 1px solid rgba(130, 158, 164, 0.16);
  color: var(--alpine-text-sub) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.scheme-summary-bar .ssb-info-icon {
  border-color: rgba(130, 158, 164, 0.24);
  color: var(--alpine-text-sub) !important;
  background: rgba(255, 255, 255, 0.72);
}
.scheme-summary-bar .ssb-content {
  grid-template-columns: minmax(82px, 94px) minmax(138px, 1.18fr) minmax(102px, 116px);
  gap: 10px;
  align-items: stretch;
}
.scheme-summary-bar .ssb-card {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(130, 158, 164, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(48, 72, 78, 0.1) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.scheme-summary-bar .ssb-pass,
.scheme-summary-bar .ssb-clear,
.scheme-summary-bar .ssb-multi {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.scheme-summary-bar .ssb-pass,
.scheme-summary-bar .ssb-multi {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 247, 0.94)) !important;
}
.scheme-summary-bar .ssb-clear {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 248, 0.9)) !important;
}
.scheme-summary-bar .ssb-pass:active,
.scheme-summary-bar .ssb-clear:active,
.scheme-summary-bar .ssb-multi:active {
  transform: scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 4px 10px rgba(48, 72, 78, 0.08) !important;
}
.scheme-summary-bar .ssb-amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(246, 250, 250, 0.72);
  border: 1px solid rgba(130, 158, 164, 0.16);
}
.scheme-summary-bar .ssb-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  line-height: 1.2;
}
.scheme-summary-bar .ssb-amount-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.scheme-summary-bar .ssb-amount-label,
.scheme-summary-bar .ssb-amount-unit,
.scheme-summary-bar .ssb-issue span {
  color: var(--alpine-text-sub) !important;
}
.scheme-summary-bar .ssb-amount-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.scheme-summary-bar .ssb-amount-val {
  margin: 0;
  font-size: 15px;
  line-height: 1;
}
.scheme-summary-bar .ssb-amount-big {
  font-size: 17px;
}
.scheme-summary-bar .ssb-amount-unit {
  font-size: 11px;
  white-space: nowrap;
}
.scheme-summary-bar .ssb-view-btn {
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid rgba(47, 159, 154, 0.24) !important;
  border-radius: 18px;
  background: linear-gradient(135deg, #78e4d7, #57d1c2) !important;
  color: #143b3d !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 10px 20px rgba(87, 209, 194, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.scheme-summary-bar .ssb-view-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 12px 22px rgba(87, 209, 194, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}
.scheme-summary-bar .ssb-view-btn:active {
  transform: scale(0.98);
}
.smc-footer {
  align-items: center;
}
.smc-ai-btn,
.smc-gs-btn {
  min-height: 34px !important;
  border-radius: 999px !important;
}
.smc-footer .smc-ai-btn,
.smc-footer .smc-gs-btn {
  flex: 0 0 82px !important;
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  -webkit-appearance: none;
  appearance: none;
  color: #153437 !important;
  background: linear-gradient(135deg, var(--alpine-mint-soft), var(--alpine-mint)) !important;
  border: 1px solid rgba(47, 159, 154, 0.34) !important;
  box-shadow: 0 10px 22px rgba(47, 159, 154, 0.2) !important;
}
.filter-result-card,
.filter-result-row,
.filter-ring-wrap,
.filter-ring-svg {
  overflow: visible;
}
.filter-ring-wrap {
  min-width: 96px;
}
.filter-ring-svg {
  width: 92px;
  height: 92px;
}
.filter-ring-bg {
  stroke: rgba(130, 158, 164, 0.22) !important;
  stroke-width: 7 !important;
}
.filter-ring-fill {
  stroke-width: 7 !important;
}
.filter-ring-pct {
  fill: var(--alpine-text-main) !important;
  font-size: 17px !important;
}
.filter-detail-table .fdt-res {
  width: 64px !important;
  min-width: 64px !important;
  white-space: nowrap !important;
  word-break: keep-all;
}

/* ═══ 首页数字暖色补丁（方案B：三色暖系渐变） ═══ */
#homeMatchCount {
  color: #FF8C00 !important;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.15) !important;
}
#homeMaxRank {
  color: var(--alpine-coral-deep, #b94739) !important;
  text-shadow: 0 0 10px rgba(185, 71, 57, 0.15) !important;
}
#homeHottest {
  color: var(--alpine-coral, #f46f59) !important;
  text-shadow: 0 0 10px rgba(244, 111, 89, 0.15) !important;
}
.filter-result-num {
  color: var(--alpine-coral, #f46f59) !important;
  text-shadow: 0 0 10px rgba(244, 111, 89, 0.15) !important;
}

/* ═══════════════════════════════════════════════════
   首页盈利图表 — 精确还原设计稿
   ═══════════════════════════════════════════════════ */

.profit-card-wrap {
  margin-bottom: 80px;
}

.profit-card {
  background:
    radial-gradient(circle at 16% 10%, rgba(167, 238, 230, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 246, 0.76));
  border-radius: 36px;
  padding: 28px 24px 24px;
  box-shadow:
    0 25px 60px rgba(122, 141, 145, 0.18);
  position: relative;
}

/* ── Header ── */
.profit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.profit-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #263644;
  letter-spacing: 0.02em;
}

.profit-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 22px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f8f9f9;
  border: 1px solid #dde4e6;
  color: #50606d;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

/* ── Legend ── */
.profit-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.profit-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #50606d;
}

.profit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profit-dot-win { background: #ff5656; }
.profit-dot-loss { background: #28c97d; }

.profit-legend-unit {
  margin-left: auto;
  font-size: 12px;
  color: #97a4af;
}

/* ── 图表容器 ── */
.profit-chart {
  position: relative;
  width: 100%;
  height: 260px;
  padding-left: 60px;
  padding-right: 8px;
  box-sizing: border-box;
}

/* 网格线 */
.profit-grid {
  position: absolute;
  inset: 0 8px 28px 60px;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent calc((260px - 28px) / 6)
    );
  pointer-events: none;
}

/* SVG */
.profit-svg {
  position: absolute;
  inset: 0 8px 28px 60px;
  width: calc(100% - 68px);
  height: calc(260px - 28px);
  overflow: visible;
}

/* Y 轴 */
.profit-yaxis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 28px;
  width: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 6px 4px 0;
}

.profit-yaxis span {
  color: #97a4af;
  font-size: 10px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* X 轴 */
.profit-xaxis {
  position: absolute;
  left: 60px;
  right: 8px;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.profit-xaxis span {
  color: #97a4af;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

/* ── 数据标签 ── */
.profit-tags {
  position: absolute;
  inset: 0 8px 28px 60px;
  pointer-events: none;
}

.profit-tag {
  position: absolute;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.profit-tag.win {
  color: #ff5656;
  background: rgba(255, 255, 255, 0.92);
}

.profit-tag.loss {
  color: #28c97d;
  background: rgba(255, 255, 255, 0.92);
}

/* ── KPI 统计区 ── */
.profit-stats {
  margin-top: 16px;
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-radius: 20px;
  background: #f1f3f4;
  min-height: 100px;
}

.profit-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profit-stat label {
  display: block;
  font-size: 12px;
  color: #7e8b97;
  margin-bottom: 8px;
  line-height: 1;
}

.profit-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.profit-stat strong.positive { color: #ff5656; }
.profit-stat strong.negative { color: #28c97d; }

.profit-stat span {
  color: #97a4af;
  font-size: 10px;
  margin-top: 3px;
  line-height: 1;
}

.profit-divider {
  width: 1px;
  height: 56px;
  background: #dce2e5;
  flex-shrink: 0;
}

/* ── 响应式适配 ── */
@media (max-width: 380px) {
  .profit-card-wrap { padding: 0; }
  .profit-card {
    padding: 22px 16px 20px;
    border-radius: 28px;
  }
  .profit-title { font-size: 15px; }
  .profit-filter { height: 20px; font-size: 12px; }
  .profit-chart { height: 230px; padding-left: 50px; }
  .profit-yaxis { width: 44px; }
  .profit-grid { left: 50px; }
  .profit-svg { left: 50px; }
  .profit-tags { left: 50px; }
  .profit-xaxis { left: 50px; }
  .profit-tag { height: 22px; padding: 0 6px; font-size: 10px; border-radius: 11px; }
  .profit-stat label { font-size: 11px; }
  .profit-stat strong { font-size: 14px; }
  .profit-divider { height: 48px; }
}

/* ═══════════════════════════════════════════════════
   首页盈利图表 — 骨架加载 + 入场动画
   ═══════════════════════════════════════════════════ */
/* 骨架屏（shimmer 脉冲） */
.profit-skeleton { padding: 0 4px; }
@keyframes skShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.sk-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.sk-legend { display:flex; align-items:center; gap:8px; margin-bottom:20px; }
.sk-line {
  height:14px; border-radius:7px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.8s ease infinite;
}
.sk-w-40 { width: 120px; }
.sk-w-16 { width: 60px; }
.sk-w-12 { width: 50px; }
.sk-ml-16 { margin-left: 12px; }
.sk-chart-area {
  position:relative; height:200px; margin:0 0 16px 60px; overflow:hidden;
  border-radius:12px; background: rgba(255,255,255,0.02);
}
.sk-chart-line {
  position:absolute; left:0; right:0; height:1px;
  background: rgba(255,255,255,0.04);
}
.sk-chart-line:nth-child(1) { top:0%; }
.sk-chart-line:nth-child(2) { top:20%; }
.sk-chart-line:nth-child(3) { top:40%; }
.sk-chart-line:nth-child(4) { top:60%; }
.sk-chart-line:nth-child(5) { top:80%; }
.sk-chart-line:nth-child(6) { top:100%; }
.sk-curve {
  position:absolute; left:5%; right:5%; top:30%; bottom:30%;
  border-radius:50%;
  background: linear-gradient(135deg, rgba(255,88,88,0.08), rgba(34,200,120,0.08));
  animation: skShimmer 2s ease infinite;
}
.sk-dot {
  position:absolute; width:9px; height:9px; border-radius:50%;
  background: rgba(255,255,255,0.12);
  animation: skShimmer 2.2s ease infinite;
}
.sk-dot-1 { left:10%; top:38%; }
.sk-dot-2 { left:45%; top:22%; }
.sk-dot-3 { left:78%; top:55%; }

/* 入场动画已移除 — 卡片直接显示 */
/* SVG 线条从左往右绘制动画（由 JS 控制精确长度，CSS 仅做过渡）— 第2步 */
.profit-card.chart-anim-in .profit-svg .profit-stroke {
  /* dasharray/dashoffset 由 JS 动态设置 */
  transition: none;
}
/* 填充区域最后淡入（背景层，不抢视觉焦点）— 第4步 */
.profit-card.chart-anim-in .profit-svg .profit-area {
  opacity: 0;
  animation: fillIn 0.7s ease 2.3s forwards;
}
@keyframes fillIn {
  to { opacity:1; }
}
/* 数据点弹出动画 — 第3步（线条开始后 0.4s 起交错弹出） */
.profit-card.chart-anim-in .profit-svg circle {
  opacity:0;
  animation: dotPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.profit-card.chart-anim-in .profit-svg circle:nth-child(1) { animation-delay:0.8s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(2) { animation-delay:1.0s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(3) { animation-delay:1.2s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(4) { animation-delay:1.4s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(5) { animation-delay:1.6s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(6) { animation-delay:1.8s; }
.profit-card.chart-anim-in .profit-svg circle:nth-child(7) { animation-delay:2.0s; }
@keyframes dotPop {
  0% { opacity:0; r:0; }
  70% { opacity:1; r:5.5; }
  100% { opacity:1; r:4.5; }
}

/* 登录/账号安全 */
#page-login {
  padding-top: 0;
  background: linear-gradient(180deg, #dfffee 0%, #f7fff9 44%, #ffffff 68%);
}

.auth-shell {
  min-height: calc(100vh - 24px);
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 420px);
  border-radius: 18px;
  padding: 20px 16px 16px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.auth-field {
  margin-top: 12px;
}

.auth-label {
  display: block;
  margin: 0 0 6px 2px;
  font-size: 12px;
  color: #374151;
}

.auth-input-wrap {
  position: relative;
}

.auth-input.search-input {
  background: #ffffff;
  border-color: #d5deea;
  color: #111827;
}

.auth-input.search-input:focus {
  border-color: #42b98f;
  box-shadow: 0 0 0 2px rgba(66, 185, 143, 0.18);
}

.auth-msg {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
}

.auth-msg.ok {
  color: #059669;
}

.auth-submit.filter-submit-btn,
.auth-secondary.filter-submit-btn {
  flex: 1;
}

.auth-secondary.filter-submit-btn {
  background: linear-gradient(180deg, #9ca3af, #6b7280);
}

/* 登录页专属 */
.auth-shell-login {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

.auth-shell-login::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 330px;
  background: radial-gradient(circle at 9% 34%, rgba(231, 255, 245, 0.78) 0%, rgba(208, 255, 234, 0.18) 56%, rgba(208, 255, 234, 0) 78%);
  pointer-events: none;
}

.login-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  padding: 118px 0 0 16px; /* left 16px 对齐 auth-card 内边距 */
}

.login-hero-copy {
  position: relative;
  z-index: 2;
  width: 158px;
}

.login-hero-title {
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #17242e;
}

.login-hero-subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(23, 35, 45, 0.88);
}

.login-eagle {
  position: absolute;
  z-index: 1;
  right: -22px;
  top: -6px;
  width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
}

.auth-login-card {
  position: relative;
  z-index: 2;
  margin-top: -25px;
  width: 100%;
  min-height: calc(100vh - 295px);
  border-radius: 36px 36px 0 0;
  background: #f7f8fa;
  border: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  padding: 42px 28px 60px;
}

.auth-field-icon {
  margin-top: 0;
  margin-bottom: 18px;
}

.auth-icon-wrap {
  display: flex;
  align-items: center;
  height: 72px;
  border-radius: 36px;
  background: #ffffff;
  border: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0 24px;
  transition: box-shadow 0.2s ease, transform 0.16s ease;
}

.auth-icon-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16), 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.auth-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #a9b4bf;
  flex: 0 0 22px;
}

.auth-input-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.auth-shell-login .auth-input.search-input {
  height: 72px;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0 10px 0 18px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  letter-spacing: 0;
  color: #1f2937;
}

.auth-shell-login .auth-input.search-input::placeholder {
  color: #9aa6b2;
  font-weight: 500;
}

.auth-shell-login .auth-input.search-input:focus {
  box-shadow: none;
  outline: none;
}

.auth-pass-wrap .auth-pass-input {
  padding-right: 8px;
}

.auth-pass-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #101521;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 2px;
  opacity: 0.95;
}

.auth-pass-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.auth-eye-open {
  display: none;
}

.auth-eye-close {
  display: block;
}

.auth-pass-toggle.is-visible .auth-eye-open {
  display: block;
}

.auth-pass-toggle.is-visible .auth-eye-close {
  display: none;
}

.auth-agreement {
  margin-top: 8px;
}

.auth-agreement-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 15px;
  line-height: 1.35;
}

.auth-agreement-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  transition: all 0.2s ease;
}

.auth-check-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.auth-agreement-label input:not(:checked) + .auth-check-icon {
  background: #d8e0ea;
  color: transparent;
}

.auth-agreement-text {
  color: #6b7280;
  letter-spacing: 0;
}

.auth-agreement-link {
  color: #67c7bc;
  text-decoration: none;
  font-weight: 600;
}

.auth-shell-login .auth-msg {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
}

.auth-submit.filter-submit-btn {
  margin-top: 46px;
  width: 100%;
  height: 72px;
  border: 1px solid rgba(130, 158, 164, 0.24);
  border-radius: 36px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6f9c8a;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 22px rgba(94, 120, 129, 0.14);
}

.auth-submit.filter-submit-btn:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.72);
}

.auth-submit.filter-submit-btn:disabled {
  opacity: 0.65;
}

/* 修改密码页专属（对齐登录页风格） */
#page-account-security {
  padding-top: 0;
  background: linear-gradient(180deg, #dfffee 0%, #f7fff9 44%, #ffffff 68%);
}

.auth-home-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: #50606d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-home-corner:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #2c3e50;
}

.auth-home-corner:active {
  transform: scale(0.96);
}

.auth-shell-account {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

.auth-shell-account::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background: radial-gradient(circle at 12% 28%, rgba(231, 255, 245, 0.74) 0%, rgba(208, 255, 234, 0.15) 58%, rgba(208, 255, 234, 0) 80%);
  pointer-events: none;
}

.account-login-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  padding: 118px 28px 0;
}

.auth-account-card {
  position: relative;
  z-index: 2;
  margin-top: -25px;
  width: 100%;
  min-height: calc(100vh - 295px);
  border-radius: 36px 36px 0 0;
  background: #f7f8fa;
  border: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  padding: 42px 28px 40px;
}

.auth-account-card .auth-field-icon {
  margin-bottom: 14px;
}

.auth-shell-account .auth-icon-wrap {
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-shell-account .auth-account-input.search-input {
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  font-size: 20px;
  font-weight: 600;
}

.auth-shell-account .auth-account-input.search-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.auth-account-input.search-input::placeholder {
  color: #9aa6b2;
  font-weight: 500;
}

.auth-account-msg {
  margin-top: 8px;
}

.auth-account-actions {
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.auth-account-submit.filter-submit-btn,
.auth-account-logout.filter-submit-btn {
  flex: 1 1 0;
  width: calc(50% - 6px);
  min-width: 0;
  margin-top: 0;
  height: 64px;
  border-radius: 32px;
  font-size: 23px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  white-space: nowrap;
}

.auth-account-submit.filter-submit-btn {
  background: linear-gradient(180deg, #1f7a68 0%, #165a4d 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px rgba(22, 90, 77, 0.3);
}

.auth-account-logout.filter-submit-btn {
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.98), rgba(255, 236, 236, 0.96));
  border: 1px solid rgba(220, 38, 38, 0.24);
  color: #b42318;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px rgba(180, 35, 24, 0.1);
}

@media (max-width: 420px) {
  .login-hero {
    padding: 98px 16px 0;
    height: 290px;
  }

  .login-hero-title {
    font-size: 40px;
  }

  .login-hero-subtitle {
    font-size: 12px;
  }

  .login-eagle {
    right: -24px;
    top: -4px;
    width: 318px;
  }

  .auth-login-card {
    margin-top: -18px;
    border-radius: 30px 30px 0 0;
    padding: 28px 16px 34px;
    min-height: calc(100vh - 260px);
  }

  .account-login-hero {
    padding: 98px 16px 0;
    height: 290px;
  }

  .auth-account-card {
    margin-top: -18px;
    border-radius: 30px 30px 0 0;
    padding: 28px 16px 34px;
    min-height: calc(100vh - 260px);
  }

  .auth-icon-wrap {
    height: 64px;
    border-radius: 32px;
    padding: 0 18px;
  }

  .auth-shell-login .auth-input.search-input {
    height: 64px;
    font-size: 21px;
    padding-left: 12px;
  }

  .auth-submit.filter-submit-btn {
    margin-top: 34px;
    height: 64px;
    border-radius: 32px;
    font-size: 24px;
  }

  .auth-account-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .auth-account-submit.filter-submit-btn,
  .auth-account-logout.filter-submit-btn {
    margin-top: 0;
    height: 60px;
    border-radius: 30px;
    font-size: 20px;
  }
}
