/* 博讯 · bwin shortcode 样式
 * 单独加载本文件；HTML 片段不含 style、link、脚本或完整文档外壳。
 * 所有选择器限定在 .bx-bwin。宿主页面提供 H1，片段从 H2 开始。
 * 顶部支持可扩展横向面包屑；移动端路径过长时横向滚动。
 * Footer 位于 .bx-body 内，只与正文列同宽。
 */

.bx-bwin {
  --bwin-black: #111111;
  --bwin-black-soft: #202020;
  --bwin-yellow: #f4c900;
  --bwin-yellow-deep: #d9b000;
  --bwin-ink: #24272b;
  --bwin-muted: #68707a;
  --bwin-gray: #f6f6f5;
  --bwin-soft: #fff9dc;
  --bwin-line: #e1e3e5;
  --bwin-alert: #a83b3b;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px 36px;
  color: var(--bwin-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-bwin *, .bx-bwin *::before, .bx-bwin *::after { box-sizing: border-box; }
.bx-bwin h2, .bx-bwin h3, .bx-bwin h4, .bx-bwin p, .bx-bwin ul, .bx-bwin ol, .bx-bwin dl, .bx-bwin dd, .bx-bwin figure { margin: 0; padding: 0; }
.bx-bwin h2, .bx-bwin h3, .bx-bwin h4 { color: var(--bwin-black); font-weight: 750; }
.bx-bwin a { color: var(--bwin-black); text-decoration: none; text-underline-offset: 4px; }
.bx-bwin a:hover { color: #8d7200; text-decoration: underline; }
.bx-bwin a:focus-visible { outline: 3px solid var(--bwin-yellow); outline-offset: 4px; border-radius: 3px; }

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

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

.bx-bwin .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: #a8abb0 transparent;
}
.bx-bwin .bx-breadcrumb::-webkit-scrollbar { height: 4px; }
.bx-bwin .bx-breadcrumb::-webkit-scrollbar-track { background: transparent; }
.bx-bwin .bx-breadcrumb::-webkit-scrollbar-thumb { background: #a8abb0; border-radius: 999px; }

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

.bx-bwin .bx-breadcrumb a {
  color: var(--bwin-black);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.bx-bwin .bx-breadcrumb a:hover {
  color: #8d7200;
  text-decoration: underline;
}
.bx-bwin .bx-breadcrumb [aria-current="page"] {
  color: var(--bwin-muted);
  font-weight: 500;
}

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

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

/* 官网按钮限定在组件作用域内，避免宿主主题覆盖。 */
.bx-bwin 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(--bwin-black);
  border-radius: 4px;
  background: var(--bwin-black) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none !important;
}
.bx-bwin a.bx-official-link,
.bx-bwin a.bx-official-link:link,
.bx-bwin a.bx-official-link:visited,
.bx-bwin a.bx-official-link:focus,
.bx-bwin a.bx-official-link:active,
.bx-bwin 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-bwin a.bx-official-link:hover,
.bx-bwin a.bx-official-link:focus-visible,
.bx-bwin a.bx-official-link:active {
  background: #2b2b2b !important;
  border-color: #2b2b2b;
}
.bx-bwin a.bx-official-link span { position: relative; z-index: 1; }
.bx-bwin a.bx-official-link::before,
.bx-bwin a.bx-official-link::after { content: none !important; display: none !important; }
.bx-bwin a.bx-official-link:focus-visible { outline: 3px solid var(--bwin-yellow) !important; outline-offset: 4px; }

/* bwin 品牌区：黑色主视觉 + 黄色动线，Logo 为 HTML 内联 SVG。 */
.bx-bwin .bx-logo-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #090909 0%, #161616 62%, #242424 100%);
  border: 1px solid #282828;
  border-radius: 7px;
  padding: 27px 22px 18px;
  text-align: center;
}
.bx-bwin .bx-logo-panel::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -86px;
  top: -100px;
  border: 1px solid rgba(244, 201, 0, .45);
  border-radius: 50%;
}
.bx-bwin .bx-logo-panel::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 45px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 201, 0, .7), transparent);
}
.bx-bwin .bx-brand-svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.bx-bwin .bx-logo-panel figcaption { position: relative; z-index: 1; color: #d2d2d2; font-size: 13px; letter-spacing: .12em; margin-top: 10px; }

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

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

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

.bx-bwin .bx-timeline { position: relative; margin: 22px 0 0 6px; border-left: 2px solid var(--bwin-line); padding-left: 24px; }
.bx-bwin .bx-timeline-item { position: relative; padding-bottom: 25px; }
.bx-bwin .bx-timeline-item:last-child { padding-bottom: 0; }
.bx-bwin .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(--bwin-black);
  background: var(--bwin-yellow);
  border-radius: 50%;
}
.bx-bwin .bx-timeline-year { color: var(--bwin-black); font-weight: 700; margin-bottom: 5px; font-size: 17px; }
.bx-bwin .bx-timeline-desc { color: #5b626b; line-height: 1.8; }

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

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

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

/* Footer 放在 .bx-body 内，只与正文列同宽。 */
.bx-bwin .bx-body > .bx-footer { border-top: 1px solid var(--bwin-line); margin-top: 28px; padding-top: 22px; color: var(--bwin-muted); font-size: 14px; }
.bx-bwin .bx-footer-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.bx-bwin .bx-footer-top strong { color: var(--bwin-black); }
.bx-bwin .bx-footer p { line-height: 1.8; }

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

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

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