/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
}

/* 头部样式 */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* 导航栏样式 */
nav {
    background-color: #444;
    padding: 10px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-size: 1.2em;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #ff6347; /* 橙色高亮 */
}

/* 主体内容样式 */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-preview {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.article-preview h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.article-preview p {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.article-preview a {
    font-size: 1.1em;
    color: #ff6347;
    transition: color 0.3s;
}

.article-preview a:hover {
    color: #333;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #ff6347;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

footer p {
    font-size: 1.2em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    nav ul {
        flex-direction: column;
    }

    .main-content {
        padding: 0 15px;
    }

    .article-preview {
        padding: 10px;
    }

    .article-preview h2 {
        font-size: 1.8em;
    }

    .article-preview p {
        font-size: 0.9em;
    }

    .pagination a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        font-size: 1em;
    }

    .article-preview h2 {
        font-size: 1.5em;
    }

    footer p {
        font-size: 1em;
    }
}
