/* Shared footer styles are scoped; existing page content keeps its own design. */
body.mx-has-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
body.mx-footer-auth > .container { max-height: calc(100vh - 132px - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 132px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
#mxSiteFooter, #mxSiteFooter .mxf-controls { display: contents; }
#mxSiteFooter { color: #43353d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }
#mxSiteFooter *, #mxSiteFooter *::before, #mxSiteFooter *::after { box-sizing: border-box; }
#mxSiteFooter a { color: inherit; text-decoration: none; }
#mxSiteFooter button { font: inherit; cursor: pointer; }
#mxSiteFooter a:focus-visible, #mxSiteFooter button:focus-visible { outline: 3px solid #a04a6c; outline-offset: 3px; }
#mxSiteFooter .mxf-icon { display: block; flex: 0 0 auto; width: 22px; height: 22px; }
#mxSiteFooter .mxf-aux { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-self: center; gap: 0 21px; width: fit-content; max-width: calc(100% - 32px); margin: 24px auto 16px; padding: 2px 17px; border: 1px solid #e9dfe5; border-radius: 9px; color: #75636e; background: rgba(255,255,255,.96); font-size: 13px; line-height: 1.5; }
#mxSiteFooter .mxf-aux a, #mxSiteFooter .mxf-aux button { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; border: 0; color: inherit; background: transparent; }
#mxSiteFooter .mxf-aux a:hover, #mxSiteFooter .mxf-aux button:hover { color: #934a66; text-decoration: underline; text-underline-offset: 3px; }
body.mx-footer-centered #mxSiteFooter .mxf-aux { display: none; }
#mxSiteFooter #bottomNav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 900; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; min-height: 68px; width: 100%; height: auto; padding: 5px max(12px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid #e8dfe5; background: #fff; box-shadow: 0 -3px 18px #38232d0b; }
#mxSiteFooter #bottomNav .mxf-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 54px; margin: 0; padding: 5px 8px; border: 0; border-radius: 8px; color: #7b6b75; background: transparent; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; -webkit-tap-highlight-color: transparent; }
#mxSiteFooter #bottomNav .mxf-nav-item.active, #mxSiteFooter #bottomNav .mxf-nav-item[aria-current="page"] { color: #a14e6c; background: #faf0f4; }
#mxSiteFooter #bottomNav .mxf-nav-item:hover { color: #98425f; }
#mxSiteFooter #bottomNav .mxf-nav-item:focus-visible { outline-offset: -2px; }
#mxSiteFooter .mxf-overlay { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; color: #43353d; background: #22192399; }
#mxSiteFooter .mxf-overlay.show { display: flex; }
#mxSiteFooter .mxf-panel { position: relative; width: min(100%, 480px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 27px 24px 20px; border: 1px solid #eadfe5; border-radius: 15px; background: #fff; box-shadow: 0 16px 48px #23152133; overscroll-behavior: contain; }
#mxSiteFooter .mxf-close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; color: #785d6b; background: #f8f2f5; }
#mxSiteFooter .mxf-close:hover { color: #914160; background: #f3e3eb; }
#mxSiteFooter .mxf-close .mxf-icon { width: 20px; height: 20px; }
#mxSiteFooter .mxf-panel h2 { margin: 0 43px 6px 0; color: #47323e; font-size: 21px; font-weight: 700; line-height: 1.5; }
#mxSiteFooter .mxf-panel-description { margin: 0 17px 19px 0; color: #76616e; font-size: 14px; line-height: 1.8; }
#mxSiteFooter .mxf-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#mxSiteFooter .mxf-category-grid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid #e9dfe4; border-radius: 8px; color: #6d4e5e; background: #fcf9fa; font-size: 14px; font-weight: 550; line-height: 1.6; }
#mxSiteFooter .mxf-category-grid a span { min-width: 0; overflow-wrap: anywhere; }
#mxSiteFooter .mxf-category-grid a:hover, #mxSiteFooter .mxf-category-grid a[aria-current="page"] { border-color: #c890a7; color: #873c5a; background: #f8eaf0; }
#mxSiteFooter .mxf-category-grid .mxf-icon { width: 16px; height: 16px; }
#mxSiteFooter .mxf-panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 19px; margin-top: 20px; padding-top: 10px; border-top: 1px solid #eee5ea; color: #8c4a66; font-size: 13px; }
#mxSiteFooter .mxf-panel-links a, #mxSiteFooter .mxf-panel-links button { display: inline-flex; align-items: center; min-height: 40px; padding: 3px 0; border: 0; color: inherit; background: transparent; }
#mxSiteFooter .mxf-panel-links a:hover, #mxSiteFooter .mxf-panel-links button:hover { text-decoration: underline; text-underline-offset: 3px; }
#mxSiteFooter .mxf-empty { margin: 10px 0 17px; color: #78636f; font-size: 14px; }
#mxSiteFooter .mxf-panel-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #8a4260; }
#mxSiteFooter .mxf-panel-link .mxf-icon { width: 16px; height: 16px; }
#mxSiteFooter .mxf-contact-note { margin: 0 0 15px; padding: 11px 13px; border: 1px solid #ead9e2; border-radius: 8px; color: #745565; background: #faf3f6; font-size: 13px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
#mxSiteFooter .mxf-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 11px; padding: 14px; border: 1px solid #eadfe5; border-radius: 9px; background: #fcf9fb; }
#mxSiteFooter .mxf-contact-card > div { min-width: 0; }
#mxSiteFooter .mxf-contact-card h3 { margin: 0 0 4px; color: #715162; font-size: 14px; font-weight: 550; line-height: 1.6; }
#mxSiteFooter .mxf-account { color: #49333e; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 16px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; user-select: text; }
#mxSiteFooter .copy-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex: 0 0 auto; padding: 9px 14px; border: 1px solid #d6b8c5; border-radius: 7px; color: #87415e; background: #f7ebf0; font-size: 13px; font-weight: 600; line-height: 1.6; }
#mxSiteFooter .copy-btn:hover { border-color: #b77892; background: #f3e1e9; }
#mxSiteFooter .copy-btn.copied { border-color: #abcbb3; color: #2d6742; background: #edf6ef; }
#mxSiteFooter .mxf-contact-hours { margin: 17px 0 0; color: #78636f; font-size: 13px; line-height: 1.9; }
#mxSiteFooter .mxf-copy-status { min-height: 20px; margin: 8px 0 0; color: #356945; font-size: 12px; line-height: 1.7; }
@media (min-width: 768px) {
    #mxSiteFooter #bottomNav { grid-template-columns: repeat(4, 100px); justify-content: center; column-gap: 50px; }
}
@media (max-width: 480px) {
    #mxSiteFooter .mxf-overlay { padding: 17px; }
    #mxSiteFooter .mxf-panel { max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); padding: 24px 18px 18px; border-radius: 12px; }
    #mxSiteFooter .mxf-panel h2 { font-size: 20px; }
    #mxSiteFooter .mxf-panel-description { margin-right: 10px; font-size: 14px; }
    #mxSiteFooter .mxf-aux { gap: 0 18px; margin-top: 18px; padding-inline: 14px; }
    #mxSiteFooter .mxf-contact-card { gap: 12px; padding: 12px; }
}
@media (max-width: 359px) {
    #mxSiteFooter .mxf-category-grid { grid-template-columns: 1fr; }
    #mxSiteFooter .mxf-aux { gap: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    #mxSiteFooter *, #mxSiteFooter *::before, #mxSiteFooter *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    body.mx-has-footer { padding-bottom: 0 !important; }
    #mxSiteFooter, #mxSiteFooter .mxf-controls, #mxSiteFooter .mxf-aux, #mxSiteFooter #bottomNav, #mxSiteFooter .mxf-overlay { display: none !important; }
}
