/* ==========================================================================
   ATFX 市场观察 V4 · 报纸头版式
   --bs- 前缀，与 V1（--biz-）、V2（--mag-）、V3（--trm-）完全隔离

   三条硬规矩：
   1. 全站 0px 圆角，没有任何 border-radius
   2. 线宽只有三级：3px 黑（题头）/ 1px 黑（分节与分栏竖线）/ 0.5px 灰（密集列表内）
   3. 竖线只出现在真正并列的栏之间，不与横线交叉成网格
   ========================================================================== */

:root {
  --bs-page: #E8E8E4;
  --bs-sheet: #FCFCFA;
  --bs-sheet-2: #F4F3EF;

  --bs-ink: #141414;
  --bs-body: #2A2926;
  --bs-mute: #6B6862;
  --bs-faint: #8A8880;
  --bs-rule: #CFCDC6;
  --bs-edge: #DBD9D3;

  --bs-accent: #12467E;
  --bs-accent-soft: #EDF0F5;

  --bs-up: #C62828;
  --bs-down: #0F7B54;

  --bs-max: 1280px;
  --bs-pad: 28px;
  --bs-head-h: 44px;
  --bs-cats-h: 28px;

  --bs-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bs-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong",
    "SimSun", Georgia, "Times New Roman", serif;
  --bs-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Roboto Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bs-page);
  color: var(--bs-body);
  font: 400 14.5px/1.75 var(--bs-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
table { border-collapse: collapse; width: 100%; }

.bs-mono { font-family: var(--bs-mono); font-variant-numeric: tabular-nums; }
.bs-up { color: var(--bs-up); }
.bs-down { color: var(--bs-down); }

.bs-sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bs-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bs-ink); color: var(--bs-sheet); padding: 10px 16px; z-index: 90;
}
.bs-skip:focus { left: 12px; top: 12px; }

/* 灰桌面上的一张纸 */
.bs-sheet {
  max-width: var(--bs-max);
  margin: 0 auto;
  background: var(--bs-sheet);
  border-left: 1px solid var(--bs-edge);
  border-right: 1px solid var(--bs-edge);
  padding: 0 var(--bs-pad) 56px;
  min-height: 100vh;
}

/* ------------------------------------------------------------- 报头带 */

.bs-head {
  display: flex; align-items: center; gap: 20px;
  height: var(--bs-head-h);
}
.bs-brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.bs-brand__name {
  font-family: var(--bs-serif);
  font-size: 20px; letter-spacing: 0.01em; color: var(--bs-ink);
}
.bs-brand__tag { font-size: 11.5px; color: var(--bs-faint); }

.bs-head__date { font-family: var(--bs-mono); font-size: 11.5px; color: var(--bs-mute); }

.bs-search { position: relative; margin-left: auto; flex: none; width: 220px; }
.bs-search input {
  width: 100%; height: 26px; padding: 0 10px;
  background: transparent; color: var(--bs-ink);
  border: 1px solid var(--bs-ink); outline: none;
  font-size: 12px;
}
.bs-search input::placeholder { color: var(--bs-faint); }
.bs-search__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  max-height: 320px; overflow-y: auto;
  background: var(--bs-sheet);
  border: 1px solid var(--bs-ink);
}
.bs-search__item { display: block; padding: 9px 12px; border-bottom: 0.5px solid var(--bs-rule); }
.bs-search__item:last-child { border-bottom: 0; }
.bs-search__item:hover { background: var(--bs-sheet-2); }
.bs-search__title { display: block; font-size: 12.5px; color: var(--bs-ink); }
.bs-search__meta { display: block; margin-top: 3px; font-size: 11px; color: var(--bs-faint); }
.bs-search__empty { padding: 12px; font-size: 12px; color: var(--bs-faint); }

.bs-rule-3 { height: 3px; background: var(--bs-ink); }
.bs-rule-1 { height: 1px; background: var(--bs-ink); }

/* ------------------------------------------------------------- 分类条 */

.bs-cats {
  position: sticky; top: 0; z-index: 50;
  background: var(--bs-sheet);
  border-bottom: 1px solid var(--bs-ink);
}
/*
 * 分类条用 flex 等分而不是写死列数的 grid：
 * 原来写的是 repeat(5, 1fr)，但导航有 6 项（首页 + 5 个栏目），第 6 项被挤到第二行，
 * 整条看起来像坏掉了。改成 flex 之后加减栏目都不会再折行。
 */
.bs-cats__in {
  display: flex;
  height: var(--bs-cats-h);
}
.bs-cats__link {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--bs-ink);
  border-left: 0.5px solid var(--bs-rule);
}
.bs-cats__link:first-child { border-left: 0; }
.bs-cats__link:hover { background: var(--bs-sheet-2); }
.bs-cats__link[aria-current="page"] { color: var(--bs-accent); }
.bs-cats__link span { display: block; }

/* --------------------------------------------------------- 版块通用 */

.bs-sec { padding-top: 34px; }
.bs-sec + .bs-sec { border-top: 1px solid var(--bs-ink); }
.bs-sec--flush { border-top: 1px solid var(--bs-ink); }

.bs-label {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bs-ink); color: var(--bs-sheet);
  font-size: 11px; letter-spacing: 0.06em;
}
.bs-label--accent { background: var(--bs-accent); }

.bs-kicker {
  font-size: 11px; letter-spacing: 0.08em; color: var(--bs-accent);
  font-weight: 400;
}

.bs-more { font-size: 11.5px; color: var(--bs-accent); }
.bs-more:hover { text-decoration: underline; }

/* ------------------------------------------------------------- 头版 */

.bs-lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  padding-top: 22px;
}
.bs-lead__main { padding-right: 26px; }
.bs-lead__side {
  border-left: 1px solid var(--bs-ink);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
}

.bs-lead__title {
  margin-top: 12px;
  font-size: 40px; line-height: 1.16; letter-spacing: -0.02em;
  font-weight: 500; color: var(--bs-ink);
}
.bs-lead__title a:hover { color: var(--bs-accent); }
.bs-lead__sum {
  margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--bs-body);
  max-width: 46em;
}
.bs-lead__meta {
  margin-top: 12px; padding-top: 10px;
  border-top: 0.5px solid var(--bs-rule);
  font-size: 11.5px; color: var(--bs-faint);
}
.bs-lead__fig { margin-top: 14px; }
.bs-lead__fig img { width: 100%; height: auto; border: 0.5px solid var(--bs-rule); }
.bs-lead__cap { margin-top: 6px; font-size: 11px; color: var(--bs-faint); }

.bs-contents__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid var(--bs-ink); margin-bottom: 4px;
}
.bs-contents__item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px; padding: 10px 0;
  border-bottom: 0.5px solid var(--bs-rule);
}
.bs-contents__no { font-family: var(--bs-mono); font-size: 11px; color: var(--bs-accent); }
.bs-contents__title { font-size: 13px; line-height: 1.5; color: var(--bs-ink); }
.bs-contents__item:hover .bs-contents__title { color: var(--bs-accent); }
.bs-contents__meta { display: block; margin-top: 3px; font-size: 11px; color: var(--bs-faint); }

/* --------------------------------------------------- 四栏密排短讯 */

.bs-wire { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-wire__col {
  padding: 0 16px;
  border-left: 1px solid var(--bs-ink);
}
.bs-wire__col:first-child { border-left: 0; padding-left: 0; }
.bs-wire__col:last-child { padding-right: 0; }

.bs-wire__head {
  padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 0.5px solid var(--bs-rule);
  font-size: 11px; letter-spacing: 0.06em; color: var(--bs-accent);
}
.bs-wire__item { padding: 8px 0; }
.bs-wire__time {
  display: block; font-family: var(--bs-mono); font-size: 11px; color: var(--bs-faint);
}
.bs-wire__title { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--bs-body); }
.bs-wire__item:hover .bs-wire__title { color: var(--bs-ink); }

/* ------------------------------------------------------------- 广告 */

.bs-ad { padding: 22px 0 0; }
.bs-ad img { width: 100%; height: auto; }

/*
 * 头版侧栏竖位。
 * 紧接在「今日要目」之后，不要贴栏底——图高 300 时贴底会在要目和广告之间
 * 留出一个洞，而那块空白正是要补的位置。
 * 要目最后一条自带下分隔线，这里不再加线。
 */
.bs-ad--side {
  margin-top: 20px;
  padding-top: 0;
}
/* max-width 是兜底：万一替换的图比例异常，也不会把整栏撑变形 */
.bs-ad--side img {
  width: 100%; max-width: 460px; height: auto;
  border: 0.5px solid var(--bs-rule);
}

.bs-ad__hint {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  border: 1px dashed var(--bs-accent);
  color: var(--bs-accent); font-size: 12px;
  background: var(--bs-accent-soft);
}

/* ----------------------------------------------------------- 板块一 */

.bs-band1 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); }
.bs-band1 > * { padding: 0 20px; border-left: 1px solid var(--bs-ink); }
.bs-band1 > *:first-child { border-left: 0; padding-left: 0; }
.bs-band1 > *:last-child { padding-right: 0; }

.bs-pick__fig img { width: 100%; height: auto; border: 0.5px solid var(--bs-rule); }
.bs-pick__title { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--bs-ink); }
.bs-pick__title:hover { color: var(--bs-accent); }
.bs-pick__meta { display: block; margin-top: 5px; font-size: 11px; color: var(--bs-faint); }

.bs-feature__title {
  display: block; margin-top: 10px;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: var(--bs-ink);
}
.bs-feature__title:hover { color: var(--bs-accent); }
.bs-feature__sum { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--bs-mute); }

.bs-table { font-size: 12.5px; }
.bs-table thead th {
  padding: 7px 0; text-align: left; font-weight: 400;
  font-size: 11px; color: var(--bs-faint);
  border-bottom: 0.5px solid var(--bs-rule);
}
.bs-table th:not(:first-child), .bs-table td:not(:first-child) { text-align: right; }
.bs-table tbody td {
  padding: 7px 0; color: var(--bs-body);
  border-bottom: 0.5px solid var(--bs-rule);
  font-family: var(--bs-mono); font-size: 12px;
}
.bs-table tbody td:first-child { font-family: var(--bs-sans); font-size: 12.5px; }
.bs-table tbody tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------- 板块二 */

.bs-band2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bs-band2 > * { padding: 0 20px; border-left: 1px solid var(--bs-ink); }
.bs-band2 > *:first-child { border-left: 0; padding-left: 0; }
.bs-band2 > *:last-child { padding-right: 0; }
.bs-band2__item { display: block; padding: 9px 0; border-bottom: 0.5px solid var(--bs-rule); }
.bs-band2__item:last-child { border-bottom: 0; }
.bs-band2__title { display: block; font-size: 12.5px; line-height: 1.55; color: var(--bs-body); }
.bs-band2__item:hover .bs-band2__title { color: var(--bs-ink); }
.bs-band2__meta { display: block; margin-top: 3px; font-size: 11px; color: var(--bs-faint); }

/* --------------------------------------------------------- 行情数据条 */

.bs-quote { border-top: 3px solid var(--bs-ink); }
.bs-quote__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0 8px;
}
.bs-quote__title { font-size: 13px; color: var(--bs-ink); }
.bs-quote__src { font-size: 11px; color: var(--bs-faint); }
.bs-quote__table { font-size: 12.5px; }
.bs-quote__table thead th {
  padding: 0 0 7px; text-align: left; font-weight: 400;
  font-size: 11px; color: var(--bs-faint);
  border-bottom: 1px solid var(--bs-ink);
}
.bs-quote__table th:nth-child(2), .bs-quote__table td:nth-child(2),
.bs-quote__table th:nth-child(3), .bs-quote__table td:nth-child(3) { text-align: right; }
.bs-quote__table tbody td {
  padding: 7px 0; border-bottom: 0.5px solid var(--bs-rule);
  font-family: var(--bs-mono); font-size: 12px; color: var(--bs-body);
}
.bs-quote__table tbody td:first-child { font-family: var(--bs-sans); font-size: 12.5px; }
.bs-quote__table tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------- 页脚 */

.bs-foot {
  margin-top: 40px; padding-top: 18px;
  border-top: 3px solid var(--bs-ink);
}
.bs-foot__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px 28px;
}
.bs-foot__h { font-size: 11px; letter-spacing: 0.06em; color: var(--bs-faint); margin-bottom: 8px; }
.bs-foot__link { display: block; font-size: 12.5px; color: var(--bs-body); padding: 3px 0; }
.bs-foot__link:hover { color: var(--bs-accent); }
.bs-foot__legal {
  margin-top: 22px; padding-top: 14px;
  border-top: 0.5px solid var(--bs-rule);
  font-size: 11.5px; line-height: 1.8; color: var(--bs-faint);
  max-width: 68em;
}

/* ----------------------------------------------------------- 文章页 */

.bs-post { padding-top: 24px; }
.bs-post__head { max-width: 760px; margin: 0 auto; }
.bs-post__crumb { font-size: 11.5px; color: var(--bs-faint); }
.bs-post__crumb a:hover { color: var(--bs-accent); }
.bs-post__crumb span { margin: 0 5px; }

.bs-post__top {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; font-size: 11.5px; color: var(--bs-faint);
}
.bs-post__title {
  margin-top: 12px;
  font-size: 30px; line-height: 1.28; letter-spacing: -0.02em; color: var(--bs-ink);
}
.bs-post__byline { margin-top: 12px; font-size: 12px; color: var(--bs-mute); }
.bs-post__rule { height: 3px; background: var(--bs-ink); margin-top: 16px; }

.bs-post__body { max-width: 760px; margin: 0 auto; }

.bs-prose {
  margin-top: 26px;
  font-size: 14.5px; line-height: 1.9; color: var(--bs-body);
}
.bs-prose > * + * { margin-top: 18px; }
.bs-prose h2 {
  margin-top: 32px; padding-top: 14px;
  border-top: 1px solid var(--bs-ink);
  font-size: 18px; color: var(--bs-ink);
}
.bs-prose h3 { margin-top: 24px; font-size: 15.5px; color: var(--bs-ink); }
.bs-prose strong { color: var(--bs-ink); font-weight: 500; }
.bs-prose a { color: var(--bs-accent); text-decoration: underline; }

/* 首字下沉：报纸正文的标志性细节 */
.bs-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--bs-serif);
  font-size: 3.1em; line-height: 0.86;
  padding: 4px 8px 0 0;
  color: var(--bs-ink);
}

.bs-quote {
  margin: 26px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--bs-ink);
  font-size: 15px; line-height: 1.8; color: var(--bs-ink);
}
.bs-quote__cite { display: block; margin-top: 8px; font-size: 11.5px; color: var(--bs-faint); }

.bs-olist, .bs-ulist { padding-left: 4px; }
.bs-olist li, .bs-ulist li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 13.5px; }
.bs-ulist li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 1px; background: var(--bs-ink); }
.bs-olist { counter-reset: bs-ol; }
.bs-olist li { counter-increment: bs-ol; }
.bs-olist li::before {
  content: counter(bs-ol, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--bs-mono); font-size: 11px; color: var(--bs-accent);
}

.bs-data { margin: 26px 0; }
.bs-data caption { text-align: left; font-size: 11.5px; color: var(--bs-faint); padding-bottom: 8px; }
.bs-data th {
  padding: 8px 0; text-align: left; font-weight: 400;
  font-size: 11.5px; color: var(--bs-mute);
  border-top: 1px solid var(--bs-ink); border-bottom: 1px solid var(--bs-ink);
}
.bs-data th:not(:first-child), .bs-data td:not(:first-child) { text-align: right; }
.bs-data td {
  padding: 8px 0; font-size: 12.5px; color: var(--bs-body);
  border-bottom: 0.5px solid var(--bs-rule);
  font-family: var(--bs-mono);
}
.bs-data td:first-child { font-family: var(--bs-sans); font-size: 13px; }
.bs-data tbody tr:last-child td { border-bottom: 1px solid var(--bs-ink); }

.bs-figure { margin: 26px 0; }
.bs-figure img { width: 100%; border: 0.5px solid var(--bs-rule); }
.bs-figure figcaption { margin-top: 8px; font-size: 11.5px; color: var(--bs-faint); }

/* 文末双栏相关阅读 */
.bs-rel {
  margin-top: 34px; padding-top: 16px;
  border-top: 3px solid var(--bs-ink);
}
.bs-rel__head { font-size: 11px; letter-spacing: 0.08em; color: var(--bs-accent); }
.bs-rel__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}
.bs-rel__item { padding: 10px 20px; border-left: 1px solid var(--bs-ink); }
.bs-rel__item:first-child, .bs-rel__item:nth-child(2n+1) { border-left: 0; padding-left: 0; }
.bs-rel__title { display: block; font-size: 13px; line-height: 1.5; color: var(--bs-ink); }
.bs-rel__item:hover .bs-rel__title { color: var(--bs-accent); }
.bs-rel__meta { display: block; margin-top: 4px; font-size: 11px; color: var(--bs-faint); }

.bs-pager {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px; border-top: 1px solid var(--bs-ink);
}
.bs-pager__link { padding: 14px 20px 14px 0; }
.bs-pager__link--next {
  padding-left: 20px; padding-right: 0; text-align: right;
  border-left: 1px solid var(--bs-ink);
}
.bs-pager__label { font-size: 11px; color: var(--bs-faint); }
.bs-pager__title { display: block; margin-top: 5px; font-size: 13px; color: var(--bs-ink); }
.bs-pager__link:hover .bs-pager__title { color: var(--bs-accent); }

/* ----------------------------------------------------------- 栏目页 */

.bs-head2 { padding-top: 26px; }
.bs-head2__row { display: flex; align-items: baseline; gap: 12px; }
.bs-head2__title {
  font-size: 30px; letter-spacing: -0.02em; color: var(--bs-ink);
}
.bs-head2__n { font-family: var(--bs-mono); font-size: 11.5px; color: var(--bs-faint); }
.bs-head2__desc {
  margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--bs-mute);
  max-width: 52em;
}
.bs-head2__rule { height: 3px; background: var(--bs-ink); margin-top: 16px; }

.bs-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}
.bs-list__col { padding: 0 24px; border-left: 1px solid var(--bs-ink); }
.bs-list__col:first-child { border-left: 0; padding-left: 0; }
.bs-list__col:last-child { padding-right: 0; }

.bs-list__item { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 0.5px solid var(--bs-rule); }
.bs-list__item:last-child { border-bottom: 0; }
.bs-list__top { display: flex; align-items: baseline; gap: 10px; }
.bs-list__no { font-family: var(--bs-mono); font-size: 11px; color: var(--bs-accent); flex: none; }
.bs-list__title { flex: 1 1 auto; font-size: 14.5px; line-height: 1.45; color: var(--bs-ink); }
.bs-list__item:hover .bs-list__title { color: var(--bs-accent); }
.bs-list__date { flex: none; font-family: var(--bs-mono); font-size: 11px; color: var(--bs-faint); }
.bs-list__sum { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.65; color: var(--bs-mute); }

.bs-pagebar {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding-top: 12px;
  border-top: 1px solid var(--bs-ink);
  font-family: var(--bs-mono); font-size: 12px;
}
.bs-pagebar__item { color: var(--bs-faint); }
.bs-pagebar__item:hover { color: var(--bs-ink); }
.bs-pagebar__item.is-on { color: var(--bs-ink); }
.bs-pagebar__next { margin-left: auto; font-family: var(--bs-sans); font-size: 12px; color: var(--bs-accent); }

/* ============================================================ 断点 */

@media (max-width: 1080px) {
  :root { --bs-pad: 22px; }
  .bs-lead { grid-template-columns: minmax(0, 1fr); }
  .bs-lead__main { padding-right: 0; }
  .bs-lead__side {
    border-left: 0; padding-left: 0;
    margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--bs-ink);
  }
  .bs-lead__title { font-size: 32px; }
  .bs-band1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bs-band1 > *:nth-child(3) {
    grid-column: 1 / -1; border-left: 0; padding: 20px 0 0;
    margin-top: 20px; border-top: 1px solid var(--bs-ink);
  }
}

@media (max-width: 900px) {
  .bs-wire { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .bs-wire__col:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .bs-wire__col:nth-child(2n) { padding-right: 0; }
  .bs-wire__col:nth-child(n+3) { border-top: 1px solid var(--bs-ink); padding-top: 18px; }
  .bs-list { grid-template-columns: minmax(0, 1fr); }
  .bs-list__col { padding: 0; border-left: 0; }
  .bs-list__col + .bs-list__col { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bs-ink); }
}

@media (max-width: 720px) {
  :root { --bs-pad: 16px; --bs-head-h: 40px; }

  .bs-head { gap: 12px; }
  .bs-head__date { display: none; }
  .bs-search { width: 150px; }

  /* 分类条横向滚动，吸附对齐 */
  .bs-cats__in {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bs-cats__in::-webkit-scrollbar { display: none; }
  .bs-cats__link {
    flex: 0 0 auto; padding: 0 16px;
    scroll-snap-align: start;
    border-left: 0; border-right: 0.5px solid var(--bs-rule);
    white-space: nowrap;
  }
  .bs-cats__link:last-child { border-right: 0; }

  .bs-lead__title { font-size: 26px; }
  .bs-post__title { font-size: 23px; }
  .bs-band1, .bs-band2 { grid-template-columns: minmax(0, 1fr); }
  .bs-band1 > *, .bs-band2 > * {
    border-left: 0; padding: 0;
  }
  .bs-band1 > * + *, .bs-band2 > * + * {
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--bs-ink);
  }
  .bs-rel__grid { grid-template-columns: minmax(0, 1fr); }
  .bs-rel__item { border-left: 0; padding: 10px 0; }
  .bs-rel__item + .bs-rel__item { border-top: 0.5px solid var(--bs-rule); }
  .bs-pager { grid-template-columns: minmax(0, 1fr); }
  .bs-pager__link--next { padding-left: 0; text-align: left; border-left: 0; border-top: 1px solid var(--bs-ink); }
  .bs-prose { font-size: 14px; }
  .bs-prose > p:first-of-type::first-letter { font-size: 2.6em; }
}

@media (max-width: 520px) {
  .bs-brand__tag { display: none; }
  .bs-search { width: 118px; }
  .bs-lead__title { font-size: 23px; }
  .bs-head2__title { font-size: 24px; }
  .bs-quote__table, .bs-data, .bs-table { font-size: 12px; }
}
