@charset "utf-8";
/* =========================================================================
   赛博朋克子主题 (yk_cool_summer_cp) —— 主样式
   加载顺序：bootstrap.min.css -> style.css -> cyber.css（本文件，最后覆盖）
   无任何外链资源：不使用 url()/http(s)/@import，可离线使用
   断点：<=768px 手机独立布局；>768px 仅换配色与字体，不动原栅格
   ========================================================================= */

:root {
    --cp-bg: #0a0a12;
    --cp-bg-deep: #06060c;
    --cp-surface: #101024;
    --cp-surface-2: #14142b;
    --cp-cyan: #00f0ff;
    --cp-magenta: #ff2b6d;
    --cp-purple: #8b5cf6;
    --cp-ink: #d7e0ea;          /* 正文：足够对比度的浅灰白，不做整页荧光 */
    --cp-ink-soft: #9aa7b8;     /* 次要文字 */
    --cp-ink-strong: #eef7ff;
    --cp-line: rgba(0, 240, 255, 0.24);
    --cp-line-soft: rgba(139, 92, 246, 0.28);
    --cp-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
    --cp-glow-cyan: 0 0 18px rgba(0, 240, 255, 0.28);
    --cp-glow-magenta: 0 0 18px rgba(255, 43, 109, 0.26);
    --cp-radius: 12px;
}

/* ------------------------------------------------------------------ 基础 */
html {
    background-color: var(--cp-bg-deep);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--cp-bg);
    /* 网格纹理：纯 CSS 渐变，无图片 */
    background-image:
        radial-gradient(1100px 520px at 50% -180px, rgba(139, 92, 246, 0.20), transparent 70%),
        radial-gradient(760px 420px at 100% 0%, rgba(255, 43, 109, 0.12), transparent 72%),
        radial-gradient(760px 420px at 0% 12%, rgba(0, 240, 255, 0.12), transparent 70%),
        linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px);
    background-size: auto, auto, auto, 44px 44px, 44px 44px;
    background-attachment: fixed;
    color: var(--cp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

/* 扫描线覆盖层：纯 CSS，pointer-events:none 不挡点击 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.22) 0px,
        rgba(0, 0, 0, 0.22) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.28;
}

::selection {
    background: rgba(0, 240, 255, 0.30);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #08080f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(139, 92, 246, 0.55));
    border-radius: 10px;
}

/* ------------------------------------------------------------------ 文字 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--cp-mono);
    color: var(--cp-ink-strong);
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
}

a {
    color: #7fe6f2;
    text-decoration: none !important;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:hover,
a:focus {
    color: var(--cp-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.75), 0 0 22px rgba(0, 240, 255, 0.35);
}

strong, b {
    color: var(--cp-ink-strong);
}

hr {
    border-top: 1px solid var(--cp-line);
    opacity: 0.6;
}

.text-muted {
    color: var(--cp-ink-soft) !important;
}

.text-info {
    color: var(--cp-cyan) !important;
}

.text-danger {
    color: var(--cp-magenta) !important;
}

blockquote {
    border-left: 3px solid var(--cp-magenta);
    background: rgba(255, 43, 109, 0.07);
    color: #e6eef7;
}

code, kbd, samp {
    font-family: var(--cp-mono);
    color: #8ef0ff;
    background: rgba(0, 240, 255, 0.10);
    border-radius: 5px;
    padding: 1px 5px;
}

pre {
    font-family: var(--cp-mono);
    background: #0b0b16;
    color: #c8f6ff;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.07);
    padding: 12px 14px;
    overflow-x: auto;
}

pre code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

/* ------------------------------------------------------------------ 顶部导航（桌面沿用原布局，仅换配色） */
.navbar-fixed-top {
    background: rgba(10, 10, 18, 0.94) !important;
    border: 0;
    border-bottom: 1px solid var(--cp-line);
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.35), 0 8px 26px rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.navbar-default {
    background-color: transparent;
    border-color: transparent;
}

.navbar-default .navbar-brand,
.navbar-brand {
    color: var(--cp-ink-strong) !important;
    font-family: var(--cp-mono);
    letter-spacing: 0.06em;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.navbar-default .navbar-brand:hover {
    color: var(--cp-cyan) !important;
}

.navbar-default .navbar-nav > li > a {
    color: #c7d4e2;
    font-family: var(--cp-mono);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a {
    color: var(--cp-cyan);
    background: rgba(0, 240, 255, 0.08);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.navbar-default .navbar-toggle {
    border-color: rgba(0, 240, 255, 0.45);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: rgba(0, 240, 255, 0.12);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--cp-cyan);
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.85);
}

.navbar-default .navbar-collapse {
    border-color: var(--cp-line);
}

.yk_menu > ul > li > ul {
    background-color: #101024;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.6);
}

.yk_menu > ul > li > ul a {
    color: #c7d4e2;
}

.yk_menu > ul > li > ul a:hover {
    color: var(--cp-cyan);
}

/* 表单 / 按钮 */
.form-control,
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="number"],
textarea,
select {
    background-color: #0d0d1a;
    border: 1px solid rgba(0, 240, 255, 0.28);
    color: var(--cp-ink);
    border-radius: 8px;
    box-shadow: none;
}

.form-control:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
    background-color: #101024;
    border-color: var(--cp-cyan);
    color: var(--cp-ink-strong);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), 0 0 18px rgba(0, 240, 255, 0.28);
}

.form-control::-webkit-input-placeholder,
input::placeholder,
textarea::placeholder {
    color: #6d7a8b;
}

.btn {
    font-family: var(--cp-mono);
    border-radius: 8px;
    letter-spacing: 0.04em;
    border-width: 1px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-info,
.btn-success {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.92), rgba(139, 92, 246, 0.92));
    border-color: rgba(0, 240, 255, 0.6);
    color: #04121a;
    font-weight: 600;
    text-shadow: none;
}

.btn-info:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #35f7ff, #a585ff);
    box-shadow: var(--cp-glow-cyan);
    color: #04121a;
}

.btn-default {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    color: #b8e9f4;
}

.btn-default:hover {
    background: rgba(0, 240, 255, 0.16);
    border-color: var(--cp-cyan);
    color: var(--cp-cyan);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(255, 43, 109, 0.9), rgba(139, 92, 246, 0.9));
    border-color: rgba(255, 43, 109, 0.6);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: var(--cp-glow-magenta);
    color: #fff;
}

/* ------------------------------------------------------------------ 卡片 / 面板（桌面沿用原结构，只换皮） */
.panel {
    background: linear-gradient(180deg, var(--cp-surface-2), var(--cp-surface));
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
    color: var(--cp-ink);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.10), var(--cp-glow-cyan);
    overflow: hidden;
}

.panel:hover {
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), 0 0 26px rgba(0, 240, 255, 0.30) !important;
}

.panel-info,
.panel-success {
    border-color: var(--cp-line);
}

.panel-info > .panel-heading,
.panel-success > .panel-heading,
.panel-heading {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.16), rgba(255, 43, 109, 0.12) 48%, rgba(139, 92, 246, 0.18)) !important;
    border-bottom: 1px solid var(--cp-line) !important;
    border-radius: var(--cp-radius) var(--cp-radius) 0 0 !important;
    color: var(--cp-ink-strong) !important;
}

.panel-heading h2,
.panel-heading h3,
.panel-title {
    color: var(--cp-ink-strong) !important;
    font-family: var(--cp-mono);
    line-height: 1.45;
    margin: 0;
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.panel-heading h2 a,
.panel-title a {
    color: var(--cp-ink-strong);
}

.panel-heading h2 a:hover {
    color: var(--cp-cyan);
}

.panel-body {
    color: var(--cp-ink);
}

.panel-footer {
    background: rgba(6, 6, 14, 0.65) !important;
    border-top: 1px solid rgba(0, 240, 255, 0.16) !important;
    color: var(--cp-ink-soft) !important;
    border-radius: 0 0 var(--cp-radius) var(--cp-radius);
}

/* 分类 / 标签小药丸 */
.label,
.badge {
    font-family: var(--cp-mono);
    font-weight: 500;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    text-shadow: none;
}

.label-info,
.label-success,
.badge {
    background: rgba(0, 240, 255, 0.13) !important;
    border: 1px solid rgba(0, 240, 255, 0.42);
    color: #9df6ff !important;
}

a:hover > .label-info,
.yk_a_tag:hover .label-info {
    background: rgba(0, 240, 255, 0.24) !important;
    border-color: var(--cp-cyan);
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

.cp-card-cat,
.cp-card-meta {
    font-family: var(--cp-mono);
    font-size: 12.5px;
    color: var(--cp-ink-soft);
}

.cp-card-cat a,
.cp-card-cat {
    color: #ff8fb0;
}

.cp-card-cat a:hover {
    color: var(--cp-magenta);
    text-shadow: 0 0 10px rgba(255, 43, 109, 0.75);
}

.cp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.cp-card-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cp-card-excerpt {
    color: #b9c6d6;
    margin: 0;
}

.glyphicon {
    color: rgba(0, 240, 255, 0.75);
}

/* 文章缩略图 */
.yk_panel_body {
    overflow: hidden;
}

.yk_panel_body img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.22);
}

/* ------------------------------------------------------------------ 正文（可读性优先） */
.panel-body.content {
    background-image: none !important;
    background-color: rgba(9, 9, 18, 0.35);
    border-top: 1px solid rgba(0, 240, 255, 0.16) !important;
    color: var(--cp-ink);
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
    padding: 18px 20px 22px;
}

.panel-body.content p {
    margin: 0 0 1.1em;
    color: var(--cp-ink);
}

.panel-body.content h2,
.panel-body.content h3,
.panel-body.content h4 {
    margin: 1.6em 0 0.7em;
    padding-left: 11px;
    border-left: 3px solid var(--cp-cyan);
    font-size: 1.16em;
    line-height: 1.5;
}

.panel-body.content h2 {
    font-size: 1.28em;
}

.panel-body.content h2::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.5), rgba(139, 92, 246, 0.15), transparent);
}

.panel-body.content a {
    border-bottom: 1px dashed rgba(0, 240, 255, 0.45);
}

.panel-body.content a:hover {
    border-bottom-color: var(--cp-cyan);
}

.panel-body.content img,
.panel-body.content video,
.panel-body.content iframe,
article img {
    max-width: 100% !important;
    height: auto !important;
}

.panel-body.content img {
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.22);
}

.panel-body.content ul,
.panel-body.content ol {
    margin: 0 0 1.1em;
    padding-left: 1.5em;
    list-style: disc;
}

.panel-body.content ol {
    list-style: decimal;
}

.panel-body.content li {
    margin: 0.35em 0;
}

.panel-body.content li::marker {
    color: var(--cp-cyan);
}

.panel-body.content table {
    width: 100%;
    margin: 0 0 1.2em;
    border-collapse: collapse;
}

.panel-body.content th,
.panel-body.content td {
    border: 1px solid rgba(0, 240, 255, 0.20);
    padding: 8px 10px;
}

.panel-body.content th {
    background: rgba(0, 240, 255, 0.08);
    color: var(--cp-ink-strong);
    font-family: var(--cp-mono);
}

.yk_post_single_header {
    font-family: var(--cp-mono);
    font-size: 13px;
    color: var(--cp-ink-soft);
}

/* ------------------------------------------------------------------ 侧栏 / 页脚 / 分页 */
.yk_web_master {
    background: linear-gradient(180deg, #14142b, #0c0c18) !important;
    border: 1px solid var(--cp-line-soft);
    border-radius: var(--cp-radius);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.22) !important;
    color: var(--cp-ink);
}

.webmaster {
    border-right: 1px solid var(--cp-line);
}

.media-heading a {
    color: #cfe2ef;
}

.media-heading a:hover {
    color: var(--cp-cyan);
}

.yk_img_slide img.media-object {
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.22);
}

.foot-wrap {
    background: var(--cp-bg-deep) !important;
    border-top: 1px solid var(--cp-line);
    color: var(--cp-ink-soft);
    box-shadow: inset 0 1px 0 rgba(0, 240, 255, 0.10);
}

.foot-wrap h3 {
    color: var(--cp-cyan) !important;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.foot-wrap a {
    color: #9fd8e4;
}

.yk_foot_link li a:hover {
    color: var(--cp-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.pagination > li > a,
.pagination > li > span {
    background-color: #0d0d1a;
    border-color: rgba(0, 240, 255, 0.25);
    color: #9df6ff;
    font-family: var(--cp-mono);
}

.pagination > li > a:hover {
    background-color: rgba(0, 240, 255, 0.14);
    border-color: var(--cp-cyan);
    color: var(--cp-cyan);
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background-color: var(--cp-cyan) !important;
    border-color: var(--cp-cyan) !important;
    color: #04121a !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.page-header {
    border-bottom: 1px solid var(--cp-line);
}

/* 轮播 */
.carousel-caption {
    background: rgba(6, 6, 14, 0.72);
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    text-shadow: none;
}

.carousel-indicators li {
    border-color: var(--cp-cyan);
    background-color: rgba(0, 240, 255, 0.3);
}

.carousel-indicators .active {
    background-color: var(--cp-cyan);
}

.carousel-inner > .item > img {
    width: 100%;
    height: auto;
    border-radius: var(--cp-radius);
}

/* 打赏弹层 */
.show_body {
    background-color: #0e0e1e;
    border: 1px solid var(--cp-line);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.hide_body {
    background: #000;
    opacity: 0.72;
}

#goTopBtn img {
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}

/* 评论 */
.comment,
#divCommentPost,
.msg {
    color: var(--cp-ink);
}

#divCommentPost .panel,
.comment-post-body {
    color: var(--cp-ink);
}

#cancel-reply {
    color: var(--cp-magenta);
}

/* ------------------------------------------------------------------ 移动端底部胶囊导航：桌面隐藏 */
.cp-pillnav {
    display: none;
}

/* =========================================================================
   <=768px 手机端独立布局
   ========================================================================= */
@media (max-width: 768px) {

    html {
        background-color: var(--cp-bg-deep);
    }

    body {
        font-size: 16px;          /* 正文不小于 16px */
        line-height: 1.75;
        padding-top: 56px;        /* 精简条高度 */
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
        background-attachment: scroll;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* ---------- 顶部导航：手机精简条 + 汉堡 ---------- */
    .navbar-fixed-top {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(9, 9, 17, 0.98) !important;
        min-height: 56px;
        border-bottom: 1px solid var(--cp-cyan);
        box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.65) !important;
    }

    .navbar-header {
        float: none;
        width: 100% !important;
        min-height: 56px;
    }

    .navbar-brand {
        padding: 11px 8px 11px 12px !important;
        line-height: 34px !important;
        font-size: 16px;
        max-width: 62vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        float: left !important;
    }

    .navbar-brand img {
        max-width: 96px;
        max-height: 32px;
        width: auto;
        height: auto;
    }

    .navbar-toggle {
        margin: 12px 12px 12px 0;
        padding: 7px 9px;
        float: right !important;
        min-width: 44px;
        min-height: 32px;
    }

    .navbar-collapse {
        background: #0b0b16;
        border-top: 1px solid var(--cp-line);
        max-height: 56vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.07);
    }

    .navbar-default .navbar-nav {
        margin: 0;
    }

    .yk_menu > ul > li,
    .navbar-default .navbar-nav > li {
        width: 100% !important;
        float: none;
    }

    .yk_menu > ul > li > ul,
    .yk_menu > ul > li:hover > ul {
        position: static !important;
        display: block;
        width: 100% !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 18px;
    }

    .yk_menu > ul > li > a,
    .navbar-default .navbar-nav > li > a {
        display: block;
        padding: 14px 16px;
        min-height: 48px;
        line-height: 20px;
        border-bottom: 1px solid rgba(0, 240, 255, 0.12);
        font-size: 15px;
    }

    .yk_menu a:hover {
        transform: none;          /* 手机上取消桌面缩放动效，避免抖动 */
    }

    .navbar-form {
        margin: 10px 12px;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .navbar-form .form-group {
        display: block;
        margin-bottom: 8px;
    }

    .navbar-form .form-control {
        width: 100%;
        min-height: 46px;
        font-size: 16px;          /* 防 iOS 聚焦缩放 */
    }

    /* ---------- 卡片流：单列 + 圆角 + 霓虹描边 ---------- */
    .yk_index_list > .column {
        width: 100%;
        float: none;
    }

    .yk_panel {
        margin-bottom: 16px;
        border-radius: 16px;
        border: 1px solid rgba(0, 240, 255, 0.30);
        box-shadow:
            0 0 0 1px rgba(139, 92, 246, 0.22),
            0 10px 26px rgba(0, 0, 0, 0.55),
            0 0 22px rgba(0, 240, 255, 0.16) !important;
    }

    .yk_panel .panel-heading {
        padding: 14px 16px;
        border-radius: 16px 16px 0 0 !important;
    }

    /* style.css 用 !important 锁死 20px，这里也必须 !important，clamp() 才生效 */
    .yk_panel .panel-heading h2 {
        font-size: clamp(17px, 4.7vw, 22px) !important;
        line-height: 1.45 !important;
        font-weight: 600 !important;
    }

    .yk_panel .panel-body {
        padding: 14px 16px;
    }

    .yk_panel .panel-footer {
        padding: 12px 16px;
        border-radius: 0 0 16px 16px !important;
        font-size: 13px;
    }

    .yk_panel .panel-footer p {
        margin: 0;
        line-height: 2;
    }

    .yk_panel_body {
        padding-left: 0 !important;
        padding-right: 0;
        margin: 0 0 12px;
    }

    .yk_panel_body img,
    .yk_panel_body a img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
        border-radius: 12px;
    }

    .cp-card-meta {
        font-size: 13px;
        gap: 8px 12px;
    }

    .cp-card-excerpt {
        margin-top: 8px;
        font-size: 15.5px;
        line-height: 1.7;
        color: #b9c6d6;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .glyphicon {
        margin: 0 4px 0 10px;
    }

    .panel-footer p > .glyphicon:first-child {
        margin-left: 0;
    }

    /* ---------- 正文可读性 ---------- */
    .panel-body.content {
        font-size: 17px;
        line-height: 1.85;
        padding: 16px 16px 20px;
    }

    .panel-body.content h2,
    .panel-body.content h3,
    .panel-body.content h4 {
        font-size: clamp(18px, 4.9vw, 22px) !important;
        line-height: 1.5;
        margin: 1.4em 0 0.6em;
    }

    .panel-body.content img,
    .panel-body.content video,
    .panel-body.content iframe,
    article img,
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .panel-body.content pre {
        font-size: 13.5px;
        padding: 12px;
        border-radius: 10px;
    }

    .panel-body.content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }

    .yk_post_single_header {
        font-size: 12.5px;
        line-height: 1.9;
    }

    /* 侧栏在手机上直接不参与排版（Bootstrap hidden-xs 兜底） */
    .hidden-xs {
        display: none !important;
    }

    /* ---------- 底部固定胶囊导航（pill nav） ---------- */
    .cp-pillnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1085;
        display: flex;
        align-items: stretch;
        gap: 4px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        background: rgba(9, 9, 17, 0.98);
        border-top: 1px solid rgba(0, 240, 255, 0.42);
        box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.7), 0 -1px 0 rgba(139, 92, 246, 0.35);
        list-style: none;
    }

    .cp-pill {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;                 /* 可点区 >= 48px */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 2px;
        border-radius: 14px;
        color: #cfdae6;
        font-family: var(--cp-mono);
        font-size: 11.5px;
        line-height: 1.1;
        letter-spacing: 0.02em;
        text-align: center;
        background: transparent;
        border: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .cp-pill:active,
    .cp-pill:focus {
        background: rgba(0, 240, 255, 0.12);
        color: var(--cp-cyan);
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    }

    .cp-pill-ico {
        font-size: 17px;
        line-height: 1;
        color: var(--cp-cyan);
        text-shadow: 0 0 9px rgba(0, 240, 255, 0.8);
    }

    .cp-pill-txt {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* details 版胶囊（分类 / 搜索） */
    .cp-pill-details {
        position: relative;
        flex: 1 1 0;
        display: flex;
    }

    .cp-pill-summary {
        flex: 1 1 auto;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 2px;
        border-radius: 14px;
        color: #cfdae6;
        font-family: var(--cp-mono);
        font-size: 11.5px;
        line-height: 1.1;
        list-style: none;
        cursor: pointer;
    }

    .cp-pill-summary::-webkit-details-marker {
        display: none;
    }

    .cp-pill-details[open] > .cp-pill-summary {
        background: rgba(0, 240, 255, 0.14);
        color: var(--cp-cyan);
    }

    /* 上弹面板 */
    .cp-sheet {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        max-height: 58vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1086;
        padding: 14px 14px 16px;
        background: linear-gradient(180deg, #12122a, #0b0b16);
        border: 1px solid rgba(0, 240, 255, 0.45);
        border-radius: 16px;
        box-shadow: 0 0 28px rgba(0, 240, 255, 0.30), 0 18px 40px rgba(0, 0, 0, 0.7);
    }

    .cp-sheet-title {
        font-family: var(--cp-mono);
        font-size: 12px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--cp-cyan);
        margin: 0 0 10px;
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    }

    .cp-sheet-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cp-sheet-list a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 16px;
        border: 1px solid rgba(0, 240, 255, 0.32);
        border-radius: 999px;
        background: rgba(0, 240, 255, 0.07);
        color: #9df6ff;
        font-size: 14px;
    }

    .cp-sheet-list a:active {
        background: rgba(0, 240, 255, 0.2);
        border-color: var(--cp-cyan);
    }

    .cp-sheet-search {
        display: flex;
        gap: 8px;
        margin: 0;
    }

    .cp-sheet-search input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 46px;
        font-size: 16px;
        padding: 10px 12px;
    }

    .cp-sheet-search button {
        flex: 0 0 auto;
        min-height: 46px;
        min-width: 74px;
        padding: 0 14px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #00f0ff, #8b5cf6);
        color: #04121a;
        font-family: var(--cp-mono);
        font-size: 14px;
        font-weight: 600;
    }

    #goTopBtn {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        right: 4px;
    }

    /* 页脚与弹层避开胶囊导航 */
    .foot-wrap {
        margin-top: 28px;
        padding-bottom: 18px;
    }

    .show_body {
        width: 92vw !important;
        max-width: 360px;
        left: 4vw !important;
        margin-left: 0 !important;
        top: 12% !important;
    }
}