/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.header-content {
    text-align: center;
}

.site-logo {
    display: inline-block;
}

.logo-image {
    max-height: 40px;
    width: auto;
}

/* 主要内容 */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* 文章列表样式 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

.post-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: #7f8c8d;
}

.post-meta .date {
    display: inline-block;
}

/* 分页样式 */
.pagination-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.pagelist {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagelist a,
.pagelist span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.pagelist a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagelist .thisclass {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 底部样式 */
.site-footer {
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fff;
}

.footer-content {
    font-size: 14px;
    color: #7f8c8d;
}

.copyright {
    margin: 0;
}

/* 文章页样式 */
.single-post {
    padding: 40px 0;
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #333;
}

.single-post .post-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.single-post .post-meta span {
    display: inline-block;
}

.single-post .post-author,
.single-post .post-category {
    color: #0073aa;
}

.post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 30px 0 15px 0;
    color: #333;
}

.post-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-content blockquote {
    border-left: 4px solid #0073aa;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

/* 标签样式 */
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tags-title {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.post-tags .tag {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

.post-tags .tag a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s;
}

.post-tags .tag a:hover {
    background-color: #0073aa;
    color: white;
}

/* 上一篇/下一篇导航 */
.post-navigation {
    margin: 40px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    width: 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 归档页面样式 */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 26px;
    color: #333;
    margin: 0 0 10px 0;
}

.archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .post-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .col-md-6 {
        margin-bottom: 30px;
    }
    
    .logo-image {
        max-height: 30px;
    }
    
    .single-post {
        padding: 20px 0;
    }
    
    .single-post .post-title {
        font-size: 24px;
    }
    
    .single-post .post-meta {
        font-size: 13px;
        gap: 10px;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
}


/* Logo区域样式 - 添加垂直居中 */
.header-content {
    display: flex;
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    text-align: left;  /* 文字左对齐 */
}

.site-logo {
    display: flex;
    align-items: center;  /* logo图片和文字垂直居中 */
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-left: 10px;  /* 文字和图片之间的间距 */
    display: inline-block;  /* 确保span可以应用垂直对齐 */
    line-height: 1;  /* 防止行高影响垂直居中 */
}

/* 确保图片垂直居中 */
.logo-image {
    max-height: 40px;
    width: auto;
    vertical-align: middle;  /* 图片垂直对齐 */
}

/* 可选：如果只想在移动设备上显示文字 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
        margin-left: 8px;
    }
}
/* 网格布局 - 两列文章 */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 两列等宽 */
    gap: 30px 40px;  /* 行间距30px，列间距40px */
    margin-bottom: 40px;
}

/* 文章项样式 */
.post-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    border-bottom-color: #3498db;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 13px;
    color: #7f8c8d;
}

/* 响应式设计 - 移动设备单列 */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;  /* 移动设备单列 */
        gap: 20px;
    }
    
    .post-item {
        padding-bottom: 15px;
    }
    
    .post-title {
        font-size: 16px;
    }
}

/* 分页样式保持不变 */
.pagination-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.pagelist {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagelist a,
.pagelist span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.pagelist a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagelist .thisclass {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}


















/* 现代分页样式 */
.pagination-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.pagination-nav ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination-nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination-nav li a,
.pagination-nav li span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    background-color: white;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-nav li a:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.1);
}

.pagination-nav li.thisclass a,
.pagination-nav li.thisclass span {
    background: linear-gradient(135deg, #0073aa, #005a87);
    border-color: #0073aa;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.pagination-nav li.thisclass a:hover,
.pagination-nav li.thisclass span:hover {
    background: linear-gradient(135deg, #005a87, #004466);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 115, 170, 0.25);
}

/* 上一页/下一页箭头样式 */
.pagination-nav li:first-child a::before {
    content: "← ";
    margin-right: 5px;
}

.pagination-nav li:last-child a::after {
    content: " →";
    margin-left: 5px;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .pagination-nav {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .pagination-nav ul {
        gap: 5px;
    }
    
    .pagination-nav li a,
    .pagination-nav li span {
        padding: 8px 12px;
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .pagination-nav li:first-child a,
    .pagination-nav li:last-child a {
        padding: 8px 12px;
    }
}












/* 分页样式修复 */
.pagination-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.pagination-nav ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 当前页码（没有a标签的li） */
.pagination-nav li.thisclass {
    padding: 10px 15px;
    border: 2px solid #0073aa;
    background-color: #0073aa;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

/* 带链接的页码 */
.pagination-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    background-color: white;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-nav li a:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.1);
}

/* 下一页特殊样式 */
.pagination-nav li a[href*='下一页'] {
    padding-left: 20px;
    padding-right: 20px;
    min-width: 60px;
}

/* 可选：为当前页添加悬停效果 */
.pagination-nav li.thisclass:hover {
    background-color: #005a87;
    border-color: #005a87;
    cursor: default;
}