/* blog-enhance.css - TOC高亮 + 搜索高亮 + 阅读时间 */

/* TOC 当前章节高亮 */
.toc-wrapper .toc-active {
    color: #f75357 !important;
    font-weight: bold;
}
.toc-wrapper .toc-active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background-color: #f75357;
    border-radius: 2px;
}
.toc-wrapper li {
    position: relative;
}

/* 搜索结果高亮 */
mark {
    background: #fff3b0;
    color: #333;
    padding: 0 2px;
    border-radius: 2px;
}

/* 阅读时间 */
.reading-time {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-left: 1rem;
}
.reading-time i {
    font-size: 0.8rem;
}

/* 阅读进度条增强 */
.read-progress-feature {
    background: linear-gradient(90deg, #f75357, #ff8a80) !important;
    height: 3px !important;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    mark {
        background: #5c4b00;
        color: #fff;
    }
}
