/* ========================================
   新闻详情页专属CSS - 1:1还原截图版
   不污染全局，只作用于当前页面
======================================== */

/* 1. 外层容器：左上角→右下角 白到淡蓝渐变 */
.news-single-container {
    width: 100%;
    background-color: #edf3f9;
    padding: 20px 0;
}

/* 2. 主内容容器：渐变背景、圆角、阴影 */
.news-single-wrap {
    width: 1500px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* 3. 面包屑导航 */
.news-breadcrumb {
    font-size: 14px;
    color: #7a869a;
    margin-bottom: 24px;
}
.news-breadcrumb a {
    color: #4096ff;
    text-decoration: none;
}
.news-breadcrumb a:hover {
    text-decoration: underline;
}
.news-breadcrumb span {
    color: #2a3342;
}

/* 4. 文章标题 */
.news-title {
    font-size: 28px;
    font-weight: 600;
    color: #2a3342;
    text-align: center;
    margin: 0 0 20px;
}

/* 5. 元信息栏（时间/作者/浏览/标签） */
.news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: #7a869a;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.news-meta .tag {
    background-color: #e5eaf5;
    color: #4096ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 6. 分割线 */
.divider {
    width: 100%;
    height: 1px;
    background-color: #e5eaf5;
    margin: 24px 0;
}

/* 7. 正文内容 */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-content p {
    margin: 0 0 16px;
    text-indent: 2em;
}
.news-content h2, .news-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #2a3342;
    border-left: 3px solid #4096ff;
    padding-left: 12px;
}
.news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 4px;
}

/* 8. 相关标签 */
.related-tags {
    margin: 20px 0;
    font-size: 14px;
    color: #7a869a;
}
.related-tags .label {
    font-weight: 600;
    margin-right: 8px;
}
.related-tags .tag {
    display: inline-block;
    background-color: #e5eaf5;
    color: #4096ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin: 0 8px 8px 0;
}

/* 9. 上下篇导航 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf5;
    font-size: 14px;
}
.post-nav a {
    color: #4096ff;
    text-decoration: none;
}
.post-nav a:hover {
    text-decoration: underline;
}

/* 上下篇导航 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf5;
}

.post-nav .prev-post,
.post-nav .next-post {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4fa;
    transition: all 0.25s ease;
}

.post-nav .prev-post:hover,
.post-nav .next-post:hover {
    border-color: #4096ff;
    box-shadow: 0 3px 12px rgba(64,150,255,0.1);
}

.post-nav a {
    color: #4096ff;
    text-decoration: none;
}

.post-nav a:hover {
    text-decoration: underline;
}

.post-tags {
    margin-top: 20px;
}
.post-tags .tag {
    display: inline-block;
    background: #f0f4fa;
    color: #4096ff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 14px;
    text-decoration: none;
}
.post-tags .tag:hover {
    background: #4096ff;
    color: #fff;
}

.collected {
    color: inherit !important; /* 继承父元素颜色 */
    text-decoration: none !important; /* 去掉下划线 */
}
.collected:hover {
    color: inherit !important;
    text-decoration: none !important;
}