/* ============================================================
   舆情知识库 · yuqing-civic-modern v2
   「当代报刊 × 文档站」 editorial knowledge hub
   暖纸白底 / 藏青主色 / 朱砂点睛 / 衬线标题
   ============================================================ */

:root {
    --kh-paper: #f7f6f3;
    --kh-surface: #ffffff;
    --kh-ink: #16181d;
    --kh-muted: #6b7280;
    --kh-line: #e5e3de;
    --kh-navy: #1e3a68;
    --kh-navy-deep: #14294c;
    --kh-cinnabar: #b3382c;
    --kh-cinnabar-deep: #962b21;
    --kh-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --kh-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    --kh-sidebar-w: 250px;
    --kh-content-max: 1080px;
    --kh-read-max: 720px;
    --kh-shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 28px rgba(22, 24, 29, 0.06);
}

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

html { scroll-behavior: smooth; }

body.kh-body {
    margin: 0;
    font-family: var(--kh-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--kh-ink);
    background: var(--kh-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--kh-navy); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--kh-serif); color: var(--kh-ink); line-height: 1.3; }

.kh-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.kh-skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 200;
    padding: 8px 16px;
    background: var(--kh-navy);
    color: #fff;
    border-radius: 6px;
    transition: top 0.2s ease;
}
.kh-skip-link:focus { top: 12px; color: #fff; }

/* ---------- 阅读进度条（仅文章页显示） ---------- */
.kh-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 180;
    height: 3px;
    background: transparent;
}
.kh-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--kh-cinnabar);
    transition: width 0.1s linear;
}

/* ============================================================
   左侧固定边栏（桌面端 ≥1024px）
   ============================================================ */
.kh-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    display: none;
    width: var(--kh-sidebar-w);
    padding: 36px 0 28px;
    background: var(--kh-paper);
    border-right: 1px solid var(--kh-line);
    flex-direction: column;
}
.kh-sidebar__brand {
    display: block;
    padding: 0 28px 28px;
    border-bottom: 1px solid var(--kh-line);
}
.kh-sidebar__logo { height: 42px; width: auto; }
.kh-sidebar__site {
    display: block;
    font-family: var(--kh-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--kh-ink);
    letter-spacing: 0.04em;
}
.kh-sidebar__tag {
    display: block;
    margin-top: 10px;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: var(--kh-muted);
}
.kh-sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
}
.kh-sidebar__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 28px;
    font-size: 15px;
    color: var(--kh-ink);
    border-left: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.kh-sidebar__link:hover { background: rgba(30, 58, 104, 0.05); }
.kh-sidebar__num {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--kh-muted);
    font-variant-numeric: tabular-nums;
}
.kh-sidebar__link.is-active {
    border-left-color: var(--kh-cinnabar);
    background: rgba(179, 56, 44, 0.05);
}
.kh-sidebar__link.is-active .kh-sidebar__num { color: var(--kh-cinnabar); font-weight: 600; }
.kh-sidebar__link.is-active .kh-sidebar__name { font-weight: 600; }
.kh-sidebar__name { flex: 1; }
.kh-sidebar__count {
    font-size: 11.5px;
    color: var(--kh-muted);
    font-variant-numeric: tabular-nums;
}
.kh-sidebar__copyright {
    margin: 0;
    padding: 20px 28px 0;
    border-top: 1px solid var(--kh-line);
    font-size: 12px;
    line-height: 1.7;
    color: var(--kh-muted);
}

/* ============================================================
   顶栏 + 抽屉（<1024px）
   ============================================================ */
.kh-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 18px;
    background: rgba(247, 246, 243, 0.94);
    backdrop-filter: saturate(1.3) blur(8px);
    border-bottom: 1px solid var(--kh-line);
}
.kh-topbar__brand {
    display: flex;
    align-items: center;
}
.kh-topbar__logo { height: 28px; width: auto; }
.kh-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--kh-line);
    border-radius: 8px;
    cursor: pointer;
}
.kh-burger span {
    display: block;
    height: 2px;
    background: var(--kh-ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.kh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.kh-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(22, 24, 29, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.kh-drawer-backdrop.is-open { opacity: 1; }

.kh-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    width: min(300px, 82vw);
    padding: 28px 0;
    background: var(--kh-surface);
    box-shadow: 12px 0 40px rgba(22, 24, 29, 0.16);
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
}
.kh-drawer.is-open { transform: translateX(0); }
.kh-drawer__label {
    margin: 0 0 10px;
    padding: 0 26px;
    font-size: 11.5px;
    letter-spacing: 0.22em;
    color: var(--kh-muted);
}
.kh-drawer__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 13px 26px;
    font-size: 16px;
    color: var(--kh-ink);
    border-bottom: 1px solid var(--kh-line);
}
.kh-drawer__num { font-size: 12px; color: var(--kh-cinnabar); font-variant-numeric: tabular-nums; }
.kh-drawer__link.is-active { color: var(--kh-cinnabar); font-weight: 600; }
.kh-drawer__count { margin-left: auto; font-size: 12px; color: var(--kh-muted); }

/* ============================================================
   主内容区
   ============================================================ */
.kh-main {
    padding: 0 20px 64px;
}
.kh-main > section:not(.kh-hero), .kh-main > article, .kh-main > footer {
    max-width: var(--kh-content-max);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .kh-sidebar { display: flex; }
    .kh-topbar, .kh-drawer, .kh-drawer-backdrop { display: none; }
    .kh-main {
        margin-left: var(--kh-sidebar-w);
        padding: 0 48px 64px;
    }
}

/* ---------- 页脚（移动/平板端） ---------- */
.kh-footer {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--kh-line);
}
.kh-footer__inner { text-align: center; }
.kh-footer__copy { margin: 0 0 8px; font-size: 13px; color: var(--kh-muted); }
.kh-footer__nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.kh-footer__nav a { font-size: 13.5px; color: var(--kh-muted); }
.kh-footer__nav a:hover { color: var(--kh-cinnabar); }
.kh-footer .mt-2 a, .kh-footer .mt-2 span { font-size: 12.5px; color: var(--kh-muted); }

/* ============================================================
   首页封面 Hero
   ============================================================ */
.kh-hero {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 44px 20px 48px;
    border-bottom: 1px solid var(--kh-line);
    text-align: center;
}
.kh-hero > * { position: relative; }
@media (min-width: 1024px) {
    .kh-hero { margin: 0 -48px; padding: 56px 48px 60px; }
}

/* 背景图：贴左锚定 + 向右渐隐融入纸白，文字区保持可读 */
.kh-hero__bg { position: absolute; inset: -12% 0; }
.kh-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    animation: kh-kenburns 24s ease-in-out infinite alternate;
}
.kh-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(247, 246, 243, 0.42) 0%,
        rgba(247, 246, 243, 0.68) 32%,
        rgba(247, 246, 243, 0.92) 58%,
        rgba(247, 246, 243, 1) 80%);
}

/* 刊头线：发丝线 + 字距拉满的出版信息 */
.kh-masthead {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 28px;
    font-size: 11.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--kh-muted);
    white-space: nowrap;
}
.kh-masthead__rule { flex: 1; height: 1px; background: var(--kh-line); }
.kh-masthead__text { flex: 0 0 auto; }
@media (max-width: 640px) {
    .kh-masthead { letter-spacing: 0.18em; font-size: 10.5px; gap: 12px; }
}

.kh-hero__copy { max-width: 800px; margin: 0 auto; }

.kh-hero__kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 24px;
    font-size: 13px;
    letter-spacing: 0.28em;
    color: var(--kh-cinnabar);
}
.kh-hero__kicker::before,
.kh-hero__kicker::after {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--kh-cinnabar);
}
.kh-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.02em;
}
.kh-hero__subtitle {
    margin: 20px auto 0;
    font-family: var(--kh-serif);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    letter-spacing: 0.12em;
    color: var(--kh-navy);
}
.kh-hero__lead {
    margin: 16px auto 0;
    max-width: 36em;
    font-size: 16px;
    line-height: 1.9;
    color: var(--kh-muted);
}

/* 胶囊式搜索：白色卡片 + 实心按钮，封面视觉锚点 */
.kh-hero__search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px auto 0;
    max-width: 540px;
    padding: 7px 7px 7px 20px;
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(22, 24, 29, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.kh-hero__search:focus-within {
    border-color: var(--kh-navy);
    box-shadow: 0 8px 24px rgba(30, 58, 104, 0.12);
}
.kh-hero__search-icon { flex: 0 0 auto; color: var(--kh-muted); }
.kh-hero__search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    font-size: 15.5px;
    font-family: inherit;
    color: var(--kh-ink);
    background: transparent;
    border: 0;
    outline: none;
    text-align: left;
}
.kh-hero__search input::placeholder { color: var(--kh-muted); }
.kh-hero__search button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--kh-navy);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.kh-hero__search button svg { transition: transform 0.2s ease; }
.kh-hero__search button:hover { background: var(--kh-cinnabar); }
.kh-hero__search button:hover svg { transform: translateX(3px); }

.kh-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--kh-cinnabar);
}
.kh-hero__cta svg { transition: transform 0.2s ease; }
.kh-hero__cta:hover svg { transform: translateX(4px); }

@media (max-width: 640px) {
    .kh-hero__search { padding: 6px 6px 6px 16px; }
    .kh-hero__search button { padding: 9px 16px; }
}

@keyframes kh-kenburns {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* ============================================================
   通用区块
   ============================================================ */
.kh-section { padding: 56px 0; border-bottom: 1px solid var(--kh-line); }
.kh-section:last-of-type { border-bottom: 0; }
.kh-section__head { margin-bottom: 32px; }
.kh-section__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}
.kh-section__title::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--kh-cinnabar);
}
.kh-section__sub { margin: 10px 0 0; font-size: 15px; color: var(--kh-muted); }

/* ---------- 栏目大行（01–05 editorial rows） ---------- */
.kh-catrows { border-top: 1px solid var(--kh-line); }
.kh-catrow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 8px;
    border-bottom: 1px solid var(--kh-line);
    color: var(--kh-ink);
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.25s ease, padding-left 0.25s ease;
}
.kh-catrow:hover { background: var(--kh-surface); padding-left: 16px; }
.kh-catrow__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--row-img);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    filter: grayscale(1) contrast(1.05) brightness(0.9);
    transition: opacity 0.5s ease, transform 6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.kh-catrow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 24, 48, 0.93), rgba(18, 48, 94, 0.8));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.kh-catrow__num {
    flex: 0 0 auto;
    font-family: var(--kh-serif);
    font-size: 15px;
    color: var(--kh-cinnabar);
    font-variant-numeric: tabular-nums;
    transition: color 0.35s ease;
}
.kh-catrow__main { flex: 1; min-width: 0; }
.kh-catrow__name {
    display: block;
    font-family: var(--kh-serif);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.kh-catrow__desc {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--kh-muted);
    transition: color 0.35s ease;
}
.kh-catrow__thumb {
    flex: 0 0 auto;
    width: 132px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.92;
}
.kh-catrow__thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.kh-catrow:hover .kh-catrow__thumb { opacity: 1; }
.kh-catrow:hover .kh-catrow__thumb img { transform: scale(1.03); }
.kh-catrow__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--kh-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}
.kh-catrow:hover .kh-catrow__arrow { transform: translateX(5px); color: var(--kh-cinnabar); }

/* 桌面端（可悬停设备）：整行 hover 渐显栏目配图（去色 + 藏青双色），隐藏右侧小图 */
@media (hover: hover) and (min-width: 1024px) {
    .kh-catrow__thumb { display: none; }
    .kh-catrow:hover { background: transparent; }
    .kh-catrow:hover .kh-catrow__bg { opacity: 1; transform: scale(1); }
    .kh-catrow:hover::after { opacity: 1; }
    .kh-catrow:hover .kh-catrow__name { color: #f6f3ec; transform: translateY(-2px); }
    .kh-catrow:hover .kh-catrow__desc { color: rgba(246, 243, 236, 0.78); }
    .kh-catrow:hover .kh-catrow__num { color: #d98f83; }
}
@media (hover: hover) and (min-width: 1024px) and (prefers-reduced-motion: reduce) {
    .kh-catrow__bg { transition: opacity 0.01s; transform: none; }
    .kh-catrow::after { transition: opacity 0.01s; }
    .kh-catrow:hover .kh-catrow__name { transform: none; }
}

@media (max-width: 640px) {
    .kh-catrow { flex-wrap: wrap; gap: 12px; }
    .kh-catrow__thumb { width: 100%; order: 3; }
    .kh-catrow__arrow { display: none; }
}

/* ---------- 最新文章日期列表 ---------- */
.kh-datelist {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--kh-line);
}
.kh-datelist__row {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--kh-line);
}
.kh-datelist__row time {
    flex: 0 0 auto;
    font-size: 13.5px;
    color: var(--kh-muted);
    font-variant-numeric: tabular-nums;
}
.kh-datelist__row a {
    color: var(--kh-ink);
    font-size: 16px;
    transition: color 0.2s ease;
}
.kh-datelist__row a:hover { color: var(--kh-cinnabar); }

/* ---------- 热门专题：学习路径步骤 ---------- */
.kh-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: kh-step;
    border-top: 1px solid var(--kh-line);
}
.kh-steps__step {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--kh-line);
}
.kh-steps__num {
    flex: 0 0 auto;
    font-family: var(--kh-serif);
    font-size: 20px;
    color: var(--kh-cinnabar);
    font-variant-numeric: tabular-nums;
}
.kh-steps__link {
    font-size: 17px;
    color: var(--kh-ink);
    transition: color 0.2s ease;
}
.kh-steps__step:hover .kh-steps__link { color: var(--kh-cinnabar); }

/* ---------- 未知模块回退容器 ---------- */
.kh-module-fallback { padding: 40px 0; border-bottom: 1px solid var(--kh-line); }

/* ============================================================
   页头（栏目/归档/列表态）
   ============================================================ */
.kh-pagehead { padding: 48px 0 0; }
.kh-pagehead__num {
    margin: 20px 0 0;
    font-family: var(--kh-serif);
    font-size: 15px;
    letter-spacing: 0.3em;
    color: var(--kh-cinnabar);
}
.kh-pagehead__title {
    margin: 10px 0 0;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 700;
}
.kh-pagehead__desc { margin: 14px 0 0; max-width: 44em; color: var(--kh-muted); }
.kh-pagehead__count { margin: 10px 0 0; font-size: 13.5px; color: var(--kh-muted); }
.kh-pagehead__media {
    margin: 28px 0 0;
    border-radius: 12px;
    overflow: hidden;
}
.kh-pagehead__media img { width: 100%; max-height: 320px; object-fit: cover; }

/* ---------- 面包屑 ---------- */
.kh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--kh-muted);
}
.kh-breadcrumb a { color: var(--kh-muted); }
.kh-breadcrumb a:hover { color: var(--kh-navy); }
.kh-breadcrumb [aria-current="page"] {
    color: var(--kh-ink);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kh-breadcrumb__sep { color: #c9c6bf; }

/* ---------- 搜索框（列表态） ---------- */
.kh-search {
    display: flex;
    margin-top: 24px;
    max-width: 460px;
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-radius: 10px;
    overflow: hidden;
}
.kh-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--kh-ink);
}
.kh-search button {
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--kh-navy);
    border: 0;
    cursor: pointer;
}
.kh-search button:hover { background: var(--kh-navy-deep); }

/* ---------- 文章列表项（栏目/归档/搜索结果） ---------- */
.kh-itemlist { border-top: 1px solid var(--kh-line); }
.kh-item {
    display: flex;
    gap: 26px;
    padding: 26px 4px;
    border-bottom: 1px solid var(--kh-line);
}
.kh-item__date {
    flex: 0 0 92px;
    padding-top: 4px;
    font-size: 13.5px;
    color: var(--kh-muted);
    font-variant-numeric: tabular-nums;
}
.kh-item__body { flex: 1; min-width: 0; }
.kh-item__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
}
.kh-item__title a { color: var(--kh-ink); transition: color 0.2s ease; }
.kh-item__title a:hover { color: var(--kh-cinnabar); }
.kh-item__summary {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--kh-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kh-item__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.kh-item__cat {
    font-size: 12.5px;
    color: var(--kh-navy);
    border-bottom: 1px solid rgba(30, 58, 104, 0.35);
}
.kh-item__cat:hover { color: var(--kh-cinnabar); border-color: var(--kh-cinnabar); }
.kh-item__badge { font-size: 12.5px; color: var(--kh-cinnabar); }
@media (max-width: 560px) {
    .kh-item { flex-direction: column; gap: 6px; }
    .kh-item__date { padding-top: 0; }
}

/* ---------- 空状态 ---------- */
.kh-empty {
    padding: 48px 28px;
    background: var(--kh-surface);
    border: 1px dashed var(--kh-line);
    border-radius: 12px;
    text-align: center;
}
.kh-empty__title {
    margin: 0;
    font-family: var(--kh-serif);
    font-size: 20px;
    font-weight: 700;
}
.kh-empty__desc { margin: 10px auto 0; max-width: 30em; font-size: 14.5px; color: var(--kh-muted); }
.kh-empty .kh-btn { margin-top: 20px; }

.kh-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: var(--kh-navy);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.kh-btn:hover { background: var(--kh-navy-deep); color: #fff; }
.kh-btn--accent { background: var(--kh-cinnabar); }
.kh-btn--accent:hover { background: var(--kh-cinnabar-deep); }

/* ---------- 分页 ---------- */
.kh-pagination-wrap { margin-top: 36px; }
.kh-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.kh-pagination__pages { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.kh-pagination__control,
.kh-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--kh-navy);
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-radius: 8px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
a.kh-pagination__control:hover,
a.kh-pagination__page:hover { border-color: var(--kh-navy); }
.kh-pagination__page.is-current {
    color: #fff;
    background: var(--kh-navy);
    border-color: var(--kh-navy);
    font-weight: 600;
}
.kh-pagination__control.is-disabled { color: #b9b6af; cursor: not-allowed; }
.kh-pagination__ellipsis { color: var(--kh-muted); padding: 0 2px; }

/* ============================================================
   文章页（居中阅读栏 720px）
   ============================================================ */
.kh-article {
    max-width: var(--kh-read-max);
    margin: 0 auto;
    padding-top: 64px;
}
.kh-article__header { margin-top: 36px; }
.kh-article__cat {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--kh-cinnabar);
    border-bottom: 1px solid rgba(179, 56, 44, 0.4);
}
.kh-article__cat:hover { color: var(--kh-cinnabar-deep); }
.kh-article__title {
    margin: 22px 0 0;
    font-size: clamp(1.8rem, 4.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.35;
}
.kh-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--kh-line);
    border-bottom: 1px solid var(--kh-line);
    font-size: 13.5px;
    color: var(--kh-muted);
}
.kh-article__excerpt {
    margin: 30px 0 0;
    padding-left: 20px;
    border-left: 3px solid var(--kh-cinnabar);
    font-family: var(--kh-serif);
    font-size: 17px;
    line-height: 1.9;
    color: var(--kh-navy-deep);
}
.kh-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--kh-line);
}
.kh-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12.5px;
    color: var(--kh-muted);
    border: 1px solid var(--kh-line);
    border-radius: 999px;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
a.kh-tag:hover {
    color: var(--kh-navy);
    border-color: var(--kh-navy);
    background-color: rgba(30, 58, 104, .05);
}
.kh-article-cta {
    margin-top: 52px;
    padding: 32px 34px;
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-left: 3px solid var(--kh-cinnabar);
    border-radius: 10px;
}
.kh-article-cta__badge { font-size: 12.5px; letter-spacing: 0.12em; color: var(--kh-cinnabar); }
.kh-article-cta__title { margin: 10px 0 6px; font-size: 20px; }
.kh-article-cta__copy { margin: 0 0 16px; font-size: 15px; color: var(--kh-muted); }

/* ---------- 正文排版：17px / 1.9 ---------- */
.kh-prose {
    margin-top: 46px;
    font-size: 17px;
    line-height: 2;
    color: var(--kh-ink);
}
.kh-prose h2 {
    margin: 2.4em 0 0.9em;
    font-size: 24px;
    font-weight: 700;
}
.kh-prose h2::before {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--kh-cinnabar);
}
.kh-prose h3 { margin: 2em 0 0.8em; font-size: 20px; }
.kh-prose h4 { margin: 1.8em 0 0.7em; font-size: 18px; }
.kh-prose p { margin: 0 0 1.5em; }
.kh-prose a {
    color: var(--kh-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(30, 58, 104, 0.4);
}
.kh-prose a:hover { color: var(--kh-cinnabar); text-decoration-color: var(--kh-cinnabar); }
.kh-prose img {
    margin: 2em auto;
    border-radius: 10px;
}
.kh-prose blockquote {
    margin: 2em 0;
    padding: 8px 0 8px 22px;
    border-left: 3px solid var(--kh-navy);
    font-family: var(--kh-serif);
    color: var(--kh-navy-deep);
}
.kh-prose blockquote p { margin: 0 0 0.8em; }
.kh-prose ul, .kh-prose ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.kh-prose li { margin-bottom: 0.6em; }
.kh-prose li::marker { color: var(--kh-cinnabar); }
.kh-prose table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 15px;
}
.kh-prose th, .kh-prose td {
    padding: 10px 14px;
    border: 1px solid var(--kh-line);
    text-align: left;
}
.kh-prose th { background: var(--kh-surface); font-family: var(--kh-serif); }
.kh-prose code {
    padding: 2px 7px;
    font-size: 0.9em;
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-radius: 5px;
}
.kh-prose pre {
    padding: 18px 22px;
    overflow-x: auto;
    background: var(--kh-navy-deep);
    color: #dfe6f2;
    border-radius: 10px;
}
.kh-prose pre code { padding: 0; background: transparent; border: 0; color: inherit; }
.kh-prose hr { border: 0; border-top: 1px solid var(--kh-line); margin: 2.8em 0; }

/* ---------- 相关阅读 ---------- */
.kh-related {
    max-width: var(--kh-read-max);
    margin: 64px auto 0;
    padding-top: 34px;
    border-top: 1px solid var(--kh-line);
}
.kh-related__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.kh-related__list { margin: 0; padding: 0; list-style: none; }
.kh-related__row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--kh-line);
}
.kh-related__row:last-child { border-bottom: 0; }
.kh-related__num {
    font-family: var(--kh-serif);
    font-size: 14px;
    color: var(--kh-cinnabar);
    font-variant-numeric: tabular-nums;
}
.kh-related__row a { color: var(--kh-ink); font-size: 16px; }
.kh-related__row a:hover { color: var(--kh-cinnabar); }

/* ---------- 归档 ---------- */
.kh-archive { display: flex; flex-direction: column; gap: 44px; }
.kh-archive__year-title {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 700;
    color: var(--kh-navy-deep);
}
.kh-archive__months {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 640px) { .kh-archive__months { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kh-archive__months { grid-template-columns: repeat(3, 1fr); } }
.kh-archive__months a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--kh-surface);
    border: 1px solid var(--kh-line);
    border-radius: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.kh-archive__months a:hover { border-color: var(--kh-navy); transform: translateY(-2px); }
.kh-archive__month { font-family: var(--kh-serif); font-size: 16px; font-weight: 700; color: var(--kh-ink); }
.kh-archive__count { font-size: 13px; color: var(--kh-muted); }

/* ---------- 滚动渐显 ---------- */
.kh-reveal { opacity: 1; transform: none; }
.js .kh-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.js .kh-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .kh-hero__bg img { animation: none; }
    .js .kh-reveal { opacity: 1; transform: none; }
}

/* ---------- 文章页首字下沉（报刊手法） ---------- */
.kh-article-body > p:first-of-type::first-letter {
    font-family: var(--kh-serif);
    font-size: 3.1em;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    padding: 0.07em 0.14em 0 0;
    color: var(--kh-cinnabar);
}

/* ---------- 首屏背景视差（JS 驱动，降级无影响） ---------- */
.js .kh-hero__bg { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
    .js .kh-hero__bg { transform: none !important; }
}
