.blog-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.blog-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.blog-main {
    flex: 1;
    padding: 40px 0;
    background: #f8f9fa;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* 博客列表 */
.blog-list {
    flex: 1;
}

.blog-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4CAF50;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.post-footer {
    text-align: right;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #45a049;
    transform: translateX(5px);
}

/* 博客详情 */
.blog-post-detail {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.blog-post-detail .post-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.blog-post-detail .post-content {
    margin-bottom: 30px;
}

.blog-post-detail .post-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #333;
}

.blog-post-detail .post-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #444;
}

.blog-post-detail .post-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.blog-post-detail .post-content li {
    margin-bottom: 5px;
}

.blog-post-detail .post-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.post-tags {
    margin-bottom: 20px;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #4CAF50;
    color: white;
}

.post-share {
    margin-top: 20px;
}

.share-label {
    font-weight: 600;
    margin-right: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #4CAF50;
    color: white;
}

/* 评论区 */
.comment-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.comment-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.comment-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

.comment-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.submit-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #45a049;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

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

.comment-text {
    line-height: 1.6;
    color: #444;
}

/* 侧边栏 */
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.category-list li a:hover {
    color: #4CAF50;
    padding-left: 10px;
}

.hot-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-articles li {
    margin-bottom: 15px;
}

.hot-articles li a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-articles li a:hover {
    color: #4CAF50;
}

.article-title {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

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

.tag-cloud a {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: #4CAF50;
    color: white;
}

/* 博客分类 */
.blog-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: #4CAF50;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tool-card .tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card .tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-card .tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tool-card .tool-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 快捷工具按钮 */
.quick-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-tool-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-tool-btn:hover {
    background: #4CAF50;
    color: white;
}

.quick-tool-btn i {
    width: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-post-detail {
        padding: 20px;
    }

    .blog-post-detail .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-main {
        padding: 20px 0;
    }

    .main-container {
        padding: 0 15px;
        gap: 20px;
    }

    .blog-post {
        padding: 15px;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .blog-post-detail .post-title {
        font-size: 1.5rem;
    }

    .sidebar-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }

    .share-btn {
        margin-bottom: 10px;
    }

    .comment-item {
        flex-direction: column;
        gap: 10px;
    }

    .comment-avatar {
        align-self: flex-start;
    }
}