*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: calc(var(--vh));
    background: #f0f2f5;
    color: #1e2a38;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

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

.hidden {
    display: none !important;
}

.shell-active {
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh));
}

.entry-loading {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0d1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.entry-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #1968e3;
    border-radius: 50%;
    animation: spin .8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.entry-loading .txt {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.entry-progress {
    width: 160px;
    height: 2px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.entry-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #1968e3, #4f9dff);
    border-radius: 2px;
    transition: width .2s ease;
}

.entry-go {
    display: none;
    margin-top: 16px;
    color: #4f9dff;
    font-size: 13px;
    text-decoration: underline;
}

.entry-go.visible {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.kx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e8ecf2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.kx-header-inner {
    max-width: 1080px;
    height: 54px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.kx-logo {
    flex-shrink: 0;
    margin-right: 32px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.kx-logo strong {
    color: #1968e3;
}

.kx-logo span {
    color: #111827;
}

.kx-nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.kx-nav::-webkit-scrollbar {
    display: none;
}

.kx-nav a {
    padding: 6px 12px;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.kx-nav a:hover,
.kx-nav a.on {
    color: #1968e3;
    background: #f0f5ff;
}

.kx-main {
    max-width: 1080px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.kx-article,
.kx-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.kx-article-hero {
    padding: 30px 30px 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.kx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #a7afbd;
    font-size: 13px;
    font-weight: 600;
}

.kx-breadcrumb a:hover {
    color: #1968e3;
}

.kx-category {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    margin-bottom: 18px;
    border-radius: 3px;
    color: #1968e3;
    background: #eef5ff;
    font-size: 13px;
    font-weight: 800;
}

.entry-title {
    color: #111827;
    font-size: 26px;
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: 0;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: #97a1b2;
    font-size: 14px;
    font-weight: 600;
}

.entry-meta .src {
    color: #1968e3;
}

.entry-meta .dot {
    color: #c9d1dd;
}

.kx-article-body {
    padding: 26px 30px 30px;
    border-top: 1px solid #edf1f6;
}

.entry-body {
    color: #1e2a38;
    font-size: 17px;
    line-height: 1.95;
    font-weight: 700;
}

.entry-body p {
    text-indent: 2em;
    margin-bottom: 20px;
}

.entry-body p:last-child {
    margin-bottom: 0;
}

.kx-divider {
    height: 1px;
    margin: 0 30px;
    background: #edf1f6;
}

.kx-article-footer {
    padding: 18px 30px 24px;
}

.kx-disclaimer {
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 600;
}

.kx-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kx-widget-head {
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f6;
}

.kx-widget-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.kx-widget-title::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #1968e3;
}

.entry-list {
    list-style: none;
}

.entry-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-bottom: 1px solid #f1f4f8;
    color: #3f4754;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.entry-list li:last-child {
    border-bottom: 0;
}

.entry-list li::before {
    content: attr(data-n);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    color: #1968e3;
    background: #edf4ff;
    font-size: 12px;
    font-weight: 900;
}

.kx-tags {
    padding: 14px 18px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kx-tag {
    padding: 5px 11px;
    border-radius: 4px;
    color: #606875;
    background: #f3f5f8;
    font-size: 13px;
    font-weight: 650;
}

.kx-footer {
    margin-top: 46px;
    padding: 32px 20px;
    color: #667085;
    background: #1f2937;
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

.kx-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 6px;
}

.kx-footer a:hover {
    color: #fff;
}

#frm {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 180;
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh));
    background: #fff;
}

#frm.active {
    display: block;
}

#pf,
#frm iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.decoy-hidden {
    display: none;
}

@media (max-width: 760px) {
    .kx-header-inner {
        height: 50px;
        padding: 0 14px;
    }

    .kx-logo {
        margin-right: 18px;
        font-size: 19px;
    }

    .kx-nav a {
        padding: 6px 10px;
    }

    .kx-main {
        grid-template-columns: 1fr;
        margin: 12px auto;
        padding: 0 12px;
        gap: 12px;
    }

    .kx-article,
    .kx-widget {
        border-radius: 6px;
    }

    .kx-article-hero {
        padding: 22px 18px 24px;
    }

    .kx-breadcrumb {
        margin-bottom: 18px;
    }

    .entry-title {
        font-size: 20px;
    }

    .entry-meta {
        gap: 10px;
        font-size: 13px;
    }

    .kx-article-body {
        padding: 20px 18px 24px;
    }

    .entry-body {
        font-size: 15px;
    }

    .kx-divider {
        margin: 0 18px;
    }

    .kx-article-footer {
        padding: 16px 18px 20px;
    }

    .kx-footer {
        margin-top: 28px;
        padding: 26px 14px;
    }
}

