/* ==========================================================================
   r30 首页 UI 规范统一（2026-09-30）
   --------------------------------------------------------------------------
   实测（1440 视口 computed，已排除 WP 管理栏）：
     ① 字号游离档 12.5px（12 处）与 17px（3 处）
     ② hero 三行（眉标/承诺句/企业描述）同为 17px，无层级
     ③ 行业卡 7 张在 3 列网格排成 3+3+1，末行孤卡
   注意：线上已存在 `html body #yangqi-home .yqh-hero-tx > p{font-size:17px!important}`
        （特异性 1-1-3），本补丁各选择器均以 1-3-3 起步以确保覆盖。
   范围：仅收敛排版与网格，不动内容/结构与配色。
   ========================================================================== */

/* ① 行业卡网格：7 张 → 4 列（4+3），消除末行孤卡 */
@media (min-width:782px){
  html body #yangqi-home #yq-industry .yq-service-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}

/* ② 字号收敛：消灭 12.5px
      行业卡描述 → 14 档（与服务卡描述 16 拉开主次） */
html body #yangqi-home #yq-industry .yq-service-grid .yq-industry-card > div > em{
  font-size:14px !important;
  line-height:1.6 !important;
}
/* ② 字号收敛：消灭 12.5px
      事实卡说明 / hero 图注 → 12 档（与 chips 同档） */
html body #yangqi-home .yqh-hero .yqh-facts .yqh-fact > span,
html body #yangqi-home .yqh-hero .yqh-hero-cap,
html body #yangqi-home .yqh-hero .yqh-hero-cap > span{
  font-size:12px !important;
  line-height:1.5 !important;
}

/* ③ 中和线上 17px（同源选择器 + 提权到 1-3-3） */
html body #yangqi-home .yqh-hero .yqh-hero-tx > p{
  font-size:16px !important;
  line-height:1.7 !important;
}

/* ④ hero 三行建立层级：眉标 14 / 承诺句 20 / 企业描述 16 */
html body #yangqi-home .yqh-hero .yqh-hero-tx > p.yqh-hero-brand{
  font-size:14px !important;
  letter-spacing:.08em !important;
}
html body #yangqi-home .yqh-hero .yqh-hero-tx > p.yqh-promise{
  font-size:20px !important;
  line-height:1.45 !important;
  font-weight:600 !important;
}
html body #yangqi-home .yqh-hero .yqh-hero-tx > p.yq-lead{
  font-size:16px !important;
  line-height:1.7 !important;
}

/* ⑤ 事实卡数字对齐显示档（22 → 24） */
html body #yangqi-home .yqh-hero .yqh-facts .yqh-fact > b{
  font-size:24px !important;
  line-height:1.2 !important;
}

/* r30b（2026-10-08）：服务页二级子类区块自带白底
   背景：.yq-cat-body 无背景时，第 2 行起卡片落在页面深蓝底上（实测代理记账页 3 行只盖住 1 行） */
html body .entry-content .yq-cat-body{
  background:#ffffff !important;
  padding-bottom:34px !important;
}
html body .entry-content .yq-cat-body .yq-cat-card{ background:#ffffff !important; }

/* r30c（2026-10-08）：首页服务区 6→7 张卡，3 列改 4 列
   原因：7 张卡在 3 列下排成 3+3+1，末行孤卡 */
@media (min-width:782px){
  html body #yangqi-home #yq-services .yq-service-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}
@media (min-width:782px) and (max-width:1100px){
  html body #yangqi-home #yq-services .yq-service-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* r30d（2026-10-09）：首页行业区 7 卡 → 6 卡，4 列改回 3 列
   原因：6 张卡在 4 列下 = 4+2（末行不满），3 列下 = 3+3 完美 */
@media (min-width:782px){
  html body #yangqi-home #yq-industry .yq-service-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}
