/* ==========================================================================
   xin-contact-tools — 手机端底部导航栏
   命名空间：.xct-footer-fix
   ========================================================================== */

.xct-footer-fix {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: none; /* 移动端媒体查询开启 */
    width: 100%;
    background-color: var(--xct-mob-bg, #fff);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    padding-bottom: env(safe-area-inset-bottom);
}

.xct-footer-fix ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xct-footer-fix li {
    flex: 1;
    min-width: 0;
}

.xct-footer-fix li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    color: var(--xct-mob-text, #333);
    text-decoration: none;
}

.xct-footer-fix li a:hover {
    color: var(--xct-mob-text, #333);
    text-decoration: none;
}

.xct-footer-fix li img,
.xct-footer-fix li .xct-footer-icon {
    margin-bottom: 4px;
    width: 26px;
    height: auto;
}

.xct-footer-fix li .xct-footer-icon.xct-icon-svg {
    display: block;
    height: 26px;
}

.xct-footer-fix li .xct-footer-icon.xct-icon-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── 语言弹窗 ── */
#xct-shortcode-language {
    width: 80%;
    padding: 1.5rem;
}

#xct-shortcode-language ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#xct-shortcode-language ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

#xct-shortcode-language ul li:last-child { border-bottom: none; }

#xct-shortcode-language ul li a {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

#xct-shortcode-language ul li a img {
    width: 24px;
    height: auto;
    flex-shrink: 0;
}

#xct-shortcode-language ul li a span {
    margin-left: 10px;
    font-size: 16px;
}

/* TranslatePress 浮动按钮避免被底栏遮挡 */
#trp-floater-ls.trp-bottom-right {
    bottom: 63px;
    right: 0;
}

/* ── 移动端才显示 ── */
@media (max-width: 767px) {
    .xct-footer-fix { display: block; }
}
