/* ==========================================
   Footer 模块样式
   ========================================== */

.gh-footer {
    position: relative;
    margin-top: 0;
    background: var(--gh-footer-bg);
    color: var(--gh-footer-title);
    overflow: hidden;
}

.gh-footer::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, rgba(76, 175, 80, 0) 68%);
    pointer-events: none;
}

.gh-footer::after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 420px;
    height: 260px;
    background: radial-gradient(circle, rgba(41, 168, 255, 0.12) 0%, rgba(41, 168, 255, 0) 68%);
    pointer-events: none;
}

.gh-footer__container {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: 64px 48px 0;
}

.gh-footer__main {
    display: grid;
    grid-template-columns: 1.08fr 1fr 1fr 1fr;
    gap: 48px;
    min-height: 228px;
    padding-bottom: 64px;
}

.gh-footer__column {
    min-width: 0;
}

.gh-footer__brand {
    display: inline-flex;
    align-items: center;
}

.gh-footer__brand img {
    width: 158px;
    height: 44px;
    object-fit: contain;
}

.gh-footer__desc {
    margin-top: 24px;
    max-width: 421px;
    color: var(--gh-footer-text);
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: -0.15px;
}

.gh-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.gh-footer__social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gh-footer-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--gh-footer-transition), background-color var(--gh-footer-transition), box-shadow var(--gh-footer-transition);
}

.gh-footer__social img {
    width: 16px;
    height: 16px;
}

.gh-footer__social:hover,
.gh-footer__social:focus-visible {
    background: var(--gh-footer-chip-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.gh-footer__heading {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    color: var(--gh-footer-title);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.31px;
    cursor: default;
}

.gh-footer__heading::after {
    content: "";
    display: none;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--gh-footer-transition);
}

.gh-footer__panel {
    margin-top: 24px;
}

.gh-footer__link-list,
.gh-footer__text-list,
.gh-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gh-footer__link-list li + li,
.gh-footer__text-list li + li {
    margin-top: 12px;
}

.gh-footer__link-list a,
.gh-footer__text-list li {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    min-height: 20px;
    padding-left: 12px;
    color: var(--gh-footer-text);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    transition: color var(--gh-footer-transition), transform var(--gh-footer-transition);
}

.gh-footer__link-list a::before,
.gh-footer__text-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gh-footer-accent);
}

.gh-footer__link-list a:hover,
.gh-footer__link-list a:focus-visible {
    color: #d8e1ec;
    transform: translateX(2px);
}

.gh-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gh-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gh-footer-text);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.gh-footer__contact-item--address {
    align-items: flex-start;
}

.gh-footer__contact-item a,
.gh-footer__contact-item p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.gh-footer__contact-item p + p {
    margin-top: 0;
}

.gh-footer__contact-item a:hover,
.gh-footer__contact-item a:focus-visible {
    color: #d8e1ec;
}

.gh-footer__contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gh-footer__contact-icon img {
    width: 20px;
    height: 20px;
}

.gh-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 69px;
    padding: 24px 0;
    border-top: 1px solid var(--gh-footer-divider);
}

.gh-footer__copyright,
.gh-footer__legal a {
    color: var(--gh-footer-muted);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.gh-footer__copyright {
    margin: 0;
}

.gh-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.gh-footer__legal a {
    transition: color var(--gh-footer-transition);
}

.gh-footer__legal a:hover,
.gh-footer__legal a:focus-visible {
    color: #b7c3d2;
}

.gh-footer a:focus-visible,
.gh-footer button:focus-visible {
    outline: 2px solid var(--gh-footer-focus);
    outline-offset: 2px;
}

@media (max-width: 968px) {
    .gh-footer__container {
        padding: 48px 24px 0;
    }

    .gh-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        padding-bottom: 40px;
    }
}

@media (max-width: 750px) {
    .gh-footer__container {
        padding: 40px 16px 0;
    }

    .gh-footer__main {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 28px;
    }

    .gh-footer__column {
        border-bottom: 1px solid rgba(54, 65, 83, 0.88);
        padding-bottom: 18px;
    }

    .gh-footer__column--brand {
        border-bottom: 0;
        padding-bottom: 8px;
    }

    .gh-footer__heading {
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
    }

    .gh-footer__heading::after {
        display: block;
    }

    .gh-footer__heading[aria-expanded="true"]::after {
        transform: rotate(225deg);
    }

    .gh-footer__panel {
        margin-top: 16px;
    }

    .gh-footer__panel.is-collapsed {
        display: none;
    }

    .gh-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gh-footer__legal {
        gap: 12px;
    }

    .gh-footer__copyright,
    .gh-footer__legal a,
    .gh-footer__link-list a,
    .gh-footer__text-list li,
    .gh-footer__contact-item {
        font-size: 13px;
    }
}