/* ==========================================================================
   CNVERTEX x Astra bridge
   Astra 4.x 的 chrome 用 .ast-* 类名；现有 tech skin 是针对 Blocksy (.ct-*)
   和旧 Elementor 演示主题 (.navbar/.topheader) 写的，换主题后这些页头页脚
   规则全部不匹配。本层把 Astra 的页头 / 页脚 / 容器映射回同一套 --cs-* 令牌。
   删除本文件即回退到 Astra 原生外观。

   v1.1 修复（实测驱动）：
     - 吸顶失效：粘滞元素父级只有 84px，可位移仅 1px -> 改为粘滞 header 本身
     - 导航色块 #004D6F 接缝 -> .site-header .main-navigation 置透明
     - 站点副标题 #1E293B on #050810 (1.37:1) -> 浅色
     - 移动端下拉面板白底白字 -> 深色面板
     - 首页产品卡：旧主题 style.css 的 .about-us-column1 悬停浮层缺失，改为深色浮层
   ========================================================================== */

/* ---------- 0. 滚动容器修正（否则 sticky 在 body overflow-x:hidden 下不生效） ---------- */
html,
body { overflow-x: clip; }

/* ---------- 1. header chrome ---------- */
.site-header,
#ast-desktop-header,
#ast-mobile-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-main-header-wrap,
.ast-mobile-header-wrap .main-header-bar {
  background-color: rgba(5, 8, 16, .92) !important;
  border-bottom: 1px solid var(--cs-line, rgba(77, 166, 255, .18)) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 粘滞要挂在 header#masthead 上：它的包含块是 .page（整页高），
   而 #ast-desktop-header 的包含块只有自身高度，粘不了几个像素 */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
  width: 100%;
}
#ast-desktop-header { position: static !important; top: auto !important; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header .ast-container { max-width: 1280px; }
.site-header .custom-logo { width: 168px; height: auto; }

/* ---------- 2. navigation ---------- */
.main-header-menu .menu-link,
.ast-builder-menu .menu-link {
  color: var(--cs-ink, #E6F1FF) !important;
  font-family: Poppins, Inter, sans-serif;
  font-size: 14px;
  letter-spacing: .4px;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-item.current-menu-item > .menu-link {
  color: var(--cs-hi, #00F0FF) !important;
  text-shadow: var(--cs-glow, 0 0 12px rgba(0, 240, 255, .5));
}
.main-header-menu .sub-menu {
  background: rgba(8, 14, 24, .98) !important;
  border: 1px solid var(--cs-line, rgba(77, 166, 255, .18));
}
.main-header-menu .sub-menu .menu-link { color: var(--cs-muted, #8FA6C0) !important; }
.main-header-menu .sub-menu .menu-link:hover { color: var(--cs-hi, #00F0FF) !important; }

/* cnvertex-brand.css 给 .main-navigation 加了 #004D6F !important，
   在 Astra 里它只是一条 502px 宽的色块，露出硬边接缝 */
.site-header .main-navigation,
.site-header .site-navigation {
  background-color: transparent !important;
}

/* 站点名/副标题：Astra 默认深色字，压在深底上几乎看不见 */
.site-header .site-title,
.site-header .site-title a,
.site-header .site-description {
  color: var(--cs-ink, #E6F1FF) !important;
}

/* mobile toggle + off-canvas（Astra dropdown 用的是 .ast-mobile-header-content） */
.main-header-menu-toggle,
.ast-button-wrap .mobile-menu-toggle-icon,
.ast-mobile-menu-trigger-minimal { color: var(--cs-ink, #E6F1FF) !important; }

.ast-mobile-header-content,
.ast-mobile-popup-inner {
  background: #080E18 !important;
  border-top: 1px solid var(--cs-line, rgba(77, 166, 255, .18));
}
/* Astra 给移动端菜单的 UL 与 a 单独刷了白底，只改面板底色会留下白底白字（1.14:1） */
.ast-mobile-header-content .main-header-menu,
.ast-mobile-header-content ul.main-header-menu,
.ast-mobile-header-content .menu-link,
.ast-mobile-popup-inner .main-header-menu,
.ast-mobile-popup-inner ul.main-header-menu,
.ast-mobile-popup-inner .menu-link {
  background-color: transparent !important;
}
.ast-mobile-header-content .menu-link,
.ast-mobile-popup-inner .menu-link {
  color: var(--cs-ink, #E6F1FF) !important;
  border-bottom: 1px solid rgba(77, 166, 255, .12);
}
.ast-mobile-header-content .menu-link:hover,
.ast-mobile-header-content .current-menu-item > .menu-link {
  color: var(--cs-hi, #00F0FF) !important;
}

/* ---------- 3. content canvas ---------- */
.elementor-page .site-content .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.elementor-page .site-content .ast-article-single { padding: 0; }
.elementor-page .entry-header { display: none !important; }

/* ---------- 4. footer ---------- */
#colophon.site-footer { display: none !important; }

/* ---------- 5. 首页产品卡：移植旧主题的悬停浮层 ----------
   旧主题 style.css 里 .about-us-column1 是 position:absolute; bottom:4%; opacity:0，
   hover 时浮现。换主题后这段丢失，浮层变成流式块，多出 128px 徽标与约 300px 空白。
   这里还原机制，但配色改用深色面板：旧写法是白底卡片，而 tech skin 已把 h3 设为
   浅色 #E6F1FF，白底浅字会是 1.05:1 的不可读组合。 */
.industrial-services-elementor-about-image-section { position: relative; }
.industrial-services-elementor-about-image-section .about-us-column1 {
  position: absolute;
  bottom: 4%;
  left: 3.5%;
  width: 93% !important;
  margin: 0;
  padding: 18px 18px 20px;
  background: rgba(8, 14, 24, .96) !important;
  border: 1px solid var(--cs-line, rgba(77, 166, 255, .18));
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--cs-ease, cubic-bezier(.2, .8, .2, 1)),
              transform .45s var(--cs-ease, cubic-bezier(.2, .8, .2, 1));
  pointer-events: none;
  z-index: 3;
}
.industrial-services-elementor-about-image-section:hover .about-us-column1,
.industrial-services-elementor-about-image-section:focus-within .about-us-column1 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* 浮层里的资质徽标会把产品图整块盖住，而且和卡面重复，直接不显示 */
.industrial-services-elementor-about-image-section .about-us-column1 img {
  display: none !important;
}

/* 四张卡按内容长度各自塌陷（441 / 395 / 418 / 418），拉平高度 */
.industrial-services-elementor-about-image-section .elementor-widget-image-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.industrial-services-elementor-about-image-section .elementor-image-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.industrial-services-elementor-about-image-section .about-us-column1 h3,
.industrial-services-elementor-about-image-section .about-us-column1 p {
  color: var(--cs-ink, #E6F1FF) !important;
  text-align: left;
  margin: 0 0 8px;
}
.industrial-services-elementor-about-image-section .about-us-column1 p {
  color: var(--cs-muted, #8FA6C0) !important;
  font-size: 13px;
  line-height: 20px;
}
/* 触屏没有 hover：浮层改为常规块，否则卡片内容永远看不到 */
@media (hover: none), (max-width: 900px) {
  .industrial-services-elementor-about-image-section .about-us-column1 {
    position: static;
    width: 100% !important;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 12px;
    box-shadow: none;
  }
}

/* ---------- 6. misc Astra chrome ---------- */
#ast-scroll-top { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .site-header { position: sticky !important; }
  .industrial-services-elementor-about-image-section .about-us-column1 {
    transition: none;
  }
}
