/* SensLink / 知芯半导体: web palette derived from the supplied logo. */
:root {
    color-scheme: light;
    --navy: #0f205a;
    --brand-blue: #2e6be6;
    --royal-blue: #193591;
    --sky-blue: #7fb0f2;
    --bg: #fff;
    --panel: #f5f8ff;
    --ink: var(--navy);
    --muted: #425375;
    --line: #d9e2f3;
    --control-line: #788cae;
    --accent: #2457c4;
    --paper-shadow: #0f205a21;
}

::selection {
    background: #d7e7ff;
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--brand-blue);
}

.mast {
    background: #fffffffa;
    box-shadow: 0 3px 16px #0f205a0a;
}
.brand-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: min(39vw,205px);
    object-fit: contain;
    object-position: left center;
}
.foot .brand {
    display: inline-flex;
    max-width: 100%;
    padding: 9px 12px;
    margin-block-end: 10px;
    border-radius: 8px;
    background: #fff;
}
.foot .brand-logo { height: 36px; max-width: 100%; }
@media(max-width: 830px) {
    .mast .brand-logo { height: 34px; }
}
@media(max-width: 390px) {
    .mast .bar { gap: 8px; }
    .mast .brand-logo { height: 30px; }
    .mast .menu { padding-inline: 9px; }
    .mast .lang { padding-inline: 8px; }
}

.nav summary::after,
.brand b {
    color: var(--brand-blue);
}

.drop {
    background: var(--bg);
    box-shadow: 0 16px 40px var(--paper-shadow);
}

.drop a {
    border-radius: 4px;
}

.drop a:hover,
.drop a:focus-visible,
.lang:hover {
    background: var(--panel);
}

.hero,
.foot {
    color-scheme: dark;
    --ink: #fff;
    --muted: #c6d6f5;
    --line: #46639d;
    --accent: var(--sky-blue);
    color: var(--ink);
}

.hero {
    background: radial-gradient(ellipse at 78% 48%, var(--royal-blue), var(--navy) 55%, #091536 100%);
}

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

.hero .eyebrow,
.hero .eyebrow:hover,
.foot .brand b {
    color: var(--sky-blue);
}

.signal defs stop:nth-child(1) { stop-color: #133270; }
.signal defs stop:nth-child(2) { stop-color: #97c8ff; }
.signal defs stop:nth-child(3) { stop-color: #c1dafb; }
.signal circle { stroke: var(--sky-blue); }

.section.alt,
.arch .rows .row:nth-child(even) {
    background: var(--panel);
}

.card,
.pane {
    background: linear-gradient(145deg, #fff, var(--panel));
}

.card:hover,
.card:focus-visible {
    border-color: var(--brand-blue);
    background: #edf4ff;
}

.art-strip {
    background: radial-gradient(ellipse at 60% 50%, var(--royal-blue), var(--navy) 73%);
}

.button,
button {
    background: var(--brand-blue);
    color: #fff;
}

.button:hover,
button:hover {
    background: var(--royal-blue);
    color: #fff;
}

.button.ghost,
.top {
    background: var(--bg);
    border-color: var(--control-line);
    color: var(--accent);
}

.button.ghost:hover,
.top:hover {
    background: var(--panel);
    color: var(--navy);
}

.hero .button.ghost {
    background: transparent;
    border-color: var(--sky-blue);
    color: #fff;
}

.hero .button.ghost:hover {
    background: var(--royal-blue);
}

button:disabled {
    background: #e7edf8;
    color: #465a80;
    cursor: not-allowed;
}

.toolbar input,
.toolbar select,
.form input:not([type=checkbox]),
.form select,
.form textarea {
    background: var(--bg);
    border-color: var(--control-line);
    color: var(--navy);
}

.form input[type=checkbox] {
    accent-color: var(--brand-blue);
}

.form input[type=file]::file-selector-button {
    background: var(--panel);
    border: 1px solid var(--control-line);
    border-radius: 4px;
    color: var(--navy);
    padding: 2px 8px;
    margin-inline-end: 8px;
}

.tag {
    background: #e6efff;
    color: var(--royal-blue);
}

.tag:hover {
    background: #d6e6ff;
    color: var(--navy);
}

.foot {
    background: #091536;
}

.cookie,
dialog {
    background: var(--bg);
    border-color: var(--line);
    box-shadow: 0 12px 42px var(--paper-shadow);
    color: var(--navy);
}

dialog::backdrop {
    background: #091536b8;
}

@media (max-width: 830px) {
    .nav {
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
}

.cloud-showcase {
    background: radial-gradient(ellipse at 10% 2%, #e8f0fd 0, #f5f8ff 48%, #fff 98%);
}

.cloud-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(20px, 5vw, 72px);
    margin-block-end: clamp(28px, 4vw, 48px);
}

.cloud-heading h2 {
    font-size: clamp(34px, 5vw, 70px);
    margin-block-end: 0;
    text-wrap: balance;
}

.cloud-heading h2 span {
    display: block;
    color: var(--accent);
}

.cloud-intro {
    border-inline-start: 2px solid var(--brand-blue);
    padding-inline-start: clamp(14px, 2vw, 28px);
}

.cloud-intro p {
    max-width: 38ch;
    margin-block-end: 16px;
}

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

.cloud-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px #0f205a0b;
    text-decoration: none;
}

.cloud-product:hover,
.cloud-product:focus-visible {
    border-color: var(--brand-blue);
    color: var(--navy);
}

.cloud-product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #fff;
    border-radius: 13px 13px 0 0;
}

.cloud-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cloud-illustration-label {
    position: absolute;
    inset-inline-end: 12px;
    inset-block-end: 8px;
    background: #fffffff0;
    border-radius: 4px;
    padding-inline: 5px;
    color: var(--muted);
    font-size: .75rem;
}

.cloud-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px clamp(18px, 2vw, 30px) 26px;
    border-block-start: 1px solid var(--line);
}

.cloud-product-action {
    margin-block-start: auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .25em;
}

@media (max-width: 720px) {
    .cloud-heading,
    .cloud-products {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lx-picture {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    min-width: 0;
    border-radius: 10px;
    background: var(--panel);
}
.lx-picture img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.lx-picture figcaption {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    border-radius: 4px;
    padding: 3px 7px;
    background: #fffffff2;
    color: var(--navy);
    font-size: .75rem;
    line-height: 1.3;
}
.cloud-product-media.lx-picture { border-radius: 13px 13px 0 0; background: #fff; }
.cloud-product-media.lx-picture img { object-fit: contain; }
.lx-card-picture, .lx-archive-picture { margin-block-end: 12px; }
.lx-archive-picture { max-width: 230px; }
.lx-wide-picture { max-width: 780px; margin-block: 18px; }
.lx-pictures {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
    gap: 16px;
    margin-block: 22px;
}
.lx-icon-pictures {
    grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
}
.lx-icon-pictures .lx-picture img { aspect-ratio: 1; object-fit: contain; }
.lx-icon-pictures .lx-picture { max-width: 150px; }
.lx-platform-pictures {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: clamp(10px,1.6vw,20px);
}
.lx-platform-pictures .lx-picture img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
}
@media(max-width: 760px) {
    .lx-platform-pictures { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.lx-gallery-track {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    max-width: 780px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 12px;
}
.lx-gallery-track > .lx-picture { scroll-snap-align: start; }
.lx-gallery-buttons { margin-block-start: 12px; }
.hero.with-picture .wrap { isolation: isolate; }
.hero.with-picture .wrap > :is(h1,p) { max-width: min(52%, 24ch); }
.hero.with-picture h1 { font-size: clamp(38px,6vw,88px); }
.lx-hero-picture {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 42%;
    border: 1px solid #9dbdfc;
}
.lx-hero-picture img {
    object-fit: contain;
    background: #fff;
}

.lx-news-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px 24px;
    margin-block: 32px 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.lx-news-tags {
    min-width: 0;
}

.lx-news-tag-label {
    display: block;
    margin-block-end: 8px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 650;
}

.lx-news-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-news-tags .tag {
    margin: 0;
    overflow-wrap: anywhere;
}

.lx-news-source {
    min-height: 44px;
    align-self: end;
}

@media(max-width: 600px) {
    .lx-news-tools { padding: 14px; }
    .lx-news-tags { flex-basis: 100%; }
    .lx-news-source { align-self: start; }
}

@media(max-width: 720px) {
    .hero.with-picture .wrap > :is(h1,p) { max-width: 100%; }
    .lx-hero-picture {
        position: relative;
        inset: auto;
        transform: none;
        margin-block-start: 22px;
        width: 100%;
    }
}
