/* ============================================
   [B2CHILD] 2026-07-06 文章内容页 — style-1 Banner 美化
   路径: diy/modules/single/single.css
   说明: 全宽大图 banner + 导航透明 + 阅读进度条
   ============================================ */

/* ============================================
   1. 阅读进度条
   ============================================ */
.diy-reading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--b2color, #009966), #00c288);
    z-index: 10000;
    width: 0;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   2. 桌面端 — 导航透明初始态（仅 ≥768px，手机端保持原样式）
   ============================================ */

@media (min-width: 769px) {
    /* 覆盖全局 .header-banner 的白色背景：banner 范围内透明 */
    .post-style-1 .header-banner:not(.diy-nav-opaque) {
        background: transparent !important;
    }

    /* 滚动超过 banner 后 — 同首页毛玻璃 + 微微透明 */
    .post-style-1 .header-banner.diy-nav-opaque {
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* ============================================
   3. Banner 容器 — 自然全宽（位于 flex 容器外）
   ============================================ */
.diy-post-banner {
    position: relative;
    width: 100%;
    margin-top: -64px;                         /* 上移到导航下方，导航浮在 banner 上 */
    margin-bottom: 24px;
    height: 420px;
    overflow: hidden;
}

/* 无侧边栏时 banner 稍矮 */
.post-style-1:not(.single-sidebar-show) .diy-post-banner {
    height: 380px;
}

/* ============================================
   4. 背景图层 — 文章第一张图 + 高斯模糊
   ============================================ */
.diy-post-banner-bg {
    position: absolute;
    inset: -20px;                              /* 扩展防止模糊边缘露白 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(24px);
    z-index: 0;
}

/* ============================================
   5. 深色渐变遮罩
   ============================================ */
.diy-post-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

/* ============================================
   6. 内容层 — 居中排列（淡入动画）
   ============================================ */
.diy-post-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 80px 32px 100px;
    max-width: 780px;
    margin: 0 auto;
    animation: diyBannerFadeIn 0.8s ease-out both;
}

@keyframes diyBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   7. 第一行 — 标题
   ============================================ */
.diy-post-banner-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

/* ============================================
   8. 第二行 — Meta（日期/评论/阅读/收藏/编辑）
   ============================================ */
.diy-post-banner-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.diy-post-banner-meta > span,
.diy-post-banner-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.diy-post-banner-meta a:hover {
    color: #fff;
}

.diy-post-banner-meta .diy-meta-sep {
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* ============================================
   9. 第三行 — 分类 + 标签（底部）
   ============================================ */
.diy-post-banner-tax {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 每行包装器 — 桌面端透明，移动端占满行宽 */
.diy-tax-row {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 分类与标签之间的竖线分隔符（桌面端） */
.diy-tax-row + .diy-tax-row::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 分类层级分隔符（同级 · / 父子 ›） */
.diy-post-banner-tax .diy-tax-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
    margin: 0 2px;
}

/* 基础 pill — 分类和标签共用 */
.diy-post-banner-tax a {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

/* 分类 — 填充式（半透明底色） */
.diy-post-banner-tax .diy-banner-cat {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.diy-post-banner-tax .diy-banner-cat:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 标签 — 纯文字 #标签 风格 */
.diy-post-banner-tax .diy-banner-tag {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
    padding: 0;
    transition: color 0.2s ease;
}

.diy-post-banner-tax .diy-banner-tag:hover {
    color: #fff;
}

/* ============================================
   10. 波浪 SVG（底部，动态滚动动画）
   ============================================ */
.diy-post-banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
    overflow: hidden;
    height: 60px;                              /* 默认高度，响应式中覆盖 */
}

.diy-post-banner-wave .diy-wave-1,
.diy-post-banner-wave .diy-wave-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 200%;
}

.diy-post-banner-wave .diy-wave-1 {
    height: 100%;
    animation: diyWave1 8s linear infinite;
}

.diy-post-banner-wave .diy-wave-2 {
    height: 100%;
    animation: diyWave2 5s linear infinite;
}

@keyframes diyWave1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes diyWave2 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   11. Banner 已含标签，隐藏原文底部标签区
   ============================================ */
.post-style-1 .post-tags-meat {
    display: none !important;
}

/* ============================================
   12. 文章卡片顶部间距收窄
   ============================================ */
.post-style-1 .single-article {
    padding-top: 20px !important;
}

/* ============================================
   13. 移除文章内页顶部间距（强制覆盖 .mg-b）
   ============================================ */
.post-style-1 .mg-b {
    margin-bottom: 0 !important;
}

/* ============================================
   14. 桌面端 — 导航文字浅色（仅 ≥768px，手机端保持原样式）
   ============================================ */
@media (min-width: 769px) {
    .diy-nav-light .header-banner,
    .diy-nav-light .header-banner a,
    .diy-nav-light .site-header .top-menu-ul > li > a,
    .diy-nav-light .site-header .top-menu-ul > li > a > span,
    .diy-nav-light .top-user-info .top-user-info-drop > a,
    .diy-nav-light .change-theme .b2font,
    .diy-nav-light .diy-top-search-btn a {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .diy-nav-light .header-banner a:hover,
    .diy-nav-light .site-header .top-menu-ul > li > a:hover {
        color: #fff !important;
    }

    .diy-nav-light .top-menu-ul .b2-jt-block-down,
    .diy-nav-light .diy-top-search-btn a i {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    /* [B2CHILD] 2026-07-10 二级下拉菜单文字 — 深棕色，白色背景上可见 */
    .diy-nav-light .header-banner .sub-menu a {
        color: #040404 !important;
    }
    .diy-nav-light .header-banner .sub-menu a:hover {
        color: var(--b2color, #009966) !important;
    }
}

/* ============================================
   15. 响应式 — 平板端
   ============================================ */
@media (max-width: 1024px) {
    .diy-post-banner {
        height: 340px;
    }

    .post-style-1:not(.single-sidebar-show) .diy-post-banner {
        height: 320px;
    }

    .diy-post-banner-content {
        padding: 70px 24px 90px;
    }

    .diy-post-banner-title {
        font-size: 26px;
    }

    .diy-post-banner-wave {
        height: 40px;
    }
}

/* ============================================
   16. 响应式 — 手机端
   ============================================ */
@media (max-width: 768px) {
    .diy-post-banner {
        height: 280px;
        margin-top: -50px;                       /* 移动端导航较矮 */
    }

    .post-style-1:not(.single-sidebar-show) .diy-post-banner {
        height: 280px;
    }

    .diy-post-banner-content {
        padding: 56px 20px 70px;
        gap: 20px;
    }

    .diy-post-banner-title {
        font-size: 22px;
    }

    .diy-post-banner-meta {
        gap: 12px;
        font-size: 12px;
    }

    .diy-post-banner-tax {
        gap: 20px;
    }
    .diy-post-banner-tax .diy-tax-row {
        flex: 0 0 100%;
    }
    .diy-tax-row + .diy-tax-row::before {
        display: none;
    }

    .diy-post-banner-tax a {
        padding: 3px 10px;
        font-size: 11px;
    }

    .diy-post-banner-wave {
        height: 30px;
    }
}

/* ============================================
   17. 响应式 — 超小屏
   ============================================ */
@media (max-width: 480px) {
    .diy-post-banner {
        height: 240px;
        margin-top: -48px;
    }

    .diy-post-banner-content {
        padding: 48px 16px 60px;
    }

    .diy-post-banner-title {
        font-size: 19px;
    }

    .diy-post-banner-tax {
        gap: 4px;
    }

    .diy-post-banner-meta {
        gap: 8px;
        font-size: 11px;
    }

    .diy-post-banner-wave {
        height: 24px;
    }
}

/* ============================================
   18. 文章侧边快捷按钮美化
   ============================================ */

/* ----- 白色卡片容器 ----- */
.post-style-1 .post-content-footer {
    width: 60px !important;                    /* 固定宽度防滚动抖动 */
}
.post-style-1 .post-content-footer-in {
    background: #fff;
    border: var(--diy-border);
    box-shadow: var(--diy-shadow);
    border-radius: var(--b2radius);
    padding: 14px 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 60px;
}

/* ----- 按钮统一：去掉圆角圆圈，改方形卡片内按钮 ----- */
.post-style-1 .post-content-footer .content-footer-poster button {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: var(--b2radius) !important;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    transition: all 0.25s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.post-style-1 .post-content-footer .content-footer-poster button i {
    font-size: 20px;
    color: #9ca3af;
    transition: color 0.25s ease, transform 0.25s ease;
}
.post-style-1 .post-content-footer .content-footer-poster button:hover i {
    color: var(--b2color, #009966);
    transform: scale(1.15);
}

/* ----- 海报按钮：主题色渐变微底 ----- */
.post-style-1 .content-footer-poster button.poster-span {
    background: linear-gradient(135deg, rgba(0,153,102,0.08), rgba(0,153,102,0.03)) !important;
}
.post-style-1 .content-footer-poster button.poster-span i {
    color: var(--b2color, #009966);
}

/* ----- 收藏已选态 ----- */
.post-style-1 .content-footer-poster .favorite-button.sc i {
    color: #f59e0b !important;
}

/* ----- 功能按钮和点赞区之间的分隔线 ----- */
.post-style-1 .post-content-footer .content-footer-zan-cai {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    width: 34px;
    text-align: center;
}

/* ----- 点赞数字加粗 + 主题色 ----- */
.post-style-1 .post-content-footer .content-footer-zan-cai span {
    cursor: pointer;
    transition: color 0.2s ease;
}
.post-style-1 .post-content-footer .content-footer-zan-cai span b {
    font-weight: 700;
    color: var(--b2color, #009966);
    transition: color 0.2s ease;
}
.post-style-1 .post-content-footer .content-footer-zan-cai i {
    font-size: 22px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

/* 已点赞：变红 */
.post-style-1 .post-content-footer .content-footer-zan-cai span.picked i,
.post-style-1 .post-content-footer .content-footer-zan-cai span.picked b {
    color: #ff3a55 !important;
}

/* 悬停未点赞时变绿 */
.post-style-1 .post-content-footer .content-footer-zan-cai span:not(.picked):hover i,
.post-style-1 .post-content-footer .content-footer-zan-cai span:not(.picked):hover b {
    color: var(--b2color, #009966);
}

/* ----- 点赞飘心特效 ----- */
.diy-float-heart {
    pointer-events: none;
    z-index: 10000;
    font-size: 22px;
    will-change: transform, opacity;
    animation: diyFloatHeart 1.4s ease-out forwards;
}
@keyframes diyFloatHeart {
    0%   { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
    30%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translate(-50%, -50%) translateY(-55px) translateX(var(--drift-x, 20px)) scale(0.3); }
}

/* ----- 移动端：横排工具栏，覆盖桌面竖排卡片样式 ----- */
@media (max-width: 768px) {
    /* 外层容器 — 取消绝对定位，回到文档流 */
    .post-style-1 .post-content-footer {
        position: static !important;
        width: 100% !important;
        margin-top: 16px;
    }

    /* 内层白卡 — 降级为轻量横排条，不占空间 */
    .post-style-1 .post-content-footer-in {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px !important;
        border-radius: var(--b2radius);
        background: #fff;
        border: var(--diy-border);
        box-shadow: var(--diy-shadow);
    }

    /* 按钮组 — 横排紧凑 */
    .post-style-1 .post-content-footer .content-footer-poster {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 6px;
    }

    /* 按钮尺寸缩小，去掉方块样式 */
    .post-style-1 .post-content-footer .content-footer-poster button {
        width: auto !important;
        height: 32px !important;
        line-height: 32px !important;
        padding: 0 10px !important;
        border-radius: var(--b2radius) !important;
        background: #f5f7f9 !important;
        box-shadow: none !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        font-size: 12px;
        color: #6b7280;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .post-style-1 .post-content-footer .content-footer-poster button i {
        font-size: 15px !important;
        color: #9ca3af;
    }

    .post-style-1 .post-content-footer .content-footer-poster button:hover {
        background: color-mix(in srgb, var(--b2color, #009966) 8%, #f5f7f9) !important;
        color: var(--b2color, #009966);
    }

    .post-style-1 .post-content-footer .content-footer-poster button:hover i {
        color: var(--b2color, #009966);
    }

    /* 海报按钮 — 保留主题色标识 */
    .post-style-1 .content-footer-poster button.poster-span {
        background: linear-gradient(135deg, var(--b2color, #009966), color-mix(in srgb, var(--b2color, #009966) 70%, #004d33)) !important;
        color: #fff !important;
    }
    .post-style-1 .content-footer-poster button.poster-span i {
        color: #fff !important;
    }

    /* 按钮内文字标签 — 紧凑显示 */
    .post-style-1 .post-content-footer .content-footer-poster button b {
        font-size: 12px;
        font-weight: 500;
    }

    /* 赞/踩区 — 右侧紧凑 */
    .post-style-1 .post-content-footer .content-footer-zan-cai {
        margin: 0 !important;
        padding: 0 !important;
        border-top: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .post-style-1 .post-content-footer .content-footer-zan-cai span {
        display: inline-flex !important;
        align-items: center;
        gap: 2px;
        padding: 4px 10px;
        border-radius: var(--b2radius);
        background: #f5f7f9;
        font-size: 12px;
        color: #9ca3af;
        height: 32px;
        line-height: 32px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .post-style-1 .post-content-footer .content-footer-zan-cai i {
        font-size: 16px !important;
    }

    .post-style-1 .post-content-footer .content-footer-zan-cai span b {
        font-weight: 600;
        font-size: 12px;
    }

    .post-style-1 .post-content-footer .content-footer-zan-cai span.picked i,
    .post-style-1 .post-content-footer .content-footer-zan-cai span.picked b {
        color: #ff3a55 !important;
    }
}

/* ============================================
   [B2CHILD] 2026-06-30 文章标题美化 — 左侧彩条 + 浅色背景，每级不同色
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================ */
.entry-content h2 {
    border-left: 4px solid var(--b2color, #1a73e8);
    background: linear-gradient(to right, color-mix(in srgb, var(--b2color, #1a73e8) 6%, transparent), transparent);
    padding: 10px 0 10px 14px;
    margin: 1.8em 0 0.8em;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 0 4px 4px 0;
}
.entry-content h3 {
    border-left: none;
    background: none;
    padding: 8px 0 6px 24px;
    margin: 1.5em 0 0.6em;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}
.entry-content h3::before {
    content: '📌';
    position: absolute;
    left: 2px;
    color: #e67e22;
    font-size: 0.85em;
}
.entry-content h4 {
    border-left: none;
    background: none;
    padding: 6px 0 6px 36px;
    margin: 1.3em 0 0.5em;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}
.entry-content h4::before {
    content: '▸';
    position: absolute;
    left: 16px;
    color: #27ae60;
    font-size: 0.9em;
}
.entry-content h5 {
    border-left: none;
    background: none;
    padding: 5px 0 5px 36px;
    margin: 1.1em 0 0.4em;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}
.entry-content h5::before {
    content: '\2013';
    position: absolute;
    left: 16px;
    color: inherit;
    font-size: 0.9em;
}
.entry-content h6 {
    border-left: none;
    background: none;
    padding: 4px 0 4px 36px;
    margin: 1em 0 0.4em;
    font-size: 0.92em;
    font-weight: 600;
    line-height: 1.4;
    color: #888;
    position: relative;
}
.entry-content h6::before {
    content: '\00B7';
    position: absolute;
    left: 16px;
    color: #888;
    font-size: 1.2em;
}

/* ============================================
   [B2CHILD] 2026-07-10 站内链接卡片美化
   问题: .insert-post 内 <h2> 继承了文章标题美化的彩条+渐变背景
   方案: 重置标题样式 + 全面美化卡片 UI，匹配子主题设计语言
   ============================================ */

/* ---- 卡片容器 — 白色底 + 微阴影，替代旧灰框+模糊背景 ---- */
.entry-content .insert-post {
    max-width: 520px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 16px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    background: #fff !important;
    border-radius: var(--b2radius, 12px) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: var(--diyhover);
}
.entry-content .insert-post:hover {
    box-shadow: 0 6px 24px rgba(0,153,102,0.13);
    border-color: rgba(0,153,102,0.25) !important;
    transform: translateY(-2px);
}

/* ---- 隐藏旧版模糊背景层（改用洁净白卡风格） ---- */
.entry-content .insert-post .insert-post-bg {
    display: none !important;
}

/* ---- 缩略图 — 圆角 + 微边框，视觉更精致 ---- */
.entry-content .insert-post .insert-post-thumb {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.06);
}
.entry-content .insert-post .insert-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- 内容区 ---- */
.entry-content .insert-post .insert-post-content {
    padding-left: 16px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- 标题 — 重置文章标题修饰，还原为卡片标题 ---- */
.entry-content .insert-post h2,
.entry-content .insert-post h3,
.entry-content .insert-post h4,
.entry-content .insert-post h5,
.entry-content .insert-post h6 {
    border-left: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    border-radius: 0 !important;
    color: #222 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
/* 移除 ::before 前缀图标（📌 ▸ – ·） */
.entry-content .insert-post h3::before,
.entry-content .insert-post h4::before,
.entry-content .insert-post h5::before,
.entry-content .insert-post h6::before {
    content: none !important;
}
.entry-content .insert-post h2 a,
.entry-content .insert-post h3 a {
    color: #222 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
}
.entry-content .insert-post h2 a:hover,
.entry-content .insert-post h3 a:hover {
    color: var(--diy-color, #009966) !important;
}

/* ---- 元信息区 ---- */
.entry-content .insert-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #aaa;
}
.entry-content .insert-post-meta ul,
.entry-content .insert-post-meta ul li {
    margin: 0;
    padding: 0;
    font-size: 12px;
}
.entry-content .insert-post-meta ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.entry-content .insert-post-meta ul li {
    margin-left: 10px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3px;
    color: #aaa;
}
/* 作者头像 */
.entry-content .insert-post-meta-avatar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}
.entry-content .insert-post-meta-avatar img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.entry-content .insert-post-meta-avatar a {
    color: #888 !important;
    border: none !important;
    background: none !important;
}

/* ---- 图标颜色 ---- */
.entry-content .insert-post-meta .b2font {
    font-size: 13px;
    color: #ccc;
}

/* ---- 全局：去掉 B2 的 a 下划线/border ---- */
.entry-content .insert-post a {
    border-bottom: none !important;
}

/* ============================================
   [B2CHILD] 2026-07-10 站内链接卡片 — 移动端
   ============================================ */
@media (max-width: 768px) {
    .entry-content .insert-post {
        padding: 12px !important;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .entry-content .insert-post .insert-post-thumb {
        width: 72px;
        height: 72px;
        border-radius: 6px;
    }
    .entry-content .insert-post .insert-post-content {
        padding-left: 12px;
    }
    .entry-content .insert-post h2,
    .entry-content .insert-post-content h2 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    .entry-content .insert-post-meta,
    .entry-content .insert-post-meta ul li {
        font-size: 11px;
    }
}

/* ============================================
   [B2CHILD] 2026-06-30 代码块全选/复制工具栏 — 简约风格，hover 显示
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================ */
.entry-content pre {
    position: relative;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 14px;
    scrollbar-width: auto;
    scrollbar-color: rgba(100,100,100,0.4) transparent;
}
.entry-content pre::-webkit-scrollbar {
    width: 8px;
}
.entry-content pre::-webkit-scrollbar-track {
    background: transparent;
}
.entry-content pre::-webkit-scrollbar-thumb {
    background: rgba(100,100,100,0.4);
    border-radius: 4px;
}
.entry-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(100,100,100,0.6);
}
.diy-code-toolbar {
    position: absolute;
    top: 6px;
    right: 20px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}
.diy-code-wrap {
    position: relative;
}
.diy-code-wrap:hover .diy-code-toolbar {
    opacity: 1;
}
/* hover 选择器从 pre 移到 wrap，保留原 pre:hover 作为降级 */
.entry-content pre:hover .diy-code-toolbar {
    opacity: 1;
}
.entry-content pre:hover .diy-code-toolbar {
    opacity: 1;
}
.diy-code-toolbar button {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.8;
    background: rgba(0,0,0,0.55);
    color: #eee;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.diy-code-toolbar button:hover {
    background: rgba(0,0,0,0.75);
    color: #fff;
}
.diy-code-toolbar button.copied {
    background: #2271b1;
    color: #fff;
}

/* ============================================
   [B2CHILD] 2026-07-04 自定义文章目录 TOC
   设计：左侧灰色轨道线 + 彩色竖条滑块 + 层级缩进
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================ */

/* 容器 — 作为轨道线的定位父容器 */
.diy-toc-content {
    padding: 4px 0 4px 0;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    position: relative;
}

/* 灰色轨道线（与所有链接左边框对齐） */
.diy-toc-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    border-radius: 1px;
    z-index: 0;
    pointer-events: none;
}

.diy-toc-content::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

.diy-toc-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* 目录列表 */
.diy-toc-list,
.diy-toc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 目录项 */
.diy-toc-item {
    position: relative;
    margin: 0;
    padding: 0;
}

/* 目录链接 — border-left 位于容器最左侧，与灰色轨道线重叠 */
.diy-toc-link {
    display: block;
    padding: 6px 12px 6px 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-left-color 0.2s ease;
    border-left: 2px solid transparent;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

/* 悬停 — 浅灰色竖条预览 */
.diy-toc-link:hover {
    color: var(--b2color, #009966);
    background: color-mix(in srgb, var(--b2color, #009966) 4%, transparent);
    border-left-color: #d1d5db;
}

/* H1/H2 级别 */
.diy-toc-h1 > .diy-toc-link,
.diy-toc-h2 > .diy-toc-link {
    font-weight: 500;
}

/* H3 级别 — 更宽左内边距表示层级缩进 */
.diy-toc-h3 > .diy-toc-link {
    font-size: 12.5px;
    padding-left: 34px;
}

/* 激活态 — 灰色轨道线上切换绿色竖条 */
.diy-toc-link.diy-toc-active {
    color: var(--b2color, #009966);
    font-weight: 600;
    border-left-color: var(--b2color, #009966);
    background: color-mix(in srgb, var(--b2color, #009966) 6%, transparent);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .diy-toc-content {
        max-height: 40vh;
    }

    .diy-toc-link {
        padding: 5px 10px 5px 16px;
        font-size: 12px;
    }

    .diy-toc-h3 > .diy-toc-link {
        font-size: 11.5px;
        padding-left: 26px;
    }
}

/* ============================================
   [B2CHILD] B2 原生下载模块 UI 美化
   设计思路: 权限列表退居侧边栏参考，下载信息+按钮是主角
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================ */

/* 卡片容器 */
.download-box {
    background: #fff !important;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
    margin: 28px 0;
    overflow: hidden !important;
}

/* ===== 权限侧边栏 — 压缩为参考信息 ===== */
.download-rights {
    background: #f9fafb !important;
    border-right: 1px solid #f0f0f0;
    width: 180px !important;
    padding: 14px 12px !important;
    font-size: 11px !important;
    flex-shrink: 0;
}
.download-rights .download-rights-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.download-rights ul { margin: 0 !important; }
.download-rights ul li {
    padding: 6px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px !important;
    gap: 4px;
}
.download-rights ul li:last-child { border-bottom: 0; }
.download-rights ul li span:first-child { color: #9ca3af; white-space: nowrap; }
.download-rights ul li span:last-child  { color: #374151; font-weight: 500; white-space: nowrap; }

/* ===== 下载信息 — 主角区域 ===== */
.download-info {
    background: #fff !important;
    padding: 24px 28px !important;
    flex: 1;
}
.download-info h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 14px !important;
}
.download-info h2 span { padding-right: 0 !important; }

/* 资源属性 — 标签化 */
.download-info ul {
    background: #f9fafb !important;
    border-radius: 10px;
    padding: 10px 14px !important;
    gap: 6px;
    margin: 0 0 16px !important;
}
.download-info ul li {
    font-size: 12px !important;
    color: #4b5563 !important;
    background: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 0 !important;
    width: auto !important;
}
.download-attr-name { color: #9ca3af !important; }

/* ===== 当前状态 — 主要提示区 ===== */
.download-current {
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    margin: 0 0 18px !important;
    font-weight: 500;
    line-height: 1.6;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
}
.allow-down .download-current {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}
.not-allow-down .download-current {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}
.download-current > span { margin-right: 8px; }
.download-current a { color: var(--b2color) !important; font-weight: 600; }
.download-current > div { margin-top: 6px !important; font-size: 13px !important; }
.download-current > div span b { color: var(--b2color) !important; }

/* ===== 下载按钮区 ===== */
.download-button-box {
    margin-top: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.download-button-box button {
    padding: 13px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--b2color, #667eea), color-mix(in srgb, var(--b2color, #667eea) 70%, #333)) !important;
    color: #fff !important;
    border: none !important;
    margin: 0 !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
}
.download-button-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    opacity: 0.95;
}
.download-button-box > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.download-button-box > a:hover {
    border-color: var(--b2color) !important;
    color: var(--b2color) !important;
}

/* 资源切换标签 */
.item-name-box { padding-bottom: 14px !important; gap: 8px; }
#item-name {
    border-radius: 10px !important;
    background: #f9fafb !important;
    border: 1px solid #f0f0f0;
    height: 50px !important;
    transition: all 0.2s ease;
}
#item-name:hover, #item-name.picked { background: #fff !important; border-color: #d1d5db; }
#item-name .n-thumb { width: 32px !important; height: 32px !important; top: 9px !important; left: 10px !important; }
#item-name span { font-size: 11px !important; }

/* 骨架屏 */
.download-list.gujia .gujia-bg { border-radius: 6px; background: #f3f4f6 !important; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .download-item { flex-direction: row !important; }
    .download-rights {
        width: 100% !important;
        border-right: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 12px !important;
    }
    .download-rights ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }
    .download-rights ul li { border: 0 !important; padding: 2px 0 !important; }
    .download-info { padding: 16px 20px !important; }
    .download-button-box button { width: 100%; }
}
@media (max-width: 480px) {
    .download-item { flex-direction: column !important; }
    .download-info h2 { font-size: 18px !important; }
    .download-info ul li { width: 100% !important; }
}

/* ============================================================
   旧文章 fixed-download-wrap 兼容（保持原有样式不动）
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================================ */
@keyframes diyFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.fixed-download-wrap {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 16px;
    border: 1px solid #99f6e4;
    text-align: center;
    animation: diyFadeIn 0.5s ease-out;
}

.fixed-download-title {
    font-size: 18px;
    font-weight: 700;
    color: #134e4a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fixed-download-code {
    margin: 15px auto 18px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fixed-download-code .code-text {
    color: #b45309;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    padding: 2px 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
}

.fixed-download-code button {
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fixed-download-code button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.fixed-download-code button.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.fixed-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    border: none;
    cursor: pointer;
}

.fixed-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}

.fixed-download-btn span {
    text-decoration: none !important;
}

/* ============================================================
   [diy_download] 短代码 - 下载区域（原青色卡片风格）
   来源: 从 style.css 迁移至 diy/modules/single/single.css
   ============================================================ */
.diy-download-wrap {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-radius: 16px;
    animation: diyFadeIn 0.5s ease-out;
}

.diy-download-title {
    font-size: 18px;
    font-weight: 700;
    color: #134e4a;
    text-align: center;
    margin-bottom: 20px;
}

/* 卡片网格容器 */
.diy-download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

/* 每个下载渠道一张卡片 */
.diy-download-card {
    flex: 1 1 240px;
    max-width: 320px;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 14px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.diy-download-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.10);
}

/* 渠道名称 */
.diy-download-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #134e4a;
    line-height: 1.3;
}

/* 提取码行 */
.diy-download-card-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 8px;
    font-size: 13px;
}

.diy-download-card-code .code-label {
    color: #92400e;
    font-size: 11px;
    font-weight: 500;
}

.diy-download-card-code .code-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 15px;
    color: #b45309;
    letter-spacing: 1px;
}

.diy-download-card-code button {
    padding: 3px 9px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 4px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}

.diy-download-card-code button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.diy-download-card-code button.copied {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* 下载按钮（卡片底部） */
.diy-download-card .diy-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.20);
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.diy-download-card .diy-download-btn:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.30);
    color: #fff !important;
    text-decoration: none !important;
}

/* 单渠道居中 */
.diy-download-grid:only-child {
    .diy-download-card {
        flex: 0 1 300px;
        max-width: 360px;
    }
}





