/* ==========================================================================
   h5.css —— H5 布局与首页专属样式
   --------------------------------------------------------------------------
   职责：
     1) H5 端整体布局：品牌栏 / 页面容器 / 底部导航 /
        中心概况页顶水平 Tab 条（#subnav，仅 /overview/* 出现）；
     2) 首页（#/home）专属视觉：hero 主图、简介卡、关键数据、动态列表、
        四宫格入口。

   注：底部 tabbar 的"父级展开 + 二级抽屉"形态（.subnav-sheet /
   .subnav-panel / .subnav-row / .ti-arrow）已按需求删除，不得恢复。

   后续模块接入约定（重要）：
     · 本文件中 .hero-* / .stat-* / .quick-* 等仅服务首页，其他模块请勿复用；
     · 通用能力（卡片 / 列表 / 按钮 / 胶囊 / 弹层）已写在 base.css，直接复用；
     · 新增样式只允许使用 base.css 中 :root 的变量。
   ========================================================================== */

/* ======================= 全局壳层 ======================= */
/* 根因修复（移动端底部菜单不可见）：
   原为 html, body { height: 100% }，把根链高度锁死在"一屏"，
   而 .app-shell 实际内容高度远大于一屏（375×740 下实测 1333px）。
   移动端（iOS Safari / 微信 iOS WebView）在"根元素为滚动容器"的情况下，
   会把 position:fixed 的元素相对 html 的 padding box（一屏高）定位，
   页面一旦滚动，固定底栏就离开视口 → 底部菜单"看不见"；
   桌面 Chromium 仍按视口定位，因此只在移动端复现。
   改为 min-height：保留"至少铺满一屏"，同时允许内容把根链撑高，
   固定底栏重新以视口为参照。桌面端视觉无变化。
   html 用百分比（相对初始包含块），body 用视口单位，
   避免 body 的百分比高度因父级高度为 auto 而失效。 */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  /* 移动浏览器地址栏收起/展开时以动态视口为准，旧内核回退到 100vh */
  min-height: 100dvh;
  background: var(--c-bg);
}

/* 顶部状态/安全区兜底色 */
.app-shell {
  background: var(--c-bg);
}

/* 大屏（PC 预览）时给 H5 一个居中的"手机感"边界 */
@media (min-width: 721px) {
  body {
    background: #E9EFEB;
  }
  .app-shell {
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--c-bg);
    box-shadow: 0 0 0 1px rgba(20, 35, 31, .06);
  }
  /* .tabbar 现为 .app-shell 的 flex 尾部元素（position:sticky），
     宽度天然继承 .app-shell 的 720px 居中与页宽，
     不再需要 left:50% + translateX(-50%) 的定位补偿。
     transform 更不能加：它会让 sticky 的滚动吸附计算带上位移。 */
  .tabbar {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
  }
  .toast-wrap {
    align-items: center;
  }
}

/* ======================= 首页 Hero（不吸顶） ======================= */
.hero {
  padding: calc(env(safe-area-inset-top, 0px) + var(--sp-4)) 0 0;
}

/* 品牌栏 */
/* 说明：外层 .page 已提供左右各 var(--sp-4) 内边距，
   因此首页各区块内部不再重复加左右边距，避免双重留白。 */
.brand {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 0 0 var(--sp-3);
}

.brand-logo {
  flex: none;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  color: var(--c-primary);
}

.brand-logo svg { width: 100%; height: 100%; display: block; }

.brand-main { flex: 1; min-width: 0; }

.brand-name {
  font-size: var(--font-l);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .01em;
  color: var(--c-ink);
  word-break: break-word;
}

.brand-sub {
  margin-top: 4px;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  letter-spacing: .01em;
}

/* 口号 */
.slogan {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-1) 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: linear-gradient(90deg, var(--c-primary-soft) 0%, rgba(232, 244, 239, .35) 100%);
  font-size: var(--font-s);
  color: var(--c-primary-deep);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
}

.slogan .sl-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--c-primary);
  opacity: .85;
}

/* 视觉主图 */
.hero-figure {
  position: relative;
  margin: 0 0 var(--sp-4);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(160deg, #F2F9F6 0%, #EAF3F8 100%);
  border: 1px solid var(--c-line);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #F2F9F6;
}

.hero-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 8px var(--sp-3);
  border-top: 1px solid var(--c-line);
  background: rgba(255, 255, 255, .78);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.5;
}

.hero-cap .hc-text { flex: 1; min-width: 0; }
.hero-cap .demo-badge { flex: none; }

/* ======================= 中心简介卡 ======================= */
.intro-card {
  margin: 0;
}

.intro-card .card-bd {
  padding: var(--sp-4);
}

.intro-text {
  font-size: var(--font-m);
  line-height: 1.75;
  color: var(--c-ink-2);
  text-align: justify;
}

.intro-text strong {
  color: var(--c-primary-deep);
  font-weight: 600;
}

.intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-line);
}

.intro-src {
  flex: 1;
  min-width: 0;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.5;
}

.intro-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding-left: var(--sp-2);
  font-size: var(--font-s);
  color: var(--c-primary);
  font-weight: 500;
}

.intro-more svg { width: 14px; height: 14px; }

/* ======================= 关键数据区 ======================= */
.stat-wrap {
  padding: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.stat-item {
  position: relative;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.stat-item::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  opacity: .55;
}

.stat-item.is-tech::after { background: var(--c-tech-soft); }

.stat-num {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: .01em;
}

.stat-item.is-tech .stat-num { color: var(--c-tech); }

.stat-num .n {
  font-size: var(--font-xxl);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-num .u {
  font-size: var(--font-xs);
  font-weight: 500;
  opacity: .85;
}

.stat-label {
  position: relative;
  margin-top: 6px;
  font-size: var(--font-s);
  color: var(--c-ink-2);
  line-height: 1.45;
}

.stat-note {
  position: relative;
  margin-top: 2px;
  font-size: 11px;
  color: var(--c-ink-3);
  line-height: 1.4;
}

.stat-source {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
  text-align: right;
}

/* ======================= 最新动态（横向卡片流） ======================= */
/* 采用横向 scroll-snap 卡片：仅容器内部横向滚动，
   页面本身不会产生横向溢出（body 已 overflow-x: hidden）。 */
.news-scroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* 右侧留出一点"露边"，提示可继续滑动 */
  padding-bottom: 2px;
}

.news-scroll::-webkit-scrollbar { display: none; }

.news-card {
  flex: 0 0 78%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-4) var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  text-align: left;
  transition: transform .12s ease, background-color .15s ease;
}

.news-card:active {
  transform: scale(.99);
  background: #FAFCFB;
}

.news-card:last-child { margin-right: var(--sp-4); }

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-width: 0;
}

.news-title {
  font-size: var(--font-m);
  color: var(--c-ink);
  line-height: 1.55;
  font-weight: 500;
  min-height: calc(1.55em * 2);
}

.news-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
}

.news-ext {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  color: var(--c-ink-3);
  background: #F4F7F5;
}

.news-ext svg { width: 13px; height: 13px; }

/* 动态为空时的容器（避免横向容器无内容导致高度塌陷） */
.news-empty { display: block; }

/* ======================= 四宫格快捷入口 ======================= */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  padding: 0;
}

.quick-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 76px;
  padding: var(--sp-3) var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  text-align: left;
  transition: transform .12s ease, box-shadow .15s ease;
}

.quick-item:active {
  transform: scale(.985);
  box-shadow: none;
}

.quick-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.quick-item.is-tech .quick-ico {
  background: var(--c-tech-soft);
  color: var(--c-tech);
}

.quick-ico svg { width: 20px; height: 20px; }

.quick-txt { flex: 1; min-width: 0; }

.quick-name {
  font-size: var(--font-m);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: .01em;
  line-height: 1.4;
}

.quick-desc {
  /* 修复：原为 inline 的 span，overflow:hidden 对行内元素不生效，
     导致 white-space:nowrap 的超长描述在 320px 下溢出卡片右边界。
     改为 block 后 text-overflow:ellipsis 才能正常裁剪。 */
  display: block;
  min-width: 0;
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-ink-3);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ======================= 首页页脚声明 ======================= */
.page-disclaimer {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.65;
  text-align: justify;
}

/* ======================= 中心概况页顶水平 Tab 条 =======================
   作用域：仅 /overview/people|equipment|venue（含兜底 /overview）渲染，
   由 core/ui.js 的 renderSubnavBar() 写入 #subnav，其它路由清空并隐藏。
   注意：底部抽屉（.subnav-sheet / .subnav-panel / .subnav-row）形态
   已按需求删除，此处**只**恢复页顶水平条，不要补回抽屉样式。
   ==================================================================== */

/* 吸顶挂载点：#subnav 位于 .app-shell（flex column）的 header 与内容之间。
   · ≤720px：滚动发生在 .app-body 内部，本节点在滚动容器之外，天然常驻顶部；
   · >720px：滚动发生在视口，用 sticky top:0 保持吸顶，与 .app-header 同口径。 */
#subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  flex: none;
  width: 100%;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}

/* 不支持毛玻璃时降级为实色，避免上层内容透出干扰阅读 */
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  #subnav { background: #FFFFFF; }
}

#subnav[hidden] { display: none; }

/* 水平菜单条：三档等宽，窄屏可横向滚动（不换行、不压缩点击区） */
.subnav-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--sp-1) var(--sp-3);
  gap: var(--sp-1);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.subnav-bar::-webkit-scrollbar { display: none; }

/* 单个 Tab：触控高度 ≥44px，字号走 --font-s，满足热区与字号下限 */
.sn-item {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--c-ink-2);
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.sn-item .sn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: currentColor;
  opacity: .82;
}

.sn-item .sn-ico svg { width: 16px; height: 16px; display: block; }

/* 名称超长时省略，不撑破三档等宽布局 */
.sn-item .sn-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-item:active { background: rgba(14, 124, 90, .06); }

/* 选中态：主色文字 + 底部下划线（下划线用伪元素，避免影响行高与热区） */
.sn-item.is-active {
  color: var(--c-primary);
  font-weight: 600;
}

.sn-item.is-active .sn-ico { opacity: 1; }

.sn-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 24px;
  height: 3px;
  margin-left: -12px;
  border-radius: var(--radius-pill);
  background: var(--c-primary);
}

/* 窄屏（≤360px）：收紧内边距与图标间距，保证三档不产生横向滚动 */
@media (max-width: 360px) {
  .subnav-bar { padding: var(--sp-1) var(--sp-2); gap: 2px; }
  .sn-item { padding: var(--sp-2) var(--sp-1); gap: 4px; }
  .sn-item .sn-name { font-size: var(--font-xs); }
  .sn-item.is-active::after { width: 20px; margin-left: -10px; }
}

/* ======================= 窄屏保护（≤359px） ======================= */
/* 目的：320px 级设备上，多位数指标（33121.6）与长中心名称不撑破卡片。
   仅缩小字号，不改任何数值与文案。 */
@media (max-width: 359px) {
  .stat-num .n { font-size: 20px; }
  .brand-name { font-size: 16px; }
  .news-card { flex-basis: 82%; }
  .quick-item { padding: var(--sp-2) var(--sp-2); gap: var(--sp-2); }
  .quick-ico { width: 34px; height: 34px; }
  .quick-name { font-size: var(--font-s); }
}

/* 未注册模块的占位降级卡片（后续模块接入后自动不再触发） */
.placeholder-card {
  margin-top: var(--sp-4);
}

.placeholder-card .card-bd {
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
}

.placeholder-card .pc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius-m);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.placeholder-card .pc-ico svg { width: 30px; height: 30px; }

.placeholder-card .pc-title {
  font-size: var(--font-l);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: .01em;
}

.placeholder-card .pc-desc {
  margin: var(--sp-2) auto var(--sp-4);
  max-width: 30em;
  font-size: var(--font-s);
  color: var(--c-ink-3);
  line-height: 1.65;
}

/* ==========================================================================
   热点速递模块（.hs-*）
   --------------------------------------------------------------------------
   服务页面：pages/hotspots.js（#/hotspots 列表页、#/hotspot/:id 详情页）
   约定：仅使用 base.css 的 :root 变量与既有组件类，不新增色板与字号体系。
   来源角标配色通过内联 CSS 变量 --hs-src-color / --hs-src-soft 传入，
   取值来自 data/site.js 的 sources（未收录来源在页面内本地补充并注释）。
   ========================================================================== */

/* ---------------------------- 返回行 ---------------------------- */
.hs-backrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin-top: calc(env(safe-area-inset-top, 0px) + var(--sp-1));
}

.hs-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding-right: var(--sp-2);
  font-size: var(--font-s);
  color: var(--c-ink-2);
  border-radius: var(--radius-pill);
}

.hs-back svg { width: 16px; height: 16px; display: block; }
.hs-back:active { color: var(--c-primary); }

.hs-crumb {
  flex: 1;
  min-width: 0;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------- 标题区（轻量，无大 banner） ---------------------------- */
/* 列表页已移除页顶返回行，标题区需自行承接状态栏安全区与顶部留白；
   详情页仍保留 .hs-backrow，因此本规则只作用于列表页的 .hs-head。 */
.hs-head { padding: calc(env(safe-area-inset-top, 0px) + var(--sp-3)) 0 var(--sp-3); }

.hs-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hs-title {
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--c-ink);
}

.hs-sub {
  margin-top: 6px;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
}

/* ---------------------------- 搜索框 ---------------------------- */
.hs-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.hs-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-ink-3);
  pointer-events: none;
}

.hs-search-ico svg { width: 16px; height: 16px; display: block; }

/* 覆盖浏览器原生 search 清除按钮，统一使用自定义按钮 */
.hs-search-input {
  padding-left: 36px;
  padding-right: 40px;
  border-radius: var(--radius-pill);
  background: var(--c-card);
}

.hs-search-input::-webkit-search-cancel-button { display: none; }

.hs-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--c-ink-3);
}

.hs-search-clear svg { width: 14px; height: 14px; display: block; }
.hs-search-clear:active { background: #F1F4F6; color: var(--c-ink); }

/* ---------------------------- 筛选区 ---------------------------- */
.hs-filter {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-2) 0 0;
}

.hs-chiprow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 2px;
}

.hs-rowlabel {
  flex: none;
  width: 40px;
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: .02em;
}

/* 横向滚动 chip 组：容器内滚动，不产生整页横滚，隐藏滚动条 */
.hs-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hs-chips::-webkit-scrollbar { display: none; }

.hs-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: var(--font-xs);
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hs-chip-n {
  font-size: 10px;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.hs-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
  font-weight: 500;
}

.hs-chip.is-active .hs-chip-n { color: rgba(255, 255, 255, .82); }

.hs-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.hs-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: var(--font-xs);
}

.hs-time-pill svg { width: 12px; height: 12px; display: block; color: var(--c-ink-3); }
.hs-time-pill:active { background: #F5F8F6; }

.hs-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.hs-reset {
  min-height: 32px;
  padding: 0 8px;
  font-size: var(--font-xs);
  color: var(--c-primary);
}

.hs-more {
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
  color: var(--c-ink-3);
  border-radius: var(--radius-pill);
}

.hs-more:active { background: #F1F4F6; }

/* 结果统计 + 已选条件 */
.hs-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.5;
}

.hs-clr {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: #F7FAF8;
  color: var(--c-ink-2);
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-clr:active { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------------------------- 列表卡片 ---------------------------- */
.hs-list { display: block; }

.hs-card {
  padding: 14px var(--sp-4) 12px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  cursor: pointer;
}

.hs-card + .hs-card { margin-top: var(--sp-3); }

.hs-card:active {
  transform: translateY(-1px);
  background: #FCFDFC;
  border-color: #DCE6E0;
}

.hs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: 6px;
}

/* 来源角标：颜色由内联变量注入，来自 site.js sources */
.hs-card .hs-src,
.hs-relcard .hs-src {
  background: var(--hs-src-soft, #F1F4F6);
  color: var(--hs-src-color, var(--c-ink-2));
  border-color: transparent;
  font-weight: 500;
}

.hs-time {
  flex: none;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
}

.hs-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: .01em;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hs-card-sum {
  margin-top: 6px;
  font-size: var(--font-s);
  line-height: 1.65;
  color: var(--c-ink-2);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hs-card-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

.hs-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}

.hs-hit {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--c-ink-3);
  line-height: 1.5;
}

.hs-ext {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 32px;
  padding: 0 4px;
  font-size: var(--font-xs);
  color: var(--c-primary);
}

.hs-ext svg { width: 12px; height: 12px; display: block; }

/* 卡片右下角极淡"演示数据"标注（阅读量为演示补全） */
.hs-card-demo {
  margin-top: 2px;
  font-size: 10px;
  color: #C3CEC8;
  text-align: right;
  letter-spacing: .04em;
  line-height: 1.4;
}

/* 搜索命中高亮：浅绿底，不改变字重 */
.hs-mark {
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-weight: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ---------------------------- 列表尾部 ---------------------------- */
.hs-end {
  margin: var(--sp-4) 0 var(--sp-2);
  text-align: center;
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: .02em;
}

.hs-end span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hs-end span::before,
.hs-end span::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-line);
}

/* ---------------------------- 底部抽屉选项（时间 / 更多操作） ---------------------------- */
.hs-optlist { display: block; }

.hs-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: #FAFCFB;
  font-size: var(--font-m);
  color: var(--c-ink);
  text-align: left;
}

.hs-opt:last-child { margin-bottom: 0; }
.hs-opt:active { background: var(--c-primary-soft); border-color: #CFE5DA; }

.hs-opt.is-active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  font-weight: 600;
}

.hs-opt > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hs-opt-desc {
  font-size: var(--font-xs);
  font-weight: 400;
  color: var(--c-ink-3);
  line-height: 1.5;
}

.hs-opt svg { width: 18px; height: 18px; flex: none; color: var(--c-ink-3); }

.hs-opt.is-active svg { color: var(--c-primary); }

.hs-opt-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
}

.hs-opt-tip {
  margin-top: var(--sp-3);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
  text-align: left;
}

/* ---------------------------- 详情页 ---------------------------- */
.hs-detail { padding-top: var(--sp-1); }

.hs-d-title {
  margin-top: var(--sp-2);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hs-d-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.5;
}

/* favicon 风格小圆点 */
.hs-d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hs-d-dot, var(--c-primary));
  flex: none;
}

.hs-d-sep { color: var(--c-line); }

.hs-d-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

/* 版权提示条 */
.hs-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: var(--sp-3) 0;
  padding: 10px var(--sp-3);
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: var(--font-xs);
  line-height: 1.62;
  text-align: left;
}

.hs-notice svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--c-primary);
}

/* 演示摘要正文 */
.hs-d-body {
  padding: var(--sp-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  font-size: var(--font-m);
  line-height: 1.78;
  color: var(--c-ink);
  text-align: justify;
}

.hs-d-body p + p { margin-top: var(--sp-3); }

.hs-d-note {
  margin-top: var(--sp-3) !important;
  font-size: var(--font-xs);
  font-style: italic;
  color: var(--c-ink-3);
  line-height: 1.6;
  text-align: right;
}

/* 外跳主按钮区 */
.hs-d-cta { margin-top: var(--sp-4); }

.hs-d-cta .btn svg { width: 15px; height: 15px; display: block; }

.hs-d-cta-note {
  margin-top: var(--sp-2);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 演示用原文链接明文展示（/demo/ 示例路径），保证长串不撑破容器 */
.hs-d-url {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-s);
  background: #F7FAF8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--c-ink-3);
  line-height: 1.55;
  text-align: left;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ---------------------------- 相关热点（横向卡片） ---------------------------- */
.hs-rel { margin-top: var(--sp-2); }

.hs-relscroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-1);
}

.hs-relscroll::-webkit-scrollbar { display: none; }

.hs-relcard {
  flex: 0 0 74%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  text-align: left;
  transition: transform .12s ease, background-color .15s ease;
}

.hs-relcard:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

.hs-relt {
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hs-relm {
  margin-top: auto;
  font-size: 11px;
  color: var(--c-ink-3);
}

/* ---------------------------- 窄屏保护（≤360px） ---------------------------- */
@media (max-width: 360px) {
  .hs-title { font-size: var(--font-l); }
  .hs-card { padding: 12px var(--sp-3) 10px; }
  .hs-card-title { font-size: 14px; }
  .hs-card-sum { font-size: var(--font-xs); }
  .hs-d-title { font-size: var(--font-l); }
  .hs-d-body { padding: var(--sp-3); font-size: 14px; }
  .hs-rowlabel { width: 34px; }
  .hs-relcard { flex-basis: 84%; }
}

/* ==========================================================================
   重要活动模块（.act-*）
   --------------------------------------------------------------------------
   归属：pages/activities.js（#/activities 列表页 + #/activity/:id 详情页）
   约定：
     · 仅使用 :root 既有变量与 base.css 既有组件类（.card / .chip / .btn /
       .clamp-2 / .demo-badge / .sec-title / .page-disclaimer 等）；
     · 政务风：阴影克制（--shadow-1），主色只用于竖条、标签、圆点与链接，
       不铺大面积色块；
     · 所有封面与配图为本地 SVG，统一 display:block + width:100% +
       aspect-ratio，避免加载抖动；
     · 长标题与长文件名一律 word-break + overflow-wrap 保护。
   ========================================================================== */

/* ---------------------------- 页面容器 ---------------------------- */
/* 底部安全区由 .page（base.css）统一预留 tabbar 高度 + 16px，
   此处不再重复叠加 padding-bottom，避免出现双份留白。 */
.act-page { display: block; }

.act-result { display: block; }

/* ---------------------------- 页头 ---------------------------- */
.act-head { padding: var(--sp-2) 0 var(--sp-3); }

.act-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.act-title {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--c-ink);
  line-height: 1.35;
}

.act-sub {
  margin-top: 6px;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
}

/* ---------------------------- 标签筛选条 ---------------------------- */
.act-chipbar { margin: 0 0 var(--sp-3); }

.act-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.act-chips::-webkit-scrollbar { display: none; }

.act-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: var(--font-xs);
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.act-chip:active { background: var(--c-primary-soft); }

.act-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
  font-weight: 500;
}

.act-chip-n {
  font-size: 10px;
  color: var(--c-ink-3);
  background: #F0F4F2;
  border-radius: var(--radius-pill);
  padding: 1px 5px;
  line-height: 1.5;
}

.act-chip.is-active .act-chip-n {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
}

/* ---------------------------- 头条卡（16:9 大图 + 渐变遮罩） ---------------------------- */
.act-hero {
  position: relative;
  display: block;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .12s ease;
}

.act-hero:active { transform: translateY(-1px); }

.act-hero-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg);
}

.act-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-hero-demo {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .82);
  color: var(--c-ink-3);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .02em;
}

.act-hero-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px var(--sp-4) 12px;
  background: linear-gradient(180deg, rgba(10, 30, 24, 0) 0%, rgba(10, 30, 24, .62) 58%, rgba(10, 30, 24, .80) 100%);
  color: #FFFFFF;
}

.act-hero-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .20);
  font-size: 11px;
  line-height: 1.7;
}

.act-hero-title {
  margin: 0;
  font-size: var(--font-l);
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, .86);
  min-width: 0;
}

.act-hero-loc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-dot { color: var(--c-ink-3); }

.act-hero-meta .act-dot { color: rgba(255, 255, 255, .55); }

/* ---------------------------- 普通卡（左图右文） ---------------------------- */
.act-list { display: block; }

.act-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}

.act-card + .act-card { margin-top: var(--sp-3); }

.act-card:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

.act-card-media {
  flex: none;
  width: 96px;
  /* 修复：原为 96×72（4:3），而活动封面 SVG 统一为 640×360（16:9），
     object-fit:cover 会裁掉左右各约 12% 的画面。改用 16:9 后构图完整，
     同时保留 width/height 显式尺寸、不产生 CLS 抖动。 */
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
}

.act-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-card-main {
  flex: 1;
  min-width: 0;
}

.act-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.act-card-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}

/* 右上角月-日小块：视觉锚点，不做交互 */
.act-card-date {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink-3);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.act-card-title {
  margin: 5px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-card-sum {
  margin: 5px 0 0;
  font-size: var(--font-s);
  line-height: 1.6;
  color: var(--c-ink-2);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-card-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  /* 修复：原 11px 低于正文下限；该行是"日期 · 阅读 N（演示）"组合，
     日期与阅读量属可读元信息，提到 12px。flex-wrap 已保证窄屏可换行。 */
  font-size: 12px;
  color: var(--c-ink-3);
  flex-wrap: wrap;
}

/* ---------------------------- 列表尾部 ---------------------------- */
.act-end {
  margin: var(--sp-4) 0 var(--sp-2);
  text-align: center;
}

.act-end span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 修复：列表尾部"已显示全部 N 条"原为 11px，提到 12px 与正文一致 */
  font-size: 12px;
  color: var(--c-ink-3);
}

.act-end span::before,
.act-end span::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-line);
}

/* ---------------------------- 返回行 ---------------------------- */
.act-backrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 44px;
}

.act-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-left: -8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
  font-size: var(--font-s);
  border-radius: var(--radius-s);
}

.act-back:active { color: var(--c-primary); }

.act-back-arrow {
  font-size: 18px;
  line-height: 1;
  margin-top: -2px;
}

.act-crumb {
  flex: 1;
  min-width: 0;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------- 详情页：标题区 ---------------------------- */
.act-detail { padding-top: 0; }

.act-article { display: block; }

.act-d-head {
  position: relative;
  padding: var(--sp-1) 0 var(--sp-3);
}

/* 右上"演示内容"角标：float 右浮动，标题首行自动避让，
   且 isDemo 为 false 时不产生多余空白 */
.act-d-demo {
  float: right;
  margin: 2px 0 4px 8px;
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #F6F8F7;
  color: var(--c-ink-3);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
}

.act-d-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-d-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  line-height: 1.6;
  flex-wrap: wrap;
  min-width: 0;
}

.act-d-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.act-d-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: 11px;
  line-height: 1.8;
  white-space: nowrap;
}

/* ---------------------------- 详情页：封面与导语 ---------------------------- */
.act-cover {
  margin: 0 0 var(--sp-3);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-bg);
}

.act-cover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.act-lead {
  margin: 0 0 var(--sp-3);
  padding: 10px var(--sp-3);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: #FBFCFB;
  font-size: var(--font-s);
  line-height: 1.8;
  color: var(--c-ink-2);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ---------------------------- 详情页：正文块 ---------------------------- */
.act-body { display: block; }

/* p —— 15px / 1.85 / 两端对齐 / 段间距 14px / 不缩进 */
.act-p {
  margin: 0 0 14px;
  font-size: var(--font-m);
  line-height: 1.85;
  color: var(--c-ink);
  text-align: justify;
  text-indent: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-body > :last-child { margin-bottom: 0; }

/* h2 —— 16px/600，上 20 下 10，左侧 3px 主色竖条 */
.act-h2 {
  display: block;
  margin: 20px 0 10px;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  border-left: 3px solid var(--c-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* img —— 整宽圆角 + 12px 居中灰字说明 */
.act-fig {
  margin: 14px 0;
  display: block;
}

.act-fig-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--c-bg);
}

.act-fig-cap {
  margin-top: 6px;
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  text-align: center;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* quote —— 左 3px 主色边 + 浅主色底 + 13.5px 斜体 */
.act-quote {
  margin: 14px 0;
  padding: 10px var(--sp-3);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--c-primary-soft);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.8;
  color: var(--c-primary-deep);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* list —— 自定义主色圆点，padding-left:18px，行高 1.8
   （正文列表用 .act-ul，与列表页的卡片容器 .act-list 区分开） */
.act-body .act-ul {
  margin: 12px 0;
  padding-left: 18px;
  list-style: none;
}

.act-body .act-ul li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 4px;
  font-size: var(--font-m);
  line-height: 1.8;
  color: var(--c-ink);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-body .act-ul li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary);
}

.act-body .act-ul li:last-child { margin-bottom: 0; }

/* ---------------------------- 详情页：文末声明与附件 ---------------------------- */
.act-divider {
  height: 1px;
  margin: var(--sp-5) 0 var(--sp-3);
  background: var(--c-line);
}

.act-note {
  margin: 0 0 var(--sp-4);
  font-size: var(--font-xs);
  color: var(--c-ink-3);
  text-align: center;
  line-height: 1.6;
}

.act-atts {
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.act-atts-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.act-atts-hd h2 {
  margin: 0;
  padding-left: 8px;
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  border-left: 3px solid var(--c-primary);
}

.act-atts-n {
  flex: none;
  font-size: 11px;
  color: var(--c-ink-3);
}

.act-att {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 0;
  border-top: 1px dashed var(--c-line);
}

.act-att:first-of-type { border-top: 0; }

/* 类型徽标：扁平方块 24×24，白字 */
.act-att-type {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.act-att-type.is-pdf { background: #C0392B; }
.act-att-type.is-docx { background: #1F5FA8; }

.act-att-name {
  flex: 1;
  min-width: 0;
  font-size: var(--font-s);
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-att-size {
  flex: none;
  font-size: 11px;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.act-att-dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-card);
  color: var(--c-primary);
  font-size: 11px;
  line-height: 1;
}

.act-att-dl svg { width: 12px; height: 12px; display: block; }
.act-att-dl:active { background: var(--c-primary-soft); border-color: #CFE5DA; }

/* ---------------------------- 详情页：相关活动（横向卡片） ---------------------------- */
.act-rel { margin-top: var(--sp-2); }

.act-relscroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.act-relscroll::-webkit-scrollbar { display: none; }

.act-relcard {
  flex: 0 0 78%;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  text-align: left;
  transition: transform .12s ease, background-color .15s ease;
}

.act-relcard:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

.act-relcard-media {
  flex: none;
  width: 64px;
  /* 修复：原 64×48（4:3）与封面 SVG 的 16:9 不一致，cover 会裁掉画面两侧 */
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
}

.act-relcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-relcard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.act-relcard-tag {
  align-self: flex-start;
  padding: 0 6px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: 10px;
  line-height: 1.7;
}

.act-relcard-title {
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.act-relcard-date {
  margin-top: auto;
  font-size: 11px;
  color: var(--c-ink-3);
}

/* ---------------------------- 窄屏保护（≤360px） ---------------------------- */
@media (max-width: 360px) {
  .act-title { font-size: var(--font-l); }
  .act-chip { min-height: 30px; padding: 0 10px; }
  .act-hero-mask { padding: 26px var(--sp-3) 10px; }
  .act-hero-title { font-size: var(--font-m); }
  .act-card { padding: 10px; gap: 10px; }
  /* 修复：与 16:9 封面保持一致，窄屏同样按比例缩放 */
  .act-card-media { width: 84px; height: auto; aspect-ratio: 16 / 9; }
  .act-card-title { font-size: 14px; }
  .act-card-sum { font-size: var(--font-xs); }
  .act-d-title { font-size: var(--font-l); }
  .act-p { font-size: 14px; line-height: 1.8; }
  .act-h2 { font-size: var(--font-m); margin: 18px 0 8px; }
  .act-lead { padding: 8px 10px; }
  .act-att { gap: 6px; }
  .act-att-dl { padding: 0 7px; }
  .act-relcard { flex-basis: 86%; }
}

/* ≤340px：普通卡改为上图下文，避免 96×72 图挤压标题 */
@media (max-width: 340px) {
  .act-card {
    display: block;
  }

  .act-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
  }

  .act-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================================
   中心概况（人员 / 设备 / 场地）—— pages/overview.js 专用样式
   --------------------------------------------------------------------------
   服务页面：#/overview/people  #/overview/equipment  #/overview/venue
   约定：
     · 仅使用 base.css :root 变量与既有组件类（.card / .sec-title / .chip /
       .btn / .input / .demo-badge / .clamp-2 / .clamp-3 / .page-disclaimer）；
     · 组织架构图与面积条形图均为纯 HTML + CSS（伪元素画连接线），
       不使用 canvas，保证可打印与缩放；
     · 三档断点：≤360px / 360—480px / ≥640px 均已适配；
       长设备名与长表格一律 word-break + 独立滚动容器，不产生整页横滚。
   ========================================================================== */

/* ---------------------------- 页头 ---------------------------- */
.ov-head { padding: var(--sp-2) 0 var(--sp-3); }

.ov-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.ov-title {
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--c-ink);
}

.ov-lead {
  margin-top: 6px;
  font-size: var(--font-xs);
  line-height: 1.7;
  color: var(--c-ink-3);
  text-align: justify;
}

/* ---------------------------- 通用小件 ---------------------------- */
.ov-section { margin-top: var(--sp-5); }

.ov-subtitle {
  margin: var(--sp-3) 0 var(--sp-2);
  padding-left: 8px;
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  border-left: 3px solid var(--c-primary);
}

.ov-note {
  margin: var(--sp-3) 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-3);
  text-align: justify;
}

.ov-note--tight { margin: 6px 0 0; }

.ov-muted {
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-3);
}

.ov-dot {
  margin: 0 4px;
  color: var(--c-ink-3);
}

.ov-end {
  margin: var(--sp-4) 0 var(--sp-2);
  text-align: center;
  /* 修复："当前展示 N 条实名记录"等统计句原为 11px，提到 12px */
  font-size: 12px;
  color: var(--c-ink-3);
}

.ov-reserve {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-m);
  background: #FBFCFB;
}

.ov-reserve p {
  font-size: var(--font-xs);
  line-height: 1.8;
  color: var(--c-ink-2);
  text-align: justify;
}

.ov-reserve p + p { margin-top: 6px; }

/* ---------------------------- 关键指标条（2×3） ---------------------------- */
.ov-metrics { margin: var(--sp-1) 0 0; }

.ov-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-line);
}

.ov-metric {
  min-width: 0;
  padding: 10px 8px;
  background: var(--c-card);
  text-align: center;
}

.ov-metric-num {
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
}

.ov-metric-unit {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-ink-2);
}

.ov-metric-label {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--c-ink-2);
}

.ov-metric-note {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--c-ink-3);
  word-break: break-word;
}

.ov-metrics-src {
  margin-top: 6px;
  font-size: 10px;
  color: var(--c-ink-3);
  text-align: right;
}

/* ---------------------------- 组织架构图（纯 CSS） ---------------------------- */
/* 结构：中心卡 → 决策层 → 管理层 → 执行层；
   层间与节点间的连接线全部由伪元素绘制，不使用 canvas / SVG 库。 */
.ov-org { margin-top: var(--sp-5); }

.ov-org-canvas {
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, #FAFCFB 0%, #FFFFFF 60%);
}

.ov-org-center {
  position: relative;
  margin: 0 auto;
  padding: 10px var(--sp-3);
  border-radius: var(--radius-m);
  background: var(--c-primary);
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.ov-org-center::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 1px;
  height: 16px;
  background: var(--c-line);
}

.ov-org-center-name {
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.ov-org-center-sub {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

.ov-org-tier {
  position: relative;
  margin-top: 26px;
}

/* 层间竖线 */
.ov-org-tier::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 1px;
  height: 16px;
  background: var(--c-line);
}

.ov-org-level {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-primary-deep);
}

.ov-org-level-hint {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-ink-3);
}

.ov-org-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-3);
}

/* 两节点层的横向连接线：在两节点中线之间画一条横线 */
.ov-org-tier[data-nodes="2"] .ov-org-nodes::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: -10px;
  height: 1px;
  background: var(--c-line);
}

.ov-org-node {
  position: relative;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-card);
  box-shadow: var(--shadow-1);
}

/* 每个节点上方短竖线 */
.ov-org-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 1px;
  height: 10px;
  background: var(--c-line);
}

.ov-org-node-name {
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-org-node-desc {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--c-ink-3);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 执行层（5 节点）：窄屏 2 列网格 + 缩略描述 */
.ov-org-tier[data-nodes="5"] .ov-org-nodes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ov-org-tier[data-nodes="5"] .ov-org-node-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 共建单位 chips */
.ov-org-partners {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-line);
}

.ov-org-partners-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-ink-2);
}

.ov-org-partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ov-org-partner {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: 11px;
  line-height: 1.7;
  word-break: break-word;
}

/* ---------------------------- 分组 chips / 搜索 ---------------------------- */
.ov-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-3);
  padding: 4px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ov-toolbar::-webkit-scrollbar { display: none; }

.ov-chip-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: var(--font-xs);
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ov-chip-btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
  font-weight: 500;
}

.ov-chip-n {
  font-size: 10px;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.ov-chip-btn.is-active .ov-chip-n { color: rgba(255, 255, 255, .82); }

/* 搜索框 */
.ov-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.ov-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-ink-3);
  pointer-events: none;
}

.ov-search-ico svg { width: 16px; height: 16px; display: block; }

.ov-search-input {
  padding-left: 36px;
  padding-right: 40px;
  border-radius: var(--radius-pill);
  background: var(--c-card);
}

.ov-search-input::-webkit-search-cancel-button { display: none; }

.ov-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--c-ink-3);
}

.ov-search-clear svg { width: 14px; height: 14px; display: block; }
.ov-search-clear:active { background: #F1F4F6; color: var(--c-ink); }

/* ---------------------------- 人员卡片 ---------------------------- */
.ov-people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.ov-person {
  position: relative;
  min-width: 0;
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.ov-person-demo {
  position: absolute;
  top: 8px;
  right: 8px;
}

.ov-person-top {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-right: 56px;
}

/* 头像占位：姓名首字 + 主色系四档深浅，按 id 取模，保证同一人颜色稳定 */
.ov-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: var(--font-l);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}

.ov-avatar--1 { background: #E8F4EF; color: #0A5C43; }
.ov-avatar--2 { background: #D6EBE2; color: #0E7C5A; }
.ov-avatar--3 { background: #E6F2F8; color: #12658E; }
.ov-avatar--4 { background: #EDF1EE; color: #46574F; }

.ov-person-id { flex: 1; min-width: 0; }

.ov-person-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  word-break: break-word;
}

.ov-person-role {
  margin-top: 2px;
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-person-org {
  margin-top: 2px;
  font-size: var(--font-xs);
  line-height: 1.6;
  color: var(--c-ink-3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: var(--sp-2);
}

.ov-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-s);
  font-size: 11px;
  line-height: 1.8;
  word-break: break-word;
}

.ov-chip--tier {
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  white-space: nowrap;
}

.ov-chip--dir {
  background: #F3F6F4;
  color: var(--c-ink-2);
}

.ov-chip--cat {
  background: var(--c-tech-soft);
  color: #12658E;
  white-space: nowrap;
}

.ov-chip--hl {
  border: 1px solid var(--c-line);
  background: #FBFCFB;
  color: var(--c-ink-2);
}

.ov-person-intro {
  margin-top: var(--sp-2);
  font-size: var(--font-s);
  line-height: 1.72;
  color: var(--c-ink-2);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-person-intro.is-open { display: block; }

.ov-person-more {
  margin-top: 4px;
  min-height: 28px;
  padding: 0 2px;
  font-size: 11px;
  color: var(--c-primary);
}

.ov-person-more:active { color: var(--c-primary-deep); }

.ov-person-duty {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--c-line);
  font-size: 11px;
  line-height: 1.65;
  color: var(--c-ink-3);
  word-break: break-word;
}

/* ---------------------------- 设备：口径说明卡 ---------------------------- */
.ov-caliber {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3);
  border: 1px solid #CFE5DA;
  border-radius: var(--radius-m);
  background: var(--c-primary-soft);
}

.ov-caliber-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-2);
}

.ov-caliber-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--c-primary-deep);
}

.ov-caliber-ico svg { width: 16px; height: 16px; display: block; }

.ov-caliber-hd h2 {
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-primary-deep);
}

.ov-caliber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.ov-caliber-item {
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .78);
}

.ov-caliber-label {
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.ov-caliber-num {
  margin-top: 2px;
  font-size: var(--font-l);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-primary-deep);
  font-variant-numeric: tabular-nums;
}

.ov-caliber-amt {
  font-size: var(--font-xs);
  line-height: 1.6;
  color: var(--c-ink);
  word-break: break-word;
}

.ov-caliber-scope {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--c-ink-3);
}

.ov-caliber-warn {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px dashed #CFE5DA;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-warn);
  text-align: justify;
}

.ov-caliber-warn svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

/* ---------------------------- 设备：视图切换 / 筛选 ---------------------------- */
.ov-equip-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: var(--sp-2);
}

.ov-viewtoggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
}

.ov-vt {
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1;
  color: var(--c-ink-3);
  transition: background-color .15s ease, color .15s ease;
}

.ov-vt.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-weight: 600;
}

.ov-filter { margin-bottom: var(--sp-3); }

.ov-chiprow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 2px;
}

.ov-rowlabel {
  flex: none;
  width: 32px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--c-ink-3);
}

/* 横向滚动 chip 组：容器内滚动，不产生整页横滚 */
.ov-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ov-chips::-webkit-scrollbar { display: none; }

/* ---------------------------- 设备卡片 ---------------------------- */
.ov-eqgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.ov-eqcard {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}

.ov-eqcard:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

.ov-eq-shared {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1px 7px;
  border-radius: 0 var(--radius-m) 0 var(--radius-s);
  background: var(--c-tech);
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .02em;
}

.ov-eqcard-media {
  flex: none;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
}

.ov-eqcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ov-eqcard-main { flex: 1; min-width: 0; }

.ov-eqcard-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqcard-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.ov-eqcard-param {
  margin-top: 5px;
  font-size: var(--font-xs);
  line-height: 1.6;
  color: var(--c-ink-3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqcard-usage {
  margin-top: 4px;
  font-size: var(--font-s);
  line-height: 1.6;
  color: var(--c-ink-2);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqcard-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed var(--c-line);
}

.ov-eqcard-platform {
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqcard-value {
  flex: none;
  font-size: 11px;
  color: var(--c-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------- 设备列表视图（紧凑两行） ---------------------------- */
.ov-eqlist {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-card);
  overflow: hidden;
}

.ov-eqrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--c-line);
  cursor: pointer;
}

.ov-eqrow:last-child { border-bottom: 0; }
.ov-eqrow:active { background: #F7FAF8; }

.ov-eqrow-name {
  grid-column: 1;
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqrow-meta {
  grid-column: 1;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-ink-3);
  word-break: break-word;
}

.ov-eqrow-value {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
  color: var(--c-ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ov-eqrow-shared {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  padding: 0 6px;
  border-radius: var(--radius-s);
  background: var(--c-tech-soft);
  color: #12658E;
  font-size: 10px;
  line-height: 1.7;
  white-space: nowrap;
}

.ov-equip-foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}

.ov-equip-foot p {
  font-size: var(--font-xs);
  line-height: 1.75;
  color: var(--c-ink-2);
  text-align: justify;
}

.ov-equip-foot p + p { margin-top: 4px; }

/* ---------------------------- 设备详情弹窗 ---------------------------- */
.ov-eqdetail { display: block; }

.ov-eqdetail-fig {
  margin: 0 0 var(--sp-3);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-bg);
}

.ov-eqdetail-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.ov-eqdetail-fig figcaption,
.ov-lightbox figcaption {
  padding: 6px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-ink-3);
  text-align: center;
}

/* 两列 key-value 表 */
.ov-kvlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-line);
}

.ov-kv {
  min-width: 0;
  padding: 7px 9px;
  background: var(--c-card);
}

.ov-kv dt {
  font-size: 10px;
  line-height: 1.6;
  color: var(--c-ink-3);
}

.ov-kv dd {
  margin: 1px 0 0;
  font-size: var(--font-xs);
  line-height: 1.65;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-eqdetail-block { margin-top: var(--sp-3); }

.ov-eqdetail-block h4 {
  margin-bottom: 3px;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--c-primary-deep);
}

.ov-eqdetail-block p {
  font-size: var(--font-xs);
  line-height: 1.8;
  color: var(--c-ink-2);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-lightbox { margin: 0; }

.ov-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-s);
  background: var(--c-bg);
}

/* ---------------------------- 场地：总览卡 ---------------------------- */
.ov-totalcard {
  display: flex;
  align-items: stretch;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, var(--c-primary) 0%, #12A075 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-1);
}

.ov-total-main {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--sp-3);
  border-right: 1px solid rgba(255, 255, 255, .28);
}

.ov-total-num {
  font-size: var(--font-xxl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.ov-total-label {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}

.ov-total-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ov-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
}

.ov-total-row b {
  font-weight: 600;
  color: #FFFFFF;
  text-align: right;
  word-break: break-word;
}

.ov-statement {
  margin-top: var(--sp-2);
  padding: 8px 10px;
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: #FBFCFB;
  font-size: 11px;
  line-height: 1.75;
  color: var(--c-ink-2);
  text-align: justify;
}

/* ---------------------------- 场地：面积构成条 ---------------------------- */
.ov-areabox { margin-top: var(--sp-5); }

.ov-areabar {
  display: flex;
  width: 100%;
  height: 26px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-line);
}

.ov-areabar-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ov-areabar-seg + .ov-areabar-seg { border-left: 1px solid rgba(255, 255, 255, .7); }

.ov-areabar-seg--1 { background: #0E7C5A; }
.ov-areabar-seg--2 { background: #17A176; }
.ov-areabar-seg--3 { background: #4FB89A; }
.ov-areabar-seg--4 { background: #8FD0BB; }

.ov-areabar-pct {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.ov-areabar-seg--4 .ov-areabar-pct { color: var(--c-primary-deep); }

.ov-arealegend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: var(--sp-2);
}

.ov-arealegend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-2);
}

.ov-arealegend-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.ov-arealegend-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-arealegend-val {
  flex: none;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.ov-arealegend-pct {
  flex: none;
  width: 42px;
  text-align: right;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.ov-areabar-note { margin-top: var(--sp-2); }

/* ---------------------------- 场地：站点卡片 ---------------------------- */
.ov-site {
  margin-bottom: var(--sp-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.ov-site-cover {
  position: relative;
  background: var(--c-bg);
}

.ov-site-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ov-site-cover-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-s);
  background: rgba(10, 30, 24, .66);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
}

.ov-site-bd { padding: var(--sp-3); }

.ov-site-hd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.ov-site-name {
  font-size: var(--font-l);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  word-break: break-word;
}

.ov-site-alias {
  font-size: 11px;
  color: var(--c-ink-3);
  word-break: break-word;
}

.ov-site-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: var(--sp-2);
}

.ov-fact {
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-2);
  word-break: break-word;
}

.ov-fact b {
  margin-right: 3px;
  font-weight: 600;
  color: var(--c-ink-3);
}

/* 口径留痕提示条（浅黄） */
.ov-warnbar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--sp-2);
  padding: 8px 10px;
  border-left: 3px solid var(--c-warn);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--c-warn-soft);
  font-size: 11px;
  line-height: 1.75;
  color: var(--c-warn);
  text-align: justify;
}

.ov-warnbar svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

/* 功能分区表：外层可横向滚动，长文本换行不撑破 */
.ov-zonetable-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
}

.ov-zonetable {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.65;
}

.ov-zonetable thead th {
  padding: 6px 8px;
  background: #F6F8F7;
  color: var(--c-ink-2);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-line);
}

.ov-zonetable td {
  padding: 6px 8px;
  color: var(--c-ink-2);
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ov-zonetable tbody tr:last-child td { border-bottom: 0; }

.ov-zonetable td:first-child {
  font-weight: 500;
  color: var(--c-ink);
}

/* 条件保障列表 */
.ov-condbox { margin-top: var(--sp-2); }

.ov-condlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.ov-cond {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-2);
  text-align: justify;
}

.ov-cond-ico {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--c-primary);
}

.ov-cond-ico svg { width: 15px; height: 15px; display: block; }

.ov-cond-txt {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 特色亮点 chips */
.ov-site-hl {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* 图集缩略 */
.ov-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.ov-thumb {
  flex: 0 0 calc(50% - var(--sp-2) / 2);
  max-width: 200px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
}

.ov-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ov-thumb:active { border-color: var(--c-primary); }

/* ==========================================================================
   断点适配：≤360px / 360—480px / ≥640px
   ========================================================================== */

/* —— ≤360px —— */
@media (max-width: 360px) {
  .ov-title { font-size: var(--font-l); }
  .ov-metric { padding: 8px 4px; }
  .ov-metric-num { font-size: var(--font-l); }
  .ov-metric-label { font-size: 10px; }
  .ov-metric-note { font-size: 9px; }

  .ov-org-canvas { padding: var(--sp-3) var(--sp-2) var(--sp-2); }
  .ov-org-nodes { gap: 6px; }
  .ov-org-node { padding: 7px 8px; }
  .ov-org-node-name { font-size: var(--font-xs); }
  .ov-org-node-desc { font-size: 10px; line-height: 1.6; }

  .ov-person { padding: 10px; }
  .ov-avatar { width: 38px; height: 38px; font-size: var(--font-m); }
  .ov-person-name { font-size: var(--font-m); }
  .ov-person-top { padding-right: 48px; gap: 6px; }

  .ov-eqcard { padding: 10px; gap: 10px; }
  .ov-eqcard-media { width: 84px; height: 63px; }
  .ov-eqcard-name { font-size: 14px; }
  .ov-eqcard-usage { font-size: var(--font-xs); }
  .ov-eqcard-foot { flex-wrap: wrap; }
  .ov-eqcard-value { white-space: normal; }

  .ov-kvlist { grid-template-columns: 1fr; }

  .ov-totalcard { gap: var(--sp-2); padding: 10px; }
  .ov-total-num { font-size: var(--font-xl); }
  .ov-total-row { font-size: 10px; }

  .ov-thumb { flex-basis: 100%; max-width: 100%; }

  .ov-caliber { padding: 10px; }
  .ov-cond { font-size: 10px; }
  .ov-zonetable { font-size: 10px; }
}

/* —— 360—480px：分区表转两列卡片式，避免横向滚动 —— */
@media (min-width: 360px) and (max-width: 480px) {
  .ov-zonetable { min-width: 0; }
  .ov-zonetable thead { display: none; }
  .ov-zonetable tbody { display: block; }
  .ov-zonetable tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px var(--sp-3);
    padding: 7px 9px;
    border-bottom: 1px solid var(--c-line);
  }
  .ov-zonetable tbody tr:last-child { border-bottom: 0; }
  .ov-zonetable td {
    display: block;
    padding: 0;
    border: 0;
  }
  .ov-zonetable td:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--c-ink);
  }
  .ov-zonetable td:last-child { grid-column: 1 / -1; }
  .ov-zonetable td[data-label]::before {
    content: attr(data-label) "：";
    font-size: 10px;
    color: var(--c-ink-3);
  }
  .ov-caliber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-arealegend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--sp-3); }
}

/* —— ≥640px：人员/设备两列，条件与图集两列，指标条 6 列，执行层 5 列 —— */
@media (min-width: 640px) {
  .ov-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-eqgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-eqcard-media { width: 132px; height: 99px; }
  .ov-condlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px var(--sp-3); }
  .ov-caliber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-metrics-grid { grid-template-columns: repeat(6, 1fr); }
  .ov-arealegend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--sp-4); }

  .ov-org-tier[data-nodes="5"] .ov-org-nodes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ov-org-tier[data-nodes="5"] .ov-org-node-desc {
    display: block;
    overflow: visible;
  }

  .ov-site-bd { padding: var(--sp-4); }
  .ov-thumb { flex: 0 0 160px; }
}

/* —— ≥760px：间距放宽 —— */
@media (min-width: 760px) {
  .ov-org-nodes { gap: var(--sp-3) var(--sp-4); }
  .ov-eqgrid { gap: var(--sp-4); }
  .ov-people-grid { gap: var(--sp-4); }
}

/* ==========================================================================
   数字计量 —— pages/metrology.js 专用样式（.mt-* 前缀）
   --------------------------------------------------------------------------
   服务页面：#/metrology 列表页  #/metrology/:id 详情页
   约定：
     · 仅使用 base.css :root 变量与既有组件类（.card / .chip / .btn / .input /
       .clamp-2 / .demo-badge / .sec-title / .page-disclaimer，以及
       activities 的 .act-backrow / .act-back / .act-body / .act-p / .act-h2 /
       .act-fig / .act-quote / .act-ul / .act-att* 等正文与附件行样式）；
     · 标准规范走"主色（绿）+ 文件感"，计量技术走"科技蓝 + 数据感"；
       主色只用于竖条、徽标、圆点与链接，不铺大面积色块；
     · 三档断点：≤360px / 360—480px / ≥640px（≥640 时列表两列）；
     · 长标准号、公式、长文件名一律 word-break + 独立 overflow-x 容器，
       不产生整页横向滚动。
   ========================================================================== */

/* ---------------------------- 页面容器 ---------------------------- */
.mt-page { display: block; }

.mt-result { display: block; }

/* ---------------------------- 页头 ---------------------------- */
.mt-head { padding: var(--sp-2) 0 var(--sp-3); }

.mt-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.mt-title {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--c-ink);
}

.mt-sub {
  margin-top: 6px;
  font-size: var(--font-xs);
  line-height: 1.6;
  color: var(--c-ink-3);
}

/* ---------------------------- 顶部数据条（3 格） ---------------------------- */
.mt-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-line);
  margin-bottom: 4px;
}

.mt-stat {
  min-width: 0;
  padding: 10px 8px;
  background: var(--c-card);
  text-align: center;
}

.mt-stat--live { background: #FBFDFC; }

.mt-stat-num {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-primary-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.mt-stat-num span {
  margin-left: 1px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-ink-3);
}

.mt-stat-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink-2);
}

.mt-stat-note {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--c-ink-3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mt-src {
  margin: 0 0 var(--sp-3);
  font-size: 10px;
  line-height: 1.6;
  color: var(--c-ink-3);
}

/* ---------------------------- Tab（等宽三段） ---------------------------- */
.mt-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}

.mt-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.2;
  transition: color .15s ease;
}

.mt-tab-n {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-ink-3);
  font-variant-numeric: tabular-nums;
}

.mt-tab.is-active {
  color: var(--c-primary);
  font-weight: 600;
}

.mt-tab.is-active .mt-tab-n { color: var(--c-primary); }

/* 主色下划线：贴住容器底边 */
.mt-tab.is-active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-primary);
}

/* ---------------------------- 筛选区 ---------------------------- */
.mt-filter { margin-bottom: var(--sp-3); }

.mt-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.mt-search-ico {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--c-ink-3);
  pointer-events: none;
}

.mt-search-ico svg { display: block; width: 100%; height: 100%; }

.mt-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  font-size: var(--font-s);
}

.mt-search-input::-webkit-search-cancel-button { display: none; }

.mt-search-clear {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink-3);
}

.mt-search-clear svg { width: 13px; height: 13px; display: block; }

.mt-chiprow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.mt-rowlabel {
  flex: none;
  padding-top: 8px;
  width: 28px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--c-ink-3);
  letter-spacing: .02em;
}

.mt-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.mt-chips::-webkit-scrollbar { display: none; }

.mt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.mt-chip:active { background: var(--c-primary-soft); }

.mt-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
  font-weight: 500;
}

.mt-chip-n {
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: #F0F4F2;
  color: var(--c-ink-3);
  font-size: 10px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.mt-chip.is-active .mt-chip-n {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
}

/* 二级方向 chip：科技蓝，与一级类别（主色）形成层级区分 */
.mt-chip--sub.is-active {
  background: var(--c-tech);
  border-color: var(--c-tech);
}

.mt-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 2px;
}

.mt-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: 11.5px;
}

.mt-sort-pill svg { width: 12px; height: 12px; display: block; color: var(--c-ink-3); }

.mt-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mt-reset {
  border: 0;
  background: transparent;
  color: var(--c-primary);
  font-size: 11.5px;
  padding: 4px 2px;
}

.mt-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-card);
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1;
}

.mt-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  /* 修复："结果 N 项 · 已选：…"统计句原为 11px，提到 12px；
     flex-wrap 已保证窄屏可换行，不会撑破宽度。 */
  font-size: 12px;
  color: var(--c-ink-3);
}

.mt-clr {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border: 1px solid #CFE5DA;
  border-radius: var(--radius-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  font-size: 10.5px;
  line-height: 1.6;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------- 列表卡片 ---------------------------- */
.mt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }

.mt-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 11px 11px 11px 10px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}

.mt-card:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

/* 左侧类型标识 —— 标准规范：主色竖块 + 文件图标 + 类型小字 */
.mt-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 44px;
  padding-top: 2px;
}

.mt-rail--std .mt-rail-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--c-primary);
}

.mt-rail-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
}

.mt-rail-ico svg { width: 15px; height: 15px; display: block; }

.mt-rail-type {
  /* 修复：原 9px 低于"辅助信息不小于 11px"的下限，窄屏下几乎不可读 */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--c-ink-3);
  text-transform: uppercase;
}

/* 左侧类型标识 —— 计量技术：科技蓝圆点 + "技术" */
.mt-rail--tech .mt-rail-dot {
  width: 10px;
  height: 10px;
  margin: 5px 0 6px;
  border-radius: 50%;
  background: var(--c-tech);
  box-shadow: 0 0 0 4px var(--c-tech-soft);
}

.mt-rail-tag {
  padding: 1px 5px;
  border-radius: var(--radius-s);
  background: var(--c-tech-soft);
  color: #125F86;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.mt-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 版本角标：贴右上角细边框小标，显著但不喧宾夺主 */
.mt-card-flag {
  position: absolute;
  top: -1px;
  right: 8px;
  padding: 1px 7px;
  border: 1px solid;
  border-top: 0;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  background: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .02em;
  white-space: nowrap;
}

.mt-card-flag.is-soon {
  border-color: #E0A94A;
  color: var(--c-warn);
  background: var(--c-warn-soft);
}

.mt-card-flag.is-draft {
  border-color: #D98B74;
  color: #A6402A;
  background: #FCEFE9;
}

.mt-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 有"即将实施/拟发布"角标时，标题右让出角标宽度，避免文字被盖 */
.mt-card-main.is-flagged .mt-card-title { padding-right: 46px; }

/* 标准号：等宽感 + 科技蓝，长编号可换行不溢出 */
.mt-card-code {
  margin: 3px 0 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--c-tech);
  letter-spacing: .01em;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mt-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 5px;
  font-size: var(--font-xs);
  line-height: 1.5;
  color: var(--c-ink-3);
  min-width: 0;
}

.mt-card-cat {
  flex: none;
  padding: 0 6px;
  border-radius: var(--radius-s);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  /* 修复：原 10.5px 低于辅助信息 11px 下限 */
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}

.mt-card--tech .mt-card-cat {
  background: var(--c-tech-soft);
  color: #125F86;
}

.mt-card-pub {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mt-card-date {
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 版本标签（元信息行内联）：现行中性灰 / 即将实施橙 / 拟发布橙红 */
.mt-ver {
  flex: none;
  padding: 0 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #F6F8F7;
  color: var(--c-ink-3);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: nowrap;
}

.mt-ver.is-soon {
  border-color: #E0A94A;
  background: var(--c-warn-soft);
  color: var(--c-warn);
  font-weight: 600;
}

.mt-ver.is-draft {
  border-color: #D98B74;
  background: #FCEFE9;
  color: #A6402A;
  font-weight: 600;
}

.mt-ver--lg {
  padding: 1px 8px;
  font-size: 11.5px;
}

.mt-card-sum {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-2);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mt-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
  font-size: 11px;
  color: var(--c-ink-3);
}

.mt-card-dot { color: var(--c-line); }

.mt-card-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-card);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

.mt-btn svg { width: 12px; height: 12px; display: block; }

.mt-btn--ghost { color: var(--c-primary); }

.mt-btn--ghost:active {
  background: var(--c-primary-soft);
  border-color: #CFE5DA;
}

/* 搜索结果高亮 */
.mt-mark {
  padding: 0 1px;
  border-radius: 2px;
  background: #FFF1C9;
  color: inherit;
}

/* ---------------------------- 列表尾部 ---------------------------- */
.mt-end {
  margin: var(--sp-4) 0 var(--sp-2);
  text-align: center;
}

.mt-end span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 修复：列表尾部"已显示全部 N 项"原为 11px，提到 12px 与正文一致 */
  font-size: 12px;
  color: var(--c-ink-3);
}

.mt-end span::before,
.mt-end span::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-line);
}

.mt-disclaimer {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--c-ink-3);
  text-align: justify;
}

/* ---------------------------- 底部抽屉选项（排序 / 更多） ---------------------------- */
.mt-optlist { display: block; }

.mt-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: 48px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  color: var(--c-ink);
  line-height: 1.5;
}

.mt-opt:last-child { border-bottom: 0; }

.mt-opt.is-active, .mt-opt:active { color: var(--c-primary); }

.mt-opt-desc {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--c-ink-3);
  font-weight: 400;
}

.mt-opt-check { width: 16px; height: 16px; flex: none; color: var(--c-primary); }
.mt-opt-check svg { display: block; width: 100%; height: 100%; }

.mt-opt-tip {
  margin: var(--sp-3) 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--c-ink-3);
}

/* ---------------------------- 详情页：标题区 ---------------------------- */
.mt-detail { padding-top: 0; }

.mt-article { display: block; }

.mt-d-head { padding: var(--sp-1) 0 var(--sp-3); }

.mt-d-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.mt-d-type {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-s);
  background: var(--c-primary);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.mt-d-type.is-tech {
  background: var(--c-tech);
}

.mt-d-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 标准号：等宽、科技蓝、可点击复制；长编号换行不溢出 */
.mt-d-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px dashed #C7DDE9;
  border-radius: var(--radius-s);
  background: var(--c-tech-soft);
  color: var(--c-tech);
  text-align: left;
}

.mt-d-code-txt {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .01em;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mt-d-code-copy {
  flex: none;
  padding-left: 7px;
  border-left: 1px solid #C7DDE9;
  font-size: 10.5px;
  color: #125F86;
}

/* ---------------------------- 详情页：信息表（两列 key-value） ---------------------------- */
.mt-info {
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--sp-3);
}

.mt-kvgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-s);
  background: var(--c-line);
  overflow: hidden;
}

.mt-kv {
  min-width: 0;
  padding: 7px 9px;
  background: var(--c-card);
}

/* 版本非现行时整行浅黄高亮 */
.mt-kv.is-pending { background: #FEFAF0; }

.mt-kv-k {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-ink-3);
}

.mt-kv-v {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mt-kv.is-pending .mt-kv-v { color: var(--c-warn); }

.mt-info-warn {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  background: var(--c-warn-soft);
  color: var(--c-warn);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: justify;
}

.mt-info-warn svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  display: block;
}

/* ---------------------------- 详情页：摘要卡 ---------------------------- */
.mt-summary {
  margin: 0 0 var(--sp-3);
  padding: 10px var(--sp-3);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--c-primary-soft);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-ink-2);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ---------------------------- 详情页：公式卡 ---------------------------- */
.mt-formula {
  margin: 14px 0;
  padding: 12px var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: #F7F9F8;
  text-align: center;
}

/* 横向滚动容器：长公式不撑破页面 */
.mt-formula-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mt-formula-code {
  display: inline-block;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-ink);
  letter-spacing: .02em;
  white-space: nowrap;
  word-break: keep-all;
}

.mt-formula-scroll::-webkit-scrollbar { height: 4px; }
.mt-formula-scroll::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: #CFDCD6;
}

/* ---------------------------- 详情页：数据口径说明卡 ---------------------------- */
.mt-cal {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: #FBFCFB;
}

.mt-cal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.mt-cal-hd h2 {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid var(--c-tech);
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
}

.mt-cal-tag {
  flex: none;
  padding: 1px 7px;
  border-radius: var(--radius-s);
  background: var(--c-tech-soft);
  color: #125F86;
  font-size: 10px;
  line-height: 1.7;
}

.mt-cal-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed var(--c-line);
}

/* 首行不显示分隔线：.mt-cal-hd 也是 div，用相邻兄弟选择器更可靠 */
.mt-cal-hd + .mt-cal-row { border-top: 0; padding-top: 2px; }

.mt-cal-k {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--c-ink-3);
}

.mt-cal-v {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-ink);
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mt-cal-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: var(--sp-2) 0 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-line);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--c-ink-3);
  text-align: justify;
}

.mt-cal-tip svg {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  display: block;
}

/* ---------------------------- 详情页：文末、附件、下载进度 ---------------------------- */
.mt-divider {
  height: 1px;
  margin: var(--sp-5) 0 var(--sp-3);
  background: var(--c-line);
}

.mt-atts {
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.mt-atts-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.mt-atts-hd h2 {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid var(--c-primary);
  font-size: var(--font-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
}

.mt-atts-n {
  flex: none;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-ink-3);
  text-align: right;
  word-break: break-word;
}

.mt-atts-n b {
  color: var(--c-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 附件行：沿用 activities 的行样式，额外承载行内进度条 */
.mt-att {
  position: relative;
  flex-wrap: wrap;
  row-gap: 4px;
}

/* 首行不显示顶部虚线（.mt-atts-hd 也是 div，first-of-type 不可靠） */
.mt-atts-hd + .mt-att { border-top: 0; }

.mt-att-dl.is-loading { color: var(--c-ink-3); }
.mt-att-dl.is-done {
  border-color: #CFE5DA;
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
}

.mt-att-bar {
  flex: 0 0 100%;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #EEF3F0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .18s ease;
}

.mt-att.is-downloading .mt-att-bar,
.mt-att.is-done .mt-att-bar { opacity: 1; }

.mt-att-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, #35A97F 100%);
  transition: width .12s linear;
}

.mt-att.is-done .mt-att-fill {
  background: var(--c-primary);
}

.mt-atts-empty,
.mt-atts-tip {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--c-ink-3);
  text-align: justify;
}

.mt-atts-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--c-line);
}

.mt-atts-tip svg {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  display: block;
}

.mt-note {
  margin: var(--sp-4) 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--c-ink-3);
  text-align: center;
}

/* ---------------------------- 详情页：相关推荐（横向卡片） ---------------------------- */
.mt-rel { margin-top: var(--sp-2); }

.mt-relscroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mt-relscroll::-webkit-scrollbar { display: none; }

.mt-relcard {
  flex: 0 0 78%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  text-align: left;
  transition: transform .12s ease, background-color .15s ease;
}

.mt-relcard:active {
  transform: translateY(-1px);
  background: #FCFDFC;
}

.mt-relcard-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mt-relcard-tag {
  padding: 0 6px;
  border-radius: var(--radius-s);
  background: var(--c-tech-soft);
  color: #125F86;
  font-size: 10px;
  line-height: 1.7;
  white-space: nowrap;
}

.mt-relcard-title {
  font-size: var(--font-s);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mt-relcard-meta {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--c-tech);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mt-relcard-date {
  margin-top: auto;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--c-ink-3);
}

/* ---------------------------- 断点：≤360px ---------------------------- */
@media (max-width: 360px) {
  .mt-title { font-size: var(--font-l); }

  .mt-stat { padding: 8px 4px; }
  .mt-stat-num { font-size: var(--font-l); }
  .mt-stat-label { font-size: 10px; }
  .mt-stat-note { font-size: 9px; }

  .mt-tab { font-size: var(--font-xs); }
  .mt-tab-n { display: none; }

  .mt-chip { min-height: 28px; padding: 0 9px; font-size: 11.5px; }
  .mt-rowlabel { width: 24px; }

  .mt-card { padding: 10px 9px; gap: 8px; }
  .mt-rail { width: 34px; }
  .mt-rail-ico { width: 24px; height: 24px; }
  .mt-card-title { font-size: 14px; }
  .mt-card-main.is-flagged .mt-card-title { padding-right: 38px; }
  .mt-card-sum { font-size: var(--font-xs); }
  .mt-card-meta { font-size: 11px; }

  /* 底部操作栏：≤360px 收窄为图标 + 短文字 */
  .mt-card-foot { gap: 4px; }
  .mt-card-acts { gap: 4px; }
  .mt-btn { min-height: 26px; padding: 0 7px; font-size: 10.5px; }
  .mt-btn svg { width: 11px; height: 11px; }

  .mt-d-title { font-size: var(--font-l); }
  .mt-d-code-txt { font-size: var(--font-s); }

  .mt-kvgrid { grid-template-columns: minmax(0, 1fr); }
  .mt-cal-row { grid-template-columns: 80px minmax(0, 1fr); gap: 6px; }
  .mt-cal-v { font-size: var(--font-xs); }

  .mt-formula { padding: 10px 8px; }
  .mt-formula-code { font-size: var(--font-xs); }

  .mt-att { gap: 6px; }
  .mt-relcard { flex-basis: 86%; }
}

/* ---------------------------- 断点：360—480px ---------------------------- */
@media (min-width: 360px) and (max-width: 480px) {
  .mt-card-meta { gap: 4px 6px; }
  /* 移动端元信息允许两行，不挤压标题 */
  .mt-card-pub { max-width: 62%; }
}

/* ---------------------------- 断点：≥640px ---------------------------- */
@media (min-width: 640px) {
  .mt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .mt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-stat { padding: 14px 12px; }
  .mt-stat-num { font-size: var(--font-xl); }
  .mt-stat-label { font-size: var(--font-xs); }
  .mt-stat-note { font-size: 11px; }
  .mt-card-title { font-size: var(--font-m); }
  .mt-relcard { flex-basis: 46%; }
  .mt-d-title { font-size: var(--font-xl); }
  .mt-kvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-formula-code { font-size: 14px; }
}

/* ==========================================================================
   修复（第 8 阶段 · 走查）：移动端触控热区与最小字号
   --------------------------------------------------------------------------
   背景：走查脚本（tools/visual.js）在 320/360/375/414/768 五档宽度下实测，
   发现下列可点击元素的命中区高度小于 44px，最小值仅 26px（≤360px 断点
   还会进一步收窄），不符合"所有可点击元素 ≥44×44px"的要求。
   同时发现一批 8—10.5px 的文字（附件类型徽标、数据来源、计数徽标、
   组织架构节点描述、场地声明等），低于"正文不得小于 12px、
   辅助信息不小于 11px"的下限。

   处理原则（最小改动、不动数据结构与版式骨架）：
     · 只调整 min-height / font-size / padding，不改颜色、圆角、层级与 DOM；
     · chip 类均位于 overflow-x:auto 的横向滚动条内，增高不会撑破布局，
       也不会产生整页横向滚动（已由 tools/visual.js 回归确认）；
     · 计数徽标（*-chip-n / *-tab-n）属辅助信息，统一提到 11px；
     · 正文类（说明、声明、描述、表格单元格）统一提到 12px。
   ========================================================================== */

/* ---- 1. 筛选 chip：30/32px → 44px ---- */
.hs-chip,
.act-chip,
.ov-chip-btn,
.mt-chip {
  min-height: 44px;
  /* 文字已在 inline-flex 内垂直居中，这里只需补足纵向空间 */
}

/* ---- 2. 分段切换 / 视图切换 / 时间与排序胶囊 ---- */
.mt-tab { min-height: 44px; }

.hs-time-pill,
.mt-sort-pill,
.hs-reset {
  min-height: 44px;
}

.ov-vt {
  min-height: 44px;
  min-width: 44px;
}

/* ---- 3. 图标按钮（更多操作 ⋮）---- */
.hs-more,
.mt-more {
  width: 44px;
  height: 44px;
}

/* ---- 4. 行内文字按钮：原文链接 / 下载 / 展开 / 标准号复制 ---- */
.hs-ext,
.act-att-dl,
.mt-att-dl,
.mt-btn,
.ov-person-more,
.mt-d-code-copy {
  min-height: 44px;
}

/* 标准号整体可点击（复制），同步抬高命中区 */
.mt-d-code {
  min-height: 44px;
}

/* 人员"展开/收起"原本 padding 极小，补足左右热区 */
.ov-person-more {
  min-width: 44px;
  padding: 0 8px;
}

/* ≤360px 断点曾把规格按钮压到 26px，这里按可访问性下限覆盖回 44px。
   说明：媒体查询不参与特异性计算，本区块位于文件末尾，
   同特异性规则后者生效，故无需 !important。 */
@media (max-width: 360px) {
  .mt-btn {
    min-height: 44px;
    padding: 0 9px;
    font-size: var(--font-xs);
  }
  .mt-chip {
    min-height: 44px;
  }
}

/* ---- 5. 最小字号：辅助信息 10px/10.5px → 11px ---- */
.hs-chip-n,
.hs-rowlabel,
.ov-chip-n,
.ov-rowlabel,
.mt-chip-n,
.mt-tab-n,
.mt-rowlabel,
.act-chip-n,
.act-hero-demo,
.act-relcard-tag,
.mt-card-flag,
.mt-card-cat,
.mt-relcard-tag,
.mt-d-code-copy,
.mt-ver,
.mt-ver--lg,
.ov-org-level-hint,
.ov-areabar-pct,
.ov-eq-shared,
.ov-chip--tier,
.ov-chip--cat,
.ov-chip--dir,
.ov-chip--hl,
.mt-rail-tag {
  font-size: 11px;
}

/* 附件类型徽标：8px → 11px，同步放大方块避免文字挤压 */
.act-att-type {
  width: 34px;
  height: 26px;
  font-size: 11px;
}

/* ---- 6. 最小字号：正文类 10—11px → 12px ---- */
.ov-metrics-src,
.ov-org-node-desc,
.ov-cond-txt,
.ov-note,
.ov-person-duty,
.ov-statement,
.ov-site-alias,
.ov-eqcard-platform,
.ov-eqcard-value,
.ov-arealegend-name,
.ov-arealegend-val,
.ov-arealegend-pct,
.ov-total-row span,
.hs-d-url,
.hs-hit,
.hs-relm,
.mt-src,
.mt-note,
.mt-disclaimer,
.mt-card-pub,
.mt-card-date,
.mt-card-file,
.mt-card-dl,
.mt-relcard-date,
.mt-relcard-meta,
.act-card-date,
.act-card-tag,
.act-att-size,
.act-atts-n,
.act-d-tag,
.act-d-demo,
.act-hero-tag,
.act-relcard-date,
.quick-desc {
  font-size: 12px;
}

/* 修复：分区表原为 10—11px，低于正文 12px 下限；表格外层已有
   .ov-zonetable-wrap 横向滚动兜底，提到 12px 不会撑破窄屏。 */
.ov-zonetable {
  font-size: 12px;
}

/* 修复：组织架构"共建单位"文字原为 11px，属正文内容，提到 12px */
.ov-org-partner {
  font-size: 12px;
}

/* 修复：列表"已加载全部 N 条"与"尚未生效"提示原为 11px / 11.5px，提到 12px */
.hs-end span,
.mt-ver-note {
  font-size: 12px;
}

/* 修复：计量详情"尚未生效"整句提示原为 11.5px，属关键合规提示，
   提到 12px；该段为块级段落，不影响任何固定宽度布局。 */
.mt-info-warn,
.mt-info-warn span {
  font-size: 12px;
}

/* 修复：附件区"原型演示：不提供真实文件…"说明原为 11px，属正文说明，提到 12px */
.mt-atts-tip,
.mt-atts-tip span {
  font-size: 12px;
}

/* 修复：设备双口径"请勿混用"警示与场地口径留痕属重要说明文字，
   原为 11px，提到 12px 以保证可读性（不影响布局，均为块级段落）。 */
.ov-caliber-warn span,
.ov-caliber-warn,
.ov-warnbar,
.ov-warnbar span {
  font-size: 12px;
}

/* 修复：热点列表卡中的标准编号原为 11.5px，提到 12px（长编号已支持换行） */
.mt-card-code {
  font-size: 12px;
}

/* ==========================================================================
   修复（第 8 阶段 · 走查）：长文本与超长标识兜底
   --------------------------------------------------------------------------
   现象：热点详情页 URL、标准编号、设备型号等长串在窄屏下可能撑破容器。
   处理：统一在正文容器上启用 break-word + anywhere，并对单行省略元素
        显式标注 min-width:0（flex 子项），避免"宽度算小但内容不换行"。
   ========================================================================== */
.hs-d-url,
.mt-d-code-txt,
.mt-relcard-meta,
.act-att-name,
.ov-eqcard-platform,
.ov-eqcard-value,
.mt-kv dd {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* flex 布局中的文本列若缺少 min-width:0，会因不可断行而反向撑宽父级 */
.hs-card-foot,
.mt-card-foot,
.act-card-foot,
.ov-eqcard-foot,
.hs-d-meta,
.act-d-meta,
.mt-card-meta {
  min-width: 0;
}

