/* 增强的文章页面样式 - 精确参考菜鸟教程 */

/* 文章容器 */
.article-full {
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 文章标题 */
.article-title {
    font-size: 28px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.article-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: #96a2b2;
}

.article-meta a {
    color: #96b97d;
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

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

.article-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #212529;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #212529;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #212529;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content a {
    color: #96b97d;
    text-decoration: none;
}

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

/* 代码块样式 - 菜鸟教程风格 */
.article-content pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 15px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 90%;
    color: #c7254e;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    font-size: 14px;
    border-radius: 0;
}

/* 代码高亮 - 菜鸟教程风格 */
.hljs {
    background: #f5f5f5 !important;
    padding: 0 !important;
}

/* 引用块 - 菜鸟教程风格 */
.article-content blockquote {
    border-left: 4px solid #96b97d;
    padding: 10px 15px;
    margin: 16px 0;
    background-color: #f9f9f9;
    color: #555;
    font-size: 15px;
}

/* 图片样式 - 菜鸟教程风格 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #eee;
}

/* 表格样式 - 菜鸟教程风格 */
.article-content table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.article-content table th,
.article-content table td {
    padding: 8px 10px;
    vertical-align: top;
    border: 1px solid #ddd;
    text-align: left;
}

.article-content table thead th {
    vertical-align: bottom;
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
}

.article-content table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* 提示框样式 - 菜鸟教程风格 */
.article-content .note,
.article-content .warning,
.article-content .tip {
    padding: 12px 15px;
    margin: 16px 0;
    border-radius: 3px;
    position: relative;
    font-size: 15px;
}

.article-content .note {
    background-color: #f8f8f8;
    border-left: 4px solid #96b97d;
    color: #555;
}

.article-content .warning {
    background-color: #fff8e6;
    border-left: 4px solid #ffb800;
    color: #855a00;
}

.article-content .tip {
    background-color: #e8f5e9;
    border-left: 4px solid #96b97d;
    color: #3d8b40;
}

.article-content .note::before,
.article-content .warning::before,
.article-content .tip::before {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.article-content .note::before {
    content: "注意：";
    color: #96b97d;
}

.article-content .warning::before {
    content: "警告：";
    color: #ffb800;
}

.article-content .tip::before {
    content: "提示：";
    color: #96b97d;
}

/* 侧边栏样式 - 菜鸟教程风格 */
.sidebar {
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #212529;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.sidebar ul li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.sidebar ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 3px 0;
}

.sidebar ul li a:hover {
    color: #96b97d;
    text-decoration: none;
}

.sidebar ul li.active a {
    color: #96b97d;
    font-weight: 500;
}

/* 左侧导航特殊样式 */
.left-nav .sidebar {
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #eee;
    height: 100%;
}

.left-nav .sidebar ul li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.left-nav .sidebar ul li a {
    padding: 5px 0;
    display: block;
}

/* 响应式调整 - 菜鸟教程风格 */
@media (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-content h4 {
        font-size: 16px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .sidebar {
        margin-top: 20px;
    }
}

/* 文章页脚 - 菜鸟教程风格 */
.article-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.article-tags .badge {
    background-color: #96b97d;
    color: white;
    font-weight: normal;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 2px;
}

/* 目录样式 - 菜鸟教程风格 */
.article-toc {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.article-toc-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.article-toc ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.article-toc ul li {
    margin-bottom: 5px;
    font-size: 14px;
}

.article-toc ul li a {
    color: #555;
    text-decoration: none;
}

.article-toc ul li a:hover {
    color: #96b97d;
    text-decoration: none;
}
