/* 文章详情页专用样式 */

/* ==================== 布局容器 ==================== */
.news-detail-page .news-container {
    position: relative;
}

.news-detail-page .news-layout {
    position: relative;
}

/* ==================== 文章主体区域 ==================== */
.article-main {
    width: 100%;
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.article-content {
    padding: 40px 50px;
}

/* ==================== 文章头部 ==================== */
.article-header {
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-meta span {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
}

.article-category {
    padding: 4px 12px;
    background: #fa8c16;
    color: #fff !important;
    border-radius: 3px;
    font-weight: 500;
}

.meta-divider {
    color: #d9d9d9;
    font-weight: 300;
}

/* ==================== 文章正文 ==================== */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--blue);
    margin: 0 0 30px 0;
    font-weight: 500;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.article-body p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin: 10px 0;
    line-height: 1.8;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

.article-body strong {
    font-weight: 600;
    color: var(--blue);
}

.article-body a {
    color: var(--blue);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-body blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--blue);
    color: #666;
    font-style: italic;
}

.article-body code {
    padding: 2px 6px;
    background: #f5f5f5;
    color: #e83e8c;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-body pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    padding: 0;
    background: none;
    color: #333;
}

/* ==================== 文章标签 ==================== */
.article-tags {
    padding: 25px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 30px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.article-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.article-tag:hover {
    background: var(--blue);
    color: #fff;
}

/* ==================== 上一篇/下一篇导航 ==================== */
.article-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.article-nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s;
     line-height: 1.4;
}

.article-nav-item:hover {
    background: #e9ecef;
}

.nav-label {
     font-size: 14px;
    color: #999;
    margin-right: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.article-nav-item a {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav-item a:hover {
    color: var(--blue);
}


.article-nav-item.next {
    flex-direction: row-reverse;
}
.nav-label i{
    color: var(--blue);
    margin-right: 10px;
    font-size: 30px;
    margin-top: -8px;
    line-height: 0.8;
}


.article-nav-item.next .nav-label {
    margin-right: 0;
    margin-left: 10px;
}

/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1199px) */
@media (max-width: 1199px) {
    .article-content {
        padding: 30px 35px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-intro {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
}

/* 移动端 (<768px) */
@media (max-width: 767px) {
    .article-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .article-meta span {
        font-size: 12px;
    }
    
    .article-body {
        width: 100%;
        font-size: 14px;
    }
    
    .article-intro {
        font-size: 15px;
        padding: 15px;
    }
    
    .article-body h2 {
        font-size: 20px;
        margin: 25px 0 15px 0;
    }
    
    .article-body h3 {
        font-size: 17px;
        margin: 20px 0 12px 0;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 20px;
    }
    
    .article-tags {
        gap: 8px;
    }
    
    .article-nav-item {
        padding: 12px;
    }
    
    .article-nav-item a {
        font-size: 14px;
    }
}
