/**
 * 全站公用样式
 * 供首页及其他页面共同引用
 */

/* ---------- Theme / Elementor base ---------- */
@import url("../lib/style.min.css");
@import url("../lib/theme.min.css");
@import url("../lib/header-footer.min.css");
@import url("../lib/frontend.min.css");
@import url("../lib/frontend(1).min.css");
@import url("../lib/uael-frontend.min.css");

/* ---------- Widgets ---------- */
@import url("../lib/widget-heading.min.css");
@import url("../lib/widget-image.min.css");
@import url("../lib/widget-icon-box.min.css");
@import url("../lib/widget-icon-list.min.css");
@import url("../lib/e-animation-float.min.css");
@import url("../lib/widget-styles.css");
@import url("../lib/responsive.css");

/* ---------- Global kit + Header / Footer / Popup ---------- */
@import url("../lib/kit.css");
@import url("../lib/header.css");
@import url("../lib/footer.css");
@import url("../lib/popup.css");
@import url("quick-quote.css");

/* ---------- Shared base patches ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* clip 不会破坏 position: sticky（hidden 会） */
  overflow-x: clip;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Override Elementor kit webfonts (Inter / Lato) — no external font files */
.elementor-kit-480 {
  --e-global-typography-primary-font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --e-global-typography-secondary-font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --e-global-typography-text-font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --e-global-typography-accent-font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

/* 主导航默认白底；滚动后由 .is-floating 固定悬浮 */
.elementor-location-header .elementor-element-f9c421c {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff;
}

.elementor-location-header .elementor-element-f9c421c.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.elementor-cta__bg {
  background-size: contain;
  background-position: center;
  min-height: 220px;
  background-color: #fff;
  background-repeat: no-repeat;
}

/* APPLICATION：灰底 + 内层白块（满宽，带边框便于区分） */
.elementor-element-fe895a,
.elementor-element-3cc5f9b7,
.elementor-element-76d82eb6 {
  background-color: #f0f2f6 !important;
}

.elementor-element-fe895a .elementor-inner-section .elementor-col-100,
.elementor-element-3cc5f9b7 .elementor-inner-section .elementor-col-100,
.elementor-element-76d82eb6 .elementor-inner-section .elementor-col-100 {
  width: 100% !important;
}

.elementor-element-fe895a .elementor-inner-section .elementor-col-100 > .elementor-widget-wrap,
.elementor-element-3cc5f9b7 .elementor-inner-section .elementor-col-100 > .elementor-widget-wrap,
.elementor-element-76d82eb6 .elementor-inner-section .elementor-col-100 > .elementor-widget-wrap {
  background-color: #ffffff !important;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  padding: 24px 28px 28px !important;
  margin: 0 0 8px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* Order Process：整段纯白，避免灰底 + 白图块拼贴 */
.elementor-element-55c8d7ca,
.elementor-element-345583e1,
.elementor-element-6462ca4d {
  background-color: #ffffff !important;
}

/* 仅产品列表：强制 4 列等宽网格（末行 2/3 个时也不缩窄） */
#products .elementor-inner-section,
#products .elementor-inner-section > .elementor-container {
  width: 100%;
}

#products .elementor-inner-section > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: stretch;
}

#products .elementor-column.elementor-col-25 {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
}

#products .elementor-column.elementor-col-25 > .elementor-widget-wrap {
  margin: 0;
  height: 100%;
}

#products .elementor-widget-call-to-action,
#products .elementor-widget-call-to-action > .elementor-widget-container,
#products .elementor-cta {
  width: 100%;
  height: 100%;
}

#products .elementor-widget-call-to-action > .elementor-widget-container {
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

#products .elementor-cta__bg-wrapper {
  min-height: 180px;
}

#products .elementor-cta__bg {
  min-height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #fff;
}

@media (max-width: 1024px) {
  #products .elementor-inner-section > .elementor-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #products .elementor-inner-section > .elementor-container {
    grid-template-columns: 1fr;
  }
}

/* Inline SVG icons (replaces icon fonts) */
.e-font-icon-svg,
.icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
}

.elementor-icon-box-icon .icon-svg,
.elementor-icon-list-icon .icon-svg {
  width: 1em;
  height: 1em;
}

.elementor-menu-toggle .icon-svg {
  width: 1.25em;
  height: 1.25em;
}

.cky-overlay,
.cky-consent-container,
.cky-modal,
#immersive-translate-popup {
  display: none !important;
}

/* ---------- Products 二级菜单（对齐 Elementor + SmartMenus 行为） ---------- */
/* 外观颜色/圆角/阴影/内边距走 lib/header.css（post-554），这里只负责展开定位 */
.elementor-nav-menu--main .menu-item-has-children {
  position: relative;
}

.elementor-nav-menu--main .elementor-nav-menu > li > ul.sub-menu.elementor-nav-menu--dropdown {
  display: none !important;
  position: absolute;
  /* 贴住主导航下划线，不要中间空隙 */
  top: 100% !important;
  /* 与带 margin 的一级链接/下划线左对齐（非首项） */
  left: var(--e-nav-menu-horizontal-menu-item-margin, 17.5px) !important;
  z-index: 1002;
  width: auto;
  min-width: 10em;
  max-width: 1000px;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  border-radius: 0 0 10px 10px;
}

.elementor-nav-menu--main .elementor-nav-menu > li:first-child > ul.sub-menu.elementor-nav-menu--dropdown {
  left: 0 !important;
}

.elementor-nav-menu--main .elementor-nav-menu > li:hover > ul.sub-menu.elementor-nav-menu--dropdown,
.elementor-nav-menu--main .elementor-nav-menu > li:focus-within > ul.sub-menu.elementor-nav-menu--dropdown,
.elementor-nav-menu--main .elementor-nav-menu > li.is-open > ul.sub-menu.elementor-nav-menu--dropdown {
  display: block !important;
}

.elementor-nav-menu--main .elementor-nav-menu > li:hover > a.elementor-item,
.elementor-nav-menu--main .elementor-nav-menu > li:focus-within > a.elementor-item,
.elementor-nav-menu--main .elementor-nav-menu > li.is-open > a.elementor-item {
  color: var(--e-global-color-d49ac81, #0477bf);
  fill: var(--e-global-color-d49ac81, #0477bf);
}

.elementor-nav-menu--main .elementor-nav-menu > li > ul.sub-menu .elementor-sub-item {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.elementor-nav-menu--main .sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 6px;
  vertical-align: middle;
  font-size: 16px;
  line-height: 1;
}

.elementor-nav-menu--main .sub-arrow .e-font-icon-svg,
.elementor-nav-menu--main .sub-arrow svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
}

/* 平板/手机：汉堡内嵌子菜单 */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container .menu-item-has-children > .sub-menu {
    display: none;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    box-shadow: none;
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu__container .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  /* 展开时 fixed 全宽，贴在 header 下方；避免父级 overflow 裁切 */
  .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-height: var(--menu-height, 80vh);
    transform: scaleY(1);
    overflow: hidden auto;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item,
  .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4em;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    padding: 0.85em 1.25em;
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-arrow {
    display: inline-flex;
    margin-inline-start: 0.35em;
  }

  .elementor-menu-toggle {
    border-radius: 50%;
    background: var(--e-global-color-d49ac81, #0477bf);
    color: #fff;
    width: 1.85em;
    height: 1.85em;
    font-size: 18px;
  }

  .elementor-menu-toggle .icon-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
  }

  .elementor-element-f9c421c,
  .elementor-widget-nav-menu {
    position: relative;
    z-index: 9998;
  }
}

/* ---------- Site notify dialog (form success / error) ---------- */
.site-notify {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.site-notify.is-open {
  display: flex;
}
.site-notify__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
}
.site-notify__dialog {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px 18px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.2);
  text-align: center;
}
.site-notify__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #1a1f2c;
}
.site-notify.is-success .site-notify__title {
  color: #067647;
}
.site-notify.is-error .site-notify__title {
  color: #b42318;
}
.site-notify__text {
  margin: 0 0 20px;
  color: #475467;
  font-size: 0.98rem;
  line-height: 1.5;
}
.site-notify__actions {
  display: flex;
  justify-content: center;
}
.site-notify__btn {
  min-width: 96px;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  background: #0477bf;
  color: #fff;
}
.site-notify.is-success .site-notify__btn {
  background: #067647;
}
.site-notify.is-error .site-notify__btn {
  background: #b42318;
}
.site-notify__btn:hover {
  filter: brightness(0.95);
}
