/* Shared WEC footer used by the homepage and all downloaded inner pages. */
.wec-footer-cta,
.wec-footer-cta * ,
.wec-sfv2-footer,
.wec-sfv2-footer * {
    box-sizing: border-box;
}

.wec-footer-cta {
    width: 100% !important;
    margin: 0 !important;
    padding: 72px 32px !important;
    background: #f4f6f6;
    border-top: 1px solid #e8ebeb;
}

.wec-footer-cta__inner {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: min(1320px, 100%) !important;
    margin: 0 auto !important;
    padding: 54px 58px !important;
    overflow: hidden;
    gap: 64px;
    border: 1px solid #e3e7e7;
    border-radius: 24px;
    background:
        linear-gradient(112deg, rgba(200,40,30,.035), transparent 46%),
        #fff;
    box-shadow: 0 24px 60px rgba(31,40,41,.08);
}

.wec-footer-cta__inner::before {
    content: "";
    position: absolute;
    top: -190px;
    right: 80px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,40,30,.18) 0, rgba(200,40,30,.06) 42%, transparent 70%);
    pointer-events: none;
}

.wec-footer-cta__inner::after {
    content: "";
    position: absolute;
    right: 255px;
    bottom: -118px;
    width: 235px;
    height: 235px;
    border: 1px solid rgba(200,40,30,.11);
    border-radius: 50%;
    pointer-events: none;
}

.wec-footer-cta__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.wec-footer-cta__content::before {
    content: "START YOUR PROJECT";
    display: block;
    margin-bottom: 16px;
    color: #e34a40;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .18em;
}

html[lang="zh-CN"] .wec-footer-cta__content::before {
    content: "启动您的项目";
    letter-spacing: .08em;
}

.wec-footer-cta__title {
    max-width: 820px;
    margin: 0 0 16px !important;
    color: #171b1c;
    font-size: clamp(30px, 3vw, 46px) !important;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.wec-footer-cta__text {
    max-width: 720px;
    margin: 0 !important;
    color: #667072;
    font-size: 15px;
    line-height: 1.7;
}

.wec-footer-cta__button {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 190px;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 28px;
    gap: 12px;
    border-radius: 999px;
    background: var(--wec-red, #c8281e);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(200,40,30,.26);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.wec-footer-cta__button::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

.wec-footer-cta__button:hover {
    background: #df3025;
    box-shadow: 0 16px 34px rgba(200,40,30,.34);
    transform: translateY(-2px);
}

.wec-footer-cta__button:hover::after {
    transform: translateX(4px);
}

.wec-sfv2-footer {
    width: 100% !important;
    margin: 0 !important;
    background: #171b1c !important;
    color: #bfc5c6;
    border-top: 4px solid var(--wec-red, #c8281e);
}

.wec-sfv2-footer__inner {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(140px, .7fr)) !important;
    width: min(1320px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 72px 0 64px !important;
    gap: 64px !important;
}

.wec-sfv2-footer__brand,
.wec-sfv2-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wec-sfv2-footer__brand {
    padding-right: 30px;
}

.wec-sfv2-footer__brand .custom-logo-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 158px;
    height: 72px;
    margin: 0 0 24px !important;
    padding: 8px 14px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    line-height: 0;
}

.wec-sfv2-footer__brand img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain;
}

.wec-footer-tagline {
    max-width: 390px;
    margin: 0 0 26px !important;
    color: #9da6a8;
    font-size: 14px;
    line-height: 1.75;
}

.wec-footer-contacts {
    display: grid;
    width: 100%;
    max-width: 390px;
    gap: 10px;
}

.wec-footer-contact {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 !important;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    text-decoration: none !important;
}

.wec-footer-contact__label {
    color: #7f898b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.wec-footer-contact__value {
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}

.wec-sfv2-footer__column {
    padding-top: 8px;
}

.wec-sfv2-footer__column h3 {
    position: relative;
    margin: 0 0 26px !important;
    padding-bottom: 13px;
    color: #fff;
    font-size: 16px;
    letter-spacing: .04em;
}

.wec-sfv2-footer__column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--wec-red, #c8281e);
}

.wec-sfv2-footer__links {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wec-sfv2-footer__links a {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    color: #aeb6b8 !important;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease;
}

.wec-sfv2-footer__links a::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: var(--wec-red, #c8281e);
    transition: width .2s ease, margin-right .2s ease;
}

.wec-sfv2-footer__links a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.wec-sfv2-footer__links a:hover::before {
    width: 14px;
    margin-right: 8px;
}

.wec-sfv2-footer__bottom {
    margin: 0 !important;
    padding: 24px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    background: #111415 !important;
    color: #7f898b !important;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1050px) {
    .wec-footer-cta__inner {
        align-items: flex-start !important;
        padding: 46px !important;
    }

    .wec-sfv2-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 48px !important;
    }

    .wec-sfv2-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .wec-footer-cta {
        padding: 44px 20px !important;
    }

    .wec-footer-cta__inner {
        flex-direction: column;
        padding: 38px 30px !important;
        gap: 30px;
        border-radius: 18px;
    }

    .wec-footer-cta__inner::before {
        top: auto;
        right: -120px;
        bottom: -190px;
    }

    .wec-footer-cta__inner::after {
        display: none;
    }

    .wec-footer-cta__button {
        align-self: stretch;
        width: 100%;
    }
}

@media (max-width: 680px) {
    .wec-sfv2-footer__inner {
        grid-template-columns: 1fr !important;
        width: calc(100% - 36px) !important;
        padding: 52px 0 46px !important;
        gap: 38px !important;
    }

    .wec-sfv2-footer__brand {
        grid-column: auto;
    }

    .wec-footer-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Shared site variant: integrate the quote prompt into the dark footer so
   every local page uses the same continuous footer treatment. */
.wec-shared-footer--integrated .wec-sfv2-footer {
    position: relative;
    overflow: hidden;
    border-top: 0;
    background:
        radial-gradient(circle at 84% 0, rgba(200,40,30,.13), transparent 28%),
        #171b1c !important;
}

.wec-shared-footer--integrated .wec-footer-cta {
    position: relative;
    padding: 0 32px !important;
    border: 0;
    background: transparent;
}

.wec-shared-footer--integrated .wec-footer-cta__inner {
    width: min(1320px, 100%) !important;
    padding: 68px 0 58px !important;
    gap: 72px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wec-shared-footer--integrated .wec-footer-cta__inner::before {
    top: -225px;
    right: 25px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(200,40,30,.16) 0, rgba(200,40,30,.05) 42%, transparent 70%);
}

.wec-shared-footer--integrated .wec-footer-cta__inner::after {
    right: 205px;
    bottom: -180px;
    width: 300px;
    height: 300px;
    border-color: rgba(255,255,255,.06);
}

.wec-shared-footer--integrated .wec-footer-cta__content::before {
    margin-bottom: 18px;
    color: #f05a50;
}

.wec-shared-footer--integrated .wec-footer-cta__title {
    max-width: 780px;
    margin-bottom: 14px !important;
    color: #fff;
    font-size: clamp(30px, 3vw, 44px) !important;
}

.wec-shared-footer--integrated .wec-footer-cta__text {
    color: #aeb6b8;
}

.wec-shared-footer--integrated .wec-sfv2-footer a.wec-footer-cta__button,
.wec-shared-footer--integrated .wec-sfv2-footer a.wec-footer-cta__button:visited {
    min-width: 196px;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 10px 25px rgba(200,40,30,.16);
}

.wec-shared-footer--integrated .wec-sfv2-footer__inner {
    padding-top: 58px !important;
}

@media (max-width: 760px) {
    .wec-shared-footer--integrated .wec-footer-cta {
        padding: 0 18px !important;
    }

    .wec-shared-footer--integrated .wec-footer-cta__inner {
        padding: 48px 0 42px !important;
        gap: 28px;
        border-radius: 0;
    }

    .wec-shared-footer--integrated .wec-footer-cta__inner::before {
        right: -165px;
        bottom: -215px;
    }

    .wec-shared-footer--integrated .wec-sfv2-footer a.wec-footer-cta__button {
        align-self: flex-start;
        width: auto;
        min-width: 184px;
    }

    .wec-shared-footer--integrated .wec-sfv2-footer__inner {
        padding-top: 44px !important;
    }
}
