/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

/* 头部样式 */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo:hover {
    color: #007bff;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

/* 主内容区样式 */
main {
    flex: 3;
    min-width: 0;
}

.post {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.post-meta span {
    margin-right: 20px;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #0056b3;
}

/* 侧边栏样式 */
aside {
    flex: 1;
    margin-left: 30px;
    min-width: 250px;
}

.widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.category-list, .tag-list {
    list-style: none;
}

.category-list li, .tag-list li {
    margin-bottom: 10px;
}

.category-list a, .tag-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover, .tag-list a:hover {
    color: #007bff;
    padding-left: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
}

.tag-list li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.tag-list a {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
}

.tag-list a:hover {
    background-color: #007bff;
    color: #fff;
    padding-left: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover, .pagination .current {
    background-color: #007bff;
    color: #fff;
}

/* 底部样式 */
footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-info p {
    color: #ccc;
    line-height: 1.8;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #ccc;
    font-size: 14px;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    aside {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 20px;
        justify-content: center;
    }
    
    .nav-menu li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .post {
        padding: 20px;
    }
}