/* ==========================================================================
   LGX Design Studio — 全站公共样式
   页眉、页脚、通用按钮、入场动画。替代原来的 Elementor 页眉/页脚模板。
   断点与原站一致：手机 ≤767px，平板 768–1024px，桌面 ≥1025px
   ========================================================================== */

:root {
  --lgx-primary: #FAFAF9;   /* 原 Elementor 全局色 primary：底色 / 浅字 */
  --lgx-secondary: #B8B5B0; /* secondary：辅助文字、细线 */
  --lgx-text: #1C1B19;      /* text：正文深色 */
  --lgx-accent: #E8E6E2;    /* accent：分割线、大号浅色数字 */
  --lgx-muted: #787570;
  --lgx-font: "Noto Sans SC", sans-serif;
  --lgx-system: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --lgx-ease: cubic-bezier(.16, 1, .3, 1);
  --lgx-max: 1440px; /* 限宽容器内层最大宽度（原 Elementor：桌面 1440 / 平板 1024 / 手机 767） */
}
@media (max-width: 1024px) { :root { --lgx-max: 1024px; } }
@media (max-width: 767px) { :root { --lgx-max: 767px; } }

/* ─── 基础 ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lgx {
  margin: 0;
  background: var(--lgx-primary);
  color: #70707E;
  font-family: var(--lgx-system);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;

}
/* 以下重置只作用于首页、页眉、页脚；代码页正文保持原来 Blocksy 的默认样式 */
:where(.lgx-home, .lgx-header, .lgx-footer) p { margin: 0; }
:where(.lgx-home, .lgx-header, .lgx-footer) :where(strong, b) { font-weight: 700; }
/* 布局容器允许收缩到内容以下（等同 Elementor 容器的 min-width: 0） */
:where(.lgx-home, .lgx-header, .lgx-footer) :where(div, section, a, nav) { min-width: 0; }
:where(.lgx-home, .lgx-header, .lgx-footer) :where(p, h1, h2, h3, h4) { min-width: 0; max-width: 100%; }
:where(.lgx-home, .lgx-header, .lgx-footer) :where(h1, h2, h3, h4) { margin: 0; font-weight: inherit; font-size: inherit; }
:where(.lgx-home, .lgx-header, .lgx-footer) a { color: inherit; text-decoration: none; }
:where(.lgx-home, .lgx-header, .lgx-footer) img { max-width: 100%; height: auto; vertical-align: middle; }
.lgx .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* 正文区：裁掉头图上移到页面顶部以外的部分（原站外层容器也会裁掉） */
.lgx-main { display: flow-root; overflow: clip; }

/* 版心：外层负责左右留白，内层 .lgx-wrap 限宽（等同 Elementor 的 boxed 容器） */
.lgx-wrap { width: 100%; max-width: min(100%, var(--lgx-max)); margin: 0 auto; }

/* ─── 入场动画：等同 Elementor「淡入 · 慢速」 ─── */
.lgx-anim { visibility: hidden; }
.lgx-anim.is-in { visibility: visible; animation: lgx-fade-in 2s both; }
@keyframes lgx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lgx-anim, .lgx-anim.is-in { visibility: visible; animation: none; }
}

/* ─── 文字链接按钮（原 Elementor 按钮：文字 + 右箭头） ─── */
.lgx-more { font-size: 16px; line-height: 1.65; }
.lgx-more a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--lgx-font); font-size: 12.5px; font-weight: 300; line-height: 1;
  color: var(--lgx-secondary);
  transition: color .3s;
}
.lgx-more a:hover, .lgx-more a:focus { color: var(--lgx-text); }
.lgx-more--light a:hover, .lgx-more--light a:focus { color: var(--lgx-primary); }
.lgx-more svg { display: block; width: 12.5px; height: 12.5px; fill: currentColor; }

/* ─── 实心按钮 .lgx-btn（原额外 CSS，全站通用） ─── */
.lgx-btn {
  display: inline-flex; align-items: center; gap: 20px;
  font-family: var(--lgx-font); font-size: 11px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase; text-decoration: none;
  color: #fafaf9 !important;
  background: #1c1b19 !important;
  border: none; padding: 20px 36px;
  cursor: pointer;
  transition: gap .35s, background .3s, color .3s;
  position: relative; overflow: hidden; z-index: 1;
  width: fit-content;
}
.lgx-btn::before {
  content: ''; position: absolute; inset: 0;
  background: #B8B5B0 !important;
  transform: translateX(-100%); transition: transform .4s var(--lgx-ease);
  z-index: -1;
}
.lgx-btn:hover::before { transform: translateX(0); }
.lgx-btn:hover { gap: 26px; color: #fafaf9 !important; background: #b8b5b0 !important; }
.lgx-btn .arrow { font-size: 14px; }

/* ==========================================================================
   页眉：透明悬浮，下滚 150px 后变毛玻璃（原 Elementor 页眉 #1166）
   ========================================================================== */
.lgx-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 99999;
  min-height: 90px;
  padding: 0 50px;
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s ease, backdrop-filter .4s ease;
  transform: translate3d(0, 0, 0);
}
.admin-bar .lgx-header { top: 32px; }
.lgx-header.is-scrolled {
  background: rgba(250, 250, 249, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(28, 27, 25, .05);
}
.lgx-header__inner {
  width: 100%; max-width: min(100%, var(--lgx-max)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
}
.lgx-header__logo { grid-column: 1; align-self: center; line-height: 0; }
.lgx-header__logo img { width: 13%; max-width: 100%; height: auto; }
.lgx-header__nav { grid-column: 3; align-self: center; }
.lgx-nav { display: flex; margin: 0; padding: 0; list-style: none; }
.lgx-nav li { flex-grow: 1; text-align: center; }
.lgx-nav a {
  display: block; padding: 10px 0;
  font-family: var(--lgx-font); font-size: 15px; font-weight: 200; line-height: 20px;
  color: #dcdcdc;
  transition: color .3s ease;
}
.lgx-nav a:hover, .lgx-nav a:focus { color: var(--lgx-primary); }
.lgx-nav .current-menu-item > a { color: var(--lgx-secondary); }
.lgx-header.is-scrolled .lgx-nav a { color: #1c1b19; }
.lgx-header.is-scrolled .lgx-nav a:hover,
.lgx-header.is-scrolled .lgx-nav .current-menu-item > a { color: #787570; opacity: .8; }

/* 汉堡按钮（只在手机端出现） */
.lgx-header .lgx-menu-toggle {
  display: none; margin-left: auto;
  width: 33px; height: 33px; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #dcdcdc; cursor: pointer;
  align-items: center; justify-content: center;
}
.lgx-menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.lgx-menu-toggle .icon-close { display: none; }
.lgx-header.menu-open .lgx-menu-toggle .icon-open { display: none; }
.lgx-header.menu-open .lgx-menu-toggle .icon-close { display: block; }
.lgx-header.is-scrolled .lgx-menu-toggle { color: #787570; }

/* 手机下拉菜单：全宽毛玻璃 */
.lgx-dropdown {
  display: none;
  position: fixed; top: 63px; left: 0; width: 100vw; margin-top: 27px;
  padding: 20px 0;
  background: rgba(250, 250, 249, .95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
  z-index: 999998;
}
.lgx-dropdown ul { display: block; margin: 0; padding: 0; list-style: none; width: 100%; }
.lgx-dropdown li { text-align: center; }
.lgx-dropdown a {
  display: flex; align-items: center; justify-content: center;
  padding: 15px 0; width: 100%;
  font-family: var(--lgx-font); font-size: 12px; font-weight: 300; line-height: 20px;
  color: var(--lgx-text);
  border-bottom: 1px solid rgba(28, 27, 25, .05);
}
.lgx-dropdown li:last-child a { border-bottom: none; }
.lgx-dropdown a:hover, .lgx-dropdown a:focus { color: var(--lgx-secondary); background: var(--lgx-primary); }
.lgx-header.menu-open .lgx-dropdown { display: block; }

@media (max-width: 767px) {
  .lgx-header { padding: 0 20px; }
  .lgx-header__logo { order: -1; }
  .lgx-header__logo img { width: 36%; }
  .lgx-header__inner { align-self: stretch; min-height: 90px; }
  .lgx-header__nav { grid-column: 3; display: flex; }
  .lgx-header__main { display: none; }
  .lgx-header .lgx-menu-toggle { display: flex; }
}

/* ==========================================================================
   页脚：合作 CTA + 版权条（原 Elementor 页脚 #1283）
   ========================================================================== */
.lgx-cta {
  display: flex; min-height: 600px;
  border-top: 1px solid var(--lgx-accent); border-bottom: 1px solid var(--lgx-accent);
}
.lgx-cta__intro {
  width: 50%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 10% 0 8%;
  background: var(--lgx-primary);
}
.lgx-cta__eyebrow {
  font-family: var(--lgx-font); font-size: 15px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-secondary);
}
.lgx-cta__title {
  font-family: var(--lgx-font); font-size: 60px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-text);
}
.lgx-cta__info {
  width: 50%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 50px 50px 25px;
  border-left: 1px solid var(--lgx-accent);
}
.lgx-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr);
  column-gap: 0; row-gap: 25px;
  justify-items: start; align-items: start;
}
.lgx-cta__item { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lgx-cta__label, .lgx-cta__value {
  font-family: var(--lgx-font); font-size: 15px; font-weight: 300; line-height: 1.65;
}
.lgx-cta__label { color: var(--lgx-secondary); }
.lgx-cta__value { color: var(--lgx-text); }
.lgx-cta__action { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; }

.lgx-copyright {
  display: flex; min-height: 50px; padding: 0 5%;
  background: var(--lgx-primary);
  border-bottom: 1px solid var(--lgx-accent);
}
.lgx-copyright__inner { display: flex; align-items: center; justify-content: space-between; }
.lgx-copyright p {
  font-family: var(--lgx-font); font-size: 11px; font-weight: 300;
  color: var(--lgx-secondary);
}
.lgx-copyright__left { line-height: 1; text-align: center; }
.lgx-copyright__right { line-height: 1.65; }

@media (max-width: 1024px) {
  .lgx-cta__intro { width: 55%; }
  .lgx-cta__info { width: 45%; }
}
@media (max-width: 767px) {
  .lgx-cta { flex-wrap: wrap; }
  .lgx-cta__intro { width: 100%; padding: 60px 20px; }
  .lgx-cta__info { width: 100%; padding: 0 20px 60px; }
  .lgx-cta__grid { grid-template-columns: 1fr; }
  .lgx-cta__eyebrow, .lgx-cta__label, .lgx-cta__value { font-size: 12px; }
  .lgx-cta__title { font-size: 35px; }
  .lgx-copyright { padding: 0 20px; }
  .lgx-copyright__inner { flex-wrap: wrap; }
  .lgx-copyright p { text-align: center; }
}
