/* ===== 文章详情页独有样式 ===== */

/* 文章头部元信息 */
.article-meta-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.article-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag-group a {
    font-size: 13px;
    padding: 3px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
}

.article-tag-group a:hover {
    background: #D0E4FF;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-3);
}

/* 文章图片 */
.article-img-wrap {
    margin: 20px 0;
    text-align: center;
}

.article-img-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.article-img-caption {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
}
.article-body p code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  background-color: #f4f4f4;
  color: #c82423;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}
/* 上下篇导航 */
.article-prev-next {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}

.pn-item {
    padding: 14px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
}
.pn-item a{
    display: block;         
    overflow: hidden;      
    white-space: nowrap;    
    text-overflow: ellipsis;
}
.pn-label {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.pn-item a:hover {
    color: var(--primary);
}

.pn-next {
    text-align: right;
}

/* 免责声明 */
.article-disclaimer {
    margin-top: 30px;
    padding: 16px 18px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-3);
    border: 1px solid var(--border);
}

.article-disclaimer h4 {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 8px;
}

/* ===== 文章页响应式 ===== */
@media (max-width: 768px) {
    .article-prev-next {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: minmax(0, 1fr);
    }

    .pn-next {
        text-align: left;
    }

    .article-meta-wrap {
        justify-content: flex-start;
    }
}
