/* 首页动态效果（B42）
 *
 * 首页在此之前只有 Bootstrap 轮播自己在动，通篇静态。这一版按「从上往下翻」的顺序铺了
 * 二十处效果，一律只用 transform / translate / scale / opacity / clip-path / filter，
 * 一个字的尺寸、间距、颜色都不改——落位必须跟改版前逐像素一致（tools/home_fx_check.py 盯着）。
 *
 * 分层：
 *   0. 顶部滚动进度条 + 右下「回到顶部」（环形进度、随滚动填充）
 *   1. 横幅：整体淡入 · 当前帧 Ken Burns 缓慢推近 · 指示器做成 5s 进度条 · 箭头磨砂圆
 *   2. 首屏：标题从遮罩里向上擦出 · 正文浮起 · 按钮一次性光晕 · 插画右侧滑入
 *   3. 关于我们：照片左侧滑入 + 斜光扫过 · 标题擦出 · 六条要点逐条浮起 · 圆徽标弹出后呼吸光环
 *   4. 业务范围：标题浮起 · 两侧细线由内向外展开 · 四张卡片错开浮起 + 光泽扫过 + 悬停上浮
 *   5. 视差：首屏插画 / 关于照片 / 圆徽标跟滚动反向位移
 *
 * 三条硬约束（与 page-fx.css 一致，理由见那份文件顶部）：
 *   · 元素默认完全可见；隐藏态只挂在 html.fx-home.fx-ready 之下，这个类由
 *     parts/home_head.html 的内联脚本在 <head> 里加，外链 js 404 或被拦时 1.5s 后撤销；
 *   · 位移只碰 transform / translate / scale，不碰 margin、top、left；
 *   · 系统开了「减少动态效果」就全部给终态。
 *
 * 两个跟旧站样式打架的地方：
 *   · style.css 第一条通配规则 `*{font-size:.925rem;color:#222}` 会压所有子元素，
 *     所以凡是要跟父级同色同字号的地方（拆字 span、图标）都显式写 inherit；
 *     新加的伪元素有文字的话，字号颜色也都写死。这条规则认的是「类选择器比 * 高一级」，
 *     所以只要在类里写 inherit 就能盖住它。
 *   · .translate-middle 带 `transform: translate(-50%,-50%) !important`，圆徽标的入场
 *     如果也用 transform 会被 !important 顶掉。这里改用独立的 scale 属性——它和
 *     transform 是两个属性，各算各的，不会互相覆盖。视差同理用 translate 属性，
 *     跟入场用的 transform 并存。
 */

:root {
  --hfx-ease: cubic-bezier(.16, 1, .3, 1);   /* 落定带一点回弹，收得干净 */
  --hfx-out: cubic-bezier(.22, .61, .36, 1);
  --hfx-green: #198754;                       /* 与首页 .text-success 同色 */
  --hfx-cyan: #20c4d8;
  --hfx-blue: #1b6fe0;
  --hfx-ink: #14181f;
}

/* ---------------- 0. 全局：进度条 / 回到顶部 ---------------- */

.hfx-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1080;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--hfx-green), var(--hfx-cyan));
  box-shadow: 0 0 10px rgba(32, 196, 216, .5);
  opacity: 0;
  transition: opacity .35s var(--hfx-out);
}

.hfx-progress.is-on { opacity: 1; }

/* 按钮在 js 里创建，所以这里必须把 margin / padding / font-size 全写死：
   style.css 的 `*` 会把它们压成 0 和 13.69px。箭头用 SVG 画，不依赖字体图标。 */
.hfx-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 24, 31, .18);
  cursor: pointer;
  z-index: 1075;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.9);
  transition: opacity .4s var(--hfx-out),
              transform .45s var(--hfx-ease),
              box-shadow .35s var(--hfx-out);
}

.hfx-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.hfx-top:hover { box-shadow: 0 10px 28px rgba(20, 24, 31, .26); }
.hfx-top:active { transform: scale(.94); }

.hfx-top svg { display: block; width: 52px; height: 52px; }

/* ---------------- 1. 横幅 ---------------- */

/* 整块淡入：只动 opacity。给横幅做 scale 会在通栏两侧露白边。 */
html.fx-home.fx-ready .hfx-banner {
  opacity: 0;
  transition: opacity .85s var(--hfx-out);
}

html.fx-home.fx-ready .hfx-banner.is-in { opacity: 1; }

/* Ken Burns：每一帧切进来时重新起一次。fill 用 both 是因为它结束就停在
   transform:none，没有悬停位移要留给它，不存在 page-fx 里那个「both 压住 hover」的坑。
   裁切交给 Bootstrap 的 .carousel-inner{overflow:hidden}，不要重复加。 */
html.fx-home.fx-ready .hfx-carousel .carousel-item.active > img {
  animation: hfx-ken 9s var(--hfx-out) both;
}

@keyframes hfx-ken {
  from { transform: scale(1.075); }
  to   { transform: none; }
}

/* 指示器：原来三个小横条，改成 22px 细条，当前帧拉长到 48px 并在里面走一遍 5s 进度。
   Bootstrap 自动轮播是 5s，悬停暂停——这里把进度条也跟着暂停，否则会和画面错位。 */
.hfx-carousel .carousel-indicators { margin-bottom: 14px; }

.hfx-carousel .carousel-indicators [data-bs-target] {
  position: relative;
  width: 22px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background-color: #fff;
  opacity: .5;
  overflow: hidden;
  transition: width .5s var(--hfx-ease), opacity .4s, background-color .4s;
}

.hfx-carousel .carousel-indicators .active {
  width: 48px;
  opacity: .95;
  background-color: rgba(255, 255, 255, .5);
}

.hfx-carousel .carousel-indicators .active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fff, #d6fbff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: hfx-dot 5s linear forwards;
}

.hfx-carousel:hover .carousel-indicators .active::after { animation-play-state: paused; }

@keyframes hfx-dot { to { transform: scaleX(1); } }

/* 左右箭头：悬停时从图标后面浮出一个磨砂圆，不改 Bootstrap 自己的 opacity */
.hfx-carousel .carousel-control-prev::before,
.hfx-carousel .carousel-control-next::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s var(--hfx-out), transform .5s var(--hfx-ease);
  pointer-events: none;
}

.hfx-carousel .carousel-control-prev:hover::before,
.hfx-carousel .carousel-control-next:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ---------------- 2. 首屏 ---------------- */

/* 标题：整段从下往上擦出来。clip-path 挂在 <p> 上而不是里面的 <strong>——
   strong 是 inline，transform 对 inline 不生效；改成 inline-block 又会让中文在窄屏
   无法折行（整行变成一个不可断的整体，直接溢出）。p 是块级，怎么动都行。

   方向取 inset(100% 0 0 0) → inset(-2% 0 0 0)：从**下边缘往上**揭开，
   因为这三段 <p> 开头都有一个 <br>（空的），从上往下揭会先看到一段空白。 */
html.fx-home.fx-ready .hfx-hero-title {
  clip-path: inset(100% 0 0 0);
  transform: translateY(18px);
  transition: clip-path 1.05s var(--hfx-ease) var(--d, 0ms),
              transform 1.05s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-hero-title.is-in {
  clip-path: inset(-2% 0 0 0);
  transform: none;
}

html.fx-home.fx-ready .hfx-hero-sub,
html.fx-home.fx-ready .hfx-hero-cta {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--hfx-out) var(--d, 0ms),
              transform .95s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-hero-sub.is-in,
html.fx-home.fx-ready .hfx-hero-cta.is-in {
  opacity: 1;
  transform: none;
}

/* 按钮：入场后打一次光晕。fill 用 backwards 不是 both——both 会把最后一帧的
   box-shadow 永久压上去，悬停阴影就再也不生效了（B39 踩过的坑，换了个地方出现）。 */
.hfx-hero-cta.is-in .btn { animation: hfx-pulse 1.6s var(--hfx-out) .55s 1 backwards; }

@keyframes hfx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, .42); }
  100% { box-shadow: 0 0 0 20px rgba(25, 135, 84, 0); }
}

.hfx-hero-copy .btn {
  transition: transform .35s var(--hfx-ease),
              box-shadow .35s var(--hfx-out),
              background-color .35s;
}

.hfx-hero-copy .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(108, 117, 125, .36);
  background-color: #5a6268;
}

.hfx-hero-copy .btn:active { transform: translateY(-1px) scale(.985); }

/* 插画：从右侧滑进来。视差走 translate 属性（js 写 style.translate），
   跟这里的 transform 互不覆盖。 */
html.fx-home.fx-ready .hfx-hero-art {
  opacity: 0;
  transform: translateX(54px);
  transition: opacity 1s var(--hfx-out) .1s,
              transform 1.15s var(--hfx-ease) .1s;
}

html.fx-home.fx-ready .hfx-hero-art.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- 3. 关于我们 ---------------- */

html.fx-home.fx-ready .hfx-about-art {
  opacity: 0;
  transform: translateX(-54px);
  transition: opacity 1s var(--hfx-out),
              transform 1.15s var(--hfx-ease);
}

html.fx-home.fx-ready .hfx-about-art.is-in {
  opacity: 1;
  transform: none;
}

/* 照片上斜着扫过一道光。父级要裁切，否则光条会甩到右边的文字上。 */
.hfx-about-art { position: relative; overflow: hidden; }

.hfx-about-art::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 42%;
  height: 160%;
  background: linear-gradient(100deg,
              rgba(255, 255, 255, 0), rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
  transform: skewX(-16deg) translateX(-160%);
  opacity: 0;
  pointer-events: none;
}

html.fx-home.fx-ready .hfx-about-art.is-in::after {
  animation: hfx-sweep 1.5s var(--hfx-out) .35s 1 backwards;
}

@keyframes hfx-sweep {
  0%   { opacity: 0; transform: skewX(-16deg) translateX(-160%); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: skewX(-16deg) translateX(300%); }
}

/* 标题与正文：同首屏一样从下往上擦 */
html.fx-home.fx-ready .hfx-about-title {
  clip-path: inset(100% 0 0 0);
  transform: translateY(16px);
  transition: clip-path 1s var(--hfx-ease) var(--d, 0ms),
              transform 1s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-about-title.is-in {
  clip-path: inset(-2% 0 0 0);
  transform: none;
}

html.fx-home.fx-ready .hfx-about-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--hfx-out) var(--d, 0ms),
              transform .95s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-about-sub.is-in { opacity: 1; transform: none; }

/* 六条要点：整组放行，每条按 --i 错开 80ms。
   li 是 float:left，transform 对浮动元素一样生效。 */
html.fx-home.fx-ready .hfx-list > li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--hfx-out) calc(var(--i, 0) * 80ms),
              transform .8s var(--hfx-ease) calc(var(--i, 0) * 80ms);
}

html.fx-home.fx-ready .hfx-list.is-in > li { opacity: 1; transform: none; }

/* 图标：style.css 的 `*{color:#222}` 直接命中 <i>，继承色赢不了它，
   所以这里显式 inherit，悬停变色才有反馈。inline-block 只为让 transform 生效。 */
.hfx-list > li > i.fa {
  display: inline-block;
  color: inherit;
  transition: transform .45s var(--hfx-ease), color .3s;
}

.hfx-list > li:hover > i.fa { transform: rotate(90deg) scale(1.28); }

/* 圆徽标：入场用 scale 属性，别用 transform——.translate-middle 的
   `transform: translate(-50%,-50%) !important` 会把它顶掉。 */
html.fx-home.fx-ready .hfx-badge {
  opacity: 0;
  scale: .62;
  transition: opacity .75s var(--hfx-out),
              scale .9s var(--hfx-ease);
}

html.fx-home.fx-ready .hfx-badge.is-in { opacity: 1; scale: 1; }

.hfx-badge { transition: scale .4s var(--hfx-ease); }
.hfx-badge:hover { scale: 1.1; }

/* 呼吸光环：挂在徽标盒子上的伪元素，一直在扩，扩到 1.35 就淡没 */
.hfx-badge::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(27, 111, 224, .5);
  animation: hfx-ring 3.2s var(--hfx-out) infinite;
  pointer-events: none;
}

@keyframes hfx-ring {
  0%   { transform: scale(.82); opacity: .85; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* ---------------- 4. 业务范围 ---------------- */

html.fx-home.fx-ready .hfx-h2 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--hfx-out), transform .85s var(--hfx-ease);
}

html.fx-home.fx-ready .hfx-h2.is-in { opacity: 1; transform: none; }

/* 两侧细线：从文字往外长。before 在左边、以右端为原点；after 在右边、以左端为原点。 */
html.fx-home.fx-ready .hfx-sub::before,
html.fx-home.fx-ready .hfx-sub::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--hfx-ease) .1s;
}

html.fx-home.fx-ready .hfx-sub::before { transform-origin: 100% 50%; }
html.fx-home.fx-ready .hfx-sub::after  { transform-origin: 0 50%; }

html.fx-home.fx-ready .hfx-sub.is-in::before,
html.fx-home.fx-ready .hfx-sub.is-in::after { transform: scaleX(1); }

html.fx-home.fx-ready .hfx-sub {
  opacity: 0;
  transition: opacity .8s var(--hfx-out);
}

html.fx-home.fx-ready .hfx-sub.is-in { opacity: 1; }

/* 四张卡片：错开浮起 */
html.fx-home.fx-ready .hfx-col {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--hfx-out) var(--d, 0ms),
              transform .9s var(--hfx-ease) var(--d, 0ms),
              box-shadow .45s var(--hfx-out),
              filter .4s var(--hfx-out);
}

html.fx-home.fx-ready .hfx-col.is-in { opacity: 1; transform: none; }

/* 悬停上浮必须写全前缀：上面那条 .is-in 的规则有 4 个类选择器，
   只写 .hfx-col:hover（2 个）会被它压住，改成 translateY 也不生效。
   这是 page-fx「animation-fill-mode: both 压住 hover」的另一种长相。

   阴影挂在整列上而不是白底块上：彩块和白块是两条兄弟盒子，只给白块加阴影，
   看着像卡片从中间断开了。整列的高度恰好等于两个块相加，阴影轮廓就是卡片形状。 */
html.fx-home.fx-ready .hfx-col.is-in:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 42px rgba(20, 24, 31, .16);
}

html.fx-home.fx-ready .hfx-col.is-in:hover .yewuneirong.border {
  border-color: #c3cedd !important;
}

/* 彩色块：光泽扫过。进入视口时扫一次，悬停再扫一次。
   悬停那条要写到同样的深度（多一个 :hover），否则永远被入场那条盖着。 */
.hfx-tile {
  position: relative;
  overflow: hidden;
  transition: filter .4s var(--hfx-out);
}

.hfx-col:hover .hfx-tile { filter: saturate(1.12) brightness(1.03); }

.hfx-tile::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 52%;
  height: 140%;
  background: linear-gradient(100deg,
              rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform: skewX(-14deg) translateX(-170%);
  opacity: 0;
  pointer-events: none;
}

html.fx-home.fx-ready .hfx-col.is-in .hfx-tile::after {
  animation: hfx-shine 1.2s var(--hfx-out) calc(var(--d, 0ms) + 340ms) 1 backwards;
}

html.fx-home.fx-ready .hfx-col.is-in:hover .hfx-tile::after {
  animation: hfx-shine 1.05s var(--hfx-out) 0s 1;
}

@keyframes hfx-shine {
  0%   { opacity: 0; transform: skewX(-14deg) translateX(-170%); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: skewX(-14deg) translateX(330%); }
}

/* 彩色块里的图标：悬停抬一下 */
.hfx-tile i.fa {
  display: inline-block;
  transition: transform .5s var(--hfx-ease);
}

.hfx-col:hover .hfx-tile i.fa { transform: translateY(-5px) scale(1.1); }

/* 白底清单每一行：悬停右移。p 是块级，不用改 display。 */
.hfx-col .yewuneirong.border p {
  transition: transform .4s var(--hfx-ease), color .3s;
}

.hfx-col:hover .yewuneirong.border p { transform: translateX(5px); }

/* ---------------- 5. 顶部小图横排 / 广告位（后台有数据才出现） ---------------- */

html.fx-home.fx-ready .hfx-strip-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--hfx-out) var(--d, 0ms),
              transform .8s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-strip-item.is-in { opacity: 1; transform: none; }

.hfx-strip-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  transition: transform .45s var(--hfx-ease), box-shadow .45s var(--hfx-out);
}

.hfx-strip-item img { transition: transform .6s var(--hfx-ease); }

.hfx-strip-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(20, 24, 31, .16);
}

.hfx-strip-item:hover img { transform: scale(1.06); }

html.fx-home.fx-ready .hfx-ad-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--hfx-out) var(--d, 0ms),
              transform .8s var(--hfx-ease) var(--d, 0ms);
}

html.fx-home.fx-ready .hfx-ad-card.is-in { opacity: 1; transform: none; }

/* ---------------- 兜底 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html.fx-home.fx-ready .hfx-banner,
  html.fx-home.fx-ready .hfx-hero-sub,
  html.fx-home.fx-ready .hfx-hero-cta,
  html.fx-home.fx-ready .hfx-hero-art,
  html.fx-home.fx-ready .hfx-about-art,
  html.fx-home.fx-ready .hfx-about-sub,
  html.fx-home.fx-ready .hfx-list > li,
  html.fx-home.fx-ready .hfx-badge,
  html.fx-home.fx-ready .hfx-h2,
  html.fx-home.fx-ready .hfx-sub,
  html.fx-home.fx-ready .hfx-col,
  html.fx-home.fx-ready .hfx-strip-item,
  html.fx-home.fx-ready .hfx-ad-card {
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
  }

  html.fx-home.fx-ready .hfx-hero-title,
  html.fx-home.fx-ready .hfx-about-title {
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }

  html.fx-home.fx-ready .hfx-sub::before,
  html.fx-home.fx-ready .hfx-sub::after { transform: scaleX(1) !important; transition: none !important; }

  html.fx-home.fx-ready .hfx-carousel .carousel-item.active > img { animation: none !important; }
  html.fx-home.fx-ready .hfx-carousel .carousel-indicators .active::after { animation: none !important; }
  .hfx-badge::after { animation: none !important; }
  html.fx-home.fx-ready .hfx-about-art::after,
  html.fx-home.fx-ready .hfx-col .hfx-tile::after { animation: none !important; }
  .hfx-hero-cta.is-in .btn { animation: none !important; }

  .hfx-progress,
  .hfx-top { transition: none !important; }
  .hfx-top:hover { transform: none; }
  .hfx-hero-copy .btn:hover,
  .hfx-strip-item:hover,
  .hfx-badge:hover { transform: none; }
}

/* ---------------- 窄屏 / 桌面夹缝的布局修正（B43 起，B45 补 992~1365） ----------------
   这几处跟动效无关，是首页在不同宽度下的老问题：

   1. 六条要点：`.index2` 写死 `width:50%; height:3rem; line-height:4rem`。
      一条要点要 ~180px 才排得下一行（10 个汉字 + 图标）。
      · 390 宽：每格 151px，两行文字要 118px，盒子只有 44px → 溢出压到下一行；
      · 768 宽：每格 185px，"公司间合作无后顾之忧" 折三行；
      · 1200/1280：每格 155~169px，2~4 条折两行（实测 li_ov=74）；
      · 1366 起每格 ≥183px 才真正不折行。
      所以单列一直做到 1365.98，≥1366 保持原来的 float 两列（桌面基准不动）。
   2. 四张业务卡片：`.row.g-5 > .col` 没有断点，永远四等分。
      992~1199 这一段的 -22px 负边距没有父级内边距抵消，整排被推到屏幕外
      （实测首列 x=-22、整页横向滚动 22px）；≤991 再加一条折成两列 / 一列。
   3. `.yewuneirong` 写死 `height:12.5rem`，窄列里图标加标题放不下（实测 222 > 185），
      多出来的部分压到页脚上。 */
@media (max-width: 1199.98px) {
  /* 负边距归零，改用列内边距留出呼吸位：992~1199 这一段原来横向溢出 22px */
  .hfx-grid { margin-left: 0; margin-right: 0; }
  .hfx-grid > .hfx-col {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 991.98px) {
  .hfx-grid > .hfx-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* 列变成纵向 flex：白底块 flex:1 撑满，同行卡片底边对齐 */
  .hfx-col { display: flex; flex-direction: column; }

  .hfx-tile {
    height: auto;
    min-height: 9.5rem;
    padding: 1.6rem 1rem;
    /* 背景图是 360×220，盒子变宽变高后按默认 repeat 会拼出接缝，这里改成铺满裁切 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hfx-col .yewuneirong.border {
    height: auto;
    flex: 1 1 auto;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .hfx-grid > .hfx-col { flex: 0 0 100%; max-width: 100%; }
}

/* 要点单列的断点是 1365.98 而不是 991：实测 1200/1280 每格只有 155~169px，
   10 个汉字的条目必然折行，而 .index2 是 float + 定高 3rem，折行就直接溢到下一行
   （li_ov=74）。1366 起每格 183px 才不折行，所以只在 ≥1366 保留两列。 */
@media (max-width: 1365.98px) {
  .hfx-list > li.index2 {
    width: 100%;
    float: none;
    height: auto;
    line-height: 1.9;
    margin-bottom: .35rem;
  }
}

@media (max-width: 767.98px) {
  /* 副标题在窄屏是满宽排的，不留边距会顶到屏幕两侧 */
  .hfx-sub { padding-left: 16px; padding-right: 16px; }
}
