/* ===== 全局样式 ===== */
body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", STHeiti, "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* ===== 主容器布局 ===== */

/* ===== 主内容区居中 ===== */
#main {
    flex: 1;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 40px;
    max-width: 1800px;
}

/* ===== 文章标题样式 ===== */
.postTitle {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* ===== 文章正文样式 ===== */
.postBody {
    font-size: 22px;
    color: #444;
    line-height: 1.8;
}

.postBody p {
    margin: 15px 0;
}

.postBody a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dashed #3498db;
}

.postBody a:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

/* ===== 代码块美化 ===== */
.cnblogs-markdown .hljs {
    background: #dee9ff !important;
    border-radius: 6px;
    padding: 15px !important;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 18px;
    line-height: 1.5;
}

/* ===== 引用样式 ===== */
.postBody blockquote {
    background: #f8f8f8;
    border-left: 4px solid #3498db;
    padding: 12px 20px;
    margin: 20px 0;
    color: #555;
}

/* ===== 表格样式 ===== */
.postBody table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.postBody th, .postBody td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.postBody th {
    background: #f2f2f2;
    font-weight: bold;
}

/* ===== 图片居中 ===== */
.postBody img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== 列表样式 ===== */
.postBody ul, .postBody ol {
    padding-left: 25px;
    margin: 15px 0;
}

.postBody li {
    margin: 8px 0;
}

/* ===== 响应式设计（手机端适配） ===== */
@media (max-width: 768px) {
    #main {
        width: 95%;
        margin: 60px auto 20px;
        padding: 15px;
    }
    .postTitle {
        font-size: 24px;
    }
    .postBody {
        font-size: 15px;
    }
}

/* ===== 页脚样式 ===== */
#footer {
    text-align: center;
    margin: 40px 0 20px;
    color: #999;
    font-size: 14px;
}

#footer a {
    color: #3498db;
    text-decoration: none;
}

#footer a:hover {
    color: #e74c3c;
}