:root {
    --bg: #07130f;
    --bg-strong: #03100c;
    --panel: rgba(7, 20, 16, 0.88);
    --panel-soft: rgba(255, 255, 255, 0.055);
    --line: rgba(130, 230, 186, 0.2);
    --line-strong: rgba(130, 230, 186, 0.42);
    --text: #f3fff8;
    --muted: #b9d7c8;
    --green: #82e6ba;
    --teal: #38c7c7;
    --amber: #f1c75b;
    --coral: #ff8e72;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.page-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    background: rgba(3, 14, 11, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.nav-container {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    text-decoration: none;
}

.nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.nav-brand span {
    display: grid;
    gap: 0;
}

.nav-brand strong {
    font-size: 1.12rem;
    line-height: 1.1;
}

.nav-brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav-menu {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    list-style: none;
}

.nav-menu a {
    min-height: 40px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
    color: var(--text);
    background: rgba(130, 230, 186, 0.11);
}

.nav-menu a:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    min-height: 40px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    list-style: none;
    white-space: nowrap;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary::after {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.language-menu details[open] summary::after {
    transform: translateY(1px) rotate(225deg);
}

.language-menu summary:hover,
.language-menu summary:focus-visible,
.language-menu details[open] summary {
    color: var(--text);
    background: rgba(130, 230, 186, 0.11);
}

.language-menu-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 148px;
    padding: 5px;
    display: grid;
    gap: 2px;
    background: rgba(3, 14, 11, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 40;
}

.language-menu-options a {
    min-height: 38px;
    padding: 0 10px;
}

.language-menu-options a[aria-current="page"] {
    color: var(--text);
    background: rgba(130, 230, 186, 0.11);
}

.language-menu summary:focus-visible,
.language-menu-options a:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--green);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero-copy {
    max-width: 770px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 24px;
}

.action-link {
    min-height: 46px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    text-decoration: none;
}

.action-link.primary {
    border-color: transparent;
    background: var(--green);
    color: #05100c;
}

.action-link:hover,
.action-link:focus-visible {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.compute-visual {
    min-width: 0;
    padding: 14px 15px 12px;
    border: 1px solid rgba(183, 230, 206, 0.2);
    border-radius: 8px;
    background:
        repeating-linear-gradient(0deg, transparent 0 35px, rgba(185, 225, 201, 0.035) 36px),
        repeating-linear-gradient(90deg, transparent 0 35px, rgba(185, 225, 201, 0.035) 36px),
        rgba(7, 20, 16, 0.92);
}

.compute-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d3dfd6;
    font-size: 0.76rem;
}

.compute-status {
    flex: none;
    padding: 3px 8px;
    border: 1px solid rgba(241, 199, 91, 0.38);
    border-radius: 4px;
    color: var(--amber);
    font-size: 0.66rem;
}

.compute-visual img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2px 0 -4px;
}

.compute-visual-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    color: #c4d3c9;
    font-size: 0.68rem;
}

.compute-visual-steps span {
    min-width: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.compute-visual-steps b {
    color: var(--green);
    font-size: 0.64rem;
    font-weight: 500;
}

.compute-visual-caption {
    margin: 11px 0 0;
    color: #9fb0a5;
    font-size: 0.67rem;
}

.business-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    font-size: 0.86rem;
}

.business-switch-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--muted);
    text-decoration: none;
}

.business-switch-back:hover,
.business-switch-back:focus-visible {
    color: var(--text);
}

.business-switch-tabs {
    display: inline-flex;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.business-switch-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.business-switch-tabs b {
    font-size: 0.7rem;
    opacity: 0.7;
}

.business-switch-tabs a[aria-current="page"] {
    color: #04100b;
    background: var(--switch-accent, var(--green));
}

.business-switch-tabs a:not([aria-current]):hover,
.business-switch-tabs a:not([aria-current]):focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    padding: 40px 0 28px;
    background: #030e0b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--green);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 22px 0 30px;
}

.footer-brand .nav-brand {
    margin-bottom: 14px;
}

.site-footer .footer-brand p {
    max-width: 340px;
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.site-footer .footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: var(--muted);
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    border-color: var(--line-strong);
    color: var(--green);
}

.footer-col h2 {
    margin: 4px 0 14px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
}

.site-footer .footer-col a {
    font-size: 0.88rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #7f9c8d;
    font-size: 0.78rem;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

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

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .compute-visual {
        width: min(720px, 100%);
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        background: rgba(3, 14, 11, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 12px;
    }

    .language-menu summary {
        min-height: 44px;
        padding: 0 12px;
    }

    .language-menu-options {
        position: static;
        margin: 0 0 4px 12px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.04);
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 0;
        box-shadow: none;
    }

    .nav-toggle {
        flex: none;
        display: block;
    }
}

@media (max-width: 640px) {
    .page-wrap {
        width: min(100% - 28px, 1120px);
    }

    .nav-container {
        width: min(100% - 24px, 1180px);
    }

    .nav-brand {
        min-width: auto;
    }

    .footer-layout {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-copy {
        font-size: 0.98rem;
    }

    .compute-visual {
        padding: 12px 10px 10px;
    }

    .compute-visual-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 7px;
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .business-switch {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 26px;
    }
}

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

/* 登录入口：导航末尾的描边按钮 */
.nav-menu a.nav-login {
    margin-left: 6px;
    color: var(--green);
    border: 1px solid var(--line-strong);
}

.nav-menu a.nav-login:hover,
.nav-menu a.nav-login:focus-visible {
    color: #04120d;
    background: var(--green);
}

@media (max-width: 980px) {
    .nav-menu a.nav-login {
        margin: 6px 0 0;
        justify-content: center;
    }
}
