/* =========================================================================
   RTTC 捕获页覆盖样式：红色导航栏 + logo 完美嵌入
   注入到所有捕获的 Wix 页面（capture.js 自动注入 + 已有页面已注入）
   站点红：#C71212（与原站品牌红一致）
   ========================================================================= */

/* ---- 导航栏红色背景（覆盖 Wix 的白色 colorUnderlay） ---- */
#SITE_HEADER {
    background: #C71212 !important;
    /* 固定导航栏：logo/菜单本身是固定定位，红条滚动时会消失导致 logo 悬浮。
       sticky 保持文档流不变、滚动时吸附顶部。
       z-index 必须保持 49（原值）：logo 固定层 z=55、菜单 z=56，红条要在其下、
       页面内容其上——设高了会把 logo/菜单盖住 */
    position: sticky !important;
    top: 0 !important;
    z-index: 49 !important;
}
#SITE_HEADER [data-testid="colorUnderlay"] {
    background: #C71212 !important;
}

/* ---- 导航菜单文字改白色（红底对比度） ---- */
#comp-jhivn1sm a,
#comp-jhivn1sm .wixui-dropdown-menu__item,
#comp-jhivn1sm nav a {
    color: #ffffff !important;
}
/* 悬停/选中保持白色，去下划线 */
#comp-jhivn1sm a:hover,
#comp-jhivn1sm .wixui-dropdown-menu__item:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ---- logo 完美嵌入：垂直居中于 62px 导航栏 ----
   容器贴齐导航栏并占满高度；清除 Wix 富文本内部的行高偏移；logo 高 56px，
   用 margin-top = (62-56)/2 = 3px 精确居中；left:40px 让 logo 整体右移，
   与页面内容左缘留出呼吸感 */
#comp-jhiq1m5r {
    top: -16px !important; /* 抵消 Wix mesh 定位父级的 16px 偏移，使容器贴齐导航栏顶部 */
    height: 62px !important;
    overflow: visible !important;
    left: 130px !important; /* PC 端整体右移，logo 左缘 = 26px 基准 + 130 = 156px（移动端在下方媒体查询内保持 40px） */
}
#comp-jhiq1m5r p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}
#comp-jhiq1m5r span {
    line-height: 0 !important;
    font-size: 0 !important;
}
#comp-jhiq1m5r img {
    height: 56px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
    margin-top: 3px !important;
}

/* ---- 移动端适配（Wix 移动布局下同一组元素，定位偏移与桌面不同） ---- */
@media (max-width: 767px) {
    #comp-jhiq1m5r {
        top: -13px !important; /* 移动端 mesh 偏移不同：容器贴到 y=3 */
        left: 40px !important; /* 移动端右移量小于 PC 端，避免窄屏上挤占汉堡按钮空间 */
    }
    #comp-jhiq1m5r img {
        height: 50px !important;
        margin-top: 3px !important; /* 容器顶 3px + margin 3 = 6px = (62-50)/2，垂直居中 */
    }
}

/* ---- SSR 抓取的背景 img 内联固定像素宽,流体容器宽于该值时右侧露出
   纯黑底色(color_37=0,0,0)。强制 img 填满 wow-image 容器(Wix
   displayMode=fill 语义,object-fit:cover 仍由内联样式提供,
   任意视口宽度均铺满不变形)。首页 hero banner + 联系页表单左图 ---- */
#img_comp-lr1l6z1n img,
#img_comp-lr1kk3er img,
#img_comp-lqxlffv52 img {
    width: 100% !important;
    height: 100% !important;
}
