.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.blog-main {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    display: block;
}

.blog-title:hover {
    color: #007bff;
}

.blog-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-tags {
    margin-bottom: 10px;
}

.blog-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
    text-decoration: none;
}

.blog-tag:hover {
    background: #e0e0e0;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-stats {
    font-size: 14px;
    color: #999;
}

.blog-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.blog-type.normal {
    background: #f0f0f0;
    color: #666;
}

.blog-type.top {
    background: #ffe6e6;
    color: #ff4444;
}

.blog-type.recommend {
    background: #e6ffe6;
    color: #44aa44;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.sidebar-item {
    margin-bottom: 10px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item a:hover {
    color: #007bff;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

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

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.stat-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .blog-main,
    .sidebar-section {
        padding: 15px;
    }

    .statistics {
        grid-template-columns: 1fr;
    }
}
.blog-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.blog-type.normal {
    background: #f0f0f0;
    color: #666;
}

.blog-type.top {
    background: #ffe6e6;
    color: #ff4444;
}

.blog-type.recommend {
    background: #e6ffe6;
    color: #44aa44;
}

.blog-tags {
    margin-top: 10px;
}

.blog-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
    text-decoration: none;
}

.blog-tag:hover {
    background: #e0e0e0;
}

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

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.blog-content h1 { font-size: 24px; }
.blog-content h2 { font-size: 22px; }
.blog-content h3 { font-size: 20px; }
.blog-content h4 { font-size: 18px; }
.blog-content h5 { font-size: 16px; }
.blog-content h6 { font-size: 14px; }

.blog-content p {
    margin-bottom: 15px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

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

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

.blog-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.blog-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.blog-content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.blog-content th,
.blog-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.blog-content th {
    background: #f8f9fa;
    font-weight: bold;
}

.blog-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.back-to-list {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.back-to-list:hover {
    background: #0056b3;
}

.related-blogs {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.related-item a:hover {
    color: #007bff;
}

.related-meta {
    font-size: 12px;
    color: #666;
}

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

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.sidebar-item {
    margin-bottom: 10px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .blog-detail-container {
        padding: 15px;
        margin: 10px;
    }

    .blog-title {
        font-size: 24px;
    }

    .blog-content {
        font-size: 15px;
    }

    .blog-content h1 { font-size: 22px; }
    .blog-content h2 { font-size: 20px; }
    .blog-content h3 { font-size: 18px; }
}