/* 返回按钮 */
.back-button {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0 10px;
}

.back-button a {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-button a:hover {
    background-color: #f3f4f6;
    color: #333;
}

/* 文章容器 */
.post-detail {
    max-width: 800px;
    margin: 20px auto 80px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 文章头部 */
.post-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    background-color: #ffffff;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.post-meta {
    font-size: 14px;
    color: #6b7280;
}

/* 文章内容 */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* 文章内容样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 32px 0 16px;
    color: #1f2937;
    font-weight: 600;
}

.post-content h2 {
    font-size: 24px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content p {
    margin: 16px 0;
}

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

.post-content a {
    color: #0066cc;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background-color: #f9fafb;
    border-left: 4px solid #d1d5db;
    color: #4b5563;
}

.post-content code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

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

.post-content li {
    margin: 8px 0;
}

/* 文章底部 */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-label {
    color: #6b7280;
    font-size: 14px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-button {
        padding: 0 20px;
    }
    
    .post-detail {
        margin: 16px;
        padding: 24px 20px;
        border-radius: 8px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 20px;
    }
    
    .post-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .post-detail {
        margin: 12px;
        padding: 20px 16px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-content {
        font-size: 14px;
    }
}