/* 全站页脚：PC 按 1920 原型，H5 按 750 二倍稿适配。 */
#wrap #footer.hg-site-footer {
    --footer-background: #191616;
    --footer-muted: #999;
    --footer-accent: #fe2e62;
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--footer-background);
    color: var(--footer-muted);
    font-family: "Open Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
}
#footer.hg-site-footer * { box-sizing: border-box; }
#wrap #footer.hg-site-footer h2, #wrap #footer.hg-site-footer p, #wrap #footer .hg-footer-column-title { text-shadow: none; }
#footer.hg-site-footer a { color: inherit; text-decoration: none; }
#footer.hg-site-footer a:hover { color: var(--footer-accent); }
#footer.hg-site-footer a:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; border-radius: 3px; }
#footer .hg-footer-container { width: 75%; max-width: 1440px; margin: 0 auto; }
#footer #foot-menu { margin: 0; padding: 0; background: transparent; }
#footer .hg-footer-shortcuts { min-height: 118px; padding: 10px 24px 40px; background: #0d0d0d; }
#footer .foot-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 126px; margin: 0 auto; }
#footer .foot-menu a { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 68px; color: var(--footer-muted); font-size: 17px; line-height: 24px; }
#footer .foot-menu img { display: block; width: 34px; height: 34px; object-fit: contain; }
#footer .foot-menu img.mode-white { display: none; }
body.theme-white #footer .foot-menu img.mode-dark, body.theme-sunset #footer .foot-menu img.mode-dark { display: none; }
body.theme-white #footer .foot-menu img.mode-white, body.theme-sunset #footer .foot-menu img.mode-white { display: block; }
#footer .foot-menu span { margin: 0; font-size: inherit; }
#footer .hg-footer-friends { padding-top: 40px; }
#footer .hg-friend-links { margin: 0; padding: 30px; border: 1px solid #353535; border-radius: 10px; background: rgba(255,255,255,.04); }
#footer .hg-friend-links__title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 0; border: 0; color: #fff; font-size: 22px; font-weight: 600; line-height: 30px; }
#footer .hg-friend-links__title::before { content: ""; flex: 0 0 4px; height: 20px; border-radius: 25px; background: var(--footer-accent); }
#footer .hg-friend-links__list { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
#footer .hg-friend-links__list li { max-width: 100%; margin: 0; padding: 0 24px; border-left: 1px solid #666; line-height: 21px; }
#footer .hg-friend-links__list li:first-child { padding-left: 0; border-left: 0; }
#footer .hg-friend-links__list a { font-size: 15px; overflow-wrap: anywhere; }
#footer .hg-footer-main { padding: 30px 0 40px; }
#footer .hg-footer-overview { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 64px; align-items: start; }
#footer .hg-footer-brand { min-width: 0; }
#footer .hg-footer-logo { display: inline-flex; vertical-align: top; }
#footer .hg-footer-logo img { display: block; width: 173px; height: 39px; object-fit: contain; }
#footer .hg-footer-description { margin-top: 14px; font-size: 15px; line-height: 26px; overflow-wrap: anywhere; }
#footer .hg-footer-description p { margin: 0; font: inherit; }
#footer .hg-footer-description br:first-of-type { display: block; margin-bottom: 14px; content: ""; }
#footer .hg-footer-description a, #footer .hg-footer-copyright a { color: var(--footer-accent); }
#footer .hg-footer-navigation { display: grid; grid-template-columns: auto auto auto; gap: 60px; }
#footer .hg-footer-column-title { margin: 0 0 18px; padding: 0; border: 0; color: #fff; font-size: 20px; font-weight: 600; line-height: 28px; }
#footer .hg-footer-column ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
#footer .hg-footer-column li { margin: 0; padding: 0; font-size: 15px; line-height: 21px; }
#footer .hg-footer-column a { display: inline-block; overflow-wrap: anywhere; }
#footer .hg-footer-mobile-label { display: none; }
#footer .hg-footer-bottom { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 32px; margin-top: 25px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
#footer .hg-footer-copyright { max-width: 360px; font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
#footer .hg-footer-copyright p { margin: 0; font: inherit; }
#footer .hg-footer-copyright br { display: none; }
#footer .hg-footer-socials { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: center; gap: 20px; }
#footer .hg-footer-social { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
#footer .hg-footer-social img { display: block; width: 36px; height: 36px; object-fit: contain; }
#footer .hg-footer-social:hover img { opacity: .75; }
#footer .hg-footer-social--x { order: -4; }
#footer .hg-footer-social--telegram { order: -3; }
#footer .hg-footer-social--github { order: -2; }
#footer .hg-footer-social--email { order: -1; }
@media (min-width: 768px) and (max-width: 1199px) {
    #footer .hg-footer-container { width: calc(100% - 48px); }
    #footer .hg-footer-overview { gap: 32px; }
    #footer .hg-footer-navigation { gap: 30px; }
    #footer .foot-menu { column-gap: 80px; }
}
@media (max-width: 767px) {
    #wrap #footer.hg-site-footer { font-size: 12px; line-height: 22px; }
    #footer .hg-footer-container { width: calc(100% - 25px); }
    #footer #foot-menu { padding-bottom: 30px; background: #0d0d0d; }
    #footer .hg-footer-shortcuts { min-height: 0; padding: 0 12.5px; }
    #footer .foot-menu { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 0; width: 100%; }
    #footer .foot-menu a { gap: 2.5px; min-width: 0; font-size: 12.75px; line-height: 18px; }
    #footer .foot-menu img { width: 25px; height: 25px; }
    #footer .hg-footer-friends { padding-top: 30px; }
    #footer .hg-friend-links { padding: 12px 15px 14px; border-radius: 5px; }
    #footer .hg-friend-links__title { gap: 7px; margin-bottom: 10px; font-size: 16px; line-height: 24px; }
    #footer .hg-friend-links__title::before { flex-basis: 3px; height: 16px; border-radius: 3px; }
    #footer .hg-friend-links__list li { padding-right: 18px; padding-left: 18px; border-color: #333; line-height: 18px; }
    #footer .hg-friend-links__list a { font-size: 12.5px; font-weight: 600; }
    #footer .hg-footer-main { padding: 24px 0 18px; border-top: 1px solid rgba(255,255,255,.07); }
    #footer .hg-footer-overview { grid-template-columns: minmax(0,1fr); gap: 24px; }
    #footer .hg-footer-logo img { width: 133px; height: 30px; }
    #footer .hg-footer-description { margin-top: 10px; font-size: 12px; line-height: 22px; }
    #footer .hg-footer-description br:first-of-type { margin-bottom: 13px; }
    #footer .hg-footer-navigation { grid-template-columns: 1fr 1.25fr .6fr; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); }
    #footer .hg-footer-column-title { margin-bottom: 10px; font-size: 12px; font-weight: 500; line-height: 18px; }
    #footer .hg-footer-column ul { gap: 10px; }
    #footer .hg-footer-column li { font-size: 12px; line-height: 18px; }
    #footer .hg-footer-desktop-label { display: none; }
    #footer .hg-footer-mobile-label { display: inline; }
    #footer .hg-footer-bottom { flex-direction: column; gap: 24px; margin-top: 24px; padding-top: 24px; }
    #footer .hg-footer-socials { gap: 30px; }
    #footer .hg-footer-social, #footer .hg-footer-social img { width: 30px; height: 30px; }
    #footer .hg-footer-copyright { max-width: 310px; font-size: 10.5px; line-height: 22.5px; text-align: center; }
}
