/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
 
body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}
 
a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
 
a:hover {
    color: #1e88e5;
}
 
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
 
/* 头部样式 */
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-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.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-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}
 
/* 文章列表样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
 
.article-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
 
.article-item:hover {
    transform: translateY(-5px);
}
 
.article-img {
    height: 180px;
    overflow: hidden;
}
 
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.article-info {
    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: #888;
    font-size: 14px;
    margin-top: 10px;
}
 
/* 分类标题样式 */
.category-title {
    font-size: 22px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
 
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
 
.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}
 
.pagination a:hover {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}
 
/* 文章详情页样式 */
.article-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 
.article-header {
    margin-bottom: 20px;
    text-align: center;
}
 
.article-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
 
.article-meta-detail {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}
 
.article-content {
    line-height: 1.8;
    font-size: 16px;
}
 
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}
 
/* 上一篇下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
 
/* 友情链接样式 */
.friend-links {
    background: #f9f9f9;
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px;
}
 
.friend-links h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
 
.friend-links a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}
 
/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}
 
.copyright {
    font-size: 14px;
}