/* ============================================================================
   3.4 模板化建站 · 首页结构族（blueprint）
   ----------------------------------------------------------------------------
   与 layouts.css 的分工：
     · layouts.css  —— 版式（layout）：页头 / 导航 / 区块头 / 卡片 / 页脚的**装饰**；
     · 本文件       —— 结构族（blueprint）：首页用哪些区块、区块内部的**排布**、
                       以及页面框架（容器宽度 / 区块间距 / 是否出血）。
   两者正交：同一个 layout 配不同 blueprint 应该是两个完全不同的站；
   同一个 blueprint 配不同 layout 应该一眼看出装饰风格不同。

   为什么需要这一层（改造原因）：
     此前 27 个版式渲染的是同一份 home.php，首页主体永远是
     「轮播 → 通知公告/政策解读 → 办事服务宫格 → 热点排行/猜您关注」这条流水线，
     换模板只换颜色深浅 → 用户反馈「风格还是变化不大」「省政府网站风格是线条，不大气」。
     现在结构由本文件 + app/Views/front/blocks/*.php 决定。

   契约（bin/layout_check.php 会拦）：
     · 每条含 .hero-slider 的规则都必须给**固定 height**，不得用 min-height
       （min-height 的权重高于断点，会把桌面高度整段漏进手机单列）；
     · 桌面高度 >320px 的，必须在 ≤900px 里另给一次高度；
     · 深色底 + 白字的可点击块必须显式写 :hover { color:#fff }，
       否则会被全局 `a:hover { color: var(--primary) }`（权重更高）盖成深蓝字压深蓝底。

   量化依据（2026-09-27 对 30+ 省级政府门户与 20+ 部门/区县站的调研）：
     容器 ~1200–1300px；区块间距 40–60px；模块标题 28–36px；色块大按钮高 60–80px；
     指标数字 32–40px；首屏全宽出血、高度约占屏 60–75vh。
   ============================================================================ */

/* ============================================================================
   一、页面框架：容器宽度与区块间距
   ============================================================================ */

body[data-bp-frame="wide"]    { --wrap: 1320px; }
body[data-bp-frame="normal"]  { --wrap: 1200px; }
body[data-bp-frame="compact"] { --wrap: 1120px; }
body[data-bp-frame="narrow"]  { --wrap: 1000px; }
/* 左栏导航框架：容器比 normal 略宽 —— 部门站的正文列被 244px 侧栏吃掉一块，
   留 1200px 会让正文只剩 930px（表格与公文正文容易换行过密）。
   实测部门站点（省发改/市场监管一类）正文列多在 950–1000px。 */
body[data-bp-frame="left-side"] { --wrap: 1240px; }

/* 区块间距：越"大气"的框架给越多留白（这是省级门户与部门站最直观的差别之一） */
body[data-bp-frame="wide"]    .section { padding: 44px 0 8px; }
body[data-bp-frame="normal"]  .section { padding: 38px 0 8px; }
body[data-bp-frame="compact"] .section { padding: 26px 0 6px; }
body[data-bp-frame="narrow"]  .section { padding: 46px 0 10px; }
body[data-bp-frame="left-side"] .section { padding: 32px 0 6px; }

/* `bp-flush` = 不套 .wrap 的通栏段，用于全宽出血的首屏 */
.bp-flush { padding: 0; margin: 0; }

/* ============================================================================
   二、首屏
   ============================================================================ */

/* ----- 巨幅横幅（banner / banner-entries）----- */
body[data-bp] .hero-slider.bp-hero--banner {
    height: 560px;
    border-radius: 0;
    background: #0d2540;
}
.hero-slider.bp-hero--banner .hero-slide { align-items: flex-end; }
.hero-slider.bp-hero--banner .hero-slide::after {
    /* 底部渐深：保证任何 banner 图上白字都可读，不依赖图片自身明暗 */
    background: linear-gradient(180deg, rgba(6, 18, 34, .30) 0%, rgba(6, 18, 34, .06) 38%, rgba(6, 18, 34, .80) 100%);
}
.hero-slider.bp-hero--banner .hero-content {
    max-width: 900px;
    /* 文案左边缘与容器对齐（而不是死板的 6%），通栏排版才不显得散 */
    padding-left: max(20px, calc((100% - var(--wrap)) / 2 + 16px));
    padding-right: 20px;
    padding-bottom: 72px;
}
.hero-slider.bp-hero--banner .hero-eyebrow { font-size: 14px; margin-bottom: 14px; opacity: .92; }
.hero-slider.bp-hero--banner .hero-title {
    font-size: 52px; line-height: 1.22; letter-spacing: 3px; font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.hero-slider.bp-hero--banner .hero-desc { font-size: 17px; margin-top: 18px; opacity: .94; }
.hero-slider.bp-hero--banner .hero-btn {
    margin-top: 24px; height: 46px; padding: 0 30px; font-size: 15.5px; font-weight: 600;
    background: var(--accent-deep); color: #fff; border-radius: var(--radius);
}
.hero-slider.bp-hero--banner .hero-btn:hover { background: #fff; color: var(--primary-dark); }
/* 分页条与文案左边缘对齐，随容器宽度走 */
.hero-slider.bp-hero--banner .hero-dots {
    left: max(20px, calc((100% - var(--wrap)) / 2 + 16px));
    bottom: 30px;
}

/* ----- 沉浸大图（immersive）----- */
body[data-bp] .hero-slider.bp-hero--immersive {
    height: 620px;
    border-radius: 0;
    background: #07131f;
}
.hero-slider.bp-hero--immersive .hero-slide { align-items: flex-end; }
.hero-slider.bp-hero--immersive .hero-slide::after {
    background: linear-gradient(180deg, rgba(4, 12, 22, .42) 0%, rgba(4, 12, 22, .10) 34%, rgba(4, 12, 22, .88) 100%);
}
.hero-slider.bp-hero--immersive .hero-content {
    max-width: 960px;
    padding-left: max(20px, calc((100% - var(--wrap)) / 2 + 16px));
    padding-bottom: 92px;
}
.hero-slider.bp-hero--immersive .hero-title {
    font-size: 54px; letter-spacing: 4px; font-weight: 800; line-height: 1.2;
}
.hero-slider.bp-hero--immersive .hero-dots { bottom: 40px; left: 50%; transform: translateX(-50%); }
.hero-slider.bp-hero--immersive .hero-dots i {
    width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .42);
}
.hero-slider.bp-hero--immersive .hero-dots i.active { width: 9px; background: #fff; }
.bp-scroll-hint {
    position: absolute; right: 28px; bottom: 30px; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
    animation: bpBob 2.1s ease-in-out infinite;
}
@keyframes bpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ----- 紧凑首屏（compact）：矮轮播 + 右侧通知公告 ----- */
.bp-compact-hero {
    display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 18px; align-items: stretch;
}
body[data-bp] .bp-compact-hero .hero-slider { height: 300px; border-radius: var(--radius); }
.bp-compact-notice { display: flex; flex-direction: column; margin: 0; }
.bp-compact-notice .panel-body { flex: 1; }
.bp-compact-notice .news-list li:last-child { border-bottom: none; }

/* ----- 部门站首屏（sidebar-hero）：主栏轮播 + 深色公告速览 ----- */
/* ⚠ `minmax(0, 2.2fr)` 这个值曾被一次批量替换弄坏成 `minmax(0, 2.minmax(0, 1fr))`
   （替换规则命中 `2.2fr` 里的 `2fr` 子串，把 `2.` 留在了外面）——
   嵌套 minmax 非法 ⇒ 浏览器**把整条 grid-template-columns 丢弃** ⇒ 本区块退化成单列，
   主栏轮播和公告速览上下叠起来。页面 HTTP 200、控制台干净、所有几何探针都在下游查不出来。
   2026-09-29 由 admin_layout_audit 的 ⑨「grid 声明能被浏览器解析」抓出。 */
.bp-dept-hero {
    display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 18px;
    align-items: stretch;                 /* 与 .bp-compact-hero 同一条契约：矮列由副列吸收余高，不能自己拉高 */
    margin-bottom: 22px;
}
body[data-bp] .bp-dept-hero .hero-slider { height: 320px; border-radius: var(--radius); }
.bp-dept-bulletin {
    display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
    color: #fff; box-shadow: var(--shadow);
}
.bp-db-head {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.bp-db-head h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.bp-db-head a { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .98); }
.bp-db-head a:hover { color: #fff; }
.bp-db-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.bp-db-list li { padding: 0; }
.bp-db-list a {
    display: flex; align-items: baseline; gap: 10px;
    padding: 11px 18px; color: #fff; font-size: 14px; line-height: 1.5;
}
.bp-db-list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bp-db-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-db-d { flex: none; font-size: 12px; color: rgba(255, 255, 255, .98); font-variant-numeric: tabular-nums; }
.bp-db-empty { padding: 14px 18px; color: rgba(255, 255, 255, .98); font-size: 13.5px; }

/* ----- 居中对称首屏（center）----- */
.bp-center-hero {
    padding: 56px 0 44px;
    background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
/* 居中大徽 = 国徽本身。原来是「蓝渐变圆角块 + 白色 i-government 图标 + 大阴影」——
   自造徽标，且衬底会把金色麦稻穗压掉（用户驳过：「政府 LOGO 都是国徽，且没有底纹背景」）。
   现在只负责尺寸，底纹/圆角/阴影全部去掉：国徽自带红金完整外轮廓，
   本区块底色是浅色（#f6f9fc→#fff），不需要任何衬底也能看清。 */
.bp-ch-emblem {
    width: 76px; height: 76px; margin: 0 auto 16px;
    display: grid; place-items: center;
}
.bp-ch-emblem img { width: 100%; height: 100%; display: block; object-fit: contain; }
.bp-ch-title { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--ink); }
.bp-ch-slogan { margin: 12px 0 26px; font-size: 15px; letter-spacing: 4px; color: var(--ink-2); }
.bp-ch-search {
    display: flex; align-items: center; gap: 10px;
    max-width: 680px; margin: 0 auto;
    background: #fff; border: 2px solid var(--primary-deep); border-radius: 999px;
    padding: 6px 6px 6px 20px; box-shadow: 0 10px 26px rgba(18, 38, 62, .1);
}
.bp-ch-search .icon { color: var(--primary-text); flex: none; }
.bp-ch-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: none;
    font-size: 15.5px; color: var(--ink); height: 42px;
}
.bp-ch-search button {
    flex: none; height: 42px; padding: 0 30px; border: 0; cursor: pointer;
    border-radius: 999px; background: var(--primary-deep); color: #fff;
    font-size: 15px; font-weight: 600;
}
.bp-ch-search button:hover { background: var(--primary-dark); color: #fff; }

/* ============================================================================
   三、入口色块（entries）
   ============================================================================ */

.bp-entrybar { margin-top: -46px; position: relative; z-index: 4; }

.bp-entries--trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bp-entry {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 26px; min-height: 108px;
    border-radius: var(--radius); color: #fff; box-shadow: 0 12px 30px rgba(9, 24, 44, .2);
    transition: transform .2s, box-shadow .2s;
}
.bp-entry:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 40px rgba(9, 24, 44, .26); }
.bp-entry-icon {
    flex: none; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; background: rgba(255, 255, 255, .18);
}
.bp-entry-icon .icon { width: 27px; height: 27px; fill: #fff; }
.bp-entry-text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bp-entry-text b { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.bp-entry-text small {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: rgba(255, 255, 255, .98);
}
.bp-entry:hover .bp-entry-text small { color: #fff; }

.bp-entries--five {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.bp-entry5 {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    font-size: 14.5px; font-weight: 600; color: var(--ink);
    transition: all .18s;
}
.bp-entry5:hover { border-color: var(--primary-deep); color: var(--primary-text); box-shadow: var(--shadow-sm); }
.bp-entry5-dot {
    flex: none; width: 9px; height: 9px; border-radius: 2px;
    background: var(--accent-deep); transform: rotate(45deg);
}
.bp-entry5-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================================
   四、政策直通车（finder）
   ============================================================================ */

.bp-finder {
    display: flex; flex-wrap: wrap; align-items: center; gap: 26px;
    padding: 30px 32px; border-radius: var(--radius);
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-deep) 62%, var(--accent-deep) 100%);
    color: #fff; box-shadow: 0 14px 36px rgba(9, 24, 44, .22);
}
.bp-finder-head { flex: 0 0 auto; }
.bp-finder-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.bp-finder-head p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .98); }
.bp-finder-form { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; }
.bp-finder-field { display: flex; align-items: center; gap: 8px; }
.bp-finder-field > span { font-size: 14px; color: rgba(255, 255, 255, .9); flex: none; }
.bp-finder-field select,
.bp-finder-field input {
    height: 42px; border: 0; border-radius: 8px; padding: 0 14px;
    font-size: 14.5px; color: var(--ink); background: #fff; outline: 0;
}
.bp-finder-field--kw input { width: 260px; }
.bp-finder-btn {
    height: 42px; padding: 0 24px; border: 0; cursor: pointer; border-radius: 8px;
    background: var(--accent-deep); color: #fff; font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px;
}
.bp-finder-btn:hover { background: #fff; color: var(--primary-dark); }

/* ============================================================================
   五、栏目组：三栏 / 四栏
   ============================================================================ */

.bp-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.bp-tri-col { display: flex; flex-direction: column; }
.bp-tri-col .panel-body { flex: 1; }

.bp-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bp-quad-col { display: flex; flex-direction: column; }
.bp-quad-col .panel-body { flex: 1; }

/* ============================================================================
   六、要闻
   ============================================================================ */

/* ----- 大图主导（headline）----- */
.bp-headline { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.bp-hl-main { display: block; border-radius: var(--radius); overflow: hidden; }
.bp-hl-media {
    position: relative; display: block; height: 340px; overflow: hidden;
    border-radius: var(--radius);
}
.bp-hl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bp-hl-main:hover .bp-hl-media img { transform: scale(1.045); }
.bp-hl-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 18, 34, .06) 30%, rgba(6, 18, 34, .84) 100%);
}
.bp-hl-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; color: #fff; z-index: 2; }
.bp-hl-tag {
    display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px;
    background: var(--accent-deep); color: #fff; font-size: 12.5px; font-weight: 600;
}
.bp-hl-title { display: block; font-size: 25px; font-weight: 700; line-height: 1.42; letter-spacing: .5px; }
.bp-hl-sum { display: block; margin-top: 10px; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .98); }
.bp-hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bp-hl-list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.bp-hl-list li:last-child { border-bottom: none; }
.bp-hl-list a {
    flex: 1; min-width: 0; font-size: 15px; color: var(--ink); line-height: 1.55;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bp-hl-list a:hover { color: var(--primary-text); }

/* ----- 密排多栏（dense）----- */
/* 栏数由视图给出（`--bp-dense-cols`），**不写死 3**：
   `array_chunk` 从不产出空块，4 条按 ceil(4/3)=2 分组只得到 2 栏，
   写死 repeat(3,…) 就会让第 3 栏整栏是空的 —— 实测 6 个站（疾控/公安/卫健/应急/双城/宁安）
   容器 1048~1320px、右侧 1/3 连续留白。窄屏另有 `--bp-dense-cols-md`（= min(N,2)），
   因为 ≤1000px 固定两栏时，N=1 的站同样会空出一栏。 */
.bp-dense { display: grid; grid-template-columns: repeat(var(--bp-dense-cols, 3), minmax(0, 1fr)); gap: 0 26px; }
/* `min-width: 0` 必须显式给：栅格子项默认 `min-width: auto`，
   而列里的 `.nl-title` 是 `white-space: nowrap`（省略号靠 overflow 裁），
   它的 max-content 会成为栅格轨道的**下限** → 320px 下整块横溢 84px（实测疾控/平和）。
   把下限拆掉，标题才会退化成省略号而不是把页面撑宽。 */
.bp-dense-col { list-style: none; margin: 0; padding: 0; min-width: 0; }
.bp-dense-col li {
    display: flex; align-items: baseline; gap: 9px;
    padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.bp-dense-col li:last-child { border-bottom: none; }
.bp-dense-col .nl-title { font-size: 14.5px; }

/* ----- 图文马赛克（mosaic）----- */
.bp-mosaic { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.bp-mo-big {
    position: relative; display: block; min-height: 380px; border-radius: var(--radius); overflow: hidden;
}
.bp-mo-big img, .bp-mo-sm img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.bp-mo-big:hover img, .bp-mo-sm:hover img { transform: scale(1.05); }
.bp-mo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 34, .05) 34%, rgba(6, 18, 34, .82) 100%); }
.bp-mo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; color: #fff; z-index: 2; }
.bp-mo-tag {
    display: inline-block; margin-bottom: 10px; padding: 2px 11px; border-radius: 999px;
    background: rgba(0, 0, 0, .42); color: #fff; font-size: 12px; backdrop-filter: blur(3px);
}
.bp-mo-title { display: block; font-size: 22px; font-weight: 700; line-height: 1.45; }
.bp-mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 18px; }
.bp-mo-sm { position: relative; display: block; min-height: 181px; border-radius: var(--radius); overflow: hidden; }
.bp-mo-title-sm {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; z-index: 2;
    color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.5;
}

/* ----- 多级来源标签页（tabs）----- */
.bp-tabs { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.bp-tabs-head {
    display: flex; align-items: center; gap: 4px; padding: 10px 16px;
    border-bottom: 1px solid var(--line); background: #f7fafd; flex-wrap: wrap;
}
.bp-tab {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 18px; border: 0; cursor: pointer; background: none;
    border-radius: 8px; font-size: 15px; color: var(--ink-2); font-weight: 500;
    transition: all .16s;
}
.bp-tab:hover { background: #eef3f9; color: var(--primary-text); }
.bp-tab.on { background: var(--primary-deep); color: #fff; font-weight: 600; }
.bp-tab.on:hover { background: var(--primary-deep); color: #fff; }
.bp-tabs-head .sec-more { margin-left: auto; }
.bp-tab-pane { display: none; padding: 6px 22px 14px; }
.bp-tab-pane.on { display: block; }
.bp-tab-list { list-style: none; margin: 0; padding: 0; }
.bp-tab-list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.bp-tab-list li:last-child { border-bottom: none; }
.bp-tab-list .nl-title { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- 杂志式（magazine）----- */
.bp-mag-head { border-bottom: 3px double var(--ink); }
.bp-mag-lead { display: block; padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.bp-mag-kicker { display: inline-block; margin-bottom: 10px; font-size: 13px; letter-spacing: 3px; color: var(--accent-text); font-weight: 600; }
.bp-mag-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.34; letter-spacing: 1px; color: var(--ink); }
.bp-mag-lead:hover .bp-mag-title { color: var(--primary-text); }
.bp-mag-sum { margin: 14px 0 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.bp-mag-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 18px; }
.bp-mag-col { list-style: none; margin: 0; padding: 0; }
.bp-mag-col li { padding: 11px 0; border-bottom: 1px dotted var(--line); }
.bp-mag-col li:last-child { border-bottom: none; }
.bp-mag-col a { font-size: 15px; color: var(--ink); line-height: 1.6; }
.bp-mag-col a:hover { color: var(--primary-text); }

/* ============================================================================
   七、办事服务
   ============================================================================ */

/* ----- 服务大厅（hall）----- */
.bp-hall {
    padding: 46px 0 10px;
    background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.bp-hall-head { text-align: center; margin-bottom: 22px; }
.bp-hall-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.bp-hall-head p { margin: 0; font-size: 14px; color: var(--ink-2); }
.bp-hall-search {
    display: flex; align-items: center; gap: 10px;
    max-width: 760px; margin: 0 auto 28px;
    background: #fff; border: 2px solid var(--primary-deep); border-radius: 999px;
    padding: 6px 6px 6px 22px; box-shadow: 0 12px 30px rgba(18, 38, 62, .12);
}
.bp-hall-search .icon { color: var(--primary-text); flex: none; }
.bp-hall-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: none;
    height: 44px; font-size: 16px; color: var(--ink);
}
.bp-hall-search button {
    flex: none; height: 44px; padding: 0 34px; border: 0; cursor: pointer;
    border-radius: 999px; background: var(--primary-deep); color: #fff;
    font-size: 16px; font-weight: 600;
}
.bp-hall-search button:hover { background: var(--primary-dark); color: #fff; }
.bp-hall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bp-hall-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 22px 14px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--line); text-align: center; transition: all .18s;
}
.bp-hall-item:hover { border-color: var(--primary-deep); box-shadow: 0 12px 28px rgba(18, 38, 62, .12); transform: translateY(-2px); }
.bp-hall-icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
}
.bp-hall-icon .icon { width: 27px; height: 27px; fill: #fff; }
.bp-hall-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.bp-hall-item:hover .bp-hall-name { color: var(--primary-text); }
.bp-hall-meta { font-size: 12.5px; color: var(--ink-3); }

/* ----- 政务服务：个人 / 法人切换 + 自动滚动事项带（tabs）-----
   对标黑龙江省政府网站首页「政务服务」：页签按服务对象分栏，下面是自动横向滚动的事项带。

   ⚠ 滚动轨道的数学（改之前先算一遍）：
     `.bp-gt-item` 用 **margin-right** 而不是 `gap` 作为间距，`.bp-gt-set`/`.bp-gt-track` 一律 `gap:0`。
     这样「两份副本」的轨道总宽恰好 = 2 × 单份宽，`translateX(-50%)` 就是**精确**一份宽，接缝无跳变。
     若改用 `gap`，轨道宽 = 2S + G，`-50%` = S + G/2 —— 每圈都会差半格，滚动到接缝处"咯噔"一下。 */
.bp-gt {
    padding: 46px 0 30px;
    background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.bp-gt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.bp-gt-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.bp-gt-head p { margin: 0; font-size: 14px; color: var(--ink-2); }
.bp-gt-more { flex: none; font-size: 14px; color: var(--primary-text); white-space: nowrap; }
.bp-gt-more b { font-weight: 400; }
.bp-gt-more:hover { color: var(--primary-dark); }

.bp-gt-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 6px 6px 18px; }
.bp-gt-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px 14px; }
.bp-gt-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink-2); font-size: 15.5px; cursor: pointer; transition: all .18s;
}
.bp-gt-tab .icon { color: var(--primary-text); }
.bp-gt-tab b { font-size: 13px; font-weight: 600; opacity: .85; }
.bp-gt-tab:hover { border-color: var(--primary-deep); color: var(--primary-text); }
/* 选中态：`-deep` 作**底**、白字压上去（≥4.6:1）。反过来（`-deep` 当字色）在浅底上会掉到 4.2~4.5。 */
.bp-gt-tab.active { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; font-weight: 600; }
.bp-gt-tab.active .icon { color: #fff; }

/* 事项带：`overflow:hidden` 兼作「横向溢出保险丝」——轨道是 2 倍宽的，不剪掉会撑出页面横向滚动条 */
.bp-gt-rail { position: relative; overflow: hidden; padding: 0 10px; }
.bp-gt-rail::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 56px; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
}
.bp-gt-track {
    display: flex; width: max-content;
    animation-name: bp-gt-scroll; animation-timing-function: linear; animation-iteration-count: infinite;
}
.bp-gt-set { display: flex; }
.bp-gt-item {
    flex: none; width: 212px; margin-right: 14px; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .18s;
}
.bp-gt-item:hover { border-color: var(--primary-deep); box-shadow: 0 12px 28px rgba(18, 38, 62, .12); transform: translateY(-2px); }
.bp-gt-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.bp-gt-ic .icon { width: 22px; height: 22px; fill: #fff; }
.bp-gt-name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; min-height: 42px; }
.bp-gt-item:hover .bp-gt-name { color: var(--primary-text); }
.bp-gt-dept { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-gt-time { font-size: 12.5px; color: var(--ink-3); }
.bp-gt-time b { color: var(--primary-text); font-weight: 600; }

@keyframes bp-gt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 鼠标悬停即暂停：想细看某一条时不必去点按钮 */
.bp-gt-rail:hover .bp-gt-track { animation-play-state: paused; }
/* 显式暂停（WCAG 2.2.2 要求的「暂停手段」）。按钮在页签行右端，一次管住本区块的全部滚动带 */
.bp-gt-rail.is-paused .bp-gt-track { animation-play-state: paused; }
.bp-gt-toggle {
    margin-left: auto; flex: none;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: #fff;
    color: var(--primary-text); cursor: pointer; transition: all .18s;
}
.bp-gt-toggle:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }

/* 事项不足 6 条时不滚动，退回静态宫格（"滚动"三条内容只会让人觉得页面在抽搐） */
.bp-gt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 10px; }
.bp-gt-grid .bp-gt-item { width: auto; margin-right: 0; }

/* 系统级「减少动态效果」：默认不动，改为可手动横滑（并把重复副本摘掉，避免看到两份） */
@media (prefers-reduced-motion: reduce) {
    .bp-gt-track { animation: none !important; }
    .bp-gt-set[aria-hidden="true"] { display: none; }
    .bp-gt-rail { overflow-x: auto; }
    .bp-gt-rail::after { background: none; }
    .bp-gt-toggle { display: none; }
}

/* ----- 双入口（duo：个人 / 法人）----- */
.bp-svcduo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bp-svcduo-block { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.bp-svcduo-head {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff;
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-deep));
}
.bp-svcduo--biz .bp-svcduo-head {
    background: linear-gradient(120deg, var(--accent-dark), var(--accent-deep));
}
.bp-svcduo-icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; background: rgba(255, 255, 255, .18);
}
.bp-svcduo-icon .icon { width: 25px; height: 25px; fill: #fff; }
.bp-svcduo-head b { display: block; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.bp-svcduo-head small { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .98); }
.bp-svcduo-more {
    margin-left: auto; flex: none; font-size: 13px; color: #fff;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16);
}
.bp-svcduo-more:hover { background: #fff; color: var(--primary-dark); }
.bp-svcduo-list { padding: 10px 22px 16px; }
.bp-svcduo-list a {
    display: flex; align-items: baseline; gap: 10px;
    padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.bp-svcduo-list a:last-child { border-bottom: none; }
.bp-sd-n { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-svcduo-list a:hover .bp-sd-n { color: var(--primary-text); }
.bp-sd-h { flex: none; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ----- 列表（list）----- */
.bp-svclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.bp-svclist-col { list-style: none; margin: 0; padding: 0; }
.bp-svclist-col li { border-bottom: 1px dashed var(--line); }
.bp-svclist-col li:last-child { border-bottom: none; }
.bp-svclist-a { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.bp-svclist-a .icon { color: var(--primary-text); flex: none; }
.bp-svclist-n { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-svclist-a:hover .bp-svclist-n { color: var(--primary-text); }
.bp-svclist-d { flex: none; font-size: 12.5px; color: var(--ink-3); }
/* 第三列的两种取值必须**同宽右对齐**，否则同一列里「省疾病预防控制中心」与「即办」
   宽度差 5 倍，右侧的办理量参差不齐 —— 条目就没有「左右对齐撑满」的观感。
   118px 够放「承诺时限 15个工作日」（4 + 6 字 @12.5px ≈ 108px）。 */
.bp-svclist-d, .bp-svclist-t { min-width: 118px; text-align: right; }
.bp-svclist-t { flex: none; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* 值用主色加重：一行里「事项名 / 时限 / 办理量」三级信息要能一眼分开
   （--primary-text 是按 6.0:1 算出来的，可以当文字色；--primary-deep 只能当底）。 */
.bp-svclist-t b { color: var(--primary-text); font-weight: 600; }
.bp-svclist-h { flex: none; width: 62px; text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ----- 主题场景（themes）----- */
.bp-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bp-theme { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bp-theme-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bp-theme-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-deep); transform: rotate(45deg); }
.bp-theme-head b { font-size: 16.5px; font-weight: 700; color: var(--primary-dark); }
.bp-theme-list { list-style: none; margin: 10px 0 0; padding: 0; }
.bp-theme-list li { padding: 8px 0; }
.bp-theme-list a { font-size: 14.5px; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-theme-list a:hover { color: var(--primary-text); }

/* ============================================================================
   八、数据发布
   ============================================================================ */

.bp-data-cards { padding: 40px 0 8px; }
.bp-dc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bp-dc {
    display: block; padding: 22px 24px; border-radius: var(--radius);
    background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary-deep) 70%, var(--accent-deep) 140%);
    color: #fff; box-shadow: 0 12px 30px rgba(9, 24, 44, .2);
    transition: transform .2s, box-shadow .2s;
}
.bp-dc:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 40px rgba(9, 24, 44, .26); }
.bp-dc-label { font-size: 13.5px; color: rgba(255, 255, 255, .98); }
.bp-dc-value { margin-top: 8px; font-size: 36px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bp-dc-unit { margin-left: 4px; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .98); }
.bp-dc-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bp-dc-trend { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
/* 增减标签原来是「半透明白胶囊 + 浅红/浅绿字」：卡片底本身就是
   linear-gradient(140deg, primary-dark, primary-deep, accent-deep) 的中深色调，
   浅红 #ffd9dc 落在偏亮的色停上只有 2.78:1、浅绿 #c9f0d8 只有 2.90:1（真浏览器实测）。
   改为「实心浅底 + 深字」，既保住涨红跌绿的语义，又稳定在 7:1 以上。 */
.bp-dc-trend.up { background: #ffe2e4; color: #8c1f26; font-weight: 600; }
.bp-dc-trend.down { background: #d9f4e4; color: #125b3a; font-weight: 600; }
.bp-dc-date { font-size: 12px; color: rgba(255, 255, 255, .98); font-variant-numeric: tabular-nums; }

/* ----- 趋势图（chart）----- */
.bp-chart .panel-head { justify-content: space-between; }
.bp-chart-unit { font-size: 12.5px; color: var(--ink-3); }
.bp-chart-wrap { overflow-x: auto; }
.bp-chart-svg { display: block; width: 100%; height: 210px; }
.bp-chart-svg .bp-bar { fill: var(--primary-deep); opacity: .88; }
.bp-chart-svg .bp-bar:hover { fill: var(--accent-deep); opacity: 1; }
.bp-chart-axis {
    display: flex; margin-top: 8px; min-width: 100%;
}
.bp-chart-axis span {
    flex: 1; text-align: center; font-size: 12px; color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================================
   九、专题 / 排行 / 机构 / 下级站点
   ============================================================================ */

.bp-spmosaic { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.bp-spm-main {
    position: relative; display: flex; align-items: flex-end; min-height: 240px;
    border-radius: var(--radius); overflow: hidden; padding: 26px 28px;
    color: #fff; box-shadow: var(--shadow-sm);
}
.bp-spm-body b { display: block; font-size: 23px; font-weight: 700; line-height: 1.4; }
.bp-spm-body small { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .98); }
.bp-spm-main:hover, .bp-spm-sm:hover { color: #fff; }
.bp-spm-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.bp-spm-sm {
    display: flex; align-items: flex-end; padding: 18px 20px;
    border-radius: var(--radius); color: #fff; min-height: 70px;
    transition: transform .18s;
}
.bp-spm-sm:hover { transform: translateY(-2px); color: #fff; }
.bp-spm-sm b { font-size: 15.5px; font-weight: 600; line-height: 1.45; }

.bp-rank-single li { padding: 12px 0; }

.bp-profile .panel-body { padding: 22px 24px; }
.bp-profile-intro {
    margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--accent-deep);
    font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}
.bp-profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bp-profile-item {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line);
    font-size: 14.5px; color: var(--ink); transition: all .16s;
}
.bp-profile-item:hover { border-color: var(--primary-deep); color: var(--primary-text); background: #f7fafd; }
.bp-profile-ic {
    flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--primary-deep);
}
.bp-profile-ic .icon { fill: #fff; }
.bp-profile-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bp-profile-ar { flex: none; color: var(--ink-3); }
.bp-profile-item:hover .bp-profile-ar { color: var(--primary-text); }

.bp-districts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bp-dist {
    display: block; padding: 12px 10px; text-align: center;
    border-radius: 8px; border: 1px solid var(--line); background: #fbfcfe;
    font-size: 14px; color: var(--ink-2); transition: all .16s;
}
.bp-dist:hover { border-color: var(--primary-deep); background: var(--primary-deep); color: #fff; }
.bp-dist-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================================
   十、侧栏框架（left-side）：部门站与区县站的「左栏目导航 + 右内容」
   ============================================================================ */

.bp-leftside { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 26px; align-items: start; }
/* 子块自带 .wrap，这里把它拆掉，否则容器宽度会被压两层、左右还会多一圈内边距 */
.bp-main .wrap { max-width: none; padding: 0; }
.bp-main .bp-flush { margin: 0; }

.bp-aside { position: sticky; top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.bp-aside-head {
    display: flex; align-items: center; gap: 8px; padding: 14px 18px;
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-deep));
    color: #fff; font-size: 15.5px; font-weight: 600; letter-spacing: 1px;
}
.bp-aside-head .icon { fill: #fff; }
.bp-aside-nav { padding: 6px 0; }
.bp-aside-group { border-bottom: 1px dashed var(--line); }
.bp-aside-group:last-child { border-bottom: none; }
.bp-aside-link {
    display: block; padding: 12px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.bp-aside-link:hover { color: var(--primary-text); background: #f7fafd; }
.bp-aside-sub { padding: 0 0 8px; }
.bp-aside-sub a {
    display: block; padding: 7px 18px 7px 30px; font-size: 13.8px; color: var(--ink-2);
    position: relative;
}
.bp-aside-sub a::before {
    content: ''; position: absolute; left: 18px; top: 50%; margin-top: -2px;
    width: 5px; height: 5px; border-radius: 1px; background: var(--accent-deep); transform: rotate(45deg);
}
.bp-aside-sub a:hover { color: var(--primary-text); background: #f7fafd; }
.bp-aside-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: #fafcfe; }
.bp-aside-cta {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; border-radius: 8px; background: var(--primary-deep); color: #fff;
    font-size: 14.5px; font-weight: 600;
}
.bp-aside-cta:hover { background: var(--primary-dark); color: #fff; }
.bp-aside-cta .icon { fill: #fff; }

/* ============================================================================
   十一、响应式：结构收敛
   ----------------------------------------------------------------------------
   收敛顺序统一为「4 → 2 → 1」或「3 → 1」，避免出现"3 栏收到 2 栏后中间空一格"
   这种栅格半塌的形态（那是复用旧版时最常被截图指出的一类问题）。
   ============================================================================ */

@media (max-width: 1180px) {
    .bp-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-districts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bp-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
    .bp-leftside { grid-template-columns: minmax(0, 1fr); }
    .bp-aside { position: static; }
    .bp-dense { grid-template-columns: repeat(var(--bp-dense-cols-md, 2), minmax(0, 1fr)); }
    .bp-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-hall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-gt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    /* 桌面高度 >320px 的首屏必须在这里另给一次高度：
       `.hero-slider.bp-hero--*` 的权重高于 front.css 的 900px 断点，
       不覆盖就会把 560/620px 的桌面高度整段漏进手机单列。 */
    body[data-bp] .hero-slider.bp-hero--banner    { height: 300px; }
    body[data-bp] .hero-slider.bp-hero--immersive { height: 300px; }

    .hero-slider.bp-hero--banner .hero-title    { font-size: 30px; letter-spacing: 1px; }
    .hero-slider.bp-hero--immersive .hero-title { font-size: 30px; letter-spacing: 1px; }
    .hero-slider.bp-hero--banner .hero-content,
    .hero-slider.bp-hero--immersive .hero-content { padding-bottom: 56px; }
    .hero-slider.bp-hero--banner .hero-dots { bottom: 18px; }
    .bp-scroll-hint { display: none; }

    .bp-compact-hero { grid-template-columns: minmax(0, 1fr); }
    body[data-bp] .bp-compact-hero .hero-slider { height: 240px; }
    body[data-bp] .bp-dept-hero { grid-template-columns: minmax(0, 1fr); }
    body[data-bp] .bp-dept-hero .hero-slider { height: 240px; }

    .bp-headline { grid-template-columns: minmax(0, 1fr); }
    .bp-hl-media { height: 260px; }
    .bp-mosaic { grid-template-columns: minmax(0, 1fr); }
    .bp-mo-big { min-height: 260px; }
    .bp-mo-sm { min-height: 150px; }
    .bp-spmosaic { grid-template-columns: minmax(0, 1fr); }
    .bp-spm-main { min-height: 200px; }

    .bp-tri { grid-template-columns: minmax(0, 1fr); }
    .bp-svcduo { grid-template-columns: minmax(0, 1fr); }
    .bp-svclist { grid-template-columns: minmax(0, 1fr); }
    .bp-mag-cols { grid-template-columns: minmax(0, 1fr); }
    .bp-mag-title { font-size: 24px; }

    .bp-entries--trio { grid-template-columns: minmax(0, 1fr); }
    .bp-entries--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-entrybar { margin-top: -26px; }

    .bp-ch-title { font-size: 28px; letter-spacing: 4px; }
    .bp-center-hero { padding: 36px 0 30px; }
    .bp-hall-head h2 { font-size: 22px; }
    .bp-hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-gt-head h2 { font-size: 22px; letter-spacing: 1px; }
    .bp-gt-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .bp-gt-item { width: 180px; margin-right: 12px; }
    .bp-gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* 页签收窄一点，让「两个页签 + 暂停键」在 390px 上仍排成一行 ——
       不收窄时它会折成「个人服务 / 法人服务 + 暂停键」两行，暂停键孤零零挂在第二个页签旁边 */
    .bp-gt-tab { padding: 9px 18px; font-size: 14.5px; }
    .bp-finder { padding: 22px; gap: 16px; }
    .bp-finder-form { justify-content: flex-start; }
    .bp-finder-field--kw input { width: 100%; }
    .bp-finder-field--kw { flex: 1 1 100%; }
    /* `.bp-finder-head` 是 `flex: 0 0 auto`（明令不许收缩），它的 flex 基准宽因此是
       **max-content** —— 那句副标题整行不折的宽度 ≈ 324px。320px 视口下容器装不下、
       它又不肯收缩，于是整块横溢 29px（实测 scrollWidth 349）。
       这个区块此前**没有任何结构族用过**（finder__policy 是条死视图），
       2026-09-29 被 portal-gilded 启用后才第一次在真浏览器里暴露 ——
       390px 及以上全部正常，只有 320px 中招，属于最容易漏掉的一档。
       放宽为可收缩 + min-width:0 即可：宽度够时行为不变，不够时才折行。 */
    .bp-finder-head { flex: 0 1 auto; min-width: 0; }
    .bp-dc-value { font-size: 30px; }
    .bp-ch-tabs-head { padding: 8px 12px; }
    .bp-districts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .bp-dense { grid-template-columns: minmax(0, 1fr); }
    /* 窄屏一行只剩 ~288px：图标 17 + 时限列 118 + 办理量 62 之后，事项名只剩 ~60px
       （约 4 个字），再显示时限列等于把事项名挤成一个省略号。
       560px 以下只留「事项名 + 办理量」，时限与部门在明细页仍可看到。 */
    .bp-svclist-d, .bp-svclist-t { display: none; }
    .bp-themes { grid-template-columns: minmax(0, 1fr); }
    .bp-dc-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-districts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-profile-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-entries--five { grid-template-columns: minmax(0, 1fr); }
    .bp-ch-search, .bp-hall-search { flex-wrap: wrap; padding: 10px; border-radius: var(--radius); }
    .bp-ch-search input, .bp-hall-search input { width: 100%; flex: 1 1 100%; }
    .bp-ch-search button, .bp-hall-search button { flex: 1 1 100%; }
    .bp-hl-title { font-size: 20px; }
    .bp-mo-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-mo-sm { min-height: 130px; }
    .bp-tabs-head { overflow-x: auto; flex-wrap: nowrap; }
    .bp-tab { flex: none; padding: 0 14px; font-size: 14px; }
}

/* 移动优先 / 无障碍衍生版式的结构也一并收敛（它们只叠加专项样式，骨架跟随基础版式） */
body[data-layout-flavor="mobile"] .bp-tri,
body[data-layout-flavor="mobile"] .bp-quad,
body[data-layout-flavor="mobile"] .bp-svcduo,
body[data-layout-flavor="mobile"] .bp-mosaic,
body[data-layout-flavor="mobile"] .bp-spmosaic,
body[data-layout-flavor="mobile"] .bp-leftside,
body[data-layout-flavor="mobile"] .bp-headline,
body[data-layout-flavor="mobile"] .bp-themes,
body[data-layout-flavor="mobile"] .bp-dense { grid-template-columns: minmax(0, 1fr); }
body[data-layout-flavor="mobile"] .bp-entries--trio { grid-template-columns: minmax(0, 1fr); }
body[data-layout-flavor="mobile"] .bp-entries--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-layout-flavor="mobile"] .bp-aside { position: static; }

/* a11y：深色底上的白字在悬停时也不能被全局 a:hover 盖掉（权重更高的那条规则） */
.bp-entry:hover, .bp-dc:hover, .bp-spm-main:hover, .bp-spm-sm:hover,
.bp-dist:hover, .bp-svcduo-more:hover, .bp-db-list a:hover { color: #fff; }

/* ==========================================================================================
   十、新增内容块变体（2026-09-28）
   ------------------------------------------------------------------------------------------
   为什么要加这一批：`bin/inner_shape_fingerprint.mjs` 量出**骨架级**的重复 ——
     notice  变体只有 3 种，却在在用结构族里被用了 25 次：duo 17 / tri 6 / quad 2
     service 变体只有 3 种被用到：grid 13 / hall 7 / list 6
     data    变体只有 2 种：strip 10 / cards 5
   也就是说：**27 个站里，17 个站的「通知公告」是同一张两栏白卡图，13 个站的
   「办事服务」是同一张四列宫格图**。用户看到的「很多子站还是样式重复」指的就是这个 ——
   上一轮「内容块形制层」改的是砖的形状（圆角/边框/底色），砖怎么摆没变。
   这一批补的是**摆法**：主副分栏 / 公告板表格 / 时间轴 / 主推+宫格 / 指南速查表 /
   仪表盘 / 指标台账。加完再把在用结构族重新分配到这 6+7+4 种摆法上。

   新变体一律用**独立类名**（.bp-asym / .bp-board / .bp-tl / .bp-spot / .bp-quick /
   .bp-gauge / .bp-ledger），不和 .panel / .sec-title 这些共享原子抢选择器 ——
   于是它们天然不受 layouts.css 的版式定制影响，也不会被形制层的 :where() 降权拆开。
   ========================================================================================== */

/* ----- 栏目组 · 非对称主副栏（asym）----- */
/* 注意：**不要**给 .bp-asym 加 align-items:start。
   实测（city-bj，1440px）：主栏内容只有 225px 高、副栏 367px，start 会让主栏
   提前结束，主栏 panel 下沿与副栏底部差 142px —— 屏幕上就是"左边矮一截、下面空一片"。
   默认 stretch 让主栏 panel 撑满行高，空白落在 panel 内部（有边框包住）才不会看着像坏了。 */
.bp-asym { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; }
.bp-asym-main { display: flex; flex-direction: column; }
.bp-asym-main .panel-body { flex: 1; }
.bp-asym-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.bp-asym-list li { border-bottom: 1px dashed var(--line); }
.bp-asym-list li:nth-last-child(-n+2) { border-bottom: none; }
.bp-asym-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.bp-asym-date {
    flex: none; width: 50px; height: 50px; border-radius: 3px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--primary-wash); border-left: 3px solid var(--primary-deep);
    /* 浅色底 → 三级文字会掉到 4.4，本块内统一降级为二级（详见形制层注释） */
    --ink-3: var(--ink-2);
}
.bp-asym-date b { font-size: 19px; font-weight: 700; color: var(--primary-text, var(--primary-deep)); line-height: 1.05; font-variant-numeric: tabular-nums; }
.bp-asym-date i { font-style: normal; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bp-asym-title { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.bp-asym-row:hover .bp-asym-title { color: var(--primary-text, var(--primary-deep)); }
.bp-asym-side { display: flex; flex-direction: column; gap: 20px; }
.bp-asym-mini { border-top: 3px solid var(--primary-deep); padding-top: 12px; }
.bp-asym-mini-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bp-asym-mini-head h3 { margin: 0; flex: 1; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.bp-asym-mini-head a { flex: none; font-size: 12.5px; color: var(--ink-2); }
.bp-asym-mini-head a:hover { color: var(--accent-text, var(--accent-deep)); }
.bp-asym-mini-list { list-style: none; margin: 0; padding: 0; }
.bp-asym-mini-list li { position: relative; padding: 8px 0 8px 14px; font-size: 13.8px; line-height: 1.5; }
.bp-asym-mini-list li::before {
    content: ""; position: absolute; left: 0; top: 16px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.bp-asym-mini-list a { color: var(--ink-2); }
.bp-asym-mini-list a:hover { color: var(--primary-text, var(--primary-deep)); }

/* ----- 栏目组 · 公告板（board）----- */
.bp-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bp-board-col { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.bp-board-head {
    display: grid; grid-template-columns: minmax(0, 1fr) 118px 96px; gap: 10px; align-items: center;
    padding: 0 16px; height: 48px;
    background: var(--primary-deep); color: #fff;
}
.bp-board-title { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 16.5px; font-weight: 700; letter-spacing: .5px; color: #fff; }
.bp-board-title .icon { fill: #fff; }
.bp-board-views-head, .bp-board-date {
    font-size: 12px; color: rgba(255, 255, 255, .96); text-align: right; letter-spacing: .5px;
}
.bp-board-list { list-style: none; margin: 0; padding: 0; }
.bp-board-list li:nth-child(even) { background: #f6f8fb; }
.bp-board-list li a {
    display: grid; grid-template-columns: minmax(0, 1fr) 118px 96px; gap: 10px; align-items: center;
    padding: 9px 16px;
}
.bp-board-name { min-width: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-board-list li a:hover .bp-board-name { color: var(--primary-text, var(--primary-deep)); }
.bp-board-views { font-size: 12.2px; color: var(--ink-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-board-d { font-size: 12.2px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.bp-board-more {
    display: block; padding: 10px 16px; text-align: right; font-size: 13px;
    color: var(--ink-2); border-top: 1px solid var(--line); background: #fbfcfe;
}
.bp-board-more:hover { color: var(--accent-text, var(--accent-deep)); }

/* ----- 栏目组 · 时间轴（timeline）----- */
.bp-tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.bp-tl-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-deep); }
.bp-tl-title { margin: 0; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.bp-tl-title .icon { fill: var(--primary-text, var(--primary-deep)); }
.bp-tl-list { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.bp-tl-list::before {
    content: ""; position: absolute; left: 64px; top: 16px; bottom: 10px;
    width: 1px; background: var(--line);
}
.bp-tl-list li { position: relative; display: flex; align-items: center; gap: 16px; padding: 7px 0 7px 76px; }
.bp-tl-list li::before {
    content: ""; position: absolute; left: 58px; top: 50%;
    width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
    background: #fff; border: 2px solid var(--primary);
}
.bp-tl-list li:hover::before { background: var(--accent-deep); border-color: var(--accent-deep); }
/* 日期块宽 50px 且 nowrap：原来是 34px + 默认换行，"08-03" 会被折成两行、
   年份再叠到下一行上（实测 .bp-tl-date b 高 29px = 挤了两行）。 */
.bp-tl-date {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 50px;
    text-align: right; line-height: 1.15;
}
.bp-tl-date b { display: block; font-size: 12.5px; font-weight: 700; color: var(--primary-text, var(--primary-deep)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-tl-date i { font-style: normal; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bp-tl-list a { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.bp-tl-list li:hover a { color: var(--primary-text, var(--primary-deep)); }

/* ----- 办事服务 · 主推 + 宫格（spotlight）----- */
.bp-spot { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.bp-spot-main {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 26px 24px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary-deep) 68%, var(--accent-deep) 145%);
    box-shadow: 0 14px 34px rgba(9, 24, 44, .22);
}
.bp-spot-main:hover { color: #fff; box-shadow: 0 20px 44px rgba(9, 24, 44, .28); }
.bp-spot-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
}
.bp-spot-icon .icon { width: 30px; height: 30px; fill: #fff; }
/* 标签原来是「22% 白胶囊 + 白字」—— 胶囊自身的半透明白会**提亮**底下的渐变，
   实测博物馆站(--primary-deep 为金褐)上白字掉到 3.14:1、西湖区 3.37:1
   （hover_contrast_scan 直接抓到 #ffffff → #a5904d）。改成「实心白胶囊 + 深主色字」：
   白底对整个渐变都是安全底，深主色字对白底有 deepenForInk 保证的 ≥4.6:1。 */
.bp-spot-label {
    font-size: 12px; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
    background: #fff; color: var(--primary-text);
}
.bp-spot-name { font-size: 21px; font-weight: 700; line-height: 1.35; }
.bp-spot-meta { font-size: 12.5px; color: rgba(255, 255, 255, .98); }
.bp-spot-go {
    margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.bp-spot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bp-spot-item {
    display: flex; flex-direction: column; gap: 9px; padding: 18px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.bp-spot-item:hover { border-color: var(--primary-deep); box-shadow: 0 12px 28px rgba(18, 38, 62, .12); transform: translateY(-2px); }
.bp-spot-sicon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.bp-spot-sicon .icon { width: 21px; height: 21px; fill: #fff; }
.bp-spot-iname { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.bp-spot-item:hover .bp-spot-iname { color: var(--primary-text, var(--primary-deep)); }
.bp-spot-imeta { font-size: 12.2px; color: var(--ink-2); }

/* ----- 办事服务 · 指南速查表（quick）----- */
/* ⚠ 与 .bp-dept-hero 同源：`minmax(0, 2.2fr)` 曾被批量替换弄坏成嵌套 minmax，
   整条声明被浏览器丢弃 ⇒ 表头与每一行都退化成单列，速查表在页面上**竖着堆**成一串。
   2026-09-29 由 ⑨ 抓出。 */
.bp-quick { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.bp-quick-head,
.bp-quick-list li a {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.35fr) 96px 96px 76px 84px;
    gap: 12px; align-items: center; padding: 0 18px;
}
.bp-quick-head { height: 46px; background: var(--primary-deep); color: #fff; font-size: 12.8px; letter-spacing: .5px; }
.bp-quick-head span:nth-child(n+3) { text-align: right; }
.bp-quick-list { list-style: none; margin: 0; padding: 0; }
.bp-quick-list li:nth-child(even) { background: #f6f8fb; }
.bp-quick-list li a { height: 48px; }
.bp-quick-name {
    display: flex; align-items: center; gap: 7px; min-width: 0;
    font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bp-quick-list li a:hover .bp-quick-name { color: var(--primary-text, var(--primary-deep)); }
.bp-quick-hot {
    flex: none; font-style: normal; font-size: 11px; line-height: 1.6;
    padding: 0 6px; border-radius: 3px; background: var(--accent-deep); color: #fff;
}
.bp-quick-dept { min-width: 0; font-size: 12.8px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-quick-legal, .bp-quick-fee, .bp-quick-hits { text-align: right; font-size: 12.8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 承诺时限是本表的主角（法定/承诺的对照才是群众要看的信息），给它主色加粗 */
.bp-quick-prom { text-align: right; font-size: 13.5px; font-weight: 700; color: var(--primary-text, var(--primary-deep)); font-variant-numeric: tabular-nums; }
.bp-quick-hits { font-weight: 600; color: var(--ink); }

/* ----- 数据发布 · 仪表盘（gauge）----- */
.bp-gauge { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bp-gauge-cell {
    display: flex; flex-direction: column; gap: 8px; padding: 6px 26px;
    border-left: 1px solid var(--line);
}
.bp-gauge-cell:first-child { border-left: none; padding-left: 0; }
.bp-gauge-label { font-size: 13.5px; color: var(--ink-2); }
.bp-gauge-value {
    font-size: 46px; font-weight: 700; line-height: 1.1; color: var(--primary-text, var(--primary-deep));
    font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.bp-gauge-unit { margin-left: 5px; font-size: 15px; font-weight: 400; font-style: normal; color: var(--ink-2); letter-spacing: 0; }
.bp-gauge-trend { font-size: 12.8px; font-variant-numeric: tabular-nums; }
.bp-gauge-trend.up { color: var(--accent-text, #8c1b20); }
.bp-gauge-trend.down { color: #125b3a; }
.bp-gauge-date { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bp-gauge-cell:hover .bp-gauge-value { color: var(--accent-text, var(--accent-deep)); }

/* ----- 数据发布 · 指标台账（ledger）----- */
.bp-ledger { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.bp-ledger-head,
.bp-ledger-list li a {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 128px 128px 104px 112px;
    gap: 12px; align-items: center; padding: 0 18px;
}
.bp-ledger-head { height: 46px; background: var(--primary-deep); color: #fff; font-size: 12.8px; letter-spacing: .5px; }
.bp-ledger-head span:nth-child(n+2) { text-align: right; }
.bp-ledger-list { list-style: none; margin: 0; padding: 0; }
.bp-ledger-list li:nth-child(even) { background: #f6f8fb; }
.bp-ledger-list li a { height: 50px; }
.bp-ledger-name { min-width: 0; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-ledger-list li a:hover .bp-ledger-name { color: var(--primary-text, var(--primary-deep)); }
.bp-ledger-cur {
    text-align: right; font-size: 16.5px; font-weight: 700; color: var(--primary-text, var(--primary-deep));
    font-variant-numeric: tabular-nums;
}
.bp-ledger-cur i { margin-left: 4px; font-size: 12px; font-weight: 400; font-style: normal; color: var(--ink-2); }
.bp-ledger-prev { text-align: right; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bp-ledger-pct { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.bp-ledger-pct.up { color: var(--accent-text, #8c1b20); }
.bp-ledger-pct.down { color: #125b3a; }
.bp-ledger-date { text-align: right; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.bp-empty { list-style: none; padding: 14px 0; color: var(--ink-2); font-size: 13.5px; }

@media (max-width: 1080px) {
    .bp-asym { grid-template-columns: minmax(0, 1fr); }
    .bp-spot { grid-template-columns: minmax(0, 1fr); }
    .bp-quick-head,
    .bp-quick-list li a { grid-template-columns: minmax(0, 1.8fr) 90px 90px 70px; }
    .bp-quick-dept, .bp-quick-hits { display: none; }
    .bp-ledger-head,
    .bp-ledger-list li a { grid-template-columns: minmax(0, 2fr) 120px 100px; }
    .bp-ledger-prev, .bp-ledger-date { display: none; }
}
@media (max-width: 900px) {
    .bp-board, .bp-tl { grid-template-columns: minmax(0, 1fr); }
    .bp-asym-list { grid-template-columns: minmax(0, 1fr); }
    .bp-asym-list li:nth-last-child(-n+2) { border-bottom: 1px dashed var(--line); }
    .bp-asym-list li:last-child { border-bottom: none; }
    .bp-spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-gauge { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
    .bp-gauge-cell:nth-child(odd) { border-left: none; padding-left: 0; }
    .bp-board-head, .bp-board-list li a { grid-template-columns: minmax(0, 1fr) 96px; }
    .bp-board-views-head { display: none; }
}
@media (max-width: 620px) {
    .bp-spot-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-gauge { grid-template-columns: minmax(0, 1fr); }
    .bp-gauge-cell { border-left: none; padding: 0; }
    .bp-quick-head, .bp-quick-list li a { grid-template-columns: minmax(0, 1fr) 84px; }
    .bp-quick-legal, .bp-quick-fee { display: none; }
    .bp-ledger-head, .bp-ledger-list li a { grid-template-columns: minmax(0, 1fr) 110px; }
    .bp-ledger-pct { display: none; }
    .bp-tl-list li { padding-left: 0; }
    .bp-tl-list::before, .bp-tl-list li::before { display: none; }
    .bp-tl-date { position: static; transform: none; width: auto; text-align: left; }
    .bp-tl-list li { gap: 10px; }
}
body[data-layout-flavor="mobile"] .bp-asym,
body[data-layout-flavor="mobile"] .bp-board,
body[data-layout-flavor="mobile"] .bp-tl,
body[data-layout-flavor="mobile"] .bp-spot { grid-template-columns: minmax(0, 1fr); }
body[data-layout-flavor="mobile"] .bp-asym-list { grid-template-columns: minmax(0, 1fr); }
body[data-layout-flavor="mobile"] .bp-gauge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-layout-flavor="mobile"] .bp-quick-dept,
body[data-layout-flavor="mobile"] .bp-quick-hits,
body[data-layout-flavor="mobile"] .bp-ledger-prev,
body[data-layout-flavor="mobile"] .bp-ledger-date { display: none; }

/* ==========================================================================================
   内容块形制层（content-block families）
   ------------------------------------------------------------------------------------------
   为什么需要这一层：四轴（blueprint / layout / head / 配色）已经让**骨架**各不相同，
   但页面上的「视觉原子」——栏目标题、内容块容器、列表行、办事卡——在 front.css 里各只有
   一份定义，于是所有站点共用同一套砖。用 CDP 实测（bin/inner_shape_fingerprint.mjs）：
   省政府门户(portal-hero)、应急厅(portal-stripe)、发改委(dept-data) 三个不同机构、不同
   blueprint 的站，其「通知公告」列表与「办事服务」卡片 **完全同形** —— 白底 + 1px 灰边 +
   圆角 + 小圆点 + 点线分隔。这正是「很多子站看起来一样」的直接原因。

   这一层按**结构族**（data-bp 前缀，本身就是机构类型的编码）给出 6 套不同的原子形制：
     portal-   党政门户（省 / 市 / 党委）  → 庄重：实心主色标题条 + 白字、实线分隔、方角
     city-     地市门户                   → 开阔：双线标题、圆形图标、卡片上边主色条
     district- 区县门户                   → 亲民服务：胶囊浅底标题、填充式大圆角卡
     town-     街道乡镇                   → 紧凑：整条浅灰底表头式标题、方角细边
     dept-     职能部门                   → 功能：方块图标 + 左粗边卡、方块列表指示
     inst-     事业 / 人文（图书博物文旅） → 书卷：上下双细线标题、去边框留白、无圆点

   ⚠ 选择器一律用 :where(body[data-bp^="…"]) 把族选择器的**权重降为 0**，
   于是本层权重只有 .sec-title 那一段 (0,1,0)：
     · 高于 front.css 的基线 .sec-title（同权重、本文件在后 → 本层胜）
     · 低于 layouts.css 的 body[data-layout="…"] .sec-title（(0,2,1) → 版式的刻意定制仍然胜出）
   这样「结构族给新的基线 + 版式保留自己的定制」两件事同时成立，不必去逐个改 27 个版式。

   ⚠ 配色纪律：这一层只允许改「形」，颜色一律取令牌。
   浅底（--primary-wash）上**必须压 --ink 系深色字**；
   白字只允许压在 --primary-deep / --accent-deep 上（deepenForInk 保证过 ≥4.6:1）；
   「主色当文字色且可能落在浅底上」一律用 --primary-text / --accent-text（按 6:1 加深）。
   凡是「深底 + 白字」这一类**成对**属性，两条规则必须同权重写在同一个块里 ——
   一旦底色被别处的更高权重规则改回浅色而字色规则仍生效，就是白压白 1.00:1（实测踩过）。
   ========================================================================================== */

/* ---------- 族 A：党政门户（portal-*）庄重 ---------- */
:where(body[data-bp^="portal-"]) .sec-head { align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
:where(body[data-bp^="portal-"]) .sec-title {
    border-radius: 3px; letter-spacing: 2px; font-size: 20px;
}
:where(body[data-bp^="portal-"]) .sec-title::before { display: none; }
:where(body[data-bp^="portal-"]) .panel { border-radius: 2px; box-shadow: none; }

/* ⚠ 下面这一组必须用**正常权重**（body[data-bp^="portal-"] …，等于 (0,2,1)），
   不能用 :where() 降权 —— 因为「深底 + 白字」是**一对**属性，拆开就会出现
   「底色被版式改回浅色、文字仍是白的」→ 白压白 1.00:1（文字消失）。
   实测踩过：stripe 版式 body[data-layout="stripe"] .panel-head{background:#fff}（(0,2,1)）
   会赢过降权后的族规则，而族里的 .panel-head .sec-more{color:#fff} 却是 (0,2,0) 依然生效，
   于是 yjglt 的「更多 ›」实测 1.00:1、sthjt 1.05:1。
   提权到这里后，底色与字色同权重、且本文件在 layouts.css 之后 → 整对一起胜出，不可能被拆。 */
/* 内距与「底色 + 白字」放在同一条提权规则里：实心标题条的内距被版式的
   `padding-left: 0`（gov / stripe 都有）单独改掉，文字就会贴到色条左边缘。 */
body[data-bp^="portal-"] .sec-title { padding: 6px 16px; background: var(--primary-deep); color: #fff; }
body[data-bp^="portal-"] .panel-head { background: var(--primary-deep); border-bottom: none; }
body[data-bp^="portal-"] .panel-title,
body[data-bp^="portal-"] .panel-head .sec-more,
body[data-bp^="portal-"] .panel-head .bp-chart-unit { color: #fff; }
body[data-bp^="portal-"] .panel-title { letter-spacing: 1px; }
body[data-bp^="portal-"] .panel-title .icon { fill: #fff; }
/* 深底上的「更多」悬停不用降透明度（半透明白会掉到约 4.0:1），改用下划线 */
body[data-bp^="portal-"] .panel-head .sec-more:hover { color: #fff; text-decoration: underline; }
/* .panel-sub 是 panel-title 里的浅蓝胶囊：固定 #eaf2fc 底色会与绿/红主色打架，
   改「白底 + primary-deep 字」（≈8.5:1），与任何主色都协调。 */
body[data-bp^="portal-"] .panel-head .panel-sub { background: #fff; color: var(--primary-text); }

:where(body[data-bp^="portal-"]) .news-list li { border-bottom-style: solid; }
/* 圆点改小竖条：方正的指示符与「庄重」一致，也把点线换成实线 */
:where(body[data-bp^="portal-"]) .news-list .nl-dot {
    width: 3px; height: 12px; border-radius: 0; background: var(--primary); transform: translateY(0);
}
:where(body[data-bp^="portal-"]) .svc-item { border-radius: 2px; }
:where(body[data-bp^="portal-"]) .svc-item .si-icon { border-radius: 3px; }
:where(body[data-bp^="portal-"]) .art-card { border-radius: 2px; }

/* ---------- 族 B：地市门户（city-*）开阔 ---------- */
:where(body[data-bp^="city-"]) .sec-head { border-bottom: 3px double var(--line); padding-bottom: 12px; }
:where(body[data-bp^="city-"]) .sec-title { font-size: 22px; }
/* 竖条是 ::before 画的，它要占住文字左边的 18px；内距必须与竖条同权重，
   否则会被版式的 padding-left:0 拆开 —— 竖条就压在文字下面了。 */
body[data-bp^="city-"] .sec-title { padding-left: 18px; }
:where(body[data-bp^="city-"]) .sec-title::before { width: 6px; border-radius: 0; background: var(--primary); }
:where(body[data-bp^="city-"]) .panel { border-top: 3px solid var(--primary); }
:where(body[data-bp^="city-"]) .panel-head { background: #fff; }
:where(body[data-bp^="city-"]) .news-list .nl-dot {
    width: 7px; height: 7px; background: transparent; border: 1.5px solid var(--primary); transform: translateY(-2px);
}
:where(body[data-bp^="city-"]) .svc-item { border-left: 3px solid var(--primary-light); }
:where(body[data-bp^="city-"]) .svc-item .si-icon { border-radius: 50%; }

/* ---------- 族 C：区县门户（district-*）亲民服务 ---------- */
:where(body[data-bp^="district-"]) .sec-head { border-bottom: none; padding-bottom: 0; }
:where(body[data-bp^="district-"]) .sec-title { border-radius: 999px; font-size: 20px; }
/* 胶囊的内距 + 底色 + 字色同权重：modern 版式有 `padding-left: 0`，
   降权后胶囊左内距会被清掉（实测 dist-xh 文字贴到胶囊左边缘）。 */
body[data-bp^="district-"] .sec-title {
    padding: 7px 20px; background: var(--primary-wash); color: var(--primary-text);
}
:where(body[data-bp^="district-"]) .sec-title::before { display: none; }
/* 填 充 式 卡 片：无边框、靠浅底与留白分区（与 A/B 的「白底描边」是两种观感） */
:where(body[data-bp^="district-"]) .panel {
    background: var(--primary-wash); border: none; box-shadow: none; border-radius: 18px;
    /* ⚠ 一旦把底从纯白换成浅色，三级文字令牌必须同步降一级：
       --ink-3(#5f7085) 只对**纯白**有 5.07:1，压 --primary-wash 只剩 4.40~4.44（实测
       .si-meta 与 .bp-svclist-a）。在这里重声明一次，后代所有 var(--ink-3) 就会解析成
       --ink-2（浅底上 6.0:1），不必逐个元素去改。 */
    --ink-3: var(--ink-2);
}
:where(body[data-bp^="district-"]) .panel-head { background: transparent; border-bottom: none; }
:where(body[data-bp^="district-"]) .panel-title { color: var(--primary-text); }
:where(body[data-bp^="district-"]) .panel-body { padding: 4px 18px 16px; }
:where(body[data-bp^="district-"]) .news-list li { border-bottom: none; padding: 12px 0; }
:where(body[data-bp^="district-"]) .news-list .nl-dot { display: none; }
:where(body[data-bp^="district-"]) .svc-item {
    border: none; background: var(--primary-wash); border-radius: 18px; --ink-3: var(--ink-2);
}
/* 悬停不能改成 --primary-tint：那是 78% 白的主色，压在上面的 .si-meta（--ink-3 #5f7085）
   实测只有 3.47:1（cnt-lq）/ 3.61:1（dist-xh）。保持浅底，用 2px 内描边表示悬停。 */
:where(body[data-bp^="district-"]) .svc-item:hover {
    background: var(--primary-wash); box-shadow: inset 0 0 0 2px var(--primary-light);
}
:where(body[data-bp^="district-"]) .svc-item .si-icon { border-radius: 14px; }
/* 「在线办」角标的固定蓝底会与本族的主色浅底打架，改白底 */
:where(body[data-bp^="district-"]) .svc-item .si-badge { background: #fff; }
:where(body[data-bp^="district-"]) .art-card {
    border: none; border-radius: 18px; background: var(--primary-wash); --ink-3: var(--ink-2);
}

/* ---------- 族 D：街道乡镇（town-*）紧凑 ---------- */
:where(body[data-bp^="town-"]) .sec-head {
    background: var(--primary-wash); border-bottom: none; border-radius: 4px;
    padding: 9px 14px; margin-bottom: 12px;
    --ink-3: var(--ink-2);   /* 浅底表头上的 .sec-en / .sec-more：理由同族 C */
}
:where(body[data-bp^="town-"]) .sec-title { font-size: 17px; letter-spacing: 0; }
/* 与左侧竖条（::before）配对的内距，同权重提权：理由同族 B */
body[data-bp^="town-"] .sec-title { padding-left: 12px; }
:where(body[data-bp^="town-"]) .sec-title::before { width: 3px; border-radius: 0; top: 3px; bottom: 3px; }
:where(body[data-bp^="town-"]) .panel { border-radius: 3px; box-shadow: none; }
:where(body[data-bp^="town-"]) .panel-head { background: #f7f8fa; }
:where(body[data-bp^="town-"]) .panel-title { font-size: 15px; }
:where(body[data-bp^="town-"]) .news-list li { padding: 8px 0; border-bottom-style: solid; }
:where(body[data-bp^="town-"]) .news-list .nl-dot { display: none; }
:where(body[data-bp^="town-"]) .svc-item { border-radius: 3px; padding: 11px; }
:where(body[data-bp^="town-"]) .svc-item .si-icon { width: 34px; height: 34px; border-radius: 4px; }
:where(body[data-bp^="town-"]) .svc-item .si-icon svg { width: 18px; height: 18px; }

/* ---------- 族 E：职能部门（dept-*）功能 ---------- */
:where(body[data-bp^="dept-"]) .sec-head { align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
:where(body[data-bp^="dept-"]) .sec-title { font-size: 20px; }
/* 与左侧实心方块（::before）配对的内距，同权重提权：理由同族 B */
body[data-bp^="dept-"] .sec-title { padding-left: 20px; }
/* 标题前的实心小方块：替代通用的左侧竖条（条形 vs 块形，一眼可分） */
:where(body[data-bp^="dept-"]) .sec-title::before {
    width: 11px; height: 11px; top: 6px; bottom: auto; border-radius: 2px;
    background: var(--primary);
}
:where(body[data-bp^="dept-"]) .panel { border-left: 3px solid var(--primary); box-shadow: none; border-radius: 4px; }
:where(body[data-bp^="dept-"]) .panel-head { background: #fafbfc; }
:where(body[data-bp^="dept-"]) .news-list li { border-bottom-style: dotted; }
:where(body[data-bp^="dept-"]) .news-list .nl-dot {
    width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: translateY(-2px);
}
:where(body[data-bp^="dept-"]) .svc-item { border-radius: 4px; }
:where(body[data-bp^="dept-"]) .svc-item .si-icon { border-radius: 6px; }
:where(body[data-bp^="dept-"]) .art-card { border-radius: 4px; }

/* ---------- 族 F：事业 / 人文（inst-*）书卷 ---------- */
:where(body[data-bp^="inst-"]) .sec-head {
    align-items: center; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 11px 0; margin-bottom: 16px;
}
:where(body[data-bp^="inst-"]) .sec-title { font-size: 20px; font-weight: 600; letter-spacing: 6px; padding-left: 0; }
:where(body[data-bp^="inst-"]) .sec-title::before { display: none; }
/* 去边框、只留一条底细线：靠留白而非描边分区（杂志感） */
:where(body[data-bp^="inst-"]) .panel {
    background: transparent; border: none; box-shadow: none; border-radius: 0;
    border-bottom: 1px solid var(--line);
}
:where(body[data-bp^="inst-"]) .panel-head { background: transparent; border-bottom: none; padding: 10px 0; }
:where(body[data-bp^="inst-"]) .panel-body { padding: 6px 0 14px; }
:where(body[data-bp^="inst-"]) .news-list li { border-bottom: none; padding: 10px 0; }
:where(body[data-bp^="inst-"]) .news-list .nl-dot { display: none; }
/* 「靠留白分区」只在**内容够密**时才成立。
   实测反例：疾控中心（inst-minimal）「通知公告 ‖ 政策解读」各 4 条，
   4 行短标题之间没有任何横线，两栏加起来看着就是一块白 —— 用户反馈的「版面发空」。
   补一条**行与行之间**的极细线（用 `li + li` 的 border-top，不碰最后一行，
   也不与族内既有的 border-bottom 规则叠加）：书卷感保留，条目可辨。

   ⚠ 这两条必须写成**正常权重**（body[data-bp^="inst-"] …），不能学上面那样套 :where()。
     `:where(body[data-bp^="inst-"]) .news-list li + li` = (0,1,2)，
     而 layouts.css 里 `body[data-layout="magazine"] .news-list li` = (0,2,2) —— 原写法必输，
     结果就是「同一个族里，图书馆有点线、疾控/气象/文旅一条线都没有」，
     差别只来自站点恰好绑了哪个版式。判据：`bin/layout_check.php` ⑥-9。 */
body[data-bp^="inst-"] .news-list li + li { border-top: 1px solid var(--line); }
/* magazine 版式自己已经有深色点线（`1px dotted var(--ink-3)`）作行分隔，
   这里显式关掉上边线，避免同一行上下各一条线（双线）。 */
body[data-bp^="inst-"][data-layout="magazine"] .news-list li + li { border-top: none; }
:where(body[data-bp^="inst-"]) .svc-item {
    background: transparent; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0;
}
:where(body[data-bp^="inst-"]) .svc-item:hover { box-shadow: none; transform: none; }
:where(body[data-bp^="inst-"]) .svc-item .si-icon { width: 38px; height: 38px; border-radius: 50%; }
:where(body[data-bp^="inst-"]) .art-card { border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
