﻿/* ==============================
   Footer
================================= */

.site-footer {
    width: 100%;
    background: #04336b;
    color: #fff;
}

.footer-main {
    width: 100%;
    background: #04336b;
}

.footer-main-inner {
    display: grid;
    grid-template-columns: 1.55fr 0.8fr 0.8fr 1.35fr;
    gap: 72px;
    min-height: 462px;
    padding-top: 52px;
    padding-bottom: 55px;
    box-sizing: border-box;
}

/* ==============================
   Company
================================= */

.footer-company {
    min-width: 0;
}

.footer-logo {
    display: flex;
    width: 211px;
    height: 58px;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 211px;
    height: 58px;
    max-width: none;
    object-fit: contain;
}

.footer-company-desc {
    max-width: 345px;
    margin-top: 20px;
    color: #fff;
    font-size: 15px;
    line-height: 21px;
}

.footer-sell-button {
    display: flex;
    width: 330px;
    max-width: 100%;
    height: 52px;
    margin-top: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid #329760;
    border-radius: 6px;
    background: transparent;
    color: #329760;
    font-size: 15px;
    font-weight: 500;
    line-height: 52px;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.footer-sell-button:hover {
    background: #329760;
    color: #fff;
}

.footer-certification {
    margin-top: 18px;
}

.footer-certification img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
}

/* ==============================
   Footer Columns
================================= */

.footer-column,
.footer-contact {
    min-width: 0;
}

.footer-column h3,
.footer-contact h3 {
    margin: 0 0 24px;
    color: #329760;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.footer-column ul,
.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin: 0 0 20px;
}

.footer-column li:last-child {
    margin-bottom: 0;
}

.footer-column a {
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: #329760;
}

/* ==============================
   Contact
================================= */

.footer-contact-list li {
    display: flex;
    margin-bottom: 18px;
    color: #fff;
    font-size: 15px;
    line-height: 23px;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact-list li > span {
    flex: 0 0 auto;
    margin-right: 10px;
    white-space: nowrap;
}

.footer-contact-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-list a:hover {
    color: #329760;
}

.footer-contact-list address {
    margin: 0;
    color: #fff;
    font-size: inherit;
    font-style: normal;
    line-height: inherit;
}

/* ==============================
   Social Media
================================= */

.footer-social {
    display: flex;
    margin-top: 36px;
    align-items: center;
    gap: 24px;
}

.footer-social a {
    display: flex;
    width: 24px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #329760;
    font-size: 25px;
    line-height: 28px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-social .fa-youtube-play {
    font-size: 23px;
}

.footer-social .fa-linkedin {
    font-size: 26px;
}

/* ==============================
   Copyright
================================= */

.footer-copyright {
    min-height: 57px;
    padding: 17px 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    background: #04336b;
    color: #fff;
    font-size: 15px;
    line-height: 23px;
    text-align: center;
}

/* PC端隐藏 */
.mobile-fixed-tools {
    display: none;
}

/* ==============================
   Floating Service
================================= */

.floating-service {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 9999;
    display: flex;
    width: 68px;
    padding: 8px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
}

.floating-service-item {
    position: relative;
    display: flex;
    width: 68px;
    height: 68px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 8px;
    background: #329760;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.floating-service-item:hover {
    background: #267e50;
    transform: translateX(-2px);
}

.floating-service-item img {
    display: block;
    width: 32px;
    height: 32px;
    max-width: 32px;
    object-fit: contain;
}

/* ==============================
   Email And Telephone Tooltip
================================= */

.floating-service-tip {
    overflow: visible;
}

.floating-service-text {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    display: flex;
    min-width: 190px;
    height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #329760;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(12px, -50%);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.floating-service-text::after {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #329760;
    content: "";
    transform: translateY(-50%);
}

.floating-service-tip:hover .floating-service-text {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}


/* ==============================
   Mobile
================================= */

@media (max-width: 768px) {

    .footer-main-inner {
        display: block;
        min-height: 0;
        padding-top: 38px;
        padding-bottom: 36px;
    }

    .footer-company,
    .footer-column,
    .footer-contact {
        width: 100%;
    }

    .footer-logo {
        width: 211px;
        height: 58px;
    }

    .footer-logo img {
        width: 211px;
        height: 58px;
    }

    .footer-company-desc {
        max-width: none;
        margin-top: 18px;
        font-size: 15px;
        line-height: 23px;
    }

    .footer-sell-button {
        width: 100%;
        height: 48px;
        margin-top: 20px;
        line-height: 48px;
    }

    .footer-certification {
        margin-top: 20px;
    }

    .footer-certification img {
        max-width: 145px;
    }

    .footer-column,
    .footer-contact { display:none;
        margin-top: 38px;
    }

    .footer-column h3,
    .footer-contact h3 {
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        font-size: 19px;
    }

    .footer-column li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column li:last-child {
        border-bottom: 0;
    }

    .footer-column a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        line-height: 22px;
    }

    .footer-contact-list li {
        display: block;
        margin-bottom: 15px;
        font-size: 15px;
        line-height: 23px;
    }

    .footer-contact-list li > span {
        display: inline;
        margin-right: 5px;
        font-weight: 600;
    }

    .footer-contact-list address {
        display: inline;
    }

    .footer-social {
        margin-top: 25px;
        gap: 25px;
    }

    .footer-social a {
        font-size: 24px;
    }

    .footer-copyright {
        padding: 16px 18px;
        font-size: 13px;
        line-height: 21px;
    }


.mobile-fixed-tools {
    position: fixed;
    right: 5px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-fixed-tools .mobile-fixed-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(14, 90, 164, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.mobile-fixed-tools .mobile-fixed-item:active {
    transform: scale(0.94);
}

/* BOM */
.mobile-fixed-bom {
    background: linear-gradient(135deg, #f7b901 0%, #ffca28 100%);
}

/* WhatsApp */
.mobile-fixed-whatsapp {
    background: #25d366;
}

/* Contact */
.mobile-fixed-contact {
    background: linear-gradient(135deg, #0e5aa4 0%, #2879c4 100%);
}

/* Back to top */
.mobile-fixed-top {
    border: 1px solid #f7b901;
    background: #ffffff;
    color: #0e5aa4 !important;
}

.mobile-fixed-top i {
    font-size: 1.35rem;
    font-weight: bold;
}

.mobile-fixed-tools .mobile-fixed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 90, 164, 0.28);
}

.mobile-fixed-bom:hover {
    background: #0e5aa4;
    color: #ffffff;
}

.mobile-fixed-whatsapp:hover {
    background: #1fbd5a;
    color: #ffffff;
}

.mobile-fixed-contact:hover {
    background: #f7b901;
    color: #ffffff;
}

.mobile-fixed-top:hover {
    background: #f7b901;
    color: #ffffff !important;
}

.floating-service{ display: none;}

}