/* 基础样式 */
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;
}

/* ===== 新首页样式 ===== */

/* 头部导航 */
.site-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.site-nav a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.site-nav a:hover {
    color: #0073aa;
    background-color: #f0f7fc;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero 区域 */
.hero-section {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(135deg, #0f6fa8 0%, #0b527c 48%, #083a59 100%);
    color: white;
    padding: 72px 0 64px;
    text-align: left;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.76);
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 18px 0;
    line-height: 1.3;
    max-width: 680px;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 28px 0;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    background: #fff;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: #f0f7fc;
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.hero-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-panel {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px rgba(5, 34, 53, 0.18);
    backdrop-filter: blur(10px);
}

.hero-panel-label {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.hero-panel h2 {
    margin: 0 0 18px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #fff;
}

.hero-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero-task-list li {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-task-list strong {
    font-size: 15px;
    color: #fff;
}

.hero-task-list span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.hero-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-panel-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.entry-answer-section {
    margin: -28px 0 44px;
    position: relative;
    z-index: 2;
}

.entry-answer-card {
    padding: 26px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #d6e7f5;
    box-shadow: 0 18px 40px rgba(10, 54, 84, 0.08);
}

.entry-answer-card h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 1.35;
    color: #173247;
}

.entry-answer-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #556d7d;
}

.entry-answer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.entry-answer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #0f6fa8;
    background: #eef7ff;
    border: 1px solid #cce2f3;
}

.entry-answer-links a:hover {
    background: #dff0ff;
}

/* 功能介绍区域 */
.features-section {
    margin-bottom: 50px;
}

.features-section h2,
.latest-posts h2,
.seo-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.features-section .feature-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.features-section .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #0073aa;
}

.features-section .feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
    margin: 0 0 10px 0;
}

.features-section .feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 最新教程区域 */
.latest-posts {
    margin-bottom: 50px;
}

.view-all {
    text-align: center;
    margin-top: 25px;
}

.view-all a {
    display: inline-block;
    padding: 10px 30px;
    color: #0073aa;
    border: 2px solid #0073aa;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all a:hover {
    background: #0073aa;
    color: white;
}

/* SEO 文本区域 */
.seo-content {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.seo-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

.seo-content a {
    color: #0073aa;
    text-decoration: none;
}

.seo-content a:hover {
    text-decoration: underline;
}

/* 首页响应式 */
@media (max-width: 768px) {
    .site-nav {
        gap: 10px;
    }

    .site-nav a {
        font-size: 13px;
        padding: 4px 6px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
        font-size: 16px;
    }

    .hero-secondary-btn {
        width: 100%;
    }

    .hero-panel {
        padding: 20px;
    }

    .entry-answer-section {
        margin-top: -18px;
    }

    .entry-answer-card {
        padding: 22px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .seo-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .site-nav {
        justify-content: center;
    }

    .hero-panel h2,
    .entry-answer-card h2 {
        font-size: 20px;
    }

    .hero-tags {
        gap: 8px;
    }

    .hero-tags span,
    .entry-answer-links a,
    .hero-panel-links a {
        width: 100%;
        justify-content: center;
    }
}
