/* ==========================================================================
   首页（原 Elementor 页面 #1034 的 1:1 代码版）
   ========================================================================== */

/* 通用文字样式 */
.lgx-home .t-label { /* 区块小标题：核心服务 / 关于我们 …（原站用系统字体） */
  font-family: var(--lgx-system); font-size: 12.5px; font-weight: 400; line-height: 1.65;
  color: var(--lgx-secondary);
}
.lgx-home .t-body {
  font-family: var(--lgx-font); font-size: 12.5px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-secondary);
}
.lgx-home .t-h-lg { /* 大标题：原全局字体 primary */
  font-family: var(--lgx-font); font-size: 40px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-text);
}

/* ─── 1. 头图 ─── */
.lgx-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 90px);
  margin-top: -90px;
  padding: 0 50px;
}
.lgx-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0;
}
.lgx-hero::before { /* 左侧压暗渐变 */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14, 13, 11, .35) -10%, rgba(242, 41, 91, 0) 48%);
}
.lgx-hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 50px;
  width: 100%; max-width: min(100%, var(--lgx-max)); margin: 0 auto;
}
.lgx-hero__eyebrow {
  font-family: var(--lgx-font); font-size: 8.3px; font-weight: 300; line-height: 1.65;
  letter-spacing: 1.3px; word-spacing: 7px; text-transform: uppercase;
  color: var(--lgx-primary);
}
.lgx-hero__title {
  font-family: var(--lgx-font); font-size: 80px; font-weight: 300; line-height: 100px;
  word-spacing: 2px;
  color: var(--lgx-primary);
}
.lgx-hero__sub { display: flex; flex-direction: column; gap: 19px; }
.lgx-hero__desc {
  width: 20%;
  font-size: 12.5px; line-height: 1.65; color: var(--lgx-secondary);
}

/* ─── 2. 数据条（毛玻璃） ─── */
.lgx-stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  min-height: 50px; margin-top: -50px;
  background-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.lgx-stats__item {
  display: flex; justify-content: center; align-items: center;
  min-height: 50px;
  border: 0 solid var(--lgx-secondary); border-right-width: 1px;
}
.lgx-stats__item:last-child { border-right-width: 0; }
.lgx-stats__item p {
  font-family: var(--lgx-font); font-size: 12.5px; font-weight: 300; line-height: 1.65;
  letter-spacing: 2.7px; text-align: center;
  color: var(--lgx-primary);
}

/* ─── 3. 核心服务 ─── */
.lgx-section-head { padding: 60px 50px; }
.lgx-section-head .t-label { width: 20%; }
.lgx-services__main { display: grid; grid-template-columns: repeat(3, 1fr); }
.lgx-service {
  display: flex; flex-direction: column; gap: 20px;
  padding: 60px;
  border: solid var(--lgx-accent); border-width: 1px 1px 1px 0;
}
.lgx-service__num {
  font-family: var(--lgx-font); font-size: 59px; font-weight: 300; line-height: 1;
  color: var(--lgx-accent);
}
.lgx-service__title {
  font-family: var(--lgx-font); font-size: 24px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-text);
}
.lgx-service .t-body { width: 60%; }
.lgx-services__more { display: grid; grid-template-columns: repeat(4, 1fr); }
.lgx-service-sm {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px;
  border: solid var(--lgx-accent); border-width: 0 1px 1px 0;
}
.lgx-service-sm .t-body { width: 60%; color: var(--lgx-text); text-align: center; }

/* ─── 4. 关于我们 ─── */
.lgx-about { padding: 0 50px; border-bottom: 1px solid var(--lgx-accent); }
.lgx-about__inner { display: flex; width: 100%; max-width: min(100%, var(--lgx-max)); margin: 0 auto; }
.lgx-about__text {
  width: 100%; flex: 0 1 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 30px;
  padding: 60px 60px 60px 0;
}
.lgx-about__text .t-label { width: 20%; }
.lgx-about__text .t-h-lg { width: 56%; }
.lgx-about__media { width: 100%; flex: 0 1 auto; display: flex; flex-direction: column; }
.lgx-about__photo {
  min-height: 500px;
  background: url("/wp-content/uploads/2026/04/3R9A1531.jpg") center center / cover no-repeat;
}
.lgx-about__stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.lgx-about__stat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 60px;
  border: solid var(--lgx-accent); border-width: 1px 0 0 1px;
}
.lgx-about__stat:last-child { border-right-width: 1px; }
.lgx-about__stat .t-h-lg, .lgx-about__stat .t-body { text-align: center; }

/* ─── 5. 精选案例 ─── */
.lgx-cases__grid { display: flex; }
.lgx-cases__col { display: flex; flex-direction: column; }
.lgx-cases__col--l { width: 62%; flex: 0 1 auto; }
.lgx-cases__col--r { width: 44%; flex: 0 1 auto; }
.lgx-case {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 700px;
  background-position: center center; background-size: cover; background-repeat: no-repeat;
  color: #DFDFE2;
}
.lgx-case--teaspa { background-position: bottom center; }
.lgx-case--h850 { min-height: 850px; }
.lgx-case--h550 { min-height: 550px; }
.lgx-case__info {
  display: flex; flex-direction: row; align-self: flex-end;
  width: 100%; min-height: 50px;
  padding: 20px 50px;
  background-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lgx-case__meta {
  width: 100%; flex: 0 1 auto; align-self: center;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 50px;
}
.lgx-case__tag {
  font-family: var(--lgx-font); font-size: 12.5px; font-weight: 300; line-height: 1.65;
  letter-spacing: 2.7px; color: var(--lgx-primary);
}
.lgx-case__title {
  font-family: var(--lgx-font); font-size: 24px; font-weight: 300; line-height: 1.65;
  color: var(--lgx-primary);
}
.lgx-case__tag, .lgx-case__title { text-align: center; }
.lgx-case__title--start { text-align: start; }
.lgx-case__no {
  width: 100%; flex: 0 1 auto; align-self: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 50px;
}
.lgx-case__no--25 { width: 25%; align-items: flex-start; }
.lgx-case__no--19 { width: 19%; align-items: flex-start; }
.lgx-case__no p {
  align-self: flex-end;
  font-family: var(--lgx-font); font-size: 40px; font-weight: 300; line-height: 1.65;
  text-align: end; color: var(--lgx-primary);
}

/* ─── 6. 核心团队 ─── */
.lgx-team { display: flex; flex-direction: column; padding: 0 50px; }
.lgx-team__inner { width: 100%; max-width: min(100%, var(--lgx-max)); margin: 0 auto; }
.lgx-team__head { display: flex; }
.lgx-team__intro {
  width: 33.333%; flex: 0 1 auto;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 30px;
  padding: 60px 0;
  border-right: 1px solid var(--lgx-accent);
}
.lgx-team__intro .t-label { width: 20%; }
.lgx-team__intro .t-h-lg { width: 100%; }
.lgx-team__lead {
  width: 66.777%; flex: 0 1 auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 20px;
  padding: 0 0 60px 50px;
}
.lgx-team__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lgx-member {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px;
  min-height: 536px;
  background-size: cover; background-repeat: no-repeat;
  background-position: var(--bgx, 0px) 0px;
}
.lgx-member__info {
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 30px;
  background: #F3F2EE;
  border-left: 1px solid var(--lgx-accent);
}
.lgx-member--last .lgx-member__info { border-right: 1px solid var(--lgx-accent); }
.lgx-member__name {
  font-family: var(--lgx-font); font-size: 25px; font-weight: 300; line-height: 1.65;
  text-align: center; color: var(--lgx-text);
}
.lgx-member__role { text-align: center; }

/* ─── 案例卡片 / 团队卡片：桌面端悬停时信息条从底部升起 ─── */
@media (min-width: 768px) {
  .lgx-case__info, .lgx-member__info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    transform: translateY(100%); opacity: 0;
    transition: transform .6s var(--lgx-ease), opacity .5s ease;
    z-index: 10;
  }
  .lgx-case:hover .lgx-case__info, .lgx-case:focus-visible .lgx-case__info,
  .lgx-member:hover .lgx-member__info { transform: translateY(0); opacity: 1; }
}

/* ─── 平板：团队照片从左上角起裁（原站设置） ─── */
@media (max-width: 1024px) {
  .lgx-member { background-position: 0px 0px; }
}

/* ─── 手机 ─── */
@media (max-width: 767px) {
  .lgx-hero { margin-top: 0; padding: 0 20px; min-height: calc(100vh - 90px); }
  .lgx-hero__inner { gap: 10px; }
  .lgx-hero__title { font-size: 46px; line-height: 1.1; word-spacing: 0; }
  .lgx-hero__sub { gap: 10px; }
  .lgx-hero__desc { width: 206px; }

  .lgx-stats { grid-template-columns: repeat(2, 1fr); margin-top: -100px; }
  .lgx-stats__item:nth-child(1) { border-width: 0 1px 1px 0; }
  .lgx-stats__item:nth-child(2) { border-width: 0 0 1px 0; }
  .lgx-stats__item:nth-child(3) { border-width: 0 1px 0 0; }
  .lgx-stats__item p { font-size: 10px; }

  .lgx-section-head { padding: 30px 20px; }
  .lgx-services__main, .lgx-services__more { grid-template-columns: 1fr; }
  .lgx-service { padding: 30px 20px; }

  .lgx-about { padding: 0; }
  .lgx-about__inner { flex-wrap: wrap; }
  .lgx-about__text { padding: 60px 20px; }
  .lgx-about__stats { grid-template-columns: 1fr; }
  .lgx-about__stat { padding: 30px 0; border-width: 1px 1px 0 1px; }

  .lgx-cases__grid { flex-wrap: wrap; }
  .lgx-cases__col--l, .lgx-cases__col--r { width: 100%; }
  .lgx-case, .lgx-case--h850, .lgx-case--h550 { min-height: 400px; }
  .lgx-case__info { justify-content: space-between; padding: 10px 20px; }
  .lgx-case__meta { width: 74%; }
  .lgx-case--w77 .lgx-case__meta { width: 77%; }
  .lgx-case__no { width: 23%; }
  .lgx-case__no--25, .lgx-case__no--19 { width: 21%; align-items: center; }
  .lgx-case__title { font-size: 20px; }
  .lgx-case:not(.lgx-case--teaspa) .lgx-case__tag,
  .lgx-case:not(.lgx-case--teaspa) .lgx-case__title { text-align: start; }

  .lgx-team { padding: 0; }
  .lgx-team__head { flex-wrap: wrap; }
  .lgx-team__intro { width: 100%; padding: 60px 20px; }
  .lgx-team__lead { width: 100%; padding: 0 20px 60px; }
  .lgx-team__grid { grid-template-columns: repeat(2, 1fr); }
  .lgx-member { min-height: 270px; background-position: var(--bgx-m, 0px) 0px; }
  .lgx-member__info { padding: 20px; border-left-width: 0; }
  .lgx-member--leo .lgx-member__info, .lgx-member--last .lgx-member__info { border-left-width: 1px; }
  .lgx-member--last .lgx-member__info { border-right-width: 0; }
  .lgx-member__name { font-size: 20px; }
}
