:root {
  color-scheme: light;
  --bw-blue: #386ebf;
  --bw-title: #0099dc;
  --bw-ink: #333;
  --bw-muted: #999;
  --bw-line: #dbdbdb;
  --bw-paper: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; color: var(--bw-ink); background: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #2466a0; outline-offset: 2px; }

.bw-header { background: #fff; }
.bw-header-inner { position: relative; display: flex; width: min(100%, 1440px); min-height: 148px; align-items: center; gap: 22px; margin: 0 auto; padding: 10px 18px; }
.bw-brand { display: flex; flex: 0 0 250px; align-items: center; }
.bw-brand img { display: block; width: 250px; max-width: 100%; height: 128px; object-fit: contain; object-position: left center; }
.bw-search { display: flex; width: min(350px, 30vw); height: 49px; flex: 0 1 350px; margin-left: auto; border: 1px solid #ddd; }
.bw-search input { width: 0; min-width: 0; flex: 1; padding: 0 14px; border: 0; color: #333; background: #fff; font: inherit; font-size: 14px; }
.bw-search button { width: 93px; flex: 0 0 93px; border: 0; color: #fff; background: #386ebf; font: inherit; font-size: 16px; cursor: pointer; }
.bw-shortcuts { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.bw-shortcuts a { display: flex; width: 54px; flex-direction: column; align-items: center; gap: 5px; color: #555; font-size: 12px; white-space: nowrap; }
.bw-shortcuts img { width: 30px; height: 30px; object-fit: contain; }
.bw-menu-toggle { display: none; }
.bw-nav { position: sticky; z-index: 10; top: 0; display: flex; width: 100%; min-height: 66px; align-items: stretch; justify-content: center; padding: 0 max(12px, calc((100% - 1440px) / 2)); background: var(--bw-blue); }
.bw-nav > a, .bw-nav-dropdown > a { display: flex; min-height: 66px; align-items: center; padding: 0 25px; color: #fff; font-size: 24px; white-space: nowrap; }
.bw-nav > a:hover, .bw-nav-dropdown:hover > a, .bw-nav > a.is-current { background: rgba(0,0,0,.1); }
.bw-nav-dropdown { position: relative; }
.bw-nav-menu { position: absolute; top: 100%; left: 0; display: none; width: 320px; grid-template-columns: repeat(3, 1fr); padding: 8px; background: var(--bw-blue); box-shadow: 0 4px 10px #0002; }
.bw-nav-dropdown:hover .bw-nav-menu, .bw-nav-dropdown:focus-within .bw-nav-menu { display: grid; }
.bw-nav-menu a { padding: 10px; color: #fff; font-size: 16px; text-align: center; white-space: nowrap; }
.bw-nav-menu a:hover { background: rgba(255,255,255,.15); }

.bw-main { width: min(100%, 1440px); min-height: 60vh; margin: 0 auto; background: var(--bw-paper); }
.bw-breadcrumb { display: flex; min-height: 46px; align-items: center; gap: 9px; overflow: hidden; padding: 0 32px; color: #777; font-size: 14px; white-space: nowrap; }
.bw-breadcrumb a { color: #555; }
.bw-breadcrumb > :last-child { overflow: hidden; text-overflow: ellipsis; }
.bw-columns { display: grid; grid-template-columns: minmax(0, 1fr); }
.bw-list { min-width: 0; padding: 32px; background: #fff; }
.bw-story-list { margin: 0; padding: 0; list-style: none; }
.bw-story { margin: 0; padding: 0; }
.bw-story-title { display: flex; min-width: 0; align-items: center; margin-bottom: 16px; line-height: 22px; }
.bw-story-title::before { width: 10px; height: 10px; flex: 0 0 10px; margin-right: 12px; border-radius: 2px; background: #d8d8d8; content: ""; }
.bw-story-title span { overflow: hidden; flex: 1 1 auto; margin-right: 16px; color: #333; font-size: 16px; font-weight: 400; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.bw-story-title:hover span { color: var(--bw-title); }
.bw-story-date { display: table; flex: none; color: #999; font-size: 14px; white-space: nowrap; }
.bw-story:nth-child(5n) { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--bw-line); }
.bw-empty { padding: 36px 0; color: var(--bw-muted); text-align: center; }
.bw-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; padding: 24px 0 4px; font-size: 13px; }
.bw-pagination a, .bw-pagination > span:not(.bw-page-count) { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid #dcdfe6; background: #fff; }
.bw-pagination a:hover, .bw-pagination .is-current { color: #fff; border-color: #409eff; background: #409eff; }
.bw-pagination .is-disabled { color: #c0c4cc; background: #fff !important; }
.bw-page-count { margin-right: 4px; color: var(--bw-muted); white-space: nowrap; }
.bw-page-count b { color: var(--bw-blue); }

.bw-article { margin: 0 auto; padding: 0 32px 44px; }
.bw-article-header { margin-top: 20px; border-bottom: 1px dashed #7a7a7a; }
.bw-article-subnav { display: flex; min-height: 42px; align-items: center; gap: 9px; overflow: hidden; color: #777; font-size: 14px; white-space: nowrap; }
.bw-article-subnav a { color: #555; }
.bw-article-header h1 { margin: 0; padding: 16px 0; color: var(--bw-title); font-size: 33px; font-weight: 700; line-height: 48px; text-align: center; overflow-wrap: anywhere; }
.bw-article-header h2 { min-height: 0; margin: 0; color: #939393; font-size: 22px; font-weight: 700; line-height: 36px; text-align: center; }
.bw-article-meta { display: flex; min-height: 76px; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; color: #3b3b3b; font-size: 14px; }
.bw-article-tools { display: inline-flex; align-items: center; gap: 5px; }
.bw-article-tools button { width: 34px; height: 34px; padding: 0; border: 0; color: #555; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.bw-article-tools button:hover { color: var(--bw-title); }
.bw-copy-status { min-width: 42px; color: var(--bw-title); font-size: 12px; }
.bw-article-body { width: min(100%, 1000px); margin: 0 auto; padding: 26px 0; color: #292d32; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.bw-article-body p { margin: 0 0 25px; text-align: justify; text-indent: 2em; }
.bw-article-body h2, .bw-article-body h3 { margin: 28px 0 12px; font-size: 19px; line-height: 1.5; }
.bw-article-body img, .bw-article-body video { display: block; max-width: 100%; height: auto; margin: 18px auto; }
.bw-article-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.bw-article-body th, .bw-article-body td { padding: 8px; border: 1px solid var(--bw-line); }

.bw-footer { padding: 16px 16px 24px; color: #333; background: #f7f7f7; font-size: 14px; line-height: 20px; text-align: center; }
.bw-footer-inner { width: min(100%, 1440px); margin: 0 auto; }
.bw-footer-inner p { margin: 16px 0; }
.bw-footer a { color: #333; }
.bw-footer a:hover { color: var(--bw-title); }
.bw-footer-badges { display: flex; max-width: 1000px; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 12px auto 0; }
.bw-footer-badges img { width: auto; max-width: 120px; height: 42px; object-fit: contain; }

@media (max-width: 1100px) and (min-width: 761px) {
  .bw-header-inner { gap: 12px; padding-right: 12px; padding-left: 12px; }
  .bw-brand { flex-basis: 180px; }
  .bw-brand img { width: 180px; }
  .bw-shortcuts { gap: 5px; }
  .bw-shortcuts a { width: 46px; font-size: 11px; }
  .bw-nav > a, .bw-nav-dropdown > a { padding-right: 14px; padding-left: 14px; font-size: 20px; }
}
@media (max-width: 760px) {
  .bw-header-inner { min-height: 76px; gap: 8px; padding: 8px 14px; }
  .bw-brand { flex: 0 1 150px; }
  .bw-brand img { width: 150px; height: 58px; }
  .bw-search { width: auto; height: 38px; flex: 1 1 auto; margin-left: auto; }
  .bw-search input { padding: 0 8px; font-size: 12px; }
  .bw-search button { width: 58px; flex-basis: 58px; font-size: 13px; }
  .bw-shortcuts { display: none; }
  .bw-menu-toggle { display: flex; width: 38px; height: 38px; flex: 0 0 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; }
  .bw-menu-toggle span { width: 21px; height: 2px; background: #333; }
  .bw-nav { position: static; display: none; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; padding: 4px 8px; }
  .bw-nav.is-open { display: grid; }
  .bw-nav > a, .bw-nav-dropdown > a { min-height: 42px; justify-content: center; padding: 8px 4px; font-size: 14px; }
  .bw-nav-dropdown { display: contents; }
  .bw-nav-menu { position: static; grid-column: 1 / -1; width: auto; grid-template-columns: repeat(3, 1fr); box-shadow: none; }
  .bw-nav-dropdown:focus-within .bw-nav-menu { display: grid; }
  .bw-nav-menu a { padding: 8px 4px; font-size: 13px; }
  .bw-main { min-height: 55vh; }
  .bw-breadcrumb { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .bw-list { padding: 20px 14px; }
  .bw-story-title { margin-bottom: 12px; }
  .bw-story-title::before { width: 8px; height: 8px; flex-basis: 8px; margin-right: 8px; }
  .bw-story-title span { margin-right: 8px; font-size: 14px; line-height: 21px; }
  .bw-story-date { font-size: 12px; }
  .bw-story:nth-child(5n) { margin-bottom: 12px; padding-bottom: 12px; }
  .bw-pagination { gap: 4px; font-size: 12px; }
  .bw-pagination a, .bw-pagination > span:not(.bw-page-count) { min-width: 30px; min-height: 30px; padding: 0 6px; }
  .bw-page-count { display: none; }
  .bw-article { padding: 0 14px 28px; }
  .bw-article-header { margin-top: 8px; }
  .bw-article-subnav { min-height: 38px; font-size: 12px; }
  .bw-article-header h1 { padding: 12px 0; font-size: 22px; line-height: 1.55; }
  .bw-article-header h2 { font-size: 16px; line-height: 26px; }
  .bw-article-meta { min-height: 0; flex-wrap: wrap; justify-content: center; padding: 8px 0 12px; font-size: 12px; }
  .bw-article-tools { margin-left: auto; }
  .bw-article-body { padding: 20px 0; font-size: 16px; }
  .bw-footer { padding: 12px 12px 20px; font-size: 12px; line-height: 1.7; }
  .bw-footer-inner p { margin: 10px 0; }
  .bw-footer-badges { gap: 8px; }
  .bw-footer-badges img { max-width: 90px; height: 32px; }
}
@media print {
  .bw-header, .bw-nav, .bw-footer, .bw-breadcrumb, .bw-article-subnav, .bw-article-tools { display: none !important; }
  .bw-main { width: 100%; margin: 0; padding: 0; }
  .bw-article { max-width: none; padding: 0; }
}
