/* Quick global footer fix: keep footer fixed and prevent content overflow */
/* Applied site-wide for mobile templates */
.global-fixed-footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    z-index: 9999 !important;
    -webkit-tap-highlight-color: transparent;
    height: 56px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.06);
}

/* Reserve space for fixed footer so content isn't hidden */
body.with-fixed-footer {
    padding-bottom: 64px !important; /* adjust if footer height differs */
    overflow-x: hidden !important;
}

/* 客服中心突出样式 */
.bottom_navbar .bottom_navbar_list.kefu {
    color: #ff5b4d !important;
}
.bottom_navbar .bottom_navbar_list.kefu .am-navbar-label {
    font-weight: 700;
    color: #ff5b4d !important;
    font-size: 0.32rem;
}
.bottom_navbar .bottom_navbar_list.kefu i {
    font-size: 20px;
    color: #ff5b4d !important;
}
.bottom_navbar .bottom_navbar_list.kefu::after{
    content: '';
    position: absolute;
    top: -4px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg,#ff8a75,#ff5b4d);
    border-radius: 2px;
}

/* Ensure 客服 center is always highlighted and icon uniform */
.bottom_navbar .bottom_navbar_list.kefu,
.bottom_navbar .bottom_navbar_list.kefu .am-navbar-label,
.bottom_navbar .bottom_navbar_list.kefu i {
    color: #ff5b4d !important;
}
.bottom_navbar .bottom_navbar_list.kefu i {
    font-size: 22px !important;
    line-height: 1.2rem !important;
}

/* Prevent 首页 from appearing red — keep it neutral even when active */
.bottom_navbar .bottom_navbar_list.shouye,
.bottom_navbar .bottom_navbar_list.shouye .am-navbar-label,
.bottom_navbar .bottom_navbar_list.shouye i {
    color: #838793 !important;
}
.bottom_navbar .bottom_navbar_list.shouye.active,
.bottom_navbar .bottom_navbar_list.shouye.active .am-navbar-label,
.bottom_navbar .bottom_navbar_list.shouye.active i {
    color: #838793 !important;
}

/* Make all nav icons consistent size and vertical alignment */
.bottom_navbar .bottom_navbar_list i {
    display: block;
    font-size: 20px !important;
    
}

/* Ensure footer children do not overflow horizontally */
.global-fixed-footer * {
    box-sizing: border-box;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

 
/* Normalize any icon-goucaidating used inside footer to the kefu style (fallback) */
.bottom_navbar .icon-goucaidating {
    color: #ff5b4d !important;
    font-size: 22px !important;
    line-height: 1.2rem !important;
}

/* Ensure the label with class 'shouye' keeps neutral color */
.bottom_navbar .am-navbar-label.shouye {
    color: #838793 !important;
    font-weight: 400 !important;
}

/* Override common active rules coming from per-page CSS: keep footer neutral except kefu */
.bottom_navbar .am-navbar-nav li a,
.bottom_navbar .am-navbar-nav li a .am-navbar-label,
.bottom_navbar .am-navbar-nav li a i{
    color: inherit !important;
}

/* Force kefu to always be red as highest priority */
.bottom_navbar .am-navbar-nav li a.kefu,
.bottom_navbar .am-navbar-nav li a.kefu .am-navbar-label,
.bottom_navbar .am-navbar-nav li a.kefu i {
    color: #ff5b4d !important;
}

/* Override generic '.active' rule applied after CSS load */
/* Keep homepage and other items neutral unless they are kefu */
.bottom_navbar .am-navbar-nav li a.active,
.bottom_navbar .am-navbar-nav li.active a,
.bottom_navbar .active,
.bottom_navbar .am-navbar-nav li a.active .am-navbar-label,
.bottom_navbar .am-navbar-nav li.active a .am-navbar-label,
.bottom_navbar .active .am-navbar-label,
.bottom_navbar .am-navbar-nav li a.active i,
.bottom_navbar .am-navbar-nav li.active a i,
.bottom_navbar .active i {
    color: #838793 !important;
}

/* Ensure kefu stays red even when 'active' class is present */
.bottom_navbar .am-navbar-nav li a.kefu.active,
.bottom_navbar .am-navbar-nav li.kefu a.active,
.bottom_navbar .am-navbar-nav li a.kefu.active i,
.bottom_navbar .am-navbar-nav li a.kefu.active .am-navbar-label {
    color: #ff5b4d !important;
}

/* Ensure 客服 center shows an icon for both <i> and <img> templates */
.bottom_navbar .bottom_navbar_list.kefu i {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    vertical-align: middle !important;
    background-image: url('/Template/Mobile/images/kefu.png') !important;
    background-repeat: no-repeat !important;
    background-size: 22px 22px !important;
    text-indent: -9999px !important;
    color: transparent !important;
}
.bottom_navbar .bottom_navbar_list.kefu img {
    width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background: none !important;
}

/* Also normalize any other places that may use icon-goucaidating directly */
.bottom_navbar .icon-goucaidating {
    background-image: none !important; /* prevent double */
}

/* Stronger overrides to prevent page-level CSS from coloring footer items */
.global-fixed-footer .am-navbar-nav > li > a,
.global-fixed-footer .am-navbar-nav > li > a .am-navbar-label {
    color: #838793 !important;
    background: transparent !important;
    opacity: 1 !important;
}

.global-fixed-footer .am-navbar-nav > li > a i,
.global-fixed-footer .am-navbar-nav > li > a img {
    color: inherit !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background: none !important;
}

/* Ensure kefu stays red and icon uses image */
.global-fixed-footer .am-navbar-nav > li > a.kefu,
.global-fixed-footer .am-navbar-nav > li > a.kefu .am-navbar-label {
    color: #ff5b4d !important;
}
.global-fixed-footer .am-navbar-nav > li > a.kefu img {
    width: 22px !important;
    height: 22px !important;
}

/* Highest z-index and layout safety */
.global-fixed-footer {
    z-index: 99999 !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Force-show icon elements inside footer to avoid page-level overrides hiding them */
.global-fixed-footer .bottom_navbar_list i {
    display: inline-block !important;
    visibility: visible !important;
    font-family: "iconfont" !important;
    speak: none !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: #838793 !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    text-indent: 0 !important;
    background: none !important;
    background-image: none !important;
}

/* If a page hides images in footer, ensure img for kefu still shows */
.global-fixed-footer .bottom_navbar_list.kefu img {
    display: inline-block !important;
    visibility: visible !important;
}
