/* 主要内容区域 */
.news-content-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 30px;
}

/* 文章内容 */
.news-article-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-article-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.news-article-tag {
    background: #ff9500;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.news-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

    .news-article-body h2 {
        font-size: 22px;
        margin: 30px 0 15px;
        font-weight: 500;
    }

    .news-article-body h3 {
        font-size: 18px;
        margin: 25px 0 10px;
        font-weight: 500;
    }

    .news-article-body p {
        margin-bottom: 20px;
    }

    .news-article-body ul,
    .news-article-body ol {
        margin: 20px 0;
        padding-left: 30px;
    }

    .news-article-body li {
        margin-bottom: 10px;
    }

    .news-article-body img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .news-article-body blockquote {
        margin: 20px 0;
        padding: 15px 20px;
        background: #f5f7fa;
        border-left: 4px solid #4a90ff;
        color: #666;
    }

    .news-article-body code {
        background: #f5f7fa;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: Consolas, Monaco, monospace;
        font-size: 14px;
    }

    .news-article-body pre {
        background: #f5f7fa;
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        margin: 20px 0;
    }

        .news-article-body pre code {
            background: none;
            padding: 0;
        }

/* 侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.sidebar-list {
    list-style: none;
}

    .sidebar-list li {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .sidebar-list li:last-child {
            border-bottom: none;
        }

    .sidebar-list a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .sidebar-list a:hover {
            color: #4a90ff;
        }

.sidebar-date {
    color: #999;
    font-size: 12px;
}

/* 文章底部操作 */
.news-article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-article-share {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-button {
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .share-button:hover {
        background: #4a90ff;
        color: white;
        border-color: #4a90ff;
    }

.news-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.news-article-nav-item {
    flex: 1;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

    .news-article-nav-item:hover {
        background: #e8f0ff;
        transform: translateY(-2px);
    }

.news-article-nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.news-article-nav-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 相关推荐 */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

    .related-item:hover {
        background: #e8f0ff;
        transform: translateY(-2px);
    }

.related-item-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.related-item-meta {
    font-size: 13px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-content-main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .news-article-content {
        padding: 20px;
    }

    .news-article-title {
        font-size: 22px;
    }

    .news-article-body {
        font-size: 15px;
    }

    .news-article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-article-nav {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .news-article-actions {
        flex-direction: column;
        gap: 20px;
    }

    .breadcrumb-container {
        font-size: 12px;
    }
}
