:root {
    --site-blue: #249bdf;
    --site-blue-dark: #1184c8;
    --site-ink: #253445;
    --site-muted: #708091;
    --site-line: #e5edf3;
    --site-width: 1190px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--site-ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-container,
.site-footer-inner {
    width: min(calc(100% - 48px), var(--site-width));
    margin: 0 auto;
}

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    color: #fff;
    background: rgba(25, 143, 211, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-home-header {
    position: fixed;
    background: rgba(21, 135, 203, .38);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background: rgba(23, 143, 211, .96);
    box-shadow: 0 8px 28px rgba(16, 85, 128, .16);
}

.site-header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 clamp(24px, 2.2vw, 48px);
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    object-fit: contain;
    object-position: left center;
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-left: auto;
    min-width: 0;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.05vw, 38px);
}

.site-navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 80px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-navigation-link::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 18px;
    left: 50%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: right .2s ease, left .2s ease;
}

.site-navigation-link:hover,
.site-navigation-link.is-current { color: #fff; }

.site-navigation-link:hover::after,
.site-navigation-link.is-current::after { right: 0; left: 0; }

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header summary:focus-visible {
    outline: 2px solid #8eeaff;
    outline-offset: 5px;
    border-radius: 4px;
}

.site-language {
    position: relative;
    flex: 0 0 auto;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.site-language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 6px;
    list-style: none;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
}

.site-language-trigger::-webkit-details-marker { display: none; }
.site-language-trigger:hover,
.site-language[open] .site-language-trigger { background: rgba(255, 255, 255, .10); }

.site-language-globe { width: 20px; height: 20px; flex: 0 0 auto; }
.site-language-chevron { width: 11px; height: 11px; margin-left: 2px; transition: transform .2s ease; }
.site-language[open] .site-language-chevron { transform: rotate(180deg); }

.site-language-panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 16px);
    right: 0;
    width: 204px;
    max-width: calc(100vw - 32px);
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    color: #163856;
    background: rgba(237, 247, 255, .78);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(216, 237, 255, .06));
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(21, 67, 112, .15), inset 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    scrollbar-width: thin;
}

.site-language-options { margin: 0; padding: 0; list-style: none; }
.site-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 7px;
    color: #163856;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
a.site-language-option:hover { color: #075cb0; background: rgba(255, 255, 255, .58); }
.site-language-option.is-current { color: #075cb0; background: rgba(255, 255, 255, .46); }
.site-language-option.is-disabled { color: #697e92; cursor: default; }
.site-language-name { flex: 1; }
.site-language-check { margin-left: auto; color: #1673c6; font-size: 15px; }
.site-language-option:focus-visible { outline-offset: -2px !important; }

.site-menu-button {
    position: relative;
    z-index: 2;
    display: none;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.site-menu-button span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.site-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer {
    color: #c2e1f4;
    background: #2495da;
}

.site-footer-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 12px;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 1120px) {
    .site-header { position: fixed; height: 68px; }
    .site-header-inner { gap: 16px; padding: 0 24px; }
    .site-header-actions { gap: 12px; }
    .site-logo,
    .site-logo img { width: 145px; height: 34px; }
    .site-language { position: static; padding-left: 0; border: 0; }
    .site-language-panel { top: 77px; right: 16px; }
    .site-menu-button { display: block; }
    .site-navigation {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100svh - 68px);
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 0;
        padding: 12px 24px 20px;
        background: #075abd;
        box-shadow: 0 16px 30px rgba(14, 76, 115, .16);
    }
    .site-header.is-menu-open .site-navigation { display: block; }
    .site-navigation-link { display: flex; width: 100%; min-height: 56px; padding: 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .13); font-size: 15px; }
    .site-navigation-link::after { display: none; }
    .site-navigation-link.is-current { color: #99efff; }
}

@media (max-width: 760px) {
    .site-container,
    .site-footer-inner { width: min(calc(100% - 32px), var(--site-width)); }
    .site-footer-inner { min-height: 76px; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 0; text-align: center; }
}

@media (max-width: 480px) {
    .site-header-inner { padding: 0 16px; gap: 8px; }
    .site-logo,
    .site-logo img { width: 130px; height: 32px; }
    .site-header-actions { gap: 3px; }
    .site-language-trigger { gap: 6px; padding: 0 4px; font-size: 12px; }
    .site-language-globe { width: 18px; height: 18px; }
    .site-language-panel { padding: 8px; max-height: calc(100svh - 90px); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
