/* ==========================================
   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: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px 56px;
    align-items: start;
    min-height: auto;
    padding-bottom: 56px;
}

.gh-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    align-items: start;
}

.gh-footer__column--nav .gh-footer__panel {
    margin-top: 24px;
}

.gh-footer__column--contact .gh-footer__panel {
    margin-top: 20px;
}

.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: 20px;
    max-width: 36rem;
    color: var(--gh-footer-text);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.gh-footer__socials {
    position: relative;
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.gh-footer .gh-footer__social {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gh-footer-chip-border);
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    background: var(--gh-footer-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-footer-icon-color);
    transition: transform var(--gh-footer-transition), background-color var(--gh-footer-transition), border-color var(--gh-footer-transition), box-shadow var(--gh-footer-transition);
}

.gh-footer__social img,
.gh-footer__social .gh-footer__icon-svg {
    color: var(--gh-footer-icon-color);
}

.gh-footer__social img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.gh-footer__icon-svg {
    color: var(--gh-footer-icon-color);
}

.gh-footer__icon-svg svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gh-footer__social:hover,
.gh-footer__social:focus-visible {
    background: var(--gh-footer-chip-hover);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gh-footer__social.is-disabled {
    cursor: default;
    opacity: 0.78;
    pointer-events: none;
}

.gh-footer__social-qr-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    z-index: 3;
    width: 160px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gh-footer__social-qr-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.gh-footer__social-qr-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.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: 600;
    line-height: 24px;
    letter-spacing: 0.01em;
    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 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gh-footer__link-list li + li {
    margin-top: 10px;
}

.gh-footer__link-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding-left: 0;
    color: var(--gh-footer-text);
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.01em;
    transition: color var(--gh-footer-transition), transform var(--gh-footer-transition);
}

.gh-footer__link-list span,
.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: 22px;
    letter-spacing: 0.01em;
    transition: color var(--gh-footer-transition), transform var(--gh-footer-transition);
}

.gh-footer__link-list span::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: #ffffff;
    transform: translateX(2px);
}

.gh-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gh-footer__address {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-footer__address-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gh-footer-text);
}

.gh-footer__address-label {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.gh-footer__address-text {
    display: block;
}

.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--address .gh-footer__contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--gh-footer-icon-accent);
}

.gh-footer__contact-item a,
.gh-footer__contact-item p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: var(--gh-footer-text);
}

.gh-footer__contact-item a:hover,
.gh-footer__contact-item a:focus-visible {
    color: #ffffff;
}

.gh-footer__link-list {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: var(--gh-footer-text);
}

.gh-footer__contact-item p + p {
    margin-top: 0;
}

.gh-footer__contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--gh-footer-icon-accent);
}

.gh-footer__contact-icon img,
.gh-footer__contact-icon .gh-footer__icon-svg {
    width: 18px;
    height: 18px;
}

.gh-footer__contact-icon .gh-footer__icon-svg svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gh-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
    padding: 16px 0 18px;
    border-top: 1px solid var(--gh-footer-divider);
}

.gh-footer__copyright,
.gh-footer__legal a,
.gh-footer__legal span {
    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: #ffffff;
}

.gh-footer a:focus-visible,
.gh-footer button:focus-visible {
    outline: 2px solid var(--gh-footer-focus);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .gh-footer__container {
        padding: 56px 32px 0;
    }

    .gh-footer__main {
        gap: 40px 36px;
    }
}

@media (max-width: 968px) {
    .gh-footer__container {
        padding: 48px 24px 0;
    }

    .gh-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
        padding-bottom: 40px;
    }

    .gh-footer__column--brand {
        grid-column: 1 / -1;
    }

    .gh-footer__nav {
        grid-column: 1 / 2;
    }

    .gh-footer__column--contact {
        grid-column: 2 / 3;
    }
}

@media (max-width: 750px) {
    .gh-footer__container {
        padding: 40px 16px 0;
    }

    .gh-footer__main {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 28px;
    }

    .gh-footer__column--brand,
    .gh-footer__nav,
    .gh-footer__column--contact {
        grid-column: auto;
    }

    .gh-footer__nav {
        display: block;
    }

    .gh-footer__social-qr-panel {
        bottom: calc(100% + 10px);
        width: 132px;
    }

    .gh-footer__column,
    .gh-footer__column--nav {
        border-bottom: 1px solid var(--gh-footer-divider);
        padding-bottom: 18px;
        margin-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;
    }
}
