.detail-hero {
    display: flex;
    align-items: flex-start;
    padding: 50px 0;
    gap: 30px;
}

.detail-main {
    width: 66%;
    flex: none;
}

.latest-sidebar {
    flex: 1;
}

.featured-card {
    border: 1px solid #f5f5f5;
    background: #fff;
    border-radius: 8px;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 12px;
}

.detail-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .detail-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .detail-meta i {
        color: #bbb;
    }

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

    .detail-content p {
        margin-bottom: 16px;
    }

    .detail-content h2,
    .detail-content h3,
    .detail-content h4 {
        margin-top: 28px;
        margin-bottom: 12px;
        font-weight: 600;
        color: #222;
    }

    .detail-content h2 {
        font-size: 22px;
    }

    .detail-content h3 {
        font-size: 18px;
    }

    .detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 16px 0;
    }

    .detail-content blockquote {
        border-left: 4px solid #0d6efd;
        padding: 8px 16px;
        margin: 16px 0;
        background: #f8f9fa;
        border-radius: 0 8px 8px 0;
        color: #555;
    }

    .detail-content pre {
        background: #f5f5f5;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 16px;
        overflow-x: auto;
        font-size: 14px;
        line-height: 1.5;
    }

    .detail-content code {
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 14px;
        color: #d63384;
    }

    .detail-content pre code {
        background: none;
        padding: 0;
        color: inherit;
    }

    .detail-content ul,
    .detail-content ol {
        margin-bottom: 16px;
        padding-left: 24px;
    }

    .detail-content li {
        margin-bottom: 6px;
    }

    .detail-content a {
        color: #0d6efd;
        text-decoration: underline;
    }

        .detail-content a:hover {
            color: #0a58ca;
        }

/* ===== Table of Contents ===== */
.toc-card {
    border-bottom: 1px solid #f5f5f5;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding: 5px 0 16px;
}

    .toc-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
    }

.toc-body {
    padding: 12px 16px;
}

.toc-item {
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
    display: block;
    text-decoration: none;
    border-bottom: 1px dashed #f0f0f0;
}

    .toc-item:last-child {
        border-bottom: none;
    }

    .toc-item:hover {
        color: #0d6efd;
        padding-left: 4px;
    }

    .toc-item.level-3 {
        padding-left: 16px;
        font-size: 13px;
        color: #777;
    }


.featured-list{
    padding:10px 0;
}

table tbody tr th, table tbody tr td {
    padding: 6px 10px;
    border: 1px solid #cccccc;
}

/* ===== Featured Card ===== */
.featured-card {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}


    .featured-card .featured-title {
        font-size: 30px;
        color: #222;
        margin-bottom: 10px;
    }

    .featured-card .featured-desc {
        font-size: 14px;
        color: #555555;
        line-height: 1.6;
    }

    .featured-card .featured-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 8px;
    }

        .featured-card .featured-tags span {
            font-size: 11px;
            background: #f5f5f5;
            padding: 2px 8px;
            border-radius: 10px;
            color: #666;
        }

    .featured-card .featured-meta {
        margin-top: 10px;
        font-size: 13px;
        color: #999;
    }

        .featured-card .featured-meta i {
            width: 20px;
            color: #bbb;
            text-align:center;
        }

        .featured-card .featured-meta a {
            color: #0d6efd;
            font-size: 13px;
        }

    .featured-card .featured-actions {
        margin-top: 12px;
    }

        .featured-card .featured-actions .btn {
            font-size: 13px;
            padding: 6px 16px;
        }

/* ===== Star Rating Bar ===== */
.star-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px 0 0;
    font-size: 14px;
    color: #666;
}

    .star-bar .star-icon i{
        color: #275afb;
        font-size: 18px;
    }

    .star-bar .star-sep {
        color: #ddd;
    }

/* ===== Nav back ===== */
.back-link {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    display: inline-block;
}

    .back-link:hover {
        color: #0d6efd;
    }

/* ===== Article Card (sidebar bottom) ===== */
.article-card {
    padding: 16px;
}

   .article-item {
        padding: 6px 0;
    }

        .article-item:last-child {
            border-bottom: none;
        }

    .article-item a {
        display: flex;
        gap: 12px;
        text-decoration: none;
        color: inherit;
        color: #333;
    }
            .article-item a:hover{
                color:#0d6efd;
            }
            .article-item .item-left {
                flex: 1;
            }

        .article-item .item-title {
            font-size: 14px;
            font-weight: 500;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }

       .article-item .item-time {
            font-size: 12px;
            color: #999;
        }

        .article-item .item-img {
            width: 80px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid #eee;
        }

            .article-card .article-item .item-img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

@media (max-width: 1240px) {
    .detail-page {
        width: 1100px;
    }
}

@media (max-width: 768px) {
    .detail-page {
        width: 100%;
        padding: 0 16px 40px;
    }

    .detail-hero {
        flex-direction: column;
        padding: 24px 0;
    }

    .detail-main {
        width: 100%;
    }

    .detail-sidebar {
        width: 100%;
    }
}

/* ===== 富文本表格边框（与 productDetail.css 保持一致） ===== */
.detail-content table {
    border-collapse: collapse;
    margin: 12px 0;
    max-width: 100%;
}

.detail-content table th,
.detail-content table td {
    padding: 6px 10px;
    border: 1px solid #cccccc;
}
