/* 文章详情页独立容器样式，max-width比主页窄一点 */
.container {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}
/* 文章明细页专属样式：文章内容+点赞+上下篇 */
/* 文章头部 */
.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
}
.detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #666666;
    flex-wrap: wrap;
}
/* 点赞功能样式（极简点击交互，变色+计数） */
.like-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 16px;
    cursor: pointer;
    color: #666666;
    transition: all 0.2s ease;
}
.like-box:hover {
    color: #4682B4;
}
.like-box.liked {
    color: #E63946; /* 点赞后红色，轻微点睛不突兀 */
}
.like-icon {
    font-size: 18px;
}
/* 文章内容 */
.detail-content {
    margin-bottom: 40px;
}
.detail-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.4;
}
.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}
.detail-content a {
    word-break: break-all;
}
/* 文章标签 */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 40px;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 14px;
}
.article-nav a {
    text-decoration: none;
}
.article-nav .prev {
    text-align: left;
}
.article-nav .next {
    text-align: right;
}
/* 响应式 - 手机端（适配返回/点赞功能） */
@media (max-width: 768px) {
    .detail-title {
        font-size: 22px;
    }
    .article-nav {
        flex-direction: column;
        gap: 16px;
    }
    .article-nav .next {
        text-align: left;
    }
}