* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #060a10;
    --surface: rgba(8, 14, 22, 0.74);
    --surface-strong: rgba(10, 17, 27, 0.86);
    --surface-soft: rgba(113, 241, 208, 0.08);
    --text: #edf7ff;
    --text-strong: #ffffff;
    --muted: #9fb8c8;
    --muted-soft: #8ca7b9;
    --border: rgba(154, 224, 255, 0.16);
    --border-strong: rgba(113, 241, 208, 0.42);
    --primary: #71f1d0;
    --primary-strong: #98ffe3;
    --blue: #4db4ff;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(rgba(126, 249, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 249, 217, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(64, 184, 255, 0.18), transparent 34%),
    radial-gradient(circle at 12% 6%, rgba(125, 255, 210, 0.12), transparent 28%),
    var(--bg);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body {
    line-height: 1.72;
}

a {
    color: var(--primary-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 10, 16, 0.84);
    backdrop-filter: blur(14px);
}

.site-header__inner,
.page,
.site-footer__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
}

.brand img {
    width: 30px;
    height: 30px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 14px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--muted);
}

.nav a:hover {
    color: #effbff;
    background: rgba(126, 249, 217, 0.08);
    text-decoration: none;
}

.hero {
    padding: 72px 0 42px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 860px;
    margin-bottom: 20px;
    color: #f7fbff;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    color: var(--text-strong);
    font-size: 28px;
    line-height: 1.2;
}

h3 {
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: 20px;
    line-height: 1.3;
}

.lead {
    max-width: 780px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(10, 17, 27, 0.7);
    color: #dcefff;
    font-weight: 700;
}

.button.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #07110f;
}

.button:hover {
    border-color: rgba(113, 241, 208, 0.72);
    background: rgba(113, 241, 208, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.button.primary:hover {
    border-color: var(--primary-strong);
    background: var(--primary-strong);
    color: #07110f;
}

.section {
    padding: 42px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.card,
.faq-item,
.note,
.code-block {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card,
.faq-item,
.note {
    padding: 22px;
}

.card p,
.faq-item p,
.note p,
.content p,
.content li {
    color: var(--muted);
}

.card ul,
.content ul,
.content ol {
    padding-left: 22px;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.toc a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: #dcefff;
    font-size: 14px;
}

.toc a:hover {
    border-color: var(--border-strong);
    background: var(--surface-soft);
    color: var(--primary);
    text-decoration: none;
}

.faq {
    display: grid;
    gap: 14px;
}

.code-block {
    overflow: auto;
    padding: 18px;
    color: #d7f8ef;
    background: rgba(3, 8, 13, 0.86);
    box-shadow: none;
}

pre,
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
    margin: 0;
    white-space: pre-wrap;
}

.site-footer {
    margin-top: 42px;
    border-top: 1px solid var(--border);
    background: rgba(6, 10, 16, 0.54);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 820px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

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

    .hero {
        padding-top: 44px;
    }

    .grid,
    .grid.two {
        grid-template-columns: 1fr;
    }
}
