/* =========================================================
   布局 D · 报纸风（衬线标题 / 双细线 / 0 圆角 / 米白底）
   特征：报头居中品牌 / 头版双焦点 / 编号要闻 / 版块 2 列
   ========================================================= */

/* ---------- 变量与基础 ---------- */
:root {
    --c1: #2563eb;
    --c1-l: #5e8cf0;
    --c1-d: #2055ca;
    --navy: #0a1330;
    --navy-2: #0d1a42;
    --navy-3: #112254;
    --head-bg: var(--navy);
    --title-c: #26241f;
    --head-sub: #93a5c2;
    --head-dim: #55658a;
    --head-txt: #c6d2e6;
    --ink: #2b2921;
    --sub: #6b675c;
    --muted: #98948a;
    --line: #ddd9cd;
    --line-soft: #e9e5da;
    --soft: #f3f0e8;
    --white: #fffef9;
    --paper: #faf8f1;
    --radius: 0px;
    --radius-sm: 0px;
    --radius-pill: 0px;
    --shadow: none;
    --shadow-lg: none;
    --container: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", "Songti SC", SimSun, "FangSong", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c1); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.4; font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.kn-main { min-height: 40vh; }
.kn-fade { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.kn-fade.kn-visible { opacity: 1; transform: none; }

/* ---------- 报头 ---------- */
.kd-header { background: var(--paper); }
.kd-datebar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px 0;
    font-size: 12.5px;
    color: var(--muted);
}
.kd-datebar-line { flex: 1; height: 1px; background: var(--line); }
.kd-datebar-text { letter-spacing: 1px; }
.kd-datebar-slogan { color: var(--c1); letter-spacing: 1px; }
.kd-mast { text-align: center; padding: 26px 18px 20px; }
.kd-brand { display: inline-block; }
.kd-brand-name {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--navy);
    line-height: 1.2;
}
.kd-brand:hover .kd-brand-name { color: var(--c1); }
.kd-brand-sub {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--muted);
    text-transform: uppercase;
}
.kd-nav {
    border-top: 3px double var(--navy);
    border-bottom: 3px double var(--navy);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 90;
}
.kd-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
}
.kd-nav-list > li { position: relative; }
.kd-nav-list > li > a {
    display: block;
    padding: 12px 22px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.kd-nav-list > li:first-child > a { border-left: 1px solid var(--line); }
.kd-nav-list > li > a:hover { color: var(--c1); background: var(--soft); }
.kd-nav-list > li.active > a { color: #fff; background: var(--navy); }
.kd-nav-search { margin-left: auto; }
.kd-nav-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}
.kd-nav-search input {
    width: 170px;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    padding: 5px 2px;
    color: var(--ink);
}
.kd-nav-search input::placeholder { color: var(--muted); }
.kd-nav-search button {
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-size: 12.5px;
    padding: 4px 12px;
    transition: all .2s ease;
}
.kd-nav-search button:hover { background: var(--navy); color: #fff; }
.kn-sub {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 168px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 2px solid var(--navy);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .22s ease;
    z-index: 99;
}
.kd-nav-list > li:hover .kn-sub { opacity: 1; visibility: visible; transform: none; }
.kn-sub li a { display: block; padding: 8px 18px; font-size: 14px; color: var(--ink); }
.kn-sub li a:hover { background: var(--soft); color: var(--c1); }
.kd-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy);
    background: var(--paper);
    margin: 10px auto 0;
}
.kd-menu-btn span { display: block; width: 18px; height: 2px; background: var(--navy); }

/* ---------- 头版焦点 ---------- */
.kd-heads { padding: 28px 0 6px; }
.kd-heads-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 30px;
}
.kd-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    padding-right: 26px;
    border-right: 1px solid var(--line);
}
.kd-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--c1);
    border-top: 2px solid var(--c1);
    padding-top: 4px;
    margin-bottom: 12px;
}
.kd-lead-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.45;
}
.kd-lead:hover .kd-lead-text strong { color: var(--c1); }
.kd-lead-text p { margin-top: 12px; font-size: 14px; color: var(--sub); }
.kd-lead-text em { display: block; margin-top: 14px; font-style: normal; font-size: 12px; color: var(--muted); }
.kd-lead-pic { display: block; overflow: hidden; border: 1px solid var(--line); }
.kd-lead-pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: filter .3s ease; }
.kd-lead:hover .kd-lead-pic img { filter: saturate(1.08); }
.kd-sub { display: flex; flex-direction: column; gap: 14px; }
.kd-sub-pic { display: block; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.kd-sub-pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.kd-sub-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-sub:hover .kd-sub-text strong { color: var(--c1); }
.kd-sub-text em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 今日要闻 ---------- */
.kd-digest { padding: 22px 0 8px; }
.kd-digest-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    border-top: 3px double var(--navy);
    border-bottom: 1px solid var(--line);
    padding: 12px 2px;
}
.kd-digest-head h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--navy);
}
.kd-digest-head span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-digest-list {
    columns: 2;
    column-gap: 44px;
    padding-top: 6px;
}
.kd-digest-list li { border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.kd-digest-list li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 2px;
}
.kd-digest-no {
    flex: none;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 900;
    color: var(--line);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 46px;
}
.kd-digest-list li a:hover .kd-digest-no { color: var(--c1); }
.kd-digest-body { min-width: 0; }
.kd-digest-body strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kd-digest-list li a:hover .kd-digest-body strong { color: var(--c1); }
.kd-digest-body em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 版块区 ---------- */
.kd-sections { padding: 24px 0 14px; }
.kd-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 40px;
}
.kd-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 3px double var(--navy);
    border-bottom: 1px solid var(--line);
    padding: 10px 2px;
    margin-bottom: 14px;
}
.kd-sec-head h2 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--navy);
    position: relative;
    padding-left: 14px;
}
.kd-sec-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    background: var(--c1);
}
.kd-sec-head a { font-size: 12.5px; color: var(--muted); }
.kd-sec-head a:hover { color: var(--c1); }
.kd-sec-lead { display: block; margin-bottom: 4px; }
.kd-sec-lead-pic { display: block; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; }
.kd-sec-lead-pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: filter .3s ease; }
.kd-sec-lead:hover .kd-sec-lead-pic img { filter: saturate(1.1); }
.kd-sec-lead strong {
    display: block;
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kd-sec-lead:hover strong { color: var(--c1); }
.kd-sec-line {
    display: block;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 18px;
}
.kd-sec-line::before {
    content: "▪";
    position: absolute;
    left: 2px;
    color: var(--c1);
}
.kd-sec-line:hover { color: var(--c1); }

/* ---------- CTA ---------- */
.kd-cta { padding: 12px 0 36px; }
.kd-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 3px double var(--navy);
    border-bottom: 3px double var(--navy);
    padding: 22px 6px;
}
.kd-cta-title { font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 2px; color: var(--navy); }
.kd-cta-text p { font-size: 13px; color: var(--sub); margin-top: 4px; }
.kd-cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    transition: all .2s ease;
}
.kd-cta-btn:hover { background: var(--navy); color: #fff; }

/* ---------- 页脚：极简单行 ---------- */
.kd-footer { border-top: 3px double var(--navy); background: var(--paper); color: var(--sub); margin-top: auto; }
.kd-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 0 6px;
    font-size: 13px;
}
.kd-links-label { color: var(--muted); }
.kd-links-row a { color: var(--sub); }
.kd-links-row a:hover { color: var(--c1); }
.kd-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 28px;
    padding: 16px 0 8px;
}
.kd-footer-nav a {
    font-family: var(--serif);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
}
.kd-footer-nav a:hover { color: var(--c1); }
.kd-footer-desc {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    max-width: 860px;
    margin: 0 auto;
    padding: 6px 0 14px;
}
.kd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0 20px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}
.kd-footer-bottom a { color: var(--ink); }
.kd-footer-bottom a:hover { color: var(--c1); }
.kd-footer-bottom em { font-style: normal; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .kd-brand-name { font-size: 34px; letter-spacing: 6px; }
    .kd-lead { grid-template-columns: 1fr; border-right: 0; padding-right: 0; }
    .kd-heads-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .kd-nav { display: none; }
    body.kn-open .kd-nav { display: block; }
    .kd-nav-list { display: block; }
    .kd-nav-list > li > a { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .kd-nav-list > li:first-child > a { border-left: 0; }
    .kd-nav-search { margin-left: 0; }
    .kd-nav-search form { padding: 10px 12px; }
    .kd-nav-search input { width: 100%; flex: 1; }
    .kd-menu-btn { display: flex; }
    .kn-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-left: 2px solid var(--line);
        padding: 0 0 6px 14px;
        margin-left: 12px;
        display: none;
    }
    .kd-nav-list > li:hover .kn-sub { transform: none; }
    .kn-has-sub.kn-sub-open .kn-sub { display: block; }
    .kd-digest-list { columns: 1; }
    .kd-sections-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
    .kd-brand-name { font-size: 26px; letter-spacing: 4px; }
    .kd-lead-text strong { font-size: 20px; }
    .kd-datebar-slogan { display: none; }
    .kd-cta-inner { flex-direction: column; align-items: flex-start; }
    .kd-footer-bottom { justify-content: center; }
}


/* =========================================================
   内页通用段（列表/详情/侧栏/分页/搜索/标签/图集/空态/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(37, 99, 235, .28);
}
.kn-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .4); }
.kn-btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 1. 区块头/页头/面包屑 ---------- */
.kn-page-head {
    background:
        radial-gradient(circle at 88% 20%, rgba(37, 99, 235, .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(37, 99, 235, .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(37, 99, 235, .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; }
}
