/* ============================================================
   Elementor 容器中性化
   ------------------------------------------------------------
   ★ 本文件的加载顺序是刻意的，别改：
     Elementor 基础 CSS  →  post-{页面}.css  →  【本文件】  →  style.mytf.css（源站）  →  mytf-patch.css

   为什么：源站的区块靠自己的 class 决定布局（.row-about1{padding:1.44rem 0}、
   .m-list4{display:flex}）。而 Elementor 的容器自带
   display:flex / gap:20px / padding:10px，两者特异性都是 (0,1,0)。

   把中和规则夹在中间：
     · 排在 Elementor 之后 → 能盖掉它的 10px 内边距与 flex 默认
     · 排在源站之前       → 源站有声明时仍然由源站说了算
   一步到位，不用 !important，也不会像第一版那样把 .wp{width:1280px} 压成 1440px。
   ============================================================ */

:where(.mytf-con).e-con {
	/* 撤掉 Elementor 容器的默认布局（源站没写 display 的 div 就是 block） */
	display: block;
	/* ★ 方向和换行也要还原：Elementor 容器默认 --flex-direction:column，
	     若源站把该元素设成 display:flex（如 .jl-ls1 的产品网格），
	     会变成竖排一行一个，实测 products 页高度从 776 涨到 2327。 */
	/* ★ 用变量还原方向，别直接写 flex-direction:row !important ——
	     !important 会压掉源站在 @media 里写的 column，
	     移动端首页实测因此矮了 220px。改成覆盖 Elementor 的变量：
	     变量定义权重 (0,2,0) 赢 .e-con-full 的 (0,1,0)，
	     而源站的 .xxx{flex-direction:column} 仍是直接属性，能正常覆盖。 */
	--flex-direction: row;
	--flex-wrap: wrap;
	flex-wrap: wrap;
	align-items: initial;
	justify-content: initial;
	gap: 0;
	/* 撤掉默认 10px 内边距 */
	padding: 0;
	margin: 0;
	border: 0;
	/* 不要把容器限制成最小高度/最小宽度 */
	min-width: 0;
	min-height: 0;
	/* 宽度交给源站的 class（.wp{width:1280px} 等） */
	width: auto;
	max-width: none;
}

/* 容器的内层包装（4.4.x 部分场景会输出）不生成盒子 */
:where(.mytf-con).e-con > .e-con-inner {
	display: contents;
	padding: 0;
	margin: 0;
	gap: 0;
}
