/* 新闻详情页独立样式 */
.news-single-banner {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.news-single-banner h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.breadcrumb {
    color: #7f8c8d;
    font-size: 14px;
}

.breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.news-single-main {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-single-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 20px;
}

.news-article-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.news-article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.news-featured-image {
    margin-bottom: 20px;
}

.news-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.news-placeholder-image {
    width: 100%;
    height: 300px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    font-size: 18px;
}

.news-article-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 16px;
}

.news-article-content p {
    margin-bottom: 20px;
}

.news-article-content h2 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.news-article-content h3 {
    color: #2c3e50;
    margin: 25px 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.news-article-content ul, .news-article-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.news-article-content li {
    margin-bottom: 8px;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.news-article-content blockquote {
    border-left: 4px solid #1e40af;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #6c757d;
}

/* 文章标签 */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.tags-label {
    font-weight: 600;
    color: #2c3e50;
}

.tag-link {
    display: inline-block;
    background: #e1e8ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* 页面版权信息 */
.page-copyright {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.page-copyright h5 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-copyright p {
    margin: 5px 0;
}

/* 上下篇文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.nav-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nav-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-box.prev-post {
    text-align: left;
}

.nav-box.next-post {
    text-align: right;
}

.nav-box a {
    text-decoration: none;
    color: inherit;
}

.nav-info small {
    color: #7f8c8d;
    display: block;
    margin-bottom: 5px;
}

.nav-info p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 16px;
}

/* 相关文章 */
.related-posts {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title p {
    color: #7f8c8d;
    font-size: 14px;
    letter-spacing: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-3px);
}

.related-news-image {
    height: 120px;
    overflow: hidden;
}

.related-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-placeholder {
    height: 120px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
}

.related-news-content {
    padding: 15px;
}

.related-news-item-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.related-news-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-item-title a:hover {
    color: #1e40af;
}

.related-news-date {
    font-size: 12px;
    color: #7f8c8d;
}

.no-related-news {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 0;
}

.news-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 8px;
}

.hot-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-link {
    color: #34495e;
    color: #34495e;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hot-news-link:hover {
    color: #1e40af;
}

.hot-news-views {
    font-size: 12px;
    color: #7f8c8d;
    display: block;
    margin-top: 4px;
}

.no-hot-news {
    color: #7f8c8d;
    font-style: italic;
}

.news-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-category-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.news-category-item:last-child {
    border-bottom: none;
}

.news-category-link {
    color: #34495e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.news-category-link:hover {
    color: #1e40af;
}

.category-count {
    color: #7f8c8d;
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    background: #f8f9fa;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: #1e40af;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-single-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-single-box {
        padding: 20px;
    }
    
    .news-article-title {
        font-size: 24px;
    }
    
    .news-article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous, .nav-next {
        text-align: center;
    }
    
    /* 在移动设备上调整导航样式 */
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-box.prev-post,
    .nav-box.next-post {
        text-align: left;
    }
    
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .tag-cloud {
        justify-content: center;
    }
}