/* 页面头部样式 */
.page-header-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 徽章样式 */
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.5px;
}

/* 标题区域 */
.page-title-section {
    margin-bottom: 30px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: #667eea;
    line-height: 1.4;
}

/* 描述区域 */
.page-description {
    max-width: 600px;
    margin: 0 auto 40px;
}

.description-main {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.7;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
}

.description-secondary {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
}

.highlight-text {
    color: #667eea;
    font-weight: 500;
    margin: 0 4px;
}

/* 简化标签筛选 */
.tags-filter-simple {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.tags-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.tag-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.tag-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 博客卡片样式 */
.blog-section {
    padding: 0px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer; /* 显示手型光标 */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-img {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.blog-img img{ width: 100%; height: 100%;}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: #2d3748;
    line-height: 1.4;
    font-size: 1.25rem;
    font-weight: 600;
}

.blog-content p {
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-link:hover {
    color: #764ba2;
}

/* 分页容器 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
/* 分页项 */
.pagination li {
    margin: 0 5px;
}
/* 分页链接 */
.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s ease;
}
/* 当前页样式 */
.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
/* 禁用状态样式 */
.pagination li.disabled span {
    color: #6c757d;
    cursor: not-allowed;
}
/* 鼠标悬停效果 */
.pagination li a:hover:not(.active) {
    background-color: #e9ecef;
}

/* 博客详情页样式 */
.blog-detail-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* 文章头部 */
.article-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-tag {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.publish-date, .reading-time {
    color: #666;
    font-size: 14px;
}

.publish-date i, .reading-time i {
    margin-right: 5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-summary {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* 文章封面图 */
.article-cover {
    padding: 20px 40px;
}

.article-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 文章内容 */
.article-content {
    padding: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
    color: #1a1a1a;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
}

.article-content pre {
    background: #141515;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* 文章标签 */
.article-tags {
    padding: 0 40px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

/* 文章底部 */
.article-footer {
    padding: 40px 40px;
}

.article-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.action-btn.like-btn.active {
    background: #fff5f5;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* 分享模态框 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: translateY(-3px);
}

.share-link.twitter { background: #1da1f2; }
.share-link.facebook { background: #3b5998; }
.share-link.linkedin { background: #0077b5; }
.share-link.wechat { background: #07c160; }

/* 文章导航 */
.article-navigation {
    padding: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-link {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
}

.nav-link.prev {
    margin-right: 10px;
    text-align: left;
}

.nav-link.next {
    margin-left: 10px;
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.nav-link h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

/* 相关文章 */
.related-posts {
    padding: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

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

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.related-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-detail-container {
        margin: 0 15px;
    }
    
    .article-header,
    .article-cover,
    .article-content,
    .article-footer,
    .article-navigation,
    .related-posts {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-link.prev,
    .nav-link.next {
        margin: 0;
        text-align: left;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header-section {
        padding: 60px 0 30px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.4rem;
    }
    
    .page-badge {
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .tags-filter-simple {
        padding: 20px;
        margin-top: 20px;
    }
    
    .tags-row {
        gap: 8px;
    }
    
    .tag-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .description-main {
        font-size: 1rem;
    }
    
    .description-secondary {
        font-size: 0.9rem;
    }
    
    .tags-filter-simple {
        padding: 15px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-img {
        height: 180px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover .blog-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 移除原来的链接样式 */
.blog-card .blog-link {
    color: #007bff;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

.blog-card-link:hover .blog-link {
    color: #0056b3;
    transform: translateX(5px);
    transition: all 0.3s ease;
}