:root {
    --bg: #0c101a;
    --surface: #131a2a;
    --surface-alt: #1a2438;
    --text: #e7ecf7;
    --muted: #adc0df;
    --primary: #5ea3ff;
    --primary-strong: #2f86ff;
    --accent: #66e1bd;
    --line: #2a3852;
    --shadow: 0 10px 30px rgba(4, 10, 24, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(94, 163, 255, 0.22), transparent 55%),
        radial-gradient(900px 480px at -20% 20%, rgba(102, 225, 189, 0.16), transparent 60%),
        var(--bg);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 180ms ease;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 3px solid rgba(102, 225, 189, 0.9);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 1000;
    background: var(--accent);
    color: #08141f;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.shell {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(12, 16, 26, 0.9);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text);
}

.brand strong {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 1.38rem;
    letter-spacing: 0.4px;
    color: #f3f7ff;
}

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

.site-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #f5f8ff;
    background: linear-gradient(135deg, rgba(47, 134, 255, 0.25), rgba(102, 225, 189, 0.22));
}

.hero {
    padding: 4.6rem 0 1.8rem;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 0.7rem;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    text-wrap: balance;
}

.hero p,
.page-hero p {
    margin: 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 1rem;
    text-wrap: pretty;
}

.page-hero {
    padding: 2.4rem 0 0.7rem;
}

.section {
    padding: 1.2rem 0 0.85rem;
}

.section h2 {
    margin: 0 0 0.75rem;
    text-wrap: balance;
    scroll-margin-top: 92px;
}

.lead {
    margin: 0 0 1rem;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1rem;
}

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

.grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow);
    min-width: 0;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.06rem;
}

.card p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.kpi {
    font-variant-numeric: tabular-nums;
    font-size: 1.8rem;
    line-height: 1;
    margin: 0;
    color: #f7fbff;
}

.kpi + p {
    margin-top: 0.35rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.95rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.6rem 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    touch-action: manipulation;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(140deg, var(--primary-strong), var(--primary));
    color: #f8fbff;
}

.button.primary:hover {
    color: #fff;
    background: linear-gradient(140deg, #2b7af0, #4f98f9);
}

.button.ghost {
    border-color: var(--line);
    color: #d9e5fa;
    background: rgba(255, 255, 255, 0.02);
}

.button.ghost:hover {
    border-color: rgba(102, 225, 189, 0.55);
    color: #effff9;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.chip {
    display: inline-flex;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.list-clean {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 1.8rem;
    margin-top: 2rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0.2rem 0;
}

.form {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

label {
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.62rem 0.7rem;
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.error {
    margin: 0;
    color: #ffbdbd;
    font-size: 0.88rem;
}

.muted {
    color: var(--muted);
}

@media (max-width: 900px) {
    .grid.cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding-top: 3.8rem;
    }

    .page-hero {
        padding-top: 1.9rem;
    }
}

@media (max-width: 700px) {
    .grid.cols-2,
    .grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 0.95rem 0 0.65rem;
    }

    .hero {
        padding: 3.2rem 0 1rem;
    }

    .page-hero {
        padding: 1.55rem 0 0.35rem;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.75rem, 8.5vw, 2.2rem);
        margin-bottom: 0.45rem;
    }

    .site-nav a {
        padding: 0.44rem 0.76rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 0.95rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .chip {
        font-size: 0.8rem;
        padding: 0.2rem 0.55rem;
    }

    .cta-row {
        gap: 0.55rem;
    }

    .cta-row .button {
        width: 100%;
        justify-content: center;
    }

    body[data-page="blog"] .section h2 {
        margin-bottom: 0.5rem;
    }

    body[data-page="blog"] .card p {
        line-height: 1.65;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@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;
    }
}
