/* 博讯 · 威廉希尔 shortcode 样式
 * 单独加载本文件；HTML 片段不含 style、link、脚本或完整文档外壳。
 * 所有选择器限定在 .bx-wh。宿主页面提供 H1，片段从 H2 开始。
 */
.bx-wh {
  --bx-blue: #243983; --bx-red: #b92d38; --bx-ink: #25313d;
  --bx-muted: #647080; --bx-gray: #f5f6f8; --bx-line: #e2e5eb;
  box-sizing: border-box; max-width: 1120px; margin: 0 auto;
  padding: 30px 24px 36px; color: var(--bx-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-wh *, .bx-wh *::before, .bx-wh *::after { box-sizing: border-box; }
.bx-wh h2, .bx-wh h3, .bx-wh h4, .bx-wh p, .bx-wh ul, .bx-wh ol, .bx-wh dl, .bx-wh dd, .bx-wh figure { margin: 0; padding: 0; }
.bx-wh h2, .bx-wh h3, .bx-wh h4 { color: var(--bx-blue); font-weight: 750; }
.bx-wh a { color: var(--bx-blue); text-decoration: none; text-underline-offset: 4px; }
.bx-wh a:hover { color: var(--bx-red); text-decoration: underline; }
.bx-wh a:focus-visible { outline: 3px solid var(--bx-red); outline-offset: 4px; border-radius: 3px; }
.bx-wh .bx-topline { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--bx-line); font-size: 14px; color: var(--bx-muted); }
.bx-wh .bx-topline a { font-weight: 750; }
.bx-wh .bx-topline span { font-size: 13px; letter-spacing: .08em; }
.bx-wh .bx-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 44px; padding: 36px 0 30px; }
.bx-wh .bx-kicker { color: var(--bx-red); font-size: 14px; font-weight: 750; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bx-wh .bx-kicker::before { content: ''; width: 24px; height: 3px; background: var(--bx-red); }
.bx-wh .bx-page-title { font-size: clamp(32px, 3.8vw, 44px); letter-spacing: -.035em; line-height: 1.28; margin-bottom: 4px; }
.bx-wh .bx-english { color: var(--bx-muted); font-size: 19px; letter-spacing: .025em; margin-bottom: 15px; }
.bx-wh .bx-lead { max-width: 660px; line-height: 1.85; color: #475364; }
.bx-wh .bx-official-link { 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(--bx-blue); border-radius: 5px; background: var(--bx-gray); color: #fff; font-size: 16px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.bx-wh .bx-official-link:hover { background: var(--bx-red); border-color: var(--bx-red); color: #fff; text-decoration: none; }
.bx-wh .bx-logo-panel { background: #001e42; border: 1px solid #102f55; border-radius: 8px; padding: 30px 22px 20px; text-align: center; }
.bx-wh .bx-logo-panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.bx-wh .bx-logo-panel figcaption { color: #d0d7e1; font-size: 13px; letter-spacing: .12em; margin-top: 14px; }
.bx-wh .bx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--bx-line); border-top: 3px solid var(--bx-red); border-radius: 0 0 6px 6px; background: var(--bx-gray); margin-bottom: 34px; }
.bx-wh .bx-fact { padding: 16px 22px; }
.bx-wh .bx-fact:nth-child(n+4) { border-top: 1px solid var(--bx-line); }
.bx-wh .bx-fact:not(:nth-child(3n)) { border-right: 1px solid var(--bx-line); }
.bx-wh .bx-fact dt { color: var(--bx-muted); font-size: 14px; margin-bottom: 4px; }
.bx-wh .bx-fact dd { font-weight: 650; color: var(--bx-blue); font-size: 16px; }
.bx-wh .bx-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; align-items: start; }
.bx-wh .bx-toc { position: sticky; top: 48px; border: 1px solid var(--bx-line); border-radius: 6px; padding: 19px 14px; }
.bx-wh .bx-toc h3 { font-size: 16px; margin: 0 8px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bx-line); }
.bx-wh .bx-toc ol { list-style: none; display: grid; gap: 5px; }
.bx-wh .bx-toc a { display: flex; gap: 10px; padding: 9px 8px; font-size: 14px; line-height: 1.5; border-radius: 4px; color: #495466; }
.bx-wh .bx-toc a:hover, .bx-wh .bx-toc a:focus-visible { color: var(--bx-blue); background: var(--bx-gray); }
.bx-wh .bx-toc a span { color: var(--bx-red); font-variant-numeric: tabular-nums; font-weight: 650; }
.bx-wh .bx-body { min-width: 0; }
.bx-wh .bx-section { scroll-margin-top: 110px; padding-bottom: 32px; margin-bottom: 30px; border-bottom: 1px solid var(--bx-line); }
.bx-wh .bx-section:last-child { margin-bottom: 0; border-bottom: 0; }
.bx-wh .bx-section:target .bx-section-heading { background: #f5f6fa; border-radius: 4px; }
.bx-wh .bx-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.bx-wh .bx-section-heading h3 { font-size: 24px; line-height: 1.45; letter-spacing: -.02em; }
.bx-wh .bx-section-marker { width: 4px; height: 23px; flex: 0 0 4px; background: var(--bx-red); border-radius: 1px; }
.bx-wh .bx-body p + p { margin-top: 14px; }
.bx-wh .bx-body strong { font-weight: 650; }
.bx-wh .bx-body ul { padding-left: 22px; margin-top: 14px; }
.bx-wh .bx-body li { margin-top: 10px; }
.bx-wh .bx-body li::marker { color: var(--bx-red); }
.bx-wh .bx-timeline { position: relative; margin: 22px 0 0 6px; border-left: 2px solid var(--bx-line); padding-left: 24px; }
.bx-wh .bx-timeline-item { position: relative; padding-bottom: 25px; }
.bx-wh .bx-timeline-item:last-child { padding-bottom: 0; }
.bx-wh .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(--bx-red); background: var(--bx-red); border-radius: 50%; }
.bx-wh .bx-timeline-year { color: var(--bx-blue); font-weight: 700; margin-bottom: 5px; font-size: 17px; }
.bx-wh .bx-timeline-desc { color: #596575; line-height: 1.8; }
.bx-wh .bx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.bx-wh .bx-card { padding: 22px; background: var(--bx-gray); border: 1px solid var(--bx-line); border-radius: 6px; }
.bx-wh .bx-card h4 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.bx-wh .bx-card p { color: #596575; font-size: 16px; }
.bx-wh .bx-license-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.bx-wh .bx-license-tag { background: var(--bx-gray); color: var(--bx-blue); border: 1px solid var(--bx-line); border-radius: 4px; padding: 7px 12px; font-size: 14px; }
.bx-wh .bx-note { margin-top: 20px; padding: 19px 22px; background: #faf4f5; border-left: 3px solid var(--bx-red); border-radius: 0 5px 5px 0; font-size: 16px; }
.bx-wh .bx-note strong { color: var(--bx-red); display: block; margin-bottom: 6px; }
.bx-wh .bx-footer { border-top: 1px solid var(--bx-line); margin-top: 12px; padding-top: 22px; color: var(--bx-muted); font-size: 14px; }
.bx-wh .bx-footer-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.bx-wh .bx-footer-top strong { color: var(--bx-blue); }
.bx-wh .bx-footer p { line-height: 1.8; }
@media (max-width: 1024px) {
  .bx-wh .bx-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bx-wh .bx-toc { position: static; padding: 17px; }
  .bx-wh .bx-toc ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-wh .bx-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-wh .bx-hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
}
@media (max-width: 680px) {
  .bx-wh { padding: 20px 18px 28px; }
  .bx-wh .bx-topline span { display: none; }
  .bx-wh .bx-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 0 24px; gap: 22px; }
  .bx-wh .bx-logo-panel { width: 100%; max-width: 340px; padding: 20px 24px 16px; }
  .bx-wh .bx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
  .bx-wh .bx-fact { padding: 13px 14px; }
  .bx-wh .bx-fact:not(:nth-child(3n)) { border-right: 0; }
  .bx-wh .bx-fact:nth-child(odd) { border-right: 1px solid var(--bx-line); }
  .bx-wh .bx-fact:nth-child(n+3) { border-top: 1px solid var(--bx-line); }
  .bx-wh .bx-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .bx-wh .bx-toc { padding: 14px 10px; }
  .bx-wh .bx-section-heading h3 { font-size: 21px; }
  .bx-wh .bx-section { padding-bottom: 25px; margin-bottom: 25px; }
  .bx-wh .bx-card { padding: 18px; }
  .bx-wh .bx-note { padding: 16px 18px; }
  .bx-wh .bx-footer-top { flex-wrap: wrap; }
}
@media print {
  .bx-wh { max-width: none; padding: 0; color: #111; }
  .bx-wh .bx-layout, .bx-wh .bx-hero { display: block; }
  .bx-wh .bx-toc, .bx-wh .bx-logo-panel, .bx-wh .bx-footer-top a { display: none; }
  .bx-wh .bx-section, .bx-wh .bx-card, .bx-wh .bx-timeline-item { break-inside: avoid; }
}
