/* ========================================
   cnblogs-parity.css v1.2
   博客园 SimpleMemory 文章页实测参数复刻
   参数来源: browser computed styles of
   https://www.cnblogs.com/zjc9915/p/9241084.html
   ======================================== */

/* === TOKENS === */
:root {
    --cn-fg: #000;
    --cn-meta: #757575;
    --cn-border: #ddd;
    --cn-container: 950px;
    --cn-content: 686px;
}
html { font-size: 62.5% }
body { font-family: "Microsoft YaHei","Helvetica Neue",Arial,sans-serif; font-size: 12px; color: var(--cn-fg); }
a { color: var(--cn-fg); }
a:hover { color: var(--cn-fg); text-decoration: underline; }

/* === HIDE B2 JUNK === */
body.single-post .gg-box,
body.single-post .post-gg,
body.single-post .b2-single-share,
body.single-post .download-box,
body.archive .gg-box { display: none !important; }

/* === 3. SINGLE-POST === */
/* 主容器: match #mainContent(950px, pad 0 0 10px) */
body.single-post #primary,
body.single-post .content-area {
    max-width: var(--cn-container);
    margin: 0 auto;
    padding: 0 0 10px;
}

/* 内容区: match .forFlow(686px) — 用 !important 覆盖 B2 */
body.single-post .entry-content,
body.single-post .b2-single-content {
    width: 686px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #000 !important;
    padding: 0 !important;
}

/* 文章标题: match .postTitle(15.6px) */
body.single-post .entry-title,
body.single-post h1.entry-title {
    font-size: 15.6px !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
}

/* 正文段落 */
body.single-post .entry-content p,
body.single-post .b2-single-content p {
    font-size: 14px !important;
    line-height: 1.8 !important; /* 14*1.8=25.2px */
    margin: 0 0 10px !important;
    text-align: left !important;
    color: #000 !important;
}

/* 正文标题层级 */
body.single-post .entry-content h1 { font-size: 15.6px; font-weight: 700; margin: 14px 0 6px; }
body.single-post .entry-content h2 { font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
body.single-post .entry-content h3 { font-size: 14px; font-weight: 700; margin: 10px 0 4px; }

/* 图片: 左对齐 匹配 SimpleMemory margin:0 left */
body.single-post .entry-content,
body.single-post .b2-single-content,
body.single-post .entry-content p,
body.single-post .entry-content span { text-align: left !important; }

body.single-post .entry-content img,
body.single-post .b2-single-content img,
body.single-post .entry-content span img {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
}

/* 代码块 */
body.single-post .entry-content pre,
body.single-post .entry-content code {
    font-size: 12px !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0;
    padding: 10px;
    line-height: 1.4;
    display: block;
}

/* 表格 */
body.single-post .entry-content table { border-collapse: collapse; }
body.single-post .entry-content td,
body.single-post .entry-content th {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 14px;
}

/* 引用块 */
body.single-post .entry-content blockquote {
    border-left: 4px solid #6fa3ef;
    padding: 6px 12px;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

/* meta: match .postDesc(13px) */
body.single-post .post-meta,
body.single-post .entry-meta,
body.single-post .post-list-meta {
    font-size: 13px;
    color: var(--cn-meta);
    margin: 4px 0 20px;
}

/* === 4. ARCHIVE === */
body.archive .po-post-in { background:transparent!important; box-shadow:none!important; border-radius:0!important; }
body.archive .post-list-item { border-bottom:1px solid var(--cn-border)!important; padding:15px 0!important; margin:0!important; }
body.archive .post-module-thumb, body.archive .post-thumb { display:none!important; }
body.archive .po-post-title a { font-size:20px!important; font-weight:700!important; color:#000!important; }
body.archive .post-excerpt { font-size:12px!important; line-height:1.5!important; color:#333!important; }
body.archive .post-list-meta { color:var(--cn-meta)!important; font-size:13px!important; }

/* === 5. HOME === */
body.home .module-posts { max-width:1100px; margin:0 auto; padding:20px; }
body.home .post-list-item { width:32%; display:inline-block; vertical-align:top; margin:0 1% 20px 0; border-radius:6px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); overflow:hidden; }
body.home .po-post-title a { font-size:16px!important; padding:10px 12px 4px; display:block; color:#333!important; }

@media(max-width:768px){
    body.single-post .entry-content{width:100%}
    body.home .post-list-item{width:100%;margin-right:0}
}
