/* =========================================================
   布局 E · 暗黑数据面板（全站深色 / LIVE 状态条 / 横滚卡带 / 数据行）
   内页共享组件通过 :root 变量整体深色化
   ========================================================= */

/* ---------- 变量与基础 ---------- */
:root {
    --c1: #a855f7;
    --c1-l: #bf81f9;
    --c1-d: #9049d4;
    --navy: #1a0b2a;
    --navy-2: #241038;
    --navy-3: #2e1546;
    --head-bg: #161b31;
    --title-c: #edf0ff;
    --head-sub: #8e97bd;
    --head-dim: #4c5478;
    --head-txt: #c0c8e8;
    --head-mask-a: rgba(8, 10, 22, .8);
    --head-mask-b: rgba(8, 10, 22, .72);
    --ink: #d5dbf3;
    --sub: #9aa3c7;
    --muted: #6a7299;
    --line: #262d4d;
    --soft: #10142a;
    --white: #171c36;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
    --container: 1260px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: #0b0e1e;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .25s ease, border-color .25s ease, background .25s ease; }
a:hover { color: var(--c1-l); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.kn-main { min-height: 40vh; }
.kn-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.kn-fade.kn-visible { opacity: 1; transform: none; }
::selection { background: var(--c1); color: #fff; }

/* ---------- 状态条 ---------- */
.ke-status {
    background: #070918;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .5px;
}
.ke-status-in { display: flex; align-items: center; gap: 18px; height: 34px; }
.ke-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ff4d6d;
    font-weight: 700;
}
.ke-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 8px #ff4d6d;
    animation: keblink 1.6s ease infinite;
}
@keyframes keblink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ke-status-date { color: var(--muted); }
.ke-status-flash {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--sub);
}
.ke-status-id { flex: none; color: var(--c1-l); }

/* ---------- 导航条 ---------- */
.ke-bar {
    background: rgba(11, 14, 30, .92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(8px);
}
.ke-bar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.ke-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.ke-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c1-d));
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, .5), 0 0 18px rgba(168, 85, 247, .4);
}
.ke-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.ke-brand-text strong { font-size: 18px; font-weight: 800; color: #edf0ff; letter-spacing: .5px; }
.ke-brand-text em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 2.2px;
    color: var(--muted);
    text-transform: uppercase;
}
.ke-brand:hover .ke-brand-text strong { color: var(--c1-l); }
.ke-nav { flex: 1; min-width: 0; }
.ke-nav-list { display: flex; align-items: center; gap: 2px; }
.ke-nav-list > li { position: relative; }
.ke-nav-list > li > a {
    display: block;
    padding: 20px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--sub);
    border-bottom: 2px solid transparent;
}
.ke-nav-list > li > a:hover { color: #fff; }
.ke-nav-list > li.active > a { color: var(--c1-l); border-bottom-color: var(--c1); }
.kn-sub {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 172px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 99;
}
.ke-nav-list > li:hover .kn-sub { opacity: 1; visibility: visible; transform: none; }
.kn-sub li a { display: block; padding: 8px 18px; font-size: 13.5px; color: var(--ink); }
.kn-sub li a:hover { background: var(--soft); color: var(--c1-l); }
.ke-search {
    flex: none;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--soft);
    transition: border-color .25s ease;
}
.ke-search:focus-within { border-color: var(--c1); }
.ke-search input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 12px;
}
.ke-search input::placeholder { color: var(--muted); }
.ke-search button {
    flex: none;
    border: 0;
    background: var(--c1);
    color: #fff;
    font-size: 15px;
    padding: 0 14px;
}
.ke-search button:hover { background: var(--c1-d); }
.ke-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--soft);
    margin-left: auto;
}
.ke-menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); }

/* ---------- 焦点 + 实时热点 ---------- */
.ke-top { padding: 26px 0 6px; }
.ke-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
.ke-feat {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft);
}
.ke-feat-thumb { display: block; aspect-ratio: 16 / 8.2; }
.ke-feat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ke-feat:hover .ke-feat-thumb img { transform: scale(1.04); }
.ke-feat-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: var(--c1);
    padding: 4px 12px;
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(168, 85, 247, .55);
}
.ke-feat-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 70px 22px 18px;
    background: linear-gradient(180deg, transparent, rgba(5, 7, 16, .95));
}
.ke-feat-cap strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ke-feat:hover .ke-feat-cap strong { color: var(--c1-l); }
.ke-feat-cap em { font-style: normal; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .58); }
.ke-feat-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ke-feat-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    transition: border-color .25s ease;
}
.ke-feat-mini:hover { border-color: var(--c1); }
.ke-feat-mini-thumb {
    flex: none;
    width: 108px;
    aspect-ratio: 16 / 10;
    border-radius: 3px;
    overflow: hidden;
    background: var(--soft);
}
.ke-feat-mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ke-feat-mini:hover .ke-feat-mini-thumb img { transform: scale(1.06); }
.ke-feat-mini-body { min-width: 0; }
.ke-feat-mini-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ke-feat-mini:hover .ke-feat-mini-body strong { color: var(--c1-l); }
.ke-feat-mini-body em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ke-trend {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.ke-trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.ke-trend-head h2 { font-size: 16px; font-weight: 800; color: #edf0ff; letter-spacing: 2px; }
.ke-trend-head span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--c1-l); }
.ke-trend-list { flex: 1; display: flex; flex-direction: column; }
.ke-trend-list li { border-bottom: 1px solid var(--line); flex: 1; }
.ke-trend-list li:last-child { border-bottom: 0; }
.ke-trend-list li a {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 100%;
    padding: 9px 16px;
}
.ke-trend-no {
    flex: none;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c1-l);
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(168, 85, 247, .4);
    border-radius: 3px;
}
.ke-trend-list li:nth-child(-n+3) .ke-trend-no { color: #fff; background: var(--c1); box-shadow: 0 0 10px rgba(168, 85, 247, .5); }
.ke-trend-body { min-width: 0; flex: 1; }
.ke-trend-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ke-trend-list li a:hover .ke-trend-body strong { color: var(--c1-l); }
.ke-trend-body em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ke-trend-views {
    flex: none;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--c1-l);
    font-variant-numeric: tabular-nums;
}

/* ---------- 栏目卡带 ---------- */
.ke-stripzone { padding: 30px 0 8px; }
.ke-strip-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}
.ke-strip-head h2 { font-size: 21px; font-weight: 800; color: #edf0ff; letter-spacing: 2px; }
.ke-strip-head span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ke-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--c1) var(--soft);
}
.ke-strip::-webkit-scrollbar { height: 6px; }
.ke-strip::-webkit-scrollbar-track { background: var(--soft); border-radius: 3px; }
.ke-strip::-webkit-scrollbar-thumb { background: var(--c1); border-radius: 3px; }
.ke-strip-card {
    position: relative;
    flex: none;
    width: 272px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    transition: transform .25s ease, border-color .25s ease;
    overflow: hidden;
}
.ke-strip-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c1);
    box-shadow: 0 0 12px rgba(168, 85, 247, .6);
}
.ke-strip-card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, .6); color: inherit; }
.ke-strip-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--c1-l); }
.ke-strip-card strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #edf0ff;
    margin-top: 6px;
    letter-spacing: 1px;
}
.ke-strip-card em {
    display: block;
    font-style: normal;
    font-size: 12.5px;
    color: var(--sub);
    margin-top: 8px;
    line-height: 1.55;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ke-strip-arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 15px;
    color: var(--c1-l);
}

/* ---------- 最新数据行 ---------- */
.ke-datazone { padding: 26px 0 10px; }
.ke-data-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ke-data-head h2 { font-size: 21px; font-weight: 800; color: #edf0ff; letter-spacing: 2px; }
.ke-data-head a { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--c1-l); }
.ke-data { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.ke-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: border-color .25s ease;
}
.ke-row:hover { border-color: rgba(168, 85, 247, .55); }
.ke-row-time {
    flex: none;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.ke-row-main { flex: 1; min-width: 0; }
.ke-row-main h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.ke-row-main h3 a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.ke-row-main h3 a:hover { color: var(--c1-l); }
.ke-row-main p {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ke-row-thumb {
    flex: none;
    width: 128px;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    overflow: hidden;
    background: var(--soft);
}
.ke-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ke-row:hover .ke-row-thumb img { transform: scale(1.06); }
.ke-row-views {
    flex: none;
    text-align: right;
    font-family: var(--mono);
}
.ke-row-views em {
    display: block;
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
    color: var(--c1-l);
    font-variant-numeric: tabular-nums;
}
.ke-row-views i { font-style: normal; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.ke-row-go {
    flex: none;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--c1-l);
    font-size: 15px;
    transition: all .25s ease;
}
.ke-row-go:hover { background: var(--c1); border-color: var(--c1); color: #fff; }

/* ---------- CTA ---------- */
.ke-cta { padding: 14px 0 44px; }
.ke-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(168, 85, 247, .16), transparent 45%),
        var(--white);
    border: 1px solid rgba(168, 85, 247, .45);
    border-radius: var(--radius);
    padding: 30px 34px;
    box-shadow: 0 0 34px rgba(168, 85, 247, .12);
}
.ke-cta-title { font-size: 21px; font-weight: 800; color: #edf0ff; margin-bottom: 6px; letter-spacing: 1px; }
.ke-cta-text p { font-size: 13.5px; color: var(--sub); max-width: 560px; }
.ke-cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--c1), var(--c1-d));
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(168, 85, 247, .45);
    transition: all .25s ease;
}
.ke-cta-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 30px rgba(168, 85, 247, .6); }

/* ---------- 页脚：终端感 ---------- */
.ke-footer {
    background: #070918;
    border-top: 1px solid var(--line);
    color: var(--sub);
    margin-top: auto;
    font-size: 13.5px;
}
.ke-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 34px;
    padding: 40px 0 26px;
}
.ke-footer .ke-brand-text strong { color: #edf0ff; }
.ke-footer-brand p { font-size: 12.5px; margin-top: 14px; color: var(--muted); line-height: 1.85; }
.ke-footer-title {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c1-l);
    margin-bottom: 15px;
}
.ke-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ke-footer-links a { font-size: 13px; color: var(--sub); }
.ke-footer-links a:hover { color: var(--c1-l); }
.ke-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ke-tags a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--sub);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 3px 10px;
    transition: all .25s ease;
}
.ke-tags a:hover { color: #fff; background: var(--c1); border-color: var(--c1); }
.ke-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
}
.ke-links-label { color: var(--muted); letter-spacing: 1px; }
.ke-links-row a { color: var(--sub); }
.ke-links-row a:hover { color: var(--c1-l); }
.ke-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0 22px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}
.ke-footer-bottom a { color: var(--head-txt); }
.ke-footer-bottom a:hover { color: var(--c1-l); }
.ke-footer-slogan { color: var(--head-dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .ke-top-grid { grid-template-columns: 1fr; }
    .ke-trend-list li a { padding: 10px 16px; }
}
@media (max-width: 992px) {
    .ke-bar-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
    .ke-nav { order: 4; flex-basis: 100%; display: none; border-top: 1px solid var(--line); }
    body.kn-open .ke-nav { display: block; }
    .ke-nav-list { display: block; }
    .ke-nav-list > li > a { padding: 12px 6px; border-bottom-color: transparent; }
    .ke-nav-list > li.active > a { border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--c1); }
    .ke-search { order: 3; flex: 1; }
    .ke-search input { width: 100%; }
    .ke-menu-btn { display: flex; }
    .kn-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        padding: 0 0 8px 14px;
        display: none;
    }
    .ke-nav-list > li:hover .kn-sub { transform: none; }
    .kn-has-sub.kn-sub-open .kn-sub { display: block; }
    .ke-feat-sub { grid-template-columns: 1fr; }
    .ke-footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
}
@media (max-width: 640px) {
    .ke-status-flash { display: none; }
    .ke-feat-cap strong { font-size: 17px; }
    .ke-row { flex-wrap: wrap; }
    .ke-row-main { flex-basis: 100%; order: -1; }
    .ke-row-time { order: 0; }
    .ke-row-views { display: none; }
    .ke-cta-inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}


/* =========================================================
   内页通用段（列表/详情/侧栏/分页/搜索/标签/图集/空态/CTA）
   类名 kn-* 与共享内页模板文件一一对应；颜色全部走 CSS 变量
   布局专属样式见各 layout.css（拼装在本段之前）
   ========================================================= */

/* ---------- 通用按钮 ---------- */
.kn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill, 50px);
    border: 2px solid transparent;
    transition: all .28s ease;
    white-space: nowrap;
}
.kn-btn-primary {
    background: linear-gradient(135deg, var(--c1-l), var(--c1));
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, .28);
}
.kn-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 85, 247, .4); }
.kn-btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 1. 区块头/页头/面包屑 ---------- */
.kn-page-head {
    background:
        radial-gradient(circle at 88% 20%, rgba(168, 85, 247, .1), transparent 42%),
        linear-gradient(120deg, var(--head-bg), var(--navy-2));
    color: #fff;
    padding: 36px 0 30px;
    margin-bottom: 26px;
}
.kn-page-title { font-size: 28px; font-weight: 800; margin-top: 8px; }
.kn-page-sub { color: var(--head-sub, #93a5c2); font-size: 14px; margin-top: 6px; }
.kn-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--head-sub, #93a5c2); }
.kn-crumb li { display: flex; align-items: center; gap: 8px; }
.kn-crumb li + li::before { content: "/"; color: var(--head-dim, #55658a); }
.kn-crumb a { color: var(--head-txt, #c6d2e6); }
.kn-crumb a:hover { color: var(--c1-l); }
.kn-crumb-light { color: var(--head-txt, #c6d2e6); }

/* ---------- 2. 通用：双栏布局 ---------- */
.kn-layout, .kn-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
    padding-bottom: 50px;
}
.kn-main-col { min-width: 0; }
.kn-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 76px; }

/* ---------- 3. 列表页：时间线卡片 ---------- */
.kn-timeline { display: flex; flex-direction: column; gap: 16px; }
.kn-li {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.kn-li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kn-li-thumb {
    flex: none;
    width: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--soft);
}
.kn-li-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.kn-li:hover .kn-li-thumb img { transform: scale(1.05); }
.kn-li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.kn-li-title { font-size: 18px; font-weight: 700; color: var(--title-c); line-height: 1.45; }
.kn-li-title a:hover { color: var(--c1); }
.kn-li-desc {
    font-size: 13.5px;
    color: var(--sub);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kn-li-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--muted);
}
.kn-li-meta em { font-style: normal; color: var(--c1); font-weight: 600; }
.kn-li-more { margin-left: auto; color: var(--c1); font-weight: 600; }

/* ---------- 4. 文章详情页 ---------- */
.kn-article-head {
    background:
        radial-gradient(circle at 85% 18%, rgba(168, 85, 247, .14), transparent 44%),
        linear-gradient(120deg, var(--head-bg), var(--navy-2));
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 46px 0 40px;
    margin-bottom: 28px;
    position: relative;
}
.kn-article-head[style] { position: relative; }
.kn-article-head[style]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--head-mask-a, rgba(10, 18, 34, .82)), var(--head-mask-b, rgba(10, 18, 34, .74)));
}
.kn-article-head-inner { position: relative; z-index: 1; }
.kn-article-badge {
    display: inline-block;
    margin-top: 12px;
    background: var(--c1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.kn-article-title { font-size: 30px; font-weight: 800; margin: 14px 0 14px; line-height: 1.4; }
.kn-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--head-sub, #93a5c2);
}
.kn-article-meta em { font-style: normal; color: #fff; }
.kn-article-main {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 30px 30px;
}
.kn-content { font-size: 15.5px; line-height: 1.9; color: var(--ink); }
.kn-content h2 {
    font-size: 21px;
    color: var(--title-c);
    margin: 28px 0 14px;
    padding-left: 13px;
    position: relative;
}
.kn-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--c1-l), var(--c1-d));
}
.kn-content h3 { font-size: 18px; color: var(--title-c); margin: 22px 0 10px; }
.kn-content p { margin-bottom: 14px; }
.kn-content a { color: var(--c1); }
.kn-content a:hover { text-decoration: underline; }
.kn-content img { border-radius: var(--radius-sm); margin: 8px 0; }
.kn-content ul, .kn-content ol { margin: 0 0 14px 22px; }
.kn-content ul li { list-style: disc; margin-bottom: 6px; }
.kn-content ol li { list-style: decimal; margin-bottom: 6px; }
.kn-content blockquote {
    border-left: 4px solid var(--c1);
    background: var(--soft);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--sub);
    margin: 16px 0;
}
.kn-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.kn-content table th, .kn-content table td { border: 1px solid var(--line); padding: 10px 12px; }
.kn-content table th { background: var(--soft); }
.kn-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}
.kn-pt-label { font-size: 13.5px; color: var(--sub); font-weight: 600; }
.kn-post-tags a {
    font-size: 13px;
    color: var(--sub);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 4px 14px;
    transition: all .25s ease;
}
.kn-post-tags a:hover { color: #fff; background: var(--c1); border-color: var(--c1); }
.kn-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 26px;
}
.kn-pn-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    transition: all .25s ease;
}
.kn-pn-item:hover { border-color: var(--c1); }
.kn-pn-label { font-size: 12.5px; color: var(--c1); font-weight: 700; }
.kn-pn-title {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kn-relate { margin-top: 30px; }
.kn-relate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kn-relate-head h3 { font-size: 20px; font-weight: 800; color: var(--title-c); }
.kn-relate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kn-relate-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.kn-relate-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kn-relate-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.kn-relate-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kn-relate-card:hover .kn-relate-thumb img { transform: scale(1.05); }
.kn-relate-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.kn-relate-body a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kn-relate-body a:hover { color: var(--c1); }
.kn-relate-body time { font-size: 12px; color: var(--muted); }
.kn-comments-box { margin-top: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.kn-comments-box h3 { font-size: 19px; font-weight: 800; color: var(--title-c); margin-bottom: 14px; }
.kn-toc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.kn-toc h3 { font-size: 16px; font-weight: 800; color: var(--title-c); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--soft); }
.kn-toc ul { display: flex; flex-direction: column; }
.kn-toc li a {
    display: block;
    font-size: 13.5px;
    color: var(--sub);
    padding: 5px 0;
    border-bottom: 1px dashed var(--soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kn-toc li a:hover { color: var(--c1); }

/* ---------- 5. 侧栏组件 ---------- */
.kn-widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.kn-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: var(--head-bg);
}
.kn-widget-head h3 { font-size: 15.5px; font-weight: 700; color: #fff; position: relative; padding-left: 12px; }
.kn-widget-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: var(--c1);
}
.kn-widget-more { font-size: 12.5px; color: var(--head-sub, #93a5c2); }
.kn-widget-more:hover { color: var(--c1-l); }
.kn-widget-body { padding: 16px 18px; }
.kn-search-form { display: flex; border: 2px solid var(--line); border-radius: 50px; overflow: hidden; }
.kn-search-form:focus-within { border-color: var(--c1); }
.kn-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 16px;
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
    background: transparent;
    color: var(--ink);
}
.kn-search-form button {
    flex: none;
    border: 0;
    background: var(--c1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
}
.kn-search-form button:hover { background: var(--c1-d); }
.kn-hot-list { display: flex; flex-direction: column; counter-reset: knhot; }
.kn-hot-list li { border-bottom: 1px dashed var(--soft); }
.kn-hot-list li:last-child { border-bottom: 0; }
.kn-hot-list li a {
    display: block;
    font-size: 14px;
    color: var(--ink);
    padding: 9px 0 9px 28px;
    position: relative;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    counter-increment: knhot;
}
.kn-hot-list li a::before {
    content: counter(knhot);
    position: absolute;
    left: 0;
    top: 12px;
    width: 19px;
    height: 19px;
    border-radius: 4px;
    background: var(--soft);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    line-height: 19px;
}
.kn-hot-list li:nth-child(1) a::before { background: var(--c1); color: #fff; }
.kn-hot-list li:nth-child(2) a::before { background: var(--navy-3); color: #fff; }
.kn-hot-list li:nth-child(3) a::before { background: var(--navy-2); color: #fff; }
.kn-hot-list li a:hover { color: var(--c1); }
.kn-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-tags-cloud a {
    font-size: 13px;
    color: var(--sub);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 4px 13px;
    transition: all .25s ease;
}
.kn-tags-cloud a:hover { color: #fff; background: var(--c1); border-color: var(--c1); }
.kn-side-cta {
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .12), transparent 42%),
        linear-gradient(135deg, var(--head-bg), var(--navy-3));
    border-radius: var(--radius);
    color: #fff;
    padding: 22px 22px 24px;
}
.kn-side-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c1-l), var(--c1-d));
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}
.kn-side-cta h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.kn-side-cta p { font-size: 13px; color: var(--head-sub, #93a5c2); margin-bottom: 16px; }

/* ---------- 6. 分页 ---------- */
.kn-pagination { margin: 22px 0; text-align: center; }
.kn-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kn-pagination li { display: inline-flex; }
.kn-pagination a, .kn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--sub);
    background: var(--white);
    transition: all .25s ease;
}
.kn-pagination a:hover, .kn-pagination .active span, .kn-pagination li.active a {
    border-color: var(--c1);
    color: #fff;
    background: var(--c1);
}
.kn-pagination .disabled span { opacity: .5; }

/* ---------- 7. 搜索页 / 标签页 / 空态 ---------- */
.kn-search-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(168, 85, 247, .1), transparent 42%),
        linear-gradient(120deg, var(--head-bg), var(--navy-2));
    color: #fff;
    padding: 44px 0 38px;
    margin-bottom: 26px;
}
.kn-search-hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.kn-search-hero h1 em { font-style: normal; color: var(--c1-l); }
.kn-search-big {
    display: flex;
    max-width: 620px;
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
    padding: 5px;
}
.kn-search-big input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 20px;
    font-size: 15px;
    font-family: inherit;
    min-width: 0;
    background: transparent;
    color: var(--ink);
}
.kn-search-big button {
    flex: none;
    border: 0;
    background: linear-gradient(135deg, var(--c1-l), var(--c1));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    transition: opacity .25s ease;
}
.kn-search-big button:hover { opacity: .9; }
.kn-search-hot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--head-sub, #93a5c2); }
.kn-search-hot a { color: var(--head-txt, #c6d2e6); border-bottom: 1px dashed var(--head-dim, #55658a); padding-bottom: 1px; }
.kn-search-hot a:hover { color: var(--c1-l); border-color: var(--c1-l); }
.kn-empty {
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 70px 20px;
    color: var(--sub);
}
.kn-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--c1);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}
.kn-tag-page { padding: 8px 0 60px; }
.kn-tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.kn-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 14.5px;
    color: var(--ink);
    transition: all .25s ease;
}
.kn-tag-chip .kn-tag-icon { color: var(--c1); font-weight: 800; }
.kn-tag-chip:hover { border-color: var(--c1); color: var(--c1); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- 8. 图集页 / 卡片（兼容共享文件） ---------- */
.kn-gallery-page { text-align: center; }
.kn-gallery-page .page-img { display: block; width: 100%; border-radius: var(--radius); margin: 0 auto; }
.kn-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
}
.kn-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.kn-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; display: block; background: var(--soft); }
.kn-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kn-card:hover .kn-card-thumb img { transform: scale(1.05); }
.kn-card-thumb .kn-badge { left: 12px; top: 12px; }
.kn-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--c1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.kn-card-body { padding: 15px 17px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.kn-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-c);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kn-card-title a:hover { color: var(--c1); }
.kn-card-desc {
    font-size: 13.5px;
    color: var(--sub);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kn-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}
.kn-card-more { color: var(--c1); font-weight: 600; }

/* ---------- 9. 内页响应式 ---------- */
@media (max-width: 992px) {
    .kn-layout, .kn-article-layout { grid-template-columns: 1fr; }
    .kn-side { position: static; }
    .kn-article-title { font-size: 25px; }
}
@media (max-width: 640px) {
    .kn-li { flex-direction: column; gap: 12px; }
    .kn-li-thumb { width: 100%; }
    .kn-li-title { font-size: 16.5px; }
    .kn-relate-grid { grid-template-columns: 1fr; }
    .kn-prev-next { grid-template-columns: 1fr; }
    .kn-article-main { padding: 20px 18px 22px; }
    .kn-article-meta { gap: 10px; }
    .kn-page-title { font-size: 22px; }
    .kn-search-big { flex-direction: column; border-radius: 14px; padding: 8px; gap: 8px; }
    .kn-search-big button { border-radius: 10px; }
}
