:root {
    color-scheme: dark;
    --article-bg: #020a12;
    --article-panel: #061522;
    --article-panel-strong: #082033;
    --article-line: rgba(0, 176, 240, 0.28);
    --article-blue: #00b8f4;
    --article-blue-soft: #77d9f7;
    --article-text: #f4f8fb;
    --article-muted: #95a9b9;
    --article-max: 1500px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--article-bg);
    scroll-behavior: smooth;
}

body.article-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    min-width: 320px;
    color: var(--article-text);
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 142, 204, 0.12), transparent 30%),
        linear-gradient(180deg, #020a12 0%, #030d16 48%, #020911 100%);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.article-skip-link {
    position: fixed;
    left: 24px;
    top: -80px;
    z-index: 100;
    padding: 10px 16px;
    color: #00111b;
    background: var(--article-blue);
}

.article-skip-link:focus {
    top: 20px;
}

.article-header,
.article-breadcrumb,
.article-page main,
.article-footer {
    width: min(calc(100% - 64px), var(--article-max));
    margin-inline: auto;
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 158px;
    border-bottom: 1px solid var(--article-line);
}

.article-brand {
    display: block;
    width: 174px;
}

.article-brand img,
.article-footer img {
    width: 100%;
    height: auto;
}

.article-home-link,
.article-read-link,
.article-ktos-entry > a,
.article-footer > a {
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.article-home-link {
    font-size: 15px;
    color: #e8f7fc;
}

.article-home-link:hover,
.article-home-link:focus-visible,
.article-read-link:hover,
.article-read-link:focus-visible,
.article-footer > a:hover,
.article-footer > a:focus-visible {
    color: var(--article-blue);
}

.article-breadcrumb {
    padding-block: 22px;
    color: var(--article-muted);
    font-size: 14px;
}

.article-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #3f6175;
}

.article-breadcrumb a {
    text-decoration: none;
}

.article-page main {
    flex: 1 0 auto;
    padding-bottom: 100px;
}

.article-page--archive main {
    padding-bottom: 0;
}

.article-page--archive .article-header {
    min-height: 92px;
}

.article-page--archive .article-brand {
    width: 138px;
}

.article-archive__hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 228px;
    padding: 34px 0 30px;
    text-align: center;
}

.article-eyebrow {
    margin: 0 0 18px;
    color: var(--article-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.article-archive__hero h1,
.article-detail__header h1 {
    margin: 0;
    font-size: clamp(44px, 5.1vw, 86px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.article-archive__hero h1 {
    color: var(--article-blue);
    font-size: clamp(30px, 2.3vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.article-archive__hero > p:last-child {
    max-width: 660px;
    margin: 12px auto 0;
    color: #b7c6d1;
    font-size: 15px;
}

.article-categories {
    display: flex;
    align-items: center;
    gap: 34px;
    border-bottom: 1px solid var(--article-line);
}

.article-categories a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    color: #d4e0e8;
    font-size: 14px;
    text-decoration: none;
    transition: color 160ms ease;
}

.article-categories a:hover,
.article-categories a:focus-visible,
.article-categories a[aria-current="page"] {
    color: var(--article-blue);
}

.article-categories a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--article-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.article-categories a:hover::after,
.article-categories a:focus-visible::after,
.article-categories a[aria-current="page"]::after {
    transform: scaleX(1);
}

.article-archive {
    min-height: 0;
}

.article-archive__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    border-bottom: 1px solid var(--article-line);
}

.article-archive__heading h2,
.article-archive__heading p {
    margin: 0;
}

.article-archive__heading h2 {
    font-size: 18px;
    font-weight: 600;
}

.article-archive__heading p {
    color: #a8bbc8;
    font-size: 13px;
}

.article-archive__heading strong {
    color: var(--article-blue);
    font-weight: 600;
}

.article-archive__item {
    display: grid;
    grid-template-areas: "cover copy";
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding-block: 28px;
    border-bottom: 1px solid var(--article-line);
}

.article-archive__date {
    display: none;
}

.article-archive__date time {
    display: block;
    color: #dce9f0;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.article-archive__date span,
.article-archive__category {
    color: var(--article-blue);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.article-archive__date span {
    display: block;
    margin-top: 10px;
}

.article-archive__category {
    display: block;
    margin: 0 0 6px;
}

.article-archive__copy {
    grid-area: copy;
}

.article-archive__copy h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.45;
}

.article-archive__copy h2 a {
    text-decoration: none;
}

.article-archive__copy h2 a:hover,
.article-archive__copy h2 a:focus-visible {
    color: var(--article-blue);
}

.article-archive__summary {
    max-width: 800px;
    margin: 8px 0 9px;
    color: #9fb1be;
    font-size: 14px;
    line-height: 1.7;
}

.article-read-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--article-blue-soft);
    font-size: 13px;
}

.article-archive__cover {
    grid-area: cover;
    display: block;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border: 1px solid var(--article-line);
    background: var(--article-panel);
}

.article-archive__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.article-archive__cover:hover img {
    transform: scale(1.025);
}

.article-archive__cover--text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--article-blue);
    text-decoration: none;
    background:
        linear-gradient(135deg, transparent 55%, rgba(0, 184, 244, 0.12)),
        var(--article-panel);
}

.article-archive__cover--text span {
    order: 2;
    margin-top: 9px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.article-archive__cover--text strong {
    order: 1;
    color: var(--article-blue);
    font-size: 32px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.article-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 38px 24px;
    text-align: center;
    border-bottom: 1px solid var(--article-line);
}

.article-empty > span {
    color: var(--article-blue);
    font-size: 30px;
    font-weight: 200;
}

.article-empty h2 {
    margin: 5px 0 3px;
    font-size: 18px;
}

.article-empty p {
    margin: 0;
    color: var(--article-muted);
    font-size: 13px;
}

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 0 8px;
}

.article-pagination a,
.article-pagination span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--article-line);
    color: var(--article-text);
    font-size: 13px;
    text-decoration: none;
}

.article-pagination__direction {
    min-width: 74px;
}

.article-pagination .article-pagination__current {
    min-width: 42px;
    padding: 0;
    color: #00111b;
    background: var(--article-blue);
    border-color: var(--article-blue);
}

.article-pagination .is-disabled {
    color: #66808f;
    cursor: not-allowed;
}

.article-ktos-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    min-height: 144px;
    padding: 30px 0;
    border-top: 1px solid var(--article-line);
}

.article-ktos-entry h2 {
    margin: 0;
    color: var(--article-blue);
    font-size: 20px;
}

.article-ktos-entry div > p:last-child {
    margin: 6px 0 0;
    color: var(--article-muted);
    font-size: 13px;
}

.article-ktos-entry > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 164px;
    min-height: 50px;
    padding: 10px 18px;
    color: var(--article-blue);
    border: 1px solid var(--article-blue);
    font-size: 13px;
}

.article-ktos-entry > a:hover,
.article-ktos-entry > a:focus-visible {
    color: #00111b;
    background: var(--article-blue);
    transform: translateY(-2px);
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 210px;
    padding-block: 36px;
    border-top: 1px solid var(--article-line);
}

.article-footer div {
    display: flex;
    align-items: center;
    gap: 28px;
}

.article-footer img {
    width: 146px;
}

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

.article-page--archive .article-footer {
    justify-content: center;
    width: 100%;
    min-height: 82px;
    max-width: none;
    margin: 0;
    padding: 20px 32px;
    text-align: center;
    background: #061725;
    border-top: 0;
}

.article-page--archive .article-footer p {
    margin: 0;
    color: #78a8c2;
    font-size: 14px;
}

.article-detail-page .article-header {
    width: 100%;
    min-height: 108px;
    max-width: none;
    margin: 0;
    padding-inline: max(32px, calc((100% - 1680px) / 2));
}

.article-detail-page .article-brand {
    width: 132px;
}

.article-detail-page .article-breadcrumb,
.article-detail {
    max-width: 860px;
}

.article-detail-page .article-breadcrumb {
    padding: 40px 0 18px;
    font-size: 13px;
}

.article-detail-page main {
    padding-bottom: 70px;
}

.article-detail__header {
    max-width: none;
    margin: 0;
    padding: 10px 0 44px;
    text-align: left;
}

.article-detail__header h1 {
    max-width: none;
    margin: 0;
    color: var(--article-blue);
    font-size: clamp(30px, 2vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 14px;
    margin: 18px 0 0;
    color: var(--article-muted);
    font-size: 13px;
    letter-spacing: 0;
}

.article-detail__meta > *:not(:last-child)::after {
    margin-left: 14px;
    color: #355568;
    content: "·";
}

.article-detail__category {
    color: var(--article-blue);
}

.article-detail__summary {
    max-width: none;
    margin: 18px 0 0;
    padding: 18px 24px;
    color: #b8c8d3;
    background: #0a2638;
    border-left: 2px solid var(--article-blue);
    font-size: 16px;
    line-height: 1.8;
}

.article-detail__summary strong {
    color: #eef8fc;
    font-weight: 600;
}

.article-detail__cover {
    margin: 0 0 36px;
    border: 1px solid var(--article-line);
}

.article-detail__cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-detail__body {
    max-width: none;
    margin: 0;
    color: #dce5eb;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.article-detail__body h2 {
    color: var(--article-blue);
    line-height: 1.4;
}

.article-detail__body h3 {
    color: #dce5eb;
    line-height: 1.4;
}

.article-detail__body > :first-child {
    margin-top: 0;
}

.article-detail__body h2 {
    margin: 2.1em 0 0.8em;
    font-size: 26px;
}

.article-detail__body h3 {
    margin: 1.7em 0 0.8em;
    font-size: 21px;
}

.article-detail__body p,
.article-detail__body ul,
.article-detail__body ol,
.article-detail__body blockquote {
    margin: 1.2em 0;
}

.article-detail__body a {
    color: var(--article-blue-soft);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.article-detail__body figure {
    margin: 2.2em 0;
}

.article-detail__body img {
    height: auto;
    margin: 2em auto;
}

.article-detail__body figure img {
    margin: 0 auto;
}

.article-detail__body figcaption {
    margin-top: 10px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.article-detail__body blockquote {
    padding: 12px 18px;
    color: #a9bdc9;
    background: #071c2a;
    border-left: 2px solid var(--article-blue);
}

.article-detail__body table {
    display: block;
    width: 100%;
    margin: 1.8em 0;
    overflow-x: auto;
    border-collapse: collapse;
    white-space: nowrap;
}

.article-detail__body th,
.article-detail__body td {
    min-width: 140px;
    padding: 9px 12px;
    border: 1px solid var(--article-line);
    font-size: 14px;
    text-align: left;
}

.article-detail__body th {
    color: #fff;
    background: var(--article-panel-strong);
}

.article-detail__body pre {
    margin: 2em 0;
    padding: 20px 22px;
    overflow-x: auto;
    color: #d9f4ff;
    background: #01070d;
    border: 1px solid var(--article-line);
    font-size: 14px;
    line-height: 1.75;
}

.article-detail__body :not(pre) > code {
    padding: 0.12em 0.4em;
    color: var(--article-blue-soft);
    background: var(--article-panel-strong);
}

.article-detail__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 54px;
    background: transparent;
}

.article-detail__navigation.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.article-detail__navigation.is-single .is-next {
    align-items: flex-end;
    text-align: right;
}

.article-detail__navigation a {
    display: flex;
    flex-direction: column;
    min-height: 110px;
    padding: 20px 22px;
    text-decoration: none;
    background: var(--article-panel);
    border: 1px solid var(--article-line);
}

.article-detail__navigation a:hover,
.article-detail__navigation a:focus-visible {
    background: var(--article-panel-strong);
}

.article-detail__navigation span {
    margin-bottom: 8px;
    color: var(--article-muted);
    font-size: 12px;
}

.article-detail__navigation strong {
    font-size: 15px;
    line-height: 1.6;
}

.article-related {
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    gap: 42px;
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid var(--article-line);
}

.article-related h2 {
    margin: 0;
    color: var(--article-blue);
    font-size: 24px;
}

.article-related ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-related li {
    border-bottom: 1px solid var(--article-line);
}

.article-related li a {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 68px;
    text-decoration: none;
}

.article-related time {
    color: var(--article-muted);
    font-size: 13px;
}

.article-related b {
    color: var(--article-blue);
}

.article-detail__back-link {
    display: inline-flex;
    margin-top: 24px;
    color: var(--article-blue);
    font-size: 13px;
    text-decoration: none;
}

.article-detail__back-link:hover,
.article-detail__back-link:focus-visible {
    color: #9be8ff;
}

.article-detail-page .article-footer {
    justify-content: center;
    width: 100%;
    min-height: 82px;
    max-width: none;
    margin: 0;
    padding: 20px 32px;
    text-align: center;
    background: #061725;
    border-top: 0;
}

.article-detail-page .article-footer p {
    margin: 0;
    color: #78a8c2;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .article-archive__item {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .article-header,
    .article-breadcrumb,
    .article-page main,
    .article-footer {
        width: min(calc(100% - 36px), var(--article-max));
    }

    .article-header {
        min-height: 112px;
    }

    .article-page--archive .article-header {
        min-height: 82px;
    }

    .article-detail-page .article-header {
        width: 100%;
        min-height: 82px;
        padding-inline: 18px;
    }

    .article-brand {
        width: 132px;
    }

    .article-page--archive .article-brand {
        width: 118px;
    }

    .article-detail-page .article-brand {
        width: 118px;
    }

    .article-detail-page .article-breadcrumb {
        padding: 26px 0 14px;
    }

    .article-home-link {
        font-size: 13px;
    }

    .article-archive__hero {
        display: block;
        min-height: 0;
        padding: 30px 0 24px;
    }

    .article-detail__header h1 {
        font-size: 28px;
    }

    .article-archive__hero h1 {
        font-size: 30px;
    }

    .article-archive__hero > p:last-child {
        font-size: 14px;
    }

    .article-categories {
        gap: 24px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .article-categories::-webkit-scrollbar {
        display: none;
    }

    .article-categories a {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0;
        font-size: 13px;
    }

    .article-archive__heading {
        min-height: 60px;
    }

    .article-archive__heading h2 {
        font-size: 17px;
    }

    .article-archive__item {
        grid-template-areas:
            "cover"
            "copy";
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 26px;
    }

    .article-archive__date {
        display: none;
    }

    .article-archive__category {
        display: block;
    }

    .article-archive__cover {
        width: 100%;
    }

    .article-archive__copy h2 {
        font-size: 19px;
    }

    .article-pagination {
        gap: 8px;
        padding-top: 22px;
    }

    .article-ktos-entry,
    .article-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-footer {
        justify-content: center;
    }

    .article-page--archive .article-footer {
        min-height: 76px;
        padding: 18px;
    }

    .article-footer div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .article-detail__header {
        padding: 6px 0 28px;
        text-align: left;
    }

    .article-detail__meta {
        justify-content: flex-start;
    }

    .article-detail__summary {
        padding: 14px 16px;
        font-size: 14px;
    }

    .article-detail__body {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-detail__body h2 {
        font-size: 22px;
    }

    .article-detail__body h3 {
        font-size: 17px;
    }

    .article-detail__navigation,
    .article-related {
        grid-template-columns: 1fr;
    }

    .article-detail__navigation {
        gap: 10px;
    }

    .article-detail__navigation a {
        min-height: 96px;
        padding: 18px;
    }

    .article-related {
        gap: 24px;
    }

    .article-related li a {
        grid-template-columns: 92px minmax(0, 1fr) auto;
        gap: 14px;
    }
}
