/* 博客页面样式 */

/* ===== 基础容器样式 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ===== 博客头部 ===== */
.blog-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/blog/header-pattern.png') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.blog-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===== 搜索框 ===== */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-form {
    display: flex;
}

.search-input-group {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-input-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.search-input-group input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
}

.search-input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.05);
}

/* ===== 博客内容布局 ===== */
.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ===== 博客文章网格 - 商务蓝色风格 ===== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.blog-post-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(30, 64, 175, 0.08),
        0 1px 3px rgba(30, 64, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 48px rgba(30, 64, 175, 0.15),
        0 6px 20px rgba(30, 64, 175, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.post-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(30, 64, 175, 0.1) 50%,
        rgba(30, 64, 175, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-post-card:hover .post-image::after {
    opacity: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-content {
    padding: 2rem;
    position: relative;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #475569;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.post-meta span:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.post-meta i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
    font-size: 0.875rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1e293b;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: #1e40af;
}

.post-excerpt {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

/*.read-more:hover::before {*/
/*    transform: scaleX(1);*/
/*    transform-origin: left;*/
/*}*/

/*.read-more:hover {*/
/*    color: white;*/
/*    border-color: transparent;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);*/
/*}*/

.read-more i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-posts-grid {
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1.25rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ===== 分页 ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.pagination-current {
    padding: 12px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

/* ===== 侧边栏 ===== */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

/* ===== 分类列表 ===== */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: block;
    padding: 12px 18px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.5s ease;
}

.category-list a:hover::before {
    left: 100%;
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #007bff;
    border-color: #007bff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.15);
}

/* ===== 热门文章 ===== */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.popular-post-item {
    display: flex;
    gap: 18px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.popular-post-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(5px);
}

.popular-post-image {
    width: 90px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-image img {
    transform: scale(1.1);
}

.popular-post-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
    color: #2c3e50;
}

.popular-post-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-content h4 a:hover {
    color: #007bff;
}

.popular-post-content .post-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* ===== 博客文章详情页 ===== */
.blog-post-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.blog-post-main {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ===== 面包屑导航 ===== */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blog-breadcrumb i {
    color: #dee2e6;
    font-size: 10px;
}

.blog-breadcrumb span {
    color: #6c757d;
    font-weight: 600;
}

/* ===== 文章头部 ===== */
.post-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f8f9fa;
}

.post-header .post-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 800;
}

.post-header .post-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-weight: 500;
    font-size: 15px;
}

.meta-item i {
    color: #007bff;
    width: 18px;
    text-align: center;
}

.meta-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== 特色图片 ===== */
.post-featured-image {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 文章内容 ===== */
.post-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 17px;
    margin-bottom: 40px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 35px 0 20px;
    color: #2c3e50;
    font-weight: 700;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #007bff;
}

.post-content h4 {
    font-size: 1.3rem;
    color: #495057;
}

.post-content p {
    margin-bottom: 22px;
    font-size: 18px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-content blockquote {
    border-left: 5px solid #007bff;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #495057;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
    opacity: 0.3;
}

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

.post-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.post-content em {
    color: #495057;
    font-style: italic;
}

.post-content a {
    color: #007bff;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #0056b3;
}

/* ===== 文章标签 ===== */
.post-tags {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

/* ===== 分享按钮 ===== */
.post-share {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #f8f9fa;
}

.post-share h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0ea5e9 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

/* ===== 相关文章 ===== */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.related-post-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: #f8f9fa;
}

.related-post-item:hover {
    background: white;
    border-color: #007bff;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.15);
}

.related-post-image {
    width: 90px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
    color: #2c3e50;
}

.related-post-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-content h4 a:hover {
    color: #007bff;
}

.related-post-content .post-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* ===== 无文章状态 ===== */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-posts i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.no-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #495057;
}

.no-posts p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .blog-layout,
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
    
    .blog-post-main {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .blog-title {
        font-size: 2.8rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input-group input {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 15px 25px;
        font-size: 15px;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-post-content {
        padding: 60px 0;
    }
    
    .blog-post-main {
        padding: 25px;
    }
    
    .post-header .post-title {
        font-size: 2.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        min-width: auto;
        width: 100%;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-numbers {
        order: -1;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 50px 0 30px;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .search-input-group input {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-post-content {
        padding: 40px 0;
    }
    
    .blog-post-main {
        padding: 20px;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content h4 {
        font-size: 1.1rem;
    }
    
    .blog-posts-grid {
        gap: 25px;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .post-image {
        height: 220px;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
    
    .popular-post-image,
    .related-post-image {
        width: 70px;
        height: 55px;
    }
    
    .popular-post-content h4,
    .related-post-content h4 {
        font-size: 14px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .blog-header,
    .blog-sidebar,
    .post-share,
    .blog-pagination {
        display: none;
    }
    
    .blog-post-main {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .post-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        page-break-after: avoid;
    }
    
    .post-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ===== 深色模式支持 ===== */
@media (prefers-color-scheme: dark) {
    .blog-content,
    .blog-post-content {
        background: #1a1a1a;
    }
    
    .blog-post-card,
    .sidebar-widget,
    .blog-post-main {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .post-title a,
    .popular-post-content h4 a,
    .related-post-content h4 a {
        color: #e0e0e0;
    }
    
    .post-title a:hover,
    .popular-post-content h4 a:hover,
    .related-post-content h4 a:hover {
        color: #4da6ff;
    }
    
    .post-excerpt,
    .post-content {
        color: #c0c0c0;
    }
    
    .widget-title {
        color: #e0e0e0;
        border-bottom-color: #4da6ff;
    }
    
    .category-list a {
        color: #c0c0c0;
    }
    
    .category-list a:hover,
    .category-list a.active {
        background: #404040;
        color: #4da6ff;
    }
}

/* 文章导航样式 */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.post-nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.post-nav-item {
    position: relative;
}

.post-nav-link {
    display: block;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-nav-link:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.post-nav-link:hover::before {
    opacity: 1;
}

.post-prev-item .post-nav-link {
    padding-left: 25px;
}

.post-next-item .post-nav-link {
    padding-right: 25px;
}

.post-nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.post-prev-item .post-nav-icon {
    left: -20px;
}

.post-next-item .post-nav-icon {
    right: -20px;
}

.post-nav-link:hover .post-nav-icon {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.post-nav-icon i {
    font-size: 14px;
    font-weight: 600;
}

.post-nav-content {
    position: relative;
    z-index: 1;
}

.post-nav-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.post-nav-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-nav-link:hover .post-nav-title {
    color: #3b82f6;
}

.post-nav-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-nav-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-nav-link {
        padding: 18px;
    }
    
    .post-prev-item .post-nav-link {
        padding-left: 22px;
    }
    
    .post-next-item .post-nav-link {
        padding-right: 22px;
    }
    
    .post-nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .post-prev-item .post-nav-icon {
        left: -18px;
    }
    
    .post-next-item .post-nav-icon {
        right: -18px;
    }
    
    .post-nav-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .post-navigation {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .post-nav-link {
        padding: 16px;
    }
    
    .post-prev-item .post-nav-link {
        padding-left: 20px;
    }
    
    .post-next-item .post-nav-link {
        padding-right: 20px;
    }
    
    .post-nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .post-prev-item .post-nav-icon {
        left: -16px;
    }
    
    .post-next-item .post-nav-icon {
        right: -16px;
    }
    
    .post-nav-title {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-prev-item {
    animation: slideIn 0.5s ease-out 0.1s both;
}

.post-next-item {
    animation: slideIn 0.5s ease-out 0.2s both;
}

/* 表格基础样式 */
.table {
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

/* 表格样式 */
.table table {
    width: 100%;
    border-collapse: collapse;
}

/* 表头样式 */
.table thead {
    background-color: #f5f5f5;
}

.table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

/* 表格行样式 */
.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* 表格单元格样式 */
.table td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.5;
    color: #333333;
    font-size: 14px;
}

/* 悬停效果 */
.table tbody tr:hover {
    background-color: #f9f9f9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .table {
        margin: 1rem 0;
    }
    
    .table thead th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .table {
        overflow-x: auto;
    }
    
    .table thead th,
    .table td {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-main {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-nav-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    
    .blog-breadcrumb {
        display: none; /* 在手机端隐藏面包屑导航 */
    }
    .blog-post-content {
        padding: 1rem 0;
    }
    
    .blog-post-main {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .post-title {
        margin-top: 30px;
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .post-nav-link {
        padding: 1rem;
    }
    
    .post-nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .post-nav-title {
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        margin: 0 1rem;
        padding: 1rem;
    }
    
    .related-post-item,
    .popular-post-item {
        padding: 0.8rem;
    }
    
    .related-post-image,
    .popular-post-image {
        width: 70px;
        height: 50px;
    }
    
    .related-post-content h4,
    .popular-post-content h4 {
        font-size: 0.9rem;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .blog-post-main {
        margin: 0 0.5rem;
        padding: 0.8rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-tags,
    .post-share {
        padding: 1rem;
    }
    
    .tag-list {
        gap: 0.3rem;
    }
    
    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .sidebar-widget {
        margin: 0 0.5rem;
        padding: 0.8rem;
    }
    
    .related-post-item,
    .popular-post-item {
        padding: 0.6rem;
    }
    
    .related-post-image,
    .popular-post-image {
        width: 60px;
        height: 45px;
    }
    
    .related-post-content h4,
    .popular-post-content h4 {
        font-size: 0.85rem;
    }
    
    .post-date {
        font-size: 0.75rem;
    }
}

/* 响应式设计 - 横屏手机 */
@media (max-width: 768px) and (orientation: landscape) {
    .blog-post-layout {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-main {
        padding: 1.2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

/* 响应式设计 - 大屏设备 */
@media (min-width: 1400px) {
    .blog-post-layout {
        max-width: 1400px;
        gap: 4rem;
    }
    
    .blog-post-main {
        padding: 3rem;
    }
    
    .post-title {
        font-size: 3rem;
    }
    
    .post-content {
        font-size: 1.2rem;
    }
    
    .sidebar-widget {
        padding: 2rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .blog-post-main,
    .sidebar-widget {
        border: 2px solid #000;
    }
    
    .post-title {
        color: #000;
    }
    
    .meta-item i {
        color: #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .post-nav-item,
    .share-btn,
    .related-post-item,
    .popular-post-item {
        transition: none;
    }
    
    .post-nav-item:hover,
    .share-btn:hover {
        transform: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .blog-post-main,
    .sidebar-widget {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .post-title {
        color: #ffffff;
    }
    
    .post-content {
        color: #e0e0e0;
    }
    
    .post-tags,
    .post-share {
        background: #2a2a2a;
    }
    
    .related-post-item,
    .popular-post-item {
        background: #2a2a2a;
    }
    
    .related-post-item:hover,
    .popular-post-item:hover {
        background: #3a3a3a;
    }
    
    .post-nav-item {
        background: #2a2a2a;
    }
}