:root {
    --ink: #11110f;
    --muted: #6f6a63;
    --line: #e7e3dc;
    --soft: #f7f5f1;
    --paper: #fff;
    --accent: #ff6900;
    --accent-soft: #fff0e6;
    --blue: #2d63c8;
    --shadow: 0 18px 50px rgba(25, 22, 18, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.75 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 9px 13px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    position: relative;
    z-index: 20;
    background: #fff;
    color: #10100f;
}

.site-notice {
    display: flex;
    min-height: 40px;
    padding: 7px 24px;
    align-items: center;
    justify-content: center;
    background: #f1f0ed;
    color: #292724;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.site-notice a {
    margin-left: 6px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-header {
    height: 92px;
    border-bottom: 1px solid #e9e7e2;
    background: #fff;
}

.site-nav {
    display: flex;
    width: min(1516px, calc(100% - 80px));
    height: 100%;
    margin: 0 auto;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0d0d0d;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1.4px;
}

.brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 3px;
}

.brand-mark i {
    width: 4px;
    height: 4px;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    background: currentColor;
}

.primary-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.primary-links a {
    position: relative;
    padding: 10px 0;
    color: #302e2a;
    font-size: 14px;
    font-weight: 400;
}

.primary-links a:hover,
.primary-links a[aria-current="page"] {
    color: #080808;
    font-weight: 700;
}

.primary-links a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    content: "";
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 36px;
}

.sign-in {
    margin-right: 28px;
    color: #171717;
    font-size: 14px;
}

.trial-button,
.button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.trial-button:hover,
.button:hover {
    background: #30302d;
    transform: translateY(-1px);
}

.docs-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 58px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 105, 0, 0.13), transparent 23%),
        radial-gradient(circle at 70% 90%, rgba(255, 210, 90, 0.23), transparent 34%),
        #fbfaf7;
}

.hero-inner,
.docs-shell,
.footer-inner {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #554f48;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.docs-hero h1,
.docs-hero .hero-title {
    display: block;
    max-width: 850px;
    margin: 14px 0 16px;
    color: var(--ink);
    font: 400 clamp(42px, 5vw, 66px)/1.06 Georgia, "Songti SC", serif;
    letter-spacing: -0.065em;
}

.docs-hero p {
    max-width: 720px;
    margin: 0;
    color: #625d56;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.button.secondary {
    border: 1px solid #cfcbc4;
    background: #fff;
    color: #1c1b19;
}

.button.secondary:hover {
    border-color: #99928a;
    background: #fff;
}

.docs-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 190px;
    gap: 54px;
    padding: 48px 0 84px;
}

.side-nav,
.page-toc {
    position: sticky;
    top: 106px;
    align-self: start;
}

.side-nav-label,
.toc-label {
    margin: 0 0 12px;
    color: #948c82;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 12px;
    align-items: center;
    border-radius: 9px;
    color: #5d5750;
    font-size: 13px;
}

.side-nav a:hover {
    background: var(--soft);
    color: #171717;
}

.side-nav a[aria-current="page"] {
    background: var(--accent-soft);
    color: #9e4100;
    font-weight: 700;
}

.side-nav-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--line);
}

.side-nav .side-switch {
    justify-content: space-between;
    color: #33302c;
    font-weight: 700;
}

.side-nav .side-switch::after {
    content: "→";
}

.page-toc {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.page-toc a {
    display: block;
    margin: 10px 0;
    color: #7b746c;
    font-size: 12px;
    line-height: 1.45;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 24px;
    color: #8a837a;
    font-size: 11px;
}

.breadcrumb a:hover {
    color: #25221e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article {
    min-width: 0;
}

.article-header {
    margin-bottom: 38px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.article-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article h1 {
    margin: 0;
    font: 400 clamp(35px, 4vw, 50px)/1.08 Georgia, "Songti SC", serif;
    letter-spacing: -0.05em;
}

.article-lead {
    max-width: 780px;
    margin: 16px 0 0;
    color: #615c55;
    font-size: 16px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 20px;
    color: #958d84;
    font-size: 11px;
}

.article section {
    scroll-margin-top: 110px;
    margin: 48px 0;
}

.article h2 {
    margin: 0 0 18px;
    font: 400 30px/1.2 Georgia, "Songti SC", serif;
    letter-spacing: -0.035em;
}

.article h3 {
    margin: 30px 0 10px;
    font-size: 17px;
    line-height: 1.5;
}

.article p {
    margin: 12px 0;
    color: #4e4a45;
}

.article ul,
.article ol {
    margin: 15px 0;
    padding-left: 23px;
    color: #4e4a45;
}

.article li {
    margin: 8px 0;
    padding-left: 3px;
}

.article a:not(.button):not(.topic-card):not(.next-card) {
    color: #265cb7;
    text-decoration: underline;
    text-decoration-color: rgba(38, 92, 183, 0.35);
    text-underline-offset: 3px;
}

.callout {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #f2d3bd;
    border-radius: 13px;
    background: #fff8f3;
}

.callout strong {
    display: block;
    margin-bottom: 5px;
    color: #8c3a00;
}

.callout p {
    margin: 0;
    color: #674d3c;
    font-size: 13px;
}

.callout.info {
    border-color: #d6e1f8;
    background: #f4f7fd;
}

.callout.info strong {
    color: #254f99;
}

.callout.info p {
    color: #465b7e;
}

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

.topic-card {
    display: flex;
    min-height: 170px;
    padding: 21px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.topic-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.topic-card .card-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: #a24300;
    font-weight: 700;
}

.topic-card h3 {
    margin: 17px 0 6px;
}

.topic-card p {
    margin: 0;
    color: #777068;
    font-size: 13px;
}

.topic-card .card-link {
    margin-top: auto;
    padding-top: 16px;
    color: #25221f;
    font-size: 12px;
    font-weight: 700;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 20px 42px 20px 0;
    cursor: pointer;
    list-style: none;
    color: #27231f;
    font-size: 16px;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 19px;
    right: 5px;
    color: var(--accent);
    font-size: 20px;
    font-weight: 400;
    content: "+";
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-answer {
    max-width: 760px;
    padding: 0 40px 20px 0;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.steps {
    margin: 26px 0;
    padding: 0;
    list-style: none;
    counter-reset: guide-step;
}

.steps > li {
    position: relative;
    margin: 0;
    padding: 4px 0 32px 58px;
    counter-increment: guide-step;
}

.steps > li:not(:last-child)::before {
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: var(--line);
    content: "";
}

.steps > li::after {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 50%;
    background: #151515;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    content: counter(guide-step);
}

.steps h3 {
    margin-top: 0;
}

.checklist {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    margin: 0;
    padding: 13px 16px 13px 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.checklist li::before {
    position: absolute;
    top: 13px;
    left: 15px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #ebf7ee;
    color: #22763a;
    font-size: 11px;
    font-weight: 700;
    content: "✓";
}

.next-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.next-card {
    display: block;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.next-card:hover {
    border-color: #aaa39a;
    background: var(--soft);
}

.next-card small {
    display: block;
    margin-bottom: 5px;
    color: #918a81;
    font-size: 10px;
}

.next-card strong {
    font-size: 13px;
}

.next-card.next {
    text-align: right;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid #e8e6e1;
    background: #f7f6f4;
    color: #191816;
}

.footer-inner {
    width: min(1516px, calc(100% - 80px));
    margin: 0 auto;
    padding: 52px 0 30px;
}

.footer-top {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d0d0d;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1.4px;
}

.footer-brand .brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 125px);
    gap: 26px;
    font-size: 12px;
    line-height: 1.45;
}

.footer-group strong {
    display: block;
    margin-bottom: 13px;
    color: #171717;
    font-size: 12px;
}

.footer-group a {
    display: block;
    margin: 9px 0;
    color: #625d57;
}

.footer-group a:hover {
    color: #0d0d0d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-disclaimer {
    max-width: 760px;
    margin: 48px 0 0;
    color: #858078;
    font-size: 10px;
    line-height: 1.65;
}

.footer-bottom {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    padding-top: 18px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e2dfd9;
    color: #969088;
    font-size: 10px;
}

.footer-bottom a {
    color: inherit;
}

.footer-bottom a:hover {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid rgba(255, 105, 0, 0.38);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .site-nav {
        width: min(100% - 42px, 1516px);
    }

    .docs-shell {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 42px;
    }

    .page-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    .primary-links {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .footer-inner {
        width: min(100% - 42px, 1516px);
    }

    .footer-top {
        gap: 40px;
    }

    .footer-nav {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }

    .docs-hero {
        padding: 50px 0 44px;
    }

    .docs-shell {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .side-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 6px;
        margin: 0 -4px;
        padding: 4px;
        scrollbar-width: thin;
    }

    .side-nav-label,
    .side-nav-divider,
    .side-nav .side-switch {
        display: none;
    }

    .side-nav a {
        flex: 0 0 auto;
        min-height: 38px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
    }
}

@media (max-width: 620px) {
    .hero-inner,
    .docs-shell {
        width: min(100% - 28px, 1240px);
    }

    .site-notice {
        min-height: 34px;
        padding: 6px 14px;
        font-size: 10px;
    }

    .site-header {
        height: 66px;
    }

    .site-nav {
        width: min(100% - 28px, 1516px);
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
    }

    .sign-in {
        margin-right: 13px;
        font-size: 11px;
    }

    .trial-button {
        min-height: 34px;
        padding: 0 13px;
        font-size: 11px;
    }

    .docs-hero h1,
    .docs-hero .hero-title {
        font-size: 42px;
    }

    .docs-hero p,
    .article-lead {
        font-size: 14px;
    }

    .docs-shell {
        gap: 30px;
        padding-bottom: 58px;
    }

    .article h1 {
        font-size: 36px;
    }

    .article h2 {
        font-size: 27px;
    }

    .topic-grid,
    .next-links {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 150px;
    }

    .next-card.next {
        text-align: left;
    }

    .footer-inner {
        width: min(100% - 28px, 1516px);
        padding: 38px 0 24px;
    }

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        font-size: 20px;
    }

    .footer-brand .brand-mark {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .footer-nav {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .footer-disclaimer {
        margin-top: 34px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
