    /* ========== 详情页主体 ========== */
    .detail-container { max-width: 1400px; margin: 20px auto;margin-top: 60px; padding: 0 10px; display: grid; grid-template-columns: 1fr 300px; gap: 20px;  }
    .detail-left { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 25px;box-shadow: 0 2px 7px 0 rgb(0 0 0); }
    .detail-title { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 15px; line-height: 1.4; }
    .detail-meta { display: flex; gap: 20px; color: #666; font-size: 14px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; flex-wrap: wrap; }
    .meta-type { color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
    .meta-download { color: #666; }
    .meta-price { color: #ff5722; font-weight: bold; }
    .meta-time { color: #999; }

    /* 资源介绍 */
    .detail-desc { line-height: 1.8; color: #333; font-size: 14px; }
    .detail-desc img { max-width: 100%; height: auto; border-radius: 4px; margin: 10px 0; }
    .detail-desc h3 { font-size: 18px; margin: 20px 0 10px; padding-left: 10px; border-left: 3px solid #c00; }

    /* 下载声明 */
    .notice-box { background: #fff8f0; border: 1px solid #ffe58f; padding: 15px; border-radius: 4px; font-size: 13px; color: #666; line-height: 1.7; margin-top: 25px; }
    .notice-box strong { color: #d48806; }

    /* ========== 右侧边栏模块 ========== */
    .sidebar-widget { background: #fff; border: 1px solid #eee; border-radius: 4px; margin-bottom: 15px; overflow: hidden;box-shadow: 0 2px 7px 0 rgb(0 0 0); }
    .widget-title { padding: 10px 15px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: bold; color: #333; border-left: 3px solid #c00; }
    .widget-body { padding: 12px 15px; }

    /* 下载卡片 */
    .download-card .price-text { font-size: 28px; color: #ff5722; font-weight: bold; margin: 10px 0; text-align: center; }
    .download-btn { width: 100%; height: 44px; line-height: 44px; text-align: center; background: #c00; color: #fff; border-radius: 4px; font-size: 15px; text-decoration: none; display: block; border: none; cursor: pointer; }
    .download-btn.disable { background: #ccc; cursor: not-allowed; }
    .download-btn.pay { background: #ff5722; }
    .tip-text { text-align: center; color: #999; font-size: 13px; margin-top: 10px; line-height: 1.5; }
    .pay-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        border: 1px solid #eee;
        border-radius: 4px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all .2s;
    }
    .pay-item:hover { border-color: #c00; background: #fff5f5; }
    .pay-item .pay-name { display: flex; align-items: center; gap: 10px; font-size: 15px; }
    .pay-item .pay-icon { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: bold; }
    .icon-wechat { background: #07c160; }
    .icon-alipay { background: #1677ff; }
    .icon-balance { background: #ffb800; }

    /* 封面图模块 */
    .cover-widget img { width: 100%; border-radius: 4px; display: block; background: #f5f5f5; }

    /* 相关/随机资源列表 */
    .widget-list { list-style: none; margin: 0; padding: 0; }
    .widget-list li { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; line-height: 1.5; }
    .widget-list li:last-child { border-bottom: none; }
    .widget-list li a { color: #333; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .widget-list li a:hover { color: #c00; }
    .widget-list .list-price { float: right; color: #ff5722; font-size: 12px; margin-left: 8px; }

    /* 底部版权 */
    .site-footer { text-align: center; padding: 20px 0; color: #999; font-size: 12px; border-top: 1px solid #eee; margin-top: 30px; background: #fff; }

    /* ========== 手机端专属元素（PC端隐藏） ========== */
    #mobile-header { display: none; }
    .mobile-nav-mask { display: none; }
    .mobile-nav-drawer { display: none; }
    .mobile-footer-nav { display: none; }

    /* ========== 手机端完整适配 768px以下 ========== */
    @media (max-width: 768px) {
        /* 隐藏PC顶部和底部 */
        #header { display: none !important; }
        #footer { display: none !important; }

        /* 全局重置 */
        body { padding-top: 54px; padding-bottom: 60px; background: #f5f7fa; }

        /* ========== 顶部导航栏 ========== */
        #mobile-header {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 54px;
            background: #c00;
            align-items: center;
            padding: 0 12px;
            gap: 10px;
            z-index: 999;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .mobile-logo { height: 36px; flex-shrink: 0; }
        .mobile-logo img { height: 100%; display: block; }
        .mobile-search {
            flex: 1;
            height: 36px;
            background: #fff;
            border-radius: 18px;
            display: flex;
            align-items: center;
            padding: 0 15px;
        }
        .mobile-search input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 14px;
            background: transparent;
        }
        .mobile-menu-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 22px;
            flex-shrink: 0;
            cursor: pointer;
        }

        /* ========== 侧边抽屉导航 ========== */
        .mobile-nav-mask {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        .mobile-nav-mask.show { opacity: 1; visibility: visible; }
        .mobile-nav-drawer {
            display: block;
            position: fixed;
            top: 0;
            right: 0;
            width: 75%;
            max-width: 300px;
            height: 100%;
            background: #fff;
            z-index: 1001;
            transform: translateX(100%);
            transition: transform 0.3s;
            overflow-y: auto;
        }
        .mobile-nav-drawer.show { transform: translateX(0); }
        .mobile-nav-user {
            padding: 25px 20px;
            background: #c00;
            color: #fff;
        }
        .mobile-nav-user strong { font-size: 16px; display: block; margin-bottom: 4px; }
        .mobile-nav-user span { font-size: 12px; opacity: 0.9; }
        .mobile-nav-user a { color: #fff; text-decoration: underline; }
        .mobile-nav-list { list-style: none; margin: 0; padding: 10px 0; }
        .mobile-nav-list li { border-bottom: 1px solid #f5f5f5; }
        .mobile-nav-list li a {
            display: block;
            padding: 14px 20px;
            color: #333;
            text-decoration: none;
            font-size: 15px;
        }
        .mobile-nav-list li a:active { background: #f5f5f5; color: #c00; }
        .mobile-nav-sub { background: #fafafa; }
        .mobile-nav-sub li a { padding-left: 35px; font-size: 14px; color: #666; }

        /* ========== 详情页适配 ========== */
        .detail-container {
            grid-template-columns: 1fr;
            gap: 12px;
            margin: 10px auto;
            padding: 0 10px;
            max-width: 100%;
        }
        .detail-left { padding: 15px; border-radius: 8px; }
        .detail-title { font-size: 18px; margin-bottom: 10px; line-height: 1.5; }
        .detail-meta { gap: 12px; font-size: 12px; margin-bottom: 15px; padding-bottom: 12px; }
        .detail-desc { font-size: 13px; line-height: 1.7; }
        .detail-desc h3 { font-size: 16px; margin: 15px 0 8px; }
        .notice-box { padding: 12px; font-size: 12px; margin-top: 20px; }

        /* 上下页适配 */
        .page-nav { flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 15px; }
        .page-nav a { max-width: 100%; text-align: center; padding: 10px 15px; }

        /* 侧边栏下载按钮适配 */
        .download-btn { height: 48px; line-height: 48px; font-size: 16px; border-radius: 6px; }

        /* ========== 底部Tab导航 ========== */
        .mobile-footer-nav {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: #fff;
            border-top: 1px solid #eee;
            z-index: 999;
        }
        .mobile-footer-nav a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
            text-decoration: none;
            font-size: 11px;
            gap: 2px;
        }
        .mobile-footer-nav a i { font-size: 20px; font-style: normal; }
        .mobile-footer-nav a.active { color: #c00; }
    }
 /* 评论模块 */
.comment-block{
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    margin-top: 20px;
}
.comment-title{
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 输入框 */
.comment-input-box{
    margin-bottom: 30px;
}
.comment-textarea{
    width: 100%;
    min-height: 100px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.comment-textarea:focus{
    border-color: #009688;
}
.comment-toolbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.toolbar-left{
    display: flex;
    gap: 15px;
}
.toolbar-item{
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toolbar-item:hover{
    opacity: 1;
}
.comment-submit-btn{
    background: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-submit-btn:hover{
    background: #00796b;
}
.comment-submit-btn:disabled{
    background: #ccc;
    cursor: not-allowed;
}

/* 评论列表 */
.comment-list{
    margin-bottom: 20px;
}
.comment-item{
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
}
.comment-item:last-child{
    border-bottom: none;
}
.comment-avatar{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-content-wrap{
    flex: 1;
    min-width: 0;
}
.comment-user-row{
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.comment-username{
    color: #0066cc;
    font-weight: bold;
    font-size: 14px;
}
.comment-meta{
    color: #999;
    font-size: 12px;
}
.comment-text{
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
}
.comment-empty{
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 加载更多 */
.comment-more-wrap{
    text-align: center;
    padding-top: 10px;
}
.comment-more-btn{
    background: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 40px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-more-btn:hover{
    background: #00796b;
}
.comment-more-btn:disabled{
    background: #ccc;
    cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px){
    .comment-block{
        padding: 15px;
    }
    .comment-avatar{
        width: 36px;
        height: 36px;
    }
}   
/* 详情页富文本内容兼容修复 */
.detail-desc img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 4px;
}
.detail-desc p {
    line-height: 1.8;
    margin-bottom: 12px;
    word-break: break-all;
    color: #333;
}
.detail-desc table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
.detail-desc * {
    box-sizing: border-box;
}
/* 上一篇/下一篇 浮动布局版 无flex 兼容旧页面 */
.detail-left .page-nav{
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden; /* 清除浮动 */
}
.detail-left .page-nav a:first-child{
    float: left;
    width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.4;
}
.detail-left .page-nav a:last-child{
    float: right;
    width: 48%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.4;
}
.detail-left .page-nav a.disabled{
    color: #ccc;
    cursor: not-allowed;
}
.detail-left .page-nav a:hover:not(.disabled){
    color: #009688;
    border-color: #009688;
}

/* 移动端适配：上下排列 */
@media (max-width: 768px){
    .detail-left .page-nav a:first-child,
    .detail-left .page-nav a:last-child{
        float: none;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }
}
/* 管理员回复样式 */
.admin-reply{
    margin-top: 10px;
    padding: 10px 12px;
    background: #f6f7f9;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}
.admin-reply .reply-tag{
    display: inline-block;
    background: #ff5722;
    color: #fff;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 8px;
    vertical-align: middle;
}
.admin-reply .reply-content{
    color: #333;
    vertical-align: middle;
}

/* 图片光标 */
.resource-desc img {
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

/* 灯箱遮罩 */
.img-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.img-lightbox.show {
    display: flex;
}
/* 大图 */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
/* 关闭按钮 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}
/* 左右切换按钮 */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
/* 图片计数 */
.lightbox-count {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 14px;
    opacity: 0.8;
}
/*面包屑*/
 /* 面包屑 */ 
 div.detail-breadcrumb{
    padding: 12px 18px;
    background: #e3f2fd !important;
    font-size: 14px;
    color: #333;
    margin: 0 0 15px 0;
    border-radius: 6px;
    line-height: 1.6;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
div.detail-breadcrumb a{
    color: #1565c0 !important;
    text-decoration: none;
    transition: color .2s ease;
}
div.detail-breadcrumb a:hover{
    color: #0d47a1 !important;
}
div.detail-breadcrumb .sep{
    margin: 0 8px;
    color: #90caf9;
    font-weight: 300;
}
div.detail-breadcrumb .home i{
    font-size: 15px;
    margin-right: 4px;
    vertical-align: middle;
}
/* ========== 手机端响应式适配 ========== */
@media screen and (max-width: 768px){
    div.detail-breadcrumb{
        padding: 10px 12px;
        font-size: 12px;
        margin: 0 0 10px 0;
        border-radius: 4px;
    }
    div.detail-breadcrumb .sep{
        margin: 0 5px;
    }
    div.detail-breadcrumb .current-title{
        max-width: 160px;
    }
    div.detail-breadcrumb .home i{
        font-size: 13px;
    }
}
 .content-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #9e9e9e87;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0066cc;
} 