/* 全局样式 */
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    padding: 8px 12px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e65c00;
}

/* 主内容区域通用样式 */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 首页样式 */
.home-page .news-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-page .news-column {
    width: 48%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.home-page .news-column h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.home-page .news-column ul {
    list-style-type: none;
    padding: 0;
}

.home-page .news-column ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.home-page .news-column ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-page .news-column ul li a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.home-page .news-column ul li span {
    color: #888;
    font-size: 14px;
}

        /* 列表页样式 */
        .list-page .news-list {
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        .list-page .news-item {
            display: flex;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            margin-bottom: 20px;
            padding: 20px;
            text-decoration: none;
            color: #333;
            transition: box-shadow 0.3s ease;
        }

        .list-page .news-item:hover {
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }

        .list-page .news-item a {
            display: flex;
            text-decoration: none;
            color: #333;
            width: 100%;
        }

        .list-page .news-title {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .list-page .news-title h3 {
            font-size: 18px;
            margin: 0;
            transition: color 0.3s ease;
        }

        .list-page .news-item a:hover h3 {
            color: #ff6600;
        }

        .list-page .news-summary {
            flex: 1;
            font-size: 14px;
            color: #888;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .list-page .news-meta {
            flex: 1;
            font-size: 12px;
            color: #888;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .list-page .news-meta span {
            margin-right: 15px;
        }

        .list-page .pagination {
            width: 100%;
            display: flex;
			flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            margin-top: 30px;
        }

        .list-page .prev-page,
        .list-page .next-page {
            color: #ff6600;
            text-decoration: none;
            margin: 0 15px;
            transition: color 0.3s ease;
        }

        .list-page .prev-page:hover,
        .list-page .next-page:hover {
            color: #e65c00;
            text-decoration: underline;
        }

        .list-page .page-number {
            font-size: 14px;
            color: #888;
        }
/* 文章页样式 */
.article-page .article-container {
    width: 100%; /* 这里综合了两个不同的宽度设置，取了最终修改的100% */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.article-page .article-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.article-page .article-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-page .article-meta span {
    margin-right: 20px;
}

.article-page .article-content {
    line-height: 1.8;
    font-size: 16px;
	overflow: hidden;
}


.article-page .article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-pagination {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    gap: 20px; 
}

.article-pagination a {
    color: #ff6600; 
    text-decoration: none;
}

.article-pagination a:hover {
    text-decoration: underline;
}

.article-page .related-articles-container {
    display: flex;
    justify-content: space-between;
}

.article-page .related-articles {
    width: 48%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    box-sizing: border-box;
}

.article-page .related-articles h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.article-page .related-articles ul {
    list-style-type: none;
    padding: 0;
}

.article-page .related-articles ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.article-page .related-articles ul li a {
    display: flex;
    text-decoration: none;
    color: #333;
}

.article-page .related-articles ul li a img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.article-page .related-articles .news-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.article-page .related-articles .news-info p {
    font-size: 12px;
    color: #888;
}

/* 分页样式（第二个样式中单独的分页样式部分） */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: inline-block;
    padding: 12px 18px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #ff6600;
}

.pagination a.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
    font-weight: bold;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* 底部版权信息样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-page .news-column {
        width: 100%;
    }

    .list-page .news-item {
        flex-direction: column;
    }

    .list-page .news-item a img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .article-page .article-container,
    .article-page .related-articles {
        width: 100%;
        margin-bottom: 20px;
    }

    .article-page .related-articles ul li a img {
        width: 120px;
        height: 70px;
    }

    .nav-container {
        flex-direction: column;
    }

    nav ul {
        margin: 10px 0;
    }

    .article-page .related-articles-container {
        flex-direction: column;
    }
    .article-page .related-articles {
        width: 100%;
        margin-bottom: 20px;
    }
}
