/* 博讯 · 伟德 BetVictor shortcode 样式
 * 单独加载本文件；HTML 片段不含 style、link、脚本或完整文档外壳。
 * 所有选择器限定在 .bx-bv。宿主页面提供 H1，片段从 H2 开始。
 * 顶部支持可扩展横向面包屑；移动端路径过长时横向滚动。
 */
.bx-bv {
  --bv-navy: #0b2f4f;
  --bv-blue: #175d8c;
  --bv-cyan: #39bde8;
  --bv-cyan-deep: #169ccf;
  --bv-cyan-soft: #edf9fd;
  --bv-ink: #25313d;
  --bv-muted: #647080;
  --bv-gray: #f5f7f9;
  --bv-line: #e1e6ec;
  --bv-alert: #b92d38;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px 36px;
  color: var(--bv-ink);
  background: #fff;
  font: 16px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
  text-align: left;
}

.bx-bv *, .bx-bv *::before, .bx-bv *::after { box-sizing: border-box; }
.bx-bv h2, .bx-bv h3, .bx-bv h4, .bx-bv p, .bx-bv ul, .bx-bv ol, .bx-bv dl, .bx-bv dd, .bx-bv figure { margin: 0; padding: 0; }
.bx-bv h2, .bx-bv h3, .bx-bv h4 { color: var(--bv-navy); font-weight: 750; }
.bx-bv a { color: var(--bv-blue); text-decoration: none; text-underline-offset: 4px; }
.bx-bv a:hover { color: var(--bv-cyan-deep); text-decoration: underline; }
.bx-bv a:focus-visible { outline: 3px solid var(--bv-cyan); outline-offset: 4px; border-radius: 3px; }

/* 顶部面包屑：横向展示、整体靠左；路径过长时可横向滚动。 */
.bx-bv .bx-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--bv-line);
  font-size: 14px;
  color: var(--bv-muted);
}

/* 兼容旧版顶部单链接；改成面包屑后由 .bx-breadcrumb 接管。 */
.bx-bv .bx-topline > a { font-weight: 750; }

.bx-bv .bx-breadcrumb {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #a7b3be transparent;
}
.bx-bv .bx-breadcrumb::-webkit-scrollbar { height: 4px; }
.bx-bv .bx-breadcrumb::-webkit-scrollbar-track { background: transparent; }
.bx-bv .bx-breadcrumb::-webkit-scrollbar-thumb { background: #a7b3be; border-radius: 999px; }

.bx-bv .bx-breadcrumb ol {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bx-bv .bx-breadcrumb li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--bv-muted);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}
.bx-bv .bx-breadcrumb li::marker { content: none; }
.bx-bv .bx-breadcrumb li + li::before {
  content: "/";
  flex: 0 0 auto;
  margin: 0 8px;
  color: #a7b3be;
  font-weight: 400;
}

.bx-bv .bx-breadcrumb a {
  color: var(--bv-navy);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.bx-bv .bx-breadcrumb a:hover {
  color: var(--bv-cyan-deep);
  text-decoration: underline;
}
.bx-bv .bx-breadcrumb [aria-current="page"] {
  color: var(--bv-muted);
  font-weight: 500;
}

/* 可选的右侧栏目说明；不会改变面包屑靠左。 */
.bx-bv .bx-topline-meta,
.bx-bv .bx-topline > span {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--bv-muted);
  white-space: nowrap;
}

.bx-bv .bx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 44px;
  padding: 36px 0 30px;
}
.bx-bv .bx-kicker {
  color: var(--bv-cyan-deep);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bx-bv .bx-kicker::before { content: ''; width: 24px; height: 3px; background: var(--bv-cyan); }
.bx-bv .bx-page-title { font-size: clamp(32px, 3.8vw, 44px); letter-spacing: -.035em; line-height: 1.28; margin-bottom: 4px; }
.bx-bv .bx-english { color: var(--bv-muted); font-size: 19px; letter-spacing: .025em; margin-bottom: 15px; }
.bx-bv .bx-lead { max-width: 660px; line-height: 1.85; color: #475364; }

/* 官网按钮限定在组件内，避免宿主主题覆盖文字颜色与伪元素。 */
.bx-bv a.bx-official-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--bv-navy);
  border-radius: 5px;
  background: var(--bv-navy) !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  box-shadow: none !important;
}
.bx-bv a.bx-official-link,
.bx-bv a.bx-official-link:link,
.bx-bv a.bx-official-link:visited,
.bx-bv a.bx-official-link:focus,
.bx-bv a.bx-official-link:active,
.bx-bv a.bx-official-link span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.bx-bv a.bx-official-link:hover {
  background: var(--bv-cyan) !important;
  border-color: var(--bv-cyan);
  color: var(--bv-navy) !important;
  -webkit-text-fill-color: var(--bv-navy) !important;
}
.bx-bv a.bx-official-link:hover span {
  color: var(--bv-navy) !important;
  -webkit-text-fill-color: var(--bv-navy) !important;
}
.bx-bv a.bx-official-link span { position: relative; z-index: 1; }
.bx-bv a.bx-official-link::before,
.bx-bv a.bx-official-link::after { content: none !important; display: none !important; }
.bx-bv a.bx-official-link:focus-visible { outline: 3px solid var(--bv-cyan) !important; outline-offset: 4px; }

.bx-bv .bx-logo-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #071f38 0%, var(--bv-navy) 62%, #12466d 100%);
  border: 1px solid #174d72;
  border-radius: 8px;
  padding: 31px 22px 20px;
  text-align: center;
}
.bx-bv .bx-logo-panel::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  bottom: -85px;
  border: 1px solid rgba(57, 189, 232, .35);
  border-radius: 50%;
}
.bx-bv .bx-logo-panel svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.bx-bv .bx-logo-panel figcaption { position: relative; z-index: 1; color: #cae9f5; font-size: 13px; letter-spacing: .12em; margin-top: 14px; }

.bx-bv .bx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--bv-line);
  border-top: 3px solid var(--bv-cyan);
  border-radius: 0 0 6px 6px;
  background: var(--bv-gray);
  margin-bottom: 34px;
}
.bx-bv .bx-fact { padding: 16px 22px; }
.bx-bv .bx-fact:nth-child(n+4) { border-top: 1px solid var(--bv-line); }
.bx-bv .bx-fact:not(:nth-child(3n)) { border-right: 1px solid var(--bv-line); }
.bx-bv .bx-fact dt { color: var(--bv-muted); font-size: 14px; margin-bottom: 4px; }
.bx-bv .bx-fact dd { font-weight: 650; color: var(--bv-navy); font-size: 16px; }

.bx-bv .bx-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; align-items: start; }
.bx-bv .bx-toc { position: sticky; top: 48px; border: 1px solid var(--bv-line); border-radius: 6px; padding: 19px 14px; background: #fff; }
.bx-bv .bx-toc h3 { font-size: 16px; margin: 0 8px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bv-line); }
.bx-bv .bx-toc ol { list-style: none; display: grid; gap: 5px; }
.bx-bv .bx-toc a { display: flex; gap: 10px; padding: 9px 8px; font-size: 14px; line-height: 1.5; border-radius: 4px; color: #495466; }
.bx-bv .bx-toc a:hover, .bx-bv .bx-toc a:focus-visible { color: var(--bv-navy); background: var(--bv-cyan-soft); }
.bx-bv .bx-toc a span { color: var(--bv-cyan-deep); font-variant-numeric: tabular-nums; font-weight: 700; }

.bx-bv .bx-body { min-width: 0; }
.bx-bv .bx-section { scroll-margin-top: 110px; padding-bottom: 32px; margin-bottom: 30px; border-bottom: 1px solid var(--bv-line); }
.bx-bv .bx-section:last-child { margin-bottom: 0; border-bottom: 0; }
.bx-bv .bx-section:target .bx-section-heading { background: var(--bv-cyan-soft); border-radius: 4px; }
.bx-bv .bx-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.bx-bv .bx-section-heading h3 { font-size: 24px; line-height: 1.45; letter-spacing: -.02em; }
.bx-bv .bx-section-marker { width: 4px; height: 23px; flex: 0 0 4px; background: var(--bv-cyan); border-radius: 1px; }
.bx-bv .bx-body p + p { margin-top: 14px; }
.bx-bv .bx-body strong { font-weight: 650; }
.bx-bv .bx-body ul { padding-left: 22px; margin-top: 14px; }
.bx-bv .bx-body li { margin-top: 10px; }
.bx-bv .bx-body li::marker { color: var(--bv-cyan-deep); }

.bx-bv .bx-timeline { position: relative; margin: 22px 0 0 6px; border-left: 2px solid var(--bv-line); padding-left: 24px; }
.bx-bv .bx-timeline-item { position: relative; padding-bottom: 25px; }
.bx-bv .bx-timeline-item:last-child { padding-bottom: 0; }
.bx-bv .bx-timeline-item::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  left: -30px;
  top: 9px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--bv-cyan-deep);
  background: var(--bv-cyan);
  border-radius: 50%;
}
.bx-bv .bx-timeline-year { color: var(--bv-navy); font-weight: 700; margin-bottom: 5px; font-size: 17px; }
.bx-bv .bx-timeline-desc { color: #596575; line-height: 1.8; }

.bx-bv .bx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.bx-bv .bx-card { position: relative; overflow: hidden; padding: 22px; background: var(--bv-gray); border: 1px solid var(--bv-line); border-radius: 6px; }
.bx-bv .bx-card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 52px; height: 3px; background: var(--bv-cyan); }
.bx-bv .bx-card h4 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.bx-bv .bx-card p { color: #596575; font-size: 16px; }

.bx-bv .bx-license-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.bx-bv .bx-license-tag { background: var(--bv-cyan-soft); color: var(--bv-navy); border: 1px solid #ccebf6; border-radius: 4px; padding: 7px 12px; font-size: 14px; }
.bx-bv a.bx-license-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bv-navy) !important;
  -webkit-text-fill-color: var(--bv-navy) !important;
  background: var(--bv-cyan-soft) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
.bx-bv a.bx-license-tag::before,
.bx-bv a.bx-license-tag::after { content: none !important; display: none !important; }
.bx-bv a.bx-license-tag:hover,
.bx-bv a.bx-license-tag:focus-visible {
  color: var(--bv-blue) !important;
  -webkit-text-fill-color: var(--bv-blue) !important;
  border-color: var(--bv-cyan-deep);
  background: #fff !important;
}

.bx-bv .bx-note { margin-top: 20px; padding: 19px 22px; background: #faf4f5; border-left: 3px solid var(--bv-alert); border-radius: 0 5px 5px 0; font-size: 16px; }
.bx-bv .bx-note strong { color: var(--bv-alert); display: block; margin-bottom: 6px; }

.bx-bv .bx-footer { border-top: 1px solid var(--bv-line); margin-top: 12px; padding-top: 22px; color: var(--bv-muted); font-size: 14px; }
.bx-bv .bx-footer-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.bx-bv .bx-footer-top strong { color: var(--bv-navy); }
.bx-bv .bx-footer p { line-height: 1.8; }

@media (max-width: 1024px) {
  .bx-bv .bx-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bx-bv .bx-toc { position: static; padding: 17px; }
  .bx-bv .bx-toc ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-bv .bx-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-bv .bx-hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
}

@media (max-width: 680px) {
  .bx-bv { padding: 20px 18px 28px; }
  .bx-bv .bx-topline > span, .bx-bv .bx-topline-meta { display: none; }
  .bx-bv .bx-breadcrumb { width: 100%; max-width: 100%; }
  .bx-bv .bx-breadcrumb li { font-size: 13px; }
  .bx-bv .bx-breadcrumb li + li::before { margin: 0 6px; }
  .bx-bv .bx-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 0 24px; gap: 22px; }
  .bx-bv .bx-logo-panel { width: 100%; max-width: 340px; padding: 21px 24px 16px; }
  .bx-bv .bx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
  .bx-bv .bx-fact { padding: 13px 14px; }
  .bx-bv .bx-fact:not(:nth-child(3n)) { border-right: 0; }
  .bx-bv .bx-fact:nth-child(odd) { border-right: 1px solid var(--bv-line); }
  .bx-bv .bx-fact:nth-child(n+3) { border-top: 1px solid var(--bv-line); }
  .bx-bv .bx-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .bx-bv .bx-toc { padding: 14px 10px; }
  .bx-bv .bx-section-heading h3 { font-size: 21px; }
  .bx-bv .bx-section { padding-bottom: 25px; margin-bottom: 25px; }
  .bx-bv .bx-card { padding: 18px; }
  .bx-bv .bx-note { padding: 16px 18px; }
  .bx-bv .bx-footer-top { flex-wrap: wrap; }
}

@media print {
  .bx-bv { max-width: none; padding: 0; color: #111; }
  .bx-bv .bx-layout, .bx-bv .bx-hero { display: block; }
  .bx-bv .bx-toc, .bx-bv .bx-logo-panel, .bx-bv .bx-footer-top a { display: none; }
  .bx-bv .bx-section, .bx-bv .bx-card, .bx-bv .bx-timeline-item { break-inside: avoid; }
}
