/* wide-category-v1 — 分类栏目页（industrial / architecture / news 等 29 页）版式修正
   ① 宽屏容器上限（≥1700px）：原 .shell 写死 max-width:1700px，2560 屏内容只有 1620，两侧各空 470。
   ② 标题区与筛选条之间的竖直空白（所有宽度）：原由 .ind-head 的 padding-bottom:50px +
      margin-bottom:44px 叠成 94px，收紧到约 44px；筛选条到底部图版的间距同步收一点。
   仅影响分类栏目模板，不碰其它页面。 */

/* ---------- ① 宽屏：容器放宽，图版随之变大 ---------- */
@media (min-width: 1700px) {
  /* 首页 deck 容器 .shell.panel__inner 不参与加宽：
     dsh-globe-v4 按固定尺寸对位地球仪与城市栏（缩放上限 1.193），
     容器一旦拉到 2400，两簇会被推散（实测 2552 宽时中间空 979px）。 */
  .shell:not(.panel__inner) {
    max-width: min(94vw, 2400px);
  }

  .spage__inner {
    padding-inline: clamp(24px, 2.2vw, 64px);
  }

  .cv10__grid {
    column-gap: clamp(20px, 1.4vw, 36px);
  }
}

/* ---------- ② 竖直节奏收紧 ----------
   站内对 .ind-head 的 padding/margin 有更高优先级来源（实测 50px + 44px），
   普通声明压不住，这里用 !important 明确覆盖；只动这两个属性，不碰背景与 ::after。 */
.ind-head {
  padding-bottom: clamp(18px, 1.6vw, 26px) !important;
  margin-bottom: clamp(14px, 1.4vw, 22px) !important;
}

.ind-filter {
  margin-bottom: clamp(24px, 2vw, 34px) !important;
}

/* ---------- ③ 头部航线插画的底边硬切 ----------
   现象：cat-hero.svg 那一层（.ind-head::before）在离头部底边约 58px 处直接结束，
        下方是纯 #08090b，形成一条明显的红色→黑色色阶断层（用户截图圈注处）。
   做法：给插画层加竖向遮罩，让它在下缘淡出到透明，消除硬边。
   只加 mask，不改插画位置/尺寸，也不碰遮罩渐变层 ::after。 */
html[data-style="zha"] .ind-page.cv10 .ind-head::before {
  /* 铺满整个头部，不再在距底边 58px 处截断 */
  bottom: 0 !important;
  height: 100% !important;
  /* 底边淡出：让红色航线图收进底色，消除那条硬边 */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 56%, transparent 70%) !important;
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 56%, transparent 70%) !important;
}
/* ---------- ④ 盖掉插画素材内部的硬边 ----------
   排查结论：那条色阶不是图层边缘（把 ::before 拉满整高后断层位置没变），而是 cat-hero.svg
        素材内部「点阵+航线」区域与下方平色区的交界。素材改不了，就在它上面压一层竖向渐变，
        把交界前后一起收进底色 #08090b，视觉上不留线。
   层级：::after 的 z-index 是 -1，正好在插画层(-2)之上、正文之下。 */
html[data-style="zha"] .ind-page.cv10 .ind-head::after {
  background-image:
    linear-gradient(to bottom,
      rgba(6, 7, 9, 0) 40%,
      rgba(6, 7, 9, 0.28) 56%,
      rgba(6, 7, 9, 0.62) 70%,
      rgba(6, 7, 9, 0.88) 84%,
      #08090b 96%),
    linear-gradient(90deg,
      rgba(6, 7, 9, 0.94) 0%,
      rgba(6, 7, 9, 0.84) 28%,
      rgba(6, 7, 9, 0.34) 56%,
      rgba(6, 7, 9, 0.04) 100%),
    linear-gradient(rgba(6, 7, 9, 0.34) 0%, rgba(6, 7, 9, 0) 46%, rgba(6, 7, 9, 0.52) 100%) !important;
}
/* ---------- 页面就绪 gate：禁止"先画出内容、再被 cv10-pending 藏起来" ----------
   实测：/industrial 首屏在 68ms 已画出面包屑/标题/简介与预渲染卡片，
   但 catalog 补丁在 120ms 才给 <html> 加上 cv10-pending，把那批卡片 visibility:hidden，
   151ms 再放出来 —— 于是中间出现"内容闪一下又被抹掉"的跳变（/architecture 同样）。
   这里用更高优先级 + !important 作废那条隐藏规则：预渲染内容即为最终内容，不需要挂起期。 */
html.cv10-pending body .gallery,
html.cv10-pending body .gallery__grid,
html.cv10-pending body .ind-card,
html.cv10-pending body .ind-list,
html.cv10-pending body .ind-subrow,
html.cv10-pending body .ind-head__word,
html.cv10-pending body .newslist,
html.cv10-pending body .cv10__grid,
html.cv10-pending body .cv10__card {
  visibility: visible !important;
}
/* ---------- 页头文字不许比图晚 ----------
   站内 `.wow{opacity:0}` + `.wow.is-in{animation:… 1s}`：标题/简介在 is-in 被重新加上之前
   一直不可见（实测 /industrial 到 1.3s 才开始淡入、/architecture 0.67s），于是出现
   “图先到、标题后到”。这里只对页头的那几个元素关掉入场动画，让它们与卡片同帧可见。 */
html[data-style] .ind-head .wow,
html[data-style] .spage__head .wow,
html[data-style] .ind-page .ind-head .ind-title,
html[data-style] .ind-page .ind-head .ind-lead,
html[data-style] .ind-page .ind-head .ind-kicker {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
/* 兜底：页头里的标题/简介/面包屑/说明一律不做入场动画，任何加载顺序下都立即可见 */
html[data-style] .ind-page .ind-title,
html[data-style] .ind-page .ind-lead,
html[data-style] .ind-page .ind-kicker,
html[data-style] .ind-page .ind-head > *,
html[data-style] .spage__head > *,
html[data-style] .crumb,
html[data-style] .crumb * {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}