/* ==========================================================================
   ZENYX 编辑式版式精修层 (Editorial Refinement)
   目标：消除模板化对称，建立视觉主次与呼吸节奏。
   本层最后加载，仅调整版式与视觉，不改变任何内容与功能。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Section 节奏：疏密交替，打破 112px 一律到底的机械感
   -------------------------------------------------------------------------- */
/* 首页连续的白色 section 交替收紧/舒展，制造呼吸 */
body:has(.hero-wrap) main > section.page-section:not(.tint):nth-of-type(odd){
  padding-top: 128px !important;
  padding-bottom: 96px !important;
}
body:has(.hero-wrap) main > section.page-section:not(.tint):nth-of-type(even){
  padding-top: 84px !important;
  padding-bottom: 104px !important;
}
/* 有色区作为节奏断点，上下更紧凑 */
body:has(.hero-wrap) main > section.page-section.tint{
  padding-top: 92px !important;
  padding-bottom: 92px !important;
}

/* --------------------------------------------------------------------------
   2. 标题区非对称：左标题 + 右说明下沉（编辑式两栏）
   只对首页的 section-top 生效，避免影响子页既有布局
   -------------------------------------------------------------------------- */
body:has(.hero-wrap) .section-top{
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 52px;
}
body:has(.hero-wrap) .section-top > div{ min-width: 0; }
body:has(.hero-wrap) .section-top p{
  max-width: none !important;
  margin: 0 0 6px;
  padding-left: 22px;
  border-left: 2px solid rgba(25,168,211,.45);
  font-size: 15px !important;
  line-height: 1.85;
}
/* 单列 section-head：说明移到右侧而非堆叠在标题下方 */
body:has(.hero-wrap) .section-head{
  max-width: 900px !important;
}

/* --------------------------------------------------------------------------
   3. 能力卡：2×2 等权 → 首卡强调的编辑式布局
   -------------------------------------------------------------------------- */
body:has(.hero-wrap) .cap-grid{
  grid-template-columns: 1.25fr 1fr !important;
  gap: 20px !important;
}
body:has(.hero-wrap) .cap:first-child{
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy-900);
  border-color: var(--navy-900);
  padding: 38px 36px;
}
body:has(.hero-wrap) .cap:first-child .cap-no{ color: #7fdaf3; }
body:has(.hero-wrap) .cap:first-child h3{ color: #fff !important; font-size: 26px !important; }
body:has(.hero-wrap) .cap:first-child p{ color: #c8d9f2 !important; font-size: 15px !important; line-height: 1.85 !important; }
body:has(.hero-wrap) .cap:first-child li{
  background: rgba(255,255,255,.1) !important;
  color: #e6f2fb !important;
  border: 1px solid rgba(199,215,242,.22);
}
body:has(.hero-wrap) .cap:not(:first-child){ padding: 26px 28px; }
body:has(.hero-wrap) .cap h3{ font-size: 19px !important; }
body:has(.hero-wrap) .cap p{ font-size: 13px !important; line-height: 1.8 !important; }

/* --------------------------------------------------------------------------
   4. 品牌卡矩阵：去描边方块化，改为克制的分隔线网格
   12 个品牌保持同等地位（这是合理的），但去掉每个都套框的廉价感
   -------------------------------------------------------------------------- */
body:has(.hero-wrap) #brand-tiles .tile-grid{
  gap: 0 !important;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
body:has(.hero-wrap) #brand-tiles .tile{
  border: 0 !important;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
  transition: background .25s ease;
}
body:has(.hero-wrap) #brand-tiles .tile:hover{
  background: var(--card);
  transform: none !important;
  box-shadow: none !important;
}
body:has(.hero-wrap) #brand-tiles .tile img{ max-height: 34px; }
body:has(.hero-wrap) #brand-tiles .tile h3{ font-size: 15px !important; }
body:has(.hero-wrap) #brand-tiles .tile p{ font-size: 12px !important; }
body:has(.hero-wrap) #brand-tiles .tile::after{ display: none !important; }
/* 首卡加一道顶部强调线，作为视觉起点 */
body:has(.hero-wrap) #brand-tiles .tile:first-child{
  box-shadow: inset 0 3px 0 var(--cyan) !important;
}

/* --------------------------------------------------------------------------
   5. 流程时间轴：偶数项轻微错落，打破等距vertical节奏
   -------------------------------------------------------------------------- */
/* 圆点与竖线保持原位，仅文字内容错位，形成编辑式节奏而不破坏时间轴 */
body:has(.hero-wrap) .timeline li:nth-child(even) h4,
body:has(.hero-wrap) .timeline li:nth-child(even) p{
  margin-left: 20px;
  transition: margin-left .4s cubic-bezier(.2,.8,.2,1);
}
@media (max-width: 720px){
  body:has(.hero-wrap) .timeline li:nth-child(even) h4,
  body:has(.hero-wrap) .timeline li:nth-child(even) p{ margin-left: 0; }
}

/* --------------------------------------------------------------------------
   6. 质量清单：进一步去框，编号作为视觉锚点
   -------------------------------------------------------------------------- */
body:has(.hero-wrap) .standard-grid{ margin-top: 32px !important; }
body:has(.hero-wrap) .standard h3{ font-size: 16px !important; }
body:has(.hero-wrap) .standard p{ font-size: 13px !important; color: var(--muted) !important; }

/* --------------------------------------------------------------------------
   7. 洞察卡：为封面大卡增加更强的视觉重量
   -------------------------------------------------------------------------- */
body:has(.hero-wrap) .ia-card-feature{
  background: var(--navy-900) !important;
  border-color: var(--navy-900) !important;
}
body:has(.hero-wrap) .ia-card-feature h3,
body:has(.hero-wrap) .ia-card-feature .ia-card-thesis{ color: #fff !important; }
body:has(.hero-wrap) .ia-card-feature .ia-card-lead{ color: #c8d9f2 !important; }
body:has(.hero-wrap) .ia-card-feature .ia-card-tags span{
  background: rgba(255,255,255,.1) !important;
  color: #dbe8f8 !important;
}
body:has(.hero-wrap) .ia-card-feature .ia-card-more{ color: #7fdaf3 !important; }

/* --------------------------------------------------------------------------
   8. 响应式：编辑式两栏在窄屏退回单列
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  body:has(.hero-wrap) .section-top{
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  body:has(.hero-wrap) .section-top p{
    padding-left: 0;
    border-left: 0;
    max-width: 620px !important;
  }
  body:has(.hero-wrap) .cap-grid{ grid-template-columns: 1fr 1fr !important; }
  body:has(.hero-wrap) .cap:first-child{ grid-row: span 1; }
  body:has(.hero-wrap) .cap:first-child h3{ font-size: 20px !important; }
}
@media (max-width: 640px){
  body:has(.hero-wrap) .cap-grid{ grid-template-columns: 1fr !important; }
  body:has(.hero-wrap) main > section.page-section:not(.tint),
  body:has(.hero-wrap) main > section.page-section.tint{
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }
}
