/* Shared navigation and footer. The desktop header uses the original site.css layout. */
:root {
    --xy-bg: #202736;
    --xy-panel: #262e3e;
    --xy-text: #fff;
    --xy-muted: #aeb8cb;
    --xy-line: #394457;
    --xy-accent: #28c6cc;
    --xy-link: #87dfe8;
    --xy-radius: 10px;
    --xy-content-width: 1300px;
    --xy-gradient: linear-gradient(95deg, #3796df, #01d8b6);
}

#sec-9d14.u-header { position: fixed; inset: 0 0 auto; z-index: 100; background: linear-gradient(120deg, #202736, #20273691); }
#sec-9d14 .u-nav-link[aria-current="page"] { color: #2bcfd0!important; }
#sec-9d14 .site-brand, .site-footer { font-family: Arial, "Microsoft YaHei", sans-serif; }
#sec-9d14 .site-brand {
    display: flex;
    align-items: center;
    flex: none;
    gap: 3px;
    width: max-content;
    color: var(--xy-text);
    font-size: 22px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
#sec-9d14 .site-brand img { width: 51px; height: 47px; flex: none; object-fit: contain; }
#sec-9d14 .site-brand span { font-size: inherit; line-height: inherit; }
#sec-9d14 .site-brand:hover { color: var(--xy-text); text-decoration: none; }
#sec-9d14 .menu-collapse > a { color: var(--xy-text)!important; }
#sec-9d14 .menu-collapse .u-svg-link, #sec-9d14 .menu-collapse .u-svg-link use { fill: currentColor!important; }
.site-footer a:focus-visible, #sec-9d14 a:focus-visible { outline: 2px solid var(--xy-accent); outline-offset: 4px; }

@media (min-width: 992px) {
    #sec-9d14 > .u-sheet { width: 940px!important; }
    #sec-9d14 .u-nav-1 { display: flex; }
}

@media (min-width: 1200px) {
    #sec-9d14 > .u-sheet,
    .legacy-content > section > .u-sheet { width: min(var(--xy-content-width), calc(100% - 64px))!important; }
}

@media (max-width: 991px) {
    #sec-9d14 > .u-sheet { width: calc(100% - 36px)!important; min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 3px; margin: auto; padding: 12px 40px 0 0; }
    #sec-9d14 > .u-sheet::before, #sec-9d14 > .u-sheet::after { display: none; }
    #sec-9d14 .site-brand { margin: 0; }
    #sec-9d14 .u-menu-1 { position: absolute; right: 5px; width: auto; margin: 0; }
    #sec-9d14 .u-btn-1, #sec-9d14 .u-nav-container { display: none!important; }
    #sec-9d14 .menu-collapse { display: block!important; }
    #sec-9d14 .u-menu-1 .u-nav-link { padding: 10px; }
    #sec-9d14 .u-sidenav .u-nav-link { line-height: 2; }
    #sec-9d14 .u-offcanvas.open .u-nav-container-collapse { height: 100vh; height: 100dvh; }
}

@media (max-width: 374px) {
    .legacy-content > section > .u-sheet { width: calc(100% - 24px)!important; }
}

.site-footer { padding: 38px 0 22px; background: var(--xy-panel); color: #c3cbd9; font-size: 14px; line-height: 1.65; text-align: left; }
#sec-f99e :where(a, img, p, span, li, ul) { font-size: inherit; line-height: inherit; }
#sec-f99e a { text-decoration: none; }
.site-footer-inner { width: min(var(--xy-content-width), calc(100% - 64px)); margin-inline: auto; }
.site-footer-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: center; }
.site-footer-brand > a { display: block; width: min(230px, 100%); margin-inline: auto; }
.site-footer-brand img { display: block; width: 100%; height: auto; aspect-ratio: 380 / 120; }
.site-footer-brand p { max-width: 35em; margin: 8px auto 0; }
.site-footer-nav ul { display: grid; justify-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.site-footer-nav a { display: inline-flex; align-items: center; min-height: 28px; }
.site-footer-nav a, .site-footer-legal a { color: inherit; }
.site-footer-nav a:hover, .site-footer-legal a:hover { color: var(--xy-link); }
.site-footer-service { --site-footer-qr-size: clamp(128px, 11vw, 144px); display: grid; justify-items: center; gap: 8px; text-align: center; }
#sec-f99e .site-footer-service p { margin: 0; font-size: 12px; }
.site-footer-qr { display: block; width: var(--site-footer-qr-size); aspect-ratio: 1; }
.site-footer-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; }
.site-footer-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; min-width: 142px; padding: 5px 17px; border-radius: 35px; background: var(--xy-gradient); color: #fff!important; font-weight: 700; white-space: nowrap; }
.site-footer-contact:hover { filter: brightness(.94); }
.site-footer-legal { margin-top: 22px; color: #aeb9cd; font-size: 12px; text-align: center; }
.site-footer-legal p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; margin: 0; }
.site-footer-legal p + p { margin-top: 6px; }
.site-footer-legal a { display: inline-flex; align-items: center; gap: 4px; }
.site-footer-legal a img { width: 15px; height: auto; }

@media (max-width: 880px) {
    .site-footer-main { gap: 22px; }
}

@media (max-width: 680px) {
    .site-footer { padding: 25px 0 20px; }
    .site-footer-inner { width: calc(100% - 36px); }
    .site-footer-main { grid-template-columns: 1fr; gap: 16px; }
    .site-footer-brand > a { width: min(190px, 100%); }
    #sec-f99e .site-footer-brand p { margin-top: 3px; font-size: 13px; }
    .site-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
    .site-footer-nav a { min-height: 34px; }
    .site-footer-service {
        grid-template-columns: var(--site-footer-qr-size) minmax(0, max-content);
        justify-content: center;
        justify-items: start;
        gap: 6px 14px;
        text-align: left;
    }
    .site-footer-qr { grid-area: 1 / 1 / 3 / 2; }
    .site-footer-contact { grid-area: 1 / 2; align-self: end; min-width: 116px; }
    .site-footer-service p { grid-area: 2 / 2; }
    .site-footer-legal { margin-top: 18px; }
}
