/* elegate — 页脚。 */

/* 生产 .desktop-footer 开头是一块 45px 的空白组件区（属于页脚内部、白底），不与内容区下边距折叠；
   手机 / 平板（<992）电脑版页脚整体隐藏，没有这块空白 */
@media (min-width: 992px) {
    .eg-footer {
        padding-top: 45px;
    }
}

.eg-footer__main {
    padding: 40px 0;
    background: var(--eg-bg-soft);
}

.eg-footer__grid {
    display: grid;
    gap: 32px;
}

.eg-footer__logo {
    margin-bottom: 22px;
}

.eg-footer__call {
    display: flex;
    gap: 20px;
    margin-bottom: 42px;
}

.eg-footer__call-icon {
    flex: none;
    color: var(--eg-primary);
    font-size: 65px;
    line-height: 1;
}

.eg-footer__call-icon .eg-icon {
    stroke-width: 0.9;
    vertical-align: top;
}

/* 生产 .footer-call-us .call-us-text / .call-us-number 原值（em：13.006px / 21.994px，行高 1.429em） */
.eg-footer__call-text {
    display: block;
    font-size: .929em;
    font-weight: 100;
    line-height: 1.429em;
}

.eg-footer__call-number {
    display: block;
    font-size: 1.571em;
    line-height: 1.429em;
    overflow-wrap: anywhere;
}

.eg-footer__address {
    margin-bottom: 17px;
}

.eg-footer__address-title {
    display: block;
    font-weight: 700;
}

.eg-footer__address address {
    margin: 0;
}

/* 生产 .footer-social-icons .social-icons（nav 弹性布局）：间距加在链接上（li+li a 左 26 上 6），
   隐藏的那一项（WhatsApp 手机版）不留空隙；图标 #7c7c7c、1.571em */
.eg-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eg-footer__social > li {
    display: inline-block;
}

.eg-footer__social > li + li a {
    margin-top: 6px;
    margin-left: 26px;
}

.eg-footer__social a {
    color: #7c7c7c;
    font-size: 1.571em;
    transition: color var(--eg-ease);
}

.eg-footer__social a:hover,
.eg-footer__social a:focus-visible {
    color: #494949;
}

@media (min-width: 1200px) {
    .eg-footer__social .fa-facebook:hover,
    .eg-footer__social .fa-facebook:focus-visible { color: #3b5998; }
    .eg-footer__social .fa-whatsapp:hover,
    .eg-footer__social .fa-whatsapp:focus-visible { color: #4fce5d; }
    .eg-footer__social .fa-youtube:hover,
    .eg-footer__social .fa-youtube:focus-visible { color: #f00; }
}

.eg-footer__menus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
}

/* 生产 .footer-bottom-widgets .widget-title：1.143em / 行高 1.125em / 下 1.6em */
.eg-footer__menus .eg-widget__title {
    margin: 0 0 1.6em;
    font-size: 1.143em;
    font-weight: 700;
    line-height: 1.125em;
}

.eg-footer__menus ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eg-footer__menus li {
    padding-bottom: 5.4px;
}

.eg-footer__menus a:hover {
    color: var(--eg-link-hover);
}

.eg-footer__bar {
    padding: 1.4px 0;
    background: var(--eg-bg-bar);
    line-height: 1.6;
}

.eg-footer__credit {
    padding: 10px 0;
}

@media (min-width: 992px) {
    .eg-footer__main {
        padding: 60px 0 62px;
    }

    /* 生产 .footer-contact.col-md-5 + .footer-bottom-widgets-menu.col-md：联系栏占 5/12（含 30px 栏间距），菜单占其余 */
    .eg-footer__grid {
        grid-template-columns: calc((100% + 30px) * 5 / 12 - 30px) minmax(0, 1fr);
        gap: 0 30px;
    }

    /* 生产 .footer-bottom-widgets-menu-inner：992–1199 各栏 .col 均分；≥1200 row-cols-xl-4 每栏 25%、两端对齐 */
    .eg-footer__menus {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }

    .eg-footer__menus > * {
        flex: 1 0 0%;
        min-width: 0;
    }
}

@media (min-width: 1200px) {
    .eg-footer__menus > * {
        flex: 0 0 auto;
        width: 25%;
    }

    .eg-footer__bar {
        line-height: 42px;
    }

    .eg-footer__credit {
        padding: 0;
    }
}

/* ---------- 手机页脚（≤991，生产 .handheld-footer.v2） ---------- */
.eg-hfooter {
    display: none;
    padding-top: 24px; /* 生产 pt-4 */
    background-color: #f2f2f2;
}

/* 生产 .handheld-widget-menu 是空的，只留下 v2 的下边距 53px */
.eg-hfooter__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 53px 0 0;
    padding: 0;
    list-style: none;
    font-size: 26px;
}

.eg-hfooter__social li {
    margin-bottom: 20px;
}

.eg-hfooter__social a {
    padding: 0 15px;
    color: #333e48;
}

.eg-hfooter__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    background-color: #333e48;
}

.eg-hfooter__logo {
    margin-bottom: 1.55em;
}

.eg-hfooter__call {
    max-width: 180px;
    text-align: center;
}

.eg-hfooter__call-text {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.429em;
}

.eg-hfooter__call-number {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.429em;
}

/* 生产 .social-icons-color：WhatsApp 绿色；手机 / 桌面两项按宽度切换（992–1199 两项都显示，与生产一致） */
.eg-social-color .fa-whatsapp {
    color: #4fce5d;
}

@media (max-width: 991.98px) {
    .eg-footer__main,
    .eg-footer__bar {
        display: none;
    }

    .eg-hfooter {
        display: block;
    }

    .eg-hfooter .fa-whatsapp.mobile,
    .eg-footer__social .fa-whatsapp.mobile {
        display: block;
    }

    .eg-hfooter .fa-whatsapp.desktop,
    .eg-footer__social .fa-whatsapp.desktop {
        display: none;
    }
}

@media (min-width: 1200px) {
    .eg-footer__social .fa-whatsapp.mobile {
        display: none;
    }
}

/* 桌面页脚主区与版权条：生产 .desktop-footer .footer-bottom-widgets / .copyright-bar 的通栏写法原样 */
@media (min-width: 992px) {
    .eg-footer__main,
    .eg-footer__bar {
        width: 100vw;
        position: relative;
        margin-left: calc(-50vw + 50% - 8px);
    }
}
