.article-content h1 { font-size: 25px; transition: all 0.3s ease; } .article-content h2 { font-size: 30px; color: #0073aa; font-weight: bold; border-bottom: 2px solid #0073aa; transition: all 0.3s ease; } .article-content h3 { font-size: 26px; color: #333; font-weight: normal; transition: all 0.3s ease; } .article-content h4 { font-size: 22px; color: #555; font-weight: bold; margin-top: 20px; margin-bottom: 10px; transition: all 0.3s ease; } .article-content h5 { font-size: 18px; color: #666; font-weight: bold; margin-top: 15px; margin-bottom: 8px; } .article-content h6 { font-size: 16px; color: #777; font-weight: bold; margin-top: 10px; margin-bottom: 5px; } /* 段落样式 */ .article-content p { font-size: 14px; line-height: 1.8; color: #000000; margin-bottom: 16px; word-wrap: break-word; overflow-wrap: break-word; white-space: normal; } /* 链接样式 */ .article-content a { color: #0073aa; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.3s ease; } .article-content a:hover { color: #0056b3; text-decoration: underline; transition: all 0.3s ease; } /* 列表样式 */ .article-content ul, .article-content ol { margin: 16px 0; padding-left: 30px; } .article-content ul li, .article-content ol li { font-size: 16px; line-height: 1.6; color: #333; margin-bottom: 8px; } .article-content ul li { list-style-type: disc; } .article-content ol li { list-style-type: decimal; } /* 引用样式 */ .article-content blockquote { background: #f9f9f9; border-left: 4px solid #0073aa; margin: 20px 0; padding: 15px 20px; font-style: italic; color: #555; } .article-content blockquote p { margin-bottom: 0; } /* 代码样式 */ .article-content code { background: #f4f4f4; padding: 2px 6px; border-radius: 3px; font-family: 'Courier New', monospace; font-size: 14px; color: #d63384; } .article-content pre { background: #f8f8f8; border: 1px solid #ddd; border-radius: 5px; padding: 15px; margin: 20px 0; } .article-content pre code { background: none; padding: 0; color: #333; } /* 图片样式 */ .article-content img { max-width: 100%; height: auto; border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin: 20px 0; display: block; } /* 表格样式 */ .article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; } .article-content table th, .article-content table td { border: 1px solid #ddd; padding: 12px; text-align: left; } .article-content table th { background: #f5f5f5; font-weight: bold; color: #333; } .article-content table tr:nth-child(even) { background: #f9f9f9; } /* 分隔线样式 */ .article-content hr { border: none; height: 2px; background: linear-gradient(to right, #0073aa, #2eb6aa); margin: 30px 0; border-radius: 1px; } /* 强调文本样式 */ .article-content strong, .article-content b { font-weight: bold; color: #333; transition: all 0.3s ease; } .article-content em, .article-content i { font-style: italic; color: #555; } /* 文章容器整体样式 */ .article-content { margin: 20px auto; padding: 30px; font-family: 'Arial', 'Microsoft YaHei', sans-serif; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; word-wrap: break-word; overflow-wrap: break-word; } /* 响应式设计 */ @media (max-width: 768px) { .article-content { padding: 15px; } .article-content h1 { font-size: 28px; } .article-content h2 { font-size: 24px; } .article-content h3 { font-size: 20px; } .article-content h4 { font-size: 18px; } .article-content p { font-size: 14px; } }