:root {
    color-scheme: light;
    --ink: #14263c;
    --muted: #54677d;
    --blue: #165dde;
    --line: #dce4ee;
    --light: #f0f5fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #5293ff; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1264px, calc(100% - 96px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; letter-spacing: -.04em; font-weight: 750; white-space: nowrap; }
.brand-mark { display: inline-block; width: 40px; height: 40px; flex-shrink: 0; background: url("site-logo-v1.png") center / contain no-repeat; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px); color: var(--muted); font-size: 14px; }
nav a { white-space: nowrap; }
nav a:hover, .login:hover { color: var(--blue); }
nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.login { display: inline-flex; align-items: center; gap: 12px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 6px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.login:hover { border-color: var(--blue); }
.hero { color: white; background: #0d1d32; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b192ee8 0%, #0b192e9e 36%, #0b192e18 78%), url("entrance.webp") center 36% / cover no-repeat; }
.hero-inner { min-height: 580px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 90px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .12em; margin-bottom: 13px; }
.hero-kicker { color: #c4dcff; display: flex; align-items: center; gap: 9px; }
.hero-kicker span { width: 8px; height: 8px; border-radius: 50%; background: #6ca8ff; }
h1 { font-size: clamp(46px, 6.2vw, 88px); font-weight: 750; line-height: 1.09; letter-spacing: -.06em; }
.hero-description { margin-top: 24px; color: #deebff; max-width: 420px; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; border-radius: 6px; padding: 0 19px; font-size: 14px; font-weight: 650; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #0f4fbd; }
.button-light { border: 1px solid #7f98b9; background: #11233b7d; }
.button-light:hover { background: #263c59; }
.section { padding-block: 82px; scroll-margin-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 31px; }
.section-heading > p, .integration > div > p:last-child { max-width: 395px; color: var(--muted); line-height: 1.75; }
h2 { font-size: clamp(29px, 3.45vw, 46px); line-height: 1.2; letter-spacing: -.045em; }
h3 { font-size: 21px; letter-spacing: -.02em; }
.scenarios, .capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; }
.product-photo { aspect-ratio: 3 / 2; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { padding: 16px 18px; }
.scenario { overflow: hidden; position: relative; isolation: isolate; min-height: 338px; background: #1a2d43; border-radius: 8px; color: white; display: flex; align-items: end; }
.scenario img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; z-index: -2; }
.scenario::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 28%, #0a172acc 79%, #0a172a 100%); z-index: -1; }
.scenario-text { padding: 24px; }
.scenario-text p { color: #e1edfd; font-size: 14px; line-height: 1.65; margin-top: 8px; }
.capabilities { background: var(--light); border-block: 1px solid var(--line); }
.capability-grid article { background: white; padding: 26px; border: 1px solid var(--line); border-radius: 8px; }
.capability-grid p { color: var(--muted); margin-top: 9px; line-height: 1.7; }
.capability-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: #eaf2ff; color: var(--blue); font-size: 25px; margin-bottom: 17px; }
.integration { display: grid; grid-template-columns: .95fr 1fr; gap: 56px; }
.integration > div > p:last-child { margin-top: 17px; }
.integration > p, .integration > div > h2 + p { color: var(--muted); line-height: 1.75; }
.integration > div > h2 + p { margin-top: 16px; }
.text-link { color: var(--blue); font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.more-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); background: white; font-size: 14px; font-weight: 650; }
.more-link:hover { border-color: var(--blue); background: #eef5ff; }
.integration > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
dl > div:first-child { border-top: 1px solid var(--line); }
dt { font-weight: 700; }
dd { margin: 0; color: var(--muted); line-height: 1.65; }
.site-footer { background: #0d1d32; color: #dce8fa; }
.footer-inner { min-height: 94px; display: flex; align-items: center; gap: 24px; }
.footer-inner > a:not(.brand) { color: #dce8fa; font-size: 14px; }
.footer-inner > a:last-child { margin-left: auto; font-size: 14px; }

.guide-intro { padding-block: 84px; background: linear-gradient(120deg, #e8f2ff, #f5f8fc 63%); border-bottom: 1px solid var(--line); }
.guide-intro h1 { font-size: clamp(38px, 6vw, 68px); }
.guide-intro h1 + p { margin-top: 20px; color: var(--muted); line-height: 1.7; }
.guide-back { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: 14px; font-weight: 650; }
.guide-back:hover { text-decoration: underline; }
.detail-next { padding-bottom: 48px; }
.detail-scenarios { display: grid; gap: 26px; }
.detail-scenario { display: grid; grid-template-columns: minmax(180px, 360px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 80px); }
.detail-scenario img { width: 100%; height: 238px; object-fit: cover; border-radius: 8px; }
.detail-scenario p { max-width: 550px; margin-top: 12px; color: var(--muted); line-height: 1.75; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; padding-left: 28px; }
.guide-steps li { padding: 15px 14px 15px 6px; border-top: 1px solid var(--line); }
.guide-steps li::marker { color: var(--blue); font-weight: 750; }
.guide-steps p, .guide-detail p { margin-top: 8px; color: var(--muted); line-height: 1.75; }
.guide-status { color: var(--muted); margin: 12px 0; line-height: 1.7; }
.guide-status:empty { display: none; }
.sdk-catalog { background: #f7f9fc; }
.sdk-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 22px; padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.sdk-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sdk-filters legend, .sdk-select { color: var(--muted); font-size: 13px; font-weight: 650; }
.sdk-targets { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.sdk-targets label { position: relative; cursor: pointer; }
.sdk-targets input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sdk-targets span, .sdk-select select { display: inline-flex; align-items: center; min-height: 37px; padding: 7px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background-color: white; font-size: 13px; }
.sdk-targets :checked + span { background: #e9f2ff; color: #1248a5; border-color: #9bbcf5; font-weight: 700; }
.sdk-targets :focus-visible + span { outline: 3px solid #5293ff; outline-offset: 2px; }
.sdk-select { display: grid; gap: 8px; min-width: 118px; }
.sdk-select select { font-family: inherit; }
.sdk-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
.sdk-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; font-size: 14px; }
.sdk-table thead { background: #eaf0f8; color: #465f7c; }
.sdk-table th, .sdk-table td { padding: 15px 17px; vertical-align: top; border-bottom: 1px solid var(--line); }
.sdk-table tbody tr:last-child > * { border-bottom: 0; }
.sdk-table th[scope="row"] { width: 39%; font-weight: 400; }
.sdk-name { font-size: 16px; }
.sdk-subtext { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sdk-date { white-space: nowrap; }
.sdk-language-tag, .version-current { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #e6f0ff; color: #1248a5; font-size: 12px; }
.sdk-version { display: block; margin-bottom: 5px; font-weight: 700; }
.sdk-download { min-height: 34px; padding: 0 11px; font-size: 13px; white-space: nowrap; }
.sdk-release-details { margin-top: 9px; font-size: 13px; }
.sdk-release-details summary { color: var(--blue); }
.release-notes { margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.sdk-checksum { display: block; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.guide-detail { margin-top: 10px; padding: 15px 18px; background: white; border: 1px solid var(--line); border-radius: 6px; }
summary { cursor: pointer; font-weight: 700; }
.guide pre { padding: 16px; border-radius: 6px; background: #edf3fa; overflow: auto; line-height: 1.55; }
.guide code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.guide-subtitle { margin-top: 34px; }
.guide-table-wrap { overflow-x: auto; }
.guide-table { width: 100%; min-width: 550px; border-collapse: collapse; text-align: left; font-size: 14px; }
.guide-table th, .guide-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--light); }

.docs-page { min-height: 70vh; background: #f4f7fb; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 38px 64px; }
.docs-sidebar { position: sticky; top: 104px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.docs-sidebar .guide-back { margin: 0 9px 17px; }
.docs-sidebar h2 { margin: 0 9px 10px; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.docs-sidebar nav { display: grid; gap: 4px; }
.docs-sidebar nav a, .docs-nav-group summary { padding: 10px 9px; border-radius: 5px; }
.docs-sidebar nav a[aria-current="page"] { background: #e8f1ff; }
.docs-nav-group summary { font-weight: inherit; }
.docs-nav-group summary:hover { background: #f1f6fd; }
.docs-nav-children { display: grid; gap: 4px; margin: 4px 0 0 15px; padding-left: 9px; border-left: 1px solid var(--line); }
.docs-content { min-width: 0; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: 8px; background: white; }
.docs-content h1 { font-size: clamp(33px, 4vw, 53px); line-height: 1.2; }
.docs-content h2 { font-size: 24px; }
.docs-content .docs-lead { margin-block: 15px 22px; color: var(--muted); font-size: 16px; }
.docs-content section { margin-block: 33px; }
.docs-content section h2 { margin-bottom: 14px; }
.docs-content p, .docs-content li { color: var(--muted); line-height: 1.8; }
.docs-content li + li { margin-top: 6px; }
.docs-content :is(ol, ul) { padding-left: 24px; }
.docs-content [id] { scroll-margin-top: 120px; }
.docs-content .integration-steps { margin: 28px 0 0; padding-left: 25px; }
.integration-steps > li { padding: 18px 0 21px 9px; border-top: 1px solid var(--line); }
.integration-steps > li::marker { color: var(--blue); font-size: 19px; font-weight: 750; }
.integration-steps h2 { color: var(--ink); }
.integration-steps :is(p, ul, .text-link) { margin-top: 8px; }
.integration-steps .text-link { display: inline-block; }
.integration-steps .integration-screenshot { margin-top: 16px; }
.integration-screenshot a, .integration-screenshot img { display: block; }
.integration-screenshot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.integration-screenshot a { cursor: zoom-in; }
.guide-fields { margin-block: 13px 16px; font-size: 14px; }
.guide-fields > div { grid-template-columns: minmax(100px, 170px) minmax(0, 1fr); gap: 10px; padding-block: 9px; }
.guide-admin-action > .docs-diagram { margin-top: 12px; }
.guide-image-dialog { width: min(1120px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.guide-image-dialog::backdrop { background: #0d1d32bf; }
.guide-image-toolbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; background: white; border-bottom: 1px solid var(--line); }
.guide-image-toolbar button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #f1f6fb; cursor: pointer; white-space: nowrap; }
.guide-image-toolbar button:focus-visible { outline: 2px solid var(--blue); }
.guide-image-dialog img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.architecture-paths > div { grid-template-columns: minmax(110px, 145px) minmax(0, 1fr); }
.architecture-paths dd { color: var(--ink); font-weight: 650; }
.architecture-paths small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.docs-diagram { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9fe; }
.docs-diagram figcaption { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.architecture-paths > div:first-child { border-top: 0; }
.architecture-paths dt { padding-top: 5px; }
.diagram-route { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--blue); }
.diagram-route + .diagram-route { margin-top: 8px; }
.diagram-route span { padding: 3px 9px; border: 1px solid #d8e5f8; border-radius: 5px; color: var(--ink); background: white; }
.diagram-route em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 400; }
.sequence-scroll { overflow-x: auto; background: white; border: 1px solid #dce5f1; border-radius: 6px; }
.sequence-scroll:focus-visible { outline: 2px solid #5293ff; outline-offset: 2px; }
.sequence-scroll img { display: block; width: auto; max-width: 100%; min-width: 720px; height: auto; margin-inline: auto; }
.docs-content .sdk-catalog { background: white; margin-bottom: 0; scroll-margin-top: 118px; }


@media (max-width: 850px) {
    .product-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .container { width: calc(100% - 48px); }
    .hero-inner { min-height: 500px; }
    .scenario { min-height: 305px; }
    .scenario-text, .capability-grid article { padding: 18px; }
    .section { padding-block: 62px; }
    .integration { gap: 32px; }
}

@media (max-width: 960px) {
    .header-inner nav { order: 1; flex-basis: 100%; overflow-x: auto; padding: 0 0 12px; gap: 18px; }
    .header-inner { flex-wrap: wrap; gap: 8px 15px; padding-top: 10px; }
    .section { scroll-margin-top: 110px; }
    .docs-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 16px; }
    .docs-sidebar { top: 118px; }
}
@media (max-width: 620px) {
    .container { width: calc(100% - 36px); }
    .header-inner { min-height: 62px; }
    .hero-inner { min-height: 480px; padding-block: 63px; }
    .hero::before { background-image: linear-gradient(90deg, #0b192ef2, #0b192e70), url("entrance.webp"); background-position: center, 84% center; }
    .hero-description { max-width: 310px; font-size: 15px; }
    .section { padding-block: 48px; scroll-margin-top: 110px; }
    .section-heading { display: block; margin-bottom: 23px; }
    .section-heading > p { margin-top: 12px; }
    .scenarios, .capability-grid, .product-grid, .integration { grid-template-columns: 1fr; }
    .scenario { min-height: 300px; }
    .integration { gap: 25px; }
    .footer-inner { flex-wrap: wrap; gap: 12px; padding-block: 20px; }
    .guide-intro { padding-block: 54px; }
    .guide-steps { grid-template-columns: 1fr; }
    .sdk-catalog .section-heading .text-link { display: inline-block; margin-top: 12px; }
    .detail-scenario { grid-template-columns: 1fr; gap: 16px; }
    .docs-layout { grid-template-columns: 1fr; padding-block: 20px 42px; }
    .docs-sidebar { position: static; }
    .docs-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-nav-group { grid-column: 1 / -1; }
    .docs-sidebar nav a { white-space: normal; }
    .architecture-paths > div { grid-template-columns: 1fr; gap: 6px; }
}

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