/* ============================================================
   0512c.com UI 改进 — 2026-06-19 v2
   五大原则：留白/层级/色彩/字体/节奏 + 1440px 宽度
   ============================================================ */

/* ── 1. 内容区宽度：1200px → 1440px ── */
.home .saxf-home-redesign {
  max-width: 1440px !important;
  margin-inline: auto !important;
}

/* ── 2. 留白：模块间距 32px + 内部 padding 48px ── */
.home .saxf-home-redesign {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
}

/* 所有直接子元素：清除 WordPress 默认 margin，加内部 padding */
.home .saxf-home-redesign > * {
  margin: 0 !important;
}

.home .saxf-home-redesign > section,
.home .saxf-home-redesign > .wp-block-heading,
.home .saxf-home-redesign > .wp-block-paragraph,
.home .saxf-home-redesign > .saxf-center-link {
  padding: 48px 48px !important;
}

/* ── 3. 色彩节奏：4个模块交替浅灰背景 ── */
.home .saxf-trust-strip,
.home .saxf-scene-grid,
.home .saxf-home-case-grid,
.home .saxf-news-grid {
  background: #f1f5f9 !important;
  border-radius: 20px !important;
}

/* ── 4. 字体：正文 17px / 行高 1.75 ── */
.home .saxf-home-redesign,
.home .saxf-home-redesign p,
.home .saxf-home-redesign li,
.home .saxf-home-redesign .wp-block-paragraph {
  font-size: 17px !important;
  line-height: 1.75 !important;
}

/* ── 5. saxf-quick-lead 深色背景（保持） ── */
.home .saxf-quick-lead {
  background: #061b31 !important;
  border-radius: 28px !important;
  padding: 48px 40px !important;
  margin: 0 !important;
}

/* ── 6. 隐藏首页"首页"页面标题 ── */
.home .wp-block-post-title {
  display: none !important;
}

/* ── 7. 图片尺寸统一：全部 max-width:600px ── */

/* Hero 大图 */
.home .saxf-hero-visual img {
  max-width: 600px !important;
  width: 55% !important;
  height: auto !important;
}

/* 产品卡片图：和 Hero 一样大小 */
.home .saxf-product-card img {
  max-width: 600px !important;
  width: 55% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* 案例卡片图：和 Hero 一样大小 */
.home .saxf-home-case-grid article img {
  max-width: 600px !important;
  width: 55% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ── 8. 通用图片尺寸约束 ── */
main img,
.entry-content img,
.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
}
