@charset "UTF-8";
/*
 *  KP-PEAK —— PeakNews（www.kpacg.com 在用主题）Halo 1:1 移植样式
 *  设计契约来源：PeakNews assets/css/style.css + bitbox 插件 :root 变量 + 活站内联覆盖
 *  v1.0.0 · 2026-09
 *
 *  关键体系：所有卡片图一律「固定尺寸图框 .post-img-wrap + img object-fit:cover」，
 *  原站不做服务端裁图（全链路同图），呈现完全由 CSS 框定 ——
 *  compact 220px / featured-large 470px / sso-compact 636px(992+)/416px(576-991)
 *  style-one 160px / large 416px / sst-large 336px
 *  style-two 128×104 / large 264×192 / post-list 比例框 padding-bottom:60%
 */

/* ============ 0. 基础变量（:root 直抄原插件+主题，主题色活站覆盖 #fe2323） ============ */
:root {
    --t-color: var(--theme-color);
    --white: #fff;
    --black: #000;
    --alpha-bg: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    --alpha-bg-dark: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 71.35%, rgba(0, 0, 0, 0) 100%);
    --body-bg: #ffffff;
    --theme-color: #fe2323;
    --light-bg-color: #f0f2f7;
    --text-color-normal: #3d4452;
    --text-color-dark: #1a202b;
    --text-color-light: #83868b;
    --border-color: #e8e9eb;
    --border-radius: 5px;
    --footer-bg-color: #1a202b;
    --footer-text-color: #a1a6b1;
    --footer-border-color: #2a313f;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    --bitbox-font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --bitbox-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bitbox-blur: 20px;
    --bitbox-blur-saturate: 180%;
    --bitbox-blur-background: rgba(255, 255, 255, 0.72);
    --bitbox-blur-background-2: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] {
    --body-bg: #12181b;
    --light-bg-color: #1f2529;
    --text-color-normal: #c2c3c7;
    --text-color-dark: #ebebec;
    --text-color-light: #929399;
    --border-color: #353746;
    --bitbox-blur-background: rgba(0, 0, 0, 0.72);
    --bitbox-blur-background-2: rgba(0, 0, 0, 0.28);
}

/* ============ 1. 极简 reset ============ */
*, *::before, *::after { box-sizing: inherit; }
html { box-sizing: border-box; font-size: 100%; line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color-normal);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    transition: all ease 0.3s;
    font-family: var(--bitbox-font-family);
}
main { display: block; }
img { border-style: none; max-width: 100%; }
a { text-decoration: none; color: var(--theme-color); transition: all 0.25s; background-color: transparent; }
hr { border: none; }
[hidden] { display: none; }
button { font-size: 100%; margin: 0; font-family: inherit; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }

/* ============ 2. 排版 ============ */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-color-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
h1, .h1 { font-size: 2.75rem; }
h2, .h2 { font-size: 2.25rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.75rem; }
@media (max-width: 767px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.125rem; }
}

/* ============ 3. 工具类 ============ */
.text-upper { text-transform: uppercase; }
.text-center { text-align: center; }
.no-style-list { padding: 0; margin: 0; list-style: none; }
.flex { display: flex; }
.clearfix::after { content: ""; clear: both; display: table; }
.f-left { float: left; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bitbox-display-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 4. 容器 + 12 栅格（1170px / 15px 沟 / 断点 576 768 992 1170） ============ */
.container {
    max-width: 1170px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
/* 原站模块行靠浮动出「马赛克制」（右列竖排在左大卡高度内续排），
   而非 flex-wrap——实测 kpacg.com 卡片坐标证实；clearfix 收拢高度 */
.row { margin-right: -15px; margin-left: -15px; }
.row::after, .clearfix::after { content: ""; clear: both; display: table; }
.col-12, .col-xl-4, .col-xl-5, .col-xl-7, .col-xl-8,
.col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-12,
.col-md-4, .col-md-6, .col-md-8, .col-sm-6 {
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    float: left;
}
.col-12 { width: 100%; }
@media screen and (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}
@media screen and (min-width: 768px) {
    .col-md-4 { width: 33.3333333333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6666666667%; }
}
@media screen and (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.3333333333%; }
    .col-lg-5 { width: 41.6666666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.3333333333%; }
    .col-lg-8 { width: 66.6666666667%; }
    .col-lg-12 { width: 100%; }
}
@media screen and (min-width: 1170px) {
    .col-xl-4 { width: 33.3333333333%; }
    .col-xl-5 { width: 41.6666666667%; }
    .col-xl-7 { width: 58.3333333333%; }
    .col-xl-8 { width: 66.6666666667%; }
}

/* ============ 5. 组件小件：pill / 小标签 / meta / 按钮 ============ */
.tag-pill {
    text-transform: uppercase;
    background-color: var(--t-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
}
.tag-small {
    text-transform: uppercase;
    color: var(--t-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.post-meta { font-size: 0.75rem; line-height: 1.3; }
.post-meta .author, .post-meta .pub-date { margin-right: 16px; position: relative; }
.post-meta .author:after {
    content: "-";
    margin-left: 6px;
    position: absolute;
    margin-top: -1px;
    display: inline-block;
    font-weight: 700;
}
.post-meta .pub-date { text-transform: capitalize; }
.btn {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0px 1.5rem;
    height: 48px;
    line-height: 48px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--theme-color);
    color: #fff;
    transition: all 0.25s;
    position: relative;
    cursor: pointer;
}
.btn:hover { color: #fff; }
.btn:before {
    content: "";
    width: 100%; height: 100%;
    border-radius: var(--border-radius);
    position: absolute; top: 0; left: 0;
    background-color: transparent;
    transition: background-color 0.25s;
}
.btn:hover:before { background-color: rgba(0, 0, 0, 0.08); }
.btn-secondary { width: 100%; }

/* ============ 6. 头部（middle logo / bottom 主导航） ============ */
.site-header { margin-bottom: 3rem; }
.header-middle { padding-top: 24px; padding-bottom: 24px; }
.logo { align-items: center; text-align: center; justify-content: center; }
.logo-text { font-size: 1.5rem; line-height: 1; color: var(--text-color-dark); font-weight: 700; }
.logo-image { max-height: 40px; }
.logo-image img { max-height: 40px; }
@media screen and (min-width: 768px) {
    .header-middle { padding-top: 40px; padding-bottom: 40px; }
    .logo { justify-content: left; margin-bottom: 0; min-height: 100%; }
    .logo-text { font-size: 2rem; }
}
.header-bottom { background-color: var(--theme-color); position: static; width: 100%; }
.header-bottom.sticky {
    position: fixed;
    top: -64px;
    z-index: 900;
    width: 100%;
    transform: translateY(64px);
    transition: all 0.5s;
}
.nav-bar { justify-content: space-between; align-items: center; font-size: 0.875rem; letter-spacing: 1px; }
.nav-left { max-width: 80%; margin-right: 16px; flex-grow: 1; display: flex; align-items: center; }
.nav-list-primary {
    height: 60px;
    user-select: none;
    width: 100%;
    overflow-x: auto;
    display: flex;
    overflow-y: hidden;
}
.nav-list-primary::-webkit-scrollbar { width: 0; }
.nav-list-primary li { float: left; padding: 16px 8px; vertical-align: middle; position: relative; list-style: none; }
.nav-list-primary li a {
    white-space: nowrap;
    color: #fff;
    font-weight: 700;
    display: block;
    line-height: 28px;
    height: 28px;
    padding: 0px 8px;
    transition: all 0.15s ease-in-out;
    border-radius: 3px;
}
.nav-list-primary li a.nav-current, .nav-list-primary li a.nav-current:hover { background: #fff; color: var(--theme-color); }
.nav-list-primary li > a:hover { background: rgba(255, 255, 255, 0.2); }
.nav-right { padding-left: 16px; position: relative; min-width: 117px; }
.nav-right:before {
    content: "";
    width: 1px; height: 24px;
    position: absolute; top: 20px; left: -2px;
    border-left: 1px dotted #fff;
}
.nav-right .nav-list-primary { justify-content: flex-end; }
.nav-list-primary .nav-icon a {
    width: 32px; height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.nav-list-primary .nav-icon a .icon { font-size: 18px; color: #fff; }
.nav-list-primary .nav-icon:hover > a { background: rgba(255, 255, 255, 0.3); }
.menu-icon {
    z-index: 50;
    position: relative;
    height: 24px;
    width: 30px;
    cursor: pointer;
    transition: 0.25s;
    display: none;
    margin-left: 4px;
}
.menu-icon .line {
    width: 100%; height: 2px;
    border-radius: 2px;
    background-color: var(--white);
    position: absolute;
    right: 0;
    transition: all 0.3s;
}
.menu-icon .line:first-child { top: 0; }
.menu-icon .line:nth-child(2) { top: 11px; }
.menu-icon .line:last-child { top: 22px; }
.mobile-nav-wrap {
    background: var(--body-bg);
    position: fixed;
    top: 0; left: -260px;
    visibility: hidden;
    border-left: 1px solid var(--border-color);
    opacity: 0;
    width: 260px;
    max-width: calc(100vw - 44px);
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    z-index: 1060;
    transition: left 0.3s ease-in-out, visibility 0s 0.3s, opacity 0s 0.3s;
}
.mobile-nav-wrap .mobile-nav li a {
    display: block;
    color: var(--text-color-dark);
    width: 100%;
    height: 48px;
    padding: 0 16px;
    line-height: 48px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: var(--border-radius);
}
.mobile-nav-wrap .mobile-nav li a.nav-current { background: var(--light-bg-color); color: var(--theme-color); }
.backdrop {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    position: fixed;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.js-mobile-menu-opened .mobile-nav-wrap { left: 0; visibility: visible; opacity: 1; transition: left 0.3s ease-in-out, visibility 0s 0s, opacity 0s 0s; }
.js-mobile-menu-opened .backdrop { visibility: visible; opacity: 1; transition: all 0.3s; }
@media screen and (max-width: 767px) {
    .nav-left .nav-list { display: none; }
    .nav-left .menu-icon { display: inline-block; }
    .nav-right { min-width: 0; }
}

/* ============ 7. 图片体系（本主题核心约束） ============ */
.post { margin-bottom: 30px; }
.post-img-wrap {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg-color);
}
.post-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    position: relative;
    z-index: 1;
    display: block;
}

/* 7.1 浮层卡（module-1 TOP / module-3 大条 / prev-next） */
.post-compact {
    border-radius: var(--border-radius);
    background-color: var(--light-bg-color);
    overflow: hidden;
    position: relative;
    height: 220px;
}
.post-compact .post-img-wrap { position: relative; z-index: 0; width: 100%; height: 100%; }
.post-compact .post-img-wrap::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    background-image: var(--alpha-bg);
    opacity: 0;
    transition: all 0.4s;
}
.post-compact:hover .post-img-wrap:before { opacity: 0.5; }
.post-compact:hover .post-img { transform: scale(1.03); }
.post-compact .overlay-link { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; }
.post-compact .post-content { position: absolute; width: 100%; left: 0; right: 0; bottom: 0; padding: 24px; }
.post-compact .tag { position: relative; z-index: 1; }
.post-compact .post-title { margin: 16px 0; }
.post-compact.post-large .post-content { padding: 32px; }
.post-compact.post-large:hover .post-img { transform: scale(1.02); }
.post-compact.has-img .post-content { background: var(--alpha-bg); color: #fff; transition: background 1s; }
.post-compact.has-img .post-title { color: var(--white); }
.post-compact .post-meta { color: rgba(255, 255, 255, 0.85); }
@media screen and (min-width: 576px) {
    .featured-posts-wrap .post-large { height: 470px; }
    .featured-posts-wrap .post-large .post-title { font-size: 2.25rem; }
}

/* 7.2 图上竖卡 style-one（module-2 大条 / module-4 全系 / 相关文章） */
.post-style-one .post-img-wrap { width: 100%; height: 160px; margin-bottom: 16px; }
.post-style-one .post-img-wrap:hover .post-img { transform: scale(1.04); }
.post-style-one .post-title { margin: 8px 0 12px 0; }
.post-style-one .post-title a { color: var(--text-color-dark); }
.post-style-one .post-title a:hover { color: var(--theme-color); }
.post-style-one .post-excerpt { margin-top: 16px; margin-bottom: 16px; }
.post-style-one.post-large .post-img-wrap { height: 416px; margin-bottom: 24px; }
.post-style-one.post-large .post-img-wrap:hover .post-img { transform: scale(1.02); }
.post-style-one.post-large .post-title { margin: 16px 0; }
.section-style-two .post-large .post-img-wrap { height: 336px; }

/* 7.3 横排卡 style-two（module-2/3 副条） */
.post-style-two .post-img-wrap { width: 128px; height: 104px; margin-right: 16px; flex: 0 0 auto; }
.post-style-two .post-img-wrap:hover .post-img { transform: scale(1.07); }
.post-style-two .tag-wrap { line-height: 0.8; }
.post-style-two .post-title { margin: 12px 0; }
.post-style-two .post-title a { color: var(--text-color-dark); }
.post-style-two .post-title a:hover { color: var(--theme-color); }
.post-style-two .post-excerpt {
    margin-top: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-style-two.post-large .post-img-wrap { width: 264px; height: 192px; margin-right: 16px; }
.post-style-two.post-large .post-img-wrap:hover .post-img { transform: scale(1.07); }
@media (max-width: 575px) {
    .post-style-two.post-large { flex-wrap: wrap; }
    .post-style-two.post-large .post-img-wrap { width: 100%; height: 160px; margin-right: 0; margin-bottom: 24px; }
}
/* module-3 大区：992+ 浮层大条 636px，576-991 416px */
@media screen and (min-width: 992px) {
    .section-style-one .post-compact { height: 636px; }
    .section-style-one .post-compact .post-title { font-size: 2.25rem; }
}
@media screen and (min-width: 576px) and (max-width: 991px) {
    .section-style-one .post-compact { height: 416px; }
    .section-style-one .post-compact .post-title { font-size: 2.25rem; }
}

/* 7.4 栏目区头（圆点双环标题 + 查看更多） */
.section-header { align-items: center; justify-content: space-between; margin-top: 26px; margin-bottom: 24px; }
.section-title { margin-top: 0; margin-bottom: 0; position: relative; margin-left: 24px; }
.section-title::before {
    content: "";
    width: 19px; height: 19px;
    position: absolute; top: 6px; left: -24px;
    background: var(--t-color);
    border-radius: 50%;
}
.section-title::after {
    content: "";
    width: 15px; height: 15px;
    position: absolute; top: 8px; left: -22px;
    background: var(--t-color);
    border-radius: 50%;
    border: 3px solid var(--body-bg);
}
.section-header-link { color: var(--text-color-dark); font-size: 0.875rem; font-weight: 700; display: inline-flex; align-items: center; }
.section-header-link .icon { color: var(--text-color-dark); margin-left: 4px; transition: all 0.25s; }
.section-header-link:hover { color: var(--theme-color); }
.section-header-link:hover .icon { color: var(--theme-color); margin-left: 8px; }

/* 7.5 post-list 比例框（分类/标签/作者/搜索页网格卡） */
.post-list .post .post-img-wrap { height: auto; padding-bottom: 60%; margin-bottom: 24px; position: relative; }
.post-list .post .post-img { position: absolute; top: 0; left: 0; }
.post-list .post .post-title { margin-top: 16px; }
.post-list .post .post-title a { color: var(--text-color-dark); }
.post-list .post .post-title a:hover { color: var(--theme-color); }

/* ============ 8. 文章页 ============ */
.post-single .post-header { margin-bottom: 2rem; }
.post-single .post-title { font-size: 2.25rem; margin: 16px 0; }
.post-single .post-content { font-size: 1.125rem; line-height: 1.7; }
.post-single .post-content > * { margin-top: 0; margin-bottom: 2rem; }
.post-single .post-content p { margin-bottom: 2rem; }
.post-single .post-content a { border-bottom: 2px solid transparent; }
.post-single .post-content a:hover { border-color: var(--theme-color); }
/* WP 导入正文图带固定 width/height 属性：只限 max-width 时高度仍按属性值渲染会变形，必须 height:auto */
.post-single .post-content img { max-width: 100%; height: auto; }
.post-single .post-content h1, .post-single .post-content h2, .post-single .post-content h3,
.post-single .post-content h4, .post-single .post-content h5 { margin-top: 0; }
/* 详情/独立页：空侧边栏已移除，768+ 正文列取消浮动水平居中（移动端本就满宽） */
@media screen and (min-width: 768px) {
    .post-single-col { float: none; margin-left: auto; margin-right: auto; }
}
.share-wrap { margin: 48px 0px; }
.share-links { justify-content: center; }
.share-links a {
    width: 56px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--light-bg-color);
    color: var(--text-color-dark);
}
.share-links a:hover { color: #fff; background-color: var(--theme-color); }
.share-links a:first-of-type { border-radius: var(--border-radius) 0 0 5px; }
.share-links a:last-of-type { border-radius: 0 5px 5px 0; }
.share-links a .icon { font-size: 20px; }
.share-title { margin-bottom: 24px; }
.about-author-wrap { margin: 48px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.author-card { margin: 40px 0; text-align: left; display: flex; }
.author-card .avatar-wrap {
    width: 100px; height: 100px; line-height: 0;
    border-radius: var(--border-radius);
    background-color: var(--light-bg-color);
    overflow: hidden;
    margin-right: 1.5rem;
    flex: 0 0 auto;
}
.author-card .avatar-wrap .avatar { width: 100%; height: 100%; object-fit: cover; }
.author-card .name { margin-top: 0px; margin-bottom: 8px; }
.author-card a { color: var(--text-color-dark); }
.author-card a:hover { color: var(--theme-color); }
.author-card .bio { color: var(--text-color-light); }
.author-card .permalink { text-transform: uppercase; font-size: 0.75rem; margin-top: 16px; }
.author-card .permalink a { color: var(--text-color-light); }
.author-card .permalink a:hover { color: var(--theme-color); }
@media (max-width: 575px) {
    .author-card { flex-direction: column; text-align: center; align-items: center; }
    .author-card .avatar-wrap { margin: 0 0 16px; }
}

/* ============ 9. 正文排版细节（blockquote/figure/表格/代码） ============ */
.post-content blockquote {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 3rem 0 2.5rem;
    border: 4px solid var(--theme-color);
    padding: 32px;
    border-radius: 24px;
    font-weight: 700;
    position: relative;
}
.post-content blockquote:before {
    content: '"';
    color: #fff;
    background-color: var(--theme-color);
    outline: 4px solid var(--body-bg);
    width: 40px; height: 40px;
    position: absolute;
    font-size: 56px;
    line-height: 62px;
    text-align: center;
    top: -24px; left: 32px;
    border-radius: var(--border-radius);
}
.post-content blockquote p { margin-bottom: 0; }
.post-content figure { margin: 2rem 0; }
.post-content figcaption { font-size: 0.875rem; text-align: center; padding: 8px; color: var(--text-color-light); }
.post-content table, .post-content th, .post-content td { border: 1px solid var(--border-color); }
.post-content table { border-collapse: collapse; width: 100%; max-width: 100%; margin-bottom: 2rem; }
.post-content th { color: var(--text-color-dark); }
.post-content th, .post-content td { padding: 4px 16px; }
.post-content pre {
    overflow: auto;
    background-color: var(--light-bg-color);
    padding: 1.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: var(--bitbox-font-monospace);
}
.post-content :not(pre) > code {
    font-size: 0.875em;
    background-color: var(--light-bg-color);
    padding: 2px 6px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: var(--bitbox-font-monospace);
}
.post-content hr { text-align: center; border-bottom: 1px solid var(--border-color); margin-top: 2rem; margin-bottom: 3rem; }
.post-content ul, .post-content ol { padding-left: 1.3rem; }

/* ============ 10. 分类/标签归档头（毛玻璃封面） ============ */
.archive-cover { position: relative; margin-bottom: 32px; border-radius: var(--border-radius); overflow: hidden; background-color: var(--light-bg-color); }
.archive-cover.has-image { padding: 32px; }
.archive-cover.has-image .feature-image {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
@media screen and (min-width: 576px) {
    .archive-cover.has-image { padding: 64px; }
}
.cover-content-wrapper {
    position: relative;
    background: var(--bitbox-blur-background);
    padding: 32px;
    border-radius: var(--border-radius);
    -webkit-backdrop-filter: saturate(var(--bitbox-blur-saturate)) blur(var(--bitbox-blur));
    backdrop-filter: saturate(var(--bitbox-blur-saturate)) blur(var(--bitbox-blur));
}
.archive-cover:not(.has-image) .cover-content-wrapper { background: transparent; }
.cover-content-wrapper h1 { margin-top: 0; margin-bottom: 0; line-height: 1; }
.cover-content-wrapper .tag-description { margin-top: 16px; }
.cover-tag .cover-content-wrapper { background: var(--bitbox-blur-background-2); color: #fff; }
.cover-tag .cover-content-wrapper .tag-name { color: #fff; }
.archive-cover:not(.has-image).cover-tag .cover-content-wrapper { color: var(--text-color-normal); }
.archive-cover:not(.has-image).cover-tag .tag-name { color: var(--text-color-dark); }

/* ============ 11. 页脚 ============ */
.site-footer {
    background: var(--footer-bg-color);
    margin-top: 64px;
    padding-top: 48px;
    color: var(--footer-text-color);
}
.site-footer a { color: var(--footer-text-color); border-bottom: 1px solid transparent; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.site-footer.no-widgets { padding-top: 0; }
.site-footer.no-widgets .footer-bottom-wrap { border-top: none; padding-top: 0; }
.footer-bottom-wrap {
    border-top: 1px solid var(--footer-border-color);
    padding-top: 32px;
    margin: 32px 0;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 8px;
}
.bitbox-back-to-top { cursor: pointer; }
.bitbox-back-to-top .icon { vertical-align: -0.15em; }

/* ============ 12. 全屏搜索弹窗 ============ */
.search-popup {
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    height: 100vh;
    background: var(--body-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-in-out;
    z-index: -2;
}
.search-popup.visible { opacity: 1; visibility: visible; z-index: 1100; }
.search-popup .close-button {
    position: absolute;
    right: 6px; top: 18px;
    line-height: 0;
    z-index: 999;
    color: var(--text-color-light);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.search-popup .close-button:hover { color: var(--text-color-dark); }
.search-popup .close-button .icon { font-size: 2.2rem; }
.search-popup .popup-inner {
    max-width: 700px;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 16px;
    height: calc(100vh - 6rem);
}
.search-popup .inner-container { height: 100%; display: flex; flex-direction: column; }
.search-form { background: var(--light-bg-color); padding: 0.5rem 1rem; align-items: center; margin-bottom: 0.5rem; }
.search-form .search-icon .icon { font-size: 26px; }
.search-form .field-group-search-form { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
input[type="text"].search-input {
    margin-bottom: 0;
    background: var(--light-bg-color);
    border: none;
    font-size: 1.125rem;
    height: 48px;
    width: 100%;
    color: var(--text-color-normal);
    outline: none;
}
.search-result { overflow-y: auto; height: -webkit-fill-available; }
.search-result .search-results-item {
    background: var(--light-bg-color);
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
    list-style: none;
}
.search-result .search-results-item:last-child { border-bottom: none; margin-bottom: 32px; }
.search-result .search-results-item a { color: var(--text-color-normal); display: block; }
.search-result .search-results-item a:hover .title { color: var(--theme-color); }
.search-result .search-results-item .title { margin-top: 0; margin-bottom: 8px; }
.search-result .search-results-item .meta { font-size: 0.75rem; color: var(--text-color-light); }
.search-hl { color: var(--theme-color); font-style: normal; font-weight: 700; }
@media (max-width: 767px) { .search-form { margin-bottom: 1rem; } }

/* ============ 13. 分页 ============ */
.pagination { margin: 1rem 0 2rem; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.pagination li a, .pagination li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    background: var(--light-bg-color);
    color: var(--text-color-dark);
    border-radius: var(--border-radius);
    font-weight: 700;
}
.pagination li a:hover { background: var(--theme-color); color: #fff; }
.pagination li.active span { background: var(--theme-color); color: #fff; }
.pagination li.disabled span { opacity: 0.45; }

/* ============ 14. 错误页 ============ */
.error-wrap { margin-bottom: 2rem; padding: 2rem 0 3rem; }
.error-wrap-inner { margin: 0 auto; padding: 2.5rem 2rem; max-width: 760px; }
.error-code { font-size: 5rem; line-height: 1; font-weight: 700; margin-top: 0; margin-bottom: 0.5rem; position: relative; color: var(--theme-color); display: block; }
.error-message { margin-top: 0.5rem; }
.message-manual { margin-bottom: 32px; }
@media (min-width: 768px) {
    .error-wrap { margin-top: 4rem; }
    .error-wrap-inner { padding: 4rem 2rem; }
    .error-code { font-size: 8rem; }
}

/* ============ 15. 杂项页面块 ============ */
.post-list-empty { padding: 48px 0; text-align: center; color: var(--text-color-light); }
.archive-year { margin-top: 2rem; }
.archive-year h2 { border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.archive-list { list-style: none; padding-left: 0; }
.archive-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.archive-list li a { color: var(--text-color-dark); }
.archive-list li a:hover { color: var(--theme-color); }
.archive-list time { font-size: 0.75rem; color: var(--text-color-light); flex: 0 0 auto; margin-left: 16px; }
.tax-grid { margin-top: 1rem; }
.tax-item { display: block; background: var(--light-bg-color); border-radius: var(--border-radius); padding: 20px 24px; margin-bottom: 16px; color: var(--text-color-dark); font-weight: 700; }
.tax-item:hover { color: var(--theme-color); }
.tax-item small { display: block; font-weight: 400; color: var(--text-color-light); margin-top: 4px; }

/* KP-PEAK-PRO visual upgrade */
:root {
  --body-bg:#f6f7f5; --theme-color:#ef2638; --light-bg-color:#fff;
  --text-color-normal:#5c6570; --text-color-dark:#17202a; --text-color-light:#8b939d;
  --border-color:#e6e9ed; --border-radius:16px; --footer-bg-color:#141a21;
  --pro-surface:rgba(255,255,255,.86); --pro-line:rgba(23,32,42,.08);
  --pro-shadow:0 18px 45px rgba(24,31,40,.08); --pro-shadow-hover:0 24px 60px rgba(24,31,40,.14);
}
[data-theme="dark"] { --body-bg:#10151b; --light-bg-color:#171e26; --text-color-normal:#b5bec9; --text-color-dark:#f1f4f7; --text-color-light:#87919c; --border-color:#2a333e; --pro-surface:rgba(23,30,38,.9); --pro-line:rgba(255,255,255,.1); --pro-shadow:0 18px 50px rgba(0,0,0,.22); --pro-shadow-hover:0 26px 65px rgba(0,0,0,.35); }
html { scroll-behavior:smooth; }
body { background:radial-gradient(circle at 12% -10%, rgba(239,38,56,.08), transparent 28rem), var(--body-bg); }
.site { overflow:clip; }
.container { max-width:1240px; padding-left:24px; padding-right:24px; }
.row { margin-left:-12px; margin-right:-12px; }
[class*="col-"] { padding-left:12px; padding-right:12px; }
.site-header { margin-bottom:2.25rem; }
.header-middle { padding:30px 0 26px; }
.logo { justify-content:flex-start; }
.logo-image img { max-height:48px; }
.header-bottom { background:color-mix(in srgb, var(--body-bg) 88%, transparent); border-top:1px solid var(--pro-line); border-bottom:1px solid var(--pro-line); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.header-bottom.sticky { top:-1px; transform:translateY(0); box-shadow:0 12px 30px rgba(20,25,32,.1); }
.nav-bar { min-height:64px; letter-spacing:.02em; }
.nav-list-primary { height:64px; gap:4px; align-items:center; }
.nav-list-primary li { padding:10px 2px; }
.nav-list-primary li a { color:var(--text-color-normal); border-radius:10px; padding:0 14px; font-size:.83rem; }
.nav-list-primary li a.nav-current, .nav-list-primary li a.nav-current:hover { background:var(--theme-color); color:#fff; box-shadow:0 8px 18px rgba(239,38,56,.22); }
.nav-list-primary li > a:hover { background:rgba(239,38,56,.09); color:var(--theme-color); transform:translateY(-1px); }
.nav-list-primary .nav-icon a { color:var(--text-color-normal); border-radius:10px; }
.nav-list-primary .nav-icon:hover > a { background:rgba(239,38,56,.09); color:var(--theme-color); }
.home-layout-cms .block { margin-bottom:2.5rem; }
.post { margin-bottom:24px; }
.post-img-wrap, .post-compact, .post-style-one, .post-style-two { border-radius:var(--border-radius); overflow:hidden; }
.post-img-wrap { background:#dfe4ea; }
.post-img { transition:transform .55s cubic-bezier(.2,.7,.2,1), filter .55s ease; }
.post-compact { box-shadow:var(--pro-shadow); isolation:isolate; transition:transform .25s ease, box-shadow .25s ease; }
.post-compact:hover, .post-style-one:hover, .post-style-two:hover { transform:translateY(-3px); box-shadow:var(--pro-shadow-hover); }
.post-compact.has-img .post-content { background:linear-gradient(0deg, rgba(7,11,16,.92), rgba(7,11,16,.65) 48%, rgba(7,11,16,0)); padding:28px; }
.post-compact.post-large .post-title { font-size:clamp(1.45rem, 2.2vw, 2rem); line-height:1.15; }
.tag-pill { height:26px; line-height:26px; padding:0 10px; border-radius:999px; font-size:11px; letter-spacing:.06em; box-shadow:0 5px 12px rgba(239,38,56,.16); }
.section-header { margin-top:34px; margin-bottom:18px; padding:16px 18px; border:1px solid var(--pro-line); border-radius:14px; background:var(--pro-surface); box-shadow:0 8px 26px rgba(24,31,40,.04); }
.section-title { margin-left:18px; font-size:1.15rem; letter-spacing:.04em; }
.section-title::before { width:10px; height:30px; top:0; left:-18px; border-radius:6px; }
.section-title::after { display:none; }
.section-header-link { color:#77808c; font-size:.78rem; }
.post-style-one, .post-style-two { background:var(--pro-surface); border:1px solid var(--pro-line); box-shadow:var(--pro-shadow); transition:transform .25s ease, box-shadow .25s ease; }
.post-style-one { padding-bottom:18px; }
.post-style-one > .tag-wrap, .post-style-one > .post-title, .post-style-one > .post-meta, .post-style-one > .post-excerpt { margin-left:18px; margin-right:18px; }
.post-style-one .post-img-wrap { margin-bottom:18px; border-radius:0; }
.post-style-one .post-title { margin-top:10px; font-size:1.15rem; line-height:1.35; }
.post-style-one.post-large .post-title { font-size:clamp(1.35rem, 2vw, 1.75rem); }
.post-style-two { padding:12px; align-items:center; }
.post-style-two .post-img-wrap { border-radius:12px; margin-right:14px; }
.post-style-two .post-content { min-width:0; }
.post-style-two .post-title { margin:8px 0; line-height:1.3; }
.post-meta { color:#77808c; font-size:.72rem; letter-spacing:.02em; }
.post-single-col { max-width:860px; }
.post-single .post-header { padding-bottom:24px; margin-bottom:34px; border-bottom:1px solid var(--pro-line); }
.post-single .post-title { font-size:clamp(2rem, 4.5vw, 3.5rem); line-height:1.12; letter-spacing:-.045em; margin:18px 0; }
.post-single .post-content { font-size:1.08rem; line-height:1.85; }
.post-single .post-content > p:first-child { font-size:1.22rem; color:var(--text-color-dark); }
.post-content blockquote { border-width:0 0 0 4px; border-radius:0 16px 16px 0; background:rgba(239,38,56,.06); padding:24px 28px; font-size:1.28rem; }
.post-content blockquote:before { display:none; }
.post-content pre { border:1px solid var(--pro-line); border-radius:14px; }
.share-wrap { padding:22px 0; border-top:1px solid var(--pro-line); border-bottom:1px solid var(--pro-line); }
.share-links a { width:52px; height:44px; background:var(--pro-surface); border:1px solid var(--pro-line); }
.about-author-wrap { border:0; margin:38px 0; padding:22px; background:var(--pro-surface); border:1px solid var(--pro-line); border-radius:18px; box-shadow:var(--pro-shadow); }
.author-card { margin:0; align-items:center; }
.author-card .avatar-wrap { width:72px; height:72px; border-radius:18px; margin-right:16px; }
.archive-cover { border-radius:20px; box-shadow:var(--pro-shadow); }
.cover-content-wrapper { border-radius:16px; }
.pagination li a, .pagination li span { border:1px solid var(--pro-line); border-radius:12px; }
.tax-item { border:1px solid var(--pro-line); border-radius:16px; box-shadow:0 8px 24px rgba(24,31,40,.04); }
.site-footer { margin-top:80px; padding:34px 0 12px; }
.footer-bottom-wrap { margin:18px 0; padding-top:20px; }
.search-popup { background:color-mix(in srgb, var(--body-bg) 92%, transparent); backdrop-filter:blur(20px); }
.search-popup .popup-inner { max-width:820px; margin-top:7rem; }
.search-form { padding:12px 18px; border:1px solid var(--pro-line); border-radius:16px; box-shadow:var(--pro-shadow); }
.search-result .search-results-item { border:1px solid var(--pro-line); border-radius:14px; box-shadow:0 8px 24px rgba(24,31,40,.05); }
@media (max-width:767px) {
  .container { padding-left:16px; padding-right:16px; }
  .header-middle { padding:22px 0 18px; }
  .logo { justify-content:center; }
  .logo-image img { max-height:40px; }
  .nav-list-primary li a { padding:0 10px; }
  .home-layout-cms .block { margin-bottom:1.6rem; }
  .section-header { margin-top:22px; padding:13px 14px; }
  .post-compact.has-img .post-content { padding:20px; }
  .post-style-one.post-large .post-img-wrap { height:min(66vw,340px); }
  .post-style-two.post-large .post-img-wrap { width:42%; height:140px; }
  .post-single .post-title { font-size:2.05rem; }
  .site-footer { margin-top:50px; }
}

/* KP-PEAK-PRO v1.1 — Redline electronic magazine direction */
:root {
  --body-bg:#eceeeb; --theme-color:#ff2638; --light-bg-color:#ffffff;
  --text-color-normal:#59616c; --text-color-dark:#11151b; --text-color-light:#89919b;
  --border-color:rgba(17,21,27,.12); --pro-ink:#11151b; --pro-panel:#15191f;
  --pro-red:#ff2638; --pro-red-deep:#c8102e; --pro-paper:#f7f7f3;
  --pro-grid:rgba(17,21,27,.07); --pro-shadow:0 20px 48px rgba(15,19,25,.14);
  --pro-shadow-hover:0 28px 70px rgba(15,19,25,.24);
}
[data-theme="dark"] {
  --body-bg:#0e1116; --light-bg-color:#171b22; --text-color-normal:#b2bac5; --text-color-dark:#f6f7f8;
  --text-color-light:#89929e; --border-color:rgba(255,255,255,.12); --pro-paper:#141920;
  --pro-grid:rgba(255,255,255,.08); --pro-shadow:0 20px 54px rgba(0,0,0,.28); --pro-shadow-hover:0 30px 78px rgba(0,0,0,.42);
}
body {
  background-color:var(--body-bg);
  background-image:linear-gradient(var(--pro-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pro-grid) 1px, transparent 1px), radial-gradient(circle at 84% 4%, rgba(255,38,56,.1), transparent 25rem);
  background-size:32px 32px, 32px 32px, auto;
}
.header-middle { position:relative; background:var(--pro-paper); border-top:4px solid var(--pro-ink); border-bottom:1px solid var(--pro-grid); padding:36px 0 32px; }
.header-middle .container::before { content:"KP / ELECTRONIC MAGAZINE"; display:block; margin-bottom:14px; color:var(--pro-red); font:700 .68rem/1 var(--bitbox-font-monospace); letter-spacing:.16em; }
.header-middle .container::after { content:"EDIT / REPORT / CULTURE"; position:absolute; right:24px; bottom:34px; color:var(--text-color-light); font:700 .65rem/1 var(--bitbox-font-monospace); letter-spacing:.13em; }
.logo-image img { max-height:50px; }
.header-bottom { background:var(--pro-ink); border:0; box-shadow:0 10px 0 var(--pro-red); }
.header-bottom.sticky { box-shadow:0 8px 0 var(--pro-red), 0 18px 32px rgba(0,0,0,.16); }
.nav-bar { min-height:58px; }
.nav-list-primary { height:58px; gap:0; }
.nav-list-primary li { padding:7px 3px; }
.nav-list-primary li a { color:#e7e9eb; border-radius:4px; font-size:.77rem; letter-spacing:.1em; text-transform:uppercase; }
.nav-list-primary li a::before { content:"/"; color:rgba(255,255,255,.28); margin-right:8px; }
.nav-list-primary li a.nav-current, .nav-list-primary li a.nav-current:hover { background:var(--pro-red); color:#fff; box-shadow:none; }
.nav-list-primary li > a:hover { background:rgba(255,255,255,.1); color:#fff; transform:none; }
.nav-list-primary .nav-icon a { border-radius:4px; color:#fff; }
.nav-list-primary .nav-icon a::before { display:none; }
.home-layout-cms > .container > .row { counter-reset:mag-section; }
.home-module-1 { position:relative; padding-top:20px; }
.home-module-1::before { content:"01  /  FEATURED  /  KP-ACG DAILY"; display:block; margin:0 12px 12px; color:var(--pro-red); font:700 .68rem/1 var(--bitbox-font-monospace); letter-spacing:.16em; }
.home-module-1 .featured-posts-wrap { position:relative; padding:14px 8px 8px; margin-bottom:3rem; background:var(--pro-ink); border-radius:6px; box-shadow:var(--pro-shadow); }
.home-module-1 .featured-posts-wrap::after { content:""; position:absolute; top:0; right:20%; width:1px; height:100%; background:rgba(255,255,255,.08); pointer-events:none; }
.home-module-1 .post-compact { border-radius:4px; border:1px solid rgba(255,255,255,.12); box-shadow:none; }
.home-module-1 .post-compact.has-img .post-content { padding:30px; background:linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.58) 46%, rgba(0,0,0,0) 100%); }
.home-module-1 .post-compact.post-large .post-title { max-width:90%; font-size:clamp(1.75rem, 3vw, 3.3rem); letter-spacing:-.045em; }
.home-module-1 .post-compact:not(.post-large) .post-title { font-size:1.08rem; }
.home-module-1 .post-compact::before { content:""; position:absolute; left:0; top:0; width:38%; height:4px; background:var(--pro-red); z-index:3; }
.post-compact .tag-pill { background:var(--pro-red); box-shadow:none; }
.section-header { position:relative; margin-top:42px; margin-bottom:20px; padding:18px 18px 16px 22px; border:0; border-radius:4px; background:var(--pro-ink); box-shadow:var(--pro-shadow); overflow:hidden; }
.section-header::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(255,38,56,.16), transparent 42%); pointer-events:none; }
.section-header::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:4px; background:var(--pro-red); }
.section-title { position:relative; z-index:1; color:#fff; margin-left:26px; font-size:1.4rem; letter-spacing:.06em; }
.section-title::before { width:6px; height:34px; top:-1px; left:-18px; border-radius:0; background:var(--pro-red); }
.section-title::after { display:block; content:"0" counter(mag-section); counter-increment:mag-section; position:absolute; left:-62px; top:1px; color:rgba(255,255,255,.28); font:700 .68rem/1 var(--bitbox-font-monospace); letter-spacing:.1em; }
.section-header-link { position:relative; z-index:1; color:rgba(255,255,255,.72); letter-spacing:.12em; }
.section-header-link .icon { color:var(--pro-red); }
.post-style-one, .post-style-two { border-radius:4px; border:1px solid rgba(17,21,27,.14); background:var(--pro-paper); box-shadow:0 12px 30px rgba(15,19,25,.08); }
[data-theme="dark"] .post-style-one, [data-theme="dark"] .post-style-two { border-color:rgba(255,255,255,.1); }
.post-style-one { position:relative; }
.post-style-one::after { content:""; position:absolute; left:18px; right:18px; bottom:0; height:3px; background:var(--pro-red); transform:scaleX(.28); transform-origin:left; transition:transform .25s ease; }
.post-style-one:hover::after { transform:scaleX(1); }
.post-style-one.post-large::before { content:"FEATURE"; position:absolute; top:14px; left:14px; z-index:2; padding:6px 8px; color:#fff; background:var(--pro-red); font:700 .62rem/1 var(--bitbox-font-monospace); letter-spacing:.13em; }
.post-style-one .post-title { letter-spacing:-.02em; }
.post-style-two { border-left:4px solid var(--pro-red); }
.post-style-two .tag-pill { height:22px; line-height:22px; padding:0 8px; font-size:10px; box-shadow:none; }
.post-list .post { border-radius:4px; background:var(--pro-paper); border:1px solid var(--pro-grid); padding-bottom:16px; }
.post-list .post .post-img-wrap { border-radius:0; }
.post-single .post-title { letter-spacing:-.055em; }
.post-single .post-header::before { content:"DOSSIER / ORIGINAL REPORT"; display:block; margin-bottom:18px; color:var(--pro-red); font:700 .66rem/1 var(--bitbox-font-monospace); letter-spacing:.14em; }
.post-content h2, .post-content h3 { letter-spacing:-.03em; border-left:4px solid var(--pro-red); padding-left:14px; }
.site-footer { position:relative; background:var(--pro-ink); border-top:6px solid var(--pro-red); }
.site-footer::before { content:"KP / STAY CURIOUS"; display:block; margin-bottom:18px; color:var(--pro-red); font:700 .66rem/1 var(--bitbox-font-monospace); letter-spacing:.16em; }
@media (max-width:767px) {
  body { background-size:24px 24px, 24px 24px, auto; }
  .header-middle { padding:24px 0 22px; }
  .header-middle .container::after { display:none; }
  .header-bottom { box-shadow:0 5px 0 var(--pro-red); }
  .nav-list-primary li a::before { display:none; }
  .home-module-1 { padding-top:12px; }
  .home-module-1::before { margin-bottom:10px; font-size:.58rem; }
  .home-module-1 .featured-posts-wrap { padding:8px 4px 4px; border-radius:4px; }
  .home-module-1 .post-compact.post-large .post-title { font-size:1.72rem; }
  .section-header { margin-top:28px; padding:15px 14px 14px 18px; }
  .section-title { font-size:1.15rem; }
  .section-title::after { left:-42px; }
}
