/* Accent is the night-sky blue from the hero. */
:root {
    --ink: #333333;
    --ink-soft: rgba(0, 0, 0, 0.62);
    --night: #102040;
    --led: #d5e3f4;
    --accent: #1a4f8c;
    --accent-press: #16306f;
    --paper: #fafafa;
    --white: #ffffff;
    --navy: #102040;
    --sky: #f4f7fb;
    --ice: #eef3f8;
    --mist: #eef2f6;
    --line: rgba(16, 32, 64, 0.08);
    --green: #519e79;
    --shadow: 0 18px 50px rgba(16, 32, 64, 0.12);
    --page: 1254px;
    --header: 68px;
    --announce: 0px;
    --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: rgba(0, 0, 0, 0.87);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wrap {
    width: min(var(--page), calc(100% - 48px));
    margin-inline: auto;
}
.mark { width: 28px; height: 28px; display: block; flex: none; }

.announce {
    background: linear-gradient(90deg, #f4f7fb 0%, #f7f9fc 48%, #eef3f8 100%);
    color: var(--ink);
    min-height: var(--announce);
    border-bottom: 1px solid rgba(16, 32, 64, 0.06);
}
.announce-inner {
    min-height: var(--announce);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.announce-inner p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 1;
    padding-inline: 132px;
}
.announce-orb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(16, 48, 80, 0.14);
    position: relative;
    flex: none;
}
.announce-orb::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #fff 0%, #d5e3f4 42%, #1a4f8c 78%);
    box-shadow: 0 0 10px rgba(26, 79, 140, 0.35);
}
.announce-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 14px;
}
.announce-link span { transition: transform 200ms ease; }
.announce-link:hover span { transform: translateX(3px); }

#header-placeholder { height: var(--header); }
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    height: var(--header);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(26, 79, 140, 0.15), var(--accent));
    transform: scaleX(var(--scroll, 0));
    transform-origin: left center;
    pointer-events: none;
}
.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(23, 36, 56, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 28px rgba(20, 30, 50, 0.06);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--night);
    flex: none;
}
.brand .mark {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 6px 10px rgba(14, 28, 54, 0.28));
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}
.brand:hover .mark {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 14px rgba(26, 79, 140, 0.4));
}
.brand-name {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}
.brand-name em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.82;
}
.nav-desk { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 8px; }
.nav-link {
    position: relative;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: #1c2430;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    transition: color 180ms ease, background 180ms ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}
.nav-link:hover { color: var(--accent); background: var(--ice); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-mob .nav-link {
    height: auto;
    padding: 14px 0;
    border-radius: 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
}
.nav-mob .nav-link::after { display: none; }
.nav-mob .nav-link[aria-current="page"] { font-weight: 600; }
.nav-trigger {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    color: #1c2430;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 180ms ease, color 180ms ease;
}
.nav-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.55;
    transition: transform 200ms ease;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--accent); background: var(--ice); }
.nav-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}
.mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(680px, calc(100vw - 48px));
    padding: 10px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 60px rgba(22, 32, 58, 0.16);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8px;
    animation: menu-in 220ms ease;
}
.nav-item:last-child .mega { left: auto; right: 0; }
@keyframes menu-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.mega-links { display: grid; gap: 2px; align-content: start; }
.mega-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: var(--ink);
}
.mega-links a strong { display: block; font-weight: 600; font-size: 15px; }
.mega-links a small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.mega-links a:hover { background: var(--ice); color: var(--accent); }
.mega-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: none;
    background:
        radial-gradient(circle at 30% 30%, #fff, transparent 46%),
        linear-gradient(145deg, #f4f7fb, #8eafd4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-links a:hover .mega-ico { transform: translateY(-2px); }
.mega-ico-b { background: radial-gradient(circle at 30% 30%, #fff, transparent 46%), linear-gradient(145deg, #f7f9fc, #c5d4e8); }
.mega-ico-c { background: radial-gradient(circle at 30% 30%, #fff, transparent 46%), linear-gradient(145deg, #f4f7fb, #7ea0c8); }
.mega-ico-d { background: radial-gradient(circle at 30% 30%, #fff, transparent 46%), linear-gradient(145deg, #f3f6fa, #9bb6d6); }
.mega-ico-e { background: radial-gradient(circle at 30% 30%, #fff, transparent 46%), linear-gradient(145deg, #f8fafc, #d5e3f4); }
.mega-ico-f { background: radial-gradient(circle at 30% 30%, #fff, transparent 46%), linear-gradient(145deg, #f4f7fb, #a9c3e0); }
.mega-feature {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        radial-gradient(120px 80px at 80% 20%, rgba(255, 255, 255, 0.35), transparent 70%),
        linear-gradient(165deg, #102040 0%, #1a4f8c 58%, #16306f 100%);
}
.mega-feature small { display: block; opacity: 0.8; font-size: 13px; }
.mega-feature strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.mega-feature-ice {
    color: var(--ink);
    background:
        radial-gradient(140px 90px at 80% 16%, #fff, transparent 70%),
        linear-gradient(165deg, #f8fafc, #e4edf6);
}
.mega-feature-ice small { color: var(--ink-soft); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; position: relative; z-index: 2; }
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
}
.btn:hover::after {
    opacity: 1;
    transform: translateX(130%);
    transition: transform 560ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary,
.btn-ghost {
    color: var(--night);
    border-color: rgba(16, 32, 64, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(16, 32, 64, 0.05),
        0 8px 20px rgba(16, 32, 64, 0.08);
}
.btn-primary:hover,
.btn-ghost:hover {
    color: var(--night);
    border-color: rgba(16, 32, 64, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.5));
}
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-short { display: none; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle i {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    transition: transform 220ms ease, opacity 220ms ease;
}
.nav-toggle i:first-of-type { top: 16px; }
.nav-toggle i:last-of-type { top: 23px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { top: 19px; transform: rotate(40deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { top: 19px; transform: rotate(-40deg); }
.nav-drawer {
    position: fixed;
    inset: calc(var(--announce) + var(--header)) 0 0 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 39;
    padding: 8px 24px 32px;
    overflow: auto;
}
.nav-drawer:not([hidden]) { animation: drawer-in 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.nav-drawer:not([hidden]) .nav-mob a { animation: link-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.nav-mob a:nth-of-type(1) { animation-delay: 30ms; }
.nav-mob a:nth-of-type(2) { animation-delay: 55ms; }
.nav-mob a:nth-of-type(3) { animation-delay: 80ms; }
.nav-mob a:nth-of-type(4) { animation-delay: 105ms; }
.nav-mob a:nth-of-type(5) { animation-delay: 130ms; }
.nav-mob a:nth-of-type(6) { animation-delay: 155ms; }
.nav-mob a:nth-of-type(7) { animation-delay: 180ms; }
.nav-mob a:nth-of-type(8) { animation-delay: 205ms; }
.nav-mob a:nth-of-type(9) { animation-delay: 230ms; }
@keyframes drawer-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes link-in {
    from { opacity: 0; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
}
.nav-mob { display: grid; }
.drawer-label {
    margin: 22px 0 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}
.lang-drawer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 8px 0 12px;
}
.nav-mob .lang-drawer a {
    padding: 6px 0;
    border-bottom: none;
    font-size: 14px;
    color: var(--ink-soft);
}
.nav-mob a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 18px;
}
.lang-switch { position: relative; flex: none; z-index: 3; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex: none;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(16, 32, 64, 0.16);
    color: var(--night);
    background: rgba(255, 255, 255, 0.72);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] { background: var(--ice); border-color: rgba(26, 79, 140, 0.28); }
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 168px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: grid;
    z-index: 5;
}
.lang-menu:not([hidden]) { animation: menu-in 200ms ease; }
.lang-menu a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
}
.lang-menu a:hover { background: var(--ice); color: var(--accent); }
.lang-menu a[aria-current="true"] { background: var(--ice); color: var(--accent); font-weight: 600; }
.lang-drawer a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.account { position: relative; }
.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: grid;
    z-index: 5;
}
.user-menu:not([hidden]) { animation: menu-in 200ms ease; }
.user-menu a,
.user-menu button {
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
}
.user-menu a:hover,
.user-menu button:hover { background: var(--ice); color: var(--accent); }

.site-footer { padding: 72px 0 28px; background: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}
.footer-brand { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.footer-note { margin-top: 12px; color: var(--ink-soft); max-width: 28em; }
.site-footer p { font-weight: 500; margin-bottom: 8px; }
.site-footer a {
    display: block;
    width: fit-content;
    color: var(--ink);
    padding: 6px 0;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color 200ms ease, background-size 320ms ease;
}
.site-footer a:hover { color: var(--accent); background-size: 100% 1px; }
.footer-bar {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 14px;
}

.auth-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 18, 28, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-layer:not([hidden]) { animation: veil 240ms ease; }
@keyframes veil {
    from { opacity: 0; }
    to { opacity: 1; }
}
.auth-layer[hidden],
.nav-drawer[hidden],
.mega[hidden],
.user-menu[hidden],
.lang-menu[hidden] { display: none; }
.auth-dialog {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px 22px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 70px rgba(16, 24, 48, 0.22), inset 0 1px 0 #fff;
    animation: dialog-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dialog-in {
    from { opacity: 0; translate: 0 16px; scale: 0.98; }
    to { opacity: 1; translate: 0 0; scale: 1; }
}
.auth-dialog [hidden] { display: none !important; }
.auth-dialog h2 { font-size: 28px; font-weight: 500; color: var(--ink); }
.auth-lead { margin: 8px 0 18px; color: var(--ink-soft); }
.auth-step.is-in { animation: step-in 320ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes step-in {
    from { opacity: 0; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
}
.auth-mail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: var(--ice);
    border-radius: 4px;
    color: var(--ink);
    font-size: 14px;
}
.auth-mail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auth-mail button { color: var(--accent); flex: none; font-size: 14px; }
.auth-mail button:hover { text-decoration: underline; }
.auth-agree {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--ink-soft);
}
.auth-agree label { display: inline-flex; gap: 8px; align-items: center; }
.auth-agree input { accent-color: var(--accent); }
.auth-dialog .btn-primary:disabled,
.auth-links button:disabled { opacity: 0.55; cursor: default; }
.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 24px;
    color: var(--ink);
}
.auth-close:hover { background: var(--mist); }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--ink); }
.field input {
    height: 44px;
    border: 1px solid #d5dee8;
    border-radius: 4px;
    padding: 0 12px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 79, 140, 0.22);
}
.auth-error { color: #b42318; font-size: 14px; margin: 0 0 10px; }
.auth-actions { display: flex; gap: 8px; }
.auth-actions .btn-primary { flex: 1; min-height: 44px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.auth-links button { color: var(--accent); font-size: 14px; }
.auth-links button:hover { text-decoration: underline; }
body.modal-open,
body.nav-open { overflow: hidden; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 90;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
    .nav-desk { display: none; }
    .header-inner { gap: 12px; }
    .header-actions { margin-left: auto; min-width: 0; gap: 6px; }
    .header-actions .btn-primary,
    .header-actions .lang-switch,
    .header-actions .btn-long,
    .announce-link { display: none; }
    .header-actions .btn-short { display: inline; }
    .header-actions .btn-ghost { padding: 8px 12px; white-space: nowrap; }
    .brand-name { font-size: 18px; }
    .nav-toggle { display: inline-block; flex: none; }
    .brand { min-width: 0; }
    .announce-inner { grid-template-columns: 1fr; }
    .announce-inner p { justify-content: flex-start; padding-inline: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .wrap { width: min(var(--page), calc(100% - 32px)); }
}
@media (max-width: 420px) {
    .brand-name em { display: none; }
    .header-actions .btn-ghost { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .mega { animation: none; }
}
