﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.news-container-top {
    max-width: 768px;
    margin: 0 auto;
    padding:0px;
    background-color: #fff;
}
/* 容器样式 */
.news-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.news-title {
    font-size: 24px;
    font-weight: bold;
    margin:20px auto 20px auto;
    text-align:center;
}

/* 元信息样式（来源、日期、类别、点击量） */
.news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

    .news-meta span {
        margin-right: 15px;
    }
.news-hits-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

/* 内容样式 */
.news-content {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
}

    .news-content img {
        max-width: 100%; /* 图片宽度自适应 */
        height: auto; /* 高度按比例缩放 */
        display: block; /* 避免图片下方留白 */
        margin:0 auto; /* 图片上下间距 */
        border-radius: 8px; /* 圆角 */
    }
    .news-content p {
        line-height: 1.8;
    }

/* 相关新闻样式 */
.related-news {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

    .related-news h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .related-news ul {
        list-style: none;
        padding: 0;
    }

    .related-news li {
        margin-bottom: 10px;
    }

    .related-news a {
        text-decoration: none;
        color: #007BFF;
        font-size: 16px;
    }

        .related-news a:hover {
            text-decoration: underline;
        }

/* 版权说明样式 */
.news-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #666;
}

    .news-copyright a {
        color: #007BFF;
        text-decoration: none;
    }

        .news-copyright a:hover {
            text-decoration: underline;
        }

