/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

a:hover {
    color: #3b82f6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav {
    margin-top: 15px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-info {
    padding: 15px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* 文章详情页 */
.article-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.article-detail .meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.article-content {
    margin-top: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* 页脚样式 */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
}

.copyright {
    font-size: 14px;
}