/* 权益对比样式 v10
   · ⓘ 改为悬浮气泡（.bc-tip 挂在 body，position:fixed），不占抽屉底部空间
   · × / √ 两色
   · 纯绘制，无 backdrop-filter */

.bc-wrap {
  margin: 8px 0 8px;
  padding: 9px 10px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffffff2, #ffffffb8);
  border: 1px solid #2f6bff26;
  box-shadow: inset 0 1px 0 #ffffffe6, 0 1px 2px #17223f14;
}

.bc-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 5px;
  letter-spacing: .2px;
}

.bc-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.32;
  color: #334155;
  table-layout: fixed;
}

.bc-tbl th,
.bc-tbl td {
  padding: 3px 3px;
  text-align: center;
  border-bottom: 1px solid #17223f10;
  word-break: break-word;
}

.bc-tbl th:first-child,
.bc-tbl td:first-child {
  text-align: left;
  width: 40%;
  color: #64748b;
}

.bc-tbl thead th {
  font-weight: 800;
  color: #1e3a8a;
  border-bottom: 1px solid #2f6bff33;
}

.bc-tbl tbody tr:last-child td { border-bottom: 0; }

.bc-x { color: #94a3b8; font-weight: 800; }
.bc-y { color: #15803d; font-weight: 800; }

/* 圆圈内感叹号 */
.bc-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #2f6bff59;
  background: #2f6bff14;
  color: #2f6bff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.bc-i:active { transform: scale(.94); }

/* 悬浮气泡：固定定位，脱离文档流，不占任何布局空间 */
.bc-tip {
  position: fixed;
  z-index: 100001;
  max-width: min(280px, calc(100vw - 32px));
  padding: 9px 11px;
  border-radius: 10px;
  background: #1e293bf2;
  color: #f1f5f9;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 10px 28px #0f172a59;
  pointer-events: none;
}

.bc-tip[hidden] { display: none; }

.bc-tip p { margin: 0 0 6px; }
.bc-tip p:last-child { margin: 0; }
.bc-tip b { color: #93c5fd; font-weight: 800; }

/* 深色主题 */
html[data-theme="dark"] .bc-wrap {
  background: linear-gradient(180deg, #ffffff1a, #ffffff0a);
  border-color: #7fb3ff33;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #00000059;
}
html[data-theme="dark"] .bc-title,
html[data-theme="dark"] .bc-tbl thead th { color: #cfe0ff; }
html[data-theme="dark"] .bc-tbl { color: #cbd5e1; }
html[data-theme="dark"] .bc-tbl th,
html[data-theme="dark"] .bc-tbl td { border-bottom-color: #ffffff14; }
html[data-theme="dark"] .bc-y { color: #4ade80; }
html[data-theme="dark"] .bc-x { color: #94a3b8; }
html[data-theme="dark"] .bc-i {
  border-color: #7fb3ff66;
  background: #7fb3ff1f;
  color: #cfe0ff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .bc-wrap {
    background: linear-gradient(180deg, #ffffff1a, #ffffff0a);
    border-color: #7fb3ff33;
    box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #00000059;
  }
  html:not([data-theme="light"]) .bc-title,
  html:not([data-theme="light"]) .bc-tbl thead th { color: #cfe0ff; }
  html:not([data-theme="light"]) .bc-tbl { color: #cbd5e1; }
  html:not([data-theme="light"]) .bc-y { color: #4ade80; }
  html:not([data-theme="light"]) .bc-i { border-color: #7fb3ff66; background: #7fb3ff1f; color: #cfe0ff; }
}

/* 低配模式 */
html.perf-low .bc-wrap { box-shadow: none; }


/* ===== v19：选中线路流体气泡（上下包裹权益表对应列） ===== */
.bc-wrap { position: relative; }
.bc-glow {
  position: absolute;
  z-index: 3;
  display: none;
  pointer-events: none;
  border-radius: 22px;
  border: 1.5px solid transparent;
  transition: left .42s cubic-bezier(.22,1,.36,1), top .42s cubic-bezier(.22,1,.36,1),
              width .42s cubic-bezier(.22,1,.36,1), height .42s cubic-bezier(.22,1,.36,1);
}
.bc-glow[data-line="svip"] {
  border-color: rgba(167,139,250,.55);
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(139,92,246,.24), rgba(139,92,246,0) 62%),
    radial-gradient(110% 55% at 50% 100%, rgba(139,92,246,.22), rgba(139,92,246,0) 62%),
    linear-gradient(180deg, rgba(139,92,246,.10), rgba(139,92,246,.02) 38%,
                    rgba(139,92,246,.02) 62%, rgba(139,92,246,.10));
  box-shadow: inset 0 0 20px rgba(139,92,246,.16), 0 6px 26px rgba(139,92,246,.16);
  animation: bcFlow 7s ease-in-out infinite;
}
.bc-glow[data-line="vip"] {
  border-color: rgba(245,196,96,.62);
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(217,164,65,.24), rgba(217,164,65,0) 62%),
    radial-gradient(110% 55% at 50% 100%, rgba(217,164,65,.22), rgba(217,164,65,0) 62%),
    linear-gradient(180deg, rgba(217,164,65,.10), rgba(217,164,65,.02) 38%,
                    rgba(217,164,65,.02) 62%, rgba(217,164,65,.10));
  box-shadow: inset 0 0 20px rgba(217,164,65,.18), 0 6px 26px rgba(217,164,65,.16);
  animation: bcFlow 7s ease-in-out infinite;
}
@keyframes bcFlow {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-1.2px) }
}
@media (prefers-reduced-motion: reduce) { .bc-glow { animation: none !important; } }
html[data-theme="dark"] .bc-glow[data-line="svip"] {
  border-color: rgba(196,181,253,.62);
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(167,139,250,.26), rgba(167,139,250,0) 62%),
    radial-gradient(110% 55% at 50% 100%, rgba(167,139,250,.22), rgba(167,139,250,0) 62%);
  box-shadow: inset 0 0 22px rgba(167,139,250,.20), 0 6px 26px rgba(109,40,217,.28);
}
html[data-theme="dark"] .bc-glow[data-line="vip"] {
  border-color: rgba(253,224,140,.62);
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(245,196,96,.24), rgba(245,196,96,0) 62%),
    radial-gradient(110% 55% at 50% 100%, rgba(245,196,96,.20), rgba(245,196,96,0) 62%);
  box-shadow: inset 0 0 22px rgba(245,196,96,.18), 0 6px 26px rgba(146,95,8,.30);
}
