:root {
    color-scheme: dark;
    --bg: #071524;
    --band: #0b1c30;
    --panel: rgba(255, 255, 255, 0.075);
    --panel-strong: rgba(255, 255, 255, 0.11);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #b8c7da;
    --faint: #7f92aa;
    --blue: #4aa3ff;
    --blue-strong: #2563eb;
    --green: #2dd4bf;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

img,
video,
iframe {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 21, 36, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(12px);
}

.shell {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

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

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-name span:first-child {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-link {
    color: #dbe7f5;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-switch button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.language-switch button.active {
    color: #ffffff;
    border-color: rgba(74, 163, 255, 0.5);
    background: rgba(37, 99, 235, 0.2);
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: #06111e;
    color: var(--faint);
    font-size: 14px;
}

@media (max-width: 980px) {
    .nav-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-shell {
        padding: 14px 0;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 32px, 1220px);
    }

    .brand-name {
        font-size: 18px;
    }
}

.hero {
    padding: 74px 0 54px;
    background:
        radial-gradient(circle at 78% 20%, rgba(74, 163, 255, 0.2), transparent 28%),
        linear-gradient(180deg, #071524 0%, #0b1c30 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 50px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(74, 163, 255, 0.4);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
    color: #93c5fd;
    font-size: 14px;
    font-weight: 800;
}

.hero-title {
    margin: 0;
    font-size: 56px;
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-subtitle {
    display: block;
    margin-top: 9px;
    color: #a7f3d0;
    font-size: 30px;
    line-height: 1.18;
}

.lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: #d7e6f7;
    font-size: 18px;
}

.cta-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-strong), #0ea5e9);
}

.btn.secondary {
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.3);
    background: rgba(15, 23, 42, 0.5);
}

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

.badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.12);
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 440px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(37, 99, 235, 0.16)),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 92px),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 92px);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-visual img {
    display: block;
    width: min(76%, 580px);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 22px 44px rgba(74, 163, 255, 0.35));
}

.visual-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.metrics {
    background: #0b1c30;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    min-height: 112px;
    padding: 26px 18px;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.section {
    padding: 74px 0;
    background: var(--bg);
}

.section.alt {
    background: var(--band);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
}

.section-head p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.grid-3,
.grid-4,
.product-grid {
    display: grid;
    gap: 18px;
}

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

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

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.card-body {
    padding: 22px;
}

.product-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.52);
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.card h3 {
    margin: 8px 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

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

.icon-card {
    min-height: 210px;
    padding: 24px;
}

.icon-card i {
    color: var(--blue);
    font-size: 28px;
}

.doc-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.doc-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
}

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

.contact-item {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.contact-item span {
    color: var(--faint);
    font-size: 13px;
    font-weight: 800;
}

.contact-item strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    word-break: break-word;
}

.page-hero {
    padding: 58px 0 34px;
    background: linear-gradient(180deg, #071524 0%, #0b1c30 100%);
}

.page-hero h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    background: #050b12;
}

.docs-sidebar {
    position: sticky;
    top: 68px;
    align-self: start;
    min-height: calc(100vh - 68px);
    padding: 26px 18px;
    border-right: 1px solid var(--line);
    background: #101820;
}

.docs-sidebar-title {
    margin: 0 0 16px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 800;
}

.docs-nav {
    display: grid;
    gap: 8px;
}

.docs-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #eef6ff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.docs-nav button:hover,
.docs-nav button.active {
    background: rgba(74, 163, 255, 0.12);
    color: #93c5fd;
}

.docs-main {
    min-width: 0;
    padding: 32px 24px 56px;
}

.docs-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
}

.docs-heading span {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
}

.docs-heading h1 {
    margin: 6px 0 0;
    font-size: 32px;
    line-height: 1.15;
}

.docs-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 0;
}

.docs-tile {
    min-height: 208px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.docs-tile:hover,
.docs-tile:focus,
.docs-tile.active {
    border-color: rgba(74, 163, 255, 0.78);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
    outline: none;
}

.docs-tile-icon {
    margin-bottom: 28px;
    font-size: 34px;
    line-height: 1;
}

.docs-tile h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.docs-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.docs-preview {
    margin-top: 24px;
}

.docs-preview:empty {
    display: none;
}

.viewer-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.64);
}

.viewer-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
}

.viewer-tabs button {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.4);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.viewer-tabs button.active {
    color: #ffffff;
    border-color: rgba(74, 163, 255, 0.55);
    background: rgba(37, 99, 235, 0.22);
}

.viewer-frame {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    min-height: 620px;
    border: 0;
    background: #0f172a;
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: #06111e;
    color: var(--faint);
    font-size: 14px;
}

@media (max-width: 980px) {
    .nav-shell,
    .section-head,
    .viewer-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-shell {
        padding: 14px 0;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-grid,
    .doc-band,
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

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

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

    .hero-subtitle {
        font-size: 24px;
    }

    .grid-3,
    .grid-4,
    .product-grid,
    .contact-list,
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 32px, 1220px);
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        padding: 42px 0;
    }

    .hero-title,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .grid-3,
    .grid-4,
    .product-grid,
    .docs-grid,
    .docs-nav,
    .contact-list,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .btn {
        width: 100%;
    }
}
