/* ============================================================
   jiaocheng.css — 教程资料封面页专属样式
   仅定义子栏目卡片网格、左右两列布局、右侧栏样式
   共用版块（搜索框、页头、滚动新闻、瀑布流卡片等）引用 style.css
   ============================================================ */

/* ============ 瀑布流标题分隔 ============ */
.jc-section-divider {
    text-align: center;
    margin: 36px 0 24px;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.jc-divider-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.jc-divider-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.6;
}

/* ============ 子栏目卡片网格 ============ */
.jc-cats-section {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.jc-cats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.jc-cats-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.jc-cats-title svg {
    color: #6366f1;
}

.jc-cats-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.jc-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.jc-cats-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}

/* ---- 单张子栏目卡片 ---- */
.jc-cat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.jc-cat-card:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* ---- 卡片顶部 Banner ---- */
.jc-cat-card-banner {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
}

/* 栏目名称浮动角标 */
.jc-cat-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 5px 14px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-radius: 0 0 12px 0;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.jc-cat-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jc-cat-card:hover .jc-cat-card-banner img {
    transform: scale(1.08);
}

.jc-cat-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.jc-cat-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

/* ---- 卡片信息区 ---- */
.jc-cat-card-info {
    padding: 12px 14px 8px;
}

.jc-cat-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jc-cat-card-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- 卡片底部最新文章 ---- */
.jc-cat-card-articles {
    padding: 10px 14px 12px;
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
}

.jc-cat-card-articles-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 500;
}

.jc-cat-card-article {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.jc-cat-card-article:hover {
    color: #6366f1;
}

.jc-cat-card-article-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.jc-cat-card-article-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jc-cat-card-article-date {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.jc-cat-card-no-article {
    font-size: 12px;
    color: #d1d5db;
    text-align: center;
    padding: 8px 0;
}


/* ============ 两列布局 ============ */
.jc-layout {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    align-items: flex-start;
}

.jc-main {
    flex: 1;
    min-width: 0;
}

/* 瀑布流列数覆盖：封面页左列比全宽窄，5列过窄改4列 */
.jc-main .waterfall {
    column-count: 4;
}

.jc-sidebar {
    width: 320px;
    flex-shrink: 0;
}


/* ============ 右侧栏 ============ */
.jc-side-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.jc-side-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jc-side-title svg {
    color: #6366f1;
}

.jc-side-more {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.jc-side-more:hover {
    color: #6366f1;
}

.jc-side-list {
    padding: 8px;
}

.jc-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.jc-side-item:hover {
    background: #f9fafb;
}

.jc-side-rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    flex-shrink: 0;
}

.jc-side-rank.top1 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.jc-side-rank.top2 {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
}

.jc-side-rank.top3 {
    background: linear-gradient(135deg, #eab308, #f97316);
    color: #fff;
}

.jc-side-thumb {
    width: 50px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.jc-side-info {
    flex: 1;
    min-width: 0;
}

.jc-side-name {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.jc-side-item:hover .jc-side-name {
    color: #6366f1;
}

.jc-side-desc {
    font-size: 11px;
    color: #9ca3af;
}

.jc-side-tag {
    color: #6366f1;
    margin-right: 4px;
}

.jc-side-fav-icon {
    width: 50px;
    height: 38px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.jc-side-empty {
    text-align: center;
    padding: 20px 0;
    color: #9ca3af;
    font-size: 13px;
}


/* ============ 响应式 ============ */
@media (max-width: 1400px) {
    .jc-main .waterfall {
        column-count: 3;
    }
}

@media (max-width: 1200px) {
    .jc-cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .jc-main .waterfall {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .jc-layout {
        flex-direction: column;
    }
    .jc-sidebar {
        width: 100%;
    }
    /* 右栏在窄屏下改为两列展示精选/收藏 */
    .jc-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .jc-side-section {
        margin-bottom: 0;
    }
    /* 窄屏全宽后恢复4列 */
    .jc-main .waterfall {
        column-count: 4;
    }
}

@media (max-width: 768px) {
    .jc-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jc-cats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .jc-main .waterfall {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .jc-cats-grid {
        grid-template-columns: 1fr;
    }
    .jc-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   教程资料详情页（show_jiaocheng.html）
   ============================================================ */
.jc-detail-page .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 24px;
}
.jc-detail-page .breadcrumb-top {
    color: #6b7280;
    font-size: 13px;
}
.jc-detail-page .breadcrumb-top a {
    color: #4f46e5;
    text-decoration: none;
}
.jc-detail-page .breadcrumb-top a:hover { color: #6366f1; }

/* 两栏布局 */
.jc-detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.jc-detail-main {
    flex: 0 0 800px;
    max-width: 800px;
    min-width: 0;
}
.jc-detail-sidebar {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 24px;
}

/* 主内容卡片 */
.jc-detail-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* ===== 媒体画廊（幻灯片） ===== */
.jc-media-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.jc-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.jc-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}
.jc-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    margin: 0;
}
.jc-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.jc-gallery-nav:hover { background: rgba(99,102,241,0.8); }
.jc-gallery-prev { left: 10px; }
.jc-gallery-next { right: 10px; }
.jc-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.jc-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.jc-gallery-dot.active {
    background: #818cf8;
    width: 20px;
    border-radius: 4px;
}

/* 多图缩略图 */
.jc-ref-images {
    margin-top: 14px;
}
.jc-ref-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.jc-ref-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jc-ref-item {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
    flex-shrink: 0;
}
.jc-ref-item:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 10px rgba(129,140,248,0.3);
    transform: translateY(-1px);
}
.jc-ref-item.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.25), 0 2px 10px rgba(99,102,241,0.3);
}
.jc-ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 画廊锁定占位 */
.jc-gallery-placeholder {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
}
.jc-lock-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #c7d2fe;
    font-size: 14px;
    font-weight: 500;
}

/* 标题 */
.jc-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 20px;
}

/* 作者信息条 */
.jc-detail-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f5;
}
.jc-detail-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.jc-detail-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
}
.jc-detail-author-info { min-width: 0; }
.jc-detail-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jc-detail-group-icon {
    width: 16px;
    height: 16px;
}
.jc-creator-badge {
    font-size: 11px;
    font-weight: 500;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 1px 8px;
    border-radius: 4px;
}
.jc-detail-meta {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.jc-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}
.jc-detail-author-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.jc-detail-external-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.jc-detail-external-btn:hover {
    background: #6366f1;
    color: #fff;
}
.jc-follow-btn {
    padding: 7px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.jc-follow-btn:hover { opacity: 0.9; }

/* 描述 */
.jc-detail-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: #f5f3ff;
    border-left: 3px solid #8b5cf6;
    border-radius: 0 10px 10px 0;
}

/* 正文 */
.jc-detail-content {
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.9;
    font-size: 15px;
    color: #1f2937;
}
.jc-detail-content img,
.jc-detail-content table,
.jc-detail-content pre {
    max-width: 100% !important;
}
.jc-detail-content img {
    border-radius: 8px;
    display: block;
    margin: 12px 0;
}
.jc-detail-content a {
    color: #3370ff;
    text-decoration: underline;
}
.jc-detail-content em {
    padding: 2px 6px;
    margin: 0 3px;
    background: #D8DFEF;
    color: #6366f1;
    border-radius: 4px;
    font-style: normal;
}
.jc-detail-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
}

/* 私密内容占位 */
.jc-private-block {
    text-align: center;
    padding: 56px 24px 48px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px dashed #c7d2fe;
    border-radius: 14px;
}
.jc-private-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.18);
    margin-bottom: 18px;
}
.jc-private-text {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.jc-private-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* 关键词标签 */
.jc-detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.jc-detail-keyword {
    font-size: 12px;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.jc-detail-keyword:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* 互动栏 */
.jc-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f5;
}
.jc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.jc-action-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
    transform: translateY(-1px);
}
.jc-action-btn.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}
.jc-action-count { font-weight: 500; }

/* ===== 评论区 ===== */
.jc-dc-section {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.jc-dc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.jc-dc-title-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.jc-dc-count {
    color: #6366f1;
    font-weight: 700;
}
.jc-dc-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

/* 评论表单 */
.jc-dc-form { width: 100%; }
.jc-dc-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.jc-dc-textarea:focus { border-color: #6366f1; }
.jc-dc-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.jc-dc-submit {
    padding: 8px 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.jc-dc-submit:hover { opacity: 0.9; }

/* 评论列表 */
.jc-dc-list { margin-top: 24px; }
.jc-dc-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f5;
}
.jc-dc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.jc-dc-body { flex: 1; min-width: 0; }
.jc-dc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.jc-dc-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.jc-dc-time { font-size: 11px; color: #9ca3af; }
.jc-dc-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 8px;
    word-break: break-word;
    position: relative;
}
.jc-dc-text .original_comment .user_name {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    margin-right: 2px;
}
.jc-dc-text .user_name { display: inline; }
.jc-dc-text .original_comment {
    display: block;
    color: #374151;
    line-height: 1.7;
}
.jc-dc-text .reply-bubble {
    position: relative;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 0 10px 10px 10px;
    color: #374151;
    line-height: 1.7;
}
.jc-dc-text .reply-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 6px 8px;
    border-color: transparent transparent #f3f4f6 transparent;
}
.jc-dc-text .reply-bubble .user_name {
    display: inline;
    margin-right: 2px;
}
.jc-dc-text .reply-bubble .reply-user-name {
    color: #8b5cf6;
    font-weight: 600;
}
.jc-dc-text .reply-bubble .user_name strong {
    color: #de4c1c !important;
    font-weight: 700;
}
.jc-dc-text br { display: none; }
.jc-dc-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
}
.jc-dc-reply-btn:hover { color: #4f46e5; }
.jc-dc-reply-form-wrap { margin-top: 10px; }
.jc-dc-empty {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}

/* 验证码 */
.jc-dc-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.jc-dc-code-img {
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.jc-dc-code-input {
    width: 80px;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1f2937;
    font-size: 13px;
    outline: none;
}

/* ===== 右栏：分类信息卡 ===== */
.jc-cat-info-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.jc-cat-info-banner {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    text-decoration: none;
}
.jc-cat-info-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.jc-cat-info-banner:hover img {
    transform: scale(1.05);
}
.jc-cat-info-body {
    padding: 16px 18px 12px;
}
.jc-cat-info-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.jc-cat-info-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* 栏目课程列表（内置滚动框，300px，渐变隐藏） */
.jc-cat-course-list-wrap {
    position: relative;
    border-top: 1px solid #f0f0f5;
    padding: 12px 14px 0;
}
.jc-cat-course-list-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 10px;
}
.jc-cat-course-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
    position: relative;
}
/* 目录树装饰竖线 */
.jc-cat-course-list::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: 12px;
    width: 1.5px;
    background: linear-gradient(to bottom, rgba(99,102,241,0.55), rgba(199,210,254,0.25));
    z-index: 0;
    border-radius: 1px;
}
.jc-cat-course-list::-webkit-scrollbar {
    width: 5px;
}
.jc-cat-course-list::-webkit-scrollbar-track {
    background: transparent;
}
.jc-cat-course-list::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.25);
    border-radius: 3px;
}
.jc-cat-course-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.45);
}
.jc-cat-course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}
.jc-cat-course-item:hover {
    background: #f5f3ff;
}
/* 序列号徽章 */
.jc-cat-course-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    transition: all 0.2s;
    box-shadow: 0 0 0 2px #fff;
}
.jc-cat-course-item:hover .jc-cat-course-num {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
    transform: scale(1.1);
}
.jc-cat-course-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.jc-cat-course-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.jc-cat-course-name {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.jc-cat-course-item:hover .jc-cat-course-name {
    color: #6366f1;
}
.jc-cat-course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
}
.jc-cat-course-date {
    color: #9ca3af;
}
.jc-cat-course-views {
    color: #6366f1;
}
/* 渐变遮罩（底部） */
.jc-cat-course-mask {
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 60%, #ffffff 100%);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}
.jc-cat-course-empty {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== 右栏：精选课程 ===== */
.jc-featured-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.jc-featured-header { margin-bottom: 14px; }
.jc-featured-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}
.jc-featured-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jc-featured-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
}
.jc-featured-item:hover { background: #f5f3ff; }
.jc-featured-thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.jc-featured-info { flex: 1; min-width: 0; }
.jc-featured-item-title {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.jc-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
    flex-wrap: wrap;
}
.jc-featured-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}
.jc-featured-meta-item svg {
    flex-shrink: 0;
}
.jc-featured-meta-item:first-child { color: #9ca3af; }
.jc-featured-meta-item:nth-child(2) { color: #6366f1; }
.jc-featured-meta-item:nth-child(3) { color: #f59e0b; }
.jc-featured-empty {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* 返回顶部 */
.jc-detail-page .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99,102,241,0.9);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
    z-index: 99;
    transition: transform 0.2s;
}
.jc-detail-page .back-to-top:hover { transform: translateY(-2px); }

/* ============ 详情页响应式 ============ */
@media (max-width: 1300px) {
    .jc-detail-main { flex: 0 0 680px; max-width: 680px; }
}
@media (max-width: 1200px) {
    .jc-detail-layout { flex-direction: column; }
    .jc-detail-main { flex: 1 1 100%; max-width: 100%; }
    .jc-detail-sidebar { position: static; width: 100%; }
    .jc-gallery { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    .jc-detail-card, .jc-dc-section { padding: 20px; }
    .jc-detail-title { font-size: 22px; }
    .jc-detail-author-bar { flex-direction: column; align-items: flex-start; }
    .jc-detail-author-right { width: 100%; }
    .jc-detail-actions { flex-wrap: wrap; }
    .jc-action-btn { flex: 1; justify-content: center; padding: 10px; }
}
