/* 文章详情页样式 */ .article-main { padding-top: 6rem; max-width: 800px; margin: 0 auto; padding-bottom: 4rem; } .article-header { text-align: center; margin-bottom: 3rem; } .article-header h1 { font-size: 2.5rem; color: #1e40af; margin-bottom: 1rem; line-height: 1.3; } .article-meta { color: #64748b; font-size: 1rem; margin-bottom: 2rem; } .article-image { width: 100%; height: 400px; margin-bottom: 2rem; border-radius: 1rem; overflow: hidden; } .article-image img { width: 100%; height: 100%; object-fit: cover; } .article-content { font-size: 1.1rem; line-height: 1.8; color: #4b5563; } .article-content p { margin-bottom: 1.5rem; } .article-content h2 { font-size: 1.8rem; color: #1e40af; margin: 2rem 0 1rem; } .article-content h3 { font-size: 1.5rem; color: #1e40af; margin: 1.5rem 0 1rem; } .article-content ul, .article-content ol { margin: 1rem 0; padding-left: 2rem; } .article-content li { margin-bottom: 0.5rem; } .article-content blockquote { border-left: 4px solid #2563eb; padding-left: 1rem; margin: 1.5rem 0; color: #64748b; font-style: italic; } .article-content code { background: #f1f5f9; padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-family: monospace; } .article-content pre { background: #f1f5f9; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; } .article-content pre code { background: none; padding: 0; } .article-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; } .article-content a { color: #2563eb; text-decoration: none; transition: color 0.3s ease; } .article-content a:hover { color: #1d4ed8; text-decoration: underline; } .article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; } .article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; } .article-tag { background: #f1f5f9; color: #64748b; padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.875rem; transition: all 0.3s ease; } .article-tag:hover { background: #e2e8f0; color: #1e40af; } .article-nav { display: flex; justify-content: space-between; margin-top: 2rem; } .article-nav a { color: #2563eb; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; } .article-nav a:hover { color: #1d4ed8; } /* 响应式设计 */ @media (max-width: 768px) { .article-main { padding: 5rem 1rem 2rem; } .article-header h1 { font-size: 2rem; } .article-image { height: 300px; } .article-content { font-size: 1rem; } }