/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
 
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
 
a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
 
a:hover {
    color: #1e88e5;
}
 
/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
 
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
 
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1e88e5;
}
 
nav ul {
    display: flex;
    list-style: none;
}
 
nav ul li {
    margin-left: 20px;
}
 
nav ul li a {
    padding: 5px 10px;
    border-radius: 4px;
}
 
nav ul li a:hover {
    background-color: #f0f0f0;
}
 
/* 主要内容区域 */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
 
/* 文章列表样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
 
.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
 
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
 
.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
 
.article-content {
    padding: 15px;
}
 
.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
.article-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}
 
.category-section {
    margin-bottom: 40px;
}
 
.category-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #1e88e5;
}
 
/* 文章详情页样式 */
.article-detail {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.article-header {
    margin-bottom: 20px;
}
 
.article-detail-title {
    font-size: 28px;
    margin-bottom: 15px;
}
 
.article-detail-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
 
.article-content {
    line-height: 1.8;
    font-size: 16px;
}
 
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}
 
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
 
/* 列表页样式 */
.list-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.list-title {
    font-size: 24px;
    color: #1e88e5;
}
 
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
 
.pagination a {
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
 
.pagination a:hover {
    background-color: #1e88e5;
    color: #fff;
}
 
/* 友情链接样式 */
.friend-links {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
 
.friend-links h3 {
    margin-bottom: 15px;
    color: #1e88e5;
}
 
.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
 
.friend-links-container a {
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
 
.friend-links-container a:hover {
    background-color: #1e88e5;
    color: #fff;
}
 
/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}
 
.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
 
/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-detail-title {
        font-size: 24px;
    }
}