/* ==================================================
   颜色系统
   ================================================== */

:root {

    --white: #ffffff;

    --background: #f3f9fd;

    --blue-light: #dff1ff;
    --blue: #a7d7f5;
    --blue-strong: #62b0df;

    --red: #e74c61;
    --red-dark: #c93349;

    --text: #19364b;
    --muted: #668197;

    --line: #abd3eb;

}


/* ==================================================
   基础
   ================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    color: var(--text);

    background:
        linear-gradient(
            rgba(92,169,220,.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(92,169,220,.045) 1px,
            transparent 1px
        ),
        var(--background);

    background-size:
        28px 28px;

    font-family:
        "Microsoft YaHei",
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;

}


*,
*::before,
*::after {

    border-radius: 0 !important;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea {

    font-family: inherit;

}


/* ==================================================
   开场页面
   ================================================== */

.landing {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100dvh;

    overflow: hidden;

    background: #edf7fd;

    z-index: 100;

    transition:
        opacity .6s ease,
        transform .7s ease;

}


/* 背景图片 */

.landing-background {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: 65% center;

    z-index: 0;

}


/* 左侧保护层 */

.landing-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,

            rgba(248,252,255,.96)
            0%,

            rgba(248,252,255,.85)
            22%,

            rgba(248,252,255,.48)
            36%,

            rgba(248,252,255,.10)
            51%,

            rgba(248,252,255,0)
            66%
        );

}


/* 左侧 UI */

.landing-ui {

    position: absolute;

    z-index: 3;

    left: clamp(
        18px,
        3vw,
        48px
    );

    top: clamp(
        18px,
        3vh,
        36px
    );

    bottom: clamp(
        18px,
        3vh,
        36px
    );

    width: min(
        38vw,
        500px
    );

    display: grid;

    grid-template-rows:
        1.3fr
        1fr
        1fr
        .85fr;

    gap: clamp(
        8px,
        1vw,
        14px
    );

}


/* UI 方块 */

.ui-card {

    position: relative;

    min-height: 0;

    padding: clamp(
        16px,
        1.6vw,
        25px
    );

    background:
        rgba(
            255,
            255,
            255,
            .73
        );

    border:
        2px solid
        rgba(
            155,
            207,
            242,
            .9
        );

    box-shadow:
        8px 8px 0
        rgba(
            92,
            169,
            220,
            .12
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    clip-path:
        polygon(
            0 0,
            calc(100% - 20px) 0,
            100% 20px,
            100% 100%,
            20px 100%,
            0 calc(100% - 20px)
        );

}


.ui-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    bottom: 0;

    width: 6px;

    background:
        var(--blue-strong);

}


.identity-card::before,
.system-card::before {

    background:
        var(--red);

}


/* 标签 */

.ui-label {

    color:
        var(--muted);

    font-family:
        Consolas,
        monospace;

    font-size:
        clamp(
            9px,
            .7vw,
            12px
        );

    letter-spacing:
        .14em;

    font-weight:
        700;

}


/* 标题 */

.ui-card h1 {

    margin:
        12px 0 8px;

    color:
        var(--text);

    font-size:
        clamp(
            2rem,
            3.2vw,
            3.5rem
        );

    line-height:
        .95;

    letter-spacing:
        -.055em;

    font-weight:
        900;

}


.ui-card h1 span {

    color:
        var(--red);

}


.ui-card h2 {

    margin:
        10px 0 8px;

    font-size:
        clamp(
            1.2rem,
            1.8vw,
            1.6rem
        );

}


.ui-card p {

    margin: 0;

    color:
        var(--muted);

    font-size:
        clamp(
            .78rem,
            .9vw,
            1rem
        );

    line-height:
        1.6;

}


/* 导航 */

.ui-navigation {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        8px;

    margin-top:
        16px;

}


.ui-navigation a {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        11px 13px;

    color:
        var(--text);

    background:
        rgba(
            223,
            241,
            255,
            .76
        );

    border:
        2px solid
        var(--blue);

    font-family:
        Consolas,
        monospace;

    font-size:
        11px;

    font-weight:
        800;

}


.ui-navigation a:hover {

    color:
        white;

    background:
        var(--red);

    border-color:
        var(--red);

}


.ui-navigation span {

    color:
        var(--red);

}


.ui-navigation a:hover span {

    color:
        white;

}


/* 状态 */

.status {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        14px;

    color:
        var(--red);

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

    font-weight:
        900;

}


.status span {

    width:
        7px;

    height:
        7px;

    background:
        var(--red);

    box-shadow:
        0 0 0 4px
        rgba(
            231,
            76,
            97,
            .1
        );

}


/* 右上角 */

.visual-label {

    position:
        absolute;

    top:
        26px;

    right:
        30px;

    z-index:
        4;

    display:
        flex;

    gap:
        8px;

    align-items:
        center;

    color:
        rgba(
            31,
            61,
            82,
            .75
        );

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

    letter-spacing:
        .12em;

}


.visual-label span {

    width:
        8px;

    height:
        8px;

    background:
        var(--red);

}


/* ENTER */

.enter-button {

    position:
        absolute;

    right:
        clamp(
            24px,
            5vw,
            80px
        );

    bottom:
        clamp(
            22px,
            4vh,
            48px
        );

    z-index:
        5;

    padding:
        14px 25px;

    color:
        white;

    background:
        var(--red);

    border:
        2px solid
        var(--red-dark);

    font-family:
        Consolas,
        monospace;

    font-size:
        12px;

    font-weight:
        900;

    letter-spacing:
        .08em;

    cursor:
        pointer;

    box-shadow:
        8px 8px 0
        rgba(
            201,
            56,
            77,
            .16
        );

}


.enter-button span {

    margin-left:
        8px;

    font-size:
        17px;

}


/* 四角 */

.corner {

    position:
        absolute;

    z-index:
        4;

    width:
        22px;

    height:
        22px;

    border-color:
        rgba(
            28,
            73,
            101,
            .85
        );

}


.corner-tl {

    left:
        24px;

    top:
        20px;

    border-left:
        2px solid;

    border-top:
        2px solid;

}


.corner-tr {

    right:
        24px;

    top:
        20px;

    border-right:
        2px solid;

    border-top:
        2px solid;

}


.corner-bl {

    left:
        24px;

    bottom:
        20px;

    border-left:
        2px solid;

    border-bottom:
        2px solid;

}


.corner-br {

    right:
        24px;

    bottom:
        20px;

    border-right:
        2px solid;

    border-bottom:
        2px solid;

}


/* 离开动画 */

.landing-hidden {

    opacity:
        0;

    transform:
        scale(1.03);

    pointer-events:
        none;

}


/* ==================================================
   正式网站
   ================================================== */

.site {

    min-height:
        100vh;

}


/* 顶部导航 */

.site-header {

    position:
        sticky;

    top:
        0;

    z-index:
        20;

    background:
        rgba(
            255,
            255,
            255,
            .88
        );

    backdrop-filter:
        blur(14px);

    border-bottom:
        2px solid
        var(--line);

}


.header-inner {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    min-height:
        70px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

}


.brand {

    font-weight:
        900;

    letter-spacing:
        .07em;

}


.brand span {

    color:
        var(--red);

}


.site-header nav {

    display:
        flex;

    gap:
        22px;

    color:
        var(--muted);

    font-size:
        14px;

}


.site-header nav a:hover {

    color:
        var(--red);

}


/* 主体 */

main {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        auto;

}


/* ==================================================
   HERO
   ================================================== */

.hero {

    min-height:
        78vh;

    display:
        grid;

    grid-template-columns:
        1.15fr
        .85fr;

    gap:
        42px;

    align-items:
        center;

    padding:
        80px 0;

}


.eyebrow {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    color:
        var(--muted);

    font-size:
        13px;

    letter-spacing:
        .08em;

}


.eyebrow span {

    width:
        8px;

    height:
        8px;

    background:
        var(--red);

}


.hero h2 {

    margin:
        16px 0;

    font-size:
        clamp(
            3.5rem,
            9vw,
            7rem
        );

    line-height:
        .9;

    letter-spacing:
        -.06em;

}


.hero h2 span {

    color:
        var(--red);

}


.hero p {

    max-width:
        680px;

    color:
        var(--muted);

    font-size:
        18px;

}


.hero-buttons {

    display:
        flex;

    gap:
        10px;

    margin-top:
        28px;

}


.button {

    display:
        inline-block;

    padding:
        12px 18px;

    border:
        2px solid
        var(--line);

    background:
        white;

    font-weight:
        800;

}


.button-red {

    color:
        white;

    background:
        var(--red);

    border-color:
        var(--red);

}


/* 系统显示器 */

.system-display {

    padding:
        26px;

    border:
        2px solid
        var(--line);

    background:
        var(--surface-blue);

    box-shadow:
        10px 10px 0
        rgba(
            92,
            169,
            220,
            .12
        );

}


.display-header {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    font-family:
        Consolas,
        monospace;

    font-size:
        12px;

    color:
        var(--muted);

}


.display-header strong {

    display:
        grid;

    place-items:
        center;

    width:
        36px;

    height:
        36px;

    color:
        white;

    background:
        var(--red);

}


.display-screen {

    margin-top:
        30px;

    padding:
        22px;

    background:
        rgba(
            255,
            255,
            255,
            .8
        );

    border:
        2px solid
        rgba(
            92,
            169,
            220,
            .4
        );

}


.small-label {

    color:
        var(--muted);

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

}


.display-screen h3 {

    margin:
        10px 0;

}


.progress {

    height:
        7px;

    background:
        #e5f1fa;

}


.progress span {

    display:
        block;

    width:
        72%;

    height:
        100%;

    background:
        var(--blue-strong);

}


.metrics {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;

    margin-top:
        18px;

}


.metrics div {

    padding:
        12px;

    background:
        white;

    border:
        1px solid
        #d7e8f3;

}


.metrics strong,
.metrics span {

    display:
        block;

}


.metrics span {

    color:
        var(--muted);

    font-size:
        12px;

}


/* ==================================================
   内容区
   ================================================== */

.content-section {

    padding:
        90px 0;

}


.section-header {

    display:
        flex;

    align-items:
        end;

    justify-content:
        space-between;

    gap:
        30px;

    margin-bottom:
        28px;

}


.section-header > div span {

    color:
        var(--red);

    font-family:
        Consolas,
        monospace;

    font-size:
        11px;

    letter-spacing:
        .12em;

}


.section-header h2 {

    margin:
        5px 0 0;

    font-size:
        clamp(
            2rem,
            5vw,
            3.4rem
        );

}


.section-header p {

    max-width:
        480px;

    color:
        var(--muted);

}


/* 通用卡片 */

.content-card {

    padding:
        24px;

    background:
        rgba(
            255,
            255,
            255,
            .93
        );

    border:
        2px solid
        var(--line);

    box-shadow:
        8px 8px 0
        rgba(
            69,
            126,
            168,
            .08
        );

}


.card-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:
        16px;

}


.card-type {

    color:
        var(--muted);

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

    letter-spacing:
        .12em;

}


.content-card h3 {

    margin:
        10px 0 8px;

    font-size:
        1.35rem;

}


.content-card p {

    margin:
        0;

    color:
        var(--muted);

}


.content-card a {

    display:
        inline-block;

    margin-top:
        16px;

    color:
        var(--red-dark);

    font-weight:
        800;

}


/* ==================================================
   LAB
   ================================================== */

.lab-grid {

    display:
        grid;

    grid-template-columns:
        .9fr
        1.1fr;

    gap:
        18px;

}


.feature-card {

    background:
        linear-gradient(
            135deg,
            #dff2ff,
            #ffffff
        );

}


.code-box {

    margin-top:
        18px;

    padding:
        15px;

    color:
        #547085;

    background:
        #f4faff;

    border:
        1px solid
        #d5e8f5;

    font-family:
        Consolas,
        monospace;

    font-size:
        13px;

}


/* ==================================================
   KRHH
   ================================================== */

.krhh-grid {

    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        18px;

}


.krhh-panel {

    padding:
        24px;

    background:
        white;

    border:
        2px solid
        var(--line);

    box-shadow:
        8px 8px 0
        rgba(
            69,
            126,
            168,
            .08
        );

}


.muted {

    color:
        var(--muted);

    font-size:
        14px;

}


/* 文件列表 */

.file-list {

    display:
        grid;

    gap:
        9px;

    margin-top:
        18px;

}


.file-item {

    display:
        grid;

    grid-template-columns:
        1fr auto;

    gap:
        12px;

    align-items:
        center;

    padding:
        13px 14px;

    background:
        #f4faff;

    border:
        1px solid
        #c9e0f0;

}


.file-item strong,
.file-item span {

    display:
        block;

}


.file-item span {

    color:
        var(--muted);

    font-size:
        12px;

}


.small-button {

    display:
        inline-block;

    padding:
        9px 12px;

    color:
        var(--text);

    background:
        white;

    border:
        2px solid
        var(--line);

    font-family:
        Consolas,
        monospace;

    font-size:
        11px;

    font-weight:
        800;

    cursor:
        pointer;

}


.small-button:hover {

    color:
        white;

    background:
        var(--red);

    border-color:
        var(--red);

}


/* 帖子编辑器 */

.post-editor {

    display:
        grid;

    gap:
        12px;

    margin-top:
        18px;

}


.post-editor label {

    display:
        grid;

    gap:
        6px;

    color:
        var(--muted);

    font-size:
        13px;

}


.post-editor input,
.post-editor textarea {

    width:
        100%;

    padding:
        11px 12px;

    color:
        var(--text);

    background:
        #fbfdff;

    border:
        2px solid
        #c7ddeb;

    outline:
        none;

}


.post-editor input:focus,
.post-editor textarea:focus {

    border-color:
        var(--blue-strong);

}


.post-editor textarea {

    min-height:
        160px;

    resize:
        vertical;

}


.editor-buttons {

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        9px;

}


#editorStatus {

    color:
        var(--muted);

    font-size:
        12px;

}


/* 帖子预览 */

.post-preview {

    margin-top:
        18px;

    padding:
        24px;

    background:
        #fbfdff;

    border:
        2px dashed
        var(--line);

}


.preview-label {

    color:
        var(--red);

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

    letter-spacing:
        .12em;

}


.post-preview h3 {

    margin:
        10px 0;

}


#previewContent {

    margin:
        0;

    color:
        var(--muted);

    white-space:
        pre-wrap;

}


/* ==================================================
   OC
   ================================================== */

.oc-section {

    display:
        grid;

    grid-template-columns:
        1.05fr
        .95fr;

    gap:
        18px;

}


.oc-image-box {

    min-height:
        650px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    overflow:
        hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf6ff
        );

    border:
        2px solid
        var(--line);

}


.oc-image-box img {

    max-width:
        100%;

    max-height:
        100%;

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;

}


.color-grid {

    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        10px;

    margin-top:
        20px;

}


.color-grid div {

    padding:
        13px;

    border:
        2px solid
        #c4ddeb;

    background:
        #f7fbff;

}


.color-grid span {

    display:
        block;

    color:
        var(--muted);

    font-family:
        Consolas,
        monospace;

    font-size:
        10px;

}


.color-grid strong {

    display:
        block;

    margin-top:
        4px;

}


.red-text {

    color:
        var(--red);

}


/* ==================================================
   ABOUT
   ================================================== */

.about-grid {

    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        18px;

}


.about-quote {

    padding:
        28px;

    color:
        var(--text);

    background:
        #e5f4ff;

    border:
        2px solid
        var(--blue);

    font-size:
        clamp(
            1.7rem,
            3vw,
            2.8rem
        );

    line-height:
        1.2;

}


/* ==================================================
   FOOTER
   ================================================== */

footer {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        auto;

    padding:
        35px 0 50px;

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--muted);

    border-top:
        2px solid
        var(--line);

    font-family:
        Consolas,
        monospace;

    font-size:
        11px;

}


/* ==================================================
   平板
   ================================================== */

@media (
    max-width: 900px
) {

    .landing-ui {

        width:
            min(
                45vw,
                430px
            );

    }


    .card-grid {

        grid-template-columns:
            1fr;

    }


    .lab-grid,
    .krhh-grid,
    .oc-section,
    .about-grid {

        grid-template-columns:
            1fr;

    }

}


/* ==================================================
   手机
   ================================================== */

@media (
    max-width: 700px
) {

    .landing-background {

        object-position:
            72% center;

    }


    .landing-overlay {

        background:
            linear-gradient(
                180deg,
                rgba(248,252,255,.92),
                rgba(248,252,255,.45) 50%,
                rgba(248,252,255,.08)
            );

    }


    .landing-ui {

        left:
            14px;

        right:
            14px;

        top:
            14px;

        bottom:
            14px;

        width:
            auto;

        grid-template-rows:
            auto
            auto
            auto
            auto;

    }


    .visual-label {

        display:
            none;

    }


    .site-header {

        position:
            static;

    }


    .site-header nav {

        display:
            none;

    }


    .header-inner {

        width:
            calc(100% - 24px);

    }


    main {

        width:
            calc(100% - 24px);

    }


    .hero {

        grid-template-columns:
            1fr;

        padding:
            60px 0;

    }


    .hero h2 {

        font-size:
            3.4rem;

    }


    .section-header {

        display:
            block;

    }


    .section-header p {

        margin-top:
            12px;

    }


    .content-section {

        padding:
            65px 0;

    }


    .oc-image-box {

        min-height:
            520px;

    }


    footer {

        width:
            calc(100% - 24px);

        flex-direction:
            column;

    }

}
.krhh-posts {
    margin-top: 24px;
    padding: 22px;
    background: #fff;
    border: 2px solid var(--line);
    box-shadow: 8px 8px 0 rgba(69,126,168,.08);
}

.post-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.post-item:last-child {
    border-bottom: none;
}

.post-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.post-item h3 {
    margin: 0;
    font-size: 1.15rem;
}

.post-item time {
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: .72rem;
}

.post-item p {
    margin-top: 8px;
    color: var(--muted);
    white-space: pre-wrap;
}