/* 博客详情页样式 */

.blog-detail-container {
    padding: 60px 0;
}

.blog-post-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

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

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

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

.post-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px;
}

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

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

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

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

/* 侧边栏样式 */
.blog-sidebar {
    padding-left: 30px;
}

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

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 搜索框样式 */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #007bff;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3;
}

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

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

.category-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

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

/* 最新文章样式 */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s;
    display: block;
    margin-bottom: 5px;
}

.recent-posts a:hover {
    color: #007bff;
}

.recent-posts .post-date {
    font-size: 12px;
    color: #999;
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: #007bff;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .blog-post-detail {
        padding: 30px;
    }
    
    .post-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .blog-post-detail {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}