/* 页面布局样式 */
.page-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.page-container {
    padding: 2rem 0;
}

/* 侧边栏 */
.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: #2c3e50;
    font-size: 1.125rem;
    font-weight: 600;
    padding-bottom: .75rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
}

/* 主内容区 */
.main-content {
    background: #fff;
    padding: 2rem;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.page-content {
    color: #2c3e50;
    line-height: 1.7;
}

/* 文章内容样式 */
.article-body {
    color: #2c3e50;
    line-height: 1.8;
    font-size: 16px;
    padding: 20px 0;
}

/* 文章标题样式 */
.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #718096;
    font-size: 14px;
}

/* 文章内容样式 */
.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    color: #4a5568;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #1a202c;
    margin: 25px 0 15px;
    font-weight: 600;
    line-height: 1.4;
}

.article-body h1 {
    font-size: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.article-body h2 {
    font-size: 22px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.article-body h3 {
    font-size: 20px;
}

.article-body h4 {
    font-size: 18px;
}

.article-body h5 {
    font-size: 16px;
}

.article-body h6 {
    font-size: 14px;
    color: #718096;
}

/* 文章列表样式 */
.article-body ul,
.article-body ol {
    margin: 0 0 20px 25px;
    padding: 0;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.7;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

/* 文章图片样式 */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 文章链接样式 */
.article-body a {
    color: #3182ce;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.article-body a:hover {
    color: #2c5282;
    border-bottom-color: #2c5282;
}

/* 文章加粗样式 */
.article-body strong {
    font-weight: 700;
    color: #2d3748;
}

/* 文章斜体样式 */
.article-body em {
    font-style: italic;
    color: #4a5568;
}

/* 文章引用样式 */
.article-body blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f7fafc;
    border-left: 4px solid #3182ce;
    border-radius: 0 4px 4px 0;
    color: #4a5568;
    font-style: italic;
}

/* 文章代码样式 */
.article-body code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #e53e3e;
}

.article-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #e2e8f0;
}

/* 文章表格样式 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-body table th,
.article-body table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.article-body table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.article-body table tr:nth-child(even) {
    background: #f7fafc;
}

.article-body table tr:hover {
    background: #edf2f7;
}

/* 文章分隔线样式 */
.article-body hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

/* 文章段落缩进 */
.article-body p {
    text-indent: 2em;
}

/* 文章响应式样式 */
@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-body h1 {
        font-size: 22px;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .article-body ul,
    .article-body ol {
        margin-left: 20px;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    
    .sidebar,
    .main-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,.1);
        z-index: 100;
        padding: .75rem 0;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}
