/* 博客内容专用样式表 (blogstyle.css) */
:root {
    --content-width: 700px;          /* 文章主体最大宽度 */
    --code-bg: #2d2d2d;              /* 代码块背景色 */
    --quote-border: #3498db;         /* 引用块边框色 */
    --primary-text: #2c3e50;         /* 主文本色 */
    --secondary-text: #7f8c8d;       /* 次级文本色 */
}

/* 文章容器 */
.stackedit__html {
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: var(--primary-text);
}

/* 标题样式 */
.stackedit__html h1 {
    font-size: 2.5rem;
    margin: 1.5em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #eee;
    line-height: 1.2;
}

.stackedit__html h2 {
    font-size: 2rem;
    margin: 1.2em 0 0.8em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #eee;
}

.stackedit__html h3 {
    font-size: 1.5rem;
    margin: 1em 0 0.5em;
    color: var(--accent-color);
}

/* 段落与列表 */
.stackedit__html p {
    margin: 1.2em 0;
    font-size: 1.1rem;
}

.stackedit__html ul,
.stackedit__html ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.stackedit__html li {
    margin: 0.5em 0;
    line-height: 1.7;
}

/* 代码块 */
.stackedit__html pre {
    background: var(--code-bg);
    color: #ccc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

.stackedit__html code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

/* 引用块 */
.stackedit__html blockquote {
    border-left: 4px solid var(--quote-border);
    padding-left: 20px;
    margin: 1.5em 0;
    color: var(--secondary-text);
    font-style: italic;
    background: #f8f9fa;
}

/* 表格 */
.stackedit__html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.stackedit__html th,
.stackedit__html td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.stackedit__html th {
    background: #f5f5f5;
}

/* 图片 */
.stackedit__html img {
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 链接样式 */
.stackedit__html a {
    color: #3498db;
    text-decoration: underline dotted;
    transition: all 0.3s;
}

.stackedit__html a:hover {
    color: #2980b9;
    text-decoration-style: solid;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stackedit__html {
        margin: 20px auto;
        padding: 0 15px;
    }

    .stackedit__html h1 {
        font-size: 2rem;
    }

    .stackedit__html pre {
        font-size: 0.85rem;
    }
}