:root {
    --hg-blue: var(--hg-color-brand, #008cff);
    --hg-blue-deep: var(--hg-color-brand-strong, #006fd6);
    --hg-ink: var(--hg-color-ink, #111827);
    --hg-muted: var(--hg-color-muted, #667085);
    --hg-line: var(--hg-color-line, rgba(17, 24, 39, 0.12));
    --hg-surface: var(--hg-color-surface, #f6f9fc);
    --hg-dark: var(--hg-color-dark, #081426);
    --hg-radius: 8px;
    --hg-shadow: 0 18px 56px rgba(17, 24, 39, 0.14);
    --hg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.hg-menu-open {
    overflow: hidden !important;
}

.hg-header,
.hg-footer {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

.hg-header *,
.hg-header *::before,
.hg-header *::after,
.hg-footer *,
.hg-footer *::before,
.hg-footer *::after {
    box-sizing: border-box;
}

.hg-header a,
.hg-footer a {
    color: inherit;
    text-decoration: none;
}

.hg-header button {
    color: inherit;
    font: inherit;
}

.hg-header {
    position: fixed;
    z-index: var(--hg-z-sticky, 100);
    inset: 0 0 auto;
    height: 72px;
    color: var(--hg-ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--hg-line);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.hg-header.hg-header--overlay:not(.is-scrolled):not(.is-open) {
    color: #ffffff;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hg-nav {
    width: min(100%, 1480px);
    height: 72px;
    display: flex;
    align-items: center;
    gap: var(--hg-space-8, 32px);
    margin: 0 auto;
    padding: 0 var(--hg-space-10, 40px);
}

.hg-brand {
    display: inline-flex;
    align-items: center;
    min-width: var(--hg-target-min, 44px);
    min-height: var(--hg-target-min, 44px);
    gap: var(--hg-space-2, 8px);
    flex: 0 0 auto;
    font-size: var(--hg-font-lg, 18px);
    font-weight: 760;
    white-space: nowrap;
}

.hg-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.hg-desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--hg-space-8, 32px);
    height: 100%;
    margin-right: auto;
}

.hg-nav-link,
.hg-nav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 680;
    cursor: pointer;
    white-space: nowrap;
}

.hg-nav-link::after,
.hg-nav-trigger::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 13px;
    left: 0;
    height: 2px;
    background: var(--hg-blue);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.hg-nav-link:hover,
.hg-nav-trigger:hover,
.hg-nav-link[aria-current="page"],
.hg-nav-trigger[aria-current="page"],
.hg-nav-trigger[aria-expanded="true"] {
    color: var(--hg-blue);
}

.hg-nav-link:hover::after,
.hg-nav-trigger:hover::after,
.hg-nav-link[aria-current="page"]::after,
.hg-nav-trigger[aria-current="page"]::after,
.hg-nav-trigger[aria-expanded="true"]::after {
    transform: scaleX(1);
}

.hg-chevron,
.hg-external-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.hg-nav-group {
    position: relative;
    height: 100%;
}

.hg-menu {
    position: absolute;
    top: 72px;
    left: 50%;
    width: 580px;
    max-width: calc(100vw - 32px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hg-space-2, 8px);
    padding: var(--hg-space-4, 16px);
    color: var(--hg-ink);
    background: var(--hg-color-white, #ffffff);
    border: 1px solid var(--hg-line);
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.hg-desktop-nav > .hg-nav-group:first-child .hg-menu {
    left: 0;
    transform: translate(0, 8px);
}

.hg-nav-group:hover .hg-menu,
.hg-nav-group:focus-within .hg-menu,
.hg-nav-group.is-open .hg-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.hg-desktop-nav > .hg-nav-group:first-child:hover .hg-menu,
.hg-desktop-nav > .hg-nav-group:first-child:focus-within .hg-menu,
.hg-desktop-nav > .hg-nav-group:first-child.is-open .hg-menu {
    transform: translate(0, 0);
}

.hg-menu a {
    display: grid;
    gap: var(--hg-space-0-5);
    min-height: 64px;
    align-content: center;
    padding: var(--hg-space-2) var(--hg-space-3);
    border-radius: 6px;
}

.hg-menu a:hover,
.hg-menu a:focus-visible {
    background: color-mix(in srgb, var(--hg-blue) 8%, var(--hg-color-white, #ffffff));
}

.hg-menu strong {
    font-size: 14px;
}

.hg-menu span {
    color: var(--hg-muted);
    font-size: 12px;
}

.hg-actions {
    display: flex;
    align-items: center;
    gap: var(--hg-space-4, 16px);
    flex: 0 0 auto;
    margin-left: auto;
}

.hg-action-link,
.hg-language {
    font-size: 14px;
    font-weight: 680;
    white-space: nowrap;
}

.hg-action-link:hover,
.hg-language:hover {
    color: var(--hg-blue);
}

.hg-contact-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--hg-color-white) !important;
    background: var(--hg-blue);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 760;
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease;
}

.hg-contact-button:hover {
    background: var(--hg-blue-deep);
    transform: translateY(-1px);
}

.hg-menu-button,
.hg-mobile-close {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: var(--hg-radius);
    background: transparent;
    cursor: pointer;
}

.hg-menu-button svg,
.hg-mobile-close svg {
    width: 22px;
    height: 22px;
}

.hg-mobile-panel,
.hg-scrim {
    display: none;
}

.hg-header a:focus-visible,
.hg-header button:focus-visible,
.hg-footer a:focus-visible {
    outline: 3px solid rgba(0, 140, 255, 0.45);
    outline-offset: 3px;
}

.hg-footer {
    position: relative;
    z-index: var(--hg-z-raised, 10);
    padding: var(--hg-space-16, 64px) max(var(--hg-space-6, 24px), calc((100vw - 1280px) / 2)) var(--hg-space-6, 24px);
    color: var(--hg-color-on-dark, rgba(255, 255, 255, 0.76));
    background: var(--hg-dark);
}

.hg-footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(120px, 0.7fr));
    gap: var(--hg-space-10, 40px);
}

.hg-footer-brand {
    color: #ffffff;
}

.hg-footer-brand p {
    max-width: 380px;
    margin: var(--hg-space-4, 16px) 0 0;
    color: var(--hg-color-on-dark-muted, rgba(255, 255, 255, 0.62));
    font-size: var(--hg-font-sm, 14px);
    line-height: var(--hg-line-loose, 1.8);
}

.hg-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hg-footer-col h2 {
    margin: 0 0 var(--hg-space-1);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
}

.hg-footer-col a {
    display: inline-flex;
    align-items: center;
    min-width: var(--hg-target-min, 44px);
    min-height: var(--hg-target-min, 44px);
    color: rgba(255, 255, 255, 0.64);
    font-size: var(--hg-font-sm, 14px);
}

.hg-footer-col a:hover {
    color: #ffffff;
}

.hg-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--hg-space-3) var(--hg-space-6);
    margin-top: 42px;
    padding-top: var(--hg-space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.7;
}

.hg-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hg-legal-records {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hg-space-1) var(--hg-space-3);
}

.hg-prototype-page {
    min-height: 72vh;
    padding: var(--hg-space-36) var(--hg-space-6) var(--hg-space-24);
    color: var(--hg-ink);
    background: var(--hg-surface);
}

.hg-prototype-inner {
    width: min(880px, 100%);
    margin: 0 auto;
}

.hg-prototype-eyebrow {
    margin: 0 0 var(--hg-space-3);
    color: var(--hg-blue);
    font-size: 13px;
    font-weight: 760;
}

.hg-prototype-page h1 {
    margin: 0;
    font-size: var(--hg-font-fluid-heading);
    line-height: 1.12;
}

.hg-prototype-lede {
    margin: var(--hg-space-5) 0 var(--hg-space-10);
    color: var(--hg-muted);
    font-size: 18px;
    line-height: 1.8;
}

.hg-prototype-card {
    padding: 28px;
    border: 1px solid var(--hg-line);
    border-radius: var(--hg-radius);
    background: #ffffff;
}

.hg-prototype-card + .hg-prototype-card {
    margin-top: 16px;
}

.hg-prototype-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.hg-prototype-card p {
    margin: 0;
    color: var(--hg-muted);
    line-height: 1.8;
}

.hg-prototype-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--hg-blue);
    font-weight: 760;
}

.news-empty-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--hg-blue);
    font-weight: 760;
}

@media (max-width: 1120px) {
    .hg-nav {
        padding: 0 24px;
    }

    .hg-desktop-nav,
    .hg-actions .hg-action-link,
    .hg-actions .hg-language,
    .hg-actions .hg-contact-button {
        display: none;
    }

    .hg-menu-button,
    .hg-mobile-close {
        display: grid;
    }

    .hg-mobile-panel {
        position: fixed;
        z-index: var(--hg-z-modal, 1100);
        top: 0;
        right: 0;
        display: block;
        width: min(420px, 94vw);
        height: 100vh;
        overflow-y: auto;
        padding: var(--hg-space-20) var(--hg-space-6) var(--hg-space-8);
        color: var(--hg-ink);
        background: #ffffff;
        box-shadow: -18px 0 50px rgba(17, 24, 39, 0.2);
        visibility: hidden;
        pointer-events: none;
        transform: translateX(105%);
        transition: transform 220ms var(--hg-ease), visibility 220ms step-end;
    }

    .hg-mobile-panel.is-open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 220ms var(--hg-ease), visibility 0ms step-start;
    }

    .hg-mobile-close {
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .hg-mobile-section {
        padding: var(--hg-space-3) 0;
        border-bottom: 1px solid var(--hg-line);
    }

    .hg-mobile-section > strong {
        display: block;
        margin-bottom: 8px;
        color: var(--hg-muted);
        font-size: 12px;
    }

    .hg-mobile-section a {
        display: block;
        min-height: 44px;
        padding: var(--hg-space-2) 0;
        font-size: 16px;
        font-weight: 680;
    }

    .hg-scrim {
        position: fixed;
        z-index: var(--hg-z-overlay, 1000);
        inset: 0;
        display: block;
        background: rgba(8, 20, 38, 0.52);
        opacity: 0;
        visibility: hidden;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .hg-scrim.is-open {
        opacity: 1;
        visibility: visible;
    }

    .hg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hg-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .hg-header,
    .hg-nav {
        height: 66px;
    }

    .hg-nav {
        padding: 0 18px;
    }

    .hg-brand {
        font-size: 16px;
    }

    .hg-brand img {
        width: 34px;
        height: 34px;
    }

    .hg-footer {
        padding-top: var(--hg-space-10);
    }

    .hg-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hg-footer-brand {
        grid-column: auto;
    }

    .hg-footer-legal {
        flex-direction: column;
    }

    .hg-prototype-page {
        padding-top: var(--hg-space-28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-header *,
    .hg-header *::before,
    .hg-header *::after,
    .hg-footer *,
    .hg-footer *::before,
    .hg-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
