
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f5f7fa; color: #333; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }

/* 顶部导航 */
.top-nav { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.top-nav .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.top-nav .logo { font-size: 22px; font-weight: bold; color: #e74c3c; text-decoration: none; }
.top-nav .logo span { color: #333; }
.top-nav .nav-links a { color: #666; text-decoration: none; margin-left: 20px; font-size: 14px; }
.top-nav .nav-links a:hover { color: #e74c3c; }

/* 文章主体 */
.article-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 40px 50px; margin-top: 20px; }

.article-category { display: inline-block; background: #e74c3c; color: #fff; padding: 2px 14px; border-radius: 20px; font-size: 12px; margin-bottom: 15px; }
.article-title { font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: #1a1a2e; }
.article-subtitle { font-size: 18px; color: #888; font-weight: 400; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #999; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 25px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* 文章内容 */
.article-content { font-size: 17px; line-height: 1.8; color: #2c3e50; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 35px 0 15px; color: #1a1a2e; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 25px 0 12px; color: #1a1a2e; }
.article-content h4 { font-size: 18px; font-weight: 600; margin: 20px 0 10px; color: #1a1a2e; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 15px 0 20px 25px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: #e74c3c; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.article-content blockquote { border-left: 4px solid #e74c3c; padding: 12px 20px; margin: 20px 0; background: #fafafa; border-radius: 0 8px 8px 0; color: #555; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content th, .article-content td { border: 1px solid #e0e0e0; padding: 10px 15px; text-align: left; }
.article-content th { background: #f5f7fa; font-weight: 600; }

/* 标签 */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.article-tags a { background: #f0f0f0; color: #666; padding: 4px 14px; border-radius: 20px; font-size: 13px; text-decoration: none; }
.article-tags a:hover { background: #e74c3c; color: #fff; }

/* 相关文章 */
.related-section { margin-top: 35px; padding-top: 25px; border-top: 1px solid #f0f0f0; }
.related-section h3 { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #1a1a2e; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.related-list a { display: block; padding: 12px 16px; background: #f8f9fa; border-radius: 8px; color: #333; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.related-list a:hover { background: #e74c3c; color: #fff; transform: translateY(-2px); }
.related-list .date { font-size: 12px; color: #999; display: block; margin-top: 4px; }
.related-list a:hover .date { color: rgba(255,255,255,0.7); }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 15px; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb .sep { margin: 0 8px; }

/* 底部 */
.footer { text-align: center; padding: 30px 0 20px; color: #999; font-size: 13px; }
.footer a { color: #666; text-decoration: none; }
.footer a:hover { color: #e74c3c; }

/* 响应式 */
@media (max-width: 768px) {
    .article-card { padding: 20px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 16px; }
    .top-nav .nav-links a { margin-left: 10px; font-size: 13px; }
    .related-list { grid-template-columns: 1fr; }
    .article-meta { gap: 10px; font-size: 13px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .article-card { padding: 15px; border-radius: 0; }
    .article-title { font-size: 20px; }
    .top-nav .container { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .top-nav .nav-links a { margin: 0 8px; font-size: 12px; }
}
