/* ==========================================================================
   代码页兼容层（案例页、关于、联系、作品）
   这些页面的代码（2026-04 用 Gemini 生成）原来跑在 Blocksy + Elementor 里，依赖它们给裸标签的默认样式。
   - Blocksy 的样式照常加载（见 functions.php），提供标题、表单、链接等默认值
   - 下面复刻原来 Elementor 生效的那几条规则，选择器优先级与原规则相同（.elementor-kit-1027 x / .elementor x → .lgx-page x）
   ========================================================================== */

/* 原 Elementor 前端 frontend.min.css */
.lgx-page *, .lgx-page ::after, .lgx-page ::before { box-sizing: border-box; }
.lgx-page img { border: none; border-radius: 0; box-shadow: none; height: auto; max-width: 100%; }
.lgx-page a { box-shadow: none; text-decoration: none; }

/* 原 Elementor 全局套件 post-1027.css */
.lgx-page p { margin-block-end: 0px; }
.lgx-page button, .lgx-page input[type="button"], .lgx-page input[type="submit"] {
  border-radius: 0px 0px 0px 0px;
  padding: 15px 40px 15px 40px;
}

/* 原 Elementor 容器：内容整体上移 90px，钻到透明页眉下面（Teaspa、关于、联系） */
.lgx-page { display: flex; flex-direction: column; }
.lgx-page--pull { margin-top: -90px; }
@media (max-width: 767px) {
  .lgx-page--pull-m30 { margin-top: 30px; }
}

/* Blocksy 模板页（普通文章、归档等）：原 Elementor 全局套件对整页生效的规则 */
body.lgx-wrapped { background-color: #FAFAF9; }
.lgx-wrapped p { margin-block-end: 0px; }
.lgx-wrapped button, .lgx-wrapped input[type="button"], .lgx-wrapped input[type="submit"] {
  border-radius: 0px 0px 0px 0px;
  padding: 15px 40px 15px 40px;
}
/* 原站在 Blocksy 模板页上，页眉和版权条的内容区宽度跟随 Blocksy 版心：屏幕宽 86%，最多 1290px */
.lgx-wrapped .lgx-header__inner,
.lgx-wrapped .lgx-copyright__inner {
  width: var(--theme-container-width, min(100%, 86vw));
  max-width: min(100%, 1290px);
}
